@ai-table/grid 0.0.11 → 0.0.13
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 +1 -3
- 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 +1 -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 +12 -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 +11 -16
- 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 +9 -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 +336 -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 +586 -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 +115 -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 +5526 -693
- 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 +80 -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
@@ -0,0 +1,7 @@
|
|
1
|
+
import { KoShape } from './shape.component';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class KoContainer extends KoShape {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KoContainer, never>;
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KoContainer, "ko-layer, ko-fastlayer, ko-group", never, {}, {}, never, ["*"], true, never>;
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=container.component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"container.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/components/container.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;;AAE5C,qBAYa,WAAY,SAAQ,OAAO;yCAA3B,WAAW;2CAAX,WAAW;CAAmB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"container.token.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/components/container.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,kBAAkB,qBAAgD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { FastLayer } from 'konva/lib/FastLayer';
|
3
|
+
import { Group } from 'konva/lib/Group';
|
4
|
+
import { Layer } from 'konva/lib/Layer';
|
5
|
+
import { Shape } from 'konva/lib/Shape';
|
6
|
+
import { Arc } from 'konva/lib/shapes/Arc';
|
7
|
+
import { Arrow } from 'konva/lib/shapes/Arrow';
|
8
|
+
import { Circle } from 'konva/lib/shapes/Circle';
|
9
|
+
import { Ellipse } from 'konva/lib/shapes/Ellipse';
|
10
|
+
import { Image } from 'konva/lib/shapes/Image';
|
11
|
+
import { Label, Tag } from 'konva/lib/shapes/Label';
|
12
|
+
import { Line } from 'konva/lib/shapes/Line';
|
13
|
+
import { Path } from 'konva/lib/shapes/Path';
|
14
|
+
import { Rect } from 'konva/lib/shapes/Rect';
|
15
|
+
import { RegularPolygon } from 'konva/lib/shapes/RegularPolygon';
|
16
|
+
import { Ring } from 'konva/lib/shapes/Ring';
|
17
|
+
import { Sprite } from 'konva/lib/shapes/Sprite';
|
18
|
+
import { Star } from 'konva/lib/shapes/Star';
|
19
|
+
import { Text } from 'konva/lib/shapes/Text';
|
20
|
+
import { TextPath } from 'konva/lib/shapes/TextPath';
|
21
|
+
import { Transformer } from 'konva/lib/shapes/Transformer';
|
22
|
+
import { Wedge } from 'konva/lib/shapes/Wedge';
|
23
|
+
import { KoComponent, KoEventObject, KoShapeConfigTypes } from '../interfaces';
|
24
|
+
import * as i0 from "@angular/core";
|
25
|
+
export declare class KoShape implements OnInit, AfterViewInit, OnDestroy, KoComponent {
|
26
|
+
config: import("@angular/core").InputSignal<KoShapeConfigTypes | undefined>;
|
27
|
+
koMouseover: EventEmitter<KoEventObject<MouseEvent>>;
|
28
|
+
koMousemove: EventEmitter<KoEventObject<MouseEvent>>;
|
29
|
+
koMouseout: EventEmitter<KoEventObject<MouseEvent>>;
|
30
|
+
koMouseenter: EventEmitter<KoEventObject<MouseEvent>>;
|
31
|
+
koMouseleave: EventEmitter<KoEventObject<MouseEvent>>;
|
32
|
+
koMousedown: EventEmitter<KoEventObject<MouseEvent>>;
|
33
|
+
koMouseup: EventEmitter<KoEventObject<MouseEvent>>;
|
34
|
+
koWheel: EventEmitter<KoEventObject<WheelEvent>>;
|
35
|
+
koContextmenu: EventEmitter<KoEventObject<PointerEvent>>;
|
36
|
+
koClick: EventEmitter<KoEventObject<MouseEvent>>;
|
37
|
+
koDblclick: EventEmitter<KoEventObject<MouseEvent>>;
|
38
|
+
koTouchstart: EventEmitter<KoEventObject<TouchEvent>>;
|
39
|
+
koTouchmove: EventEmitter<KoEventObject<TouchEvent>>;
|
40
|
+
koTouchend: EventEmitter<KoEventObject<TouchEvent>>;
|
41
|
+
koTap: EventEmitter<KoEventObject<TouchEvent>>;
|
42
|
+
koDbltap: EventEmitter<KoEventObject<TouchEvent>>;
|
43
|
+
koDragstart: EventEmitter<KoEventObject<MouseEvent>>;
|
44
|
+
koDragmove: EventEmitter<KoEventObject<MouseEvent>>;
|
45
|
+
koDragend: EventEmitter<KoEventObject<MouseEvent>>;
|
46
|
+
private elementRef;
|
47
|
+
private container;
|
48
|
+
private cacheProps;
|
49
|
+
private nameNode;
|
50
|
+
private _node;
|
51
|
+
constructor();
|
52
|
+
getNode(): Shape | Arc | Arrow | Circle | Ellipse | Image | Label | Tag | Line | Path | Rect | RegularPolygon | Ring | Sprite | Star | Text | TextPath | Transformer | Wedge | Group | Layer | FastLayer;
|
53
|
+
ngOnInit(): void;
|
54
|
+
private initKonva;
|
55
|
+
private updateNode;
|
56
|
+
ngAfterViewInit(): void;
|
57
|
+
ngOnDestroy(): void;
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KoShape, never>;
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KoShape, "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", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "koMouseover": "koMouseover"; "koMousemove": "koMousemove"; "koMouseout": "koMouseout"; "koMouseenter": "koMouseenter"; "koMouseleave": "koMouseleave"; "koMousedown": "koMousedown"; "koMouseup": "koMouseup"; "koWheel": "koWheel"; "koContextmenu": "koContextmenu"; "koClick": "koClick"; "koDblclick": "koDblclick"; "koTouchstart": "koTouchstart"; "koTouchmove": "koTouchmove"; "koTouchend": "koTouchend"; "koTap": "koTap"; "koDbltap": "koDbltap"; "koDragstart": "koDragstart"; "koDragmove": "koDragmove"; "koDragend": "koDragend"; }, never, ["*"], true, never>;
|
60
|
+
}
|
61
|
+
//# sourceMappingURL=shape.component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shape.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/components/shape.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAIb,YAAY,EACZ,SAAS,EACT,MAAM,EAKT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAgB,MAAM,eAAe,CAAC;;AAI7F,qBAOa,OAAQ,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW;IACzE,MAAM,sEAA+B;IAE3B,WAAW,0CAAiD;IAE5D,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,YAAY,0CAAiD;IAE7D,YAAY,0CAAiD;IAE7D,WAAW,0CAAiD;IAE5D,SAAS,0CAAiD;IAE1D,OAAO,0CAAiD;IAExD,aAAa,4CAAmD;IAEhE,OAAO,0CAAiD;IAExD,UAAU,0CAAiD;IAE3D,YAAY,0CAAiD;IAE7D,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,KAAK,0CAAiD;IAEtD,QAAQ,0CAAiD;IAEzD,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,SAAS,0CAAiD;IAEpE,OAAO,CAAC,UAAU,CAAmC;IAErD,OAAO,CAAC,SAAS,CAAkD;IAEnE,OAAO,CAAC,UAAU,CAA0B;IAE5C,OAAO,CAAC,QAAQ,CAGD;IAEf,OAAO,CAAC,KAAK,CAsBG;;IAUT,OAAO,IACR,KAAK,GACL,GAAG,GACH,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,KAAK,GACL,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,cAAc,GACd,IAAI,GACJ,MAAM,GACN,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,WAAW,GACX,KAAK,GACL,KAAK,GACL,KAAK,GACL,SAAS;IAIf,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,SAAS;IA6BjB,OAAO,CAAC,UAAU;IAUlB,eAAe,IAAI,IAAI;IAMvB,WAAW,IAAI,IAAI;yCA/JV,OAAO;2CAAP,OAAO;CAkKnB"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
2
|
+
import { ContainerConfig } from 'konva/lib/Container';
|
3
|
+
import { Stage } from 'konva/lib/Stage';
|
4
|
+
import { KoEventObject } from '../interfaces';
|
5
|
+
import { KoComponent } from '../interfaces/component';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class KoStage implements KoComponent, OnInit, OnDestroy {
|
8
|
+
config: import("@angular/core").InputSignal<ContainerConfig | undefined>;
|
9
|
+
koMouseover: EventEmitter<KoEventObject<MouseEvent>>;
|
10
|
+
koMousemove: EventEmitter<KoEventObject<MouseEvent>>;
|
11
|
+
koMouseout: EventEmitter<KoEventObject<MouseEvent>>;
|
12
|
+
koMouseenter: EventEmitter<KoEventObject<MouseEvent>>;
|
13
|
+
koMouseleave: EventEmitter<KoEventObject<MouseEvent>>;
|
14
|
+
koMousedown: EventEmitter<KoEventObject<MouseEvent>>;
|
15
|
+
koMouseup: EventEmitter<KoEventObject<MouseEvent>>;
|
16
|
+
koWheel: EventEmitter<KoEventObject<WheelEvent>>;
|
17
|
+
koContextmenu: EventEmitter<KoEventObject<PointerEvent>>;
|
18
|
+
koClick: EventEmitter<KoEventObject<MouseEvent>>;
|
19
|
+
koDblclick: EventEmitter<KoEventObject<MouseEvent>>;
|
20
|
+
koTouchstart: EventEmitter<KoEventObject<TouchEvent>>;
|
21
|
+
koTouchmove: EventEmitter<KoEventObject<TouchEvent>>;
|
22
|
+
koTouchend: EventEmitter<KoEventObject<TouchEvent>>;
|
23
|
+
koTap: EventEmitter<KoEventObject<TouchEvent>>;
|
24
|
+
koDbltap: EventEmitter<KoEventObject<TouchEvent>>;
|
25
|
+
koDragstart: EventEmitter<KoEventObject<MouseEvent>>;
|
26
|
+
koDragmove: EventEmitter<KoEventObject<MouseEvent>>;
|
27
|
+
koDragend: EventEmitter<KoEventObject<MouseEvent>>;
|
28
|
+
private _stage;
|
29
|
+
private cacheProps;
|
30
|
+
private nodeContainer;
|
31
|
+
constructor();
|
32
|
+
ngOnInit(): void;
|
33
|
+
getNode(): Stage;
|
34
|
+
private initStage;
|
35
|
+
private updateNode;
|
36
|
+
ngOnDestroy(): void;
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KoStage, never>;
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KoStage, "ko-stage", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "koMouseover": "koMouseover"; "koMousemove": "koMousemove"; "koMouseout": "koMouseout"; "koMouseenter": "koMouseenter"; "koMouseleave": "koMouseleave"; "koMousedown": "koMousedown"; "koMouseup": "koMouseup"; "koWheel": "koWheel"; "koContextmenu": "koContextmenu"; "koClick": "koClick"; "koDblclick": "koDblclick"; "koTouchstart": "koTouchstart"; "koTouchmove": "koTouchmove"; "koTouchend": "koTouchend"; "koTap": "koTap"; "koDbltap": "koDbltap"; "koDragstart": "koDragstart"; "koDragmove": "koDragmove"; "koDragend": "koDragend"; }, never, ["*"], true, never>;
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=stage.component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stage.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/components/stage.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,YAAY,EACZ,SAAS,EACT,MAAM,EAKT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAsB,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;;AAItD,qBAYa,OAAQ,YAAW,WAAW,EAAE,MAAM,EAAE,SAAS;IAC1D,MAAM,mEAA4B;IAExB,WAAW,0CAAiD;IAE5D,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,YAAY,0CAAiD;IAE7D,YAAY,0CAAiD;IAE7D,WAAW,0CAAiD;IAE5D,SAAS,0CAAiD;IAE1D,OAAO,0CAAiD;IAExD,aAAa,4CAAmD;IAEhE,OAAO,0CAAiD;IAExD,UAAU,0CAAiD;IAE3D,YAAY,0CAAiD;IAE7D,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,KAAK,0CAAiD;IAEtD,QAAQ,0CAAiD;IAEzD,WAAW,0CAAiD;IAE5D,UAAU,0CAAiD;IAE3D,SAAS,0CAAiD;IAEpE,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,UAAU,CAA0B;IAE5C,OAAO,CAAC,aAAa,CAAoC;;IAazD,QAAQ;IAID,OAAO,IAAI,KAAK;IAIvB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,UAAU;IASlB,WAAW,IAAI,IAAI;yCAlFV,OAAO;2CAAP,OAAO;CAqFnB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/angular-konva/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Component, EventEmitter } from '@angular/core';
|
2
|
+
import { FastLayer } from 'konva/lib/FastLayer';
|
3
|
+
import { Group } from 'konva/lib/Group';
|
4
|
+
import { Layer } from 'konva/lib/Layer';
|
5
|
+
import { Shape } from 'konva/lib/Shape';
|
6
|
+
import { Arc } from 'konva/lib/shapes/Arc';
|
7
|
+
import { Arrow } from 'konva/lib/shapes/Arrow';
|
8
|
+
import { Circle } from 'konva/lib/shapes/Circle';
|
9
|
+
import { Ellipse } from 'konva/lib/shapes/Ellipse';
|
10
|
+
import { Image } from 'konva/lib/shapes/Image';
|
11
|
+
import { Label, Tag } from 'konva/lib/shapes/Label';
|
12
|
+
import { Line } from 'konva/lib/shapes/Line';
|
13
|
+
import { Path } from 'konva/lib/shapes/Path';
|
14
|
+
import { Rect } from 'konva/lib/shapes/Rect';
|
15
|
+
import { RegularPolygon } from 'konva/lib/shapes/RegularPolygon';
|
16
|
+
import { Ring } from 'konva/lib/shapes/Ring';
|
17
|
+
import { Sprite } from 'konva/lib/shapes/Sprite';
|
18
|
+
import { Star } from 'konva/lib/shapes/Star';
|
19
|
+
import { Text } from 'konva/lib/shapes/Text';
|
20
|
+
import { TextPath } from 'konva/lib/shapes/TextPath';
|
21
|
+
import { Transformer } from 'konva/lib/shapes/Transformer';
|
22
|
+
import { Wedge } from 'konva/lib/shapes/Wedge';
|
23
|
+
import { Stage } from 'konva/lib/Stage';
|
24
|
+
import { KoShapeConfigTypes } from './config';
|
25
|
+
import { KoEventObject } from './event-object';
|
26
|
+
export declare abstract class KoComponent extends Component {
|
27
|
+
config: KoShapeConfigTypes;
|
28
|
+
koMouseover?: EventEmitter<KoEventObject<MouseEvent>>;
|
29
|
+
koMousemove?: EventEmitter<KoEventObject<MouseEvent>>;
|
30
|
+
koMouseout?: EventEmitter<KoEventObject<MouseEvent>>;
|
31
|
+
koMouseenter?: EventEmitter<KoEventObject<MouseEvent>>;
|
32
|
+
koMouseleave?: EventEmitter<KoEventObject<MouseEvent>>;
|
33
|
+
koMousedown?: EventEmitter<KoEventObject<MouseEvent>>;
|
34
|
+
koMouseup?: EventEmitter<KoEventObject<MouseEvent>>;
|
35
|
+
koWheel?: EventEmitter<KoEventObject<WheelEvent>>;
|
36
|
+
koContextmenu?: EventEmitter<KoEventObject<PointerEvent>>;
|
37
|
+
koClick?: EventEmitter<KoEventObject<MouseEvent>>;
|
38
|
+
koDblclick?: EventEmitter<KoEventObject<MouseEvent>>;
|
39
|
+
koTouchstart?: EventEmitter<KoEventObject<TouchEvent>>;
|
40
|
+
koTouchmove?: EventEmitter<KoEventObject<TouchEvent>>;
|
41
|
+
koTouchend?: EventEmitter<KoEventObject<TouchEvent>>;
|
42
|
+
koTap?: EventEmitter<KoEventObject<TouchEvent>>;
|
43
|
+
koDbltap?: EventEmitter<KoEventObject<TouchEvent>>;
|
44
|
+
koDragstart?: EventEmitter<KoEventObject<MouseEvent>>;
|
45
|
+
koDragmove?: EventEmitter<KoEventObject<MouseEvent>>;
|
46
|
+
koDragend?: EventEmitter<KoEventObject<MouseEvent>>;
|
47
|
+
getNode: () => Stage | Shape | Arc | Arrow | Circle | Ellipse | Image | Label | Tag | Line | Path | Rect | RegularPolygon | Ring | Sprite | Star | Text | TextPath | Transformer | Wedge | Group | Layer | FastLayer;
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/interfaces/component.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ContainerConfig } from 'konva/lib/Container';
|
2
|
+
import { GroupConfig } from 'konva/lib/Group';
|
3
|
+
import { LayerConfig } from 'konva/lib/Layer';
|
4
|
+
import { NodeConfig } from 'konva/lib/Node';
|
5
|
+
import { ShapeConfig } from 'konva/lib/Shape';
|
6
|
+
import { StageConfig } from 'konva/lib/Stage';
|
7
|
+
import { TweenConfig } from 'konva/lib/Tween';
|
8
|
+
import { ArcConfig } from 'konva/lib/shapes/Arc';
|
9
|
+
import { ArrowConfig } from 'konva/lib/shapes/Arrow';
|
10
|
+
import { CircleConfig } from 'konva/lib/shapes/Circle';
|
11
|
+
import { EllipseConfig } from 'konva/lib/shapes/Ellipse';
|
12
|
+
import { ImageConfig } from 'konva/lib/shapes/Image';
|
13
|
+
import { LabelConfig, TagConfig } from 'konva/lib/shapes/Label';
|
14
|
+
import { LineConfig } from 'konva/lib/shapes/Line';
|
15
|
+
import { PathConfig } from 'konva/lib/shapes/Path';
|
16
|
+
import { RectConfig } from 'konva/lib/shapes/Rect';
|
17
|
+
import { RegularPolygonConfig } from 'konva/lib/shapes/RegularPolygon';
|
18
|
+
import { RingConfig } from 'konva/lib/shapes/Ring';
|
19
|
+
import { SpriteConfig } from 'konva/lib/shapes/Sprite';
|
20
|
+
import { StarConfig } from 'konva/lib/shapes/Star';
|
21
|
+
import { TextConfig } from 'konva/lib/shapes/Text';
|
22
|
+
import { TextPathConfig } from 'konva/lib/shapes/TextPath';
|
23
|
+
import { TransformerConfig } from 'konva/lib/shapes/Transformer';
|
24
|
+
import { WedgeConfig } from 'konva/lib/shapes/Wedge';
|
25
|
+
export type KoShapeConfigTypes = NodeConfig | ContainerConfig | StageConfig | LayerConfig | GroupConfig | ShapeConfig | TweenConfig | ArcConfig | ArrowConfig | CircleConfig | EllipseConfig | ImageConfig | LabelConfig | TagConfig | LineConfig | PathConfig | RectConfig | RegularPolygonConfig | RingConfig | SpriteConfig | StarConfig | TextConfig | TextPathConfig | TransformerConfig | WedgeConfig;
|
26
|
+
//# sourceMappingURL=config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/interfaces/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GACxB,UAAU,GACV,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,WAAW,GACX,YAAY,GACZ,aAAa,GACb,WAAW,GACX,WAAW,GACX,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,oBAAoB,GACpB,UAAU,GACV,YAAY,GACZ,UAAU,GACV,UAAU,GACV,cAAc,GACd,iBAAiB,GACjB,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"event-object.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/interfaces/event-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,gBAAgB,EAAE,WAAW,CAAC;IAC9B,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC9B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { FastLayer } from 'konva/lib/FastLayer';
|
2
|
+
import { Group } from 'konva/lib/Group';
|
3
|
+
import { Layer } from 'konva/lib/Layer';
|
4
|
+
import { Arc } from 'konva/lib/shapes/Arc';
|
5
|
+
import { Arrow } from 'konva/lib/shapes/Arrow';
|
6
|
+
import { Circle } from 'konva/lib/shapes/Circle';
|
7
|
+
import { Ellipse } from 'konva/lib/shapes/Ellipse';
|
8
|
+
import { Image } from 'konva/lib/shapes/Image';
|
9
|
+
import { Label, Tag } from 'konva/lib/shapes/Label';
|
10
|
+
import { Line } from 'konva/lib/shapes/Line';
|
11
|
+
import { Path } from 'konva/lib/shapes/Path';
|
12
|
+
import { Rect } from 'konva/lib/shapes/Rect';
|
13
|
+
import { RegularPolygon } from 'konva/lib/shapes/RegularPolygon';
|
14
|
+
import { Ring } from 'konva/lib/shapes/Ring';
|
15
|
+
import { Star } from 'konva/lib/shapes/Star';
|
16
|
+
import { Text } from 'konva/lib/shapes/Text';
|
17
|
+
import { TextPath } from 'konva/lib/shapes/TextPath';
|
18
|
+
import { Transformer } from 'konva/lib/shapes/Transformer';
|
19
|
+
import { Wedge } from 'konva/lib/shapes/Wedge';
|
20
|
+
export declare const KoShapeTypes: {
|
21
|
+
Arc: typeof Arc;
|
22
|
+
Arrow: typeof Arrow;
|
23
|
+
Circle: typeof Circle;
|
24
|
+
Ellipse: typeof Ellipse;
|
25
|
+
Image: typeof Image;
|
26
|
+
Label: typeof Label;
|
27
|
+
Tag: typeof Tag;
|
28
|
+
Line: typeof Line;
|
29
|
+
Path: typeof Path;
|
30
|
+
Rect: typeof Rect;
|
31
|
+
RegularPolygon: typeof RegularPolygon;
|
32
|
+
Ring: typeof Ring;
|
33
|
+
Star: typeof Star;
|
34
|
+
Text: typeof Text;
|
35
|
+
TextPath: typeof TextPath;
|
36
|
+
Transformer: typeof Transformer;
|
37
|
+
Wedge: typeof Wedge;
|
38
|
+
Group: typeof Group;
|
39
|
+
Layer: typeof Layer;
|
40
|
+
FastLayer: typeof FastLayer;
|
41
|
+
};
|
42
|
+
//# sourceMappingURL=shape.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/interfaces/shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"apply-node-props.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/utils/apply-node-props.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,GAAE,WAAgB,EAAE,QAAQ,GAAE,WAAgB,GAAG,IAAI,CAkExH"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { KoComponent } from '../interfaces/component';
|
2
|
+
import applyNodeProps from './apply-node-props';
|
3
|
+
import { KoListenerRecord } from './types';
|
4
|
+
import updatePicture from './update-picture';
|
5
|
+
export declare function getName(componentTag: string): string;
|
6
|
+
export declare function createListener(instance: KoComponent): KoListenerRecord;
|
7
|
+
export { applyNodeProps, updatePicture };
|
8
|
+
//# sourceMappingURL=common.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/utils/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAc7C,wBAAgB,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,WAAW,GAAG,gBAAgB,CA+BtE;AAED,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-picture.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/angular-konva/utils/update-picture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,IAAI,QAK/C"}
|
@@ -1,19 +1,21 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
3
|
-
import { AITable, AITableField } from '../../core';
|
3
|
+
import { AITable, AITableField, UpdateFieldValueOptions } from '../../core';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare abstract class AbstractEditCellEditor<TValue, TFieldType extends AITableField = AITableField> implements OnInit {
|
6
6
|
aiTable: AITable;
|
7
7
|
fieldId: string;
|
8
8
|
recordId: string;
|
9
|
+
updateFieldValue: import("@angular/core").OutputEmitterRef<UpdateFieldValueOptions<TValue>>;
|
9
10
|
modelValue: TValue;
|
10
11
|
field: import("@angular/core").Signal<TFieldType>;
|
11
12
|
record: import("@angular/core").Signal<import("../../core").AITableRecord>;
|
12
|
-
|
13
|
+
elementRef: ElementRef<HTMLElement>;
|
14
|
+
protected thyPopoverRef: ThyPopoverRef<any, any, any> | null;
|
13
15
|
ngOnInit(): void;
|
14
|
-
|
16
|
+
update(): void;
|
15
17
|
closePopover(): void;
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractEditCellEditor<any, any>, never>;
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractEditCellEditor<any, any>, "abstract-edit-cell", never, { "aiTable": { "alias": "aiTable"; "required": true; }; "fieldId": { "alias": "fieldId"; "required": true; }; "recordId": { "alias": "recordId"; "required": true; }; }, {}, never, never, true, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractEditCellEditor<any, any>, "abstract-edit-cell", never, { "aiTable": { "alias": "aiTable"; "required": true; }; "fieldId": { "alias": "fieldId"; "required": true; }; "recordId": { "alias": "recordId"; "required": true; }; }, { "updateFieldValue": "updateFieldValue"; }, never, never, true, never>;
|
18
20
|
}
|
19
21
|
//# sourceMappingURL=abstract-cell-editor.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abstract-cell-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/cell-editors/abstract-cell-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"abstract-cell-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/cell-editors/abstract-cell-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAiB,MAAM,EAAU,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAkB,uBAAuB,EAAE,MAAM,YAAY,CAAC;;AAE5F,8BAMsB,sBAAsB,CAAC,MAAM,EAAE,UAAU,SAAS,YAAY,GAAG,YAAY,CAAE,YAAW,MAAM;IACvF,OAAO,EAAG,OAAO,CAAC;IAElB,OAAO,EAAG,MAAM,CAAC;IAEjB,QAAQ,EAAG,MAAM,CAAC;IAE7C,gBAAgB,4EAA6C;IAE7D,UAAU,EAAG,MAAM,CAAC;IAEpB,KAAK,6CAEF;IAEH,MAAM,qEAEH;IAEH,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,CAAmC;IAEtE,SAAS,CAAC,aAAa,sCAA6E;IAEpG,QAAQ,IAAI,IAAI;IAMhB,MAAM;IAON,YAAY;yCApCM,sBAAsB;2CAAtB,sBAAsB;CAuC3C"}
|
@@ -1,45 +1,58 @@
|
|
1
1
|
@use 'ngx-tethys/styles/variables.scss';
|
2
|
+
@use './cell-editor.variables.scss' as cellEditorVariables;
|
2
3
|
@use './progress/progress-editor.component.scss';
|
4
|
+
@use './link/link-editor.component.scss';
|
5
|
+
@use './rating/rating-editor.component.scss';
|
3
6
|
|
4
|
-
.
|
5
|
-
.thy-
|
6
|
-
|
7
|
+
.grid-cell-editor {
|
8
|
+
.thy-popover-container {
|
9
|
+
box-shadow: none;
|
10
|
+
border: none;
|
11
|
+
border-radius: 0;
|
12
|
+
}
|
13
|
+
&.thy-popover-panel {
|
14
|
+
padding: 0;
|
15
|
+
}
|
16
|
+
.form-control {
|
17
|
+
border: 2px solid variables.$primary;
|
18
|
+
min-height: 45px;
|
19
|
+
border-radius: 0;
|
20
|
+
padding-top: cellEditorVariables.$cell-editor-padding-top;
|
21
|
+
padding-bottom: cellEditorVariables.$cell-editor-padding-top;
|
22
|
+
padding-left: cellEditorVariables.$cell-editor-padding-left;
|
7
23
|
}
|
8
24
|
}
|
9
25
|
|
10
26
|
.text-cell-editor {
|
11
27
|
display: block;
|
12
|
-
|
13
28
|
textarea {
|
14
|
-
|
15
|
-
|
16
|
-
border-width: 2px;
|
29
|
+
border: none;
|
30
|
+
line-height: 24px;
|
17
31
|
resize: none;
|
18
|
-
|
19
|
-
|
32
|
+
scrollbar-width: none;
|
33
|
+
overflow-y: scroll;
|
34
|
+
border-radius: 0;
|
20
35
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
border-width: 2px;
|
36
|
+
&::-webkit-scrollbar {
|
37
|
+
width: 0;
|
38
|
+
height: 0;
|
25
39
|
}
|
26
40
|
}
|
27
41
|
}
|
28
42
|
|
29
43
|
.select-cell-editor {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
.thy-icon-close {
|
34
|
-
color: variables.$gray-700;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
44
|
+
.thy-select-custom:focus .form-control-custom:not(.disabled) {
|
45
|
+
border: 2px solid variables.$primary;
|
46
|
+
outline: none;
|
38
47
|
}
|
39
48
|
}
|
40
49
|
|
41
|
-
.
|
42
|
-
.
|
43
|
-
|
50
|
+
.number-cell-editor {
|
51
|
+
.thy-input-number {
|
52
|
+
.input-number-handler-wrap {
|
53
|
+
height: calc(100% - 4px);
|
54
|
+
top: 2px;
|
55
|
+
right: 2px;
|
56
|
+
}
|
44
57
|
}
|
45
|
-
}
|
58
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"date-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/date/date-editor.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,
|
1
|
+
{"version":3,"file":"date-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/date/date-editor.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,EAAkB,cAAc,EAAE,MAAM,eAAe,CAAC;;AAE/D,qBA0Ba,uBAAwB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;IACtE,QAAQ,IAAI,IAAI;IAYzB,WAAW,CAAC,KAAK,EAAE,MAAM;IAQzB,aAAa,CAAC,MAAM,EAAE,OAAO;yCArBpB,uBAAuB;2CAAvB,uBAAuB;CA0BnC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
+
import { ThyFormDirective } from 'ngx-tethys/form';
|
3
|
+
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
4
|
+
import { SafeAny } from 'ngx-tethys/types';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare const LINK_URL_REGEX: RegExp;
|
7
|
+
/**
|
8
|
+
* @private
|
9
|
+
*/
|
10
|
+
export declare class LinkEditComponent implements OnInit {
|
11
|
+
thyPopoverRef: ThyPopoverRef<SafeAny>;
|
12
|
+
url: string;
|
13
|
+
text: string;
|
14
|
+
confirm: EventEmitter<{
|
15
|
+
url: string;
|
16
|
+
text: string;
|
17
|
+
}>;
|
18
|
+
URLRegex: RegExp;
|
19
|
+
validatorConfig: {
|
20
|
+
validationMessages: {
|
21
|
+
url: {
|
22
|
+
pattern: string;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
constructor(thyPopoverRef: ThyPopoverRef<SafeAny>);
|
27
|
+
ngOnInit(): void;
|
28
|
+
close(): void;
|
29
|
+
apply(form: ThyFormDirective): void;
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkEditComponent, never>;
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkEditComponent, "link-edit", never, { "url": { "alias": "url"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "confirm": "confirm"; }, never, never, true, never>;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=edit-link.component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"edit-link.component.d.ts","sourceRoot":"","sources":["../../../../../../packages/grid/src/components/cell-editors/link/edit-link/edit-link.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAG/E,OAAO,EACH,gBAAgB,EAMnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;;AAE3C,eAAO,MAAM,cAAc,QAAuD,CAAC;AAEnF;;GAEG;AACH,qBAca,iBAAkB,YAAW,MAAM;IAiBzB,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC;IAhB/C,GAAG,SAAM;IAET,IAAI,SAAM;IAET,OAAO;aAA2B,MAAM;cAAQ,MAAM;OAAM;IAE/D,QAAQ,SAAkB;IAEjC,eAAe;;;;;;MAMb;gBAEiB,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC;IAExD,QAAQ;IAER,KAAK;IAIL,KAAK,CAAC,IAAI,EAAE,gBAAgB;yCAzBnB,iBAAiB;2CAAjB,iBAAiB;CAqC7B"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
2
|
+
import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
|
3
|
+
import { ThyPopover } from 'ngx-tethys/popover';
|
4
|
+
import { ThyNotifyService } from 'ngx-tethys/notify';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class LinkCellEditorComponent extends AbstractEditCellEditor<{
|
7
|
+
text: string;
|
8
|
+
url: string;
|
9
|
+
}> implements OnInit {
|
10
|
+
inputElement: ElementRef;
|
11
|
+
text: string;
|
12
|
+
url: string;
|
13
|
+
originValue: {};
|
14
|
+
thyPopover: ThyPopover;
|
15
|
+
cdr: ChangeDetectorRef;
|
16
|
+
notifyService: ThyNotifyService;
|
17
|
+
isOpened: boolean;
|
18
|
+
isValidLink(link: {
|
19
|
+
text: string;
|
20
|
+
url: string;
|
21
|
+
}): boolean;
|
22
|
+
createLinkValue(link: {
|
23
|
+
text: string;
|
24
|
+
url: string;
|
25
|
+
}): {
|
26
|
+
url: string;
|
27
|
+
text: string;
|
28
|
+
};
|
29
|
+
blur(event: FocusEvent): void;
|
30
|
+
ngOnInit(): void;
|
31
|
+
updateValue(): void;
|
32
|
+
openEdit(): void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkCellEditorComponent, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCellEditorComponent, "link-cell-editor", never, {}, {}, never, never, true, never>;
|
35
|
+
}
|
36
|
+
//# sourceMappingURL=link-editor.component.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/link/link-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAuB,UAAU,EAAU,MAAM,EAAa,MAAM,eAAe,CAAC;AAGvI,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAK3E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;;AAErD,qBAoBa,uBAAwB,SAAQ,sBAAsB,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAE,YAAW,MAAM;IAEhH,YAAY,EAAG,UAAU,CAAC;IAE1B,IAAI,SAAM;IAEV,GAAG,SAAM;IAET,WAAW,KAAM;IAEjB,UAAU,aAAsB;IAEhC,GAAG,oBAA6B;IAEhC,aAAa,mBAA4B;IAEzC,QAAQ,UAAS;IAEjB,WAAW,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;IAU/C,eAAe,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;;;;IAU5C,IAAI,CAAC,KAAK,EAAE,UAAU;IAOpB,QAAQ,IAAI,IAAI;IAOzB,WAAW;IAYX,QAAQ;yCAhEC,uBAAuB;2CAAvB,uBAAuB;CA2FnC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
2
|
+
@use '../cell-editor.variables.scss' as cellEditorVariables;
|
3
|
+
|
4
|
+
.ai-table-link-editor {
|
5
|
+
display: block;
|
6
|
+
height: 100%;
|
7
|
+
.link-input-group {
|
8
|
+
border: none;
|
9
|
+
.link-input {
|
10
|
+
color: variables.$primary;
|
11
|
+
padding-left: cellEditorVariables.$cell-editor-padding-left !important;
|
12
|
+
line-height: variables.$line-height-lg;
|
13
|
+
}
|
14
|
+
.input-group-suffix {
|
15
|
+
margin-right: 8px;
|
16
|
+
}
|
17
|
+
.form-control {
|
18
|
+
min-height: auto;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|