@ai-table/grid 0.1.30 → 0.1.32
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/constants/icon.d.ts +1 -0
- package/constants/icon.d.ts.map +1 -1
- package/core/constants/field.d.ts.map +1 -1
- package/fesm2022/ai-table-grid.mjs +200 -40
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/renderer/components/cells/checkbox.component.d.ts +12 -0
- package/renderer/components/cells/checkbox.component.d.ts.map +1 -0
- package/renderer/components/cells/index.d.ts +1 -0
- package/renderer/components/cells/index.d.ts.map +1 -1
- package/renderer/components/field-icon.component.d.ts.map +1 -1
- package/renderer/components/field-stat/stat.component.d.ts +3 -4
- package/renderer/components/field-stat/stat.component.d.ts.map +1 -1
- package/renderer/components/icon.component.d.ts +3 -1
- package/renderer/components/icon.component.d.ts.map +1 -1
- package/renderer/components/scrollable-group/scrollable-group.component.d.ts +1 -0
- package/renderer/components/scrollable-group/scrollable-group.component.d.ts.map +1 -1
- package/renderer/creations/create-cells.d.ts.map +1 -1
- package/renderer/drawers/cell-drawer.d.ts +1 -0
- package/renderer/drawers/cell-drawer.d.ts.map +1 -1
- package/types/cell.d.ts +3 -0
- package/types/cell.d.ts.map +1 -1
- package/utils/field/field.d.ts.map +1 -1
- package/utils/field/model/checkbox.d.ts +12 -0
- package/utils/field/model/checkbox.d.ts.map +1 -0
- package/utils/i18n.d.ts +2 -0
- package/utils/i18n.d.ts.map +1 -1
package/constants/icon.d.ts
CHANGED
@@ -12,6 +12,7 @@ export declare const ColumnLinkOutlinedPath = "M10.4238543,5.91643446 C11.756356
|
|
12
12
|
export declare 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";
|
13
13
|
export declare 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";
|
14
14
|
export declare 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";
|
15
|
+
export declare 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";
|
15
16
|
export declare 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";
|
16
17
|
export declare 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";
|
17
18
|
export declare 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";
|
package/constants/icon.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/icon.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,KAAK,kRAIf,CAAC;AAEJ,eAAO,MAAM,SAAS,8MAGnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,uhBAAuhB,CAAC;AAEzjB,eAAO,MAAM,wBAAwB,gjCAAgjC,CAAC;AAEtlC,eAAO,MAAM,sBAAsB,gKAAgK,CAAC;AAEpM,eAAO,MAAM,sBAAsB,qWAAqW,CAAC;AAEzY,eAAO,MAAM,wBAAwB,gMAAgM,CAAC;AAEtO,eAAO,MAAM,sBAAsB,qXAAqX,CAAC;AAEzZ,eAAO,MAAM,sBAAsB,qoCAAqoC,CAAC;AAEzqC,eAAO,MAAM,sBAAsB,ujBAAujB,CAAC;AAE3lB,eAAO,MAAM,sBAAsB,2MAA2M,CAAC;AAE/O,eAAO,MAAM,wBAAwB,iJAAiJ,CAAC;AAEvL,eAAO,MAAM,eAAe,uJAAuJ,CAAC;AAEpL,eAAO,MAAM,qBAAqB,2JAA2J,CAAC;AAE9L,eAAO,MAAM,QAAQ,0ZAA0Z,CAAC;AAEhb,eAAO,MAAM,eAAe,80CAA80C,CAAC;AAE32C,eAAO,MAAM,sBAAsB,m8BAAm8B,CAAC;AAEv+B,eAAO,MAAM,cAAc,yvCAAyvC,CAAC;AAErxC,eAAO,MAAM,QAAQ,qOAAqO,CAAC;AAE3P,eAAO,MAAM,WAAW,klCAAklC,CAAC;AAE3mC,eAAO,MAAM,aAAa,qKAAqK,CAAC;AAEhM,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/icon.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,KAAK,kRAIf,CAAC;AAEJ,eAAO,MAAM,SAAS,8MAGnB,CAAC;AAEJ,eAAO,MAAM,oBAAoB,uhBAAuhB,CAAC;AAEzjB,eAAO,MAAM,wBAAwB,gjCAAgjC,CAAC;AAEtlC,eAAO,MAAM,sBAAsB,gKAAgK,CAAC;AAEpM,eAAO,MAAM,sBAAsB,qWAAqW,CAAC;AAEzY,eAAO,MAAM,wBAAwB,gMAAgM,CAAC;AAEtO,eAAO,MAAM,sBAAsB,qXAAqX,CAAC;AAEzZ,eAAO,MAAM,sBAAsB,qoCAAqoC,CAAC;AAEzqC,eAAO,MAAM,sBAAsB,ujBAAujB,CAAC;AAE3lB,eAAO,MAAM,sBAAsB,2MAA2M,CAAC;AAE/O,eAAO,MAAM,wBAAwB,iJAAiJ,CAAC;AAEvL,eAAO,MAAM,wBAAwB,isBAAisB,CAAC;AAEvuB,eAAO,MAAM,eAAe,uJAAuJ,CAAC;AAEpL,eAAO,MAAM,qBAAqB,2JAA2J,CAAC;AAE9L,eAAO,MAAM,QAAQ,0ZAA0Z,CAAC;AAEhb,eAAO,MAAM,eAAe,80CAA80C,CAAC;AAE32C,eAAO,MAAM,sBAAsB,m8BAAm8B,CAAC;AAEv+B,eAAO,MAAM,cAAc,yvCAAyvC,CAAC;AAErxC,eAAO,MAAM,QAAQ,qOAAqO,CAAC;AAE3P,eAAO,MAAM,WAAW,klCAAklC,CAAC;AAE3mC,eAAO,MAAM,aAAa,qKAAqK,CAAC;AAEhM,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/constants/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAqB,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAG1F,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,eAAO,MAAM,sBAAsB,
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/constants/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAqB,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAG1F,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAwH1B,kBAAkB,EAC1B,CAAC;AAEF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,CAEtE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAEnF"}
|
@@ -25,7 +25,7 @@ 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, 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';
|
@@ -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$
|
2734
|
-
const value2 = cellValueToSortValue$
|
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$
|
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$
|
2835
|
-
const value2 = cellValueToSortValue$
|
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$
|
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$
|
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$
|
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$
|
2976
|
-
const value2 = cellValueToSortValue$
|
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$
|
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,49 @@ 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
|
+
transformCellValue(cellValue, options) {
|
3459
|
+
return transformToCellText(cellValue, options);
|
3460
|
+
}
|
3461
|
+
isMeetFilter(condition, cellValue) {
|
3462
|
+
if (cellValue === null) {
|
3463
|
+
if (condition.operation === AITableFilterOperation.empty) {
|
3464
|
+
return true;
|
3465
|
+
}
|
3466
|
+
else {
|
3467
|
+
return false;
|
3468
|
+
}
|
3469
|
+
}
|
3470
|
+
const cellTextValue = cellValue;
|
3471
|
+
switch (condition.operation) {
|
3472
|
+
case AITableFilterOperation.empty:
|
3473
|
+
return isEmpty(cellTextValue);
|
3474
|
+
case AITableFilterOperation.exists:
|
3475
|
+
return !isEmpty(cellTextValue);
|
3476
|
+
default:
|
3477
|
+
return isMeetFilter(condition, cellTextValue);
|
3478
|
+
}
|
3479
|
+
}
|
3480
|
+
compare(cellValue1, cellValue2) {
|
3481
|
+
const value1 = cellValueToSortValue(cellValue1);
|
3482
|
+
const value2 = cellValueToSortValue(cellValue2);
|
3483
|
+
return compareNumber(value1, value2);
|
3484
|
+
}
|
3485
|
+
toFieldValue(plainText, targetField, originData) {
|
3486
|
+
return null;
|
3487
|
+
}
|
3488
|
+
}
|
3489
|
+
function cellValueToSortValue(cellValue) {
|
3490
|
+
if (isUndefinedOrNull(cellValue)) {
|
3491
|
+
return 0;
|
3492
|
+
}
|
3493
|
+
return cellValue ? 1 : 0;
|
3494
|
+
}
|
3495
|
+
|
3447
3496
|
const FieldModelMap = {
|
3448
3497
|
...FieldModelBaseMap,
|
3449
3498
|
[AITableFieldType.text]: new TextField(),
|
@@ -3459,7 +3508,8 @@ const FieldModelMap = {
|
|
3459
3508
|
[AITableFieldType.progress]: new ProgressField(),
|
3460
3509
|
[AITableFieldType.createdBy]: new MemberField(),
|
3461
3510
|
[AITableFieldType.updatedBy]: new MemberField(),
|
3462
|
-
[AITableFieldType.attachment]: new AttachmentField()
|
3511
|
+
[AITableFieldType.attachment]: new AttachmentField(),
|
3512
|
+
[AITableFieldType.checkbox]: new CheckboxField()
|
3463
3513
|
};
|
3464
3514
|
|
3465
3515
|
const aiTableFragmentAttribute = 'ai-table-fragment';
|
@@ -6176,10 +6226,29 @@ class CellDrawer extends Drawer {
|
|
6176
6226
|
return this.renderCellMember(render, ctx);
|
6177
6227
|
case AITableFieldType.attachment:
|
6178
6228
|
return this.renderCellAttachment(render, ctx);
|
6229
|
+
case AITableFieldType.checkbox:
|
6230
|
+
return this.renderCellCheckbox(render, ctx);
|
6179
6231
|
default:
|
6180
6232
|
return null;
|
6181
6233
|
}
|
6182
6234
|
}
|
6235
|
+
renderCellCheckbox(render, ctx) {
|
6236
|
+
const { x, y, field, columnWidth, transformValue, isCoverCell } = render;
|
6237
|
+
if (isCoverCell) {
|
6238
|
+
return;
|
6239
|
+
}
|
6240
|
+
const isChecked = !isEmpty(transformValue) && !!transformValue;
|
6241
|
+
const checkboxSize = AI_TABLE_ICON_COMMON_SIZE;
|
6242
|
+
const checkboxX = x + (columnWidth - checkboxSize) / 2;
|
6243
|
+
const checkboxY = y + (AI_TABLE_ROW_BLANK_HEIGHT - checkboxSize) / 2;
|
6244
|
+
this.path({
|
6245
|
+
x: checkboxX,
|
6246
|
+
y: checkboxY,
|
6247
|
+
size: 22,
|
6248
|
+
data: isChecked ? Check : Unchecked,
|
6249
|
+
fill: isChecked ? Colors.primary : Colors.gray300
|
6250
|
+
});
|
6251
|
+
}
|
6183
6252
|
renderCellText(render, ctx) {
|
6184
6253
|
const { x, y, transformValue, field, columnWidth, style } = render;
|
6185
6254
|
if (isUndefinedOrNull(transformValue)) {
|
@@ -6205,7 +6274,7 @@ class CellDrawer extends Drawer {
|
|
6205
6274
|
const renderY = y + AI_TABLE_ROW_BLANK_HEIGHT / 2;
|
6206
6275
|
const textDecoration = DEFAULT_TEXT_DECORATION;
|
6207
6276
|
if (isNumberField) {
|
6208
|
-
renderText =
|
6277
|
+
renderText = numberFormat(Number(renderText));
|
6209
6278
|
const { text } = this.textEllipsis({
|
6210
6279
|
text: renderText,
|
6211
6280
|
maxWidth: columnWidth && textMaxWidth,
|
@@ -7023,12 +7092,14 @@ const createCells = (config) => {
|
|
7023
7092
|
references,
|
7024
7093
|
isActive: isSelectedField(fieldId, aiTable),
|
7025
7094
|
style,
|
7026
|
-
colors
|
7095
|
+
colors,
|
7096
|
+
isCoverCell: false
|
7027
7097
|
};
|
7028
7098
|
// hover 组件渲染时,底层的 cell 渲染为空
|
7029
7099
|
if (coverCell && coverCell.recordId === recordId && coverCell.fieldId === fieldId) {
|
7030
7100
|
render.cellValue = '';
|
7031
7101
|
render.transformValue = '';
|
7102
|
+
render.isCoverCell = true;
|
7032
7103
|
}
|
7033
7104
|
cellDrawer.initStyle(field, style);
|
7034
7105
|
// 最后一列,且单元格内容存在,需要裁剪内容,以防止文本溢出单元格边界
|
@@ -7115,6 +7186,7 @@ const isHoverRecord = (isHover, targetName) => {
|
|
7115
7186
|
class AITableIcon {
|
7116
7187
|
constructor() {
|
7117
7188
|
this.config = input.required();
|
7189
|
+
this.koClick = output();
|
7118
7190
|
this.groupConfig = computed(() => {
|
7119
7191
|
const { x, y, listening } = this.config();
|
7120
7192
|
return { x, y, listening };
|
@@ -7166,8 +7238,8 @@ class AITableIcon {
|
|
7166
7238
|
});
|
7167
7239
|
}
|
7168
7240
|
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()">
|
7241
|
+
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: `
|
7242
|
+
<ko-group [config]="groupConfig()" (koClick)="koClick.emit($event)">
|
7171
7243
|
<ko-rect [config]="squareShapeConfig()"></ko-rect>
|
7172
7244
|
<ko-path [config]="iconConfig()"></ko-path>
|
7173
7245
|
</ko-group>
|
@@ -7178,7 +7250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
7178
7250
|
args: [{
|
7179
7251
|
selector: 'ai-table-icon',
|
7180
7252
|
template: `
|
7181
|
-
<ko-group [config]="groupConfig()">
|
7253
|
+
<ko-group [config]="groupConfig()" (koClick)="koClick.emit($event)">
|
7182
7254
|
<ko-rect [config]="squareShapeConfig()"></ko-rect>
|
7183
7255
|
<ko-path [config]="iconConfig()"></ko-path>
|
7184
7256
|
</ko-group>
|
@@ -7248,7 +7320,7 @@ class AITableAddField {
|
|
7248
7320
|
}
|
7249
7321
|
</ko-group>
|
7250
7322
|
</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 }); }
|
7323
|
+
`, 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
7324
|
}
|
7253
7325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableAddField, decorators: [{
|
7254
7326
|
type: Component,
|
@@ -7342,6 +7414,9 @@ class AITableFieldIcon {
|
|
7342
7414
|
case AITableFieldType.attachment:
|
7343
7415
|
data = AttachmentPath;
|
7344
7416
|
break;
|
7417
|
+
case AITableFieldType.checkbox:
|
7418
|
+
data = ColumnCheckboxFilledPath;
|
7419
|
+
break;
|
7345
7420
|
}
|
7346
7421
|
return {
|
7347
7422
|
x,
|
@@ -7355,7 +7430,7 @@ class AITableFieldIcon {
|
|
7355
7430
|
});
|
7356
7431
|
}
|
7357
7432
|
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 }); }
|
7433
|
+
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
7434
|
}
|
7360
7435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldIcon, decorators: [{
|
7361
7436
|
type: Component,
|
@@ -7481,7 +7556,7 @@ class AITableFieldHead {
|
|
7481
7556
|
</ko-group>
|
7482
7557
|
<ko-line [config]="fieldOpacityLineConfig()"></ko-line>
|
7483
7558
|
</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 }); }
|
7559
|
+
`, 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
7560
|
}
|
7486
7561
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldHead, decorators: [{
|
7487
7562
|
type: Component,
|
@@ -7787,7 +7862,7 @@ class AITableFrozenColumnHeads {
|
|
7787
7862
|
@for (config of headConfigs(); track $index) {
|
7788
7863
|
<ai-table-field-head [config]="config"></ai-table-field-head>
|
7789
7864
|
}
|
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 }); }
|
7865
|
+
`, 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
7866
|
}
|
7792
7867
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFrozenColumnHeads, decorators: [{
|
7793
7868
|
type: Component,
|
@@ -7985,7 +8060,7 @@ class AITableHoverRowHeads {
|
|
7985
8060
|
}
|
7986
8061
|
</ko-group>
|
7987
8062
|
}
|
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 }); }
|
8063
|
+
`, 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
8064
|
}
|
7990
8065
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableHoverRowHeads, decorators: [{
|
7991
8066
|
type: Component,
|
@@ -8462,7 +8537,7 @@ class AITableScrollableGroup {
|
|
8462
8537
|
if (this.isDraggingVertical()) {
|
8463
8538
|
return null;
|
8464
8539
|
}
|
8465
|
-
const { scrollbarSize = 12, scrollbarColor =
|
8540
|
+
const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
|
8466
8541
|
const { height, contentHeight } = this.config();
|
8467
8542
|
const thumbHeight = this.verticalThumbHeight();
|
8468
8543
|
const thumbY = (this.scrollY() / (contentHeight - height)) * (this.verticalScrollbarHeight() - thumbHeight);
|
@@ -8472,6 +8547,7 @@ class AITableScrollableGroup {
|
|
8472
8547
|
width: scrollbarSize - 2,
|
8473
8548
|
height: thumbHeight,
|
8474
8549
|
fill: scrollbarColor,
|
8550
|
+
opacity: scrollbarOpacity,
|
8475
8551
|
cornerRadius: 6,
|
8476
8552
|
draggable: true,
|
8477
8553
|
dragBoundFunc: (pos) => {
|
@@ -8500,7 +8576,7 @@ class AITableScrollableGroup {
|
|
8500
8576
|
if (this.isDraggingHorizontal()) {
|
8501
8577
|
return null;
|
8502
8578
|
}
|
8503
|
-
const { scrollbarSize = 12, scrollbarColor =
|
8579
|
+
const { scrollbarSize = 12, scrollbarColor = Colors.black, scrollbarOpacity = 0.8 } = this.config();
|
8504
8580
|
const { width, contentWidth } = this.config();
|
8505
8581
|
const thumbWidth = this.horizontalThumbWidth();
|
8506
8582
|
const thumbX = (this.scrollX() / (contentWidth - width)) * (this.horizontalScrollbarHeight() - thumbWidth);
|
@@ -8510,6 +8586,7 @@ class AITableScrollableGroup {
|
|
8510
8586
|
width: thumbWidth,
|
8511
8587
|
height: scrollbarSize - 2,
|
8512
8588
|
fill: scrollbarColor,
|
8589
|
+
opacity: scrollbarOpacity,
|
8513
8590
|
cornerRadius: 6,
|
8514
8591
|
draggable: true,
|
8515
8592
|
dragBoundFunc: (pos) => {
|
@@ -9021,6 +9098,7 @@ class AITableFieldStat {
|
|
9021
9098
|
this.hover = output();
|
9022
9099
|
this.isActive = signal(false);
|
9023
9100
|
this.isHover = signal(false);
|
9101
|
+
this.isShowSelectedCount = false;
|
9024
9102
|
this.availableTextWidth = computed(() => {
|
9025
9103
|
const { width } = this.config();
|
9026
9104
|
return width - AI_TABLE_ACTION_COMMON_SIZE - AI_TABLE_CELL_PADDING;
|
@@ -9098,8 +9176,16 @@ class AITableFieldStat {
|
|
9098
9176
|
this.isActiveOrHover = computed(() => {
|
9099
9177
|
return this.isActive() || this.isHover();
|
9100
9178
|
});
|
9179
|
+
this.containerBoxHeight = computed(() => {
|
9180
|
+
const { height } = this.config();
|
9181
|
+
return height;
|
9182
|
+
});
|
9183
|
+
this.containerBoxWidth = computed(() => {
|
9184
|
+
const { width } = this.config();
|
9185
|
+
return width;
|
9186
|
+
});
|
9101
9187
|
this.renderTexts = computed(() => {
|
9102
|
-
const
|
9188
|
+
const width = this.containerBoxWidth();
|
9103
9189
|
const field = this.field();
|
9104
9190
|
const records = this.records();
|
9105
9191
|
const fieldModel = FieldModelMap[field.type];
|
@@ -9114,10 +9200,12 @@ class AITableFieldStat {
|
|
9114
9200
|
else {
|
9115
9201
|
formatString = getI18nTextByKey(this.aiTable(), AITableGridI18nKey.selectedCellsCount);
|
9116
9202
|
}
|
9203
|
+
this.isShowSelectedCount = true;
|
9117
9204
|
resultString = formatString.replace('{count}', `${selectedInfo.selectedCount.toString()}`);
|
9118
9205
|
statValue = selectedInfo.selectedCount.toString();
|
9119
9206
|
}
|
9120
9207
|
else {
|
9208
|
+
this.isShowSelectedCount = false;
|
9121
9209
|
statValue = fieldModel.stat(records, this.options());
|
9122
9210
|
if (!isUndefinedOrNull(statValue)) {
|
9123
9211
|
formatString = fieldModel.getFormat(this.field(), this.aiTable());
|
@@ -9146,12 +9234,9 @@ class AITableFieldStat {
|
|
9146
9234
|
statValue: statValue || ''
|
9147
9235
|
};
|
9148
9236
|
});
|
9149
|
-
this.containerBox = computed(() => {
|
9150
|
-
const { height, width } = this.config();
|
9151
|
-
return { height, width };
|
9152
|
-
});
|
9153
9237
|
this.textsConfig = computed(() => {
|
9154
|
-
const
|
9238
|
+
const height = this.containerBoxHeight();
|
9239
|
+
const width = this.containerBoxWidth();
|
9155
9240
|
const renderTexts = this.renderTexts();
|
9156
9241
|
const result = [];
|
9157
9242
|
let previousColor = Colors.gray700;
|
@@ -9194,7 +9279,13 @@ class AITableFieldStat {
|
|
9194
9279
|
});
|
9195
9280
|
previousColor = fill;
|
9196
9281
|
}
|
9197
|
-
let startX = width -
|
9282
|
+
let startX = width - totalWidth;
|
9283
|
+
if (!this.isShowSelectedCount) {
|
9284
|
+
startX -= AI_TABLE_ACTION_COMMON_SIZE;
|
9285
|
+
}
|
9286
|
+
else {
|
9287
|
+
startX -= AI_TABLE_CELL_PADDING;
|
9288
|
+
}
|
9198
9289
|
result.forEach((item) => {
|
9199
9290
|
item.x = startX;
|
9200
9291
|
startX += item.width;
|
@@ -9308,11 +9399,13 @@ class AITableFieldStat {
|
|
9308
9399
|
@for (textConfig of textsConfig(); track $index) {
|
9309
9400
|
<ai-table-text [config]="textConfig"></ai-table-text>
|
9310
9401
|
}
|
9311
|
-
|
9402
|
+
@if (!isShowSelectedCount) {
|
9403
|
+
<ai-table-icon [config]="iconConfig()"></ai-table-icon>
|
9404
|
+
}
|
9312
9405
|
}
|
9313
9406
|
</ko-group>
|
9314
9407
|
</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 }); }
|
9408
|
+
`, 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
9409
|
}
|
9317
9410
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldStat, decorators: [{
|
9318
9411
|
type: Component,
|
@@ -9332,7 +9425,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
9332
9425
|
@for (textConfig of textsConfig(); track $index) {
|
9333
9426
|
<ai-table-text [config]="textConfig"></ai-table-text>
|
9334
9427
|
}
|
9335
|
-
|
9428
|
+
@if (!isShowSelectedCount) {
|
9429
|
+
<ai-table-icon [config]="iconConfig()"></ai-table-icon>
|
9430
|
+
}
|
9336
9431
|
}
|
9337
9432
|
</ko-group>
|
9338
9433
|
</ko-group>
|
@@ -10116,11 +10211,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
10116
10211
|
}]
|
10117
10212
|
}] });
|
10118
10213
|
|
10214
|
+
class AITableCellCheckbox extends CoverCellBase {
|
10215
|
+
constructor() {
|
10216
|
+
super(...arguments);
|
10217
|
+
this.isChecked = computed(() => {
|
10218
|
+
const { render } = this.config();
|
10219
|
+
const { transformValue } = render;
|
10220
|
+
return !isEmpty(transformValue) && !!transformValue;
|
10221
|
+
});
|
10222
|
+
this.checkbox = computed(() => {
|
10223
|
+
const { render, field, recordId, readonly } = this.config();
|
10224
|
+
if (render) {
|
10225
|
+
const { columnWidth } = render;
|
10226
|
+
const currentX = AI_TABLE_OFFSET + (columnWidth - AI_TABLE_ICON_COMMON_SIZE) / 2;
|
10227
|
+
let currentY = (AI_TABLE_ROW_BLANK_HEIGHT - AI_TABLE_ICON_COMMON_SIZE) / 2 + AI_TABLE_OFFSET;
|
10228
|
+
return {
|
10229
|
+
name: generateTargetName({
|
10230
|
+
targetName: AI_TABLE_CELL,
|
10231
|
+
fieldId: field._id,
|
10232
|
+
recordId,
|
10233
|
+
mouseStyle: readonly ? 'default' : 'pointer'
|
10234
|
+
}),
|
10235
|
+
x: currentX,
|
10236
|
+
y: currentY,
|
10237
|
+
type: this.isChecked() ? AITableCheckType.checked : AITableCheckType.unchecked,
|
10238
|
+
fill: this.isChecked() ? Colors.primary : Colors.gray300,
|
10239
|
+
width: AI_TABLE_ICON_COMMON_SIZE,
|
10240
|
+
height: AI_TABLE_ICON_COMMON_SIZE,
|
10241
|
+
listening: true
|
10242
|
+
};
|
10243
|
+
}
|
10244
|
+
return null;
|
10245
|
+
});
|
10246
|
+
}
|
10247
|
+
static { this.fieldType = AITableFieldType.checkbox; }
|
10248
|
+
switchChecked() {
|
10249
|
+
const { actions } = this.config();
|
10250
|
+
actions.updateFieldValues([
|
10251
|
+
{
|
10252
|
+
value: !this.isChecked(),
|
10253
|
+
path: [this.config().recordId, this.config().field._id]
|
10254
|
+
}
|
10255
|
+
]);
|
10256
|
+
}
|
10257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
10258
|
+
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: `
|
10259
|
+
<ko-group>
|
10260
|
+
<ai-table-icon [config]="checkbox()" (koClick)="switchChecked()"></ai-table-icon>
|
10261
|
+
</ko-group>
|
10262
|
+
`, 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 }); }
|
10263
|
+
}
|
10264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellCheckbox, decorators: [{
|
10265
|
+
type: Component,
|
10266
|
+
args: [{
|
10267
|
+
selector: 'ai-table-checkbox',
|
10268
|
+
template: `
|
10269
|
+
<ko-group>
|
10270
|
+
<ai-table-icon [config]="checkbox()" (koClick)="switchChecked()"></ai-table-icon>
|
10271
|
+
</ko-group>
|
10272
|
+
`,
|
10273
|
+
imports: [KoContainer, AITableIcon],
|
10274
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
10275
|
+
}]
|
10276
|
+
}] });
|
10277
|
+
|
10119
10278
|
// TODO: components下的cells组件考虑移出 components ,这些组件都属于
|
10120
10279
|
|
10121
10280
|
var cellComponents = /*#__PURE__*/Object.freeze({
|
10122
10281
|
__proto__: null,
|
10123
10282
|
AITableCellAttachment: AITableCellAttachment,
|
10283
|
+
AITableCellCheckbox: AITableCellCheckbox,
|
10124
10284
|
AITableCellLink: AITableCellLink,
|
10125
10285
|
AITableCellProgress: AITableCellProgress,
|
10126
10286
|
AITableCellRate: AITableCellRate,
|
@@ -12723,5 +12883,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
12723
12883
|
* Generated bundle index. Do not edit.
|
12724
12884
|
*/
|
12725
12885
|
|
12726
|
-
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 };
|
12886
|
+
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 };
|
12727
12887
|
//# sourceMappingURL=ai-table-grid.mjs.map
|