@ai-table/grid 0.1.15 → 0.1.16
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/colors.d.ts +1 -0
- package/constants/colors.d.ts.map +1 -1
- package/core/types/ai-table.d.ts +1 -0
- package/core/types/ai-table.d.ts.map +1 -1
- package/fesm2022/ai-table-grid.mjs +8 -6
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/renderer/components/action-icon.component.d.ts +1 -0
- package/renderer/components/action-icon.component.d.ts.map +1 -1
- package/renderer/drawers/drawer.d.ts +1 -0
- package/renderer/drawers/drawer.d.ts.map +1 -1
- package/types/component-config.d.ts +2 -1
- package/types/component-config.d.ts.map +1 -1
package/constants/colors.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBlB,CAAC"}
|
package/core/types/ai-table.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ai-table.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/types/ai-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,i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,OAAO,QAAQ,mBAAmB,GAAG,OAAO;0BAO7C,OAAO,QAAQ,mBAAmB,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;4BAYnF,OAAO,eAAe,MAAM;0BAO9B,OAAO,GAAG,QAAQ;CAG3C,CAAC"}
|
@@ -953,7 +953,8 @@ const Colors = {
|
|
953
953
|
itemActiveBgColor: '#6698ff1a',
|
954
954
|
itemMatchBgColor: '#ff9f731a',
|
955
955
|
waring: '#ffcd5d',
|
956
|
-
success: '#73d897'
|
956
|
+
success: '#73d897',
|
957
|
+
danger: '#ff5b57'
|
957
958
|
};
|
958
959
|
|
959
960
|
const AITable = {
|
@@ -5115,7 +5116,7 @@ class AITableActionIcon {
|
|
5115
5116
|
return { x, y, listening };
|
5116
5117
|
});
|
5117
5118
|
this.squareShapeConfig = computed(() => {
|
5118
|
-
const { name, backgroundWidth, backgroundHeight, coverFill, size = DEFAULT_ICON_SIZE, strokeWidth = 1, cornerRadius } = this.config();
|
5119
|
+
const { name, backgroundWidth, backgroundHeight, hoverFill: coverFill, size = DEFAULT_ICON_SIZE, strokeWidth = 1, cornerRadius, source } = this.config();
|
5119
5120
|
return {
|
5120
5121
|
name,
|
5121
5122
|
width: backgroundWidth || size,
|
@@ -5123,11 +5124,12 @@ class AITableActionIcon {
|
|
5123
5124
|
strokeWidth: strokeWidth,
|
5124
5125
|
fill: coverFill && this.isHover() ? coverFill : Colors.transparent,
|
5125
5126
|
opacity: coverFill && this.isHover() ? 0.1 : 1,
|
5126
|
-
cornerRadius
|
5127
|
+
cornerRadius,
|
5128
|
+
source
|
5127
5129
|
};
|
5128
5130
|
});
|
5129
5131
|
this.iconConfig = computed(() => {
|
5130
|
-
let { type, data, backgroundWidth, backgroundHeight, size = DEFAULT_ICON_SIZE, stroke, strokeWidth = 1, scaleX, scaleY, offsetX, offsetY, rotation, fill,
|
5132
|
+
let { type, data, backgroundWidth, backgroundHeight, size = DEFAULT_ICON_SIZE, stroke, strokeWidth = 1, scaleX, scaleY, offsetX, offsetY, rotation, fill, hoverFill: hoverFill, transformsEnabled = 'position' } = this.config();
|
5131
5133
|
fill = fill || Colors.gray600;
|
5132
5134
|
let pathData = data;
|
5133
5135
|
switch (type) {
|
@@ -5278,7 +5280,7 @@ class AITableCellAttachment extends CoverCellComponent {
|
|
5278
5280
|
y: offsetY,
|
5279
5281
|
data: AddOutlinedPath,
|
5280
5282
|
fill: Colors.gray600,
|
5281
|
-
|
5283
|
+
hoverFill: Colors.primary,
|
5282
5284
|
backgroundWidth: AI_TABLE_ACTION_COMMON_SIZE,
|
5283
5285
|
backgroundHeight: AI_TABLE_ACTION_COMMON_SIZE,
|
5284
5286
|
cornerRadius: AI_TABLE_ACTION_COMMON_RADIUS,
|
@@ -5363,7 +5365,7 @@ class AITableCellRichText extends CoverCellComponent {
|
|
5363
5365
|
y: offsetY,
|
5364
5366
|
data: EditPath,
|
5365
5367
|
fill: Colors.gray600,
|
5366
|
-
|
5368
|
+
hoverFill: Colors.primary,
|
5367
5369
|
backgroundWidth: AI_TABLE_ACTION_COMMON_SIZE,
|
5368
5370
|
backgroundHeight: AI_TABLE_ACTION_COMMON_SIZE,
|
5369
5371
|
cornerRadius: AI_TABLE_ACTION_COMMON_RADIUS,
|