@decaf-ts/ui-decorators 0.6.20 → 0.7.1
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/lib/{index.cjs → cjs/index.cjs} +1 -1
- package/lib/cjs/index.js.map +1 -0
- package/lib/{model → cjs/model}/Renderable.js.map +1 -1
- package/lib/cjs/model/decorators.js.map +1 -0
- package/lib/cjs/model/index.js.map +1 -0
- package/lib/{model → cjs/model}/model.js.map +1 -1
- package/lib/cjs/model/overrides.js.map +1 -0
- package/lib/cjs/overrides/ModelBuilderExtensions.js.map +1 -0
- package/lib/cjs/overrides/index.js.map +1 -0
- package/lib/cjs/ui/DecafComponent.js.map +1 -0
- package/lib/cjs/ui/DecafEventHandler.js.map +1 -0
- package/lib/cjs/ui/DecafTranslateService.js.map +1 -0
- package/lib/cjs/ui/Rendering.js.map +1 -0
- package/lib/cjs/ui/UIValidator.js.map +1 -0
- package/lib/cjs/ui/constants.js.map +1 -0
- package/lib/cjs/ui/decorators.js.map +1 -0
- package/lib/cjs/ui/errors.js.map +1 -0
- package/lib/cjs/ui/index.js.map +1 -0
- package/lib/cjs/ui/interfaces.js.map +1 -0
- package/lib/cjs/ui/overrides.js.map +1 -0
- package/lib/cjs/ui/types.js.map +1 -0
- package/lib/cjs/ui/utils.js.map +1 -0
- package/lib/{ui → cjs/ui}/validator.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/{esm → types}/index.d.ts +1 -1
- package/package.json +12 -6
- package/lib/index.d.ts +0 -19
- package/lib/index.js.map +0 -1
- package/lib/model/Renderable.d.ts +0 -18
- package/lib/model/decorators.d.ts +0 -318
- package/lib/model/decorators.js.map +0 -1
- package/lib/model/index.d.ts +0 -4
- package/lib/model/index.js.map +0 -1
- package/lib/model/model.d.ts +0 -31
- package/lib/model/overrides.d.ts +0 -9
- package/lib/model/overrides.js.map +0 -1
- package/lib/overrides/ModelBuilderExtensions.d.ts +0 -16
- package/lib/overrides/ModelBuilderExtensions.js.map +0 -1
- package/lib/overrides/index.d.ts +0 -5
- package/lib/overrides/index.js.map +0 -1
- package/lib/ui/DecafComponent.d.ts +0 -293
- package/lib/ui/DecafComponent.js.map +0 -1
- package/lib/ui/DecafEventHandler.d.ts +0 -43
- package/lib/ui/DecafEventHandler.js.map +0 -1
- package/lib/ui/DecafTranslateService.d.ts +0 -5
- package/lib/ui/DecafTranslateService.js.map +0 -1
- package/lib/ui/Rendering.d.ts +0 -202
- package/lib/ui/Rendering.js.map +0 -1
- package/lib/ui/UIValidator.d.ts +0 -6
- package/lib/ui/UIValidator.js.map +0 -1
- package/lib/ui/constants.d.ts +0 -355
- package/lib/ui/constants.js.map +0 -1
- package/lib/ui/decorators.d.ts +0 -482
- package/lib/ui/decorators.js.map +0 -1
- package/lib/ui/errors.d.ts +0 -32
- package/lib/ui/errors.js.map +0 -1
- package/lib/ui/index.d.ts +0 -11
- package/lib/ui/index.js.map +0 -1
- package/lib/ui/interfaces.d.ts +0 -64
- package/lib/ui/interfaces.js.map +0 -1
- package/lib/ui/overrides.d.ts +0 -1
- package/lib/ui/overrides.js.map +0 -1
- package/lib/ui/types.d.ts +0 -186
- package/lib/ui/types.js.map +0 -1
- package/lib/ui/utils.d.ts +0 -27
- package/lib/ui/utils.js.map +0 -1
- package/lib/ui/validator.d.ts +0 -9
- /package/lib/{model → cjs/model}/Renderable.cjs +0 -0
- /package/lib/{model → cjs/model}/decorators.cjs +0 -0
- /package/lib/{model → cjs/model}/index.cjs +0 -0
- /package/lib/{model → cjs/model}/model.cjs +0 -0
- /package/lib/{model → cjs/model}/overrides.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/ModelBuilderExtensions.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/index.cjs +0 -0
- /package/lib/{ui → cjs/ui}/DecafComponent.cjs +0 -0
- /package/lib/{ui → cjs/ui}/DecafEventHandler.cjs +0 -0
- /package/lib/{ui → cjs/ui}/DecafTranslateService.cjs +0 -0
- /package/lib/{ui → cjs/ui}/Rendering.cjs +0 -0
- /package/lib/{ui → cjs/ui}/UIValidator.cjs +0 -0
- /package/lib/{ui → cjs/ui}/constants.cjs +0 -0
- /package/lib/{ui → cjs/ui}/decorators.cjs +0 -0
- /package/lib/{ui → cjs/ui}/errors.cjs +0 -0
- /package/lib/{ui → cjs/ui}/index.cjs +0 -0
- /package/lib/{ui → cjs/ui}/interfaces.cjs +0 -0
- /package/lib/{ui → cjs/ui}/overrides.cjs +0 -0
- /package/lib/{ui → cjs/ui}/types.cjs +0 -0
- /package/lib/{ui → cjs/ui}/utils.cjs +0 -0
- /package/lib/{ui → cjs/ui}/validator.cjs +0 -0
- /package/lib/{esm → types}/model/Renderable.d.ts +0 -0
- /package/lib/{esm → types}/model/decorators.d.ts +0 -0
- /package/lib/{esm → types}/model/index.d.ts +0 -0
- /package/lib/{esm → types}/model/model.d.ts +0 -0
- /package/lib/{esm → types}/model/overrides.d.ts +0 -0
- /package/lib/{esm → types}/overrides/ModelBuilderExtensions.d.ts +0 -0
- /package/lib/{esm → types}/overrides/index.d.ts +0 -0
- /package/lib/{esm → types}/ui/DecafComponent.d.ts +0 -0
- /package/lib/{esm → types}/ui/DecafEventHandler.d.ts +0 -0
- /package/lib/{esm → types}/ui/DecafTranslateService.d.ts +0 -0
- /package/lib/{esm → types}/ui/Rendering.d.ts +0 -0
- /package/lib/{esm → types}/ui/UIValidator.d.ts +0 -0
- /package/lib/{esm → types}/ui/constants.d.ts +0 -0
- /package/lib/{esm → types}/ui/decorators.d.ts +0 -0
- /package/lib/{esm → types}/ui/errors.d.ts +0 -0
- /package/lib/{esm → types}/ui/index.d.ts +0 -0
- /package/lib/{esm → types}/ui/interfaces.d.ts +0 -0
- /package/lib/{esm → types}/ui/overrides.d.ts +0 -0
- /package/lib/{esm → types}/ui/types.d.ts +0 -0
- /package/lib/{esm → types}/ui/utils.d.ts +0 -0
- /package/lib/{esm → types}/ui/validator.d.ts +0 -0
package/lib/ui/types.d.ts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Type definitions for UI components and rendering
|
|
3
|
-
* @summary Defines types and interfaces used throughout the UI decorators library
|
|
4
|
-
* This module contains type definitions for field properties, UI metadata,
|
|
5
|
-
* and other structures used in rendering UI components.
|
|
6
|
-
* @module ui/types
|
|
7
|
-
* @memberOf module:ui-decorators
|
|
8
|
-
*/
|
|
9
|
-
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
10
|
-
import { ElementSizes, UIKeys, UIMediaBreakPoints } from "./constants";
|
|
11
|
-
import { DecafEventHandler } from "./DecafEventHandler";
|
|
12
|
-
/**
|
|
13
|
-
* @description Interface for defining a UI field or component
|
|
14
|
-
* @summary Represents a renderable UI element with properties and children
|
|
15
|
-
* This interface defines the structure of a UI field or component, including
|
|
16
|
-
* its tag name, properties, and optional children elements.
|
|
17
|
-
*
|
|
18
|
-
* @interface FieldDefinition
|
|
19
|
-
* @template T Additional properties type (defaults to void)
|
|
20
|
-
* @memberOf module:ui-decorators
|
|
21
|
-
*
|
|
22
|
-
* @property {string} tag - The HTML element or component tag name
|
|
23
|
-
* @property {string} [rendererId] - Optional ID of the renderer to use
|
|
24
|
-
* @property props - Combined properties for the field
|
|
25
|
-
* @property {FieldDefinition[]} [children] - Optional child elements
|
|
26
|
-
* @property {UIListItemElementMetadata} [item] - Optional list item metadata
|
|
27
|
-
*/
|
|
28
|
-
export interface FieldDefinition<T = void> {
|
|
29
|
-
tag: string;
|
|
30
|
-
rendererId?: string;
|
|
31
|
-
props: T & FieldProperties;
|
|
32
|
-
children?: FieldDefinition<T>[];
|
|
33
|
-
item?: UIListItemElementMetadata;
|
|
34
|
-
col?: number | string[];
|
|
35
|
-
row?: number | string[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @description Interface for field properties including validation
|
|
39
|
-
* @summary Defines common properties and validation rules for UI fields
|
|
40
|
-
* This interface defines the standard properties that can be applied to
|
|
41
|
-
* UI fields, including basic attributes and validation rules.
|
|
42
|
-
*
|
|
43
|
-
* @interface FieldProperties
|
|
44
|
-
* @memberOf module:ui-decorators
|
|
45
|
-
*
|
|
46
|
-
* @property {string} name - The name of the field
|
|
47
|
-
* @property {string} path - The full hierarchical path of the field
|
|
48
|
-
* @property {string} childOf - The parent path of the immediate parent field, if nested
|
|
49
|
-
* @property {string} type - The type of the field (e.g., 'text', 'number')
|
|
50
|
-
* @property {string|number|Date} value - The current value of the field
|
|
51
|
-
* @property {boolean} [hidden] - Whether the field is hidden
|
|
52
|
-
* @property {boolean} [disabled] - Whether the field is disabled
|
|
53
|
-
* @property {boolean} [required] - Whether the field is required
|
|
54
|
-
* @property {boolean} [readonly] - Whether the field is read-only
|
|
55
|
-
* @property {number} [maxLength] - Maximum length for text fields
|
|
56
|
-
* @property {number} [minLength] - Minimum length for text fields
|
|
57
|
-
* @property {number|Date} [max] - Maximum value for numeric or date fields
|
|
58
|
-
* @property {number|Date} [min] - Minimum value for numeric or date fields
|
|
59
|
-
* @property {string} [pattern] - Regex pattern for validation
|
|
60
|
-
* @property {number} [step] - Step value for numeric fields
|
|
61
|
-
* @property {string} [format] - Format string for date fields
|
|
62
|
-
* @property {string} [equals] - Field must equal the value of this field
|
|
63
|
-
* @property {string} [diff] - Field must differ from the value of this field
|
|
64
|
-
* @property {string} [lessThan] - Field must be less than this field
|
|
65
|
-
* @property {string} [lessThanOrEqual] - Field must be less than or equal to this field
|
|
66
|
-
* @property {string} [greaterThan] - Field must be greater than this field
|
|
67
|
-
* @property {string} [greaterThanOrEqual] - Field must be greater than or equal to this field
|
|
68
|
-
*/
|
|
69
|
-
export interface FieldProperties {
|
|
70
|
-
name: string;
|
|
71
|
-
path: string;
|
|
72
|
-
childOf?: string;
|
|
73
|
-
type: string;
|
|
74
|
-
value: string | number | Date | string[] | number[] | Date[];
|
|
75
|
-
hidden?: boolean | CrudOperationKeys[];
|
|
76
|
-
disabled?: boolean;
|
|
77
|
-
required?: boolean;
|
|
78
|
-
readonly?: boolean;
|
|
79
|
-
maxLength?: number;
|
|
80
|
-
minLength?: number;
|
|
81
|
-
max?: number | Date;
|
|
82
|
-
min?: number | Date;
|
|
83
|
-
pattern?: string;
|
|
84
|
-
step?: number;
|
|
85
|
-
format?: string;
|
|
86
|
-
pk?: string;
|
|
87
|
-
subType?: string;
|
|
88
|
-
multiple?: boolean;
|
|
89
|
-
customTypes?: string | string[];
|
|
90
|
-
validationMessage?: string | string[];
|
|
91
|
-
options?: Record<string, unknown>[];
|
|
92
|
-
row?: number;
|
|
93
|
-
col?: number;
|
|
94
|
-
page?: number;
|
|
95
|
-
[UIKeys.EQUALS]?: string;
|
|
96
|
-
[UIKeys.DIFF]?: string;
|
|
97
|
-
[UIKeys.LESS_THAN]?: string;
|
|
98
|
-
[UIKeys.LESS_THAN_OR_EQUAL]?: string;
|
|
99
|
-
[UIKeys.GREATER_THAN]?: string;
|
|
100
|
-
[UIKeys.GREATER_THAN_OR_EQUAL]?: string;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @typedef UIElementMetadata
|
|
104
|
-
* @memberOf module:ui-decorators
|
|
105
|
-
*/
|
|
106
|
-
export type UIElementMetadata = {
|
|
107
|
-
tag: string;
|
|
108
|
-
props?: Record<string, any>;
|
|
109
|
-
serialize?: boolean;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* @typedef UIElementMetadata
|
|
113
|
-
* @memberOf module:ui-decorators
|
|
114
|
-
*/
|
|
115
|
-
export type UIModelMetadata = Omit<UIElementMetadata, "serialize">;
|
|
116
|
-
/**
|
|
117
|
-
* @typedef UIPropMetadata
|
|
118
|
-
* @memberOf module:ui-decorators
|
|
119
|
-
*/
|
|
120
|
-
export type UIPropMetadata = {
|
|
121
|
-
name: string;
|
|
122
|
-
stringify: boolean;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* @typedef CrudOperationKeys
|
|
126
|
-
* @memberOf module:ui-decorators
|
|
127
|
-
*/
|
|
128
|
-
export type CrudOperationKeys = OperationKeys.CREATE | OperationKeys.READ | OperationKeys.UPDATE | OperationKeys.DELETE;
|
|
129
|
-
/**
|
|
130
|
-
* @typedef UIListPropMetadata
|
|
131
|
-
* @memberOf module:ui-decorators
|
|
132
|
-
*/
|
|
133
|
-
export type UIListPropMetadata = {
|
|
134
|
-
name: string;
|
|
135
|
-
props: Record<string, any>;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* @typedef UIListModelMetadata
|
|
139
|
-
* @memberOf module:ui-decorators
|
|
140
|
-
*/
|
|
141
|
-
export type UIListModelMetadata = {
|
|
142
|
-
item: UIListItemElementMetadata;
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* @typedef UIListItemElementMetadata
|
|
146
|
-
* @memberOf module:ui-decorators
|
|
147
|
-
*/
|
|
148
|
-
export type UIListItemElementMetadata = {
|
|
149
|
-
tag: string;
|
|
150
|
-
props?: Record<string, any>;
|
|
151
|
-
mapper?: Record<string, string>;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* @typedef UILayoutMetadata
|
|
155
|
-
* @memberOf module:ui-decorators
|
|
156
|
-
*/
|
|
157
|
-
export type UILayoutMetadata = {
|
|
158
|
-
cols?: number;
|
|
159
|
-
rows?: number | string[];
|
|
160
|
-
props?: Record<string, any>;
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* @typedef UIClassMetadata
|
|
164
|
-
* @memberOf module:ui-decorators
|
|
165
|
-
*/
|
|
166
|
-
export type UIClassMetadata = UILayoutMetadata | UIModelMetadata | UIHandlerMetadata | UIListModelMetadata;
|
|
167
|
-
export type UILayoutCol = number | typeof ElementSizes.half | typeof ElementSizes.full | typeof ElementSizes.auto | typeof ElementSizes.expand;
|
|
168
|
-
export type UIListItemPosition = "title" | "description" | "info" | "subinfo";
|
|
169
|
-
export type UIFunctionLike = (...args: any[]) => any | Promise<any>;
|
|
170
|
-
export type UIEventName = keyof Pick<DecafEventHandler, "render" | "initialize" | "handleClick" | "refresh">;
|
|
171
|
-
export type UIEventProperty = Record<string, UIFunctionLike>;
|
|
172
|
-
export type UIHandlerMetadata = {
|
|
173
|
-
handlers?: UIEventProperty;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* @typedef UILayoutPropMetadata
|
|
177
|
-
* @memberOf module:ui-decorators
|
|
178
|
-
*/
|
|
179
|
-
export type UILayoutPropMetadata = {
|
|
180
|
-
name: string;
|
|
181
|
-
props: Record<string, any> & {
|
|
182
|
-
col: UILayoutCol;
|
|
183
|
-
row: number | string[];
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
export type UIMediaBreakPointsType = UIMediaBreakPoints.SMALL | UIMediaBreakPoints.MEDIUM | UIMediaBreakPoints.LARGE | UIMediaBreakPoints.XLARGE;
|
package/lib/ui/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ui/types.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAGH,+CAAuE"}
|
package/lib/ui/utils.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { FieldProperties, UIFunctionLike } from "./types";
|
|
3
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* Type guard that verifies if a provided UI function-like value is a class constructor.
|
|
7
|
-
*/
|
|
8
|
-
export declare const isClassConstructor: <C>(fn: UIFunctionLike | Constructor<C>) => fn is Constructor<C>;
|
|
9
|
-
/**
|
|
10
|
-
* Derives the metadata key for a UI attribute on a decorated property.
|
|
11
|
-
*
|
|
12
|
-
* @param prop - Property name decorated on the UI model.
|
|
13
|
-
* @param key - Attribute identifier stored under the property metadata.
|
|
14
|
-
* @returns Fully qualified metadata key scoped to `UIKeys.REFLECT`.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getUIAttributeKey(prop: string, key: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* @function formatByType
|
|
19
|
-
*
|
|
20
|
-
* @memberOf module:ui-decorators
|
|
21
|
-
*/
|
|
22
|
-
export declare function formatByType(type: any, value: any, ...args: unknown[]): string | number;
|
|
23
|
-
export declare function parseValueByType(type: string, value: string | number, fieldProps: FieldProperties): string | number | Date;
|
|
24
|
-
export declare function parseToNumber(value: string | number): number | undefined;
|
|
25
|
-
export declare function escapeHtml(value: string): string;
|
|
26
|
-
export declare function revertHtml(value: string): string;
|
|
27
|
-
export declare function generateUIModelID<M extends Model>(model: M): string;
|
package/lib/ui/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ui/utils.ts"],"names":[],"mappings":";;;AA4BA,8CAEC;AAOD,oCAWC;AAED,4CAuDC;AAED,sCAOC;AAED,gCAWC;AAED,gCAUC;AAED,8CAcC;AA3JD,yEAKwC;AACxC,+CAAuE;AACvE,2DAAwD;AAExD,qDAA6E;AAE7E;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CAChC,EAAmC,EACb,EAAE;IACxB,OAAO,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEF;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAAC,IAAY,EAAE,GAAW;IACzD,OAAO,qBAAQ,CAAC,GAAG,CAAC,kBAAM,CAAC,OAAO,EAAE,2BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;AAC5E,CAAC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,IAAS,EACT,KAAU,EACV,GAAG,IAAe;IAElB,IAAI,IAAI,KAAK,kBAAM,CAAC,IAAI,EAAE,CAAC;QACzB,IAAI,CAAC,KAAK;YAAE,OAAO,EAAE,CAAC;QACtB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zB,MAAM,aAAa,GAA2B;QAC5C,GAAG,EAAE,OAAO;QACZ,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;KACZ,CAAC;IACF,OAAO,GAAG,KAAK,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;QAC1C,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,UAAU,CAAC,KAAa;IACtC,MAAM,aAAa,GAA2B;QAC5C,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG;KACZ,CAAC;IAEF,OAAO,GAAG,KAAK,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,GAAG,EAAE,EAAE;QACpD,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,iBAAiB,CAAkB,KAAQ;IACzD,IAAI,EAAE,GAA6B,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9C,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,4BAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAA6B,CAAC,CAAC;QACzD,IAAI,EAAE;YACJ,EAAE,GAAG,KAAK,CACR,4BAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAA6B,CAAuB,CACjD,CAAC;QACvB,6DAA6D;IAC/D,CAAC;IAAC,OAAO,CAAU,EAAE,CAAC;QACpB,cAAc;IAChB,CAAC;IACD,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,OAAO,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;AACzB,CAAC"}
|
package/lib/ui/validator.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DecafTranslateService } from "./DecafTranslateService";
|
|
2
|
-
declare module "@decaf-ts/decorator-validation" {
|
|
3
|
-
interface BaseValidator {
|
|
4
|
-
translateService: DecafTranslateService;
|
|
5
|
-
}
|
|
6
|
-
namespace BaseValidator {
|
|
7
|
-
let translateService: DecafTranslateService;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|