@ai-table/grid 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/angular-konva/components/container.component.d.ts +7 -0
- package/angular-konva/components/container.component.d.ts.map +1 -0
- package/angular-konva/components/container.token.d.ts +3 -0
- package/angular-konva/components/container.token.d.ts.map +1 -0
- package/angular-konva/components/index.d.ts +4 -0
- package/angular-konva/components/index.d.ts.map +1 -0
- package/angular-konva/components/shape.component.d.ts +61 -0
- package/angular-konva/components/shape.component.d.ts.map +1 -0
- package/angular-konva/components/stage.component.d.ts +40 -0
- package/angular-konva/components/stage.component.d.ts.map +1 -0
- package/angular-konva/index.d.ts +5 -0
- package/angular-konva/index.d.ts.map +1 -0
- package/angular-konva/interfaces/component.d.ts +49 -0
- package/angular-konva/interfaces/component.d.ts.map +1 -0
- package/angular-konva/interfaces/config.d.ts +26 -0
- package/angular-konva/interfaces/config.d.ts.map +1 -0
- package/angular-konva/interfaces/event-object.d.ts +7 -0
- package/angular-konva/interfaces/event-object.d.ts.map +1 -0
- package/angular-konva/interfaces/index.d.ts +5 -0
- package/angular-konva/interfaces/index.d.ts.map +1 -0
- package/angular-konva/interfaces/shape.d.ts +42 -0
- package/angular-konva/interfaces/shape.d.ts.map +1 -0
- package/angular-konva/utils/apply-node-props.d.ts +4 -0
- package/angular-konva/utils/apply-node-props.d.ts.map +1 -0
- package/angular-konva/utils/common.d.ts +8 -0
- package/angular-konva/utils/common.d.ts.map +1 -0
- package/angular-konva/utils/index.d.ts +5 -0
- package/angular-konva/utils/index.d.ts.map +1 -0
- package/angular-konva/utils/types.d.ts +4 -0
- package/angular-konva/utils/types.d.ts.map +1 -0
- package/angular-konva/utils/update-picture.d.ts +4 -0
- package/angular-konva/utils/update-picture.d.ts.map +1 -0
- package/components/cell-editors/abstract-cell-editor.component.d.ts +7 -5
- package/components/cell-editors/abstract-cell-editor.component.d.ts.map +1 -1
- package/components/cell-editors/cell-editor.scss +38 -25
- package/components/cell-editors/cell-editor.variables.scss +5 -0
- package/components/cell-editors/date/date-editor.component.d.ts.map +1 -1
- package/components/cell-editors/link/edit-link/edit-link.component.d.ts +33 -0
- package/components/cell-editors/link/edit-link/edit-link.component.d.ts.map +1 -0
- package/components/cell-editors/link/link-editor.component.d.ts +36 -0
- package/components/cell-editors/link/link-editor.component.d.ts.map +1 -0
- package/components/cell-editors/link/link-editor.component.scss +21 -0
- package/components/cell-editors/progress/progress-editor.component.d.ts +0 -1
- package/components/cell-editors/progress/progress-editor.component.d.ts.map +1 -1
- package/components/cell-editors/progress/progress-editor.component.scss +12 -4
- package/components/cell-editors/rating/rating-editor.component.d.ts +0 -1
- package/components/cell-editors/rating/rating-editor.component.d.ts.map +1 -1
- package/components/cell-editors/rating/rating-editor.component.scss +10 -0
- package/components/cell-editors/select/select-editor.component.d.ts +3 -4
- package/components/cell-editors/select/select-editor.component.d.ts.map +1 -1
- package/components/cell-editors/text/text-editor.component.d.ts +0 -1
- package/components/cell-editors/text/text-editor.component.d.ts.map +1 -1
- package/components/cell-views/select/option.component.d.ts.map +1 -1
- package/components/cell-views/select/option.scss +10 -0
- package/components/field-menu/field-menu.component.d.ts +8 -3
- package/components/field-menu/field-menu.component.d.ts.map +1 -1
- package/components/field-property-editor/field-property-editor.component.d.ts +4 -2
- package/components/field-property-editor/field-property-editor.component.d.ts.map +1 -1
- package/components/index.d.ts +3 -1
- package/components/index.d.ts.map +1 -1
- package/constants/colors.d.ts +18 -0
- package/constants/colors.d.ts.map +1 -0
- package/constants/grid.d.ts +17 -1
- package/constants/grid.d.ts.map +1 -1
- package/constants/icon.d.ts +19 -0
- package/constants/icon.d.ts.map +1 -0
- package/constants/index.d.ts +5 -1
- package/constants/index.d.ts.map +1 -1
- package/constants/table.d.ts +60 -0
- package/constants/table.d.ts.map +1 -0
- package/constants/text.d.ts +22 -0
- package/constants/text.d.ts.map +1 -0
- package/core/context.d.ts +14 -0
- package/core/context.d.ts.map +1 -0
- package/core/coordinate.d.ts +96 -0
- package/core/coordinate.d.ts.map +1 -0
- package/core/index.d.ts +3 -2
- package/core/index.d.ts.map +1 -1
- package/core/types/ai-table.d.ts +56 -0
- package/core/types/ai-table.d.ts.map +1 -0
- package/core/types/core.d.ts +29 -23
- package/core/types/core.d.ts.map +1 -1
- package/core/types/index.d.ts +1 -1
- package/core/types/index.d.ts.map +1 -1
- package/core/utils/common.d.ts +1 -2
- package/core/utils/common.d.ts.map +1 -1
- package/core/utils/field.d.ts +3 -1
- package/core/utils/field.d.ts.map +1 -1
- package/core/utils/index.d.ts +0 -1
- package/core/utils/index.d.ts.map +1 -1
- package/core/utils/queries.d.ts +5 -5
- package/core/utils/queries.d.ts.map +1 -1
- package/dom-grid.component.d.ts +11 -0
- package/dom-grid.component.d.ts.map +1 -0
- package/esm2022/angular-konva/components/container.component.mjs +29 -0
- package/esm2022/angular-konva/components/container.token.mjs +3 -0
- package/esm2022/angular-konva/components/index.mjs +4 -0
- package/esm2022/angular-konva/components/shape.component.mjs +142 -0
- package/esm2022/angular-konva/components/stage.component.mjs +123 -0
- package/esm2022/angular-konva/index.mjs +5 -0
- package/esm2022/angular-konva/interfaces/component.mjs +4 -0
- package/esm2022/angular-konva/interfaces/config.mjs +2 -0
- package/esm2022/angular-konva/interfaces/event-object.mjs +2 -0
- package/esm2022/angular-konva/interfaces/index.mjs +5 -0
- package/esm2022/angular-konva/interfaces/shape.mjs +42 -0
- package/esm2022/angular-konva/utils/apply-node-props.mjs +67 -0
- package/esm2022/angular-konva/utils/common.mjs +48 -0
- package/esm2022/angular-konva/utils/index.mjs +5 -0
- package/esm2022/angular-konva/utils/types.mjs +2 -0
- package/esm2022/angular-konva/utils/update-picture.mjs +7 -0
- package/esm2022/components/cell-editors/abstract-cell-editor.component.mjs +15 -7
- package/esm2022/components/cell-editors/date/date-editor.component.mjs +6 -3
- package/esm2022/components/cell-editors/link/edit-link/edit-link.component.mjs +66 -0
- package/esm2022/components/cell-editors/link/link-editor.component.mjs +117 -0
- package/esm2022/components/cell-editors/number/number-editor.component.mjs +2 -2
- package/esm2022/components/cell-editors/progress/progress-editor.component.mjs +3 -6
- package/esm2022/components/cell-editors/rating/rating-editor.component.mjs +4 -7
- package/esm2022/components/cell-editors/select/select-editor.component.mjs +19 -17
- package/esm2022/components/cell-editors/text/text-editor.component.mjs +10 -11
- package/esm2022/components/cell-views/select/option.component.mjs +6 -5
- package/esm2022/components/field-menu/field-menu.component.mjs +11 -8
- package/esm2022/components/field-property-editor/field-property-editor.component.mjs +17 -12
- package/esm2022/components/index.mjs +4 -2
- package/esm2022/constants/colors.mjs +18 -0
- package/esm2022/constants/editor.mjs +2 -3
- package/esm2022/constants/grid.mjs +22 -4
- package/esm2022/constants/icon.mjs +26 -0
- package/esm2022/constants/index.mjs +6 -2
- package/esm2022/constants/table.mjs +62 -0
- package/esm2022/constants/text.mjs +23 -0
- package/esm2022/core/context.mjs +25 -0
- package/esm2022/core/coordinate.mjs +222 -0
- package/esm2022/core/index.mjs +4 -3
- package/esm2022/core/types/ai-table.mjs +44 -0
- package/esm2022/core/types/core.mjs +6 -1
- package/esm2022/core/types/index.mjs +2 -2
- package/esm2022/core/utils/common.mjs +3 -20
- package/esm2022/core/utils/field.mjs +18 -5
- package/esm2022/core/utils/index.mjs +1 -2
- package/esm2022/core/utils/queries.mjs +4 -4
- package/esm2022/dom-grid.component.mjs +82 -0
- package/esm2022/grid-base.component.mjs +154 -0
- package/esm2022/grid.component.mjs +337 -160
- package/esm2022/public-api.mjs +9 -5
- package/esm2022/renderer/components/add-field-column.component.mjs +68 -0
- package/esm2022/renderer/components/cells.component.mjs +35 -0
- package/esm2022/renderer/components/field-head.component.mjs +130 -0
- package/esm2022/renderer/components/field-icon.component.mjs +66 -0
- package/esm2022/renderer/components/frozen-cells.component.mjs +36 -0
- package/esm2022/renderer/components/frozen-heads.component.mjs +117 -0
- package/esm2022/renderer/components/frozen-placeholder-cells.component.mjs +38 -0
- package/esm2022/renderer/components/heads.component.mjs +38 -0
- package/esm2022/renderer/components/hover-row-heads.component.mjs +107 -0
- package/esm2022/renderer/components/icon.component.mjs +80 -0
- package/esm2022/renderer/components/index.mjs +14 -0
- package/esm2022/renderer/components/other-rows.component.mjs +68 -0
- package/esm2022/renderer/components/placeholder-cells.component.mjs +33 -0
- package/esm2022/renderer/components/text.component.mjs +45 -0
- package/esm2022/renderer/creations/create-active-cell-border.mjs +68 -0
- package/esm2022/renderer/creations/create-cells.mjs +135 -0
- package/esm2022/renderer/creations/create-heads.mjs +45 -0
- package/esm2022/renderer/drawers/add-row-layout-drawer.mjs +97 -0
- package/esm2022/renderer/drawers/cell-drawer.mjs +587 -0
- package/esm2022/renderer/drawers/drawer.mjs +936 -0
- package/esm2022/renderer/drawers/layout-drawer.mjs +58 -0
- package/esm2022/renderer/drawers/record-row-layout-drawer.mjs +101 -0
- package/esm2022/renderer/index.mjs +4 -0
- package/esm2022/renderer/renderer.component.mjs +174 -0
- package/esm2022/services/event.service.mjs +120 -11
- package/esm2022/services/field.service.mjs +28 -5
- package/esm2022/services/index.mjs +4 -0
- package/esm2022/services/selection.service.mjs +8 -1
- package/esm2022/types/avatar.mjs +27 -0
- package/esm2022/types/canvas.mjs +2 -0
- package/esm2022/types/cell.mjs +2 -0
- package/esm2022/types/component-config.mjs +7 -0
- package/esm2022/types/field.mjs +1 -1
- package/esm2022/types/grid.mjs +16 -2
- package/esm2022/types/index.mjs +8 -2
- package/esm2022/types/layout.mjs +2 -0
- package/esm2022/types/row.mjs +6 -0
- package/esm2022/utils/build.mjs +39 -0
- package/esm2022/utils/cell.mjs +71 -0
- package/esm2022/utils/common.mjs +49 -0
- package/esm2022/utils/get-placeholder-cells.mjs +66 -0
- package/esm2022/utils/get-text-width.mjs +30 -0
- package/esm2022/utils/image-cache.mjs +57 -0
- package/esm2022/utils/index.mjs +12 -0
- package/esm2022/utils/os.mjs +16 -0
- package/esm2022/utils/position.mjs +48 -0
- package/esm2022/utils/style.mjs +25 -0
- package/esm2022/utils/text-measure.mjs +122 -0
- package/esm2022/utils/visible-range.mjs +38 -0
- package/fesm2022/ai-table-grid.mjs +5549 -690
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/grid-base.component.d.ts +52 -0
- package/grid-base.component.d.ts.map +1 -0
- package/grid.component.d.ts +43 -40
- package/grid.component.d.ts.map +1 -1
- package/package.json +5 -2
- package/public-api.d.ts +8 -4
- package/public-api.d.ts.map +1 -1
- package/renderer/components/add-field-column.component.d.ts +16 -0
- package/renderer/components/add-field-column.component.d.ts.map +1 -0
- package/renderer/components/cells.component.d.ts +14 -0
- package/renderer/components/cells.component.d.ts.map +1 -0
- package/renderer/components/field-head.component.d.ts +73 -0
- package/renderer/components/field-head.component.d.ts.map +1 -0
- package/renderer/components/field-icon.component.d.ts +17 -0
- package/renderer/components/field-icon.component.d.ts.map +1 -0
- package/renderer/components/frozen-cells.component.d.ts +14 -0
- package/renderer/components/frozen-cells.component.d.ts.map +1 -0
- package/renderer/components/frozen-heads.component.d.ts +47 -0
- package/renderer/components/frozen-heads.component.d.ts.map +1 -0
- package/renderer/components/frozen-placeholder-cells.component.d.ts +22 -0
- package/renderer/components/frozen-placeholder-cells.component.d.ts.map +1 -0
- package/renderer/components/heads.component.d.ts +9 -0
- package/renderer/components/heads.component.d.ts.map +1 -0
- package/renderer/components/hover-row-heads.component.d.ts +11 -0
- package/renderer/components/hover-row-heads.component.d.ts.map +1 -0
- package/renderer/components/icon.component.d.ts +37 -0
- package/renderer/components/icon.component.d.ts.map +1 -0
- package/renderer/components/index.d.ts +14 -0
- package/renderer/components/index.d.ts.map +1 -0
- package/renderer/components/other-rows.component.d.ts +31 -0
- package/renderer/components/other-rows.component.d.ts.map +1 -0
- package/renderer/components/placeholder-cells.component.d.ts +22 -0
- package/renderer/components/placeholder-cells.component.d.ts.map +1 -0
- package/renderer/components/text.component.d.ts +99 -0
- package/renderer/components/text.component.d.ts.map +1 -0
- package/renderer/creations/create-active-cell-border.d.ts +7 -0
- package/renderer/creations/create-active-cell-border.d.ts.map +1 -0
- package/renderer/creations/create-cells.d.ts +8 -0
- package/renderer/creations/create-cells.d.ts.map +1 -0
- package/renderer/creations/create-heads.d.ts +3 -0
- package/renderer/creations/create-heads.d.ts.map +1 -0
- package/renderer/drawers/add-row-layout-drawer.d.ts +12 -0
- package/renderer/drawers/add-row-layout-drawer.d.ts.map +1 -0
- package/renderer/drawers/cell-drawer.d.ts +22 -0
- package/renderer/drawers/cell-drawer.d.ts.map +1 -0
- package/renderer/drawers/drawer.d.ts +136 -0
- package/renderer/drawers/drawer.d.ts.map +1 -0
- package/renderer/drawers/layout-drawer.d.ts +22 -0
- package/renderer/drawers/layout-drawer.d.ts.map +1 -0
- package/renderer/drawers/record-row-layout-drawer.d.ts +14 -0
- package/renderer/drawers/record-row-layout-drawer.d.ts.map +1 -0
- package/renderer/index.d.ts +4 -0
- package/renderer/index.d.ts.map +1 -0
- package/renderer/renderer.component.d.ts +64 -0
- package/renderer/renderer.component.d.ts.map +1 -0
- package/services/event.service.d.ts +17 -3
- package/services/event.service.d.ts.map +1 -1
- package/services/field.service.d.ts +5 -4
- package/services/field.service.d.ts.map +1 -1
- package/services/index.d.ts +4 -0
- package/services/index.d.ts.map +1 -0
- package/services/selection.service.d.ts.map +1 -1
- package/styles/styles.scss +71 -11
- package/types/avatar.d.ts +24 -0
- package/types/avatar.d.ts.map +1 -0
- package/types/canvas.d.ts +83 -0
- package/types/canvas.d.ts.map +1 -0
- package/types/cell.d.ts +43 -0
- package/types/cell.d.ts.map +1 -0
- package/types/component-config.d.ts +50 -0
- package/types/component-config.d.ts.map +1 -0
- package/types/field.d.ts +27 -1
- package/types/field.d.ts.map +1 -1
- package/types/grid.d.ts +81 -2
- package/types/grid.d.ts.map +1 -1
- package/types/index.d.ts +7 -1
- package/types/index.d.ts.map +1 -1
- package/types/layout.d.ts +11 -0
- package/types/layout.d.ts.map +1 -0
- package/types/row.d.ts +27 -0
- package/types/row.d.ts.map +1 -0
- package/utils/build.d.ts +5 -0
- package/utils/build.d.ts.map +1 -0
- package/utils/cell.d.ts +19 -0
- package/utils/cell.d.ts.map +1 -0
- package/utils/common.d.ts +20 -0
- package/utils/common.d.ts.map +1 -0
- package/utils/get-placeholder-cells.d.ts +16 -0
- package/utils/get-placeholder-cells.d.ts.map +1 -0
- package/utils/get-text-width.d.ts +9 -0
- package/utils/get-text-width.d.ts.map +1 -0
- package/utils/image-cache.d.ts +16 -0
- package/utils/image-cache.d.ts.map +1 -0
- package/utils/index.d.ts +12 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/os.d.ts +4 -0
- package/utils/os.d.ts.map +1 -0
- package/utils/position.d.ts +20 -0
- package/utils/position.d.ts.map +1 -0
- package/utils/style.d.ts +4 -0
- package/utils/style.d.ts.map +1 -0
- package/utils/text-measure.d.ts +32 -0
- package/utils/text-measure.d.ts.map +1 -0
- package/utils/visible-range.d.ts +13 -0
- package/utils/visible-range.d.ts.map +1 -0
- package/components/cell-editors/link/number-editor.component.d.ts +0 -8
- package/components/cell-editors/link/number-editor.component.d.ts.map +0 -1
- package/constants/field.d.ts +0 -20
- package/constants/field.d.ts.map +0 -1
- package/core/action/field.d.ts +0 -12
- package/core/action/field.d.ts.map +0 -1
- package/core/action/general.d.ts +0 -5
- package/core/action/general.d.ts.map +0 -1
- package/core/action/index.d.ts +0 -12
- package/core/action/index.d.ts.map +0 -1
- package/core/action/record.d.ts +0 -12
- package/core/action/record.d.ts.map +0 -1
- package/core/types/action.d.ts +0 -64
- package/core/types/action.d.ts.map +0 -1
- package/core/utils/weak-map.d.ts +0 -3
- package/core/utils/weak-map.d.ts.map +0 -1
- package/esm2022/components/cell-editors/link/number-editor.component.mjs +0 -25
- package/esm2022/constants/field.mjs +0 -25
- package/esm2022/core/action/field.mjs +0 -57
- package/esm2022/core/action/general.mjs +0 -116
- package/esm2022/core/action/index.mjs +0 -9
- package/esm2022/core/action/record.mjs +0 -44
- package/esm2022/core/types/action.mjs +0 -18
- package/esm2022/core/utils/weak-map.mjs +0 -2
@@ -13,7 +13,6 @@ export declare class ProgressEditorComponent extends AbstractEditCellEditor<numb
|
|
13
13
|
config: Partial<AITableProgressConfig | undefined>;
|
14
14
|
mousedownHandler(event: Event): void;
|
15
15
|
sliderMousedownHandler(event: Event): void;
|
16
|
-
updateValue(value: number): void;
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressEditorComponent, never>;
|
18
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressEditorComponent, "progress-editor", never, {}, {}, never, never, true, never>;
|
19
18
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"progress-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/progress/progress-editor.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,MAAM,WAAW,qBAAqB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,qBAyBa,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAOhD;IAGF,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAI7B,sBAAsB,CAAC,KAAK,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"progress-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/progress/progress-editor.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,MAAM,WAAW,qBAAqB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,qBAyBa,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAOhD;IAGF,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAI7B,sBAAsB,CAAC,KAAK,EAAE,KAAK;yCAf1B,uBAAuB;2CAAvB,uBAAuB;CAmBnC"}
|
@@ -1,21 +1,29 @@
|
|
1
1
|
@use 'ngx-tethys/styles/variables.scss';
|
2
|
+
@use '../cell-editor.variables.scss' as cellEditorVariables;
|
2
3
|
|
3
4
|
.progress-editor {
|
4
5
|
display: flex;
|
5
6
|
align-items: center;
|
6
7
|
height: 100%;
|
7
|
-
padding: 0
|
8
|
+
padding: 0 cellEditorVariables.$cell-editor-padding-left;
|
8
9
|
|
9
10
|
.thy-slider {
|
10
11
|
flex: 1;
|
11
|
-
padding:
|
12
|
+
padding: 0px;
|
13
|
+
height: 100%;
|
14
|
+
display: flex;
|
15
|
+
align-items: center;
|
12
16
|
}
|
13
17
|
.progress-text {
|
14
18
|
display: inline-block;
|
19
|
+
// 46(文本宽度) - 8(左边距) - 编辑组件总宽度比 BLANK_WIDTH 少 2px
|
20
|
+
width: 36px;
|
15
21
|
margin-left: 8px;
|
16
|
-
width: 40px;
|
17
22
|
white-space: nowrap;
|
18
23
|
font-size: 0.875rem;
|
19
|
-
|
24
|
+
font-weight: normal;
|
25
|
+
position: relative;
|
26
|
+
line-height: 24px;
|
27
|
+
height: 24px;
|
20
28
|
}
|
21
29
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class RatingCellEditorComponent extends AbstractEditCellEditor<number> {
|
4
|
-
updateValue(): void;
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<RatingCellEditorComponent, never>;
|
6
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<RatingCellEditorComponent, "rating-cell-editor", never, {}, {}, never, never, true, never>;
|
7
6
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rating-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/rating/rating-editor.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAUa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"rating-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/rating/rating-editor.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAUa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;yCAAhE,yBAAyB;2CAAzB,yBAAyB;CAA0C"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
@use '../cell-editor.variables.scss' as cellEditorVariables;
|
2
|
+
|
3
|
+
.rating-cell-editor {
|
4
|
+
.thy-rate .thy-rate-container .thy-rate-star,
|
5
|
+
.thy-rate .thy-rate-container .thy-rate-star .thy-rate-item-all {
|
6
|
+
transition: none;
|
7
|
+
height: 28px;
|
8
|
+
}
|
9
|
+
padding-left: cellEditorVariables.$cell-editor-padding-left;
|
10
|
+
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { AITableSelectField } from '../../../types';
|
2
2
|
import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
|
3
|
-
import { AITableSelectOptionStyle } from '../../../core';
|
4
3
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class SelectCellEditorComponent extends AbstractEditCellEditor<string[], AITableSelectField> {
|
4
|
+
export declare class SelectCellEditorComponent extends AbstractEditCellEditor<string[] | string, AITableSelectField> {
|
6
5
|
selectOptions: import("@angular/core").Signal<import("../../../core").AITableSelectOption[]>;
|
7
|
-
|
8
|
-
|
6
|
+
preset: import("@angular/core").Signal<"" | "tag">;
|
7
|
+
get isMultiple(): boolean;
|
9
8
|
constructor();
|
10
9
|
ngOnInit(): void;
|
11
10
|
updateValue(value: boolean): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/select/select-editor.component.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"select-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/select/select-editor.component.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAuBa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,kBAAkB,CAAC;IACxG,aAAa,gFAEV;IAEH,MAAM,6CAEH;IAEH,IAAI,UAAU,YAEb;;IAMQ,QAAQ,IAAI,IAAI;IAUzB,WAAW,CAAC,KAAK,EAAE,OAAO;yCA3BjB,yBAAyB;2CAAzB,yBAAyB;CAqCrC"}
|
@@ -2,7 +2,6 @@ import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class TextCellEditorComponent extends AbstractEditCellEditor<string> implements AfterViewInit {
|
5
|
-
private elementRef;
|
6
5
|
private render2;
|
7
6
|
private maxHeight;
|
8
7
|
constructor();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/text/text-editor.component.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"text-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/text/text-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAyD,MAAM,eAAe,CAAC;AAIrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAqBa,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAE,YAAW,aAAa;IAChG,OAAO,CAAC,OAAO,CAAqB;IAEpC,OAAO,CAAC,SAAS,CAAO;;IAMxB,eAAe;IAMf,WAAW;IAUX,WAAW;IAIX,WAAW;yCA7BF,uBAAuB;2CAAvB,uBAAuB;CAiCnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"option.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-views/select/option.component.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;;AAE5F,
|
1
|
+
{"version":3,"file":"option.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-views/select/option.component.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;;AAE5F,qBAWa,qBAAqB;IAC9B,KAAK,oDAAkC;IAEvC,aAAa,2DAAyC;IAEtD,WAAW,2DAER;IAEH,wBAAwB,kCAA4B;yCAT3C,qBAAqB;2CAArB,qBAAqB;CAUjC"}
|
@@ -1,15 +1,20 @@
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { ThyDropdownAbstractMenu } from 'ngx-tethys/dropdown';
|
3
3
|
import { AITable } from '../../core';
|
4
|
+
import { AITableFieldMenuItem } from '../../types/field';
|
4
5
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class FieldMenu {
|
6
|
+
export declare class FieldMenu extends ThyDropdownAbstractMenu {
|
6
7
|
fieldId: string;
|
7
8
|
aiTable: AITable;
|
8
9
|
fieldMenus: AITableFieldMenuItem[];
|
9
10
|
origin: HTMLElement | ElementRef<any>;
|
11
|
+
position: {
|
12
|
+
x: number;
|
13
|
+
y: number;
|
14
|
+
};
|
10
15
|
field: import("@angular/core").Signal<import("../../core").AITableField>;
|
11
16
|
execute(menu: AITableFieldMenuItem): void;
|
12
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldMenu, never>;
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldMenu, "field-menu", never, { "fieldId": { "alias": "fieldId"; "required": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "fieldMenus": { "alias": "fieldMenus"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; }, {}, never, never, true, never>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldMenu, "field-menu", never, { "fieldId": { "alias": "fieldId"; "required": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "fieldMenus": { "alias": "fieldMenus"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
|
14
19
|
}
|
15
20
|
//# sourceMappingURL=field-menu.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field-menu.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-menu/field-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"field-menu.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-menu/field-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,UAAU,EAAmB,MAAM,eAAe,CAAC;AAEhG,OAAO,EACH,uBAAuB,EAK1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;;AAEzD,qBAca,SAAU,SAAQ,uBAAuB;IACvB,OAAO,EAAG,MAAM,CAAC;IAEjB,OAAO,EAAG,OAAO,CAAC;IAElB,UAAU,EAAG,oBAAoB,EAAE,CAAC;IAEtD,MAAM,EAAG,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAEvC,QAAQ,EAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAE7C,KAAK,oEAEF;IAEH,OAAO,CAAC,IAAI,EAAE,oBAAoB;yCAfzB,SAAS;2CAAT,SAAS;CAoBrB"}
|
@@ -1,13 +1,15 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
2
|
import { ThyFormValidatorConfig } from 'ngx-tethys/form';
|
3
|
-
import { AITable, AITableField, AITableFieldOption } from '../../core';
|
4
3
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
4
|
+
import { AITable, AITableField, AITableFieldOption, SetFieldOptions } from '../../core';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class AITableFieldPropertyEditor {
|
7
7
|
aiEditField: import("@angular/core").ModelSignal<AITableField>;
|
8
8
|
aiTable: AITable;
|
9
9
|
aiExternalTemplate: TemplateRef<any> | null;
|
10
10
|
isUpdate: boolean;
|
11
|
+
addField: import("@angular/core").OutputEmitterRef<AITableField>;
|
12
|
+
setField: import("@angular/core").OutputEmitterRef<SetFieldOptions<unknown>>;
|
11
13
|
selectedFieldOption: import("@angular/core").Signal<AITableFieldOption>;
|
12
14
|
fieldMaxLength: number;
|
13
15
|
validatorConfig: ThyFormValidatorConfig;
|
@@ -18,7 +20,7 @@ export declare class AITableFieldPropertyEditor {
|
|
18
20
|
editFieldProperty(): void;
|
19
21
|
cancel(): void;
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<AITableFieldPropertyEditor, never>;
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AITableFieldPropertyEditor, "ai-table-field-property-editor", never, { "aiEditField": { "alias": "aiEditField"; "required": true; "isSignal": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "aiExternalTemplate": { "alias": "aiExternalTemplate"; "required": false; }; "isUpdate": { "alias": "isUpdate"; "required": false; }; }, { "aiEditField": "aiEditFieldChange"; }, never, never, true, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AITableFieldPropertyEditor, "ai-table-field-property-editor", never, { "aiEditField": { "alias": "aiEditField"; "required": true; "isSignal": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "aiExternalTemplate": { "alias": "aiExternalTemplate"; "required": false; }; "isUpdate": { "alias": "isUpdate"; "required": false; }; }, { "aiEditField": "aiEditFieldChange"; "addField": "addField"; "setField": "setField"; }, never, never, true, never>;
|
22
24
|
static ngAcceptInputType_isUpdate: unknown;
|
23
25
|
}
|
24
26
|
//# sourceMappingURL=field-property-editor.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field-property-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-property-editor/field-property-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,WAAW,
|
1
|
+
{"version":3,"file":"field-property-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-property-editor/field-property-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,WAAW,EAAqD,MAAM,eAAe,CAAC;AAU1I,OAAO,EAA+C,sBAAsB,EAA2B,MAAM,iBAAiB,CAAC;AAI/H,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EACH,OAAO,EACP,YAAY,EACZ,kBAAkB,EAIlB,eAAe,EAClB,MAAM,YAAY,CAAC;;AAEpB,qBAsCa,0BAA0B;IACnC,WAAW,oDAAkC;IAElB,OAAO,EAAG,OAAO,CAAC;IAEpC,kBAAkB,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAEpB,QAAQ,EAAG,OAAO,CAAC;IAE3D,QAAQ,yDAA0B;IAElC,QAAQ,qEAA6B;IAErC,mBAAmB,qDAEhB;IAEH,cAAc,SAAM;IAEpB,eAAe,EAAE,sBAAsB,CAOrC;IAEF,YAAY,uBAAgB;IAE5B,SAAS,CAAC,aAAa,+BAAqD;IAE5E,eAAe,cAAe,MAAM,wCAGlC;IAEF,eAAe,CAAC,KAAK,EAAE,kBAAkB;IASzC,iBAAiB;IAYjB,MAAM;yCA1DG,0BAA0B;2CAA1B,0BAA0B;uCA8D4l/B,OAAQ;CAD1o/B"}
|
package/components/index.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
export * from './cell-editors/abstract-cell-editor.component';
|
1
2
|
export * from './cell-editors/date/date-editor.component';
|
2
|
-
export * from './cell-editors/link/
|
3
|
+
export * from './cell-editors/link/link-editor.component';
|
3
4
|
export * from './cell-editors/number/number-editor.component';
|
4
5
|
export * from './cell-editors/progress/progress-editor.component';
|
5
6
|
export * from './cell-editors/rating/rating-editor.component';
|
7
|
+
export * from './cell-editors/select/select-editor.component';
|
6
8
|
export * from './cell-editors/text/text-editor.component';
|
7
9
|
export * from './cell-views/select/option.component';
|
8
10
|
export * from './field-property-editor/field-property-editor.component';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yDAAyD,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const Colors: {
|
2
|
+
primary: string;
|
3
|
+
gray100: string;
|
4
|
+
gray200: string;
|
5
|
+
gray300: string;
|
6
|
+
gray800: string;
|
7
|
+
gray600: string;
|
8
|
+
gray700: string;
|
9
|
+
white: string;
|
10
|
+
black: string;
|
11
|
+
transparent: string;
|
12
|
+
gray80: string;
|
13
|
+
headSelectedBgColor: string;
|
14
|
+
itemActiveBgColor: string;
|
15
|
+
waring: string;
|
16
|
+
success: string;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=colors.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBlB,CAAC"}
|
package/constants/grid.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AITableFieldType } from '../core';
|
2
|
-
|
2
|
+
import { AITableAreaType } from '../types';
|
3
3
|
export declare const MIN_COLUMN_WIDTH = 80;
|
4
4
|
export declare const DBL_CLICK_EDIT_TYPE: AITableFieldType[];
|
5
5
|
export declare const MOUSEOVER_EDIT_TYPE: AITableFieldType[];
|
@@ -9,4 +9,20 @@ export declare const RowHeight: {
|
|
9
9
|
Tall: number;
|
10
10
|
ExtraTall: number;
|
11
11
|
};
|
12
|
+
export declare const DEFAULT_POINT_POSITION: {
|
13
|
+
areaType: AITableAreaType;
|
14
|
+
targetName: string;
|
15
|
+
realTargetName: string;
|
16
|
+
rowIndex: number;
|
17
|
+
columnIndex: number;
|
18
|
+
x: number;
|
19
|
+
y: number;
|
20
|
+
offsetTop: number;
|
21
|
+
offsetLeft: number;
|
22
|
+
};
|
23
|
+
export declare const DEFAULT_SCROLL_STATE: {
|
24
|
+
scrollTop: number;
|
25
|
+
scrollLeft: number;
|
26
|
+
isScrolling: boolean;
|
27
|
+
};
|
12
28
|
//# sourceMappingURL=grid.d.ts.map
|
package/constants/grid.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,eAAO,MAAM,mBAAmB,oBAO/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oBAAqD,CAAC;AAEtF,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;CAUlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const DEFAULT_ICON_SHAPE = "square";
|
2
|
+
export declare const DEFAULT_ICON_SIZE = 16;
|
3
|
+
export declare const Check = "\n M15,1H3C1.9,1,1,1.9,1,3v12c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V3C17,1.9,16.1,1,15,1z M14,6.6l-5.7,5.7\n c-0.2,0.2-0.4,0.3-0.6,0.3s-0.4-0.1-0.6-0.3L4.6,9.8c-0.3-0.3-0.3-0.9,0-1.2s0.9-0.3,1.2,0l1.9,1.9l5.1-5.1\n c0.3-0.3,0.9-0.3,1.2,0C14.3,5.7,14.3,6.3,14,6.6z\n ";
|
4
|
+
export declare const Unchecked = "\n M15,1H3C1.9,1,1,1.9,1,3v12c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V3C17,1.9,16.1,1,15,1z\n M15.7,3.3v11.4c0,0.5-0.5,1-1,1H3.3c-0.5,0-1-0.5-1-1V3.3c0-0.5,0.5-1,1-1h11.4C15.2,2.3,15.7,2.8,15.7,3.3z\n ";
|
5
|
+
export declare const ColumnTextFilledPath = "M7.268 8.674l-2.076-4.86-2.076 4.86h4.152zm0.513 1.2H2.603l-1.294 3.03L0 12.902L4.49 2.4H5.894l4.484 10.486-1.31 0.002-1.287-3.014zm2.86 1.111c0-1.423 1.246-2.193 4.21-2.49 0-0.89-0.235-1.72-1.362-1.72-0.772 0-1.484 0.356-2.017 0.711l-0.475-0.771c0.653-0.415 1.602-0.889 2.669-0.889 1.602 0 2.313 1.127 2.313 2.787v4.151h-0.948l-0.12-0.83h-0.06c-0.651 0.534-1.422 0.949-2.252 0.949-1.127 0-1.957-0.652-1.957-1.898zm4.113-1.778c-2.253 0.296-3.024 0.83-3.024 1.72 0 0.77 0.534 1.067 1.186 1.067 0.652 0 1.186-0.297 1.838-0.89V9.207z";
|
6
|
+
export declare const ColumnSelectFilledPath = "M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-1.2A6.8 6.8 0 1 0 8 1.2a6.8 6.8 0 0 0 0 13.6zM5.666 7.207l1.8 1.845 3.482-3.554.857.84-4.34 4.43-2.658-2.723.86-.838z";
|
7
|
+
export declare const ColumnMultipleFillPath = "M2 2.551L3.576.976l.848.848L2 4.25.576 2.824l.848-.848L2 2.55zm0 5.425L3.576 6.4l.848.849L2 9.673.576 8.249l.848-.849.576.576zm0 5.4L3.576 11.8l.848.849L2 15.073.576 13.649l.848-.849.576.576zM5.663 2.6a.6.6 0 1 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663zm0 11.8a.6.6 0 0 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663zm0-6.2a.6.6 0 1 1 0-1.2H15.4a.6.6 0 0 1 0 1.2H5.663z";
|
8
|
+
export declare const ColumnCalendarFilledPath = "M10.9 3.2H5.1v1.6H3.9V3.2H1.2v3.2h13.6V3.2h-2.7v1.6h-1.2V3.2zM12.1 2H15a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h2.9V.4h1.2V2h5.8V.4h1.2V2zm2.7 5.6H1.2v7.2h13.6V7.6z";
|
9
|
+
export declare const ColumnNumberFilledPath = "M4.236 9.9l.422-3.8H2.6a.6.6 0 1 1 0-1.2h2.19l.372-3.347a.6.6 0 1 1 1.192.133L5.998 4.9h4.793l.37-3.347a.6.6 0 0 1 1.193.133L11.998 4.9h2.459a.6.6 0 0 1 0 1.2h-2.592l-.421 3.8h2.013a.6.6 0 0 1 0 1.2H11.31l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H5.311l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H1.6a.6.6 0 0 1 0-1.2h2.636zm1.208 0h4.792l.422-3.8H5.865l-.421 3.8z";
|
10
|
+
export declare const ColumnLinkOutlinedPath = "M10.4238543,5.91643446 C11.7563563,7.48802206 11.6811634,9.84553933 10.1982756,11.3284271 L7.22842712,14.2982756 C5.66632996,15.8603728 3.13367004,15.8603728 1.57157288,14.2982756 C0.00947570825,12.7361784 0.00947570825,10.2035185 1.57157288,8.64142136 L2.387,7.82495116 L3.236,8.67395116 L2.42010101,9.48994949 C1.37219416,10.5378563 1.32853138,12.2097205 2.28911266,13.3096237 L2.42010101,13.4497475 C3.51356903,14.5432155 5.28643097,14.5432155 6.37989899,13.4497475 L9.34974747,10.479899 C10.3636395,9.46600698 10.4374244,7.86800734 9.57110232,6.76909967 L10.4238543,5.91643446 Z M14.4436815,1.67157288 C16.0057786,3.23367004 16.0057786,5.76632996 14.4436815,7.32842712 L13.5744058,8.198 L12.7254058,7.349 L13.5951533,6.47989899 C14.6430602,5.43199214 14.6867229,3.76012802 13.7261417,2.66022473 L13.5951533,2.52010101 C12.5016853,1.426633 10.7288234,1.426633 9.63535534,2.52010101 L6.66550686,5.48994949 C5.62228095,6.5331754 5.57434734,8.19479666 6.52170603,9.29485 L5.67236452,10.1460046 C4.25646867,8.57570748 4.3046734,6.15372668 5.81697872,4.64142136 L8.7868272,1.67157288 C10.3489244,0.109475708 12.8815843,0.109475708 14.4436815,1.67157288 Z";
|
11
|
+
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";
|
12
|
+
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";
|
13
|
+
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";
|
14
|
+
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";
|
15
|
+
export declare const MoreStandOutlinedPath = "M6.5 2.5C6.5 3.32843 7.17157 4 8 4C8.82843 4 9.5 3.32843 9.5 2.5C9.5 1.67157 8.82843 1 8 1C7.17157 1 6.5 1.67157 6.5 2.5ZM6.5 8C6.5 8.82843 7.17157 9.5 8 9.5C8.82843 9.5 9.5 8.82843 9.5 8C9.5 7.17157 8.82843 6.5 8 6.5C7.17157 6.5 6.5 7.17157 6.5 8ZM6.5 13.5C6.5 14.3284 7.17157 15 8 15C8.82843 15 9.5 14.3284 9.5 13.5C9.5 12.6716 8.82843 12 8 12C7.17157 12 6.5 12.6716 6.5 13.5Z";
|
16
|
+
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";
|
17
|
+
export declare const WebOutlinedPath = "M1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8ZM6.04798 2.85646C4.19852 3.55874 2.82616 5.22986 2.55071 7.25H5.26373C5.31861 5.76009 5.53564 4.40148 5.87147 3.352C5.92605 3.18143 5.98481 3.0157 6.04798 2.85646ZM5.87147 12.648C5.53564 11.5985 5.31861 10.2399 5.26373 8.75H2.55071C2.82616 10.7701 4.19852 12.4413 6.04798 13.1435C5.98481 12.9843 5.92605 12.8186 5.87147 12.648ZM10.1285 12.648C10.0739 12.8186 10.0152 12.9843 9.95202 13.1435C11.8015 12.4413 13.1738 10.7701 13.4493 8.75H10.7363C10.6814 10.2399 10.4644 11.5985 10.1285 12.648ZM8.6999 12.1908C8.98163 11.3104 9.18095 10.1118 9.23518 8.75H6.76482C6.81905 10.1118 7.01837 11.3104 7.3001 12.1908C7.46768 12.7145 7.65131 13.0839 7.81962 13.3063C7.90746 13.4224 7.9686 13.4711 8 13.4906C8.0314 13.4711 8.09254 13.4224 8.18038 13.3063C8.34869 13.0839 8.53232 12.7145 8.6999 12.1908ZM7.3001 3.80916C7.01837 4.68959 6.81905 5.88818 6.76482 7.25H9.23518C9.18095 5.88818 8.98163 4.68959 8.6999 3.80916C8.53232 3.28548 8.34869 2.91612 8.18038 2.69367C8.09254 2.57756 8.0314 2.52893 8 2.50944C7.9686 2.52893 7.90746 2.57756 7.81962 2.69367C7.65131 2.91612 7.46768 3.28548 7.3001 3.80916ZM10.1285 3.352C10.4644 4.40148 10.6814 5.76009 10.7363 7.25H13.4493C13.1738 5.22986 11.8015 3.55874 9.95203 2.85646C10.0152 3.0157 10.0739 3.18143 10.1285 3.352Z";
|
18
|
+
export declare const DepartmentOutlinedPath = "M3 5.5C3 3.567 4.567 2 6.5 2C8.433 2 10 3.567 10 5.5C10 6.49548 9.5844 7.3939 8.91724 8.0312C10.7204 8.86779 12.017 10.6115 12.2217 12.6767C12.2976 13.4424 11.6682 14 11 14H2C1.33185 14 0.702358 13.4424 0.778277 12.6767C0.983033 10.6115 2.27961 8.86779 4.08276 8.0312C3.4156 7.3939 3 6.49548 3 5.5ZM8.5 5.5C8.5 4.39543 7.60457 3.5 6.5 3.5C5.39543 3.5 4.5 4.39543 4.5 5.5C4.5 6.60457 5.39543 7.5 6.5 7.5C7.60457 7.5 8.5 6.60457 8.5 5.5ZM2.31585 12.5H10.6841C10.3303 10.5108 8.59114 9 6.5 9C4.40886 9 2.66975 10.5108 2.31585 12.5Z', 'M11 3C10.5858 3 10.25 3.33579 10.25 3.75C10.25 4.16421 10.5858 4.5 11 4.5C11.6904 4.5 12.25 5.05964 12.25 5.75C12.25 6.44036 11.6904 7 11 7C10.5858 7 10.25 7.33579 10.25 7.75C10.25 8.16421 10.5858 8.5 11 8.5C12.6569 8.5 14 9.84315 14 11.5C14 11.9142 14.3358 12.25 14.75 12.25C15.1642 12.25 15.5 11.9142 15.5 11.5C15.5 9.77473 14.5291 8.27622 13.1038 7.52106C13.507 7.0426 13.75 6.42467 13.75 5.75C13.75 4.23122 12.5188 3 11 3Z";
|
19
|
+
//# sourceMappingURL=icon.d.ts.map
|
@@ -0,0 +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,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,+XAA+X,CAAC;AAEla,eAAO,MAAM,QAAQ,0ZAA0Z,CAAC;AAEhb,eAAO,MAAM,eAAe,80CAA80C,CAAC;AAE32C,eAAO,MAAM,sBAAsB,m8BAAm8B,CAAC"}
|
package/constants/index.d.ts
CHANGED
package/constants/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
export declare const AI_TABLE_ACTION_COMMON_SIZE = 32;
|
2
|
+
export declare const AI_TABLE_DEFAULT_COLUMN_WIDTH = 200;
|
3
|
+
export declare const AI_TABLE_SCROLL_BAR_PADDING = 3;
|
4
|
+
export declare const AI_TABLE_OFFSET = 0.5;
|
5
|
+
export declare const AI_TABLE_TEXT_GAP = 8;
|
6
|
+
export declare const AI_TABLE_ROW_HEAD = "AI_TABLE_ROW_HEAD";
|
7
|
+
export declare const AI_TABLE_ROW_HEAD_WIDTH = 44;
|
8
|
+
export declare const AI_TABLE_ROW_HEAD_SIZE = 16;
|
9
|
+
export declare const AI_TABLE_ROW_ADD_BUTTON = "AI_TABLE_ROW_ADD_BUTTON";
|
10
|
+
export declare const AI_TABLE_BLANK = "AI_TABLE_BLANK";
|
11
|
+
export declare const AI_TABLE_FIELD_HEAD = "AI_TABLE_FIELD_HEAD";
|
12
|
+
export declare const AI_TABLE_FIELD_HEAD_HEIGHT = 44;
|
13
|
+
export declare const AI_TABLE_ROW_BLANK_HEIGHT = 43;
|
14
|
+
export declare const AI_TABLE_ROW_HEIGHT = 44;
|
15
|
+
export declare const AI_TABLE_CELL_ACTIVE_BORDER_WIDTH = 2;
|
16
|
+
export declare const AI_TABLE_FIELD_HEAD_TEXT_MIN_WIDTH = 30;
|
17
|
+
export declare const AI_TABLE_ROW_SELECT_CHECKBOX = "AI_TABLE_ROW_SELECT_CHECKBOX";
|
18
|
+
export declare const AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX = "AI_TABLE_FIELD_HEAD_SELECT_CHECKBOX";
|
19
|
+
export declare const AI_TABLE_FIELD_ADD_BUTTON = "AI_TABLE_FIELD_ADD_BUTTON";
|
20
|
+
export declare const AI_TABLE_FIELD_ADD_BUTTON_WIDTH = 100;
|
21
|
+
export declare const AI_TABLE_FIELD_HEAD_ICON_GAP_SIZE = 8;
|
22
|
+
export declare const AI_TABLE_FIELD_HEAD_MORE = "AI_TABLE_FIELD_HEAD_MORE";
|
23
|
+
export declare const AI_TABLE_ICON_COMMON_SIZE = 16;
|
24
|
+
export declare const AI_TABLE_CELL = "AI_TABLE_CELL";
|
25
|
+
export declare const AI_TABLE_CELL_PADDING = 14;
|
26
|
+
export declare const AI_TABLE_CELL_BORDER = 2;
|
27
|
+
export declare const AI_TABLE_CELL_MULTI_PADDING_TOP = 10;
|
28
|
+
export declare const AI_TABLE_CELL_MULTI_ITEM_MARGIN_TOP = 4;
|
29
|
+
export declare const AI_TABLE_CELL_MULTI_PADDING_LEFT = 4;
|
30
|
+
export declare const AI_TABLE_MIN_TEXT_WIDTH = 24;
|
31
|
+
export declare const AI_TABLE_CELL_MULTI_DOT_RADIUS = 4;
|
32
|
+
export declare const AI_TABLE_CELL_MULTI_ITEM_MARGIN_LEFT = 8;
|
33
|
+
export declare const AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE = 8;
|
34
|
+
export declare const AI_TABLE_CELL_DELETE_ITEM_BUTTON_SIZE_OFFSET = 12;
|
35
|
+
export declare const AI_TABLE_CELL_MULTI_ITEM_MIN_WIDTH = 36;
|
36
|
+
export declare const AI_TABLE_CELL_MAX_ROW_COUNT = 1;
|
37
|
+
export declare const AI_TABLE_CELL_EMOJI_SIZE = 18;
|
38
|
+
export declare const AI_TABLE_CELL_EMOJI_PADDING = 8;
|
39
|
+
export declare const AI_TABLE_CELL_MEMBER_MAX_HEIGHT = 130;
|
40
|
+
export declare const AI_TABLE_CELL_MEMBER_ITEM_HEIGHT = 24;
|
41
|
+
export declare const AI_TABLE_CELL_MEMBER_ITEM_PADDING = 4;
|
42
|
+
export declare const AI_TABLE_CELL_ADD_ITEM_BUTTON_SIZE = 22;
|
43
|
+
export declare const AI_TABLE_MEMBER_AVATAR_SIZE = 24;
|
44
|
+
export declare const AI_TABLE_MEMBER_ITEM_PADDING_RIGHT = 8;
|
45
|
+
export declare const AI_TABLE_MEMBER_ITEM_AVATAR_MARGIN_RIGHT = 8;
|
46
|
+
export declare const AI_TABLE_OPTION_ITEM_PADDING = 10;
|
47
|
+
export declare const AI_TABLE_OPTION_ITEM_HEIGHT = 24;
|
48
|
+
export declare const AI_TABLE_OPTION_ITEM_FONT_SIZE = 14;
|
49
|
+
export declare const AI_TABLE_OPTION_ITEM_RADIUS = 18;
|
50
|
+
export declare const AI_TABLE_TAG_PADDING = 12;
|
51
|
+
export declare const AI_TABLE_TAG_FONT_SIZE = 12;
|
52
|
+
export declare const AI_TABLE_PIECE_WIDTH = 10;
|
53
|
+
export declare const AI_TABLE_PIECE_RADIUS = 2;
|
54
|
+
export declare const AI_TABLE_COMMON_FONT_SIZE = 14;
|
55
|
+
export declare const AI_TABLE_DOT_RADIUS = 5;
|
56
|
+
export declare const AI_TABLE_PROGRESS_BAR_HEIGHT = 10;
|
57
|
+
export declare const AI_TABLE_PROGRESS_BAR_RADIUS = 5;
|
58
|
+
export declare const AI_TABLE_PROGRESS_TEXT_Width = 46;
|
59
|
+
export declare const AI_TABLE_POPOVER_LEFT_OFFSET = 4;
|
60
|
+
//# sourceMappingURL=table.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/table.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,iCAAiC,IAAI,CAAC;AACnD,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AACzF,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AACnD,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,qCAAqC,IAAI,CAAC;AACvD,eAAO,MAAM,4CAA4C,KAAK,CAAC;AAC/D,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,gCAAgC,KAAK,CAAC;AACnD,eAAO,MAAM,iCAAiC,IAAI,CAAC;AACnD,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAErD,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,wCAAwC,IAAI,CAAC;AAE1D,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,4BAA4B,IAAI,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export declare const DEFAULT_FONT_SIZE = 14;
|
2
|
+
export declare 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";
|
3
|
+
export declare const DEFAULT_FONT_STYLE = "normal";
|
4
|
+
export declare const DEFAULT_TEXT_LINE_HEIGHT = 24;
|
5
|
+
export declare const DEFAULT_TEXT_FILL: string;
|
6
|
+
export declare const DEFAULT_FONT_WEIGHT = "normal";
|
7
|
+
export declare const DEFAULT_TEXT_WRAP = "none";
|
8
|
+
export declare const DEFAULT_TEXT_TRANSFORMS_ENABLED = "position";
|
9
|
+
export declare const DEFAULT_TEXT_ELLIPSIS = true;
|
10
|
+
export declare const DEFAULT_TEXT_LISTENING = false;
|
11
|
+
export declare const DEFAULT_TEXT_ALIGN_LEFT = "left";
|
12
|
+
export declare const DEFAULT_TEXT_ALIGN_CENTER = "center";
|
13
|
+
export declare const DEFAULT_TEXT_ALIGN_RIGHT = "right";
|
14
|
+
export declare const DEFAULT_TEXT_VERTICAL_ALIGN_MIDDLE = "middle";
|
15
|
+
export declare const DEFAULT_TEXT_MAX_HEIGHT = 130;
|
16
|
+
export declare const DEFAULT_WRAP_TEXT_MAX_ROW = 1;
|
17
|
+
export declare const DEFAULT_TEXT_VERTICAL_ALIGN_TOP = "top";
|
18
|
+
export declare const DEFAULT_TEXT_DECORATION = "none";
|
19
|
+
export declare const DEFAULT_TEXT_SCALE = 1;
|
20
|
+
export declare const DEFAULT_TEXT_MAX_CACHE = 500;
|
21
|
+
export declare const FONT_SIZE_SM = 12;
|
22
|
+
//# sourceMappingURL=text.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,mBAAmB,6JAC8H,CAAC;AAC/J,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,iBAAiB,QAAiB,CAAC;AAChD,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,+BAA+B,aAAa,CAAC;AAC1D,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAClD,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAChD,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAC3D,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AACrD,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAC9C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,YAAY,KAAK,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Signal, WritableSignal } from '@angular/core';
|
2
|
+
import { AITableContext, AITableLinearRow, AITablePointPosition, AITableScrollState, ScrollActionOptions } from '../types';
|
3
|
+
export declare class RendererContext {
|
4
|
+
linearRows: Signal<AITableLinearRow[]>;
|
5
|
+
pointPosition: WritableSignal<AITablePointPosition>;
|
6
|
+
scrollState: WritableSignal<AITableScrollState>;
|
7
|
+
visibleColumnsMap: Signal<Map<string, number>>;
|
8
|
+
visibleRowsIndexMap: Signal<Map<string, number>>;
|
9
|
+
scrollAction: (options: ScrollActionOptions) => void;
|
10
|
+
constructor(options: AITableContext);
|
11
|
+
setPointPosition(position: Partial<AITablePointPosition>): void;
|
12
|
+
setScrollState(scrollState: Partial<AITableScrollState>): void;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=context.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/core/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE3H,qBAAa,eAAe;IACxB,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACvC,aAAa,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACpD,WAAW,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,YAAY,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;gBAEzC,OAAO,EAAE,cAAc;IAUnC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,oBAAoB,CAAC;IAaxD,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,kBAAkB,CAAC;CAG1D"}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { AITableCellMetaData, AITableCoordinate, AITableRowColumnType, AITableSizeMap } from '../types';
|
2
|
+
/**
|
3
|
+
* 用于构建 Canvas 基础坐标系,后续的绘制工作以此为基础
|
4
|
+
*/
|
5
|
+
export declare class Coordinate {
|
6
|
+
protected _rowHeight: number;
|
7
|
+
rowCount: number;
|
8
|
+
columnCount: number;
|
9
|
+
container: HTMLDivElement;
|
10
|
+
containerWidth: number;
|
11
|
+
containerHeight: number;
|
12
|
+
rowIndicesMap: AITableSizeMap;
|
13
|
+
columnIndicesMap: AITableSizeMap;
|
14
|
+
rowInitSize: number;
|
15
|
+
columnInitSize: number;
|
16
|
+
lastRowIndex: number;
|
17
|
+
lastColumnIndex: number;
|
18
|
+
rowMetaDataMap: Record<number, AITableCellMetaData>;
|
19
|
+
columnMetaDataMap: Record<number, AITableCellMetaData>;
|
20
|
+
frozenColumnCount: number;
|
21
|
+
constructor({ rowHeight, rowCount, columnCount, container, rowIndicesMap, columnIndicesMap, rowInitSize, columnInitSize, frozenColumnCount }: AITableCoordinate);
|
22
|
+
get rowHeight(): number;
|
23
|
+
set rowHeight(height: number);
|
24
|
+
/**
|
25
|
+
* 总宽度
|
26
|
+
*/
|
27
|
+
get totalWidth(): number;
|
28
|
+
/**
|
29
|
+
* 总高度
|
30
|
+
*/
|
31
|
+
get totalHeight(): number;
|
32
|
+
/**
|
33
|
+
* 根据 rowIndex 获取对应行高
|
34
|
+
*/
|
35
|
+
getRowHeight(index: number): number;
|
36
|
+
/**
|
37
|
+
* 根据 columnIndex 获取对应列宽
|
38
|
+
*/
|
39
|
+
getColumnWidth(index: number): number;
|
40
|
+
/**
|
41
|
+
* 获取每个 cell 垂直/水平方向的坐标信息
|
42
|
+
*/
|
43
|
+
protected getCellMetaData(index: number, itemType: AITableRowColumnType): AITableCellMetaData;
|
44
|
+
/**
|
45
|
+
* 查找最近的单元格索引
|
46
|
+
* 性能较差,但无论如何都可以找到
|
47
|
+
*/
|
48
|
+
private _findNearestCellIndex;
|
49
|
+
/**
|
50
|
+
* 二分法查找最近的单元格索引
|
51
|
+
* 性能更佳,但需要加载数据
|
52
|
+
*/
|
53
|
+
private _findNearestCellIndexByBinary;
|
54
|
+
/**
|
55
|
+
* 根据偏移量查找最近的单元格索引
|
56
|
+
*/
|
57
|
+
findNearestCellIndex(offset: number, itemType: AITableRowColumnType): number;
|
58
|
+
/**
|
59
|
+
* 根据垂直偏移量找到起始单元格的索引
|
60
|
+
*/
|
61
|
+
getRowStartIndex(offset: number): number;
|
62
|
+
/**
|
63
|
+
* 根据垂直起始单元格的索引查找结束单元格的索引
|
64
|
+
*/
|
65
|
+
getRowStopIndex(startIndex: number, scrollTop: number): number;
|
66
|
+
/**
|
67
|
+
* 根据水平偏移量找到起始单元格的索引
|
68
|
+
*/
|
69
|
+
getColumnStartIndex(offset: number): number;
|
70
|
+
/**
|
71
|
+
* 根据水平起始单元格的索引查找结束单元格的索引
|
72
|
+
*/
|
73
|
+
getColumnStopIndex(startIndex: number, scrollLeft: number): number;
|
74
|
+
/**
|
75
|
+
* 根据 rowIndex 获取垂直偏移量
|
76
|
+
*/
|
77
|
+
getRowOffset(rowIndex: number): number;
|
78
|
+
/**
|
79
|
+
* 根据 columnIndex 获取水平偏移量
|
80
|
+
*/
|
81
|
+
getColumnOffset(columnIndex: number): number;
|
82
|
+
/**
|
83
|
+
* 冻结区域宽度
|
84
|
+
*/
|
85
|
+
get frozenColumnWidth(): number;
|
86
|
+
/**
|
87
|
+
* 根据 rowIndex, columnIndex 获取单元格坐标信息
|
88
|
+
*/
|
89
|
+
getCellRect(rowIndex: number, columnIndex: number): {
|
90
|
+
x: number;
|
91
|
+
y: number;
|
92
|
+
width: number;
|
93
|
+
height: number;
|
94
|
+
};
|
95
|
+
}
|
96
|
+
//# sourceMappingURL=coordinate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"coordinate.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/core/coordinate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExG;;GAEG;AACH,qBAAa,UAAU;IACnB,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IAExB,aAAa,EAAE,cAAc,CAAM;IAEnC,gBAAgB,EAAE,cAAc,CAAM;IAEtC,WAAW,EAAE,MAAM,CAAC;IAEpB,cAAc,EAAE,MAAM,CAAC;IAEvB,YAAY,SAAM;IAElB,eAAe,SAAM;IACrB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAM;IACzD,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAM;IAC5D,iBAAiB,EAAE,MAAM,CAAC;gBAErB,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,SAAS,EACT,aAAkB,EAClB,gBAAqB,EACrB,WAAe,EACf,cAAkB,EAClB,iBAAqB,EACxB,EAAE,iBAAiB;IAcpB,IAAW,SAAS,IAIS,MAAM,CAFlC;IAED,IAAW,SAAS,CAAC,MAAM,EAAE,MAAM,EAElC;IAED;;OAEG;IACH,IAAW,UAAU,WAGpB;IAED;;OAEG;IACH,IAAW,WAAW,WAGrB;IAED;;OAEG;IACI,YAAY,CAAC,KAAK,EAAE,MAAM;IAIjC;;OAEG;IACI,cAAc,CAAC,KAAK,EAAE,MAAM;IAInC;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,GAAG,mBAAmB;IAoC7F;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAY7B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAgBrC;;OAEG;IACI,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB;IAgB1E;;OAEG;IACI,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAItC;;OAEG;IACI,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAa5D;;OAEG;IACI,mBAAmB,CAAC,MAAM,EAAE,MAAM;IAIzC;;OAEG;IACI,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAahE;;OAEG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM;IAIpC;;OAEG;IACI,eAAe,CAAC,WAAW,EAAE,MAAM;IAI1C;;OAEG;IACH,IAAI,iBAAiB,WAEpB;IAED;;OAEG;IACI,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;;;;;;CAU3D"}
|
package/core/index.d.ts
CHANGED
package/core/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|