@judo/model-api 0.32.0 → 0.33.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.
@@ -1,6 +1,6 @@
1
- import { ClassBehaviourType, MemberType, OperationTargetBehaviourType, OperationTypeEnum, RelationBehaviourType, RelationKind } from '../enums';
2
- import { NamedElement } from '../visual/base';
3
- import { EnumerationType } from './types';
1
+ import type { ClassBehaviourType, MemberType, OperationTargetBehaviourType, OperationTypeEnum, RelationBehaviourType, RelationKind } from "../enums";
2
+ import type { NamedElement } from "../visual/base";
3
+ import type { EnumerationType } from "./types";
4
4
  /**
5
5
  * Annotation for model elements.
6
6
  * Maps to: data:Annotation
@@ -1,3 +1,3 @@
1
- export * from './elements';
2
- export * from './types';
1
+ export * from "./elements";
2
+ export * from "./types";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { NamedElement } from '../visual/base';
2
- import { DataType, MimeType } from './elements';
1
+ import type { NamedElement } from "../visual/base";
2
+ import type { DataType, MimeType } from "./elements";
3
3
  /**
4
4
  * String type.
5
5
  * Maps to: data:StringType
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;;CAGP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAEpD,eAAO,MAAM,GAAG;;;;CAIN,CAAC;AACX,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEjD,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AACX,MAAM,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MAAM;aACZ,MAAM,EAAE,QAAQ;aAChB,GAAG,EAAE,KAAK;aACV,KAAK,EAAE,OAAO;aACd,GAAG,EAAE,KAAK;aACV,MAAM,EAAE,QAAQ;aAChB,KAAK,EAAE,OAAO;aACd,eAAe,EAAE,iBAAiB;aAClC,QAAQ,EAAE,UAAU;aACpB,MAAM,EAAE,QAAQ;aAChB,eAAe,EAAE,iBAAiB;aAClC,MAAM,EAAE,QAAQ;aAChB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,QAAQ;CACP,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvG,eAAO,MAAM,kBAAkB;aAC9B,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,QAAQ;aAChB,eAAe,EAAE,iBAAiB;aAClC,MAAM,EAAE,QAAQ;aAChB,QAAQ,EAAE,UAAU;CACX,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F,eAAO,MAAM,iBAAiB;aAC7B,MAAM,EAAE,QAAQ;aAChB,MAAM,EAAE,QAAQ;CACP,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3F,eAAO,MAAM,4BAA4B;aACxC,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,QAAQ;aAChB,MAAM,EAAE,QAAQ;aAChB,cAAc,EAAE,gBAAgB;CACvB,CAAC;AACX,MAAM,MAAM,4BAA4B,GACvC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,14 +1,28 @@
1
- import { ComponentType, ReactElement, ReactNode } from 'react';
2
- import { ActionDefinition } from './structural/actions';
3
- import { MenuLayout } from './enums';
4
- import { Action, Application, NavigationController, NavigationItem, PageDefinition } from './structural/application';
5
- import { Button, ButtonGroup } from './visual/buttons';
6
- import { Formatted, IconImage, Label, Text } from './visual/display';
7
- import { BinaryTypeInput, Checkbox, DateInput, DateTimeInput, EnumerationCombo, EnumerationRadio, EnumerationToggleButtonbar, NumericInput, PasswordInput, Switch, TextArea, TextInput, TimeInput, TrinaryLogicCombo } from './visual/inputs';
8
- import { Divider, Flex, PageContainer, Spacer, VisualElement } from './visual/layout';
9
- import { Link } from './visual/link';
10
- import { Column, Filter, Table } from './visual/table';
11
- import { TabController } from './visual/tabs';
1
+ /**
2
+ * Extensibility types for the JUDO UI Runtime.
3
+ *
4
+ * Provides type-safe contracts for:
5
+ * - Custom component implementations (customImplementation="true" elements)
6
+ * - Page/dialog action lifecycle overrides
7
+ * - Visual property overrides
8
+ *
9
+ * These types are consumed by:
10
+ * - @judo/core (CustomizationsProvider, resolution hooks)
11
+ * - @judo/codegen (generated type-safe wrappers)
12
+ * - Consumer applications (manual or generated registrations)
13
+ */
14
+ import type { ComponentType, ReactElement, ReactNode } from "react";
15
+ import type { ActionDefinition } from "./structural/actions";
16
+ import type { MenuLayout } from "./enums";
17
+ import type { Action, Application, NavigationController, NavigationItem, PageDefinition } from "./structural/application";
18
+ import type { Button } from "./visual/buttons";
19
+ import type { ButtonGroup } from "./visual/buttons";
20
+ import type { Formatted, IconImage, Label, Text } from "./visual/display";
21
+ import type { BinaryTypeInput, Checkbox, DateInput, DateTimeInput, EnumerationCombo, EnumerationRadio, EnumerationToggleButtonbar, NumericInput, PasswordInput, Switch, TextArea, TextInput, TimeInput, TrinaryLogicCombo } from "./visual/inputs";
22
+ import type { Divider, Flex, PageContainer, Spacer, VisualElement } from "./visual/layout";
23
+ import type { Link } from "./visual/link";
24
+ import type { Column, Filter, Table } from "./visual/table";
25
+ import type { TabController } from "./visual/tabs";
12
26
  /**
13
27
  * Props passed to every custom component implementation.
14
28
  * The element prop is typed to the specific VisualElement subtype.
@@ -237,6 +251,143 @@ export type VisualPropertiesHook = () => VisualPropertyOverrides;
237
251
  * ```
238
252
  */
239
253
  export type SubThemeHook = (parentTheme: any, data?: Record<string, unknown>) => Record<string, unknown>;
254
+ /**
255
+ * Contextual options describing the failing operation, passed to the error
256
+ * handler interceptor. Mirrors the React template's `ErrorHandlingOption`.
257
+ *
258
+ * All fields are optional — the runtime supplies whatever it knows about the
259
+ * failing dispatch (e.g. the key/name of the operation or CRUD action that
260
+ * triggered the error).
261
+ */
262
+ export interface ErrorHandlingOption {
263
+ /** Human-readable identifier of the operation/action that failed. */
264
+ key?: string;
265
+ /** Arbitrary additional context about the failing call. */
266
+ [key: string]: unknown;
267
+ }
268
+ /**
269
+ * Error handler interceptor hook.
270
+ *
271
+ * Mirrors the React template's `ErrorHandlerInterceptorHook`. Lets applications
272
+ * intercept REST errors before the runtime's default error handling (toasts /
273
+ * validation messages / fault dialogs) runs.
274
+ *
275
+ * `interceptError` is invoked **only** when `shouldInterceptError` returned
276
+ * `true` for the same error; otherwise the runtime's default handling runs.
277
+ *
278
+ * @example
279
+ * ```typescript
280
+ * const errorHandlerInterceptor: ErrorHandlerInterceptorHook = {
281
+ * shouldInterceptError: (error) => (error as { status?: number }).status === 409,
282
+ * interceptError: (error, options) => {
283
+ * showConflictDialog(error, options?.key);
284
+ * },
285
+ * };
286
+ * ```
287
+ */
288
+ export interface ErrorHandlerInterceptorHook {
289
+ /**
290
+ * Decide whether this interceptor handles the given error.
291
+ * Return `true` to suppress the runtime's default handling and route the
292
+ * error to `interceptError`; return `false` to fall through to default handling.
293
+ */
294
+ shouldInterceptError(error: unknown, options?: ErrorHandlingOption): boolean;
295
+ /**
296
+ * Perform custom handling for an error previously accepted by
297
+ * `shouldInterceptError`. Never called unless `shouldInterceptError` returned `true`.
298
+ *
299
+ * @param error - The error thrown by the failing dispatch.
300
+ * @param options - Contextual options describing the failing operation.
301
+ * @param payload - Optional request payload that triggered the error.
302
+ * @param dataPath - Optional data path associated with the failing call.
303
+ */
304
+ interceptError(error: unknown, options?: ErrorHandlingOption, payload?: unknown, dataPath?: string): void;
305
+ }
306
+ /**
307
+ * On-blur action function.
308
+ *
309
+ * Invoked by `InputRenderer` when an input/relation element modelled with the
310
+ * `onBlur` flag loses focus (or completes a relation selection). Mirrors the
311
+ * React template's `on<Attr>BlurAction(data, storeDiff, editMode, submit)`.
312
+ *
313
+ * For table containers only `submit()` is meaningful — `data`, `storeDiff` and
314
+ * `editMode` reflect the row/edit context when available.
315
+ *
316
+ * @param data - An eager copy of the container's `*Stored` data at blur time.
317
+ * @param storeDiff - Apply a field change to the container data: `storeDiff(attribute, value)`.
318
+ * @param editMode - Whether the container is currently in edit mode.
319
+ * @param submit - Submit the container (e.g. trigger save/update).
320
+ */
321
+ export type BlurActionFn = (data: Record<string, unknown> | undefined, storeDiff: (attribute: string, value: unknown) => void, editMode: boolean, submit: () => void) => void;
322
+ /**
323
+ * Navigation interceptor hook.
324
+ *
325
+ * Mirrors the React template's `NavigationInterceptorHook`. Lets applications
326
+ * decorate every outgoing navigation (e.g. to persist "sticky" search params)
327
+ * and run logic once on initial page load.
328
+ *
329
+ * @example
330
+ * ```typescript
331
+ * const navigationInterceptor: NavigationInterceptorHook = {
332
+ * decorateNavigation: (to) => `${to}${to.includes("?") ? "&" : "?"}tenant=acme`,
333
+ * onBeforeInitialLoad: () => { restoreStickyParams(); },
334
+ * };
335
+ * ```
336
+ */
337
+ export interface NavigationInterceptorHook {
338
+ /**
339
+ * Decorate an outgoing navigation destination. Receives the destination as a
340
+ * string (the runtime stringifies partial paths via `stringifyPath` first)
341
+ * and returns the (possibly modified) destination string the runtime routes to.
342
+ */
343
+ decorateNavigation(to: string): string;
344
+ /**
345
+ * Optional hook invoked exactly once during initial page load, before the
346
+ * first model-driven navigation. Not invoked on subsequent navigations.
347
+ */
348
+ onBeforeInitialLoad?(): void;
349
+ /**
350
+ * Helper supplied by the runtime for converting a partial path object to a
351
+ * string. Applications may call it from `decorateNavigation`.
352
+ */
353
+ stringifyPath?(to: string | Record<string, unknown>): string;
354
+ }
355
+ /**
356
+ * A single global hotkey registration.
357
+ *
358
+ * Mirrors the metadata the React template's generated `hotkeys.tsx` uses to
359
+ * render its "list of hotkeys" dialog and bind shortcuts to action hooks.
360
+ */
361
+ export interface GlobalHotkey {
362
+ /**
363
+ * Key combination, in `react-hotkeys-hook` syntax (e.g. `"ctrl+k"`,
364
+ * `"meta+shift+p"`).
365
+ */
366
+ keys: string;
367
+ /** Handler invoked when the key combination is pressed. */
368
+ handler: () => void;
369
+ /** Human-readable label shown in the built-in "list of hotkeys" dialog. */
370
+ label?: string;
371
+ }
372
+ /**
373
+ * Global hotkey registration surface for `CustomizationsConfig`.
374
+ *
375
+ * Either a declarative list of {@link GlobalHotkey} entries that the app-shell
376
+ * binds (and renders in the built-in "list of hotkeys" dialog), or a free-form
377
+ * React hook/component the runtime mounts once inside the provider tree (giving
378
+ * apps full control, matching the template's `registerGlobalHotkeys`).
379
+ */
380
+ export interface GlobalHotkeysConfig {
381
+ /** Declarative hotkey list bound by the runtime and shown in the built-in dialog. */
382
+ hotkeys?: GlobalHotkey[];
383
+ /**
384
+ * Free-form registration component/hook mounted once inside the app-shell
385
+ * provider tree. Use for full control over key binding.
386
+ */
387
+ Component?: ComponentType;
388
+ /** When `true`, render the built-in "list of hotkeys" dialog from {@link GlobalHotkeysConfig.hotkeys}. */
389
+ showDialog?: boolean;
390
+ }
240
391
  /**
241
392
  * @internal Runtime format for action overrides on a page.
242
393
  *
@@ -329,6 +480,14 @@ export interface PageCustomization {
329
480
  * generated `createCustomizations()` factory).
330
481
  */
331
482
  itemContainerConfigs?: Record<string, ItemContainerConfig>;
483
+ /**
484
+ * @internal On-blur action functions for input/relation elements on this page.
485
+ *
486
+ * Keys are element sourceIds (resolved from human-readable names by the
487
+ * generated `createCustomizations()` factory, which emits typed
488
+ * `on<Attr>BlurAction` method names).
489
+ */
490
+ blurActions?: Record<string, BlurActionFn>;
332
491
  }
333
492
  /**
334
493
  * Configuration for a single table row highlighting rule.
@@ -712,6 +871,33 @@ export interface CustomizationsConfig {
712
871
  * @see {@link LayoutBreadcrumbsProps} for the full props contract.
713
872
  */
714
873
  breadcrumbsComponent?: ComponentType<LayoutBreadcrumbsProps>;
874
+ /**
875
+ * Error handler interceptor.
876
+ *
877
+ * When set, the runtime checks `shouldInterceptError(error, options?)` before
878
+ * running its default error handling for a failed action dispatch. When it
879
+ * returns `true`, `interceptError(error, options?, payload?, dataPath?)` runs
880
+ * instead of the default toast/validation/fault handling; when it returns
881
+ * `false`, the default handling runs unchanged.
882
+ *
883
+ * @see {@link ErrorHandlerInterceptorHook}
884
+ */
885
+ errorHandlerInterceptor?: ErrorHandlerInterceptorHook;
886
+ /**
887
+ * Navigation interceptor for decorating outgoing navigations (e.g. sticky
888
+ * search params) and running logic once on initial load.
889
+ *
890
+ * @see {@link NavigationInterceptorHook}
891
+ */
892
+ navigationInterceptor?: NavigationInterceptorHook;
893
+ /**
894
+ * Global keyboard shortcut registration. Either a declarative hotkey list
895
+ * the runtime binds (with an optional built-in "list of hotkeys" dialog) or a
896
+ * free-form component/hook mounted once inside the app-shell provider tree.
897
+ *
898
+ * @see {@link GlobalHotkeysConfig}
899
+ */
900
+ globalHotkeys?: GlobalHotkeysConfig;
715
901
  }
716
902
  /**
717
903
  * Props passed to a custom guest page component.
@@ -1 +1 @@
1
- {"version":3,"file":"extensibility.d.ts","sourceRoot":"","sources":["../src/extensibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EACX,MAAM,EACN,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,MAAM,0BAA0B,CAAC;AAClC,O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AAC;QAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACvB,GAAG,IAAI,CAAC;IACT,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;OAKG;IACH,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from './enums';
2
- export * from './visual';
3
- export * from './structural';
4
- export * from './data';
5
- export * from './services';
6
- export * from './extensibility';
1
+ export * from "./enums";
2
+ export * from "./visual";
3
+ export * from "./structural";
4
+ export * from "./data";
5
+ export * from "./services";
6
+ export * from "./extensibility";
7
7
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/enums.ts","../src/services.ts"],"sourcesContent":["// ============================================\n// LAYOUT ENUMS\n// ============================================\n// Using `as const` objects instead of TypeScript enums for better tree-shaking.\n// Rolldown/Rollup can eliminate unused const objects but cannot tree-shake enum IIFEs.\n// See: specs/HMR.md — Standard VII: Elimination of TypeScript Enums\n\nexport const Axis = {\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n} as const;\nexport type Axis = (typeof Axis)[keyof typeof Axis];\n\nexport const Fit = {\n\tNONE: \"NONE\",\n\tLOOSE: \"LOOSE\",\n\tTIGHT: \"TIGHT\",\n} as const;\nexport type Fit = (typeof Fit)[keyof typeof Fit];\n\nexport const Stretch = {\n\tNONE: \"NONE\",\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n\tBOTH: \"BOTH\",\n} as const;\nexport type Stretch = (typeof Stretch)[keyof typeof Stretch];\n\nexport const MainAxisAlignment = {\n\tCENTER: \"CENTER\",\n\tEND: \"END\",\n\tSPACEAROUND: \"SPACEAROUND\",\n\tSPACEBETWEEN: \"SPACEBETWEEN\",\n\tSPACEEVENLY: \"SPACEEVENLY\",\n\tSTART: \"START\",\n} as const;\nexport type MainAxisAlignment = (typeof MainAxisAlignment)[keyof typeof MainAxisAlignment];\n\nexport const CrossAxisAlignment = {\n\tBASELINE: \"BASELINE\",\n\tCENTER: \"CENTER\",\n\tEND: \"END\",\n\tSTART: \"START\",\n\tSTRETCH: \"STRETCH\",\n} as const;\nexport type CrossAxisAlignment = (typeof CrossAxisAlignment)[keyof typeof CrossAxisAlignment];\n\nexport const MainAxisSize = {\n\tMIN: \"MIN\",\n\tMAX: \"MAX\",\n} as const;\nexport type MainAxisSize = (typeof MainAxisSize)[keyof typeof MainAxisSize];\n\nexport const Alignment = {\n\tTOP_LEFT: \"TOP_LEFT\",\n\tTOP_CENTER: \"TOP_CENTER\",\n\tTOP_RIGHT: \"TOP_RIGHT\",\n\tCENTER_LEFT: \"CENTER_LEFT\",\n\tCENTER: \"CENTER\",\n\tCENTER_RIGHT: \"CENTER_RIGHT\",\n\tBOTTOM_LEFT: \"BOTTOM_LEFT\",\n\tBOTTOM_CENTER: \"BOTTOM_CENTER\",\n\tBOTTOM_RIGHT: \"BOTTOM_RIGHT\",\n} as const;\nexport type Alignment = (typeof Alignment)[keyof typeof Alignment];\n\n// ============================================\n// UI ENUMS\n// ============================================\n\nexport const DialogSize = {\n\tXS: \"XS\",\n\tSM: \"SM\",\n\tMD: \"MD\",\n\tLG: \"LG\",\n\tXL: \"XL\",\n} as const;\nexport type DialogSize = (typeof DialogSize)[keyof typeof DialogSize];\n\nexport const PageContainerType = {\n\tTABLE: \"TABLE\",\n\tFORM: \"FORM\",\n\tVIEW: \"VIEW\",\n} as const;\nexport type PageContainerType = (typeof PageContainerType)[keyof typeof PageContainerType];\n\nexport const ButtonStyle = {\n\tCONTAINED: \"contained\",\n\tTEXT: \"text\",\n\tOUTLINED: \"outlined\",\n} as const;\nexport type ButtonStyle = (typeof ButtonStyle)[keyof typeof ButtonStyle];\n\nexport const ConfirmationType = {\n\tNONE: \"NONE\",\n\tCONDITIONAL: \"CONDITIONAL\",\n\tMANDATORY: \"MANDATORY\",\n} as const;\nexport type ConfirmationType = (typeof ConfirmationType)[keyof typeof ConfirmationType];\n\nexport const Sort = {\n\tNONE: \"NONE\",\n\tASC: \"ASC\",\n\tDESC: \"DESC\",\n} as const;\nexport type Sort = (typeof Sort)[keyof typeof Sort];\n\nexport const FilterOperationType = {\n\tEQUAL: \"EQUAL\",\n\tNOT_EQUAL: \"NOT_EQUAL\",\n\tIS_EMPTY: \"IS_EMPTY\",\n\tIS_NOT_EMPTY: \"IS_NOT_EMPTY\",\n\tLESS: \"LESS\",\n\tLESS_OR_EQUAL: \"LESS_OR_EQUAL\",\n\tGREATER: \"GREATER\",\n\tGREATER_OR_EQUAL: \"GREATER_OR_EQUAL\",\n\tLIKE: \"LIKE\",\n} as const;\nexport type FilterOperationType = (typeof FilterOperationType)[keyof typeof FilterOperationType];\n\nexport const CheckboxSelection = {\n\tAUTO: \"AUTO\",\n\tENABLED: \"ENABLED\",\n\tDISABLED: \"DISABLED\",\n} as const;\nexport type CheckboxSelection = (typeof CheckboxSelection)[keyof typeof CheckboxSelection];\n\nexport const TableRepresentation = {\n\tTABLE: \"TABLE\",\n\tTAG: \"TAG\",\n\tCARD: \"CARD\",\n} as const;\nexport type TableRepresentation = (typeof TableRepresentation)[keyof typeof TableRepresentation];\n\nexport const MenuLayout = {\n\tVERTICAL: \"VERTICAL\",\n\tHORIZONTAL: \"HORIZONTAL\",\n} as const;\nexport type MenuLayout = (typeof MenuLayout)[keyof typeof MenuLayout];\n\nexport const TabOrientation = {\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n} as const;\nexport type TabOrientation = (typeof TabOrientation)[keyof typeof TabOrientation];\n\nexport const DurationUnit = {\n\tNANOSECOND: \"NANOSECOND\",\n\tMICROSECOND: \"MICROSECOND\",\n\tMILLISECOND: \"MILLISECOND\",\n\tSECOND: \"SECOND\",\n\tMINUTE: \"MINUTE\",\n\tHOUR: \"HOUR\",\n\tDAY: \"DAY\",\n\tWEEK: \"WEEK\",\n\tMONTH: \"MONTH\",\n\tYEAR: \"YEAR\",\n} as const;\nexport type DurationUnit = (typeof DurationUnit)[keyof typeof DurationUnit];\n\nexport const Placement = {\n\tTOP: \"TOP\",\n\tBOTTOM: \"BOTTOM\",\n\tSTART: \"START\",\n\tEND: \"END\",\n\tDEFAULT: \"DEFAULT\",\n} as const;\nexport type Placement = (typeof Placement)[keyof typeof Placement];\n\nexport const TitleFrom = {\n\tLABEL: \"LABEL\",\n\tATTRIBUTE: \"ATTRIBUTE\",\n} as const;\nexport type TitleFrom = (typeof TitleFrom)[keyof typeof TitleFrom];\n\nexport const ClaimType = {\n\tUNDEFINED: \"UNDEFINED\",\n\tEMAIL: \"EMAIL\",\n\tUSERNAME: \"USERNAME\",\n} as const;\nexport type ClaimType = (typeof ClaimType)[keyof typeof ClaimType];\n\n// ============================================\n// DATA ENUMS\n// ============================================\n\nexport const RelationKind = {\n\tASSOCIATION: \"ASSOCIATION\",\n\tCOMPOSITION: \"COMPOSITION\",\n\tAGGREGATION: \"AGGREGATION\",\n\tSTATIC: \"STATIC\",\n} as const;\nexport type RelationKind = (typeof RelationKind)[keyof typeof RelationKind];\n\nexport const MemberType = {\n\tSTORED: \"STORED\",\n\tDERIVED: \"DERIVED\",\n\tMAPPED: \"MAPPED\",\n\tTRANSIENT: \"TRANSIENT\",\n\tACCESS: \"ACCESS\",\n} as const;\nexport type MemberType = (typeof MemberType)[keyof typeof MemberType];\n\nexport const RelationBehaviourType = {\n\tLIST: \"LIST\",\n\tCREATE: \"CREATE\",\n\tSET: \"SET\",\n\tUNSET: \"UNSET\",\n\tADD: \"ADD\",\n\tREMOVE: \"REMOVE\",\n\tRANGE: \"RANGE\",\n\tVALIDATE_CREATE: \"VALIDATE_CREATE\",\n\tTEMPLATE: \"TEMPLATE\",\n\tUPDATE: \"UPDATE\",\n\tVALIDATE_UPDATE: \"VALIDATE_UPDATE\",\n\tDELETE: \"DELETE\",\n\tREFRESH: \"REFRESH\",\n\tEXPORT: \"EXPORT\",\n} as const;\nexport type RelationBehaviourType = (typeof RelationBehaviourType)[keyof typeof RelationBehaviourType];\n\nexport const ClassBehaviourType = {\n\tREFRESH: \"REFRESH\",\n\tUPDATE: \"UPDATE\",\n\tVALIDATE_UPDATE: \"VALIDATE_UPDATE\",\n\tDELETE: \"DELETE\",\n\tTEMPLATE: \"TEMPLATE\",\n} as const;\nexport type ClassBehaviourType = (typeof ClassBehaviourType)[keyof typeof ClassBehaviourType];\n\nexport const OperationTypeEnum = {\n\tMAPPED: \"MAPPED\",\n\tSTATIC: \"STATIC\",\n} as const;\nexport type OperationTypeEnum = (typeof OperationTypeEnum)[keyof typeof OperationTypeEnum];\n\nexport const OperationTargetBehaviourType = {\n\tREFRESH: \"REFRESH\",\n\tUPDATE: \"UPDATE\",\n\tDELETE: \"DELETE\",\n\tVALIDATE_INPUT: \"VALIDATE_INPUT\",\n} as const;\nexport type OperationTargetBehaviourType =\n\t(typeof OperationTargetBehaviourType)[keyof typeof OperationTargetBehaviourType];\n","import type { ComponentType } from \"react\";\nimport type { AttributeType, ClassType, DataType, OperationType, RelationType } from \"./data/elements\";\nimport type { PageContainerType } from \"./enums\";\nimport type { ActionDefinition } from \"./structural/actions\";\nimport type { Action, Application, NavigationItem, PageDefinition } from \"./structural/application\";\nimport type { PageContainer, VisualElement } from \"./visual/layout\";\n\n// ============================================\n// CORE SERVICES\n// ============================================\nexport const MODEL_LOADER_SERVICE = Symbol.for(\"@judo/MODEL_LOADER_SERVICE\");\nexport const MODEL_REGISTRY_SERVICE = Symbol.for(\"@judo/MODEL_REGISTRY_SERVICE\");\nexport const NAVIGATION_BADGE_SERVICE = Symbol.for(\"@judo/NAVIGATION_BADGE_SERVICE\");\nexport const THEME_SERVICE = Symbol.for(\"@judo/THEME_SERVICE\");\n\n// ============================================\n// HOOK FACTORY SERVICES (React hooks compatible)\n// ============================================\n\n/**\n * @internal Framework service token for action handler hook factories.\n * Built-in handlers are registered by actionType.\n * Developers override actions via the type-safe `createCustomizations()` factory.\n */\nexport const ACTION_HANDLER_FACTORY = Symbol.for(\"@judo/ACTION_HANDLER_FACTORY\");\n\n/**\n * @internal Framework service token for component overrides.\n * Developers register components via the type-safe `createCustomizations()` factory.\n * Framework INJECTS the VisualElement as `element` prop.\n */\nexport const COMPONENT_OVERRIDE = Symbol.for(\"@judo/COMPONENT_OVERRIDE\");\n\n/**\n * @internal Framework service token for the component override manager.\n * Used internally by `useComponentOverride` hook.\n */\nexport const COMPONENT_OVERRIDE_SERVICE = Symbol.for(\"@judo/COMPONENT_OVERRIDE_SERVICE\");\n\n// ============================================\n// ENTERPRISE SERVICES\n// ============================================\nexport const NOTIFICATION_SERVICE = Symbol.for(\"@judo/NOTIFICATION_SERVICE\");\nexport const DIALOG_SERVICE = Symbol.for(\"@judo/DIALOG_SERVICE\");\nexport const UNSAVED_CHANGES_GUARD = Symbol.for(\"@judo/UNSAVED_CHANGES_GUARD\");\nexport const SESSION_TIMEOUT_GUARD = Symbol.for(\"@judo/SESSION_TIMEOUT_GUARD\");\nexport const LOADING_SERVICE = Symbol.for(\"@judo/LOADING_SERVICE\");\nexport const I18N_SERVICE = Symbol.for(\"@judo/I18N_SERVICE\");\n\n// ============================================\n// ACTION HANDLER FACTORY TYPES\n// ============================================\n\n/**\n * Runtime context passed to action handlers when action triggers.\n */\nexport interface ActionHandlerContext {\n\t/** The transfer being acted upon */\n\ttransfer?: unknown;\n\t/** Selected rows for bulk/table operations */\n\tselectedRows?: unknown[];\n\t/** Dialog closer if action is in a dialog */\n\tcloseDialog?: () => void;\n\t/** Navigation context for page transitions */\n\tnavigation?: unknown;\n\t/** Data store for transfer operations */\n\tdata?: unknown;\n\t/** Model registry for lookups */\n\tregistry?: ModelRegistryService;\n}\n\n/**\n * Action handler hook factory type.\n * Framework INJECTS the Action model element when calling your handler.\n *\n * @param action - The Action model element (injected by framework)\n * @returns Handler function to execute when action triggers\n *\n * @example\n * ```typescript\n * function useMyHandler(action: Action) {\n * const { showSuccess } = useNotification();\n * const operation = action.actionDefinition.operation;\n *\n * return async (ctx: ActionHandlerContext) => {\n * console.log(`Handling ${action.name}:`, ctx.transfer);\n * showSuccess('Done!');\n * };\n * }\n * ```\n */\nexport type ActionHandlerHook = (action: Action) => ActionHandlerFn;\n\n/**\n * Handler function called when the action is triggered.\n */\nexport type ActionHandlerFn = (context: ActionHandlerContext) => Promise<unknown>;\n\n/**\n * @internal Framework-internal service properties for action handler registration.\n *\n * **Do not use directly.** Developers should use the generated `createCustomizations()`\n * factory with human-readable page and action names instead.\n *\n * @see {@link CustomizationsConfig} for the runtime format (also internal)\n */\nexport interface ActionHandlerFactoryProperties {\n\t/** @internal The action's xmi:id — resolved automatically by the factory */\n\tsourceId: string;\n}\n\n/**\n * Service properties for built-in action handler registration (internal).\n */\nexport interface BuiltInActionHandlerFactoryProperties {\n\t/** The action type this built-in handles (e.g., 'ui:DeleteActionDefinition') */\n\tactionType: string;\n\t/** Marker for built-in handlers */\n\tbuiltin: true;\n}\n\n// ============================================\n// COMPONENT OVERRIDE TYPES\n// ============================================\n\n/**\n * Type for a component that can be used as an override.\n * Framework INJECTS the VisualElement as the `element` prop.\n *\n * @example\n * ```typescript\n * const MyTableComponent: OverrideComponent<Table> = ({ element }) => {\n * return <DefaultTable element={element} />;\n * };\n * ```\n */\nexport type OverrideComponent<T extends VisualElement = VisualElement> = ComponentType<\n\t{ element: T } & Record<string, unknown>\n>;\n\n/**\n * @internal Framework-internal component override registration object.\n *\n * **Do not use directly.** Developers should register component overrides via\n * the generated `createCustomizations()` factory using human-readable names:\n *\n * @example\n * ```typescript\n * // Use the generated type-safe factory:\n * createCustomizations({\n * components: {\n * OrderSummaryWidget: MyCustomComponent,\n * },\n * componentInterceptors: {\n * TextInput: (element, page) => isEmail(element) ? EmailInput : null,\n * },\n * });\n * ```\n */\nexport interface ComponentOverride {\n\t/** @internal Override a specific element — resolved automatically by the factory */\n\tsourceId?: string;\n\t/** Override all elements of this type (e.g., 'Table', 'TextInput') */\n\telementType?: string;\n\t/** Override all elements within a container type */\n\tcontainerType?: PageContainerType;\n\t/** The component to render instead of the default */\n\tcomponent: OverrideComponent;\n}\n\n/**\n * @internal Framework-internal service properties for component override registration.\n *\n * **Do not use directly.** Use the generated `createCustomizations()` factory\n * with `components` (by name) or `componentInterceptors` (by @type) instead.\n */\nexport interface ComponentOverrideProperties {\n\t/** @internal Element identity — resolved automatically by the factory */\n\tsourceId?: string;\n\t/** Override all elements of this type (e.g., 'Table', 'TextInput') */\n\telementType?: string;\n}\n\n/**\n * @internal Framework-internal service for managing component overrides at runtime.\n * Used internally by `useComponentOverride` hook.\n */\nexport interface ComponentOverrideService {\n\t/** Register a component override, returns unregister function */\n\tregister(override: ComponentOverride): () => void;\n\t/** Get override for element with priority: sourceId > elementType > containerType */\n\tgetOverride(element: VisualElement, containerType?: PageContainerType): OverrideComponent | null;\n\t/** Subscribe to override changes */\n\tsubscribe(callback: () => void): () => void;\n\t/** Get current snapshot of all registered overrides */\n\tgetSnapshot(): ComponentOverride[];\n}\n\n// ============================================\n// SERVICE INTERFACES\n// ============================================\n\nexport interface ModelLoaderService {\n\tload(source: string): Promise<Application[]>;\n}\n\nexport interface RegistrySnapshot {\n\tapplications: Application[];\n\tactiveApplication: Application | null;\n\tactiveActorName: string | null;\n}\n\nexport interface ModelRegistryService {\n\tregisterModel(apps: Application[]): void;\n\tgetApplications(): Application[];\n\tgetApplication(actorName: string): Application;\n\tgetActiveApplication(): Application;\n\tsetActiveApplication(actorName: string): void;\n\tresolveById<T = unknown>(id: string): T | undefined;\n\tresolveClassType(ref: string): ClassType | undefined;\n\tresolveRelationType(ref: string): RelationType | undefined;\n\tresolveAttributeType(ref: string): AttributeType | undefined;\n\tresolvePageDefinition(ref: string): PageDefinition | undefined;\n\tresolvePageContainer(ref: string): PageContainer | undefined;\n\tresolveVisualElement(id: string): VisualElement | undefined;\n\tresolveActionDefinition(ref: string): ActionDefinition | undefined;\n\tresolveDataType(ref: string): DataType | undefined;\n\tresolveOperationType(ref: string): OperationType | undefined;\n\tresolveNavigationItem(id: string): NavigationItem | undefined;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): RegistrySnapshot;\n}\n\nexport interface BadgeInfo {\n\tcount?: number;\n\tcolor?: \"primary\" | \"secondary\" | \"error\" | \"warning\" | \"info\" | \"success\";\n\tmax?: number;\n\tshowZero?: boolean;\n}\n\nexport interface NavigationBadgeService {\n\tgetBadge(itemId: string): BadgeInfo | null;\n\tsetBadge(itemId: string, badge: BadgeInfo | null): void;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): Map<string, BadgeInfo>;\n}\n\nexport interface ThemeConfig {\n\tmode: \"light\" | \"dark\";\n\t/** @deprecated Use muiThemeOptions.palette.primary instead */\n\tprimaryColor?: string;\n\t/** @deprecated Use muiThemeOptions.palette.secondary instead */\n\tsecondaryColor?: string;\n\t/**\n\t * MUI theme options to merge with defaults.\n\t * Provides full customization of Material-UI theme.\n\t */\n\tmuiThemeOptions?: Record<string, unknown>;\n\t/**\n\t * Whether the theme is using system preference.\n\t * When true, mode will automatically track OS/browser preference.\n\t */\n\tisSystemMode?: boolean;\n\t/**\n\t * Density level controlling semantic spacing and sizing.\n\t * - `compact` — tight spacing, smaller controls\n\t * - `comfortable` — default MUI sizing (no overrides)\n\t * - `standard` — generous spacing, larger touch targets\n\t */\n\tdensity?: \"compact\" | \"comfortable\" | \"standard\";\n\t/**\n\t * Named theme preset. When set, provides default primary/secondary colors\n\t * and background tints. Explicit `primaryColor`/`secondaryColor` override\n\t * the preset values.\n\t *\n\t * Built-in presets: 'classic', 'corporate', 'ocean', 'slate', 'indigo', 'forest', 'royal'\n\t */\n\tpreset?: \"classic\" | \"corporate\" | \"ocean\" | \"slate\" | \"indigo\" | \"forest\" | \"royal\" | (string & {});\n}\n\nexport interface ThemeService {\n\tgetTheme(): ThemeConfig;\n\tsetTheme(config: Partial<ThemeConfig>): void;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): ThemeConfig;\n}\n"],"mappings":";AAOA,IAAa,IAAO;CACnB,YAAY;CACZ,UAAU;CACV,EAGY,IAAM;CAClB,MAAM;CACN,OAAO;CACP,OAAO;CACP,EAGY,IAAU;CACtB,MAAM;CACN,YAAY;CACZ,UAAU;CACV,MAAM;CACN,EAGY,IAAoB;CAChC,QAAQ;CACR,KAAK;CACL,aAAa;CACb,cAAc;CACd,aAAa;CACb,OAAO;CACP,EAGY,IAAqB;CACjC,UAAU;CACV,QAAQ;CACR,KAAK;CACL,OAAO;CACP,SAAS;CACT,EAGY,IAAe;CAC3B,KAAK;CACL,KAAK;CACL,EAGY,IAAY;CACxB,UAAU;CACV,YAAY;CACZ,WAAW;CACX,aAAa;CACb,QAAQ;CACR,cAAc;CACd,aAAa;CACb,eAAe;CACf,cAAc;CACd,EAOY,IAAa;CACzB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,EAGY,IAAoB;CAChC,OAAO;CACP,MAAM;CACN,MAAM;CACN,EAGY,IAAc;CAC1B,WAAW;CACX,MAAM;CACN,UAAU;CACV,EAGY,IAAmB;CAC/B,MAAM;CACN,aAAa;CACb,WAAW;CACX,EAGY,IAAO;CACnB,MAAM;CACN,KAAK;CACL,MAAM;CACN,EAGY,IAAsB;CAClC,OAAO;CACP,WAAW;CACX,UAAU;CACV,cAAc;CACd,MAAM;CACN,eAAe;CACf,SAAS;CACT,kBAAkB;CAClB,MAAM;CACN,EAGY,IAAoB;CAChC,MAAM;CACN,SAAS;CACT,UAAU;CACV,EAGY,IAAsB;CAClC,OAAO;CACP,KAAK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AwB,OAAO,IAAI,8BAA8B,EACjE,IAAwB,OAAO,IAAI,8BAA8B,EACjE,IAAkB,OAAO,IAAI,wBAAwB,EACrD,IAAe,OAAO,IAAI,qBAAqB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/enums.ts","../src/services.ts"],"sourcesContent":["// ============================================\n// LAYOUT ENUMS\n// ============================================\n// Using `as const` objects instead of TypeScript enums for better tree-shaking.\n// Rolldown/Rollup can eliminate unused const objects but cannot tree-shake enum IIFEs.\n// See: specs/HMR.md — Standard VII: Elimination of TypeScript Enums\n\nexport const Axis = {\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n} as const;\nexport type Axis = (typeof Axis)[keyof typeof Axis];\n\nexport const Fit = {\n\tNONE: \"NONE\",\n\tLOOSE: \"LOOSE\",\n\tTIGHT: \"TIGHT\",\n} as const;\nexport type Fit = (typeof Fit)[keyof typeof Fit];\n\nexport const Stretch = {\n\tNONE: \"NONE\",\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n\tBOTH: \"BOTH\",\n} as const;\nexport type Stretch = (typeof Stretch)[keyof typeof Stretch];\n\nexport const MainAxisAlignment = {\n\tCENTER: \"CENTER\",\n\tEND: \"END\",\n\tSPACEAROUND: \"SPACEAROUND\",\n\tSPACEBETWEEN: \"SPACEBETWEEN\",\n\tSPACEEVENLY: \"SPACEEVENLY\",\n\tSTART: \"START\",\n} as const;\nexport type MainAxisAlignment = (typeof MainAxisAlignment)[keyof typeof MainAxisAlignment];\n\nexport const CrossAxisAlignment = {\n\tBASELINE: \"BASELINE\",\n\tCENTER: \"CENTER\",\n\tEND: \"END\",\n\tSTART: \"START\",\n\tSTRETCH: \"STRETCH\",\n} as const;\nexport type CrossAxisAlignment = (typeof CrossAxisAlignment)[keyof typeof CrossAxisAlignment];\n\nexport const MainAxisSize = {\n\tMIN: \"MIN\",\n\tMAX: \"MAX\",\n} as const;\nexport type MainAxisSize = (typeof MainAxisSize)[keyof typeof MainAxisSize];\n\nexport const Alignment = {\n\tTOP_LEFT: \"TOP_LEFT\",\n\tTOP_CENTER: \"TOP_CENTER\",\n\tTOP_RIGHT: \"TOP_RIGHT\",\n\tCENTER_LEFT: \"CENTER_LEFT\",\n\tCENTER: \"CENTER\",\n\tCENTER_RIGHT: \"CENTER_RIGHT\",\n\tBOTTOM_LEFT: \"BOTTOM_LEFT\",\n\tBOTTOM_CENTER: \"BOTTOM_CENTER\",\n\tBOTTOM_RIGHT: \"BOTTOM_RIGHT\",\n} as const;\nexport type Alignment = (typeof Alignment)[keyof typeof Alignment];\n\n// ============================================\n// UI ENUMS\n// ============================================\n\nexport const DialogSize = {\n\tXS: \"XS\",\n\tSM: \"SM\",\n\tMD: \"MD\",\n\tLG: \"LG\",\n\tXL: \"XL\",\n} as const;\nexport type DialogSize = (typeof DialogSize)[keyof typeof DialogSize];\n\nexport const PageContainerType = {\n\tTABLE: \"TABLE\",\n\tFORM: \"FORM\",\n\tVIEW: \"VIEW\",\n} as const;\nexport type PageContainerType = (typeof PageContainerType)[keyof typeof PageContainerType];\n\nexport const ButtonStyle = {\n\tCONTAINED: \"contained\",\n\tTEXT: \"text\",\n\tOUTLINED: \"outlined\",\n} as const;\nexport type ButtonStyle = (typeof ButtonStyle)[keyof typeof ButtonStyle];\n\nexport const ConfirmationType = {\n\tNONE: \"NONE\",\n\tCONDITIONAL: \"CONDITIONAL\",\n\tMANDATORY: \"MANDATORY\",\n} as const;\nexport type ConfirmationType = (typeof ConfirmationType)[keyof typeof ConfirmationType];\n\nexport const Sort = {\n\tNONE: \"NONE\",\n\tASC: \"ASC\",\n\tDESC: \"DESC\",\n} as const;\nexport type Sort = (typeof Sort)[keyof typeof Sort];\n\nexport const FilterOperationType = {\n\tEQUAL: \"EQUAL\",\n\tNOT_EQUAL: \"NOT_EQUAL\",\n\tIS_EMPTY: \"IS_EMPTY\",\n\tIS_NOT_EMPTY: \"IS_NOT_EMPTY\",\n\tLESS: \"LESS\",\n\tLESS_OR_EQUAL: \"LESS_OR_EQUAL\",\n\tGREATER: \"GREATER\",\n\tGREATER_OR_EQUAL: \"GREATER_OR_EQUAL\",\n\tLIKE: \"LIKE\",\n} as const;\nexport type FilterOperationType = (typeof FilterOperationType)[keyof typeof FilterOperationType];\n\nexport const CheckboxSelection = {\n\tAUTO: \"AUTO\",\n\tENABLED: \"ENABLED\",\n\tDISABLED: \"DISABLED\",\n} as const;\nexport type CheckboxSelection = (typeof CheckboxSelection)[keyof typeof CheckboxSelection];\n\nexport const TableRepresentation = {\n\tTABLE: \"TABLE\",\n\tTAG: \"TAG\",\n\tCARD: \"CARD\",\n} as const;\nexport type TableRepresentation = (typeof TableRepresentation)[keyof typeof TableRepresentation];\n\nexport const MenuLayout = {\n\tVERTICAL: \"VERTICAL\",\n\tHORIZONTAL: \"HORIZONTAL\",\n} as const;\nexport type MenuLayout = (typeof MenuLayout)[keyof typeof MenuLayout];\n\nexport const TabOrientation = {\n\tHORIZONTAL: \"HORIZONTAL\",\n\tVERTICAL: \"VERTICAL\",\n} as const;\nexport type TabOrientation = (typeof TabOrientation)[keyof typeof TabOrientation];\n\nexport const DurationUnit = {\n\tNANOSECOND: \"NANOSECOND\",\n\tMICROSECOND: \"MICROSECOND\",\n\tMILLISECOND: \"MILLISECOND\",\n\tSECOND: \"SECOND\",\n\tMINUTE: \"MINUTE\",\n\tHOUR: \"HOUR\",\n\tDAY: \"DAY\",\n\tWEEK: \"WEEK\",\n\tMONTH: \"MONTH\",\n\tYEAR: \"YEAR\",\n} as const;\nexport type DurationUnit = (typeof DurationUnit)[keyof typeof DurationUnit];\n\nexport const Placement = {\n\tTOP: \"TOP\",\n\tBOTTOM: \"BOTTOM\",\n\tSTART: \"START\",\n\tEND: \"END\",\n\tDEFAULT: \"DEFAULT\",\n} as const;\nexport type Placement = (typeof Placement)[keyof typeof Placement];\n\nexport const TitleFrom = {\n\tLABEL: \"LABEL\",\n\tATTRIBUTE: \"ATTRIBUTE\",\n} as const;\nexport type TitleFrom = (typeof TitleFrom)[keyof typeof TitleFrom];\n\nexport const ClaimType = {\n\tUNDEFINED: \"UNDEFINED\",\n\tEMAIL: \"EMAIL\",\n\tUSERNAME: \"USERNAME\",\n} as const;\nexport type ClaimType = (typeof ClaimType)[keyof typeof ClaimType];\n\n// ============================================\n// DATA ENUMS\n// ============================================\n\nexport const RelationKind = {\n\tASSOCIATION: \"ASSOCIATION\",\n\tCOMPOSITION: \"COMPOSITION\",\n\tAGGREGATION: \"AGGREGATION\",\n\tSTATIC: \"STATIC\",\n} as const;\nexport type RelationKind = (typeof RelationKind)[keyof typeof RelationKind];\n\nexport const MemberType = {\n\tSTORED: \"STORED\",\n\tDERIVED: \"DERIVED\",\n\tMAPPED: \"MAPPED\",\n\tTRANSIENT: \"TRANSIENT\",\n\tACCESS: \"ACCESS\",\n} as const;\nexport type MemberType = (typeof MemberType)[keyof typeof MemberType];\n\nexport const RelationBehaviourType = {\n\tLIST: \"LIST\",\n\tCREATE: \"CREATE\",\n\tSET: \"SET\",\n\tUNSET: \"UNSET\",\n\tADD: \"ADD\",\n\tREMOVE: \"REMOVE\",\n\tRANGE: \"RANGE\",\n\tVALIDATE_CREATE: \"VALIDATE_CREATE\",\n\tTEMPLATE: \"TEMPLATE\",\n\tUPDATE: \"UPDATE\",\n\tVALIDATE_UPDATE: \"VALIDATE_UPDATE\",\n\tDELETE: \"DELETE\",\n\tREFRESH: \"REFRESH\",\n\tEXPORT: \"EXPORT\",\n} as const;\nexport type RelationBehaviourType = (typeof RelationBehaviourType)[keyof typeof RelationBehaviourType];\n\nexport const ClassBehaviourType = {\n\tREFRESH: \"REFRESH\",\n\tUPDATE: \"UPDATE\",\n\tVALIDATE_UPDATE: \"VALIDATE_UPDATE\",\n\tDELETE: \"DELETE\",\n\tTEMPLATE: \"TEMPLATE\",\n} as const;\nexport type ClassBehaviourType = (typeof ClassBehaviourType)[keyof typeof ClassBehaviourType];\n\nexport const OperationTypeEnum = {\n\tMAPPED: \"MAPPED\",\n\tSTATIC: \"STATIC\",\n} as const;\nexport type OperationTypeEnum = (typeof OperationTypeEnum)[keyof typeof OperationTypeEnum];\n\nexport const OperationTargetBehaviourType = {\n\tREFRESH: \"REFRESH\",\n\tUPDATE: \"UPDATE\",\n\tDELETE: \"DELETE\",\n\tVALIDATE_INPUT: \"VALIDATE_INPUT\",\n} as const;\nexport type OperationTargetBehaviourType =\n\t(typeof OperationTargetBehaviourType)[keyof typeof OperationTargetBehaviourType];\n","import type { ComponentType } from \"react\";\nimport type { AttributeType, ClassType, DataType, OperationType, RelationType } from \"./data/elements\";\nimport type { PageContainerType } from \"./enums\";\nimport type { ActionDefinition } from \"./structural/actions\";\nimport type { Action, Application, NavigationItem, PageDefinition } from \"./structural/application\";\nimport type { PageContainer, VisualElement } from \"./visual/layout\";\n\n// ============================================\n// CORE SERVICES\n// ============================================\nexport const MODEL_LOADER_SERVICE = Symbol.for(\"@judo/MODEL_LOADER_SERVICE\");\nexport const MODEL_REGISTRY_SERVICE = Symbol.for(\"@judo/MODEL_REGISTRY_SERVICE\");\nexport const NAVIGATION_BADGE_SERVICE = Symbol.for(\"@judo/NAVIGATION_BADGE_SERVICE\");\nexport const THEME_SERVICE = Symbol.for(\"@judo/THEME_SERVICE\");\n\n// ============================================\n// HOOK FACTORY SERVICES (React hooks compatible)\n// ============================================\n\n/**\n * @internal Framework service token for action handler hook factories.\n * Built-in handlers are registered by actionType.\n * Developers override actions via the type-safe `createCustomizations()` factory.\n */\nexport const ACTION_HANDLER_FACTORY = Symbol.for(\"@judo/ACTION_HANDLER_FACTORY\");\n\n/**\n * @internal Framework service token for component overrides.\n * Developers register components via the type-safe `createCustomizations()` factory.\n * Framework INJECTS the VisualElement as `element` prop.\n */\nexport const COMPONENT_OVERRIDE = Symbol.for(\"@judo/COMPONENT_OVERRIDE\");\n\n/**\n * @internal Framework service token for the component override manager.\n * Used internally by `useComponentOverride` hook.\n */\nexport const COMPONENT_OVERRIDE_SERVICE = Symbol.for(\"@judo/COMPONENT_OVERRIDE_SERVICE\");\n\n// ============================================\n// ENTERPRISE SERVICES\n// ============================================\nexport const NOTIFICATION_SERVICE = Symbol.for(\"@judo/NOTIFICATION_SERVICE\");\nexport const DIALOG_SERVICE = Symbol.for(\"@judo/DIALOG_SERVICE\");\nexport const UNSAVED_CHANGES_GUARD = Symbol.for(\"@judo/UNSAVED_CHANGES_GUARD\");\nexport const SESSION_TIMEOUT_GUARD = Symbol.for(\"@judo/SESSION_TIMEOUT_GUARD\");\nexport const LOADING_SERVICE = Symbol.for(\"@judo/LOADING_SERVICE\");\nexport const I18N_SERVICE = Symbol.for(\"@judo/I18N_SERVICE\");\n\n// ============================================\n// ACTION HANDLER FACTORY TYPES\n// ============================================\n\n/**\n * Runtime context passed to action handlers when action triggers.\n */\nexport interface ActionHandlerContext {\n\t/** The transfer being acted upon */\n\ttransfer?: unknown;\n\t/** Selected rows for bulk/table operations */\n\tselectedRows?: unknown[];\n\t/** Dialog closer if action is in a dialog */\n\tcloseDialog?: () => void;\n\t/** Navigation context for page transitions */\n\tnavigation?: unknown;\n\t/** Data store for transfer operations */\n\tdata?: unknown;\n\t/** Model registry for lookups */\n\tregistry?: ModelRegistryService;\n}\n\n/**\n * Action handler hook factory type.\n * Framework INJECTS the Action model element when calling your handler.\n *\n * @param action - The Action model element (injected by framework)\n * @returns Handler function to execute when action triggers\n *\n * @example\n * ```typescript\n * function useMyHandler(action: Action) {\n * const { showSuccess } = useNotification();\n * const operation = action.actionDefinition.operation;\n *\n * return async (ctx: ActionHandlerContext) => {\n * console.log(`Handling ${action.name}:`, ctx.transfer);\n * showSuccess('Done!');\n * };\n * }\n * ```\n */\nexport type ActionHandlerHook = (action: Action) => ActionHandlerFn;\n\n/**\n * Handler function called when the action is triggered.\n */\nexport type ActionHandlerFn = (context: ActionHandlerContext) => Promise<unknown>;\n\n/**\n * @internal Framework-internal service properties for action handler registration.\n *\n * **Do not use directly.** Developers should use the generated `createCustomizations()`\n * factory with human-readable page and action names instead.\n *\n * @see {@link CustomizationsConfig} for the runtime format (also internal)\n */\nexport interface ActionHandlerFactoryProperties {\n\t/** @internal The action's xmi:id — resolved automatically by the factory */\n\tsourceId: string;\n}\n\n/**\n * Service properties for built-in action handler registration (internal).\n */\nexport interface BuiltInActionHandlerFactoryProperties {\n\t/** The action type this built-in handles (e.g., 'ui:DeleteActionDefinition') */\n\tactionType: string;\n\t/** Marker for built-in handlers */\n\tbuiltin: true;\n}\n\n// ============================================\n// COMPONENT OVERRIDE TYPES\n// ============================================\n\n/**\n * Type for a component that can be used as an override.\n * Framework INJECTS the VisualElement as the `element` prop.\n *\n * @example\n * ```typescript\n * const MyTableComponent: OverrideComponent<Table> = ({ element }) => {\n * return <DefaultTable element={element} />;\n * };\n * ```\n */\nexport type OverrideComponent<T extends VisualElement = VisualElement> = ComponentType<\n\t{ element: T } & Record<string, unknown>\n>;\n\n/**\n * @internal Framework-internal component override registration object.\n *\n * **Do not use directly.** Developers should register component overrides via\n * the generated `createCustomizations()` factory using human-readable names:\n *\n * @example\n * ```typescript\n * // Use the generated type-safe factory:\n * createCustomizations({\n * components: {\n * OrderSummaryWidget: MyCustomComponent,\n * },\n * componentInterceptors: {\n * TextInput: (element, page) => isEmail(element) ? EmailInput : null,\n * },\n * });\n * ```\n */\nexport interface ComponentOverride {\n\t/** @internal Override a specific element — resolved automatically by the factory */\n\tsourceId?: string;\n\t/** Override all elements of this type (e.g., 'Table', 'TextInput') */\n\telementType?: string;\n\t/** Override all elements within a container type */\n\tcontainerType?: PageContainerType;\n\t/** The component to render instead of the default */\n\tcomponent: OverrideComponent;\n}\n\n/**\n * @internal Framework-internal service properties for component override registration.\n *\n * **Do not use directly.** Use the generated `createCustomizations()` factory\n * with `components` (by name) or `componentInterceptors` (by @type) instead.\n */\nexport interface ComponentOverrideProperties {\n\t/** @internal Element identity — resolved automatically by the factory */\n\tsourceId?: string;\n\t/** Override all elements of this type (e.g., 'Table', 'TextInput') */\n\telementType?: string;\n}\n\n/**\n * @internal Framework-internal service for managing component overrides at runtime.\n * Used internally by `useComponentOverride` hook.\n */\nexport interface ComponentOverrideService {\n\t/** Register a component override, returns unregister function */\n\tregister(override: ComponentOverride): () => void;\n\t/** Get override for element with priority: sourceId > elementType > containerType */\n\tgetOverride(element: VisualElement, containerType?: PageContainerType): OverrideComponent | null;\n\t/** Subscribe to override changes */\n\tsubscribe(callback: () => void): () => void;\n\t/** Get current snapshot of all registered overrides */\n\tgetSnapshot(): ComponentOverride[];\n}\n\n// ============================================\n// SERVICE INTERFACES\n// ============================================\n\nexport interface ModelLoaderService {\n\tload(source: string): Promise<Application[]>;\n}\n\nexport interface RegistrySnapshot {\n\tapplications: Application[];\n\tactiveApplication: Application | null;\n\tactiveActorName: string | null;\n}\n\nexport interface ModelRegistryService {\n\tregisterModel(apps: Application[]): void;\n\tgetApplications(): Application[];\n\tgetApplication(actorName: string): Application;\n\tgetActiveApplication(): Application;\n\tsetActiveApplication(actorName: string): void;\n\tresolveById<T = unknown>(id: string): T | undefined;\n\tresolveClassType(ref: string): ClassType | undefined;\n\tresolveRelationType(ref: string): RelationType | undefined;\n\tresolveAttributeType(ref: string): AttributeType | undefined;\n\tresolvePageDefinition(ref: string): PageDefinition | undefined;\n\tresolvePageContainer(ref: string): PageContainer | undefined;\n\tresolveVisualElement(id: string): VisualElement | undefined;\n\tresolveActionDefinition(ref: string): ActionDefinition | undefined;\n\tresolveDataType(ref: string): DataType | undefined;\n\tresolveOperationType(ref: string): OperationType | undefined;\n\tresolveNavigationItem(id: string): NavigationItem | undefined;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): RegistrySnapshot;\n}\n\nexport interface BadgeInfo {\n\tcount?: number;\n\tcolor?: \"primary\" | \"secondary\" | \"error\" | \"warning\" | \"info\" | \"success\";\n\tmax?: number;\n\tshowZero?: boolean;\n}\n\nexport interface NavigationBadgeService {\n\tgetBadge(itemId: string): BadgeInfo | null;\n\tsetBadge(itemId: string, badge: BadgeInfo | null): void;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): Map<string, BadgeInfo>;\n}\n\nexport interface ThemeConfig {\n\tmode: \"light\" | \"dark\";\n\t/** @deprecated Use muiThemeOptions.palette.primary instead */\n\tprimaryColor?: string;\n\t/** @deprecated Use muiThemeOptions.palette.secondary instead */\n\tsecondaryColor?: string;\n\t/**\n\t * MUI theme options to merge with defaults.\n\t * Provides full customization of Material-UI theme.\n\t */\n\tmuiThemeOptions?: Record<string, unknown>;\n\t/**\n\t * Whether the theme is using system preference.\n\t * When true, mode will automatically track OS/browser preference.\n\t */\n\tisSystemMode?: boolean;\n\t/**\n\t * Density level controlling semantic spacing and sizing.\n\t * - `compact` — tight spacing, smaller controls\n\t * - `comfortable` — default MUI sizing (no overrides)\n\t * - `standard` — generous spacing, larger touch targets\n\t */\n\tdensity?: \"compact\" | \"comfortable\" | \"standard\";\n\t/**\n\t * Named theme preset. When set, provides default primary/secondary colors\n\t * and background tints. Explicit `primaryColor`/`secondaryColor` override\n\t * the preset values.\n\t *\n\t * Built-in presets: 'classic', 'corporate', 'ocean', 'slate', 'indigo', 'forest', 'royal'\n\t */\n\tpreset?: \"classic\" | \"corporate\" | \"ocean\" | \"slate\" | \"indigo\" | \"forest\" | \"royal\" | (string & {});\n}\n\nexport interface ThemeService {\n\tgetTheme(): ThemeConfig;\n\tsetTheme(config: Partial<ThemeConfig>): void;\n\tsubscribe(callback: () => void): () => void;\n\tgetSnapshot(): ThemeConfig;\n}\n"],"mappings":";AAOA,IAAa,IAAO;CACnB,YAAY;CACZ,UAAU;AACX,GAGa,IAAM;CAClB,MAAM;CACN,OAAO;CACP,OAAO;AACR,GAGa,IAAU;CACtB,MAAM;CACN,YAAY;CACZ,UAAU;CACV,MAAM;AACP,GAGa,IAAoB;CAChC,QAAQ;CACR,KAAK;CACL,aAAa;CACb,cAAc;CACd,aAAa;CACb,OAAO;AACR,GAGa,IAAqB;CACjC,UAAU;CACV,QAAQ;CACR,KAAK;CACL,OAAO;CACP,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;CACR,KAAK;CACL,OAAO;CACP,KAAK;CACL,QAAQ;CACR,OAAO;CACP,iBAAiB;CACjB,UAAU;CACV,QAAQ;CACR,iBAAiB;CACjB,QAAQ;CACR,SAAS;CACT,QAAQ;AACT,GAGa,IAAqB;CACjC,SAAS;CACT,QAAQ;CACR,iBAAiB;CACjB,QAAQ;CACR,UAAU;AACX,GAGa,IAAoB;CAChC,QAAQ;CACR,QAAQ;AACT,GAGa,IAA+B;CAC3C,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,gBAAgB;AACjB,GCvOa,IAAuB,OAAO,IAAI,4BAA4B,GAC9D,IAAyB,OAAO,IAAI,8BAA8B,GAClE,IAA2B,OAAO,IAAI,gCAAgC,GACtE,IAAgB,OAAO,IAAI,qBAAqB,GAWhD,IAAyB,OAAO,IAAI,8BAA8B,GAOlE,IAAqB,OAAO,IAAI,0BAA0B,GAM1D,IAA6B,OAAO,IAAI,kCAAkC,GAK1E,IAAuB,OAAO,IAAI,4BAA4B,GAC9D,IAAiB,OAAO,IAAI,sBAAsB,GAClD,IAAwB,OAAO,IAAI,6BAA6B,GAChE,IAAwB,OAAO,IAAI,6BAA6B,GAChE,IAAkB,OAAO,IAAI,uBAAuB,GACpD,IAAe,OAAO,IAAI,oBAAoB"}
@@ -1,9 +1,9 @@
1
- import { ComponentType } from 'react';
2
- import { AttributeType, ClassType, DataType, OperationType, RelationType } from './data/elements';
3
- import { PageContainerType } from './enums';
4
- import { ActionDefinition } from './structural/actions';
5
- import { Action, Application, NavigationItem, PageDefinition } from './structural/application';
6
- import { PageContainer, VisualElement } from './visual/layout';
1
+ import type { ComponentType } from "react";
2
+ import type { AttributeType, ClassType, DataType, OperationType, RelationType } from "./data/elements";
3
+ import type { PageContainerType } from "./enums";
4
+ import type { ActionDefinition } from "./structural/actions";
5
+ import type { Action, Application, NavigationItem, PageDefinition } from "./structural/application";
6
+ import type { PageContainer, VisualElement } from "./visual/layout";
7
7
  export declare const MODEL_LOADER_SERVICE: unique symbol;
8
8
  export declare const MODEL_REGISTRY_SERVICE: unique symbol;
9
9
  export declare const NAVIGATION_BADGE_SERVICE: unique symbol;
@@ -1,6 +1,6 @@
1
- import { AttributeType, ClassType, DataElement, OperationType } from '../data/elements';
2
- import { ConfirmationType } from '../enums';
3
- import { NamedElement } from '../visual/base';
1
+ import type { AttributeType, ClassType, DataElement, OperationType } from "../data/elements";
2
+ import type { ConfirmationType } from "../enums";
3
+ import type { NamedElement } from "../visual/base";
4
4
  /**
5
5
  * Base action definition - abstract.
6
6
  * Maps to: ui:ActionDefinition
@@ -1,8 +1,8 @@
1
- import { Annotation, AttributeType, ClassType, DataElement, DataType, MimeType } from '../data/elements';
2
- import { ClaimType, DialogSize, MenuLayout } from '../enums';
3
- import { LabeledElement, NamedElement } from '../visual/base';
4
- import { PageContainer } from '../visual/layout';
5
- import { ActionDefinition } from './actions';
1
+ import type { Annotation, AttributeType, ClassType, DataElement, DataType, MimeType } from "../data/elements";
2
+ import type { ClaimType, DialogSize, MenuLayout } from "../enums";
3
+ import type { LabeledElement, NamedElement } from "../visual/base";
4
+ import type { PageContainer } from "../visual/layout";
5
+ import type { ActionDefinition } from "./actions";
6
6
  /**
7
7
  * Theme configuration.
8
8
  * Maps to: ui:Theme
@@ -1,3 +1,3 @@
1
- export * from './actions';
2
- export * from './application';
1
+ export * from "./actions";
2
+ export * from "./application";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Annotation } from '../data/elements';
2
- import { Icon } from './layout';
1
+ import type { Annotation } from "../data/elements";
2
+ import type { Icon } from "./layout";
3
3
  /**
4
4
  * Base interface for all model elements with container navigation.
5
5
  * The eContainer property provides EMF-style parent navigation.
@@ -1,7 +1,7 @@
1
- import { Alignment } from '../enums.js';
2
- import { DataElement } from '../data/elements';
3
- import { ActionDefinition, Confirmation } from '../structural/actions';
4
- import { VisualElement } from './layout';
1
+ import type { Alignment } from "../enums.js";
2
+ import type { DataElement } from "../data/elements";
3
+ import type { ActionDefinition, Confirmation } from "../structural/actions";
4
+ import type { VisualElement } from "./layout";
5
5
  /**
6
6
  * Button group container.
7
7
  * Maps to: ui:ButtonGroup
@@ -1,5 +1,5 @@
1
- import { AttributeType } from '../data/elements';
2
- import { VisualElement } from './layout';
1
+ import type { AttributeType } from "../data/elements";
2
+ import type { VisualElement } from "./layout";
3
3
  /**
4
4
  * Static text display.
5
5
  * Maps to: ui:Text
@@ -1,9 +1,9 @@
1
- export * from './base';
2
- export * from './layout';
3
- export * from './display';
4
- export * from './tabs';
5
- export * from './table';
6
- export * from './link';
7
- export * from './inputs';
8
- export * from './buttons';
1
+ export * from "./base";
2
+ export * from "./layout";
3
+ export * from "./display";
4
+ export * from "./tabs";
5
+ export * from "./table";
6
+ export * from "./link";
7
+ export * from "./inputs";
8
+ export * from "./buttons";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
- import { AttributeType } from '../data/elements';
2
- import { EnumerationMember } from '../data/types';
3
- import { DurationUnit, Placement } from '../enums';
4
- import { NamedElement } from './base';
5
- import { VisualElement } from './layout';
1
+ import type { AttributeType } from "../data/elements";
2
+ import type { EnumerationMember } from "../data/types";
3
+ import type { DurationUnit, Placement } from "../enums";
4
+ import type { NamedElement } from "./base";
5
+ import type { VisualElement } from "./layout";
6
6
  /**
7
7
  * Input value constraints (min/max values).
8
8
  * Maps to: ui:InputValueConstraint
@@ -1,8 +1,8 @@
1
- import { AttributeType, DataElement } from '../data/elements';
2
- import { Alignment, Axis, CrossAxisAlignment, Fit, MainAxisAlignment, MainAxisSize, PageContainerType, Stretch, TitleFrom } from '../enums';
3
- import { ActionDefinition } from '../structural/actions';
4
- import { LabeledElement, NamedElement } from './base';
5
- import { ButtonGroup } from './buttons';
1
+ import type { AttributeType, DataElement } from "../data/elements";
2
+ import type { Alignment, Axis, CrossAxisAlignment, Fit, MainAxisAlignment, MainAxisSize, PageContainerType, Stretch, TitleFrom } from "../enums";
3
+ import type { ActionDefinition } from "../structural/actions";
4
+ import type { LabeledElement, NamedElement } from "./base";
5
+ import type { ButtonGroup } from "./buttons";
6
6
  /**
7
7
  * Size specification.
8
8
  * Maps to: ui:Size
@@ -1,8 +1,8 @@
1
- import { AttributeType, DataElement, RelationType } from '../data/elements';
2
- import { ActionDefinition } from '../structural/actions';
3
- import { ButtonGroup } from './buttons';
4
- import { VisualElement } from './layout';
5
- import { Column } from './table';
1
+ import type { AttributeType, DataElement, RelationType } from "../data/elements";
2
+ import type { ActionDefinition } from "../structural/actions";
3
+ import type { ButtonGroup } from "./buttons";
4
+ import type { VisualElement } from "./layout";
5
+ import type { Column } from "./table";
6
6
  /**
7
7
  * Link/Autocomplete field for relations.
8
8
  * Maps to: ui:Link
@@ -1,8 +1,8 @@
1
- import { AttributeType, DataElement, RelationType } from '../data/elements';
2
- import { CheckboxSelection, FilterOperationType, Sort, TableRepresentation } from '../enums';
3
- import { ActionDefinition } from '../structural/actions';
4
- import { ButtonGroup } from './buttons';
5
- import { VisualElement } from './layout';
1
+ import type { AttributeType, DataElement, RelationType } from "../data/elements";
2
+ import type { CheckboxSelection, FilterOperationType, Sort, TableRepresentation } from "../enums";
3
+ import type { ActionDefinition } from "../structural/actions";
4
+ import type { ButtonGroup } from "./buttons";
5
+ import type { VisualElement } from "./layout";
6
6
  /**
7
7
  * Table column definition.
8
8
  * Maps to: ui:Column
@@ -1,6 +1,6 @@
1
- import { TabOrientation } from '../enums';
2
- import { NamedElement } from './base';
3
- import { VisualElement } from './layout';
1
+ import type { TabOrientation } from "../enums";
2
+ import type { NamedElement } from "./base";
3
+ import type { VisualElement } from "./layout";
4
4
  /**
5
5
  * Tab container for tabbed layouts.
6
6
  * Maps to: ui:TabController
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@judo/model-api",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "TypeScript interfaces mirroring the ECore meta-model for JUDO UI Runtime",
5
5
  "license": "EPL-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/react": "^19.2.14",
31
- "typescript": "^6.0.3"
31
+ "typescript": "^7.0.2"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.0.0"
@@ -39,8 +39,8 @@
39
39
  }
40
40
  },
41
41
  "scripts": {
42
- "build": "vite build",
42
+ "build": "vite build && tsc --composite false --emitDeclarationOnly",
43
43
  "clean": "rm -rf dist",
44
- "type-check": "tsgo --noEmit"
44
+ "type-check": "tsc --noEmit"
45
45
  }
46
46
  }