@ai-table/grid 0.1.8 → 0.1.9
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/editor.d.ts +1 -1
- package/constants/editor.d.ts.map +1 -1
- 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 +114 -57
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/grid-base.component.d.ts +1 -1
- package/grid-base.component.d.ts.map +1 -1
- package/grid.component.d.ts +11 -1
- package/grid.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/renderer/components/cells/cells.d.ts +1 -1
- package/renderer/components/cells/cells.d.ts.map +1 -1
- package/renderer/components/cells/link.component.d.ts +1 -1
- package/renderer/components/cells/link.component.d.ts.map +1 -1
- package/renderer/components/field-head.component.d.ts +1 -0
- package/renderer/components/field-head.component.d.ts.map +1 -1
- package/renderer/components/field-icon.component.d.ts +1 -1
- package/renderer/components/index.d.ts +1 -0
- package/renderer/components/index.d.ts.map +1 -1
- package/renderer/components/text.component.d.ts +3 -3
- package/renderer/components/text.component.d.ts.map +1 -1
- package/renderer/creations/create-cells.d.ts.map +1 -1
- package/renderer/drawers/cell-drawer.d.ts +1 -1
- package/renderer/drawers/cell-drawer.d.ts.map +1 -1
- package/renderer/drawers/record-row-layout-drawer.d.ts.map +1 -1
- package/renderer/index.d.ts +4 -0
- package/renderer/index.d.ts.map +1 -1
- package/renderer/interfaces/hover-cell.d.ts +1 -1
- package/renderer/interfaces/hover-cell.d.ts.map +1 -1
- package/services/event.service.d.ts +1 -1
- package/services/event.service.d.ts.map +1 -1
- package/styles/styles.scss +30 -0
- package/types/canvas.d.ts +1 -1
- package/types/canvas.d.ts.map +1 -1
- package/types/cell.d.ts +8 -3
- package/types/cell.d.ts.map +1 -1
- package/types/component-config.d.ts +1 -0
- package/types/component-config.d.ts.map +1 -1
- package/types/grid.d.ts +17 -4
- package/types/grid.d.ts.map +1 -1
- package/utils/field/field.d.ts +1 -1
- package/utils/field/field.d.ts.map +1 -1
- package/utils/field/index.d.ts +1 -0
- package/utils/field/index.d.ts.map +1 -1
- package/utils/hover-cell.d.ts +1 -1
package/constants/editor.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AASnD,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AASnD,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,GAAG,MAAM,EAAE,GAAG,CAAC,CAOhF,CAAC"}
|
package/constants/icon.d.ts
CHANGED
@@ -20,4 +20,5 @@ export declare const DepartmentOutlinedPath = "M3 5.5C3 3.567 4.567 2 6.5 2C8.43
|
|
20
20
|
export declare const AttachmentPath = "M9.1773124,11.8057395 C7.96668709,13.0163648 6.00387566,13.0163648 4.79325035,11.8057395 C3.58262505,10.5951142 3.58262505,8.63230278 4.78926443,7.4257012 L8.27628904,3.87217601 C8.50840068,3.63567937 8.88828274,3.63209333 9.12479868,3.86418566 C9.36131462,4.096278 9.36490066,4.47616006 9.13280833,4.712676 L5.64177849,8.27020561 C4.89978234,9.01220177 4.89978234,10.2152152 5.64177849,10.9572114 C6.38377464,11.6992075 7.5867881,11.6992075 8.32878426,10.9572114 L12.2321177,7.05387799 C13.3493901,5.93660552 13.2780395,4.02707269 12.0410949,2.79012806 C10.8041502,1.55318343 8.8946174,1.4818328 7.77734493,2.59910526 L3.72686067,6.64958953 C2.02034367,8.35610653 2.02835883,11.1329242 3.74721224,12.8517776 C5.46606565,14.570631 8.24288334,14.5786462 9.94940034,12.8721292 L13.5980637,9.22346588 C13.8323782,8.98915131 14.2122772,8.98915131 14.4465918,9.22346588 C14.6809064,9.45778046 14.6809064,9.83767945 14.4465918,10.071994 L10.7979285,13.7206573 C8.62168228,15.8969035 5.08507361,15.8866953 2.8986841,13.7003058 C0.712294592,11.5139163 0.702086332,7.97730759 2.87833253,5.8010614 L6.9288168,1.75057713 C8.52947856,0.149915361 11.1976354,0.249612361 12.889623,1.94159992 C14.5816106,3.63358749 14.6813076,6.30174436 13.0806458,7.90240612 L9.1773124,11.8057395 Z";
|
21
21
|
export declare const EditPath = "M2,8.33918294 L10.7095952,0 L15,4.17020474 L6.53816398,13 L2,13 L2,8.33918294 Z M3.2,8.85157902 L3.2,11.8 L6.02608482,11.8 L13.3091776,4.20020516 L10.7033283,1.66736141 L3.2,8.85157902 Z M0,16 L0,14.8 L16,14.8 L16,16 L0,16 Z";
|
22
22
|
export declare const RowDragPath = "M6,3 C6.55228475,3 7,2.55228475 7,2 C7,1.44771525 6.55228475,1 6,1 C5.44771525,1 5,1.44771525 5,2 C5,2.55228475 5.44771525,3 6,3 Z M10,3 C10.5522847,3 11,2.55228475 11,2 C11,1.44771525 10.5522847,1 10,1 C9.44771525,1 9,1.44771525 9,2 C9,2.55228475 9.44771525,3 10,3 Z M6,7 C6.55228475,7 7,6.55228475 7,6 C7,5.44771525 6.55228475,5 6,5 C5.44771525,5 5,5.44771525 5,6 C5,6.55228475 5.44771525,7 6,7 Z M10,7 C10.5522847,7 11,6.55228475 11,6 C11,5.44771525 10.5522847,5 10,5 C9.44771525,5 9,5.44771525 9,6 C9,6.55228475 9.44771525,7 10,7 Z M6,11 C6.55228475,11 7,10.5522847 7,10 C7,9.44771525 6.55228475,9 6,9 C5.44771525,9 5,9.44771525 5,10 C5,10.5522847 5.44771525,11 6,11 Z M10,11 C10.5522847,11 11,10.5522847 11,10 C11,9.44771525 10.5522847,9 10,9 C9.44771525,9 9,9.44771525 9,10 C9,10.5522847 9.44771525,11 10,11 Z M6,15 C6.55228475,15 7,14.5522847 7,14 C7,13.4477153 6.55228475,13 6,13 C5.44771525,13 5,13.4477153 5,14 C5,14.5522847 5.44771525,15 6,15 Z M10,15 C10.5522847,15 11,14.5522847 11,14 C11,13.4477153 10.5522847,13 10,13 C9.44771525,13 9,13.4477153 9,14 C9,14.5522847 9.44771525,15 10,15 Z";
|
23
|
+
export declare const IconPathMap: Record<string, string>;
|
23
24
|
//# sourceMappingURL=icon.d.ts.map
|
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"}
|
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,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,EAAE,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAEvE,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,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,
|
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,EAAE,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AAEvE,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,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,CA0GtE"}
|
@@ -38,7 +38,7 @@ import { ThyStopPropagationDirective, ThyAutofocusDirective, ThyEnterDirective,
|
|
38
38
|
import * as i3 from 'ngx-tethys/input';
|
39
39
|
import { ThyInputDirective, ThyInputGroup, ThyInputModule, ThyInputCount } from 'ngx-tethys/input';
|
40
40
|
import * as i2$1 from 'ngx-tethys/tooltip';
|
41
|
-
import { ThyTooltipModule } from 'ngx-tethys/tooltip';
|
41
|
+
import { ThyTooltipModule, ThyTooltipDirective } from 'ngx-tethys/tooltip';
|
42
42
|
import { ThyAction } from 'ngx-tethys/action';
|
43
43
|
import { ThyFlexibleTextModule, ThyFlexibleText } from 'ngx-tethys/flexible-text';
|
44
44
|
import { ThyButton } from 'ngx-tethys/button';
|
@@ -587,7 +587,7 @@ const AI_TABLE_FIELD_MIN_WIDTH = 160;
|
|
587
587
|
const AI_TABLE_FIELD_MIDDLE_WIDTH = 200;
|
588
588
|
const AI_TABLE_FIELD_MAX_WIDTH = 300;
|
589
589
|
function getFieldOptions(aiTable) {
|
590
|
-
|
590
|
+
const defaultFieldOptions = [
|
591
591
|
{
|
592
592
|
type: AITableFieldType.text,
|
593
593
|
name: getI18nTextByKey(aiTable, AITableGridI18nKey.fieldTypeText),
|
@@ -685,6 +685,13 @@ function getFieldOptions(aiTable) {
|
|
685
685
|
width: AI_TABLE_FIELD_MIDDLE_WIDTH
|
686
686
|
}
|
687
687
|
];
|
688
|
+
const fieldOptions = [];
|
689
|
+
Object.entries(aiTable.context?.aiFieldConfig()?.customFields || {}).forEach(([fieldType, fieldConfig]) => {
|
690
|
+
if (fieldConfig?.fieldOption) {
|
691
|
+
fieldOptions.push(fieldConfig.fieldOption);
|
692
|
+
}
|
693
|
+
});
|
694
|
+
return [...defaultFieldOptions, ...fieldOptions];
|
688
695
|
}
|
689
696
|
|
690
697
|
/**
|
@@ -2360,6 +2367,7 @@ const DepartmentOutlinedPath = `M3 5.5C3 3.567 4.567 2 6.5 2C8.433 2 10 3.567 10
|
|
2360
2367
|
const AttachmentPath = `M9.1773124,11.8057395 C7.96668709,13.0163648 6.00387566,13.0163648 4.79325035,11.8057395 C3.58262505,10.5951142 3.58262505,8.63230278 4.78926443,7.4257012 L8.27628904,3.87217601 C8.50840068,3.63567937 8.88828274,3.63209333 9.12479868,3.86418566 C9.36131462,4.096278 9.36490066,4.47616006 9.13280833,4.712676 L5.64177849,8.27020561 C4.89978234,9.01220177 4.89978234,10.2152152 5.64177849,10.9572114 C6.38377464,11.6992075 7.5867881,11.6992075 8.32878426,10.9572114 L12.2321177,7.05387799 C13.3493901,5.93660552 13.2780395,4.02707269 12.0410949,2.79012806 C10.8041502,1.55318343 8.8946174,1.4818328 7.77734493,2.59910526 L3.72686067,6.64958953 C2.02034367,8.35610653 2.02835883,11.1329242 3.74721224,12.8517776 C5.46606565,14.570631 8.24288334,14.5786462 9.94940034,12.8721292 L13.5980637,9.22346588 C13.8323782,8.98915131 14.2122772,8.98915131 14.4465918,9.22346588 C14.6809064,9.45778046 14.6809064,9.83767945 14.4465918,10.071994 L10.7979285,13.7206573 C8.62168228,15.8969035 5.08507361,15.8866953 2.8986841,13.7003058 C0.712294592,11.5139163 0.702086332,7.97730759 2.87833253,5.8010614 L6.9288168,1.75057713 C8.52947856,0.149915361 11.1976354,0.249612361 12.889623,1.94159992 C14.5816106,3.63358749 14.6813076,6.30174436 13.0806458,7.90240612 L9.1773124,11.8057395 Z`;
|
2361
2368
|
const EditPath = `M2,8.33918294 L10.7095952,0 L15,4.17020474 L6.53816398,13 L2,13 L2,8.33918294 Z M3.2,8.85157902 L3.2,11.8 L6.02608482,11.8 L13.3091776,4.20020516 L10.7033283,1.66736141 L3.2,8.85157902 Z M0,16 L0,14.8 L16,14.8 L16,16 L0,16 Z`;
|
2362
2369
|
const RowDragPath = `M6,3 C6.55228475,3 7,2.55228475 7,2 C7,1.44771525 6.55228475,1 6,1 C5.44771525,1 5,1.44771525 5,2 C5,2.55228475 5.44771525,3 6,3 Z M10,3 C10.5522847,3 11,2.55228475 11,2 C11,1.44771525 10.5522847,1 10,1 C9.44771525,1 9,1.44771525 9,2 C9,2.55228475 9.44771525,3 10,3 Z M6,7 C6.55228475,7 7,6.55228475 7,6 C7,5.44771525 6.55228475,5 6,5 C5.44771525,5 5,5.44771525 5,6 C5,6.55228475 5.44771525,7 6,7 Z M10,7 C10.5522847,7 11,6.55228475 11,6 C11,5.44771525 10.5522847,5 10,5 C9.44771525,5 9,5.44771525 9,6 C9,6.55228475 9.44771525,7 10,7 Z M6,11 C6.55228475,11 7,10.5522847 7,10 C7,9.44771525 6.55228475,9 6,9 C5.44771525,9 5,9.44771525 5,10 C5,10.5522847 5.44771525,11 6,11 Z M10,11 C10.5522847,11 11,10.5522847 11,10 C11,9.44771525 10.5522847,9 10,9 C9.44771525,9 9,9.44771525 9,10 C9,10.5522847 9.44771525,11 10,11 Z M6,15 C6.55228475,15 7,14.5522847 7,14 C7,13.4477153 6.55228475,13 6,13 C5.44771525,13 5,13.4477153 5,14 C5,14.5522847 5.44771525,15 6,15 Z M10,15 C10.5522847,15 11,14.5522847 11,14 C11,13.4477153 10.5522847,13 10,13 C9.44771525,13 9,13.4477153 9,14 C9,14.5522847 9.44771525,15 10,15 Z`;
|
2370
|
+
const IconPathMap = {};
|
2363
2371
|
|
2364
2372
|
const DEFAULT_FONT_SIZE = 14;
|
2365
2373
|
const DEFAULT_FONT_FAMILY = '-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Helvetica Neue,Noto Sans,Noto Sans CJK SC,Microsoft Yahei,Arial,Hiragino Sans GB,sans-serif';
|
@@ -4273,7 +4281,7 @@ const isCellMatchKeywords = (aiTable, field, recordId, keywords, references) =>
|
|
4273
4281
|
}
|
4274
4282
|
};
|
4275
4283
|
|
4276
|
-
class
|
4284
|
+
class AITableTextComponent {
|
4277
4285
|
constructor() {
|
4278
4286
|
this.config = input.required();
|
4279
4287
|
// @Output() koClick = new EventEmitter<KoEventObject<MouseEvent>>();
|
@@ -4321,10 +4329,10 @@ class AITableText {
|
|
4321
4329
|
onMousemove(e) {
|
4322
4330
|
this.koMouseMove.emit(e);
|
4323
4331
|
}
|
4324
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type:
|
4325
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type:
|
4332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
4333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.10", type: AITableTextComponent, isStandalone: true, selector: "ai-table-text", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { koClick: "koClick", koMouseMove: "koMouseMove" }, ngImport: i0, template: ` <ko-text [config]="textConfig()" (koClick)="onClick($event)" (koMousemove)="onMousemove($event)"></ko-text> `, 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
4326
4334
|
}
|
4327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type:
|
4335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableTextComponent, decorators: [{
|
4328
4336
|
type: Component,
|
4329
4337
|
args: [{
|
4330
4338
|
selector: 'ai-table-text',
|
@@ -5341,7 +5349,7 @@ class AITableCellLink {
|
|
5341
5349
|
@if (showLink()) {
|
5342
5350
|
<ai-table-text [config]="textConfig()!" (koClick)="linkClick($event)" (koMouseMove)="linkMouseMove($event)"></ai-table-text>
|
5343
5351
|
}
|
5344
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
5352
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
5345
5353
|
}
|
5346
5354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellLink, decorators: [{
|
5347
5355
|
type: Component,
|
@@ -5352,7 +5360,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5352
5360
|
<ai-table-text [config]="textConfig()!" (koClick)="linkClick($event)" (koMouseMove)="linkMouseMove($event)"></ai-table-text>
|
5353
5361
|
}
|
5354
5362
|
`,
|
5355
|
-
imports: [
|
5363
|
+
imports: [AITableTextComponent],
|
5356
5364
|
changeDetection: ChangeDetectionStrategy.OnPush
|
5357
5365
|
}]
|
5358
5366
|
}] });
|
@@ -5633,7 +5641,7 @@ class AITableCellRichText {
|
|
5633
5641
|
<ai-table-text [config]="textConfig()!"></ai-table-text>
|
5634
5642
|
}
|
5635
5643
|
<ai-table-action-icon [config]="iconConfig()"></ai-table-action-icon>
|
5636
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
5644
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AITableTextComponent, selector: "ai-table-text", inputs: ["config"], outputs: ["koClick", "koMouseMove"] }, { kind: "component", type: AITableActionIcon, selector: "ai-table-action-icon", inputs: ["config"], outputs: ["onClick", "onMousemove", "onMouseenter", "onMouseleave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
5637
5645
|
}
|
5638
5646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableCellRichText, decorators: [{
|
5639
5647
|
type: Component,
|
@@ -5645,7 +5653,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5645
5653
|
}
|
5646
5654
|
<ai-table-action-icon [config]="iconConfig()"></ai-table-action-icon>
|
5647
5655
|
`,
|
5648
|
-
imports: [
|
5656
|
+
imports: [AITableTextComponent, AITableActionIcon],
|
5649
5657
|
changeDetection: ChangeDetectionStrategy.OnPush
|
5650
5658
|
}]
|
5651
5659
|
}] });
|
@@ -6357,12 +6365,16 @@ class CellDrawer extends Drawer {
|
|
6357
6365
|
}
|
6358
6366
|
// 单元格渲染
|
6359
6367
|
renderCell(render, ctx, columnWidth) {
|
6360
|
-
const { field, cellValue } = render;
|
6368
|
+
const { field, cellValue, aiTable } = render;
|
6361
6369
|
const fieldType = field.type;
|
6362
6370
|
const fieldMethod = FieldModelMap[fieldType];
|
6363
6371
|
if (!fieldMethod.isValid(cellValue)) {
|
6364
6372
|
return;
|
6365
6373
|
}
|
6374
|
+
const customFieldRender = aiTable.context?.aiFieldConfig()?.customFields?.[fieldType]?.render;
|
6375
|
+
if (customFieldRender) {
|
6376
|
+
return customFieldRender(render, this);
|
6377
|
+
}
|
6366
6378
|
switch (fieldType) {
|
6367
6379
|
case AITableFieldType.text:
|
6368
6380
|
case AITableFieldType.richText:
|
@@ -7014,29 +7026,22 @@ class RecordRowLayout extends Layout {
|
|
7014
7026
|
});
|
7015
7027
|
}
|
7016
7028
|
// 首列
|
7017
|
-
renderFirstCell({ row, style, isHoverRow, isCheckedRow }) {
|
7029
|
+
renderFirstCell({ row, style, indexStyle, isHoverRow, isCheckedRow }) {
|
7018
7030
|
if (!this.isFirst)
|
7019
7031
|
return;
|
7020
|
-
const { fill } = style;
|
7032
|
+
const { fill } = style || {};
|
7033
|
+
const { fill: indexFill } = indexStyle || {};
|
7021
7034
|
const y = this.y;
|
7022
7035
|
const rowHeight = this.rowHeight;
|
7023
7036
|
const columnWidth = this.columnWidth;
|
7024
7037
|
const colors = AITable.getColors();
|
7025
|
-
// 编号的上下边框
|
7026
|
-
let fillBg = colors.transparent;
|
7027
|
-
if (isCheckedRow) {
|
7028
|
-
fillBg = colors.itemActiveBgColor;
|
7029
|
-
}
|
7030
|
-
else if (isHoverRow) {
|
7031
|
-
fillBg = colors.gray80;
|
7032
|
-
}
|
7033
7038
|
if (!this.hiddenIndexColumn) {
|
7034
7039
|
this.customRect({
|
7035
7040
|
x: AI_TABLE_OFFSET + AI_TABLE_ROW_DRAG_ICON_WIDTH,
|
7036
7041
|
y,
|
7037
7042
|
width: this.rowHeadWidth - AI_TABLE_OFFSET - AI_TABLE_ROW_DRAG_ICON_WIDTH,
|
7038
7043
|
height: rowHeight,
|
7039
|
-
fill:
|
7044
|
+
fill: indexFill,
|
7040
7045
|
strokes: {
|
7041
7046
|
right: colors.gray200,
|
7042
7047
|
bottom: colors.gray200
|
@@ -7085,7 +7090,7 @@ class RecordRowLayout extends Layout {
|
|
7085
7090
|
renderLastCell({ style, isHoverRow, isCheckedRow }) {
|
7086
7091
|
if (!this.isLast || this.isFirst)
|
7087
7092
|
return;
|
7088
|
-
const { fill, stroke } = style;
|
7093
|
+
const { fill, stroke } = style || {};
|
7089
7094
|
const colors = AITable.getColors();
|
7090
7095
|
// 背景、边框
|
7091
7096
|
this.rect({
|
@@ -7102,7 +7107,7 @@ class RecordRowLayout extends Layout {
|
|
7102
7107
|
renderCommonCell({ style }) {
|
7103
7108
|
if (this.isFirst || this.isLast)
|
7104
7109
|
return;
|
7105
|
-
const { fill, stroke } = style;
|
7110
|
+
const { fill, stroke } = style || {};
|
7106
7111
|
const colors = AITable.getColors();
|
7107
7112
|
// 背景、边框
|
7108
7113
|
this.rect({
|
@@ -7115,8 +7120,8 @@ class RecordRowLayout extends Layout {
|
|
7115
7120
|
});
|
7116
7121
|
}
|
7117
7122
|
render(config) {
|
7118
|
-
const { row, style, isCheckedRow, isHoverRow } = config;
|
7119
|
-
this.renderFirstCell({ row, style, isCheckedRow, isHoverRow });
|
7123
|
+
const { row, style, indexStyle, isCheckedRow, isHoverRow } = config;
|
7124
|
+
this.renderFirstCell({ row, style, indexStyle, isCheckedRow, isHoverRow });
|
7120
7125
|
this.renderCommonCell({ style });
|
7121
7126
|
this.renderLastCell({ style, isCheckedRow, isHoverRow });
|
7122
7127
|
}
|
@@ -7190,6 +7195,7 @@ const createCells = (config) => {
|
|
7190
7195
|
const fieldId = field._id;
|
7191
7196
|
const cell = [recordId, fieldId];
|
7192
7197
|
let background = getCellBackground(cell, isHover, targetName, aiTable);
|
7198
|
+
let indexBackground = getIndexCellBackground(cell, isHover, targetName, aiTable);
|
7193
7199
|
recordRowLayout.init({
|
7194
7200
|
x,
|
7195
7201
|
y,
|
@@ -7205,6 +7211,7 @@ const createCells = (config) => {
|
|
7205
7211
|
recordRowLayout.render({
|
7206
7212
|
row,
|
7207
7213
|
style: { fill: background },
|
7214
|
+
indexStyle: { fill: indexBackground },
|
7208
7215
|
isHoverRow: isHoverRecord(isHover, targetName),
|
7209
7216
|
isCheckedRow: isSelectedRecord(recordId, aiTable)
|
7210
7217
|
});
|
@@ -7257,27 +7264,34 @@ const createCells = (config) => {
|
|
7257
7264
|
}
|
7258
7265
|
}
|
7259
7266
|
};
|
7267
|
+
const getRowBackground = (cell, isHover, targetName, aiTable) => {
|
7268
|
+
const colors = AITable.getColors();
|
7269
|
+
const [recordId, fieldId] = cell;
|
7270
|
+
if (isWillHiddenCell(cell, aiTable)) {
|
7271
|
+
return colors.itemMatchBgColor;
|
7272
|
+
}
|
7273
|
+
if (isSelectedRecord(recordId, aiTable) || isSiblingCell(cell, aiTable)) {
|
7274
|
+
return colors.itemActiveBgColor;
|
7275
|
+
}
|
7276
|
+
if (isHoverRecord(isHover, targetName)) {
|
7277
|
+
return colors.gray80;
|
7278
|
+
}
|
7279
|
+
return colors.white;
|
7280
|
+
};
|
7260
7281
|
const getCellBackground = (cell, isHover, targetName, aiTable) => {
|
7261
7282
|
const colors = AITable.getColors();
|
7262
7283
|
const [recordId, fieldId] = cell;
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7271
|
-
|
7272
|
-
|
7273
|
-
|
7274
|
-
else if (_isSelectedRecord || _isSelectedField || _isSiblingCell || (_isSelectedCell && !_isActiveCell)) {
|
7275
|
-
background = colors.itemActiveBgColor;
|
7276
|
-
}
|
7277
|
-
else if (_isHoverRecord && !_isActiveCell) {
|
7278
|
-
background = colors.gray80;
|
7279
|
-
}
|
7280
|
-
return background;
|
7284
|
+
if (isActiveCell(cell, aiTable)) {
|
7285
|
+
return colors.white;
|
7286
|
+
}
|
7287
|
+
if (isSelectedField(fieldId, aiTable) || isSelectedCell(cell, aiTable)) {
|
7288
|
+
return colors.itemActiveBgColor;
|
7289
|
+
}
|
7290
|
+
return getRowBackground(cell, isHover, targetName, aiTable);
|
7291
|
+
};
|
7292
|
+
const getIndexCellBackground = (cell, isHover, targetName, aiTable) => {
|
7293
|
+
const [recordId, fieldId] = cell;
|
7294
|
+
return getRowBackground([recordId, ''], isHover, targetName, aiTable);
|
7281
7295
|
};
|
7282
7296
|
const isActiveCell = (cell, aiTable) => {
|
7283
7297
|
const [recordId, fieldId] = cell;
|
@@ -7293,6 +7307,10 @@ const isKeywordsMatchedCell = (cell, aiTable) => {
|
|
7293
7307
|
const [recordId, fieldId] = cell;
|
7294
7308
|
return aiTable.keywordsMatchedCells().has(`${recordId}:${fieldId}`);
|
7295
7309
|
};
|
7310
|
+
const isWillHiddenCell = (cell, aiTable) => {
|
7311
|
+
const [recordId, fieldId] = cell;
|
7312
|
+
return aiTable.recordsWillHidden().includes(recordId);
|
7313
|
+
};
|
7296
7314
|
const isSelectedCell = (cell, aiTable) => {
|
7297
7315
|
const [recordId, fieldId] = cell;
|
7298
7316
|
return aiTable.selection().selectedCells.has(`${recordId}:${fieldId}`);
|
@@ -7500,8 +7518,8 @@ class AITableFieldIcon {
|
|
7500
7518
|
constructor() {
|
7501
7519
|
this.config = input.required();
|
7502
7520
|
this.iconConfig = computed(() => {
|
7503
|
-
const { field, x, y, width, height, fill } = this.config();
|
7504
|
-
let data =
|
7521
|
+
const { field, x, y, width, height, fill, path } = this.config();
|
7522
|
+
let data = path;
|
7505
7523
|
switch (field.type) {
|
7506
7524
|
case AITableFieldType.text:
|
7507
7525
|
data = ColumnTextFilledPath;
|
@@ -7615,7 +7633,8 @@ class AITableFieldHead {
|
|
7615
7633
|
y: (height - AI_TABLE_ICON_COMMON_SIZE) / 2,
|
7616
7634
|
width: AI_TABLE_ICON_COMMON_SIZE,
|
7617
7635
|
height: AI_TABLE_ICON_COMMON_SIZE,
|
7618
|
-
fill: Colors.gray600
|
7636
|
+
fill: Colors.gray600,
|
7637
|
+
path: IconPathMap[field.icon]
|
7619
7638
|
};
|
7620
7639
|
});
|
7621
7640
|
this.textConfig = computed(() => {
|
@@ -7675,7 +7694,7 @@ class AITableFieldHead {
|
|
7675
7694
|
</ko-group>
|
7676
7695
|
<ko-line [config]="fieldOpacityLineConfig()"></ko-line>
|
7677
7696
|
</ko-group>
|
7678
|
-
`, 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:
|
7697
|
+
`, 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 }); }
|
7679
7698
|
}
|
7680
7699
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableFieldHead, decorators: [{
|
7681
7700
|
type: Component,
|
@@ -7694,7 +7713,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
7694
7713
|
<ko-line [config]="fieldOpacityLineConfig()"></ko-line>
|
7695
7714
|
</ko-group>
|
7696
7715
|
`,
|
7697
|
-
imports: [KoContainer, KoShape, AITableFieldIcon,
|
7716
|
+
imports: [KoContainer, KoShape, AITableFieldIcon, AITableTextComponent, AITableIcon],
|
7698
7717
|
changeDetection: ChangeDetectionStrategy.OnPush
|
7699
7718
|
}]
|
7700
7719
|
}] });
|
@@ -8567,6 +8586,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
8567
8586
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ko-stage\n [config]=\"stageConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n>\n <ko-layer>\n <ko-group [config]=\"gridGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n <ai-table-frozen-cells [config]=\"cellsConfig()\"></ai-table-frozen-cells>\n <ai-table-other-rows [config]=\"cellsConfig()\"></ai-table-other-rows>\n @if (!hiddenIndexColumn()) {\n <ai-table-hover-row-heads [config]=\"cellsConfig()\"></ai-table-hover-row-heads>\n }\n <ai-table-frozen-placeholder-cells [config]=\"cellsConfig()\"></ai-table-frozen-placeholder-cells>\n </ko-group>\n\n <ko-group>\n <ai-table-frozen-column-heads [config]=\"columnHeadOrAddFieldConfig()\"></ai-table-frozen-column-heads>\n </ko-group>\n\n <ko-group [config]=\"commonGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n <ai-table-cells [config]=\"cellsConfig()\"></ai-table-cells>\n </ko-group>\n\n <ko-group [config]=\"offsetXConfig()\">\n <ai-table-column-heads [config]=\"columnHeadOrAddFieldConfig()\"></ai-table-column-heads>\n <ai-table-add-field [config]=\"columnHeadOrAddFieldConfig()\"></ai-table-add-field>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"attachGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n <ai-table-placeholder-cells [config]=\"cellsConfig()\"></ai-table-placeholder-cells>\n @if (activeCellBorderConfig().activeCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().activeCellBorder!\"></ko-rect>\n }\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"hoverAttachGroupConfig()\">\n <ko-group [config]=\"offsetConfig()\">\n <ai-table-hover-cell [config]=\"cellsConfig()\"></ai-table-hover-cell>\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"frozenAttachGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n @if (activeCellBorderConfig().frozenActiveCellBorder) {\n <ko-rect [config]=\"activeCellBorderConfig().frozenActiveCellBorder!\"></ko-rect>\n }\n </ko-group>\n </ko-group>\n\n <ko-group [config]=\"frozenHoverAttachGroupConfig()\">\n <ko-group [config]=\"offsetYConfig()\">\n <ai-table-hover-cell [config]=\"cellsConfig()\"></ai-table-hover-cell>\n </ko-group>\n </ko-group>\n </ko-group>\n </ko-layer>\n</ko-stage>\n\n<ng-content></ng-content>\n" }]
|
8568
8587
|
}] });
|
8569
8588
|
|
8589
|
+
class HoverCellComponent extends Component {
|
8590
|
+
}
|
8591
|
+
|
8570
8592
|
class AITableCellRate {
|
8571
8593
|
constructor() {
|
8572
8594
|
this.pointerX = signal(0);
|
@@ -8980,9 +9002,9 @@ var cellComponents = /*#__PURE__*/Object.freeze({
|
|
8980
9002
|
AITableCellRichText: AITableCellRichText
|
8981
9003
|
});
|
8982
9004
|
|
8983
|
-
const
|
9005
|
+
const ComponentMap = {};
|
8984
9006
|
Object.values(cellComponents).forEach((cellComponent) => {
|
8985
|
-
|
9007
|
+
ComponentMap[cellComponent.fieldType] = cellComponent;
|
8986
9008
|
});
|
8987
9009
|
|
8988
9010
|
function getHoverCell(aiTable) {
|
@@ -8996,7 +9018,7 @@ function getHoverCell(aiTable) {
|
|
8996
9018
|
if (!record || !field || !recordId || !fieldId) {
|
8997
9019
|
return;
|
8998
9020
|
}
|
8999
|
-
const renderComponentDefinition =
|
9021
|
+
const renderComponentDefinition = ComponentMap[field?.type];
|
9000
9022
|
if (!renderComponentDefinition) {
|
9001
9023
|
return;
|
9002
9024
|
}
|
@@ -9765,6 +9787,23 @@ class AITableGrid extends AITableGridBase {
|
|
9765
9787
|
this.linearRows = computed(() => {
|
9766
9788
|
return buildGridLinearRows(this.gridData().records, !this.aiReadonly());
|
9767
9789
|
});
|
9790
|
+
this.domToolTips = computed(() => {
|
9791
|
+
const scrollTop = this.aiTable.context.scrollState().scrollTop;
|
9792
|
+
const rowIndices = this.toolTipRowIndices();
|
9793
|
+
return rowIndices.map((rowIndex) => {
|
9794
|
+
return {
|
9795
|
+
top: rowIndex * AI_TABLE_ROW_HEIGHT - scrollTop,
|
9796
|
+
left: 0
|
9797
|
+
};
|
9798
|
+
});
|
9799
|
+
});
|
9800
|
+
this.toolTipRowIndices = computed(() => {
|
9801
|
+
const hiddenRows = this.aiTable.recordsWillHidden() || [];
|
9802
|
+
const toolTipRowIndices = hiddenRows.map((rowId) => {
|
9803
|
+
return this.aiTable.context?.visibleRowsIndexMap().get(rowId) || 0;
|
9804
|
+
});
|
9805
|
+
return toolTipRowIndices;
|
9806
|
+
});
|
9768
9807
|
this.visibleColumnsIndexMap = computed(() => {
|
9769
9808
|
const columns = AITable.getVisibleFields(this.aiTable);
|
9770
9809
|
return new Map(columns?.map((item, index) => [item._id, index]));
|
@@ -9775,6 +9814,9 @@ class AITableGrid extends AITableGridBase {
|
|
9775
9814
|
this.containerElement = computed(() => {
|
9776
9815
|
return this.container().nativeElement;
|
9777
9816
|
});
|
9817
|
+
this.trackBy = (index, item) => {
|
9818
|
+
return item.sort_by ?? index;
|
9819
|
+
};
|
9778
9820
|
this.rendererConfig = computed(() => {
|
9779
9821
|
const fields = AITable.getVisibleFields(this.aiTable);
|
9780
9822
|
const coordinate = new Coordinate({
|
@@ -9907,6 +9949,7 @@ class AITableGrid extends AITableGridBase {
|
|
9907
9949
|
ngOnInit() {
|
9908
9950
|
super.ngOnInit();
|
9909
9951
|
this.initContext();
|
9952
|
+
this.initCustomField();
|
9910
9953
|
}
|
9911
9954
|
ngOnDestroy() {
|
9912
9955
|
this.resizeObserver?.disconnect();
|
@@ -9927,6 +9970,22 @@ class AITableGrid extends AITableGridBase {
|
|
9927
9970
|
maxRecords: this.aiMaxRecords
|
9928
9971
|
});
|
9929
9972
|
}
|
9973
|
+
initCustomField() {
|
9974
|
+
const customFields = this.aiFieldConfig()?.customFields;
|
9975
|
+
if (customFields) {
|
9976
|
+
Object.entries(customFields).forEach(([key, customField]) => {
|
9977
|
+
if (customField?.hoverRender) {
|
9978
|
+
ComponentMap[key] = customField.hoverRender;
|
9979
|
+
}
|
9980
|
+
if (customField?.fieldModel) {
|
9981
|
+
FieldModelMap[key] = customField.fieldModel;
|
9982
|
+
}
|
9983
|
+
if (customField?.fieldOption?.path) {
|
9984
|
+
IconPathMap[customField?.fieldOption.icon] = customField.fieldOption.path;
|
9985
|
+
}
|
9986
|
+
});
|
9987
|
+
}
|
9988
|
+
}
|
9930
9989
|
setKeywordsMatchedCells() {
|
9931
9990
|
const keywords = this.aiKeywords();
|
9932
9991
|
let matchedCells = new Set();
|
@@ -10092,8 +10151,6 @@ class AITableGrid extends AITableGridBase {
|
|
10092
10151
|
case AI_TABLE_ROW_ADD_BUTTON: {
|
10093
10152
|
this.aiTableGridSelectionService.clearSelection();
|
10094
10153
|
this.addRecord();
|
10095
|
-
const { records, fields } = this.gridData();
|
10096
|
-
this.aiTableGridSelectionService.setActiveCell([records[records.length - 1]._id, fields[0]._id]);
|
10097
10154
|
break;
|
10098
10155
|
}
|
10099
10156
|
case AI_TABLE_ROW_SELECT_CHECKBOX: {
|
@@ -10379,18 +10436,18 @@ class AITableGrid extends AITableGridBase {
|
|
10379
10436
|
this.aiTableGridSelectionService.clearDrag();
|
10380
10437
|
}
|
10381
10438
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableGrid, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
10382
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AITableGrid, isStandalone: true, selector: "ai-table-grid", host: { classAttribute: "ai-table-grid" }, providers: [AITableGridEventService, AITableGridFieldService, AITableGridSelectionService], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "verticalBarRef", first: true, predicate: ["verticalBar"], descendants: true, isSignal: true }, { propertyName: "horizontalBarRef", first: true, predicate: ["horizontalBar"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n >\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n", dependencies: [{ kind: "component", type: AITableRenderer, selector: "ai-table-renderer", inputs: ["config"], outputs: ["koMousemove", "koMousedown", "koMouseup", "koContextmenu", "koWheel", "koClick", "koDblclick", "koMouseleave"] }, { kind: "component", type: AITableDragComponent, selector: "ai-table-drag", outputs: ["dragEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
10439
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AITableGrid, isStandalone: true, selector: "ai-table-grid", host: { classAttribute: "ai-table-grid" }, providers: [AITableGridEventService, AITableGridFieldService, AITableGridSelectionService], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "verticalBarRef", first: true, predicate: ["verticalBar"], descendants: true, isSignal: true }, { propertyName: "horizontalBarRef", first: true, predicate: ["horizontalBar"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n >\n @if (domToolTips().length > 0) {\n <div\n class=\"ai-table-left-background-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n @for (domToolTip of domToolTips(); track trackBy(idx, domToolTip); let idx = $index) {\n <div\n class=\"ai-table-left-background\"\n [thyTooltip]=\"'\u672C\u8BB0\u5F55\u5DF2\u88AB\u7B5B\u9009\u8FC7\u6EE4\uFF0C\u70B9\u51FB\u8BE5\u8BB0\u5F55\u4EE5\u5916\u4F4D\u7F6E\u5C06\u88AB\u9690\u85CF'\"\n [style.--scroll-top.px]=\"domToolTip.top\"\n >\n <thy-icon styxI18nTracking class=\"text-white\" thyIconName=\"filter-line\"></thy-icon>\n </div>\n }\n </div>\n }\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n", dependencies: [{ kind: "component", type: AITableRenderer, selector: "ai-table-renderer", inputs: ["config"], outputs: ["koMousemove", "koMousedown", "koMouseup", "koContextmenu", "koWheel", "koClick", "koDblclick", "koMouseleave"] }, { kind: "component", type: AITableDragComponent, selector: "ai-table-drag", outputs: ["dragEnd"] }, { kind: "directive", type: ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
10383
10440
|
}
|
10384
10441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AITableGrid, decorators: [{
|
10385
10442
|
type: Component,
|
10386
10443
|
args: [{ selector: 'ai-table-grid', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
10387
10444
|
class: 'ai-table-grid'
|
10388
|
-
}, imports: [AITableRenderer, AITableDragComponent], providers: [AITableGridEventService, AITableGridFieldService, AITableGridSelectionService], template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n >\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n" }]
|
10445
|
+
}, imports: [AITableRenderer, AITableDragComponent, ThyTooltipDirective, ThyIcon], providers: [AITableGridEventService, AITableGridFieldService, AITableGridSelectionService], template: "<div #container class=\"ai-table-grid-view\">\n @if (hasContainerRect()) {\n <ai-table-renderer\n [config]=\"rendererConfig()\"\n (koMousemove)=\"stageMousemove($event)\"\n (koMousedown)=\"stageMousedown($event)\"\n (koMouseup)=\"stageMouseup($event)\"\n (koContextmenu)=\"stageContextmenu($event)\"\n (koClick)=\"stageClick($event)\"\n (koDblclick)=\"stageDblclick($event)\"\n (koMouseleave)=\"stageMouseleave($event)\"\n >\n @if (domToolTips().length > 0) {\n <div\n class=\"ai-table-left-background-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n @for (domToolTip of domToolTips(); track trackBy(idx, domToolTip); let idx = $index) {\n <div\n class=\"ai-table-left-background\"\n [thyTooltip]=\"'\u672C\u8BB0\u5F55\u5DF2\u88AB\u7B5B\u9009\u8FC7\u6EE4\uFF0C\u70B9\u51FB\u8BE5\u8BB0\u5F55\u4EE5\u5916\u4F4D\u7F6E\u5C06\u88AB\u9690\u85CF'\"\n [style.--scroll-top.px]=\"domToolTip.top\"\n >\n <thy-icon styxI18nTracking class=\"text-white\" thyIconName=\"filter-line\"></thy-icon>\n </div>\n }\n </div>\n }\n <div #horizontalBar class=\"ai-table-horizontal-scroll-bar-wrapper\" [style.width.px]=\"containerRect().width\">\n <div class=\"ai-table-scroll-bar-inner\" [style.width.px]=\"scrollbarWidth()\"></div>\n </div>\n <div\n #verticalBar\n class=\"ai-table-vertical-scroll-bar-wrapper\"\n [style.height.px]=\"containerRect().height - fieldHeadHeight\"\n [style.top.px]=\"fieldHeadHeight\"\n >\n <div class=\"ai-table-scroll-bar-inner\" [style.height.px]=\"scrollTotalHeight()\"></div>\n </div>\n </ai-table-renderer>\n }\n <ai-table-drag (dragEnd)=\"dragEnd($event)\"></ai-table-drag>\n</div>\n" }]
|
10389
10446
|
}], ctorParameters: () => [] });
|
10390
10447
|
|
10391
10448
|
/**
|
10392
10449
|
* Generated bundle index. Do not edit.
|
10393
10450
|
*/
|
10394
10451
|
|
10395
|
-
export { AITable, AITableAreaType, AITableAvatarSize, AITableAvatarType, AITableCheckType, AITableContextMenu, AITableDomGrid, AITableFieldIsSameOptionPipe, AITableFieldSetting, AITableGrid, AITableGridEventService, AITableGridFieldService, AITableGridI18nKey, AITableGridSelectionService, AITableMemberType, AITableMouseDownType, AITableQueries, AITableRenderer, AITableRowType, AITableSelectAllState, AI_TABLE_ACTION_COMMON_RADIUS, AI_TABLE_ACTION_COMMON_RIGHT_PADDING, AI_TABLE_ACTION_COMMON_SIZE, 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_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_FILE_ICON_ITEM_HEIGHT, AI_TABLE_FILE_ICON_SIZE, AI_TABLE_GRID_FIELD_SERVICE_MAP, AI_TABLE_ICON_COMMON_SIZE, 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_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_HEIGHT, AI_TABLE_ROW_SELECT_CHECKBOX, AI_TABLE_SCROLL_BAR_PADDING, AI_TABLE_TAG_FONT_SIZE, AI_TABLE_TAG_PADDING, AI_TABLE_TEXT_GAP, AbstractEditCellEditor, AddOutlinedPath, AttachmentField, AttachmentPath, Check, Colors, ColumnCalendarFilledPath, ColumnLinkOutlinedPath, ColumnMemberFilledPath, ColumnMultipleFillPath, ColumnNumberFilledPath, ColumnProgressFilledPath, ColumnRatingFilledPath, ColumnRichTextFilledPath, ColumnSelectFilledPath, ColumnTextFilledPath, Coordinate, 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, EditPath, FONT_SIZE_SM, FieldModelMap, GRID_CELL_EDITOR_MAP, 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, applyNodeProps, buildClipboardData, buildGridData, buildGridLinearRows, castToString, clearCells, compareNumber, compareOption, compareString, createAITable, createActiveCellBorder, createCells, createDefaultField, createDefaultFieldName, createListener, extractLinkUrl, extractText, generateNewName, generateTargetName, getAvatarBgColor, getAvatarShortName, getCellEditorBorderSpace, getCellHorizontalPosition, getColumnIndicesSizeMap, getDefaultFieldValue, getDefaultI18nTextByKey, getDetailByTargetName, getEditorBoxOffset, getEditorSpace, getFieldOptionByField, getFieldOptions, getFieldValue, getFileThumbnailSvgString, getHoverCell, getHoverEditorBoxOffset, getHoverEditorSpace, getI18nTextByKey, getMousePosition, getName, getPlaceHolderCellsConfigs, getSystemFieldValue, getTargetName, getTextWidth, getVisibleRangeInfo, handleMouseStyle, hasIntersect, idCreator, idsCreator, imageCache, isActiveCell, isArrayField, isCellMatchKeywords, isClipboardReadSupported, isClipboardReadTextSupported, isClipboardWriteSupported, isClipboardWriteTextSupported, isDateFiled, isEmptyOrNot, isMac, isMeetFilter, isNumberFiled, isSameFieldOption, isSelectedField, isSystemField, isWindows, isWindowsOS, isWithinFrozenColumnBoundary, processPastedValueForSelect, readFromClipboard, scrollMax, setMouseStyle, shortIdCreator, shortIdsCreator, stringInclude, textDataCache, toAttachmentFieldValue, toDateFieldValue, toLinkFieldValue, toMemberFieldValue, toNumberFieldValue, toProgressFieldValue, toRateFieldValue, toRichTextFieldValue, toSelectFieldValue, toTextFieldValue, transformCellValue, updatePicture, writeToAITable, writeToClipboard, zhIntlCollator };
|
10452
|
+
export { AITable, AITableActionIcon, AITableAddField, AITableAreaType, AITableAvatarSize, AITableAvatarType, AITableCellAttachment, AITableCellLink, AITableCellProgress, AITableCellRate, AITableCellRichText, AITableCells, AITableCheckType, AITableColumnHeads, AITableContextMenu, AITableDomGrid, AITableFieldHead, AITableFieldIcon, AITableFieldIsSameOptionPipe, AITableFieldSetting, AITableFrozenCells, AITableFrozenColumnHeads, AITableFrozenPlaceholderCells, AITableGrid, AITableGridEventService, AITableGridFieldService, AITableGridI18nKey, AITableGridSelectionService, AITableHoverRowHeads, AITableIcon, AITableMemberType, AITableMouseDownType, AITableOtherRows, AITablePlaceholderCells, AITableQueries, AITableRenderer, AITableRowType, AITableSelectAllState, AITableTextComponent, AI_TABLE_ACTION_COMMON_RADIUS, AI_TABLE_ACTION_COMMON_RIGHT_PADDING, AI_TABLE_ACTION_COMMON_SIZE, 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_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_FILE_ICON_ITEM_HEIGHT, AI_TABLE_FILE_ICON_SIZE, AI_TABLE_GRID_FIELD_SERVICE_MAP, AI_TABLE_ICON_COMMON_SIZE, 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_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_HEIGHT, AI_TABLE_ROW_SELECT_CHECKBOX, AI_TABLE_SCROLL_BAR_PADDING, AI_TABLE_TAG_FONT_SIZE, AI_TABLE_TAG_PADDING, AI_TABLE_TEXT_GAP, AbstractEditCellEditor, AddOutlinedPath, AttachmentField, AttachmentPath, CellDrawer, Check, Colors, ColumnCalendarFilledPath, ColumnLinkOutlinedPath, ColumnMemberFilledPath, ColumnMultipleFillPath, ColumnNumberFilledPath, ColumnProgressFilledPath, ColumnRatingFilledPath, ColumnRichTextFilledPath, ColumnSelectFilledPath, ColumnTextFilledPath, Coordinate, 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, GRID_CELL_EDITOR_MAP, HoverCellComponent, 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, applyNodeProps, buildClipboardData, buildGridData, buildGridLinearRows, castToString, cellDrawer, clearCells, compareNumber, compareOption, compareString, createAITable, createActiveCellBorder, createCells, createDefaultField, createDefaultFieldName, createListener, drawer, extractLinkUrl, extractText, generateNewName, generateTargetName, getAvatarBgColor, getAvatarShortName, getCellEditorBorderSpace, getCellHorizontalPosition, getColumnIndicesSizeMap, getDefaultFieldValue, getDefaultI18nTextByKey, getDetailByTargetName, getEditorBoxOffset, getEditorSpace, getFieldOptionByField, getFieldOptions, getFieldValue, getFileThumbnailSvgString, getHoverCell, getHoverEditorBoxOffset, getHoverEditorSpace, getI18nTextByKey, getMousePosition, getName, getPlaceHolderCellsConfigs, 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, isWindows, isWindowsOS, isWithinFrozenColumnBoundary, processPastedValueForSelect, readFromClipboard, scrollMax, setMouseStyle, shortIdCreator, shortIdsCreator, stringInclude, textDataCache, toAttachmentFieldValue, toDateFieldValue, toLinkFieldValue, toMemberFieldValue, toNumberFieldValue, toProgressFieldValue, toRateFieldValue, toRichTextFieldValue, toSelectFieldValue, toTextFieldValue, transformCellValue, updatePicture, writeToAITable, writeToClipboard, zhIntlCollator };
|
10396
10453
|
//# sourceMappingURL=ai-table-grid.mjs.map
|