Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42,132 changes: 22,135 additions & 19,997 deletions package-lock.json

Large diffs are not rendered by default.

171 changes: 86 additions & 85 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,88 @@
{
"name": "ai-table",
"version": "0.6.1",
"workspaces": [
"packages/*"
],
"scripts": {
"ng": "ng",
"start": "ng serve demo",
"start-ws": "npx ts-node ./backend/src/index",
"build": "npm run build:packages && npm run sync-styles",
"build:packages": "tsx ./scripts/build-packages.ts",
"build:demo": "ng build demo --configuration production",
"build:ws": "tsc -p tsconfig.backend.json",
"sync-styles": "tsx ./scripts/sync-styles.ts",
"release": "npm run build && wpm release --release-branch-format release-auto-v{{version}}",
"release-next": "npm run build && wpm release --release-branch-format release-auto-next-v{{version}}",
"release-manual": "npm run build && wpm release",
"release-next-manual": "npm run build && wpm release --release-branch-format release-next-v{{version}}",
"watch": "ng build --watch --configuration development",
"pub": "wpm publish && npm run pub-only",
"pub-next": "wpm publish && npm run pub-next-only",
"pub-only": "tsx ./scripts/npm-publish.ts",
"pub-next-only": "tsx ./scripts/npm-publish.ts --next",
"test": "npm run test:state",
"test:grid": "ng test grid",
"test:state": "ng test state"
},
"repository": {
"type": "git",
"url": "https://github.com/worktile/ai-table"
},
"dependencies": {
"@angular/animations": "^21.2.7",
"@angular/cdk": "^21.2.5",
"@angular/common": "^21.2.7",
"@angular/compiler": "^21.2.7",
"@angular/core": "^21.2.7",
"@angular/forms": "^21.2.7",
"@angular/platform-browser": "^21.2.7",
"@angular/platform-browser-dynamic": "^21.2.7",
"@angular/router": "^21.2.7",
"@tethys/cdk": "^21.0.0",
"@tethys/icons": "^1.4.85",
"bson-objectid": "^2.0.4",
"nanoid": "^3.3.8",
"date-fns": "^4.1.0",
"grapheme-splitter": "^1.0.4",
"immer": "^10.0.3",
"ngx-tethys": "^21.0.0",
"konva": "^9.3.14",
"lodash": "^4.17.21",
"lru-cache": "11.2.1",
"npm": "^10.8.1",
"rxjs": "~7.8.0",
"tslib": "^2.6.3",
"zone.js": "~0.15.0",
"is-hotkey": "^0.2.0"
},
"devDependencies": {
"@angular/build": "^21.2.6",
"@angular/cli": "^21.2.6",
"@angular/compiler-cli": "^21.2.7",
"@types/is-hotkey": "^0.1.6",
"@types/jasmine": "~5.1.4",
"@types/lodash": "^4.17.7",
"@types/node": "^10.14.9",
"@types/ws": "^7.4.7",
"@worktile/pkg-manager": "^0.1.0",
"chalk": "^2.4.2",
"cpx": "^1.5.0",
"jasmine-core": "~5.2.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^21.2.2",
"prettier": "^3.3.2",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
"typescript": "~5.9.3",
"ws": "8.0.0",
"y-websocket": "^2.0.3",
"yjs": "13.6.26"
}
"name": "ai-table",
"version": "0.6.1",
"workspaces": [
"packages/*"
],
"scripts": {
"ng": "ng",
"start": "ng serve demo",
"start-ws": "npx ts-node ./backend/src/index",
"build": "npm run build:packages && npm run sync-styles",
"build:packages": "tsx ./scripts/build-packages.ts",
"build:demo": "ng build demo --configuration production",
"build:ws": "tsc -p tsconfig.backend.json",
"sync-styles": "tsx ./scripts/sync-styles.ts",
"release": "npm run build && wpm release --release-branch-format release-auto-v{{version}}",
"release-next": "npm run build && wpm release --release-branch-format release-auto-next-v{{version}}",
"release-manual": "npm run build && wpm release",
"release-next-manual": "npm run build && wpm release --release-branch-format release-next-v{{version}}",
"watch": "ng build --watch --configuration development",
"pub": "wpm publish && npm run pub-only",
"pub-next": "wpm publish && npm run pub-next-only",
"pub-only": "tsx ./scripts/npm-publish.ts",
"pub-next-only": "tsx ./scripts/npm-publish.ts --next",
"test": "npm run test:state",
"test:grid": "ng test grid",
"test:state": "ng test state"
},
"repository": {
"type": "git",
"url": "https://github.com/worktile/ai-table"
},
"dependencies": {
"@angular/animations": "^22.1.4",
"@angular/cdk": "^22.1.4",
"@angular/common": "^22.1.4",
"@angular/compiler": "^22.1.4",
"@angular/core": "^22.1.4",
"@angular/forms": "^22.1.4",
"@angular/platform-browser": "^22.1.4",
"@angular/platform-browser-dynamic": "^22.1.4",
"@angular/router": "^22.1.4",
"@tethys/cdk": "22.0.0-next.0",
"@tethys/icons": "^1.4.85",
"bson-objectid": "^2.0.4",
"date-fns": "^4.1.0",
"grapheme-splitter": "^1.0.4",
"immer": "^10.0.3",
"is-hotkey": "^0.2.0",
"konva": "^9.3.14",
"lodash": "^4.17.21",
"lru-cache": "11.2.1",
"nanoid": "^3.3.8",
"ngx-tethys": "22.0.0-next.0",
"npm": "^10.8.1",
"rxjs": "~7.8.0",
"tslib": "^2.6.3",
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular/build": "^22.1.6",
"@angular/cli": "^22.1.6",
"@angular/compiler-cli": "^22.1.4",
"@types/is-hotkey": "^0.1.6",
"@types/jasmine": "~5.1.4",
"@types/lodash": "^4.17.7",
"@types/node": "^26.4.0",
"@types/ws": "^7.4.7",
"@worktile/pkg-manager": "^0.1.0",
"chalk": "^2.4.2",
"cpx": "^1.5.0",
"istanbul-lib-instrument": "^6.0.3",
"jasmine-core": "~5.2.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^22.1.1",
"prettier": "^3.3.2",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
"typescript": "~6.0.3",
"ws": "8.0.0",
"y-websocket": "^2.0.3",
"yjs": "13.6.26"
}
}
4 changes: 2 additions & 2 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@ai-table/grid",
"version": "0.6.1",
"peerDependencies": {
"@angular/common": "^21.0.0",
"@angular/core": "^21.0.0",
"@angular/common": "^22.0.0",
"@angular/core": "^22.0.0",
"bson-objectid": "^2.0.4",
"lru-cache": "^11.0.0",
"konva": "^9.3.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, computed, EventEmitter, input, Input, OnInit, Output } from '@angular/core';
import { Component, computed, EventEmitter, input, Input, OnInit, Output, ChangeDetectionStrategy } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AITable } from '../../../../core/types/ai-table';
import { AITableGridI18nKey, getI18nTextByKey } from '../../../../utils/i18n';
Expand All @@ -16,6 +16,7 @@ import { isUrl } from '@ai-table/utils';
@Component({
selector: 'link-edit',
templateUrl: './edit-link.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [FormsModule, ThyStopPropagationDirective, ThyInputDirective, ThyButton, ThyFormSubmitDirective, ThyFormModule]
})
export class LinkEditComponent implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
output,
signal,
viewChild,
model
linkedSignal
} from '@angular/core';
import { ThyButton } from 'ngx-tethys/button';
import { ThyIcon } from 'ngx-tethys/icon';
Expand Down Expand Up @@ -69,7 +69,8 @@ import { ThyDropdownDirective, ThyDropdownMenuComponent } from 'ngx-tethys/dropd
export class RecordDetailComponent {
readonly aiTable = input.required<AITable>();

readonly recordId = model.required<string>();
readonly recordIdInput = input.required<string>({ alias: 'recordId' });
readonly recordId = linkedSignal(this.recordIdInput);

readonly references = input.required<AITableReferences>();

Expand Down
4 changes: 2 additions & 2 deletions packages/grid/src/dom-grid.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@
<a
class="d-block"
target="_blank"
[href]="record.values[field._id]?.url"
[href]="$safeNavigationMigration(record.values[field._id]?.url)"
thyStopPropagation
thyFlexibleText
[thyTooltipContent]="record.values[field._id]?.text"
[thyTooltipContent]="$safeNavigationMigration(record.values[field._id]?.text)"
>
{{ record.values[field._id]?.text }}
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { KoShape } from '../../angular-konva';
import { Component, computed, input } from '@angular/core';
import { Component, computed, input, ChangeDetectionStrategy } from '@angular/core';
import { AITableFillHandleConfig } from '../../types';
import {
AI_TABLE_CELL_BORDER,
Expand All @@ -18,6 +18,7 @@ import { generateTargetName } from '../../utils';
<ko-rect [config]="handleConfig()"></ko-rect>
}
`,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [KoShape]
})
export class AITableFillHandle {
Expand Down
28 changes: 11 additions & 17 deletions packages/grid/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,22 @@
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2022"
],
"baseUrl": "../../",
"lib": ["dom", "es2022"],
"paths": {
"@ai-table/utils": [
"dist/utils"
],
"@ai-table/utils/*": [
"dist/utils/*"
]
"@ai-table/utils": ["../../dist/utils"],
"@ai-table/utils/*": ["../../dist/utils/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
},
"strictMetadataEmit": true,
"enableResourceInlining": true
},
"exclude": [
"test.ts",
"core/**/**",
"**/*.spec.ts"
]
}
"exclude": ["test.ts", "core/**/**", "**/*.spec.ts"]
}
8 changes: 7 additions & 1 deletion packages/grid/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
"compilationMode": "partial",
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
12 changes: 10 additions & 2 deletions packages/grid/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
},
"files": ["test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
"files": ["src/test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
34 changes: 14 additions & 20 deletions packages/state/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"lib": [
"dom",
"ES2022"
],
"baseUrl": "../../",
"lib": ["dom", "ES2022"],
"paths": {
"@ai-table/grid": [
"dist/grid"
],
"@ai-table/utils": [
"dist/utils"
],
"@ai-table/utils/*": [
"dist/utils/*"
]
"@ai-table/grid": ["../../dist/grid"],
"@ai-table/utils": ["../../dist/utils"],
"@ai-table/utils/*": ["../../dist/utils/*"]
}
},
"exclude": [
"test.ts",
"core/**/**",
"**/*.spec.ts"
]
}
"exclude": ["test.ts", "core/**/**", "**/*.spec.ts"],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
8 changes: 7 additions & 1 deletion packages/state/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
"compilationMode": "partial",
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
Loading
Loading