@ai-table/grid 0.1.29 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/constants/icon.d.ts +1 -0
  2. package/constants/icon.d.ts.map +1 -1
  3. package/core/constants/field.d.ts.map +1 -1
  4. package/fesm2022/ai-table-grid.mjs +210 -40
  5. package/fesm2022/ai-table-grid.mjs.map +1 -1
  6. package/grid-base.component.d.ts +3 -2
  7. package/grid-base.component.d.ts.map +1 -1
  8. package/grid.component.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. package/renderer/components/cells/checkbox.component.d.ts +12 -0
  11. package/renderer/components/cells/checkbox.component.d.ts.map +1 -0
  12. package/renderer/components/cells/index.d.ts +1 -0
  13. package/renderer/components/cells/index.d.ts.map +1 -1
  14. package/renderer/components/field-icon.component.d.ts.map +1 -1
  15. package/renderer/components/field-stat/stat.component.d.ts +1 -0
  16. package/renderer/components/field-stat/stat.component.d.ts.map +1 -1
  17. package/renderer/components/icon.component.d.ts +3 -1
  18. package/renderer/components/icon.component.d.ts.map +1 -1
  19. package/renderer/components/scrollable-group/scrollable-group.component.d.ts +1 -0
  20. package/renderer/components/scrollable-group/scrollable-group.component.d.ts.map +1 -1
  21. package/renderer/creations/create-cells.d.ts.map +1 -1
  22. package/renderer/drawers/cell-drawer.d.ts +1 -0
  23. package/renderer/drawers/cell-drawer.d.ts.map +1 -1
  24. package/types/cell.d.ts +3 -0
  25. package/types/cell.d.ts.map +1 -1
  26. package/utils/clipboard/paste.d.ts +2 -1
  27. package/utils/clipboard/paste.d.ts.map +1 -1
  28. package/utils/field/field.d.ts.map +1 -1
  29. package/utils/field/model/checkbox.d.ts +13 -0
  30. package/utils/field/model/checkbox.d.ts.map +1 -0
  31. package/utils/i18n.d.ts +2 -0
  32. package/utils/i18n.d.ts.map +1 -1
@@ -25,11 +25,11 @@ import { Transformer } from 'konva/lib/shapes/Transformer';
25
25
  import { Wedge } from 'konva/lib/shapes/Wedge';
26
26
  import * as i1$1 from 'ngx-tethys/popover';
27
27
  import { ThyPopoverRef, ThyPopover, ThyPopoverModule } from 'ngx-tethys/popover';
28
- import { AITableFieldGroup, AITableFieldType, AITableRowColumnType, DragType, isUndefinedOrNull, idCreator as idCreator$1, isUrl, AITableSelectOptionStyle, isEmpty, AITableFilterOperation, AttachmentFieldBase, AITableStatType, DateFieldBase, DEFAULT_FIELD_STAT_TYPE_ITEMS, isDateValid, isDateAndReturnDate, LinkFieldBase, MemberFieldBase, NumberFieldBase, ProgressFieldBase, isProgressAndReturnValue, RateFieldBase, RichTextFieldBase, SelectFieldBase, generateOptionsByTexts, TextFieldBase, FieldModelBaseMap } from '@ai-table/utils';
28
+ import { AITableFieldGroup, AITableFieldType, AITableRowColumnType, DragType, isUndefinedOrNull, idCreator as idCreator$1, isUrl, AITableSelectOptionStyle, isEmpty, AITableFilterOperation, AttachmentFieldBase, AITableStatType, DateFieldBase, DEFAULT_FIELD_STAT_TYPE_ITEMS, isDateValid, isDateAndReturnDate, LinkFieldBase, MemberFieldBase, NumberFieldBase, ProgressFieldBase, isProgressAndReturnValue, RateFieldBase, RichTextFieldBase, SelectFieldBase, generateOptionsByTexts, TextFieldBase, CheckboxFieldBase, DEFAULT_FIELD_STAT_TYPE_MAP, FieldModelBaseMap, numberFormat } from '@ai-table/utils';
29
29
  import ObjectID from 'bson-objectid';
30
30
  import { customAlphabet } from 'nanoid';
31
31
  import * as _ from 'lodash';
32
- import ___default, { isNumber, includes, values, isString, isNil, isObject } from 'lodash';
32
+ import ___default, { isNumber, includes, values, isString, isObject } from 'lodash';
33
33
  import * as i1 from '@angular/forms';
34
34
  import { FormsModule } from '@angular/forms';
35
35
  import { ThyDatePicker, ThyDatePickerFormatPipe } from 'ngx-tethys/date-picker';
@@ -522,6 +522,7 @@ var AITableGridI18nKey;
522
522
  AITableGridI18nKey["fieldTypeMultiSelect"] = "fieldTypeMultiSelect";
523
523
  AITableGridI18nKey["fieldTypeNumber"] = "fieldTypeNumber";
524
524
  AITableGridI18nKey["fieldTypeDate"] = "fieldTypeDate";
525
+ AITableGridI18nKey["fieldTypeCheckbox"] = "fieldTypeCheckbox";
525
526
  AITableGridI18nKey["fieldTypeMember"] = "fieldTypeMember";
526
527
  AITableGridI18nKey["fieldTypeProgress"] = "fieldTypeProgress";
527
528
  AITableGridI18nKey["fieldTypeRate"] = "fieldTypeRate";
@@ -574,6 +575,7 @@ const AITableGridI18nText = {
574
575
  [AITableGridI18nKey.fieldTypeMultiSelect]: '多选',
575
576
  [AITableGridI18nKey.fieldTypeNumber]: '数字',
576
577
  [AITableGridI18nKey.fieldTypeDate]: '日期',
578
+ [AITableGridI18nKey.fieldTypeCheckbox]: '复选框',
577
579
  [AITableGridI18nKey.fieldTypeMember]: '成员',
578
580
  [AITableGridI18nKey.fieldTypeProgress]: '进度',
579
581
  [AITableGridI18nKey.fieldTypeRate]: '评分',
@@ -663,6 +665,13 @@ const getDefaultFieldOptions = () => {
663
665
  width: AI_TABLE_FIELD_MIDDLE_WIDTH,
664
666
  group: AITableFieldGroup.base
665
667
  },
668
+ {
669
+ type: AITableFieldType.checkbox,
670
+ name: AITableGridI18nKey.fieldTypeCheckbox,
671
+ icon: 'check-square',
672
+ width: AI_TABLE_FIELD_MINI_WIDTH,
673
+ group: AITableFieldGroup.base
674
+ },
666
675
  {
667
676
  type: AITableFieldType.member,
668
677
  name: AITableGridI18nKey.fieldTypeMember,
@@ -960,6 +969,7 @@ const ColumnLinkOutlinedPath = `M10.4238543,5.91643446 C11.7563563,7.48802206 11
960
969
  const ColumnRatingFilledPath = `M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.2a6.8 6.8 0 1 0 0 13.6A6.8 6.8 0 0 0 8 1.2zm.945 2.906l.077.106.064.112.03.069.564 1.46 1.646.1c.952.092 1.365 1.264.752 1.893l-.086.078-1.315 1.056.431 1.533c.295 1.031-.848 1.858-1.643 1.34l-.087-.063-1.315-.85-.006.001-1.309.842c-.85.567-1.903-.163-1.79-1.054l.019-.108.45-1.601-1.321-1.035c-.632-.633-.372-1.673.462-1.973l.123-.038.124-.026 1.571-.094.602-1.55c.364-.793 1.44-.836 1.957-.198zm-.91.815l-.809 2.085-2.253.134L6.8 8.571l-.602 2.139 1.44-.927.71-.087 1.569 1.016-.61-2.172 1.75-1.402-2.219-.134-.803-2.083z`;
961
970
  const ColumnMemberFilledPath = `M10.212 8.416A6.603 6.603 0 0 1 14.5 14.6a.6.6 0 0 1-1.2 0 5.4 5.4 0 0 0-10.8 0 .6.6 0 0 1-1.2 0 6.602 6.602 0 0 1 4.159-6.134 4.1 4.1 0 1 1 4.753-.05zM7.8 8a2.9 2.9 0 1 0 0-5.8 2.9 2.9 0 0 0 0 5.8z`;
962
971
  const ColumnProgressFilledPath = `M11.5 3.5a4.5 4.5 0 1 1 0 9h-7a4.5 4.5 0 1 1 0-9h7zm0 1.2h-7a3.3 3.3 0 0 0 0 6.6h7a3.3 3.3 0 1 0 0-6.6zM8 7.2v1.5H3.75a.75.75 0 0 1 0-1.5H8z`;
972
+ const ColumnCheckboxFilledPath = `M2.2,13.8 L13.8,13.8 L13.8,2.2 L2.2,2.2 L2.2,13.8 Z M13.904,1 C14.509,1 15,1.491 15,2.097 L15,13.903 C15,14.509 14.509,15 13.904,15 L2.096,15 C1.491,15 1,14.509 1,13.903 L1,2.097 C1,1.491 1.491,1 2.096,1 L13.904,1 Z M11.1374,5.4697 C11.3104,5.4697 11.4834,5.5387 11.6094,5.6767 C11.8484,5.9377 11.8304,6.3427 11.5704,6.5807 L7.3134,10.4847 C7.1904,10.5977 7.0354,10.6537 6.8814,10.6537 C6.7084,10.6537 6.5354,10.5827 6.4094,10.4457 C6.4034,10.4397 6.4024,10.4307 6.3964,10.4247 L4.3634,8.2067 C4.1244,7.9477 4.1424,7.5417 4.4024,7.3027 C4.5254,7.1907 4.6804,7.1347 4.8354,7.1347 C5.0084,7.1347 5.1804,7.2047 5.3064,7.3427 L6.9234,9.1057 L10.7054,5.6377 C10.8274,5.5257 10.9834,5.4697 11.1374,5.4697 Z`;
963
973
  const AddOutlinedPath = `M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z`;
964
974
  const MoreStandOutlinedPath = `M8 4.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z`;
965
975
  const StarFill = `M9.186 2.12l1.02 2.769c.073.292.365.437.656.437l2.915.146c1.166.073 1.676 1.53.73 2.26l-2.26 1.821c-.219.146-.291.51-.219.729l.73 2.842c.29 1.093-.948 2.04-1.896 1.384l-2.477-1.603a.79.79 0 0 0-.802 0l-2.478 1.676c-.947.583-2.186-.291-1.894-1.457l.728-2.842c.073-.292 0-.583-.218-.729L1.46 7.731c-.874-.729-.437-2.186.73-2.259l2.914-.146c.292 0 .51-.218.656-.437l1.093-2.77c.365-1.092 1.895-1.092 2.332 0z`;
@@ -1415,7 +1425,7 @@ function getDefaultFieldValue(field) {
1415
1425
  if (isArrayField(field)) {
1416
1426
  return [];
1417
1427
  }
1418
- if (isNumberFiled(field) || isDateFiled(field) || field.type === AITableFieldType.link) {
1428
+ if (isNumberFiled(field) || isDateFiled(field) || field.type === AITableFieldType.link || field.type === AITableFieldType.checkbox) {
1419
1429
  return null;
1420
1430
  }
1421
1431
  return '';
@@ -2730,8 +2740,8 @@ class AttachmentField extends AttachmentFieldBase {
2730
2740
  }
2731
2741
  }
2732
2742
  compare(cellValue1, cellValue2, references, sortKey, options) {
2733
- const value1 = cellValueToSortValue$4(cellValue1, options.field, references, sortKey);
2734
- const value2 = cellValueToSortValue$4(cellValue2, options.field, references, sortKey);
2743
+ const value1 = cellValueToSortValue$5(cellValue1, options.field, references, sortKey);
2744
+ const value2 = cellValueToSortValue$5(cellValue2, options.field, references, sortKey);
2735
2745
  return compareString(value1, value2);
2736
2746
  }
2737
2747
  toFieldValue(plainText, targetField, originData, references) {
@@ -2751,7 +2761,7 @@ function toAttachmentFieldValue(plainText, targetField, originData, references)
2751
2761
  }
2752
2762
  return null;
2753
2763
  }
2754
- function cellValueToSortValue$4(cellValue, field, references, sortKey = 'title') {
2764
+ function cellValueToSortValue$5(cellValue, field, references, sortKey = 'title') {
2755
2765
  let values = [];
2756
2766
  if (cellValue?.length && references) {
2757
2767
  for (let index = 0; index < cellValue.length; index++) {
@@ -2831,8 +2841,8 @@ class DateField extends DateFieldBase {
2831
2841
  }
2832
2842
  }
2833
2843
  compare(cellValue1, cellValue2) {
2834
- const value1 = cellValueToSortValue$3(cellValue1);
2835
- const value2 = cellValueToSortValue$3(cellValue2);
2844
+ const value1 = cellValueToSortValue$4(cellValue1);
2845
+ const value2 = cellValueToSortValue$4(cellValue2);
2836
2846
  return compareNumber(value1, value2);
2837
2847
  }
2838
2848
  toFieldValue(plainText, targetField, originData) {
@@ -2888,7 +2898,7 @@ function toDateFieldValue(plainText, targetField, originData) {
2888
2898
  const value = texts && texts.length ? texts[0].trim() : plainText.trim();
2889
2899
  return transformDateValue(value);
2890
2900
  }
2891
- function cellValueToSortValue$3(cellValue) {
2901
+ function cellValueToSortValue$4(cellValue) {
2892
2902
  if (isUndefinedOrNull(cellValue) || !isDateValid(cellValue)) {
2893
2903
  return 0;
2894
2904
  }
@@ -2927,7 +2937,7 @@ class LinkField extends LinkFieldBase {
2927
2937
  }
2928
2938
  }
2929
2939
  compare(cellValue1, cellValue2) {
2930
- return compareString(cellValueToSortValue$2(cellValue1), cellValueToSortValue$2(cellValue2));
2940
+ return compareString(cellValueToSortValue$3(cellValue1), cellValueToSortValue$3(cellValue2));
2931
2941
  }
2932
2942
  toFieldValue(plainText, targetField, originData) {
2933
2943
  return toLinkFieldValue(plainText, targetField, originData);
@@ -2952,7 +2962,7 @@ function toLinkFieldValue(plainText, targetField, originData) {
2952
2962
  }
2953
2963
  return null;
2954
2964
  }
2955
- function cellValueToSortValue$2(cellValue) {
2965
+ function cellValueToSortValue$3(cellValue) {
2956
2966
  return (cellValue && cellValue.text && cellValue.text.trim()) || null;
2957
2967
  }
2958
2968
 
@@ -2972,8 +2982,8 @@ class MemberField extends MemberFieldBase {
2972
2982
  }
2973
2983
  }
2974
2984
  compare(cellValue1, cellValue2, references, sortKey, options) {
2975
- const value1 = cellValueToSortValue$1(cellValue1, options.field, references, sortKey);
2976
- const value2 = cellValueToSortValue$1(cellValue2, options.field, references, sortKey);
2985
+ const value1 = cellValueToSortValue$2(cellValue1, options.field, references, sortKey);
2986
+ const value2 = cellValueToSortValue$2(cellValue2, options.field, references, sortKey);
2977
2987
  return compareString(value1, value2);
2978
2988
  }
2979
2989
  toFieldValue(plainText, targetField, originData, references) {
@@ -3018,7 +3028,7 @@ function toMemberFieldValue(plainText, targetField, originData, references) {
3018
3028
  }
3019
3029
  return null;
3020
3030
  }
3021
- function cellValueToSortValue$1(cellValue, field, references, sortKey = 'display_name') {
3031
+ function cellValueToSortValue$2(cellValue, field, references, sortKey = 'display_name') {
3022
3032
  let values = [];
3023
3033
  if (cellValue?.length && references) {
3024
3034
  for (let index = 0; index < cellValue.length; index++) {
@@ -3429,8 +3439,8 @@ class TextField extends TextFieldBase {
3429
3439
  }
3430
3440
  }
3431
3441
  compare(cellValue1, cellValue2) {
3432
- const value1 = cellValueToSortValue(cellValue1);
3433
- const value2 = cellValueToSortValue(cellValue2);
3442
+ const value1 = cellValueToSortValue$1(cellValue1);
3443
+ const value2 = cellValueToSortValue$1(cellValue2);
3434
3444
  return compareString(value1, value2);
3435
3445
  }
3436
3446
  toFieldValue(plainText) {
@@ -3440,10 +3450,60 @@ class TextField extends TextFieldBase {
3440
3450
  function toTextFieldValue(plainText) {
3441
3451
  return plainText.trim();
3442
3452
  }
3443
- function cellValueToSortValue(cellValue) {
3453
+ function cellValueToSortValue$1(cellValue) {
3444
3454
  return (cellValue && cellValue.trim()) || null;
3445
3455
  }
3446
3456
 
3457
+ class CheckboxField extends CheckboxFieldBase {
3458
+ constructor() {
3459
+ super([
3460
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.None],
3461
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.CountAll],
3462
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.Filled],
3463
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.Empty],
3464
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.Unique],
3465
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.PercentFilled],
3466
+ DEFAULT_FIELD_STAT_TYPE_MAP[AITableStatType.PercentEmpty]
3467
+ ]);
3468
+ }
3469
+ transformCellValue(cellValue, options) {
3470
+ return transformToCellText(cellValue, options);
3471
+ }
3472
+ isMeetFilter(condition, cellValue) {
3473
+ if (cellValue === null) {
3474
+ if (condition.operation === AITableFilterOperation.empty) {
3475
+ return true;
3476
+ }
3477
+ else {
3478
+ return false;
3479
+ }
3480
+ }
3481
+ const cellTextValue = cellValue;
3482
+ switch (condition.operation) {
3483
+ case AITableFilterOperation.empty:
3484
+ return isEmpty(cellTextValue);
3485
+ case AITableFilterOperation.exists:
3486
+ return !isEmpty(cellTextValue);
3487
+ default:
3488
+ return isMeetFilter(condition, cellTextValue);
3489
+ }
3490
+ }
3491
+ compare(cellValue1, cellValue2) {
3492
+ const value1 = cellValueToSortValue(cellValue1);
3493
+ const value2 = cellValueToSortValue(cellValue2);
3494
+ return compareNumber(value1, value2);
3495
+ }
3496
+ toFieldValue(plainText, targetField, originData) {
3497
+ return null;
3498
+ }
3499
+ }
3500
+ function cellValueToSortValue(cellValue) {
3501
+ if (isUndefinedOrNull(cellValue)) {
3502
+ return 0;
3503
+ }
3504
+ return cellValue ? 1 : 0;
3505
+ }
3506
+
3447
3507
  const FieldModelMap = {
3448
3508
  ...FieldModelBaseMap,
3449
3509
  [AITableFieldType.text]: new TextField(),
@@ -3459,7 +3519,8 @@ const FieldModelMap = {
3459
3519
  [AITableFieldType.progress]: new ProgressField(),
3460
3520
  [AITableFieldType.createdBy]: new MemberField(),
3461
3521
  [AITableFieldType.updatedBy]: new MemberField(),
3462
- [AITableFieldType.attachment]: new AttachmentField()
3522
+ [AITableFieldType.attachment]: new AttachmentField(),
3523
+ [AITableFieldType.checkbox]: new CheckboxField()
3463
3524
  };
3464
3525
 
3465
3526
  const aiTableFragmentAttribute = 'ai-table-fragment';
@@ -6176,10 +6237,29 @@ class CellDrawer extends Drawer {
6176
6237
  return this.renderCellMember(render, ctx);
6177
6238
  case AITableFieldType.attachment:
6178
6239
  return this.renderCellAttachment(render, ctx);
6240
+ case AITableFieldType.checkbox:
6241
+ return this.renderCellCheckbox(render, ctx);
6179
6242
  default:
6180
6243
  return null;
6181
6244
  }
6182
6245
  }
6246
+ renderCellCheckbox(render, ctx) {
6247
+ const { x, y, field, columnWidth, transformValue, isCoverCell } = render;
6248
+ if (isCoverCell) {
6249
+ return;
6250
+ }
6251
+ const isChecked = !isEmpty(transformValue) && !!transformValue;
6252
+ const checkboxSize = AI_TABLE_ICON_COMMON_SIZE;
6253
+ const checkboxX = x + (columnWidth - checkboxSize) / 2;
6254
+ const checkboxY = y + (AI_TABLE_ROW_BLANK_HEIGHT - checkboxSize) / 2;
6255
+ this.path({
6256
+ x: checkboxX,
6257
+ y: checkboxY,
6258
+ size: 22,
6259
+ data: isChecked ? Check : Unchecked,
6260
+ fill: isChecked ? Colors.primary : Colors.gray300
6261
+ });
6262
+ }
6183
6263
  renderCellText(render, ctx) {
6184
6264
  const { x, y, transformValue, field, columnWidth, style } = render;
6185
6265
  if (isUndefinedOrNull(transformValue)) {
@@ -6205,7 +6285,7 @@ class CellDrawer extends Drawer {
6205
6285
  const renderY = y + AI_TABLE_ROW_BLANK_HEIGHT / 2;
6206
6286
  const textDecoration = DEFAULT_TEXT_DECORATION;
6207
6287
  if (isNumberField) {
6208
- renderText = String(renderText);
6288
+ renderText = numberFormat(Number(renderText));
6209
6289
  const { text } = this.textEllipsis({
6210
6290
  text: renderText,
6211
6291
  maxWidth: columnWidth && textMaxWidth,
@@ -7023,12 +7103,14 @@ const createCells = (config) => {
7023
7103
  references,
7024
7104
  isActive: isSelectedField(fieldId, aiTable),
7025
7105
  style,
7026
- colors
7106
+ colors,
7107
+ isCoverCell: false
7027
7108
  };
7028
7109
  // hover 组件渲染时,底层的 cell 渲染为空
7029
7110
  if (coverCell && coverCell.recordId === recordId && coverCell.fieldId === fieldId) {
7030
7111
  render.cellValue = '';
7031
7112
  render.transformValue = '';
7113
+ render.isCoverCell = true;
7032
7114
  }
7033
7115
  cellDrawer.initStyle(field, style);
7034
7116
  // 最后一列,且单元格内容存在,需要裁剪内容,以防止文本溢出单元格边界
@@ -7115,6 +7197,7 @@ const isHoverRecord = (isHover, targetName) => {
7115
7197
  class AITableIcon {
7116
7198
  constructor() {
7117
7199
  this.config = input.required();
7200
+ this.koClick = output();
7118
7201
  this.groupConfig = computed(() => {
7119
7202
  const { x, y, listening } = this.config();
7120
7203
  return { x, y, listening };
@@ -7166,8 +7249,8 @@ class AITableIcon {
7166
7249
  });
7167
7250
  }
7168
7251
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7169
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableIcon, isStandalone: true, selector: "ai-table-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
7170
- <ko-group [config]="groupConfig()">
7252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableIcon, isStandalone: true, selector: "ai-table-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { koClick: "koClick" }, ngImport: i0, template: `
7253
+ <ko-group [config]="groupConfig()" (koClick)="koClick.emit($event)">
7171
7254
  <ko-rect [config]="squareShapeConfig()"></ko-rect>
7172
7255
  <ko-path [config]="iconConfig()"></ko-path>
7173
7256
  </ko-group>
@@ -7178,7 +7261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
7178
7261
  args: [{
7179
7262
  selector: 'ai-table-icon',
7180
7263
  template: `
7181
- <ko-group [config]="groupConfig()">
7264
+ <ko-group [config]="groupConfig()" (koClick)="koClick.emit($event)">
7182
7265
  <ko-rect [config]="squareShapeConfig()"></ko-rect>
7183
7266
  <ko-path [config]="iconConfig()"></ko-path>
7184
7267
  </ko-group>
@@ -7248,7 +7331,7 @@ class AITableAddField {
7248
7331
  }
7249
7332
  </ko-group>
7250
7333
  </ko-group>
7251
- `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7334
+ `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7252
7335
  }
7253
7336
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableAddField, decorators: [{
7254
7337
  type: Component,
@@ -7342,6 +7425,9 @@ class AITableFieldIcon {
7342
7425
  case AITableFieldType.attachment:
7343
7426
  data = AttachmentPath;
7344
7427
  break;
7428
+ case AITableFieldType.checkbox:
7429
+ data = ColumnCheckboxFilledPath;
7430
+ break;
7345
7431
  }
7346
7432
  return {
7347
7433
  x,
@@ -7355,7 +7441,7 @@ class AITableFieldIcon {
7355
7441
  });
7356
7442
  }
7357
7443
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7358
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableFieldIcon, isStandalone: true, selector: "ai-table-field-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: ` <ai-table-icon [config]="iconConfig()"></ai-table-icon> `, isInline: true, dependencies: [{ kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7444
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableFieldIcon, isStandalone: true, selector: "ai-table-field-icon", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: ` <ai-table-icon [config]="iconConfig()"></ai-table-icon> `, isInline: true, dependencies: [{ kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7359
7445
  }
7360
7446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldIcon, decorators: [{
7361
7447
  type: Component,
@@ -7481,7 +7567,7 @@ class AITableFieldHead {
7481
7567
  </ko-group>
7482
7568
  <ko-line [config]="fieldOpacityLineConfig()"></ko-line>
7483
7569
  </ko-group>
7484
- `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldIcon, selector: "ai-table-field-icon", inputs: ["config"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7570
+ `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldIcon, selector: "ai-table-field-icon", inputs: ["config"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7485
7571
  }
7486
7572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldHead, decorators: [{
7487
7573
  type: Component,
@@ -7787,7 +7873,7 @@ class AITableFrozenColumnHeads {
7787
7873
  @for (config of headConfigs(); track $index) {
7788
7874
  <ai-table-field-head [config]="config"></ai-table-field-head>
7789
7875
  }
7790
- `, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldHead, selector: "ai-table-field-head", inputs: ["config"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7876
+ `, isInline: true, dependencies: [{ kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableFieldHead, selector: "ai-table-field-head", inputs: ["config"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7791
7877
  }
7792
7878
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFrozenColumnHeads, decorators: [{
7793
7879
  type: Component,
@@ -7985,7 +8071,7 @@ class AITableHoverRowHeads {
7985
8071
  }
7986
8072
  </ko-group>
7987
8073
  }
7988
- `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8074
+ `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: KoShape, selector: "ko-shape, ko-circle, ko-label, ko-rect, ko-ellipse, ko-wedge, ko-line, ko-sprite, ko-image, ko-text, ko-text-path, ko-star, ko-ring, ko-arc, ko-tag, ko-path, ko-regular-polygon, ko-arrow, ko-transformer", inputs: ["config"], outputs: ["koMouseover", "koMousemove", "koMouseout", "koMouseenter", "koMouseleave", "koMousedown", "koMouseup", "koWheel", "koContextmenu", "koClick", "koDblclick", "koTouchstart", "koTouchmove", "koTouchend", "koTap", "koDbltap", "koDragstart", "koDragmove", "koDragend"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7989
8075
  }
7990
8076
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableHoverRowHeads, decorators: [{
7991
8077
  type: Component,
@@ -8462,7 +8548,7 @@ class AITableScrollableGroup {
8462
8548
  if (this.isDraggingVertical()) {
8463
8549
  return null;
8464
8550
  }
8465
- const { scrollbarSize = 12, scrollbarColor = '#c0c0c0' } = this.config();
8551
+ const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
8466
8552
  const { height, contentHeight } = this.config();
8467
8553
  const thumbHeight = this.verticalThumbHeight();
8468
8554
  const thumbY = (this.scrollY() / (contentHeight - height)) * (this.verticalScrollbarHeight() - thumbHeight);
@@ -8472,6 +8558,7 @@ class AITableScrollableGroup {
8472
8558
  width: scrollbarSize - 2,
8473
8559
  height: thumbHeight,
8474
8560
  fill: scrollbarColor,
8561
+ opacity: scrollbarOpacity,
8475
8562
  cornerRadius: 6,
8476
8563
  draggable: true,
8477
8564
  dragBoundFunc: (pos) => {
@@ -8500,7 +8587,7 @@ class AITableScrollableGroup {
8500
8587
  if (this.isDraggingHorizontal()) {
8501
8588
  return null;
8502
8589
  }
8503
- const { scrollbarSize = 12, scrollbarColor = '#c0c0c0' } = this.config();
8590
+ const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
8504
8591
  const { width, contentWidth } = this.config();
8505
8592
  const thumbWidth = this.horizontalThumbWidth();
8506
8593
  const thumbX = (this.scrollX() / (contentWidth - width)) * (this.horizontalScrollbarHeight() - thumbWidth);
@@ -8510,6 +8597,7 @@ class AITableScrollableGroup {
8510
8597
  width: thumbWidth,
8511
8598
  height: scrollbarSize - 2,
8512
8599
  fill: scrollbarColor,
8600
+ opacity: scrollbarOpacity,
8513
8601
  cornerRadius: 6,
8514
8602
  draggable: true,
8515
8603
  dragBoundFunc: (pos) => {
@@ -9021,6 +9109,7 @@ class AITableFieldStat {
9021
9109
  this.hover = output();
9022
9110
  this.isActive = signal(false);
9023
9111
  this.isHover = signal(false);
9112
+ this.isShowSelectedCount = false;
9024
9113
  this.availableTextWidth = computed(() => {
9025
9114
  const { width } = this.config();
9026
9115
  return width - AI_TABLE_ACTION_COMMON_SIZE - AI_TABLE_CELL_PADDING;
@@ -9114,12 +9203,14 @@ class AITableFieldStat {
9114
9203
  else {
9115
9204
  formatString = getI18nTextByKey(this.aiTable(), AITableGridI18nKey.selectedCellsCount);
9116
9205
  }
9206
+ this.isShowSelectedCount = true;
9117
9207
  resultString = formatString.replace('{count}', `${selectedInfo.selectedCount.toString()}`);
9118
9208
  statValue = selectedInfo.selectedCount.toString();
9119
9209
  }
9120
9210
  else {
9211
+ this.isShowSelectedCount = false;
9121
9212
  statValue = fieldModel.stat(records, this.options());
9122
- if (!isNil(statValue)) {
9213
+ if (!isUndefinedOrNull(statValue)) {
9123
9214
  formatString = fieldModel.getFormat(this.field(), this.aiTable());
9124
9215
  if (formatString) {
9125
9216
  resultString = formatString.replace('{{statValue}}', `${statValue.toString()}`);
@@ -9194,7 +9285,13 @@ class AITableFieldStat {
9194
9285
  });
9195
9286
  previousColor = fill;
9196
9287
  }
9197
- let startX = width - AI_TABLE_ACTION_COMMON_SIZE - totalWidth;
9288
+ let startX = width - totalWidth;
9289
+ if (!this.isShowSelectedCount) {
9290
+ startX -= AI_TABLE_ACTION_COMMON_SIZE;
9291
+ }
9292
+ else {
9293
+ startX -= AI_TABLE_CELL_PADDING;
9294
+ }
9198
9295
  result.forEach((item) => {
9199
9296
  item.x = startX;
9200
9297
  startX += item.width;
@@ -9283,9 +9380,9 @@ class AITableFieldStat {
9283
9380
  });
9284
9381
  ref.componentInstance.menuClick.subscribe((event) => {
9285
9382
  this.isActive.set(false);
9286
- actions.setField({
9287
- ...event.field,
9288
- stat_type: event.menu.type
9383
+ actions.setFieldStatType({
9384
+ path: [field._id],
9385
+ statType: event.menu.type
9289
9386
  });
9290
9387
  });
9291
9388
  ref.afterClosed().subscribe(() => {
@@ -9308,11 +9405,13 @@ class AITableFieldStat {
9308
9405
  @for (textConfig of textsConfig(); track $index) {
9309
9406
  <ai-table-text [config]="textConfig"></ai-table-text>
9310
9407
  }
9311
- <ai-table-icon [config]="iconConfig()"></ai-table-icon>
9408
+ @if (!isShowSelectedCount) {
9409
+ <ai-table-icon [config]="iconConfig()"></ai-table-icon>
9410
+ }
9312
9411
  }
9313
9412
  </ko-group>
9314
9413
  </ko-group>
9315
- `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"] }, { kind: "component", type: AITableBackground, selector: "ai-table-background", inputs: ["config", "isActive", "isHover"], outputs: ["koClick", "hover", "koMouseenter", "koMouseleave", "isHoverChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9414
+ `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }, { kind: "component", type: AITableBackground, selector: "ai-table-background", inputs: ["config", "isActive", "isHover"], outputs: ["koClick", "hover", "koMouseenter", "koMouseleave", "isHoverChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9316
9415
  }
9317
9416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldStat, decorators: [{
9318
9417
  type: Component,
@@ -9332,7 +9431,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
9332
9431
  @for (textConfig of textsConfig(); track $index) {
9333
9432
  <ai-table-text [config]="textConfig"></ai-table-text>
9334
9433
  }
9335
- <ai-table-icon [config]="iconConfig()"></ai-table-icon>
9434
+ @if (!isShowSelectedCount) {
9435
+ <ai-table-icon [config]="iconConfig()"></ai-table-icon>
9436
+ }
9336
9437
  }
9337
9438
  </ko-group>
9338
9439
  </ko-group>
@@ -10116,11 +10217,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
10116
10217
  }]
10117
10218
  }] });
10118
10219
 
10220
+ class AITableCellCheckbox extends CoverCellBase {
10221
+ constructor() {
10222
+ super(...arguments);
10223
+ this.isChecked = computed(() => {
10224
+ const { render } = this.config();
10225
+ const { transformValue } = render;
10226
+ return !isEmpty(transformValue) && !!transformValue;
10227
+ });
10228
+ this.checkbox = computed(() => {
10229
+ const { render, field, recordId, readonly } = this.config();
10230
+ if (render) {
10231
+ const { columnWidth } = render;
10232
+ const currentX = AI_TABLE_OFFSET + (columnWidth - AI_TABLE_ICON_COMMON_SIZE) / 2;
10233
+ let currentY = (AI_TABLE_ROW_BLANK_HEIGHT - AI_TABLE_ICON_COMMON_SIZE) / 2 + AI_TABLE_OFFSET;
10234
+ return {
10235
+ name: generateTargetName({
10236
+ targetName: AI_TABLE_CELL,
10237
+ fieldId: field._id,
10238
+ recordId,
10239
+ mouseStyle: readonly ? 'default' : 'pointer'
10240
+ }),
10241
+ x: currentX,
10242
+ y: currentY,
10243
+ type: this.isChecked() ? AITableCheckType.checked : AITableCheckType.unchecked,
10244
+ fill: this.isChecked() ? Colors.primary : Colors.gray300,
10245
+ width: AI_TABLE_ICON_COMMON_SIZE,
10246
+ height: AI_TABLE_ICON_COMMON_SIZE,
10247
+ listening: true
10248
+ };
10249
+ }
10250
+ return null;
10251
+ });
10252
+ }
10253
+ static { this.fieldType = AITableFieldType.checkbox; }
10254
+ switchChecked() {
10255
+ const { actions } = this.config();
10256
+ actions.updateFieldValues([
10257
+ {
10258
+ value: !this.isChecked(),
10259
+ path: [this.config().recordId, this.config().field._id]
10260
+ }
10261
+ ]);
10262
+ }
10263
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
10264
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: AITableCellCheckbox, isStandalone: true, selector: "ai-table-checkbox", usesInheritance: true, ngImport: i0, template: `
10265
+ <ko-group>
10266
+ <ai-table-icon [config]="checkbox()" (koClick)="switchChecked()"></ai-table-icon>
10267
+ </ko-group>
10268
+ `, isInline: true, dependencies: [{ kind: "component", type: KoContainer, selector: "ko-layer, ko-fastlayer, ko-group" }, { kind: "component", type: AITableIcon, selector: "ai-table-icon", inputs: ["config"], outputs: ["koClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10269
+ }
10270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellCheckbox, decorators: [{
10271
+ type: Component,
10272
+ args: [{
10273
+ selector: 'ai-table-checkbox',
10274
+ template: `
10275
+ <ko-group>
10276
+ <ai-table-icon [config]="checkbox()" (koClick)="switchChecked()"></ai-table-icon>
10277
+ </ko-group>
10278
+ `,
10279
+ imports: [KoContainer, AITableIcon],
10280
+ changeDetection: ChangeDetectionStrategy.OnPush
10281
+ }]
10282
+ }] });
10283
+
10119
10284
  // TODO: components下的cells组件考虑移出 components ,这些组件都属于
10120
10285
 
10121
10286
  var cellComponents = /*#__PURE__*/Object.freeze({
10122
10287
  __proto__: null,
10123
10288
  AITableCellAttachment: AITableCellAttachment,
10289
+ AITableCellCheckbox: AITableCellCheckbox,
10124
10290
  AITableCellLink: AITableCellLink,
10125
10291
  AITableCellProgress: AITableCellProgress,
10126
10292
  AITableCellRate: AITableCellRate,
@@ -11092,6 +11258,7 @@ class AITableGridBase {
11092
11258
  this.aiUpdateFieldValues = output();
11093
11259
  this.aiSetField = output();
11094
11260
  this.aiSetFieldWidth = output();
11261
+ this.aiSetFieldStatType = output();
11095
11262
  this.aiMoveRecords = output();
11096
11263
  this.aiClick = output();
11097
11264
  this.aiDbClick = output();
@@ -11198,7 +11365,7 @@ class AITableGridBase {
11198
11365
  }
11199
11366
  }
11200
11367
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableGridBase, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
11201
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableGridBase, isStandalone: true, selector: "ai-table-grid-base", inputs: { aiRecords: { classPropertyName: "aiRecords", publicName: "aiRecords", isSignal: true, isRequired: true, transformFunction: null }, aiFields: { classPropertyName: "aiFields", publicName: "aiFields", isSignal: true, isRequired: true, transformFunction: null }, aiFieldsSizeMap: { classPropertyName: "aiFieldsSizeMap", publicName: "aiFieldsSizeMap", isSignal: true, isRequired: true, transformFunction: null }, aiContextMenuItems: { classPropertyName: "aiContextMenuItems", publicName: "aiContextMenuItems", isSignal: true, isRequired: false, transformFunction: null }, aiFieldConfig: { classPropertyName: "aiFieldConfig", publicName: "aiFieldConfig", isSignal: true, isRequired: false, transformFunction: null }, aiReadonly: { classPropertyName: "aiReadonly", publicName: "aiReadonly", isSignal: true, isRequired: false, transformFunction: null }, aiPlugins: { classPropertyName: "aiPlugins", publicName: "aiPlugins", isSignal: true, isRequired: false, transformFunction: null }, aiMaxFields: { classPropertyName: "aiMaxFields", publicName: "aiMaxFields", isSignal: true, isRequired: false, transformFunction: null }, aiMaxRecords: { classPropertyName: "aiMaxRecords", publicName: "aiMaxRecords", isSignal: true, isRequired: false, transformFunction: null }, aiMaxSelectOptions: { classPropertyName: "aiMaxSelectOptions", publicName: "aiMaxSelectOptions", isSignal: true, isRequired: false, transformFunction: null }, aiReferences: { classPropertyName: "aiReferences", publicName: "aiReferences", isSignal: true, isRequired: true, transformFunction: null }, aiBuildRenderDataFn: { classPropertyName: "aiBuildRenderDataFn", publicName: "aiBuildRenderDataFn", isSignal: true, isRequired: false, transformFunction: null }, aiGetI18nTextByKey: { classPropertyName: "aiGetI18nTextByKey", publicName: "aiGetI18nTextByKey", isSignal: true, isRequired: false, transformFunction: null }, aiKeywords: { classPropertyName: "aiKeywords", publicName: "aiKeywords", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { aiRecords: "aiRecordsChange", aiFields: "aiFieldsChange", aiFieldsSizeMap: "aiFieldsSizeMapChange", aiTableInitialized: "aiTableInitialized", aiAddRecord: "aiAddRecord", aiAddField: "aiAddField", aiMoveField: "aiMoveField", aiUpdateFieldValues: "aiUpdateFieldValues", aiSetField: "aiSetField", aiSetFieldWidth: "aiSetFieldWidth", aiMoveRecords: "aiMoveRecords", aiClick: "aiClick", aiDbClick: "aiDbClick" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11368
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableGridBase, isStandalone: true, selector: "ai-table-grid-base", inputs: { aiRecords: { classPropertyName: "aiRecords", publicName: "aiRecords", isSignal: true, isRequired: true, transformFunction: null }, aiFields: { classPropertyName: "aiFields", publicName: "aiFields", isSignal: true, isRequired: true, transformFunction: null }, aiFieldsSizeMap: { classPropertyName: "aiFieldsSizeMap", publicName: "aiFieldsSizeMap", isSignal: true, isRequired: true, transformFunction: null }, aiContextMenuItems: { classPropertyName: "aiContextMenuItems", publicName: "aiContextMenuItems", isSignal: true, isRequired: false, transformFunction: null }, aiFieldConfig: { classPropertyName: "aiFieldConfig", publicName: "aiFieldConfig", isSignal: true, isRequired: false, transformFunction: null }, aiReadonly: { classPropertyName: "aiReadonly", publicName: "aiReadonly", isSignal: true, isRequired: false, transformFunction: null }, aiPlugins: { classPropertyName: "aiPlugins", publicName: "aiPlugins", isSignal: true, isRequired: false, transformFunction: null }, aiMaxFields: { classPropertyName: "aiMaxFields", publicName: "aiMaxFields", isSignal: true, isRequired: false, transformFunction: null }, aiMaxRecords: { classPropertyName: "aiMaxRecords", publicName: "aiMaxRecords", isSignal: true, isRequired: false, transformFunction: null }, aiMaxSelectOptions: { classPropertyName: "aiMaxSelectOptions", publicName: "aiMaxSelectOptions", isSignal: true, isRequired: false, transformFunction: null }, aiReferences: { classPropertyName: "aiReferences", publicName: "aiReferences", isSignal: true, isRequired: true, transformFunction: null }, aiBuildRenderDataFn: { classPropertyName: "aiBuildRenderDataFn", publicName: "aiBuildRenderDataFn", isSignal: true, isRequired: false, transformFunction: null }, aiGetI18nTextByKey: { classPropertyName: "aiGetI18nTextByKey", publicName: "aiGetI18nTextByKey", isSignal: true, isRequired: false, transformFunction: null }, aiKeywords: { classPropertyName: "aiKeywords", publicName: "aiKeywords", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { aiRecords: "aiRecordsChange", aiFields: "aiFieldsChange", aiFieldsSizeMap: "aiFieldsSizeMapChange", aiTableInitialized: "aiTableInitialized", aiAddRecord: "aiAddRecord", aiAddField: "aiAddField", aiMoveField: "aiMoveField", aiUpdateFieldValues: "aiUpdateFieldValues", aiSetField: "aiSetField", aiSetFieldWidth: "aiSetFieldWidth", aiSetFieldStatType: "aiSetFieldStatType", aiMoveRecords: "aiMoveRecords", aiClick: "aiClick", aiDbClick: "aiDbClick" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
11202
11369
  }
11203
11370
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableGridBase, decorators: [{
11204
11371
  type: Component,
@@ -11985,6 +12152,9 @@ class AITableGrid extends AITableGridBase {
11985
12152
  setField: (field) => {
11986
12153
  this.aiSetField.emit(field);
11987
12154
  },
12155
+ setFieldStatType: (data) => {
12156
+ this.aiSetFieldStatType.emit(data);
12157
+ },
11988
12158
  addField: (data) => {
11989
12159
  this.aiAddField.emit(data);
11990
12160
  },
@@ -12719,5 +12889,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
12719
12889
  * Generated bundle index. Do not edit.
12720
12890
  */
12721
12891
 
12722
- export { AITable, AITableActionIcon, AITableAddField, AITableAreaType, AITableAvatarSize, AITableAvatarType, AITableBackground, AITableCellAttachment, AITableCellLink, AITableCellProgress, AITableCellRate, AITableCellRichText, AITableCells, AITableCheckType, AITableColumnHeads, AITableContextMenu, AITableDomGrid, AITableFieldHead, AITableFieldIcon, AITableFieldIsSameOptionPipe, AITableFieldSetting, AITableFrozenCells, AITableFrozenColumnHeads, AITableFrozenFieldShadow, AITableFrozenPlaceholderCells, AITableGrid, AITableGridEventService, AITableGridFieldService, AITableGridI18nKey, AITableGridI18nText, AITableGridSelectionService, AITableHoverRowHeads, AITableIcon, AITableMemberType, AITableMouseDownType, AITableOtherRows, AITablePlaceholderCells, AITableQueries, AITableRenderer, AITableRowType, AITableScrollableGroup, AITableSelectAllState, AITableTextComponent, AI_TABLE_ACTION_COMMON_RADIUS, AI_TABLE_ACTION_COMMON_RIGHT_PADDING, AI_TABLE_ACTION_COMMON_SIZE, AI_TABLE_AUTO_SCROLL_BOTTOM_THRESHOLD, AI_TABLE_AUTO_SCROLL_LEFT_THRESHOLD, AI_TABLE_AUTO_SCROLL_RIGHT_THRESHOLD, AI_TABLE_AUTO_SCROLL_TOP_THRESHOLD, AI_TABLE_BLANK, AI_TABLE_CELL, AI_TABLE_CELL_ACTIVE_BORDER_WIDTH, AI_TABLE_CELL_ADD_ITEM_BUTTON_SIZE, AI_TABLE_CELL_ATTACHMENT_ADD, AI_TABLE_CELL_ATTACHMENT_FILE, AI_TABLE_CELL_BORDER, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE_OFFSET, AI_TABLE_CELL_EDIT, AI_TABLE_CELL_EMOJI_PADDING, AI_TABLE_CELL_EMOJI_SIZE, AI_TABLE_CELL_FIELD_ITEM_HEIGHT, AI_TABLE_CELL_LINE_BORDER, AI_TABLE_CELL_MAX_ROW_COUNT, AI_TABLE_CELL_MEMBER_ITEM_HEIGHT, AI_TABLE_CELL_MEMBER_ITEM_PADDING, AI_TABLE_CELL_MEMBER_MAX_HEIGHT, AI_TABLE_CELL_MULTI_DOT_RADIUS, AI_TABLE_CELL_MULTI_ITEM_MARGIN_LEFT, AI_TABLE_CELL_MULTI_ITEM_MARGIN_TOP, AI_TABLE_CELL_MULTI_ITEM_MIN_WIDTH, AI_TABLE_CELL_MULTI_PADDING_LEFT, AI_TABLE_CELL_MULTI_PADDING_TOP, AI_TABLE_CELL_PADDING, AI_TABLE_COMMON_FONT_SIZE, AI_TABLE_DEFAULT_COLUMN_WIDTH, AI_TABLE_DOT_RADIUS, AI_TABLE_FIELD_ADD_BUTTON, AI_TABLE_FIELD_ADD_BUTTON_WIDTH, AI_TABLE_FIELD_HEAD, AI_TABLE_FIELD_HEAD_HEIGHT, AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE, AI_TABLE_FIELD_HEAD_MORE, AI_TABLE_FIELD_HEAD_OPACITY_LINE, AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX, AI_TABLE_FIELD_HEAD_TEXT_MIN_WIDTH, AI_TABLE_FIELD_ITEM_MARGIN_RIGHT, AI_TABLE_FIELD_MAX_WIDTH, AI_TABLE_FIELD_MIDDLE_WIDTH, AI_TABLE_FIELD_MINI_WIDTH, AI_TABLE_FIELD_MIN_WIDTH, AI_TABLE_FIELD_STAT_BG, AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT, AI_TABLE_FIELD_STAT_INNER_HEIGHT, AI_TABLE_FILE_ICON_ITEM_HEIGHT, AI_TABLE_FILE_ICON_SIZE, AI_TABLE_FILL_HANDLE, AI_TABLE_GRID_FIELD_SERVICE_MAP, AI_TABLE_ICON_COMMON_SIZE, AI_TABLE_INDEX_FIELD_TEXT, AI_TABLE_MEMBER_AVATAR_SIZE, AI_TABLE_MEMBER_ITEM_AVATAR_MARGIN_RIGHT, AI_TABLE_MEMBER_ITEM_PADDING_RIGHT, AI_TABLE_MIN_TEXT_WIDTH, AI_TABLE_OFFSET, AI_TABLE_OPTION_ITEM_FONT_SIZE, AI_TABLE_OPTION_ITEM_HEIGHT, AI_TABLE_OPTION_ITEM_PADDING, AI_TABLE_OPTION_ITEM_RADIUS, AI_TABLE_OPTION_MULTI_ITEM_FONT_SIZE, AI_TABLE_PIECE_RADIUS, AI_TABLE_PIECE_WIDTH, AI_TABLE_POPOVER_LEFT_OFFSET, AI_TABLE_PREVENT_CLEAR_SELECTION_CLASS, AI_TABLE_PROGRESS_BAR_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_WIDTH, AI_TABLE_PROGRESS_BAR_RADIUS, AI_TABLE_PROGRESS_TEXT_WIDTH, AI_TABLE_RATE_MAX, AI_TABLE_ROW_ADD_BUTTON, AI_TABLE_ROW_BLANK_HEIGHT, AI_TABLE_ROW_DRAG, AI_TABLE_ROW_DRAG_ICON_WIDTH, AI_TABLE_ROW_HEAD, AI_TABLE_ROW_HEAD_SIZE, AI_TABLE_ROW_HEAD_WIDTH, AI_TABLE_ROW_HEAD_WIDTH_AND_DRAG_ICON_WIDTH, AI_TABLE_ROW_HEIGHT, AI_TABLE_ROW_SELECT_CHECKBOX, AI_TABLE_SCROLL_BAR_PADDING, AI_TABLE_SCROLL_BAR_SIZE, AI_TABLE_TAG_FONT_SIZE, AI_TABLE_TAG_PADDING, AI_TABLE_TEXT_GAP, AI_TABLE_TEXT_LINE_HEIGHT, AbstractEditCellEditor, AddOutlinedPath, AngleDownPath, AttachmentField, AttachmentPath, CellDrawer, Check, Colors, ColumnCalendarFilledPath, ColumnLinkOutlinedPath, ColumnMemberFilledPath, ColumnMultipleFillPath, ColumnNumberFilledPath, ColumnProgressFilledPath, ColumnRatingFilledPath, ColumnRichTextFilledPath, ColumnSelectFilledPath, ColumnTextFilledPath, Coordinate, CoverCellBase, DBL_CLICK_EDIT_TYPE, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_FONT_WEIGHT, DEFAULT_ICON_SHAPE, DEFAULT_ICON_SIZE, DEFAULT_POINT_POSITION, DEFAULT_SCROLL_STATE, DEFAULT_TEXT_ALIGN_CENTER, DEFAULT_TEXT_ALIGN_LEFT, DEFAULT_TEXT_ALIGN_RIGHT, DEFAULT_TEXT_DECORATION, DEFAULT_TEXT_ELLIPSIS, DEFAULT_TEXT_FILL, DEFAULT_TEXT_LINE_HEIGHT, DEFAULT_TEXT_LISTENING, DEFAULT_TEXT_MAX_CACHE, DEFAULT_TEXT_MAX_HEIGHT, DEFAULT_TEXT_SCALE, DEFAULT_TEXT_TRANSFORMS_ENABLED, DEFAULT_TEXT_VERTICAL_ALIGN_MIDDLE, DEFAULT_TEXT_VERTICAL_ALIGN_TOP, DEFAULT_TEXT_WRAP, DEFAULT_WRAP_TEXT_MAX_ROW, DateCellEditorComponent, DateField, DepartmentOutlinedPath, Drawer, EditPath, FONT_SIZE_SM, FieldModelMap, IconPathMap, IsSelectRecordPipe, KO_CONTAINER_TOKEN, KoComponent, KoContainer, KoShape, KoShapeTypes, KoStage, LinkCellEditorComponent, LinkField, MIN_COLUMN_WIDTH, MemberField, MemberSettingPipe, MoreStandOutlinedPath, NumberCellEditorComponent, NumberField, ProgressField, RateField, RendererContext, RichTextField, RowDragPath, RowHeight, SelectCellEditorComponent, SelectField, SelectOptionComponent, SelectOptionPipe, SelectOptionsPipe, SelectSettingPipe, StarFill, TextCellEditorComponent, TextField, TextMeasure, Unchecked, UserPipe, WebOutlinedPath, aiTableFragmentAttribute, aiTableImageConfigToKonvaConfig, aiTableRectConfigToKonvaConfig, aiTableTextConfigToKonvaConfig, applyNodeProps, buildClipboardData, buildGridData, buildGridLinearRows, castToString, cellDrawer, clearCells, compareNumber, compareOption, compareString, createAITable, createActiveCellBorder, createCells, createDefaultField, createDefaultFieldName, createListener, dragFillHighlightArea, drawer, expandCell, extractLinkUrl, extractText, generateNewName, generateTargetName, getAvatarBgColor, getAvatarShortName, getCellEditorBorderSpace, getCellHorizontalPosition, getColumnIndicesSizeMap, getCoverCell, getDateFieldValues, getDefaultFieldOptions, getDefaultFieldValue, getDefaultI18nTextByKey, getDetailByTargetName, getEditorBoxOffset, getEditorSpace, getFieldOptionByField, getFieldOptionMap, getFieldOptions, getFieldValue, getFileThumbnailSvgString, getFillDirection, getHoverEditorBoxOffset, getHoverEditorSpace, getI18nTextByKey, getMousePosition, getName, getOptionsByFieldAndRecords, getPlaceHolderCellsConfigs, getStartAndEndCell, getSystemFieldValue, getTargetName, getTextWidth, getVisibleRangeInfo, graphemeSplitter, handleMouseStyle, hasIntersect, idCreator, idsCreator, imageCache, isActiveCell, isArrayField, isCellMatchKeywords, isClipboardReadSupported, isClipboardReadTextSupported, isClipboardWriteSupported, isClipboardWriteTextSupported, isDateFiled, isEmptyOrNot, isMac, isMeetFilter, isNumberFiled, isSameFieldOption, isSelectedField, isSystemField, isVirtualKey, isWindows, isWindowsOS, isWithinFrozenColumnBoundary, performFill, processPastedValueForSelect, readFromClipboard, scrollMax, setMouseStyle, shortIdCreator, shortIdsCreator, statDateRangeOfDays, statDateRangeOfMonths, statEarliestTime, statLatestTime, stringInclude, textDataCache, toAttachmentFieldValue, toDateFieldValue, toLinkFieldValue, toMemberFieldValue, toNumberFieldValue, toProgressFieldValue, toRateFieldValue, toRichTextFieldValue, toSelectFieldValue, toTextFieldValue, transformToCellText, updatePicture, writeToAITable, writeToClipboard, zhIntlCollator };
12892
+ export { AITable, AITableActionIcon, AITableAddField, AITableAreaType, AITableAvatarSize, AITableAvatarType, AITableBackground, AITableCellAttachment, AITableCellCheckbox, AITableCellLink, AITableCellProgress, AITableCellRate, AITableCellRichText, AITableCells, AITableCheckType, AITableColumnHeads, AITableContextMenu, AITableDomGrid, AITableFieldHead, AITableFieldIcon, AITableFieldIsSameOptionPipe, AITableFieldSetting, AITableFrozenCells, AITableFrozenColumnHeads, AITableFrozenFieldShadow, AITableFrozenPlaceholderCells, AITableGrid, AITableGridEventService, AITableGridFieldService, AITableGridI18nKey, AITableGridI18nText, AITableGridSelectionService, AITableHoverRowHeads, AITableIcon, AITableMemberType, AITableMouseDownType, AITableOtherRows, AITablePlaceholderCells, AITableQueries, AITableRenderer, AITableRowType, AITableScrollableGroup, AITableSelectAllState, AITableTextComponent, AI_TABLE_ACTION_COMMON_RADIUS, AI_TABLE_ACTION_COMMON_RIGHT_PADDING, AI_TABLE_ACTION_COMMON_SIZE, AI_TABLE_AUTO_SCROLL_BOTTOM_THRESHOLD, AI_TABLE_AUTO_SCROLL_LEFT_THRESHOLD, AI_TABLE_AUTO_SCROLL_RIGHT_THRESHOLD, AI_TABLE_AUTO_SCROLL_TOP_THRESHOLD, AI_TABLE_BLANK, AI_TABLE_CELL, AI_TABLE_CELL_ACTIVE_BORDER_WIDTH, AI_TABLE_CELL_ADD_ITEM_BUTTON_SIZE, AI_TABLE_CELL_ATTACHMENT_ADD, AI_TABLE_CELL_ATTACHMENT_FILE, AI_TABLE_CELL_BORDER, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE, AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE_OFFSET, AI_TABLE_CELL_EDIT, AI_TABLE_CELL_EMOJI_PADDING, AI_TABLE_CELL_EMOJI_SIZE, AI_TABLE_CELL_FIELD_ITEM_HEIGHT, AI_TABLE_CELL_LINE_BORDER, AI_TABLE_CELL_MAX_ROW_COUNT, AI_TABLE_CELL_MEMBER_ITEM_HEIGHT, AI_TABLE_CELL_MEMBER_ITEM_PADDING, AI_TABLE_CELL_MEMBER_MAX_HEIGHT, AI_TABLE_CELL_MULTI_DOT_RADIUS, AI_TABLE_CELL_MULTI_ITEM_MARGIN_LEFT, AI_TABLE_CELL_MULTI_ITEM_MARGIN_TOP, AI_TABLE_CELL_MULTI_ITEM_MIN_WIDTH, AI_TABLE_CELL_MULTI_PADDING_LEFT, AI_TABLE_CELL_MULTI_PADDING_TOP, AI_TABLE_CELL_PADDING, AI_TABLE_COMMON_FONT_SIZE, AI_TABLE_DEFAULT_COLUMN_WIDTH, AI_TABLE_DOT_RADIUS, AI_TABLE_FIELD_ADD_BUTTON, AI_TABLE_FIELD_ADD_BUTTON_WIDTH, AI_TABLE_FIELD_HEAD, AI_TABLE_FIELD_HEAD_HEIGHT, AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE, AI_TABLE_FIELD_HEAD_MORE, AI_TABLE_FIELD_HEAD_OPACITY_LINE, AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX, AI_TABLE_FIELD_HEAD_TEXT_MIN_WIDTH, AI_TABLE_FIELD_ITEM_MARGIN_RIGHT, AI_TABLE_FIELD_MAX_WIDTH, AI_TABLE_FIELD_MIDDLE_WIDTH, AI_TABLE_FIELD_MINI_WIDTH, AI_TABLE_FIELD_MIN_WIDTH, AI_TABLE_FIELD_STAT_BG, AI_TABLE_FIELD_STAT_CONTAINER_HEIGHT, AI_TABLE_FIELD_STAT_INNER_HEIGHT, AI_TABLE_FILE_ICON_ITEM_HEIGHT, AI_TABLE_FILE_ICON_SIZE, AI_TABLE_FILL_HANDLE, AI_TABLE_GRID_FIELD_SERVICE_MAP, AI_TABLE_ICON_COMMON_SIZE, AI_TABLE_INDEX_FIELD_TEXT, AI_TABLE_MEMBER_AVATAR_SIZE, AI_TABLE_MEMBER_ITEM_AVATAR_MARGIN_RIGHT, AI_TABLE_MEMBER_ITEM_PADDING_RIGHT, AI_TABLE_MIN_TEXT_WIDTH, AI_TABLE_OFFSET, AI_TABLE_OPTION_ITEM_FONT_SIZE, AI_TABLE_OPTION_ITEM_HEIGHT, AI_TABLE_OPTION_ITEM_PADDING, AI_TABLE_OPTION_ITEM_RADIUS, AI_TABLE_OPTION_MULTI_ITEM_FONT_SIZE, AI_TABLE_PIECE_RADIUS, AI_TABLE_PIECE_WIDTH, AI_TABLE_POPOVER_LEFT_OFFSET, AI_TABLE_PREVENT_CLEAR_SELECTION_CLASS, AI_TABLE_PROGRESS_BAR_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_HEIGHT, AI_TABLE_PROGRESS_BAR_POINTER_WIDTH, AI_TABLE_PROGRESS_BAR_RADIUS, AI_TABLE_PROGRESS_TEXT_WIDTH, AI_TABLE_RATE_MAX, AI_TABLE_ROW_ADD_BUTTON, AI_TABLE_ROW_BLANK_HEIGHT, AI_TABLE_ROW_DRAG, AI_TABLE_ROW_DRAG_ICON_WIDTH, AI_TABLE_ROW_HEAD, AI_TABLE_ROW_HEAD_SIZE, AI_TABLE_ROW_HEAD_WIDTH, AI_TABLE_ROW_HEAD_WIDTH_AND_DRAG_ICON_WIDTH, AI_TABLE_ROW_HEIGHT, AI_TABLE_ROW_SELECT_CHECKBOX, AI_TABLE_SCROLL_BAR_PADDING, AI_TABLE_SCROLL_BAR_SIZE, AI_TABLE_TAG_FONT_SIZE, AI_TABLE_TAG_PADDING, AI_TABLE_TEXT_GAP, AI_TABLE_TEXT_LINE_HEIGHT, AbstractEditCellEditor, AddOutlinedPath, AngleDownPath, AttachmentField, AttachmentPath, CellDrawer, Check, Colors, ColumnCalendarFilledPath, ColumnCheckboxFilledPath, ColumnLinkOutlinedPath, ColumnMemberFilledPath, ColumnMultipleFillPath, ColumnNumberFilledPath, ColumnProgressFilledPath, ColumnRatingFilledPath, ColumnRichTextFilledPath, ColumnSelectFilledPath, ColumnTextFilledPath, Coordinate, CoverCellBase, DBL_CLICK_EDIT_TYPE, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_FONT_WEIGHT, DEFAULT_ICON_SHAPE, DEFAULT_ICON_SIZE, DEFAULT_POINT_POSITION, DEFAULT_SCROLL_STATE, DEFAULT_TEXT_ALIGN_CENTER, DEFAULT_TEXT_ALIGN_LEFT, DEFAULT_TEXT_ALIGN_RIGHT, DEFAULT_TEXT_DECORATION, DEFAULT_TEXT_ELLIPSIS, DEFAULT_TEXT_FILL, DEFAULT_TEXT_LINE_HEIGHT, DEFAULT_TEXT_LISTENING, DEFAULT_TEXT_MAX_CACHE, DEFAULT_TEXT_MAX_HEIGHT, DEFAULT_TEXT_SCALE, DEFAULT_TEXT_TRANSFORMS_ENABLED, DEFAULT_TEXT_VERTICAL_ALIGN_MIDDLE, DEFAULT_TEXT_VERTICAL_ALIGN_TOP, DEFAULT_TEXT_WRAP, DEFAULT_WRAP_TEXT_MAX_ROW, DateCellEditorComponent, DateField, DepartmentOutlinedPath, Drawer, EditPath, FONT_SIZE_SM, FieldModelMap, IconPathMap, IsSelectRecordPipe, KO_CONTAINER_TOKEN, KoComponent, KoContainer, KoShape, KoShapeTypes, KoStage, LinkCellEditorComponent, LinkField, MIN_COLUMN_WIDTH, MemberField, MemberSettingPipe, MoreStandOutlinedPath, NumberCellEditorComponent, NumberField, ProgressField, RateField, RendererContext, RichTextField, RowDragPath, RowHeight, SelectCellEditorComponent, SelectField, SelectOptionComponent, SelectOptionPipe, SelectOptionsPipe, SelectSettingPipe, StarFill, TextCellEditorComponent, TextField, TextMeasure, Unchecked, UserPipe, WebOutlinedPath, aiTableFragmentAttribute, aiTableImageConfigToKonvaConfig, aiTableRectConfigToKonvaConfig, aiTableTextConfigToKonvaConfig, applyNodeProps, buildClipboardData, buildGridData, buildGridLinearRows, castToString, cellDrawer, clearCells, compareNumber, compareOption, compareString, createAITable, createActiveCellBorder, createCells, createDefaultField, createDefaultFieldName, createListener, dragFillHighlightArea, drawer, expandCell, extractLinkUrl, extractText, generateNewName, generateTargetName, getAvatarBgColor, getAvatarShortName, getCellEditorBorderSpace, getCellHorizontalPosition, getColumnIndicesSizeMap, getCoverCell, getDateFieldValues, getDefaultFieldOptions, getDefaultFieldValue, getDefaultI18nTextByKey, getDetailByTargetName, getEditorBoxOffset, getEditorSpace, getFieldOptionByField, getFieldOptionMap, getFieldOptions, getFieldValue, getFileThumbnailSvgString, getFillDirection, getHoverEditorBoxOffset, getHoverEditorSpace, getI18nTextByKey, getMousePosition, getName, getOptionsByFieldAndRecords, getPlaceHolderCellsConfigs, getStartAndEndCell, getSystemFieldValue, getTargetName, getTextWidth, getVisibleRangeInfo, graphemeSplitter, handleMouseStyle, hasIntersect, idCreator, idsCreator, imageCache, isActiveCell, isArrayField, isCellMatchKeywords, isClipboardReadSupported, isClipboardReadTextSupported, isClipboardWriteSupported, isClipboardWriteTextSupported, isDateFiled, isEmptyOrNot, isMac, isMeetFilter, isNumberFiled, isSameFieldOption, isSelectedField, isSystemField, isVirtualKey, isWindows, isWindowsOS, isWithinFrozenColumnBoundary, performFill, processPastedValueForSelect, readFromClipboard, scrollMax, setMouseStyle, shortIdCreator, shortIdsCreator, statDateRangeOfDays, statDateRangeOfMonths, statEarliestTime, statLatestTime, stringInclude, textDataCache, toAttachmentFieldValue, toDateFieldValue, toLinkFieldValue, toMemberFieldValue, toNumberFieldValue, toProgressFieldValue, toRateFieldValue, toRichTextFieldValue, toSelectFieldValue, toTextFieldValue, transformToCellText, updatePicture, writeToAITable, writeToClipboard, zhIntlCollator };
12723
12893
  //# sourceMappingURL=ai-table-grid.mjs.map