open-grid 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +376 -365
- package/dist/{OpenGrid-0r_543Kj.cjs → OpenGrid-B7m7ei7f.cjs} +1222 -1029
- package/dist/{OpenGrid-HmhGVC2V.js → OpenGrid-CeUdO_fM.js} +1613 -1418
- package/dist/index-CeJ-0-80.cjs +260 -0
- package/dist/index-DnarQ4eR.js +266 -0
- package/dist/index-DrCPRuYi.js +548 -0
- package/dist/index-JjfWY3Bt.cjs +520 -0
- package/dist/open-grid-base.css +12 -1
- package/dist/open-grid-react.cjs +1 -1
- package/dist/open-grid-react.js +1 -1
- package/dist/open-grid-vue.cjs +7 -7
- package/dist/open-grid-vue.js +2 -2
- package/dist/open-grid.cjs +1 -1
- package/dist/open-grid.js +2 -2
- package/dist/types/bench/perf.d.ts +14 -8
- package/dist/types/core/AppearanceResolver.d.ts +98 -11
- package/dist/types/core/CFRenderBridge.d.ts +13 -0
- package/dist/types/core/CellTypeRegistry.d.ts +24 -0
- package/dist/types/core/ColumnLayout.d.ts +100 -2
- package/dist/types/core/CrossGridMapper.d.ts +43 -5
- package/dist/types/core/DataLayer.d.ts +210 -15
- package/dist/types/core/DragVisuals.d.ts +33 -4
- package/dist/types/core/EventEmitter.d.ts +54 -0
- package/dist/types/core/FormulaEngine.d.ts +15 -4
- package/dist/types/core/GridRenderer.d.ts +143 -10
- package/dist/types/core/GroupEngine.d.ts +68 -10
- package/dist/types/core/MathUtils.d.ts +58 -5
- package/dist/types/core/MergeEngine.d.ts +45 -10
- package/dist/types/core/OGDecimal.d.ts +144 -13
- package/dist/types/core/OpenGrid.d.ts +99 -0
- package/dist/types/core/PivotEngine.d.ts +37 -0
- package/dist/types/core/RowDragDrop.d.ts +52 -6
- package/dist/types/core/SkinRegistry.d.ts +4 -0
- package/dist/types/core/TreeEngine.d.ts +60 -6
- package/dist/types/core/VirtualScroll.d.ts +64 -0
- package/dist/types/core/a11y/AccessibilityAdapter.d.ts +103 -0
- package/dist/types/core/a11y/AriaIntent.d.ts +34 -0
- package/dist/types/core/a11y/KeyboardInteractionModel.d.ts +64 -0
- package/dist/types/core/a11y/LiveRegionController.d.ts +89 -0
- package/dist/types/core/a11y/OverlayStack.d.ts +36 -0
- package/dist/types/core/a11y/VisualEquivRegistry.d.ts +37 -0
- package/dist/types/core/a11y/index.d.ts +13 -0
- package/dist/types/core/a11y/ports.d.ts +24 -0
- package/dist/types/core/appearance/Appearance.d.ts +68 -0
- package/dist/types/core/appearance/AppearanceAxis.d.ts +94 -0
- package/dist/types/core/appearance/AppearanceComposer.d.ts +45 -0
- package/dist/types/core/appearance/AppearanceProvider.d.ts +50 -0
- package/dist/types/core/appearance/AppearanceView.d.ts +51 -0
- package/dist/types/core/appearance/DensityRegistry.d.ts +36 -0
- package/dist/types/core/appearance/ResolvedAppearanceSnapshot.d.ts +84 -0
- package/dist/types/core/appearance/TextureRegistry.d.ts +32 -0
- package/dist/types/core/appearance/ThemeMetaRegistry.d.ts +67 -0
- package/dist/types/core/appearance/axisAdapters.d.ts +37 -0
- package/dist/types/core/appearance/defaults.d.ts +10 -0
- package/dist/types/core/appearance/index.d.ts +20 -0
- package/dist/types/core/appearance/tokenCatalog.d.ts +30 -0
- package/dist/types/core/cf/CFEngine.d.ts +56 -0
- package/dist/types/core/cf/CFEvaluator.d.ts +24 -0
- package/dist/types/core/cf/CFRule.d.ts +127 -0
- package/dist/types/core/cf/ColorScale.d.ts +49 -0
- package/dist/types/core/cf/InkResolver.d.ts +33 -0
- package/dist/types/core/cf/appearance.d.ts +20 -0
- package/dist/types/core/cf/encoders.d.ts +61 -0
- package/dist/types/core/cf/eval-types.d.ts +93 -0
- package/dist/types/core/cf/index.d.ts +21 -0
- package/dist/types/core/cf/lineage.d.ts +32 -0
- package/dist/types/core/cf/predicates.d.ts +27 -0
- package/dist/types/core/cf/serialize.d.ts +46 -0
- package/dist/types/core/chart/CanvasAdapter.d.ts +50 -1
- package/dist/types/core/chart/DataExtractor.d.ts +53 -12
- package/dist/types/core/chart/a11y.d.ts +22 -0
- package/dist/types/core/chart/chart-type-registry.d.ts +53 -0
- package/dist/types/core/chart/downsample-report.d.ts +36 -0
- package/dist/types/core/chart/downsample.d.ts +26 -1
- package/dist/types/core/chart/engine/ChartEngineRegistry.d.ts +52 -0
- package/dist/types/core/chart/geometry.d.ts +96 -0
- package/dist/types/core/chart/hittest.d.ts +21 -3
- package/dist/types/core/chart/palette.d.ts +96 -12
- package/dist/types/core/chart/parity.d.ts +12 -0
- package/dist/types/core/chart/provenance.d.ts +47 -0
- package/dist/types/core/chart/scales.d.ts +28 -1
- package/dist/types/core/chart/scene.d.ts +102 -0
- package/dist/types/core/chart/server.d.ts +36 -0
- package/dist/types/core/chart/surfaces/CanvasSurface.d.ts +48 -0
- package/dist/types/core/chart/surfaces/ServerRasterSurface.d.ts +26 -0
- package/dist/types/core/chart/surfaces/SvgSurface.d.ts +24 -0
- package/dist/types/core/chart/surfaces/pattern-overlay.d.ts +24 -0
- package/dist/types/core/command/CommandBus.d.ts +51 -0
- package/dist/types/core/command/CommandRegistry.d.ts +43 -0
- package/dist/types/core/command/CommandStack.d.ts +38 -0
- package/dist/types/core/command/ICommand.d.ts +110 -0
- package/dist/types/core/command/commands/CellWriteCommand.d.ts +32 -0
- package/dist/types/core/command/commands/CompositeCommand.d.ts +17 -0
- package/dist/types/core/command/commands/RowCommands.d.ts +39 -0
- package/dist/types/core/command/index.d.ts +9 -0
- package/dist/types/core/command/support.d.ts +51 -0
- package/dist/types/core/coordinate/ColumnMetrics.d.ts +30 -0
- package/dist/types/core/coordinate/CoordinateKernel.d.ts +88 -0
- package/dist/types/core/coordinate/FrozenPanes.d.ts +29 -0
- package/dist/types/core/coordinate/MergeSourceAdapter.d.ts +18 -0
- package/dist/types/core/coordinate/NodeBudget.d.ts +33 -0
- package/dist/types/core/coordinate/ResizeGovernor.d.ts +50 -0
- package/dist/types/core/coordinate/RowMetrics.d.ts +37 -0
- package/dist/types/core/coordinate/ViewPermutation.d.ts +23 -0
- package/dist/types/core/coordinate/index.d.ts +10 -0
- package/dist/types/core/coordinate/ports.d.ts +45 -0
- package/dist/types/core/coordinate/types.d.ts +76 -0
- package/dist/types/core/detail/DetailGlyph.d.ts +42 -7
- package/dist/types/core/detail/DetailSplice.d.ts +42 -11
- package/dist/types/core/detail/DetailState.d.ts +80 -11
- package/dist/types/core/detail/SubgridCache.d.ts +72 -10
- package/dist/types/core/detail/index.d.ts +8 -0
- package/dist/types/core/domain/AggregateResult.d.ts +54 -0
- package/dist/types/core/domain/CellAddress.d.ts +61 -0
- package/dist/types/core/domain/CellValueAccess.d.ts +29 -0
- package/dist/types/core/domain/Delta.d.ts +37 -0
- package/dist/types/core/domain/DomainValue.d.ts +80 -0
- package/dist/types/core/domain/Missing.d.ts +65 -0
- package/dist/types/core/domain/Money.d.ts +42 -0
- package/dist/types/core/domain/NormalizationBasis.d.ts +47 -0
- package/dist/types/core/domain/Plain.d.ts +45 -0
- package/dist/types/core/domain/Quantity.d.ts +32 -0
- package/dist/types/core/domain/Ratios.d.ts +100 -0
- package/dist/types/core/domain/ThresholdSet.d.ts +46 -0
- package/dist/types/core/domain/ValueType.d.ts +71 -0
- package/dist/types/core/domain/rounding.d.ts +25 -0
- package/dist/types/core/domain/strategies.d.ts +38 -0
- package/dist/types/core/editors/DateEditor.d.ts +18 -0
- package/dist/types/core/editors/SelectEditor.d.ts +29 -0
- package/dist/types/core/export/ChannelRegistry.d.ts +18 -0
- package/dist/types/core/export/ExportManifest.d.ts +13 -0
- package/dist/types/core/export/GridArtifactSource.d.ts +62 -0
- package/dist/types/core/export/Provenance.d.ts +34 -0
- package/dist/types/core/export/StreamPump.d.ts +28 -0
- package/dist/types/core/export/channels/CsvChannel.d.ts +20 -0
- package/dist/types/core/export/channels/JsonChannel.d.ts +18 -0
- package/dist/types/core/export/channels/XlsxChannel.d.ts +53 -0
- package/dist/types/core/export/channels/XmlChannel.d.ts +21 -0
- package/dist/types/core/export/channels/capabilities.d.ts +13 -0
- package/dist/types/core/export/index.d.ts +24 -0
- package/dist/types/core/export/print/OutputChannelAdapter.d.ts +61 -0
- package/dist/types/core/export/print/Paginator.d.ts +48 -0
- package/dist/types/core/export/print/PrintRenderTarget.d.ts +36 -0
- package/dist/types/core/export/sinks.d.ts +40 -0
- package/dist/types/core/export/types.d.ts +211 -0
- package/dist/types/core/extension/DeprecationManager.d.ts +42 -0
- package/dist/types/core/extension/IExtension.d.ts +90 -0
- package/dist/types/core/extension/Registry.d.ts +142 -0
- package/dist/types/core/extension/SlotRegistry.d.ts +46 -0
- package/dist/types/core/extension/adapters.d.ts +44 -0
- package/dist/types/core/extension/conformance.d.ts +47 -0
- package/dist/types/core/extension/index.d.ts +16 -0
- package/dist/types/core/extension/registries.d.ts +31 -0
- package/dist/types/core/extension/reserved.d.ts +10 -0
- package/dist/types/core/format/DisplayFormatter.d.ts +47 -0
- package/dist/types/core/format/FormatCache.d.ts +20 -0
- package/dist/types/core/format/FormatterRegistry.d.ts +22 -0
- package/dist/types/core/format/grammar/AstRenderer.d.ts +10 -0
- package/dist/types/core/format/grammar/FormatCompiler.d.ts +16 -0
- package/dist/types/core/format/index.d.ts +55 -0
- package/dist/types/core/format/pipeline/DomainTypeResolver.d.ts +8 -0
- package/dist/types/core/format/pipeline/LocaleFormat.d.ts +11 -0
- package/dist/types/core/format/pipeline/ValueInterpreter.d.ts +8 -0
- package/dist/types/core/format/policy/MaskPolicy.d.ts +8 -0
- package/dist/types/core/format/policy/NegativePolicy.d.ts +12 -0
- package/dist/types/core/format/policy/NullPolicy.d.ts +10 -0
- package/dist/types/core/format/policy/TruncatePolicy.d.ts +11 -0
- package/dist/types/core/format/types.d.ts +292 -0
- package/dist/types/core/formula/CalcCacheStore.d.ts +89 -0
- package/dist/types/core/formula/CalcProvenance.d.ts +44 -0
- package/dist/types/core/formula/CalcService.d.ts +137 -0
- package/dist/types/core/formula/CyclePathReporter.d.ts +28 -0
- package/dist/types/core/formula/FormulaEvaluator.d.ts +35 -1
- package/dist/types/core/formula/FormulaGraph.d.ts +84 -7
- package/dist/types/core/formula/FormulaParser.d.ts +9 -0
- package/dist/types/core/formula/FormulaStore.d.ts +63 -1
- package/dist/types/core/formula/FunctionRegistry.d.ts +138 -0
- package/dist/types/core/formula/Generation.d.ts +86 -0
- package/dist/types/core/formula/RecalcCoordinator.d.ts +151 -9
- package/dist/types/core/formula/ReferenceRewriter.d.ts +81 -0
- package/dist/types/core/formula/functions/essential.d.ts +3 -0
- package/dist/types/core/formula/functions/extended/index.d.ts +10 -0
- package/dist/types/core/formula/normalizeRefs.d.ts +34 -3
- package/dist/types/core/formula/numericLiteral.d.ts +11 -1
- package/dist/types/core/formula/serializeFormula.d.ts +10 -1
- package/dist/types/core/host/CapabilityRegistry.d.ts +61 -0
- package/dist/types/core/host/GridHostDriver.d.ts +27 -0
- package/dist/types/core/host/GridHostPort.d.ts +37 -0
- package/dist/types/core/host/SliceOwnershipGuard.d.ts +27 -0
- package/dist/types/core/host/archCheck.d.ts +26 -0
- package/dist/types/core/host/index.d.ts +6 -0
- package/dist/types/core/host/reconcile.d.ts +22 -0
- package/dist/types/core/i18n/LocaleContext.d.ts +40 -0
- package/dist/types/core/i18n/types.d.ts +26 -1
- package/dist/types/core/icons/bootstrap-icons.d.ts +4 -2
- package/dist/types/core/quality/ContrastAuditor.d.ts +64 -0
- package/dist/types/core/quality/DeterminismKernel.d.ts +68 -0
- package/dist/types/core/quality/PerfBaseline.d.ts +23 -0
- package/dist/types/core/quality/PerfSpec.d.ts +95 -0
- package/dist/types/core/quality/RealBrowserGate.d.ts +69 -0
- package/dist/types/core/quality/RegressionJudge.d.ts +35 -0
- package/dist/types/core/quality/ReleaseGate.d.ts +94 -0
- package/dist/types/core/quality/VisualRegression.d.ts +74 -0
- package/dist/types/core/quality/hooks.d.ts +53 -0
- package/dist/types/core/quality/index.d.ts +20 -0
- package/dist/types/core/quality/pixelMetrics.d.ts +24 -0
- package/dist/types/core/range/ClipboardCodec.d.ts +46 -4
- package/dist/types/core/range/FillEngine.d.ts +69 -9
- package/dist/types/core/range/RangeModel.d.ts +100 -13
- package/dist/types/core/range/types.d.ts +27 -11
- package/dist/types/core/realtime/BackpressureScheduler.d.ts +0 -0
- package/dist/types/core/realtime/FreshnessClock.d.ts +34 -0
- package/dist/types/core/realtime/IRealtimeSource.d.ts +82 -0
- package/dist/types/core/realtime/LiveStateGuard.d.ts +23 -0
- package/dist/types/core/realtime/PollingSource.d.ts +42 -0
- package/dist/types/core/realtime/RealtimeController.d.ts +54 -0
- package/dist/types/core/realtime/RtAnnouncePolicy.d.ts +53 -0
- package/dist/types/core/realtime/RtApplyCommand.d.ts +29 -0
- package/dist/types/core/realtime/RtChartTargetTrigger.d.ts +26 -0
- package/dist/types/core/realtime/StreamingSource.d.ts +47 -0
- package/dist/types/core/realtime/backoff.d.ts +12 -0
- package/dist/types/core/realtime/index.d.ts +13 -0
- package/dist/types/core/realtime/ports.d.ts +80 -0
- package/dist/types/core/render/CellApplier.d.ts +18 -0
- package/dist/types/core/render/CellErrorBoundary.d.ts +65 -0
- package/dist/types/core/render/CellPipeline.d.ts +39 -0
- package/dist/types/core/render/CellRenderRequest.d.ts +209 -0
- package/dist/types/core/render/CellStageRegistry.d.ts +53 -0
- package/dist/types/core/render/OverlayCompositor.d.ts +38 -0
- package/dist/types/core/render/RenderBudget.d.ts +67 -0
- package/dist/types/core/render/contrast.d.ts +33 -0
- package/dist/types/core/render/index.d.ts +35 -0
- package/dist/types/core/render/stages/BackgroundStage.d.ts +14 -0
- package/dist/types/core/render/stages/DecoratorStage.d.ts +12 -0
- package/dist/types/core/render/stages/OverlayStage.d.ts +12 -0
- package/dist/types/core/render/stages/ValueRendererStage.d.ts +15 -0
- package/dist/types/core/render/stages/index.d.ts +14 -0
- package/dist/types/core/state/AutosaveController.d.ts +63 -0
- package/dist/types/core/state/IStatePersistence.d.ts +59 -0
- package/dist/types/core/state/MultiTabGuard.d.ts +33 -0
- package/dist/types/core/state/SchemaMigrator.d.ts +33 -0
- package/dist/types/core/state/SemVerPolicy.d.ts +39 -0
- package/dist/types/core/state/StateCodec.d.ts +75 -0
- package/dist/types/core/state/index.d.ts +6 -0
- package/dist/types/core/types.d.ts +17 -0
- package/dist/types/react/OpenGrid.d.ts +54 -0
- package/dist/types/react/index.d.ts +5 -0
- package/dist/types/realtime/index.d.ts +1 -0
- package/dist/types/vue/index.d.ts +5 -0
- package/dist/types/vue/types.d.ts +35 -0
- package/package.json +112 -111
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PersistedRecord } from './IStatePersistence.js';
|
|
2
|
+
/** 다른 탭 저장 통지. / Notice of another tab's save. */
|
|
3
|
+
export interface TabConflictNotice {
|
|
4
|
+
readonly otherTabId: string;
|
|
5
|
+
readonly otherRevision: number;
|
|
6
|
+
readonly savedAt: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* revision 기반 낙관적 잠금. observe/onExternalSave 로 최신 매체 리비전을 추적하고, checkBeforeSave
|
|
10
|
+
* 로 저장 전 충돌을 감지한다. 내 탭(tabId) 저장은 충돌로 보지 않는다.
|
|
11
|
+
* / Revision-based optimistic lock. Tracks the latest media revision via observe/onExternalSave and
|
|
12
|
+
* detects conflicts before a save via checkBeforeSave. My own tab's saves are never conflicts.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MultiTabGuard {
|
|
15
|
+
private readonly _tabId;
|
|
16
|
+
private _latestRevision;
|
|
17
|
+
private _latestRec;
|
|
18
|
+
constructor(_tabId: string);
|
|
19
|
+
get tabId(): string;
|
|
20
|
+
/** 매체에서 관측한 최신 레코드 반영(subscribe 콜백/명시 폴링). / Record the latest observed media state. */
|
|
21
|
+
observe(rec: PersistedRecord): void;
|
|
22
|
+
/**
|
|
23
|
+
* 저장 전 충돌 검사: 관측한 최신 리비전이 baseRevision 보다 앞서고 그게 다른 탭 소행이면 충돌.
|
|
24
|
+
* / Pre-save conflict check: conflict if the observed latest revision leads baseRevision and it
|
|
25
|
+
* came from another tab.
|
|
26
|
+
*/
|
|
27
|
+
checkBeforeSave(baseRevision: number): 'ok' | {
|
|
28
|
+
conflict: PersistedRecord;
|
|
29
|
+
};
|
|
30
|
+
/** 다른 탭 저장 통지 수신 → 관측 반영 + 경고(내 탭이면 null). / Receive another tab's save notice. */
|
|
31
|
+
onExternalSave(rec: PersistedRecord): TabConflictNotice | null;
|
|
32
|
+
get latestRevision(): number;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SemVerPolicy } from './SemVerPolicy.js';
|
|
2
|
+
import { StateEnvelope } from './StateCodec.js';
|
|
3
|
+
export interface MigrationNote {
|
|
4
|
+
readonly fromMajor: number;
|
|
5
|
+
readonly toMajor: number;
|
|
6
|
+
readonly note: string;
|
|
7
|
+
}
|
|
8
|
+
/** 한 major 단계 변환기(fromMajor → fromMajor+1). / A single major-step migrator. */
|
|
9
|
+
export interface MigrationStep {
|
|
10
|
+
readonly fromMajor: number;
|
|
11
|
+
migrate(env: StateEnvelope): StateEnvelope;
|
|
12
|
+
}
|
|
13
|
+
export type MigrateResult = {
|
|
14
|
+
readonly env: StateEnvelope;
|
|
15
|
+
readonly notes: MigrationNote[];
|
|
16
|
+
} | {
|
|
17
|
+
readonly rejected: true;
|
|
18
|
+
readonly reason: string;
|
|
19
|
+
};
|
|
20
|
+
/** 버전 간 변환 체인 계약. / Inter-version migration chain contract. */
|
|
21
|
+
export interface SchemaMigrator {
|
|
22
|
+
migrate(env: unknown): MigrateResult;
|
|
23
|
+
}
|
|
24
|
+
/** 등록된 major 단계들을 순차 적용하는 기본 마이그레이터. / Default migrator applying registered major steps in sequence. */
|
|
25
|
+
export declare class DefaultSchemaMigrator implements SchemaMigrator {
|
|
26
|
+
private readonly _steps;
|
|
27
|
+
private readonly _current;
|
|
28
|
+
private readonly _policy;
|
|
29
|
+
constructor(current: string, policy?: SemVerPolicy);
|
|
30
|
+
/** major 승격 단계 등록(Strategy 확장점). / Register a major-promotion step (Strategy extension point). */
|
|
31
|
+
register(step: MigrationStep): this;
|
|
32
|
+
migrate(env: unknown): MigrateResult;
|
|
33
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** 'MAJOR.MINOR.PATCH' 만 허용하는 브랜드 문자열(파싱 실패 = 거부 대상). / Branded 'MAJOR.MINOR.PATCH'. */
|
|
2
|
+
export type SemVer = string & {
|
|
3
|
+
readonly __brand: 'SemVer';
|
|
4
|
+
};
|
|
5
|
+
/** 검증 없이 브랜드 부여(호출자 책임). 실검증은 parse/classify 가 한다. / Brand without validation. */
|
|
6
|
+
export declare function asSemVer(s: string): SemVer;
|
|
7
|
+
export interface ParsedSemVer {
|
|
8
|
+
readonly major: number;
|
|
9
|
+
readonly minor: number;
|
|
10
|
+
readonly patch: number;
|
|
11
|
+
}
|
|
12
|
+
/** classify 결과 — 5분기. / classify result — 5 branches. */
|
|
13
|
+
export type Classification = {
|
|
14
|
+
readonly kind: 'load';
|
|
15
|
+
} | {
|
|
16
|
+
readonly kind: 'tolerant';
|
|
17
|
+
readonly unknownSections: string[];
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: 'migrate';
|
|
20
|
+
readonly fromMajor: number;
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: 'reject';
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
};
|
|
25
|
+
/** classify 부가 입력(관용 로드 시 미지 섹션 산출). / Extra input for classify (unknown-section derivation). */
|
|
26
|
+
export interface ClassifyContext {
|
|
27
|
+
readonly loadedSections?: readonly string[];
|
|
28
|
+
readonly knownSections?: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
/** semver 비교 커널(단일 소유 — 봉투/커맨드 payloadVersion 공용). / semver comparison kernel. */
|
|
31
|
+
export interface SemVerPolicy {
|
|
32
|
+
parse(s: string): ParsedSemVer | null;
|
|
33
|
+
classify(loaded: string, current: string, ctx?: ClassifyContext): Classification;
|
|
34
|
+
}
|
|
35
|
+
/** §2.5.1 표를 구현한 기본 정책. / Default policy implementing the §2.5.1 table. */
|
|
36
|
+
export declare class DefaultSemVerPolicy implements SemVerPolicy {
|
|
37
|
+
parse(s: string): ParsedSemVer | null;
|
|
38
|
+
classify(loaded: string, current: string, ctx?: ClassifyContext): Classification;
|
|
39
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { SemVerPolicy } from './SemVerPolicy.js';
|
|
2
|
+
import { SchemaMigrator } from './SchemaMigrator.js';
|
|
3
|
+
/** 저장 봉투 — 전 서브시스템 조각의 합성 + 단일 버전 권위. / Save envelope — composition of all sections + single version authority. */
|
|
4
|
+
export interface StateEnvelope {
|
|
5
|
+
readonly schemaVersion: string;
|
|
6
|
+
readonly savedAt: number;
|
|
7
|
+
/** 커맨드 리비전(멀티탭 충돌 감지 키). / Command revision (multi-tab conflict key). */
|
|
8
|
+
readonly revision: number;
|
|
9
|
+
readonly sections: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
/** 조각 로드 결과 — 부분실패는 값으로 신고(조용한 실패 0). / Section load result — partial failure reported as a value. */
|
|
12
|
+
export interface SectionLoadResult {
|
|
13
|
+
readonly restored?: boolean;
|
|
14
|
+
readonly partial?: {
|
|
15
|
+
readonly reason: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 봉투에 담기는 한 조각의 소유 계약(해당 DD 소유). 봉투는 이 계약을 호출만 하고 내부 스키마를 모른다.
|
|
20
|
+
* / Ownership contract for one section (owned by its DD). The envelope only calls it, never knows its schema.
|
|
21
|
+
*/
|
|
22
|
+
export interface ISectionCodec {
|
|
23
|
+
readonly key: string;
|
|
24
|
+
toState(): unknown;
|
|
25
|
+
fromState(raw: unknown): SectionLoadResult;
|
|
26
|
+
}
|
|
27
|
+
/** 로드 결과 — 무엇이 복원/일부실패/거부됐는지 표면화(조용한 실패 금지). / Load result — surfaces restored/partial/rejected. */
|
|
28
|
+
export interface LoadResult {
|
|
29
|
+
readonly ok: boolean;
|
|
30
|
+
readonly restored: string[];
|
|
31
|
+
readonly partial: {
|
|
32
|
+
section: string;
|
|
33
|
+
reason: string;
|
|
34
|
+
}[];
|
|
35
|
+
readonly rejected?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface StateCodecConfig {
|
|
38
|
+
/** 런타임이 아는 현재 봉투 버전. / Current envelope version known to the runtime. */
|
|
39
|
+
readonly current: string;
|
|
40
|
+
readonly sections: ISectionCodec[];
|
|
41
|
+
readonly policy?: SemVerPolicy;
|
|
42
|
+
readonly migrator?: SchemaMigrator;
|
|
43
|
+
/** 봉투에 심을 리비전 소스(CommandBus dirty/audit 연동). / Revision source stamped into the envelope. */
|
|
44
|
+
readonly revision?: () => number;
|
|
45
|
+
readonly now?: () => number;
|
|
46
|
+
}
|
|
47
|
+
/** getState/setState 정본 + 버전 마이그레이션 파사드. / Canonical getState/setState + version migration facade. */
|
|
48
|
+
export declare class StateCodec {
|
|
49
|
+
private readonly _current;
|
|
50
|
+
private readonly _sections;
|
|
51
|
+
private readonly _policy;
|
|
52
|
+
private readonly _migrator;
|
|
53
|
+
private readonly _rev;
|
|
54
|
+
private readonly _now;
|
|
55
|
+
/** future-minor 로드 시 보존한 미지 섹션(round-trip 무손실 재방출). / Opaque unknown sections preserved for lossless round-trip. */
|
|
56
|
+
private _opaque;
|
|
57
|
+
constructor(cfg: StateCodecConfig);
|
|
58
|
+
/** 살아있는 그리드 → 봉투. 각 조각의 toState() 합성 + 보존된 opaque 섹션 병합(무손실). / Live grid → envelope. */
|
|
59
|
+
getState(): StateEnvelope;
|
|
60
|
+
/**
|
|
61
|
+
* 봉투 → 살아있는 그리드. schemaVersion 라우팅(§2.5.1) → 마이그레이션/관용/거부 → 조각 fromState.
|
|
62
|
+
* 로드는 CommandBus 를 거치지 않는 초기화 경로(undo 스택 clear 는 호출자 책임).
|
|
63
|
+
* / envelope → live grid; routes by schemaVersion, then applies section fromState.
|
|
64
|
+
*/
|
|
65
|
+
setState(env: unknown): LoadResult;
|
|
66
|
+
/**
|
|
67
|
+
* 왕복 자기검사(골든 하니스용): 두 봉투의 섹션 동일성. 조각 소유 DD 값객체 equals 를 못 부르는
|
|
68
|
+
* DD-09 층에서는 구조(JSON) 동일성으로 판정하고, 손실경계는 diffs 로 표면화한다.
|
|
69
|
+
* / Round-trip self-check: section equality between two envelopes (structural JSON compare here).
|
|
70
|
+
*/
|
|
71
|
+
roundTripEquals(a: StateEnvelope, b: StateEnvelope): {
|
|
72
|
+
equal: boolean;
|
|
73
|
+
diffs: string[];
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { DefaultSemVerPolicy, asSemVer, type SemVer, type ParsedSemVer, type Classification, type ClassifyContext, type SemVerPolicy, } from './SemVerPolicy.js';
|
|
2
|
+
export { StateCodec, type StateEnvelope, type ISectionCodec, type SectionLoadResult, type LoadResult, type StateCodecConfig, } from './StateCodec.js';
|
|
3
|
+
export { DefaultSchemaMigrator, type SchemaMigrator, type MigrationStep, type MigrationNote, type MigrateResult, } from './SchemaMigrator.js';
|
|
4
|
+
export { InMemoryStatePersistence, LocalStorageStatePersistence, type IStatePersistence, type PersistedRecord, } from './IStatePersistence.js';
|
|
5
|
+
export { MultiTabGuard, type TabConflictNotice } from './MultiTabGuard.js';
|
|
6
|
+
export { AutosaveController, type AutosavePolicy, type AutosaveControllerConfig, type DraftStatus, type DraftDiff, } from './AutosaveController.js';
|
|
@@ -618,6 +618,8 @@ export interface GridOptions<T = any> {
|
|
|
618
618
|
masterDetail?: MasterDetailOptions<T>;
|
|
619
619
|
/** F4: 그리드 데이터 통합 차트(C5.1 단일 중첩). 타입은 chart/types 순환-안전 type-only import. / F4: grid-data integrated chart (C5.1 single nesting). Type is a cycle-safe type-only import from chart/types. */
|
|
620
620
|
chart?: import('./chart/types.js').ChartGlobalOptions;
|
|
621
|
+
/** DD-05: 조건부서식(CF) 규칙(opt-in, 기본 undefined=byte-identical). 지정 시 _mount 가 setConditionalFormat 로 배선(동적 import). 타입은 cf 순환-안전 type-only import. / DD-05: conditional-format rules (opt-in; default undefined = byte-identical). Type is a cycle-safe type-only import from cf. */
|
|
622
|
+
conditionalFormat?: import('./cf/CFRule.js').CFRule[];
|
|
621
623
|
/** 전역 정렬 허용. / Global sort switch. */
|
|
622
624
|
sortable?: boolean;
|
|
623
625
|
/** Shift+클릭 멀티정렬 허용. / Allow Shift+click multi-sort. */
|
|
@@ -677,6 +679,10 @@ export interface GridOptions<T = any> {
|
|
|
677
679
|
theme?: string;
|
|
678
680
|
/** 스킨 (FORM 축, R12b) — data-og-skin. 미지정 시 'default'(오늘과 byte-identical). / Skin (FORM axis, R12b) — data-og-skin. Default 'default' (byte-identical to stock look). */
|
|
679
681
|
skin?: string;
|
|
682
|
+
/** DD-11: 밀도 (DENSITY 축) — data-og-density. 미지정 시 미적용(byte-identical). / Density (DENSITY axis, DD-11) — data-og-density. Unset = not applied (byte-identical). */
|
|
683
|
+
density?: string;
|
|
684
|
+
/** DD-11: 질감 (TEXTURE 축) — data-og-texture. 미지정 시 미적용(byte-identical). / Texture (TEXTURE axis, DD-11) — data-og-texture. Unset = not applied (byte-identical). */
|
|
685
|
+
texture?: string;
|
|
680
686
|
/** 컨테이너에 주입할 CSS 변수 맵. / CSS custom properties injected on the container. */
|
|
681
687
|
cssVars?: Record<string, string>;
|
|
682
688
|
/**
|
|
@@ -870,6 +876,13 @@ export interface OpenGridInstance<T = any> {
|
|
|
870
876
|
pushData(data: T[]): void;
|
|
871
877
|
prefixData(data: T[]): void;
|
|
872
878
|
clearData(): void;
|
|
879
|
+
/**
|
|
880
|
+
* DD-05: 조건부서식(CF) 규칙 설정 — 데이터바·히트맵·아이콘셋을 렌더 경로에 배선(opt-in, 동적 import).
|
|
881
|
+
* 규칙이 걸린 컬럼 통계를 캐시 계산 후 재렌더한다. 빈 배열이면 CF 해제(잔재 제거).
|
|
882
|
+
* / DD-05: set conditional-format rules — wires data-bars/heatmaps/icon-sets into the render path
|
|
883
|
+
* (opt-in, dynamic import). Caches rule-bearing column stats, then re-renders. Empty array clears CF.
|
|
884
|
+
*/
|
|
885
|
+
setConditionalFormat(rules: import('./cf/CFRule.js').CFRule[]): Promise<void>;
|
|
873
886
|
insertRow(item: Partial<T>, position?: Position): void;
|
|
874
887
|
pushRow(items: Partial<T> | Partial<T>[]): void;
|
|
875
888
|
unshiftRow(items: Partial<T> | Partial<T>[]): void;
|
|
@@ -1046,6 +1059,10 @@ export interface OpenGridInstance<T = any> {
|
|
|
1046
1059
|
getSkin(): string;
|
|
1047
1060
|
/** R12b: FORM 축 단일 토큰 런타임 오버라이드(setThemeVar 의 형태-축 형제). 색 값은 거부. */
|
|
1048
1061
|
setSkinVar(varName: string, value: string): void;
|
|
1062
|
+
/** DD-11: 밀도(DENSITY 축) 전환 — data-og-density + --og-density-* 토큰(+행높이 미러, relayout). 미등록 never-throw. 색⊥형태⊥밀도⊥질감 직교. / DD-11: switch the density axis — additive data-og-density + --og-density-* tokens (row-height mirror + relayout). Never throws. */
|
|
1063
|
+
setDensity(name: string): void;
|
|
1064
|
+
/** DD-11: 질감(TEXTURE 축) 전환 — data-og-texture + --og-texture-* 토큰(배경 페인트만, relayout 없음). 미등록 never-throw. / DD-11: switch the texture axis — additive data-og-texture + --og-texture-* tokens (paint only, no relayout). Never throws. */
|
|
1065
|
+
setTexture(name: string): void;
|
|
1049
1066
|
/** UI 로케일 전환 — 크롬+가시창 재렌더 + emit('localeChange'). 미등록 로케일은 never-throw. */
|
|
1050
1067
|
setLocale(locale: string): void;
|
|
1051
1068
|
/** 현재 인스턴스 로케일 id. */
|
|
@@ -1,33 +1,87 @@
|
|
|
1
1
|
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
import { GridOptions, ColumnDef, OpenGridInstance } from '../core/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* React `<OpenGrid>` 컴포넌트의 props. / Props of the React `<OpenGrid>` component.
|
|
5
|
+
*
|
|
6
|
+
* 코어 `GridOptions` 의 자주 쓰는 옵션을 선언적 prop 으로 노출하고, 나머지는 `options` 로 전달한다.
|
|
7
|
+
* / Exposes the commonly used `GridOptions` as declarative props; pass the rest through `options`.
|
|
8
|
+
*
|
|
9
|
+
* @typeParam T - 행 데이터 타입 / Row data type
|
|
10
|
+
*/
|
|
3
11
|
export interface OpenGridProps<T extends Record<string, any> = any> {
|
|
12
|
+
/** 표시할 행 데이터 배열. / Row data array to display. */
|
|
4
13
|
data?: T[];
|
|
14
|
+
/** 컬럼 정의 배열(필수). / Column definitions (required). */
|
|
5
15
|
columns: ColumnDef<T>[];
|
|
16
|
+
/** 그리드 높이(숫자는 px). 기본 400. / Grid height (number = px). Default 400. */
|
|
6
17
|
height?: number | string;
|
|
18
|
+
/** 그리드 너비(숫자는 px). 기본 '100%'. / Grid width (number = px). Default '100%'. */
|
|
7
19
|
width?: number | string;
|
|
20
|
+
/** 셀 편집 허용. 기본 false. / Allow cell editing. Default false. */
|
|
8
21
|
editable?: boolean;
|
|
22
|
+
/** 정렬 허용. 기본 true. / Allow sorting. Default true. */
|
|
9
23
|
sortable?: boolean;
|
|
24
|
+
/** 필터 허용. 기본 true. / Allow filtering. Default true. */
|
|
10
25
|
filterable?: boolean;
|
|
26
|
+
/** 행 번호 컬럼 표시. 기본 false. / Show a row-number column. Default false. */
|
|
11
27
|
rowNumber?: boolean;
|
|
28
|
+
/** 체크박스 선택 컬럼 표시. 기본 false. / Show a checkbox selection column. Default false. */
|
|
12
29
|
checkColumn?: boolean;
|
|
30
|
+
/** 왼쪽에서 고정할 컬럼 수. 기본 0. / Number of columns frozen from the left. Default 0. */
|
|
13
31
|
frozenColumns?: number;
|
|
32
|
+
/** 테마 id. 기본 'default'. / Theme id. Default 'default'. */
|
|
14
33
|
theme?: string;
|
|
34
|
+
/** 위 prop 으로 못 덮는 나머지 코어 옵션. / Remaining core options not covered by the props above. */
|
|
15
35
|
options?: Partial<GridOptions<T>>;
|
|
36
|
+
/** 컨테이너 인라인 스타일(height/width 위에 병합). / Container inline style (merged over height/width). */
|
|
16
37
|
style?: CSSProperties;
|
|
38
|
+
/** 컨테이너 CSS 클래스. / Container CSS class. */
|
|
17
39
|
className?: string;
|
|
40
|
+
/** 행 상태 컬럼 표시. 기본 false. / Show a row-state column. Default false. */
|
|
18
41
|
stateColumn?: boolean;
|
|
42
|
+
/** 행 드래그앤드롭 허용. 기본 false. / Allow row drag-and-drop. Default false. */
|
|
19
43
|
draggable?: boolean;
|
|
44
|
+
/** 그리드 인스턴스 준비 완료 콜백. / Fired when the grid instance is ready. */
|
|
20
45
|
onReady?: (grid: OpenGridInstance<T>) => void;
|
|
46
|
+
/** 데이터 변경 콜백. / Fired when the data changes. */
|
|
21
47
|
onDataChange?: (data: T[]) => void;
|
|
48
|
+
/** 셀 클릭 콜백. / Fired on cell click. */
|
|
22
49
|
onCellClick?: (e: any) => void;
|
|
50
|
+
/** 행 클릭 콜백. / Fired on row click. */
|
|
23
51
|
onRowClick?: (e: any) => void;
|
|
52
|
+
/** 편집 종료(커밋) 콜백. / Fired when editing ends (commit). */
|
|
24
53
|
onEditEnd?: (e: any) => void;
|
|
54
|
+
/** 정렬 변경 콜백. / Fired when sorting changes. */
|
|
25
55
|
onSortChange?: (e: any) => void;
|
|
56
|
+
/** 필터 변경 콜백. / Fired when filtering changes. */
|
|
26
57
|
onFilterChange?: (e: any) => void;
|
|
58
|
+
/** 행 드롭(재정렬) 콜백. / Fired on row drop (reorder). */
|
|
27
59
|
onRowDrop?: (e: {
|
|
28
60
|
fromIndex: number;
|
|
29
61
|
toIndex: number;
|
|
30
62
|
}) => void;
|
|
31
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* OPEN_GRID 코어를 감싸는 React 컴포넌트. / React component wrapping the OPEN_GRID core.
|
|
66
|
+
*
|
|
67
|
+
* 마운트 시 코어 `OpenGrid` 인스턴스를 만들고, `data`·`theme`·구조 prop 변경을 감지해 동기화한다.
|
|
68
|
+
* / Creates a core `OpenGrid` instance on mount and syncs it as `data`, `theme`, and structural
|
|
69
|
+
* props change.
|
|
70
|
+
*
|
|
71
|
+
* @typeParam T - 행 데이터 타입 / Row data type
|
|
72
|
+
* @param props - 그리드 props / Grid props
|
|
73
|
+
* @returns 그리드 컨테이너 엘리먼트 / The grid container element
|
|
74
|
+
* @example
|
|
75
|
+
* <OpenGrid columns={[{ field: 'name', header: '이름' }]} data={rows} height={400} />
|
|
76
|
+
*/
|
|
32
77
|
export declare function OpenGridReact<T extends Record<string, any> = any>({ data, columns, height, width, editable, sortable, filterable, rowNumber, checkColumn, stateColumn, draggable, frozenColumns, theme, options, style, className, onReady, onDataChange, onCellClick, onRowClick, onEditEnd, onSortChange, onFilterChange, onRowDrop, }: OpenGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
/**
|
|
79
|
+
* ref 로 코어 grid 인스턴스에 접근할 수 있는 forwardRef 래퍼.
|
|
80
|
+
* / forwardRef wrapper exposing the core grid instance through a ref.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* const ref = useRef<OpenGridInstance>(null);
|
|
84
|
+
* <OpenGridWithRef ref={ref} columns={cols} />;
|
|
85
|
+
* ref.current?.setData(rows);
|
|
86
|
+
*/
|
|
33
87
|
export declare const OpenGridWithRef: React.ForwardRefExoticComponent<OpenGridProps<any> & React.RefAttributes<OpenGridInstance<any>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../core/realtime/index.js';
|
|
@@ -1,27 +1,62 @@
|
|
|
1
1
|
import { GridOptions, ColumnDef, OpenGridInstance } from '../core/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Vue `<OpenGrid>` 컴포넌트의 props. / Props of the Vue `<OpenGrid>` component.
|
|
4
|
+
*
|
|
5
|
+
* 코어 `GridOptions` 의 자주 쓰는 옵션을 선언적 prop 으로 노출하고, 나머지는 `options` 로 전달한다.
|
|
6
|
+
* / Exposes the commonly used `GridOptions` as declarative props; pass the rest through `options`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - 행 데이터 타입 / Row data type
|
|
9
|
+
*/
|
|
2
10
|
export interface OpenGridProps<T = any> {
|
|
11
|
+
/** 표시할 행 데이터 배열. / Row data array to display. */
|
|
3
12
|
data?: T[];
|
|
13
|
+
/** 컬럼 정의 배열(필수). / Column definitions (required). */
|
|
4
14
|
columns: ColumnDef<T>[];
|
|
15
|
+
/** 그리드 높이(숫자는 px). 기본 400. / Grid height (number = px). Default 400. */
|
|
5
16
|
height?: number | string;
|
|
17
|
+
/** 그리드 너비(숫자는 px). 기본 '100%'. / Grid width (number = px). Default '100%'. */
|
|
6
18
|
width?: number | string;
|
|
19
|
+
/** 셀 편집 허용. 기본 false. / Allow cell editing. Default false. */
|
|
7
20
|
editable?: boolean;
|
|
21
|
+
/** 정렬 허용. 기본 true. / Allow sorting. Default true. */
|
|
8
22
|
sortable?: boolean;
|
|
23
|
+
/** 필터 허용. 기본 true. / Allow filtering. Default true. */
|
|
9
24
|
filterable?: boolean;
|
|
25
|
+
/** 행 번호 컬럼 표시. 기본 false. / Show a row-number column. Default false. */
|
|
10
26
|
rowNumber?: boolean;
|
|
27
|
+
/** 체크박스 선택 컬럼 표시. 기본 false. / Show a checkbox selection column. Default false. */
|
|
11
28
|
checkColumn?: boolean;
|
|
29
|
+
/** 행 상태 컬럼 표시. 기본 false. / Show a row-state column. Default false. */
|
|
12
30
|
stateColumn?: boolean;
|
|
31
|
+
/** 행 드래그앤드롭 허용. 기본 false. / Allow row drag-and-drop. Default false. */
|
|
13
32
|
draggable?: boolean;
|
|
33
|
+
/** 왼쪽에서 고정할 컬럼 수. 기본 0. / Number of columns frozen from the left. Default 0. */
|
|
14
34
|
frozenColumns?: number;
|
|
35
|
+
/** 테마 id. 기본 'default'. / Theme id. Default 'default'. */
|
|
15
36
|
theme?: string;
|
|
37
|
+
/** 위 prop 으로 못 덮는 나머지 코어 옵션. / Remaining core options not covered by the props above. */
|
|
16
38
|
options?: Partial<GridOptions<T>>;
|
|
17
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Vue `<OpenGrid>` 가 발행하는 이벤트. / Events emitted by the Vue `<OpenGrid>` component.
|
|
42
|
+
*
|
|
43
|
+
* @typeParam T - 행 데이터 타입 / Row data type
|
|
44
|
+
*/
|
|
18
45
|
export interface OpenGridEmits<T = any> {
|
|
46
|
+
/** `v-model:data` 양방향 갱신. / Two-way update for `v-model:data`. */
|
|
19
47
|
(e: 'update:data', data: T[]): void;
|
|
48
|
+
/** 그리드 인스턴스 준비 완료. / The grid instance is ready. */
|
|
20
49
|
(e: 'ready', grid: OpenGridInstance<T>): void;
|
|
50
|
+
/** 셀 클릭. / Cell click. */
|
|
21
51
|
(e: 'cell-click', event: any): void;
|
|
52
|
+
/** 행 클릭. / Row click. */
|
|
22
53
|
(e: 'row-click', event: any): void;
|
|
54
|
+
/** 편집 종료(커밋). / Editing ended (commit). */
|
|
23
55
|
(e: 'edit-end', event: any): void;
|
|
56
|
+
/** 정렬 변경. / Sorting changed. */
|
|
24
57
|
(e: 'sort-change', event: any): void;
|
|
58
|
+
/** 필터 변경. / Filtering changed. */
|
|
25
59
|
(e: 'filter-change', event: any): void;
|
|
60
|
+
/** 행 체크 상태 변경. / Row check state changed. */
|
|
26
61
|
(e: 'row-check', event: any): void;
|
|
27
62
|
}
|
package/package.json
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "open-grid",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Ultra-light data grid with a zero-dependency core — works with React, Vue, Angular, jQuery, or vanilla JS. MIT-licensed, endlessly customizable, with an AI-friendly override guide.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/open-grid.cjs",
|
|
7
|
-
"module": "dist/open-grid.js",
|
|
8
|
-
"types": "dist/types/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/open-grid.js",
|
|
12
|
-
"require": "./dist/open-grid.cjs",
|
|
13
|
-
"types": "./dist/types/index.d.ts"
|
|
14
|
-
},
|
|
15
|
-
"./vue": {
|
|
16
|
-
"import": "./dist/open-grid-vue.js",
|
|
17
|
-
"require": "./dist/open-grid-vue.cjs",
|
|
18
|
-
"types": "./dist/types/vue/index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"./react": {
|
|
21
|
-
"import": "./dist/open-grid-react.js",
|
|
22
|
-
"require": "./dist/open-grid-react.cjs",
|
|
23
|
-
"types": "./dist/types/react/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./style.css": "./dist/style.css"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist",
|
|
29
|
-
"README.md",
|
|
30
|
-
"CHANGELOG.md",
|
|
31
|
-
"LICENSE",
|
|
32
|
-
"NOTICE",
|
|
33
|
-
"THIRD_PARTY_LICENSES.txt"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"dev": "vite",
|
|
37
|
-
"build": "tsc && vite build",
|
|
38
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"test:watch": "vitest",
|
|
41
|
-
"test:coverage": "vitest run --coverage",
|
|
42
|
-
"test:e2e": "playwright test",
|
|
43
|
-
"docs": "typedoc",
|
|
44
|
-
"size": "node scripts/check-bundle-size.mjs",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"react
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"@
|
|
70
|
-
"@types/react
|
|
71
|
-
"@
|
|
72
|
-
"@typescript-eslint/
|
|
73
|
-
"@
|
|
74
|
-
"@vitejs/plugin-
|
|
75
|
-
"@
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"react
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"vite
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"xlsx
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "open-grid",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "초경량·제로 의존성 데이터 그리드 — React·Vue·Angular·jQuery·Vanilla 어디서나. 가상 스크롤·인라인 편집·다국어(i18n), MIT 라이선스, AI 친화 override 가이드. / Ultra-light data grid with a zero-dependency core — works with React, Vue, Angular, jQuery, or vanilla JS. Virtual scroll, inline editing, i18n. MIT-licensed, endlessly customizable, with an AI-friendly override guide.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/open-grid.cjs",
|
|
7
|
+
"module": "dist/open-grid.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/open-grid.js",
|
|
12
|
+
"require": "./dist/open-grid.cjs",
|
|
13
|
+
"types": "./dist/types/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./vue": {
|
|
16
|
+
"import": "./dist/open-grid-vue.js",
|
|
17
|
+
"require": "./dist/open-grid-vue.cjs",
|
|
18
|
+
"types": "./dist/types/vue/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./react": {
|
|
21
|
+
"import": "./dist/open-grid-react.js",
|
|
22
|
+
"require": "./dist/open-grid-react.cjs",
|
|
23
|
+
"types": "./dist/types/react/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./style.css": "./dist/style.css"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"CHANGELOG.md",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"NOTICE",
|
|
33
|
+
"THIRD_PARTY_LICENSES.txt"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "vite",
|
|
37
|
+
"build": "tsc && vite build",
|
|
38
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"test:watch": "vitest",
|
|
41
|
+
"test:coverage": "vitest run --coverage",
|
|
42
|
+
"test:e2e": "playwright test",
|
|
43
|
+
"docs": "typedoc",
|
|
44
|
+
"size": "node scripts/check-bundle-size.mjs",
|
|
45
|
+
"arch:check": "node scripts/arch-check.mjs",
|
|
46
|
+
"lint": "eslint src --ext .ts,.tsx,.vue",
|
|
47
|
+
"preview": "vite preview",
|
|
48
|
+
"build:deploy": "vite build --config vite.config.deploy.ts",
|
|
49
|
+
"obfuscate": "node scripts/obfuscate.mjs",
|
|
50
|
+
"deploy": "npm run build && npm run build:deploy && npm run obfuscate"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"react": ">=18.0.0",
|
|
54
|
+
"react-dom": ">=18.0.0",
|
|
55
|
+
"vue": ">=3.0.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"react": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"react-dom": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"vue": {
|
|
65
|
+
"optional": true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@playwright/test": "^1.44.0",
|
|
70
|
+
"@types/react": "^18.3.0",
|
|
71
|
+
"@types/react-dom": "^18.3.0",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
73
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
74
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
75
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
76
|
+
"@vitest/coverage-v8": "^1.6.1",
|
|
77
|
+
"ajv": "^8.20.0",
|
|
78
|
+
"eslint": "^9.0.0",
|
|
79
|
+
"javascript-obfuscator": "^5.4.3",
|
|
80
|
+
"jsdom": "^29.1.1",
|
|
81
|
+
"react": "^18.3.0",
|
|
82
|
+
"react-dom": "^18.3.0",
|
|
83
|
+
"typedoc": "^0.28.19",
|
|
84
|
+
"typescript": "^5.4.0",
|
|
85
|
+
"vite": "^5.2.0",
|
|
86
|
+
"vite-plugin-dts": "^4.5.4",
|
|
87
|
+
"vitest": "^1.6.0",
|
|
88
|
+
"vue": "^3.4.0",
|
|
89
|
+
"xlsx": "^0.18.5",
|
|
90
|
+
"xlsx-js-style": "^1.2.0"
|
|
91
|
+
},
|
|
92
|
+
"keywords": [
|
|
93
|
+
"grid",
|
|
94
|
+
"datagrid",
|
|
95
|
+
"table",
|
|
96
|
+
"vue",
|
|
97
|
+
"react",
|
|
98
|
+
"typescript",
|
|
99
|
+
"virtual-scroll",
|
|
100
|
+
"editable"
|
|
101
|
+
],
|
|
102
|
+
"license": "MIT",
|
|
103
|
+
"author": "OPEN_GRID Contributors",
|
|
104
|
+
"homepage": "https://foxnail.kr/open-grid/demo/v2/index.php",
|
|
105
|
+
"repository": {
|
|
106
|
+
"type": "git",
|
|
107
|
+
"url": "git+https://github.com/farmerkweon/OpenGrid.git"
|
|
108
|
+
},
|
|
109
|
+
"bugs": {
|
|
110
|
+
"url": "https://github.com/farmerkweon/OpenGrid/issues"
|
|
111
|
+
}
|
|
112
|
+
}
|