@judo/model-api 0.1.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/LICENSE +277 -0
- package/README.md +210 -0
- package/dist/data/elements.d.ts +194 -0
- package/dist/data/elements.d.ts.map +1 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/types.d.ts +84 -0
- package/dist/data/types.d.ts.map +1 -0
- package/dist/enums.d.ts +203 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/extensibility.d.ts +663 -0
- package/dist/extensibility.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +150 -0
- package/dist/index.js.map +1 -0
- package/dist/services.d.ts +244 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/structural/actions.d.ts +173 -0
- package/dist/structural/actions.d.ts.map +1 -0
- package/dist/structural/application.d.ts +137 -0
- package/dist/structural/application.d.ts.map +1 -0
- package/dist/structural/index.d.ts +3 -0
- package/dist/structural/index.d.ts.map +1 -0
- package/dist/visual/base.d.ts +32 -0
- package/dist/visual/base.d.ts.map +1 -0
- package/dist/visual/buttons.d.ts +32 -0
- package/dist/visual/buttons.d.ts.map +1 -0
- package/dist/visual/display.d.ts +36 -0
- package/dist/visual/display.d.ts.map +1 -0
- package/dist/visual/index.d.ts +9 -0
- package/dist/visual/index.d.ts.map +1 -0
- package/dist/visual/inputs.d.ts +196 -0
- package/dist/visual/inputs.d.ts.map +1 -0
- package/dist/visual/layout.d.ts +185 -0
- package/dist/visual/layout.d.ts.map +1 -0
- package/dist/visual/link.d.ts +32 -0
- package/dist/visual/link.d.ts.map +1 -0
- package/dist/visual/table.d.ts +103 -0
- package/dist/visual/table.d.ts.map +1 -0
- package/dist/visual/tabs.d.ts +26 -0
- package/dist/visual/tabs.d.ts.map +1 -0
- package/package.json +46 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
const Axis = {
|
|
2
|
+
HORIZONTAL: "HORIZONTAL",
|
|
3
|
+
VERTICAL: "VERTICAL"
|
|
4
|
+
}, Fit = {
|
|
5
|
+
NONE: "NONE",
|
|
6
|
+
LOOSE: "LOOSE",
|
|
7
|
+
TIGHT: "TIGHT"
|
|
8
|
+
}, Stretch = {
|
|
9
|
+
NONE: "NONE",
|
|
10
|
+
HORIZONTAL: "HORIZONTAL",
|
|
11
|
+
VERTICAL: "VERTICAL",
|
|
12
|
+
BOTH: "BOTH"
|
|
13
|
+
}, MainAxisAlignment = {
|
|
14
|
+
CENTER: "CENTER",
|
|
15
|
+
END: "END",
|
|
16
|
+
SPACEAROUND: "SPACEAROUND",
|
|
17
|
+
SPACEBETWEEN: "SPACEBETWEEN",
|
|
18
|
+
SPACEEVENLY: "SPACEEVENLY",
|
|
19
|
+
START: "START"
|
|
20
|
+
}, CrossAxisAlignment = {
|
|
21
|
+
BASELINE: "BASELINE",
|
|
22
|
+
CENTER: "CENTER",
|
|
23
|
+
END: "END",
|
|
24
|
+
START: "START",
|
|
25
|
+
STRETCH: "STRETCH"
|
|
26
|
+
}, MainAxisSize = {
|
|
27
|
+
MIN: "MIN",
|
|
28
|
+
MAX: "MAX"
|
|
29
|
+
}, Alignment = {
|
|
30
|
+
TOP_LEFT: "TOP_LEFT",
|
|
31
|
+
TOP_CENTER: "TOP_CENTER",
|
|
32
|
+
TOP_RIGHT: "TOP_RIGHT",
|
|
33
|
+
CENTER_LEFT: "CENTER_LEFT",
|
|
34
|
+
CENTER: "CENTER",
|
|
35
|
+
CENTER_RIGHT: "CENTER_RIGHT",
|
|
36
|
+
BOTTOM_LEFT: "BOTTOM_LEFT",
|
|
37
|
+
BOTTOM_CENTER: "BOTTOM_CENTER",
|
|
38
|
+
BOTTOM_RIGHT: "BOTTOM_RIGHT"
|
|
39
|
+
}, DialogSize = {
|
|
40
|
+
XS: "XS",
|
|
41
|
+
SM: "SM",
|
|
42
|
+
MD: "MD",
|
|
43
|
+
LG: "LG",
|
|
44
|
+
XL: "XL"
|
|
45
|
+
}, PageContainerType = {
|
|
46
|
+
TABLE: "TABLE",
|
|
47
|
+
FORM: "FORM",
|
|
48
|
+
VIEW: "VIEW"
|
|
49
|
+
}, ButtonStyle = {
|
|
50
|
+
CONTAINED: "contained",
|
|
51
|
+
TEXT: "text",
|
|
52
|
+
OUTLINED: "outlined"
|
|
53
|
+
}, ConfirmationType = {
|
|
54
|
+
NONE: "NONE",
|
|
55
|
+
CONDITIONAL: "CONDITIONAL",
|
|
56
|
+
MANDATORY: "MANDATORY"
|
|
57
|
+
}, Sort = {
|
|
58
|
+
NONE: "NONE",
|
|
59
|
+
ASC: "ASC",
|
|
60
|
+
DESC: "DESC"
|
|
61
|
+
}, FilterOperationType = {
|
|
62
|
+
EQUAL: "EQUAL",
|
|
63
|
+
NOT_EQUAL: "NOT_EQUAL",
|
|
64
|
+
IS_EMPTY: "IS_EMPTY",
|
|
65
|
+
IS_NOT_EMPTY: "IS_NOT_EMPTY",
|
|
66
|
+
LESS: "LESS",
|
|
67
|
+
LESS_OR_EQUAL: "LESS_OR_EQUAL",
|
|
68
|
+
GREATER: "GREATER",
|
|
69
|
+
GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
|
|
70
|
+
LIKE: "LIKE"
|
|
71
|
+
}, CheckboxSelection = {
|
|
72
|
+
AUTO: "AUTO",
|
|
73
|
+
ENABLED: "ENABLED",
|
|
74
|
+
DISABLED: "DISABLED"
|
|
75
|
+
}, TableRepresentation = {
|
|
76
|
+
TABLE: "TABLE",
|
|
77
|
+
TAG: "TAG",
|
|
78
|
+
CARD: "CARD"
|
|
79
|
+
}, MenuLayout = {
|
|
80
|
+
VERTICAL: "VERTICAL",
|
|
81
|
+
HORIZONTAL: "HORIZONTAL"
|
|
82
|
+
}, TabOrientation = {
|
|
83
|
+
HORIZONTAL: "HORIZONTAL",
|
|
84
|
+
VERTICAL: "VERTICAL"
|
|
85
|
+
}, DurationUnit = {
|
|
86
|
+
NANOSECOND: "NANOSECOND",
|
|
87
|
+
MICROSECOND: "MICROSECOND",
|
|
88
|
+
MILLISECOND: "MILLISECOND",
|
|
89
|
+
SECOND: "SECOND",
|
|
90
|
+
MINUTE: "MINUTE",
|
|
91
|
+
HOUR: "HOUR",
|
|
92
|
+
DAY: "DAY",
|
|
93
|
+
WEEK: "WEEK",
|
|
94
|
+
MONTH: "MONTH",
|
|
95
|
+
YEAR: "YEAR"
|
|
96
|
+
}, Placement = {
|
|
97
|
+
TOP: "TOP",
|
|
98
|
+
BOTTOM: "BOTTOM",
|
|
99
|
+
START: "START",
|
|
100
|
+
END: "END",
|
|
101
|
+
DEFAULT: "DEFAULT"
|
|
102
|
+
}, TitleFrom = {
|
|
103
|
+
LABEL: "LABEL",
|
|
104
|
+
ATTRIBUTE: "ATTRIBUTE"
|
|
105
|
+
}, ClaimType = {
|
|
106
|
+
UNDEFINED: "UNDEFINED",
|
|
107
|
+
EMAIL: "EMAIL",
|
|
108
|
+
USERNAME: "USERNAME"
|
|
109
|
+
}, RelationKind = {
|
|
110
|
+
ASSOCIATION: "ASSOCIATION",
|
|
111
|
+
COMPOSITION: "COMPOSITION",
|
|
112
|
+
AGGREGATION: "AGGREGATION",
|
|
113
|
+
STATIC: "STATIC"
|
|
114
|
+
}, MemberType = {
|
|
115
|
+
STORED: "STORED",
|
|
116
|
+
DERIVED: "DERIVED",
|
|
117
|
+
MAPPED: "MAPPED",
|
|
118
|
+
TRANSIENT: "TRANSIENT",
|
|
119
|
+
ACCESS: "ACCESS"
|
|
120
|
+
}, RelationBehaviourType = {
|
|
121
|
+
LIST: "LIST",
|
|
122
|
+
CREATE: "CREATE",
|
|
123
|
+
SET: "SET",
|
|
124
|
+
UNSET: "UNSET",
|
|
125
|
+
ADD: "ADD",
|
|
126
|
+
REMOVE: "REMOVE",
|
|
127
|
+
RANGE: "RANGE",
|
|
128
|
+
VALIDATE_CREATE: "VALIDATE_CREATE",
|
|
129
|
+
TEMPLATE: "TEMPLATE",
|
|
130
|
+
UPDATE: "UPDATE",
|
|
131
|
+
VALIDATE_UPDATE: "VALIDATE_UPDATE",
|
|
132
|
+
DELETE: "DELETE",
|
|
133
|
+
REFRESH: "REFRESH",
|
|
134
|
+
EXPORT: "EXPORT"
|
|
135
|
+
}, ClassBehaviourType = {
|
|
136
|
+
REFRESH: "REFRESH",
|
|
137
|
+
UPDATE: "UPDATE",
|
|
138
|
+
VALIDATE_UPDATE: "VALIDATE_UPDATE",
|
|
139
|
+
DELETE: "DELETE",
|
|
140
|
+
TEMPLATE: "TEMPLATE"
|
|
141
|
+
}, OperationTypeEnum = {
|
|
142
|
+
MAPPED: "MAPPED",
|
|
143
|
+
STATIC: "STATIC"
|
|
144
|
+
}, OperationTargetBehaviourType = {
|
|
145
|
+
REFRESH: "REFRESH",
|
|
146
|
+
UPDATE: "UPDATE",
|
|
147
|
+
DELETE: "DELETE",
|
|
148
|
+
VALIDATE_INPUT: "VALIDATE_INPUT"
|
|
149
|
+
}, MODEL_LOADER_SERVICE = Symbol.for("@judo/MODEL_LOADER_SERVICE"), MODEL_REGISTRY_SERVICE = Symbol.for("@judo/MODEL_REGISTRY_SERVICE"), NAVIGATION_BADGE_SERVICE = Symbol.for("@judo/NAVIGATION_BADGE_SERVICE"), THEME_SERVICE = Symbol.for("@judo/THEME_SERVICE"), ACTION_HANDLER_FACTORY = Symbol.for("@judo/ACTION_HANDLER_FACTORY"), COMPONENT_OVERRIDE = Symbol.for("@judo/COMPONENT_OVERRIDE"), COMPONENT_OVERRIDE_SERVICE = Symbol.for("@judo/COMPONENT_OVERRIDE_SERVICE"), NOTIFICATION_SERVICE = Symbol.for("@judo/NOTIFICATION_SERVICE"), DIALOG_SERVICE = Symbol.for("@judo/DIALOG_SERVICE"), UNSAVED_CHANGES_GUARD = Symbol.for("@judo/UNSAVED_CHANGES_GUARD"), SESSION_TIMEOUT_GUARD = Symbol.for("@judo/SESSION_TIMEOUT_GUARD"), LOADING_SERVICE = Symbol.for("@judo/LOADING_SERVICE"), I18N_SERVICE = Symbol.for("@judo/I18N_SERVICE");
|
|
150
|
+
export { ACTION_HANDLER_FACTORY, Alignment, Axis, ButtonStyle, COMPONENT_OVERRIDE, COMPONENT_OVERRIDE_SERVICE, CheckboxSelection, ClaimType, ClassBehaviourType, ConfirmationType, CrossAxisAlignment, DIALOG_SERVICE, DialogSize, DurationUnit, FilterOperationType, Fit, I18N_SERVICE, LOADING_SERVICE, MODEL_LOADER_SERVICE, MODEL_REGISTRY_SERVICE, MainAxisAlignment, MainAxisSize, MemberType, MenuLayout, NAVIGATION_BADGE_SERVICE, NOTIFICATION_SERVICE, OperationTargetBehaviourType, OperationTypeEnum, PageContainerType, Placement, RelationBehaviourType, RelationKind, SESSION_TIMEOUT_GUARD, Sort, Stretch, THEME_SERVICE, TabOrientation, TableRepresentation, TitleFrom, UNSAVED_CHANGES_GUARD };
|
|
@@ -0,0 +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: 'corporate', 'ocean', 'slate', 'indigo', 'forest', 'royal'\n\t */\n\tpreset?: \"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,MAAa,OAAO;CACnB,YAAY;CACZ,UAAU;CACV,EAGY,MAAM;CAClB,MAAM;CACN,OAAO;CACP,OAAO;CACP,EAGY,UAAU;CACtB,MAAM;CACN,YAAY;CACZ,UAAU;CACV,MAAM;CACN,EAGY,oBAAoB;CAChC,QAAQ;CACR,KAAK;CACL,aAAa;CACb,cAAc;CACd,aAAa;CACb,OAAO;CACP,EAGY,qBAAqB;CACjC,UAAU;CACV,QAAQ;CACR,KAAK;CACL,OAAO;CACP,SAAS;CACT,EAGY,eAAe;CAC3B,KAAK;CACL,KAAK;CACL,EAGY,YAAY;CACxB,UAAU;CACV,YAAY;CACZ,WAAW;CACX,aAAa;CACb,QAAQ;CACR,cAAc;CACd,aAAa;CACb,eAAe;CACf,cAAc;CACd,EAOY,aAAa;CACzB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,EAGY,oBAAoB;CAChC,OAAO;CACP,MAAM;CACN,MAAM;CACN,EAGY,cAAc;CAC1B,WAAW;CACX,MAAM;CACN,UAAU;CACV,EAGY,mBAAmB;CAC/B,MAAM;CACN,aAAa;CACb,WAAW;CACX,EAGY,OAAO;CACnB,MAAM;CACN,KAAK;CACL,MAAM;CACN,EAGY,sBAAsB;CAClC,OAAO;CACP,WAAW;CACX,UAAU;CACV,cAAc;CACd,MAAM;CACN,eAAe;CACf,SAAS;CACT,kBAAkB;CAClB,MAAM;CACN,EAGY,oBAAoB;CAChC,MAAM;CACN,SAAS;CACT,UAAU;CACV,EAGY,sBAAsB;CAClC,OAAO;CACP,KAAK;CACL,MAAM;CACN,EAGY,aAAa;CACzB,UAAU;CACV,YAAY;CACZ,EAGY,iBAAiB;CAC7B,YAAY;CACZ,UAAU;CACV,EAGY,eAAe;CAC3B,YAAY;CAC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,IAAI,qBAAqB"}
|
|
@@ -0,0 +1,244 @@
|
|
|
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';
|
|
7
|
+
export declare const MODEL_LOADER_SERVICE: unique symbol;
|
|
8
|
+
export declare const MODEL_REGISTRY_SERVICE: unique symbol;
|
|
9
|
+
export declare const NAVIGATION_BADGE_SERVICE: unique symbol;
|
|
10
|
+
export declare const THEME_SERVICE: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @internal Framework service token for action handler hook factories.
|
|
13
|
+
* Built-in handlers are registered by actionType.
|
|
14
|
+
* Developers override actions via the type-safe `createCustomizations()` factory.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ACTION_HANDLER_FACTORY: unique symbol;
|
|
17
|
+
/**
|
|
18
|
+
* @internal Framework service token for component overrides.
|
|
19
|
+
* Developers register components via the type-safe `createCustomizations()` factory.
|
|
20
|
+
* Framework INJECTS the VisualElement as `element` prop.
|
|
21
|
+
*/
|
|
22
|
+
export declare const COMPONENT_OVERRIDE: unique symbol;
|
|
23
|
+
/**
|
|
24
|
+
* @internal Framework service token for the component override manager.
|
|
25
|
+
* Used internally by `useComponentOverride` hook.
|
|
26
|
+
*/
|
|
27
|
+
export declare const COMPONENT_OVERRIDE_SERVICE: unique symbol;
|
|
28
|
+
export declare const NOTIFICATION_SERVICE: unique symbol;
|
|
29
|
+
export declare const DIALOG_SERVICE: unique symbol;
|
|
30
|
+
export declare const UNSAVED_CHANGES_GUARD: unique symbol;
|
|
31
|
+
export declare const SESSION_TIMEOUT_GUARD: unique symbol;
|
|
32
|
+
export declare const LOADING_SERVICE: unique symbol;
|
|
33
|
+
export declare const I18N_SERVICE: unique symbol;
|
|
34
|
+
/**
|
|
35
|
+
* Runtime context passed to action handlers when action triggers.
|
|
36
|
+
*/
|
|
37
|
+
export interface ActionHandlerContext {
|
|
38
|
+
/** The transfer being acted upon */
|
|
39
|
+
transfer?: unknown;
|
|
40
|
+
/** Selected rows for bulk/table operations */
|
|
41
|
+
selectedRows?: unknown[];
|
|
42
|
+
/** Dialog closer if action is in a dialog */
|
|
43
|
+
closeDialog?: () => void;
|
|
44
|
+
/** Navigation context for page transitions */
|
|
45
|
+
navigation?: unknown;
|
|
46
|
+
/** Data store for transfer operations */
|
|
47
|
+
data?: unknown;
|
|
48
|
+
/** Model registry for lookups */
|
|
49
|
+
registry?: ModelRegistryService;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Action handler hook factory type.
|
|
53
|
+
* Framework INJECTS the Action model element when calling your handler.
|
|
54
|
+
*
|
|
55
|
+
* @param action - The Action model element (injected by framework)
|
|
56
|
+
* @returns Handler function to execute when action triggers
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* function useMyHandler(action: Action) {
|
|
61
|
+
* const { showSuccess } = useNotification();
|
|
62
|
+
* const operation = action.actionDefinition.operation;
|
|
63
|
+
*
|
|
64
|
+
* return async (ctx: ActionHandlerContext) => {
|
|
65
|
+
* console.log(`Handling ${action.name}:`, ctx.transfer);
|
|
66
|
+
* showSuccess('Done!');
|
|
67
|
+
* };
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export type ActionHandlerHook = (action: Action) => ActionHandlerFn;
|
|
72
|
+
/**
|
|
73
|
+
* Handler function called when the action is triggered.
|
|
74
|
+
*/
|
|
75
|
+
export type ActionHandlerFn = (context: ActionHandlerContext) => Promise<unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* @internal Framework-internal service properties for action handler registration.
|
|
78
|
+
*
|
|
79
|
+
* **Do not use directly.** Developers should use the generated `createCustomizations()`
|
|
80
|
+
* factory with human-readable page and action names instead.
|
|
81
|
+
*
|
|
82
|
+
* @see {@link CustomizationsConfig} for the runtime format (also internal)
|
|
83
|
+
*/
|
|
84
|
+
export interface ActionHandlerFactoryProperties {
|
|
85
|
+
/** @internal The action's xmi:id — resolved automatically by the factory */
|
|
86
|
+
sourceId: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Service properties for built-in action handler registration (internal).
|
|
90
|
+
*/
|
|
91
|
+
export interface BuiltInActionHandlerFactoryProperties {
|
|
92
|
+
/** The action type this built-in handles (e.g., 'ui:DeleteActionDefinition') */
|
|
93
|
+
actionType: string;
|
|
94
|
+
/** Marker for built-in handlers */
|
|
95
|
+
builtin: true;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Type for a component that can be used as an override.
|
|
99
|
+
* Framework INJECTS the VisualElement as the `element` prop.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const MyTableComponent: OverrideComponent<Table> = ({ element }) => {
|
|
104
|
+
* return <DefaultTable element={element} />;
|
|
105
|
+
* };
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
export type OverrideComponent<T extends VisualElement = VisualElement> = ComponentType<{
|
|
109
|
+
element: T;
|
|
110
|
+
} & Record<string, unknown>>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal Framework-internal component override registration object.
|
|
113
|
+
*
|
|
114
|
+
* **Do not use directly.** Developers should register component overrides via
|
|
115
|
+
* the generated `createCustomizations()` factory using human-readable names:
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* // Use the generated type-safe factory:
|
|
120
|
+
* createCustomizations({
|
|
121
|
+
* components: {
|
|
122
|
+
* OrderSummaryWidget: MyCustomComponent,
|
|
123
|
+
* },
|
|
124
|
+
* componentInterceptors: {
|
|
125
|
+
* TextInput: (element, page) => isEmail(element) ? EmailInput : null,
|
|
126
|
+
* },
|
|
127
|
+
* });
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
export interface ComponentOverride {
|
|
131
|
+
/** @internal Override a specific element — resolved automatically by the factory */
|
|
132
|
+
sourceId?: string;
|
|
133
|
+
/** Override all elements of this type (e.g., 'Table', 'TextInput') */
|
|
134
|
+
elementType?: string;
|
|
135
|
+
/** Override all elements within a container type */
|
|
136
|
+
containerType?: PageContainerType;
|
|
137
|
+
/** The component to render instead of the default */
|
|
138
|
+
component: OverrideComponent;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @internal Framework-internal service properties for component override registration.
|
|
142
|
+
*
|
|
143
|
+
* **Do not use directly.** Use the generated `createCustomizations()` factory
|
|
144
|
+
* with `components` (by name) or `componentInterceptors` (by @type) instead.
|
|
145
|
+
*/
|
|
146
|
+
export interface ComponentOverrideProperties {
|
|
147
|
+
/** @internal Element identity — resolved automatically by the factory */
|
|
148
|
+
sourceId?: string;
|
|
149
|
+
/** Override all elements of this type (e.g., 'Table', 'TextInput') */
|
|
150
|
+
elementType?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @internal Framework-internal service for managing component overrides at runtime.
|
|
154
|
+
* Used internally by `useComponentOverride` hook.
|
|
155
|
+
*/
|
|
156
|
+
export interface ComponentOverrideService {
|
|
157
|
+
/** Register a component override, returns unregister function */
|
|
158
|
+
register(override: ComponentOverride): () => void;
|
|
159
|
+
/** Get override for element with priority: sourceId > elementType > containerType */
|
|
160
|
+
getOverride(element: VisualElement, containerType?: PageContainerType): OverrideComponent | null;
|
|
161
|
+
/** Subscribe to override changes */
|
|
162
|
+
subscribe(callback: () => void): () => void;
|
|
163
|
+
/** Get current snapshot of all registered overrides */
|
|
164
|
+
getSnapshot(): ComponentOverride[];
|
|
165
|
+
}
|
|
166
|
+
export interface ModelLoaderService {
|
|
167
|
+
load(source: string): Promise<Application[]>;
|
|
168
|
+
}
|
|
169
|
+
export interface RegistrySnapshot {
|
|
170
|
+
applications: Application[];
|
|
171
|
+
activeApplication: Application | null;
|
|
172
|
+
activeActorName: string | null;
|
|
173
|
+
}
|
|
174
|
+
export interface ModelRegistryService {
|
|
175
|
+
registerModel(apps: Application[]): void;
|
|
176
|
+
getApplications(): Application[];
|
|
177
|
+
getApplication(actorName: string): Application;
|
|
178
|
+
getActiveApplication(): Application;
|
|
179
|
+
setActiveApplication(actorName: string): void;
|
|
180
|
+
resolveById<T = unknown>(id: string): T | undefined;
|
|
181
|
+
resolveClassType(ref: string): ClassType | undefined;
|
|
182
|
+
resolveRelationType(ref: string): RelationType | undefined;
|
|
183
|
+
resolveAttributeType(ref: string): AttributeType | undefined;
|
|
184
|
+
resolvePageDefinition(ref: string): PageDefinition | undefined;
|
|
185
|
+
resolvePageContainer(ref: string): PageContainer | undefined;
|
|
186
|
+
resolveVisualElement(id: string): VisualElement | undefined;
|
|
187
|
+
resolveActionDefinition(ref: string): ActionDefinition | undefined;
|
|
188
|
+
resolveDataType(ref: string): DataType | undefined;
|
|
189
|
+
resolveOperationType(ref: string): OperationType | undefined;
|
|
190
|
+
resolveNavigationItem(id: string): NavigationItem | undefined;
|
|
191
|
+
subscribe(callback: () => void): () => void;
|
|
192
|
+
getSnapshot(): RegistrySnapshot;
|
|
193
|
+
}
|
|
194
|
+
export interface BadgeInfo {
|
|
195
|
+
count?: number;
|
|
196
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
197
|
+
max?: number;
|
|
198
|
+
showZero?: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface NavigationBadgeService {
|
|
201
|
+
getBadge(itemId: string): BadgeInfo | null;
|
|
202
|
+
setBadge(itemId: string, badge: BadgeInfo | null): void;
|
|
203
|
+
subscribe(callback: () => void): () => void;
|
|
204
|
+
getSnapshot(): Map<string, BadgeInfo>;
|
|
205
|
+
}
|
|
206
|
+
export interface ThemeConfig {
|
|
207
|
+
mode: "light" | "dark";
|
|
208
|
+
/** @deprecated Use muiThemeOptions.palette.primary instead */
|
|
209
|
+
primaryColor?: string;
|
|
210
|
+
/** @deprecated Use muiThemeOptions.palette.secondary instead */
|
|
211
|
+
secondaryColor?: string;
|
|
212
|
+
/**
|
|
213
|
+
* MUI theme options to merge with defaults.
|
|
214
|
+
* Provides full customization of Material-UI theme.
|
|
215
|
+
*/
|
|
216
|
+
muiThemeOptions?: Record<string, unknown>;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the theme is using system preference.
|
|
219
|
+
* When true, mode will automatically track OS/browser preference.
|
|
220
|
+
*/
|
|
221
|
+
isSystemMode?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Density level controlling semantic spacing and sizing.
|
|
224
|
+
* - `compact` — tight spacing, smaller controls
|
|
225
|
+
* - `comfortable` — default MUI sizing (no overrides)
|
|
226
|
+
* - `standard` — generous spacing, larger touch targets
|
|
227
|
+
*/
|
|
228
|
+
density?: "compact" | "comfortable" | "standard";
|
|
229
|
+
/**
|
|
230
|
+
* Named theme preset. When set, provides default primary/secondary colors
|
|
231
|
+
* and background tints. Explicit `primaryColor`/`secondaryColor` override
|
|
232
|
+
* the preset values.
|
|
233
|
+
*
|
|
234
|
+
* Built-in presets: 'corporate', 'ocean', 'slate', 'indigo', 'forest', 'royal'
|
|
235
|
+
*/
|
|
236
|
+
preset?: "corporate" | "ocean" | "slate" | "indigo" | "forest" | "royal" | (string & {});
|
|
237
|
+
}
|
|
238
|
+
export interface ThemeService {
|
|
239
|
+
getTheme(): ThemeConfig;
|
|
240
|
+
setTheme(config: Partial<ThemeConfig>): void;
|
|
241
|
+
subscribe(callback: () => void): () => void;
|
|
242
|
+
getSnapshot(): ThemeConfig;
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE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,OAAO,CAAC,CAAC;IAC1C;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;IACjD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACzF;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,IAAI,WAAW,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAC7C,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5C,WAAW,IAAI,WAAW,CAAC;CAC3B"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { AttributeType, ClassType, DataElement, OperationType } from '../data/elements';
|
|
2
|
+
import { ConfirmationType } from '../enums';
|
|
3
|
+
import { NamedElement } from '../visual/base';
|
|
4
|
+
/**
|
|
5
|
+
* Base action definition - abstract.
|
|
6
|
+
* Maps to: ui:ActionDefinition
|
|
7
|
+
*
|
|
8
|
+
* EMF Defaults:
|
|
9
|
+
* - isTransient: false
|
|
10
|
+
* - isContainedRelationAction: false
|
|
11
|
+
* - isBulk: false
|
|
12
|
+
*/
|
|
13
|
+
export interface ActionDefinition extends NamedElement {
|
|
14
|
+
"@type": string;
|
|
15
|
+
/** Whether action is transient. @default false */
|
|
16
|
+
isTransient?: boolean;
|
|
17
|
+
/** Resolved reference to target ClassType */
|
|
18
|
+
targetType?: ClassType;
|
|
19
|
+
/** Whether action is for contained relations. @default false */
|
|
20
|
+
isContainedRelationAction?: boolean;
|
|
21
|
+
/** Whether action supports bulk operations. @default false */
|
|
22
|
+
isBulk?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Confirmation dialog configuration.
|
|
26
|
+
* Maps to: ui:Confirmation
|
|
27
|
+
*
|
|
28
|
+
* EMF Defaults:
|
|
29
|
+
* - confirmationType: YES_NO
|
|
30
|
+
*/
|
|
31
|
+
export interface Confirmation {
|
|
32
|
+
/** Type of confirmation dialog. @default YES_NO */
|
|
33
|
+
confirmationType?: ConfirmationType;
|
|
34
|
+
confirmationMessage?: string;
|
|
35
|
+
/** Resolved reference to condition AttributeType */
|
|
36
|
+
confirmationCondition?: AttributeType;
|
|
37
|
+
}
|
|
38
|
+
export interface BackActionDefinition extends ActionDefinition {
|
|
39
|
+
"@type": "BackActionDefinition";
|
|
40
|
+
}
|
|
41
|
+
export interface OpenPageActionDefinition extends ActionDefinition {
|
|
42
|
+
"@type": "OpenPageActionDefinition";
|
|
43
|
+
}
|
|
44
|
+
export interface RowOpenPageActionDefinition extends ActionDefinition {
|
|
45
|
+
"@type": "RowOpenPageActionDefinition";
|
|
46
|
+
/** Resolved reference to link relation DataElement */
|
|
47
|
+
linkRelation: DataElement;
|
|
48
|
+
}
|
|
49
|
+
export interface OpenFormActionDefinition extends ActionDefinition {
|
|
50
|
+
"@type": "OpenFormActionDefinition";
|
|
51
|
+
/** Resolved reference to ActionDefinition this form is for */
|
|
52
|
+
formFor?: ActionDefinition;
|
|
53
|
+
}
|
|
54
|
+
export interface OpenCreateFormActionDefinition extends Omit<OpenFormActionDefinition, "@type"> {
|
|
55
|
+
"@type": "OpenCreateFormActionDefinition";
|
|
56
|
+
}
|
|
57
|
+
export interface OpenOperationInputFormActionDefinition extends Omit<OpenFormActionDefinition, "@type"> {
|
|
58
|
+
"@type": "OpenOperationInputFormActionDefinition";
|
|
59
|
+
}
|
|
60
|
+
export interface OpenSelectorActionDefinition extends ActionDefinition {
|
|
61
|
+
"@type": "OpenSelectorActionDefinition";
|
|
62
|
+
/** Resolved reference to ActionDefinition this selector is for */
|
|
63
|
+
selectorFor?: ActionDefinition;
|
|
64
|
+
}
|
|
65
|
+
export interface OpenAddSelectorActionDefinition extends Omit<OpenSelectorActionDefinition, "@type"> {
|
|
66
|
+
"@type": "OpenAddSelectorActionDefinition";
|
|
67
|
+
}
|
|
68
|
+
export interface OpenSetSelectorActionDefinition extends Omit<OpenSelectorActionDefinition, "@type"> {
|
|
69
|
+
"@type": "OpenSetSelectorActionDefinition";
|
|
70
|
+
}
|
|
71
|
+
export interface OpenOperationInputSelectorActionDefinition extends Omit<OpenSelectorActionDefinition, "@type"> {
|
|
72
|
+
"@type": "OpenOperationInputSelectorActionDefinition";
|
|
73
|
+
}
|
|
74
|
+
export interface SelectorRangeActionDefinition extends ActionDefinition {
|
|
75
|
+
"@type": "SelectorRangeActionDefinition";
|
|
76
|
+
}
|
|
77
|
+
export interface RefreshActionDefinition extends ActionDefinition {
|
|
78
|
+
"@type": "RefreshActionDefinition";
|
|
79
|
+
}
|
|
80
|
+
export interface CreateActionDefinition extends ActionDefinition {
|
|
81
|
+
"@type": "CreateActionDefinition";
|
|
82
|
+
autoOpenAfterCreate?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export interface UpdateActionDefinition extends ActionDefinition {
|
|
85
|
+
"@type": "UpdateActionDefinition";
|
|
86
|
+
autoCloseOnSave?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface DeleteActionDefinition extends ActionDefinition {
|
|
89
|
+
"@type": "DeleteActionDefinition";
|
|
90
|
+
}
|
|
91
|
+
export interface BulkDeleteActionDefinition extends ActionDefinition {
|
|
92
|
+
"@type": "BulkDeleteActionDefinition";
|
|
93
|
+
}
|
|
94
|
+
export interface RowDeleteActionDefinition extends ActionDefinition {
|
|
95
|
+
"@type": "RowDeleteActionDefinition";
|
|
96
|
+
}
|
|
97
|
+
export interface GetTemplateActionDefinition extends ActionDefinition {
|
|
98
|
+
"@type": "GetTemplateActionDefinition";
|
|
99
|
+
}
|
|
100
|
+
export interface SetActionDefinition extends ActionDefinition {
|
|
101
|
+
"@type": "SetActionDefinition";
|
|
102
|
+
}
|
|
103
|
+
export interface UnsetActionDefinition extends ActionDefinition {
|
|
104
|
+
"@type": "UnsetActionDefinition";
|
|
105
|
+
}
|
|
106
|
+
export interface AddActionDefinition extends ActionDefinition {
|
|
107
|
+
"@type": "AddActionDefinition";
|
|
108
|
+
}
|
|
109
|
+
export interface RemoveActionDefinition extends ActionDefinition {
|
|
110
|
+
"@type": "RemoveActionDefinition";
|
|
111
|
+
}
|
|
112
|
+
export interface BulkRemoveActionDefinition extends ActionDefinition {
|
|
113
|
+
"@type": "BulkRemoveActionDefinition";
|
|
114
|
+
}
|
|
115
|
+
export interface ClearActionDefinition extends ActionDefinition {
|
|
116
|
+
"@type": "ClearActionDefinition";
|
|
117
|
+
}
|
|
118
|
+
export interface RefreshRelationActionDefinition extends ActionDefinition {
|
|
119
|
+
"@type": "RefreshRelationActionDefinition";
|
|
120
|
+
}
|
|
121
|
+
export interface FilterRelationActionDefinition extends ActionDefinition {
|
|
122
|
+
"@type": "FilterRelationActionDefinition";
|
|
123
|
+
}
|
|
124
|
+
export interface FilterActionDefinition extends ActionDefinition {
|
|
125
|
+
"@type": "FilterActionDefinition";
|
|
126
|
+
}
|
|
127
|
+
export interface ExportActionDefinition extends ActionDefinition {
|
|
128
|
+
"@type": "ExportActionDefinition";
|
|
129
|
+
}
|
|
130
|
+
export interface InlineCreateRowActionDefinition extends ActionDefinition {
|
|
131
|
+
"@type": "InlineCreateRowActionDefinition";
|
|
132
|
+
}
|
|
133
|
+
export interface CallOperationActionDefinition extends ActionDefinition {
|
|
134
|
+
"@type": "CallOperationActionDefinition";
|
|
135
|
+
/** Resolved reference to OperationType */
|
|
136
|
+
operation: OperationType;
|
|
137
|
+
}
|
|
138
|
+
export interface BulkCallOperationActionDefinition extends Omit<CallOperationActionDefinition, "@type"> {
|
|
139
|
+
"@type": "BulkCallOperationActionDefinition";
|
|
140
|
+
}
|
|
141
|
+
export interface InputFormCallOperationActionDefinition extends Omit<CallOperationActionDefinition, "@type"> {
|
|
142
|
+
"@type": "InputFormCallOperationActionDefinition";
|
|
143
|
+
}
|
|
144
|
+
export interface InputSelectorCallOperationActionDefinition extends Omit<CallOperationActionDefinition, "@type"> {
|
|
145
|
+
"@type": "InputSelectorCallOperationActionDefinition";
|
|
146
|
+
}
|
|
147
|
+
export interface ParameterlessCallOperationActionDefinition extends Omit<CallOperationActionDefinition, "@type"> {
|
|
148
|
+
"@type": "ParameterlessCallOperationActionDefinition";
|
|
149
|
+
}
|
|
150
|
+
export interface AutocompleteRangeActionDefinition extends ActionDefinition {
|
|
151
|
+
"@type": "AutocompleteRangeActionDefinition";
|
|
152
|
+
}
|
|
153
|
+
export interface AutocompleteSetActionDefinition extends ActionDefinition {
|
|
154
|
+
"@type": "AutocompleteSetActionDefinition";
|
|
155
|
+
}
|
|
156
|
+
export interface AutocompleteAddActionDefinition extends ActionDefinition {
|
|
157
|
+
"@type": "AutocompleteAddActionDefinition";
|
|
158
|
+
}
|
|
159
|
+
export interface PreFetchActionDefinition extends ActionDefinition {
|
|
160
|
+
"@type": "PreFetchActionDefinition";
|
|
161
|
+
}
|
|
162
|
+
export interface CancelActionDefinition extends ActionDefinition {
|
|
163
|
+
"@type": "CancelActionDefinition";
|
|
164
|
+
}
|
|
165
|
+
export interface CustomActionDefinition extends ActionDefinition {
|
|
166
|
+
"@type": "CustomActionDefinition";
|
|
167
|
+
actionName?: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Union type for all action definitions.
|
|
171
|
+
*/
|
|
172
|
+
export type AnyActionDefinition = BackActionDefinition | OpenPageActionDefinition | RowOpenPageActionDefinition | OpenFormActionDefinition | OpenCreateFormActionDefinition | OpenOperationInputFormActionDefinition | OpenSelectorActionDefinition | OpenAddSelectorActionDefinition | OpenSetSelectorActionDefinition | OpenOperationInputSelectorActionDefinition | SelectorRangeActionDefinition | RefreshActionDefinition | CreateActionDefinition | UpdateActionDefinition | DeleteActionDefinition | BulkDeleteActionDefinition | RowDeleteActionDefinition | GetTemplateActionDefinition | SetActionDefinition | UnsetActionDefinition | AddActionDefinition | RemoveActionDefinition | BulkRemoveActionDefinition | ClearActionDefinition | RefreshRelationActionDefinition | FilterRelationActionDefinition | FilterActionDefinition | ExportActionDefinition | InlineCreateRowActionDefinition | CallOperationActionDefinition | BulkCallOperationActionDefinition | InputFormCallOperationActionDefinition | InputSelectorCallOperationActionDefinition | ParameterlessCallOperationActionDefinition | AutocompleteRangeActionDefinition | AutocompleteSetActionDefinition | AutocompleteAddActionDefinition | PreFetchActionDefinition | CancelActionDefinition | CustomActionDefinition;
|
|
173
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/structural/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,gEAAgE;IAChE,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,aAAa,CAAC;CACtC;AAMD,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC7D,OAAO,EAAE,sBAAs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