@decaf-ts/ui-decorators 0.6.20 → 0.7.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/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/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/{index.cjs → cjs/index.cjs} +0 -0
- /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}/index.d.ts +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/constants.d.ts
DELETED
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Constants and enums for UI rendering and validation
|
|
3
|
-
* @summary Defines keys, mappings, and HTML5 input types for UI components
|
|
4
|
-
* This module provides constants used throughout the UI decorators library for
|
|
5
|
-
* rendering, validation, and HTML element generation.
|
|
6
|
-
* @module ui/constants
|
|
7
|
-
* @memberOf module:ui-decorators
|
|
8
|
-
*/
|
|
9
|
-
import { Validator } from "@decaf-ts/decorator-validation";
|
|
10
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
11
|
-
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
12
|
-
export declare enum UIMediaBreakPoints {
|
|
13
|
-
SMALL = "small",
|
|
14
|
-
MEDIUM = "medium",
|
|
15
|
-
LARGE = "large",
|
|
16
|
-
XLARGE = "xlarge"
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @description Key constants used for UI metadata and rendering
|
|
20
|
-
* @summary Collection of string constants used as keys for UI-related metadata
|
|
21
|
-
* These keys are used throughout the library to store and retrieve metadata related to
|
|
22
|
-
* UI models, elements, properties, and validation rules.
|
|
23
|
-
*
|
|
24
|
-
* @typedef {Object} UIKeysType
|
|
25
|
-
* @property {string} REFLECT - Base reflection key for UI metadata
|
|
26
|
-
* @property {string} UIMODEL - Key for UI model metadata
|
|
27
|
-
* @property {string} RENDERED_BY - Key for specifying rendering engine
|
|
28
|
-
* @property {string} ELEMENT - Key for element metadata
|
|
29
|
-
* @property {string} PROP - Key for property metadata
|
|
30
|
-
* @property {string} NAME - Key for name attribute
|
|
31
|
-
* @property {string} NAME_PREFIX - Prefix for input names
|
|
32
|
-
* @property {string} CUSTOM_PROPS - Key for custom validation properties
|
|
33
|
-
* @property {string} UILISTMODEL - Key for list item metadata
|
|
34
|
-
* @property {string} UILISTPROP - Key for list property metadata
|
|
35
|
-
* @property {string} TYPE - Key for type metadata
|
|
36
|
-
* @property {string} SUB_TYPE - Key for subtype metadata
|
|
37
|
-
* @property {string} HIDDEN - Key for hidden attribute
|
|
38
|
-
* @property {string} FORMAT - Key for format metadata
|
|
39
|
-
* @property {string} READ_ONLY - Key for readonly attribute
|
|
40
|
-
* @property {string} REQUIRED - Key for required validation
|
|
41
|
-
* @property {string} MIN - Key for minimum value validation
|
|
42
|
-
* @property {string} MIN_LENGTH - Key for minimum length validation
|
|
43
|
-
* @property {string} MAX - Key for maximum value validation
|
|
44
|
-
* @property {string} MAX_LENGTH - Key for maximum length validation
|
|
45
|
-
* @property {string} PATTERN - Key for pattern validation
|
|
46
|
-
* @property {string} URL - Key for URL validation
|
|
47
|
-
* @property {string} STEP - Key for step validation
|
|
48
|
-
* @property {string} DATE - Key for date validation
|
|
49
|
-
* @property {string} EMAIL - Key for email validation
|
|
50
|
-
* @property {string} PASSWORD - Key for password validation
|
|
51
|
-
* @property {string} EQUALS - Key for equality validation
|
|
52
|
-
* @property {string} DIFF - Key for difference validation
|
|
53
|
-
* @property {string} LESS_THAN - Key for less than validation
|
|
54
|
-
* @property {string} LESS_THAN_OR_EQUAL - Key for less than or equal validation
|
|
55
|
-
* @property {string} GREATER_THAN - Key for greater than validation
|
|
56
|
-
* @property {string} GREATER_THAN_OR_EQUAL - Key for greater than or equal validation
|
|
57
|
-
*
|
|
58
|
-
* @const UIKeys
|
|
59
|
-
* @type {UIKeysType}
|
|
60
|
-
* @readonly
|
|
61
|
-
* @memberOf module:ui-decorators
|
|
62
|
-
*/
|
|
63
|
-
export declare const UIKeys: {
|
|
64
|
-
REFLECT: string;
|
|
65
|
-
UIMODEL: string;
|
|
66
|
-
RENDERED_BY: string;
|
|
67
|
-
ELEMENT: string;
|
|
68
|
-
PROP: string;
|
|
69
|
-
CHILD: string;
|
|
70
|
-
NAME: string;
|
|
71
|
-
NAME_PREFIX: string;
|
|
72
|
-
VALIDATION_MESSAGE: string;
|
|
73
|
-
UILISTMODEL: string;
|
|
74
|
-
UILISTPROP: string;
|
|
75
|
-
UILAYOUT: string;
|
|
76
|
-
UILAYOUTPROP: string;
|
|
77
|
-
HANDLERS: string;
|
|
78
|
-
TYPE: string;
|
|
79
|
-
SUB_TYPE: string;
|
|
80
|
-
HIDDEN: string;
|
|
81
|
-
FORMAT: string;
|
|
82
|
-
ORDER: string;
|
|
83
|
-
PAGE: string;
|
|
84
|
-
EVENTS: string;
|
|
85
|
-
FIRST: string;
|
|
86
|
-
LAST: string;
|
|
87
|
-
READ_ONLY: string;
|
|
88
|
-
SEQUENCE: string;
|
|
89
|
-
REQUIRED: "required";
|
|
90
|
-
MIN: "min";
|
|
91
|
-
MIN_LENGTH: "minlength";
|
|
92
|
-
MAX: "max";
|
|
93
|
-
MAX_LENGTH: "maxlength";
|
|
94
|
-
PATTERN: "pattern";
|
|
95
|
-
URL: "url";
|
|
96
|
-
STEP: "step";
|
|
97
|
-
DATE: "date";
|
|
98
|
-
EMAIL: "email";
|
|
99
|
-
PASSWORD: "password";
|
|
100
|
-
EQUALS: "equals";
|
|
101
|
-
DIFF: "different";
|
|
102
|
-
LESS_THAN: "lessThan";
|
|
103
|
-
LESS_THAN_OR_EQUAL: "lessThanOrEqual";
|
|
104
|
-
GREATER_THAN: "greaterThan";
|
|
105
|
-
GREATER_THAN_OR_EQUAL: "greaterThanOrEqual";
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* @description Mapping of input types to their corresponding validators
|
|
109
|
-
* @summary Maps special input types to their validator classes
|
|
110
|
-
* This constant maps input types like email, URL, date, and password to their
|
|
111
|
-
* corresponding validator classes from the decorator-validation library.
|
|
112
|
-
*
|
|
113
|
-
* @typedef {Object.<string, Constructor<Validator>>} ValidatableByTypeMap
|
|
114
|
-
* @property {Constructor<EmailValidator>} email - Validator for email inputs
|
|
115
|
-
* @property {Constructor<URLValidator>} url - Validator for URL inputs
|
|
116
|
-
* @property {Constructor<DateValidator>} date - Validator for date inputs
|
|
117
|
-
* @property {Constructor<PasswordValidator>} password - Validator for password inputs
|
|
118
|
-
*
|
|
119
|
-
* @const ValidatableByType
|
|
120
|
-
* @type {ValidatableByTypeMap}
|
|
121
|
-
* @readonly
|
|
122
|
-
* @memberOf module:ui-decorators
|
|
123
|
-
*/
|
|
124
|
-
export declare const ValidatableByType: Record<string, Constructor<Validator>>;
|
|
125
|
-
/**
|
|
126
|
-
* @description Mapping of validation attributes to their corresponding validators
|
|
127
|
-
* @summary Maps HTML validation attributes to their validator classes
|
|
128
|
-
* This constant maps HTML validation attributes like required, min, max, pattern, etc.
|
|
129
|
-
* to their corresponding validator classes from the decorator-validation library.
|
|
130
|
-
*
|
|
131
|
-
* @typedef {Object.<string, Constructor<Validator>>} ValidatableByAttributeMap
|
|
132
|
-
* @property {Constructor<RequiredValidator>} required - Validator for required fields
|
|
133
|
-
* @property {Constructor<MinValidator>} min - Validator for minimum value
|
|
134
|
-
* @property {Constructor<MaxValidator>} max - Validator for maximum value
|
|
135
|
-
* @property {Constructor<StepValidator>} step - Validator for step value
|
|
136
|
-
* @property {Constructor<MinLengthValidator>} minlength - Validator for minimum length
|
|
137
|
-
* @property {Constructor<MaxLengthValidator>} maxlength - Validator for maximum length
|
|
138
|
-
* @property {Constructor<PatternValidator>} pattern - Validator for regex pattern
|
|
139
|
-
* @property {Constructor<EqualsValidator>} equals - Validator for equality
|
|
140
|
-
* @property {Constructor<DiffValidator>} diff - Validator for difference
|
|
141
|
-
* @property {Constructor<LessThanValidator>} lessthan - Validator for less than comparison
|
|
142
|
-
* @property {Constructor<LessThanOrEqualValidator>} lessthanorequal - Validator for less than or equal comparison
|
|
143
|
-
* @property {Constructor<GreaterThanValidator>} greaterthan - Validator for greater than comparison
|
|
144
|
-
* @property {Constructor<GreaterThanOrEqualValidator>} greaterthanorequal - Validator for greater than or equal comparison
|
|
145
|
-
*
|
|
146
|
-
* @const ValidatableByAttribute
|
|
147
|
-
* @type {ValidatableByAttributeMap}
|
|
148
|
-
* @readonly
|
|
149
|
-
* @memberOf module:ui-decorators
|
|
150
|
-
*/
|
|
151
|
-
export declare const ValidatableByAttribute: Record<string, Constructor<Validator>>;
|
|
152
|
-
/**
|
|
153
|
-
* @description Standard date format string for HTML5 date inputs
|
|
154
|
-
* @summary Format string for HTML5 date inputs (yyyy-MM-dd)
|
|
155
|
-
* This constant defines the standard date format string used for HTML5 date inputs.
|
|
156
|
-
*
|
|
157
|
-
* @const HTML5DateFormat
|
|
158
|
-
* @type {string}
|
|
159
|
-
* @readonly
|
|
160
|
-
* @memberOf module:ui-decorators
|
|
161
|
-
*/
|
|
162
|
-
export declare const HTML5DateFormat = "yyyy-MM-dd";
|
|
163
|
-
/**
|
|
164
|
-
* @description Collection of HTML5 input type values
|
|
165
|
-
* @summary Maps input type constants to their HTML attribute values
|
|
166
|
-
* This constant provides a mapping of input type constants to their corresponding
|
|
167
|
-
* HTML attribute values for use in form elements.
|
|
168
|
-
*
|
|
169
|
-
* @typedef {Object} HTML5InputTypesMap
|
|
170
|
-
* @property {string} BUTTON - Button input type
|
|
171
|
-
* @property {string} CHECKBOX - Checkbox input type
|
|
172
|
-
* @property {string} COLOR - Color picker input type
|
|
173
|
-
* @property {string} DATE - Date picker input type
|
|
174
|
-
* @property {string} DATETIME_LOCAL - Local datetime picker input type
|
|
175
|
-
* @property {string} EMAIL - Email input type with validation
|
|
176
|
-
* @property {string} FILE - File upload input type
|
|
177
|
-
* @property {string} HIDDEN - Hidden input type
|
|
178
|
-
* @property {string} IMAGE - Image input type
|
|
179
|
-
* @property {string} MONTH - Month picker input type
|
|
180
|
-
* @property {string} NUMBER - Numeric input type
|
|
181
|
-
* @property {string} PASSWORD - Password input type with masked text
|
|
182
|
-
* @property {string} RADIO - Radio button input type
|
|
183
|
-
* @property {string} RANGE - Range slider input type
|
|
184
|
-
* @property {string} RESET - Form reset button input type
|
|
185
|
-
* @property {string} SEARCH - Search input type
|
|
186
|
-
* @property {string} SUBMIT - Form submit button input type
|
|
187
|
-
* @property {string} TEL - Telephone number input type
|
|
188
|
-
* @property {string} TEXT - Basic text input type
|
|
189
|
-
* @property {string} TIME - Time picker input type
|
|
190
|
-
* @property {string} URL - URL input type with validation
|
|
191
|
-
* @property {string} WEEK - Week picker input type
|
|
192
|
-
*
|
|
193
|
-
* @const HTML5InputTypes
|
|
194
|
-
* @type {HTML5InputTypesMap}
|
|
195
|
-
* @readonly
|
|
196
|
-
* @memberOf module:ui-decorators
|
|
197
|
-
*/
|
|
198
|
-
export declare const HTML5InputTypes: {
|
|
199
|
-
BUTTON: string;
|
|
200
|
-
CHECKBOX: string;
|
|
201
|
-
COLOR: string;
|
|
202
|
-
DATE: "date";
|
|
203
|
-
DATETIME_LOCAL: string;
|
|
204
|
-
EMAIL: "email";
|
|
205
|
-
FILE: string;
|
|
206
|
-
HIDDEN: string;
|
|
207
|
-
IMAGE: string;
|
|
208
|
-
MONTH: string;
|
|
209
|
-
NUMBER: string;
|
|
210
|
-
PASSWORD: "password";
|
|
211
|
-
RADIO: string;
|
|
212
|
-
RANGE: string;
|
|
213
|
-
RESET: string;
|
|
214
|
-
SEARCH: string;
|
|
215
|
-
SUBMIT: string;
|
|
216
|
-
TEL: string;
|
|
217
|
-
TEXT: string;
|
|
218
|
-
TEXTAREA: string;
|
|
219
|
-
SELECT: string;
|
|
220
|
-
TIME: string;
|
|
221
|
-
URL: "url";
|
|
222
|
-
WEEK: string;
|
|
223
|
-
};
|
|
224
|
-
/**
|
|
225
|
-
* @description Array of HTML5 input types that use checkboxes
|
|
226
|
-
* @summary List of input types that represent checkable controls
|
|
227
|
-
* This constant defines an array of HTML5 input types that represent
|
|
228
|
-
* checkable controls (checkbox and radio).
|
|
229
|
-
*
|
|
230
|
-
* @const HTML5CheckTypes
|
|
231
|
-
* @type {string[]}
|
|
232
|
-
* @readonly
|
|
233
|
-
* @memberOf module:ui-decorators
|
|
234
|
-
*/
|
|
235
|
-
export declare const HTML5CheckTypes: string[];
|
|
236
|
-
/**
|
|
237
|
-
* @description Event name constants.
|
|
238
|
-
* @summary Contains constants for standardized event names used throughout the application.
|
|
239
|
-
* These constants ensure consistent event naming across components and make it easier to
|
|
240
|
-
* track and handle events. Each constant represents a specific application event type.
|
|
241
|
-
* @typedef {Object} ComponentEventNames
|
|
242
|
-
* @property {string} BackButtonClickEvent - Event fired when back button navigation ends
|
|
243
|
-
* @property {string} Render - Event after component initialize action occurs
|
|
244
|
-
* @property {string} Refresh - Event fired when a refresh action occurs
|
|
245
|
-
* @property {string} Click - Event fired when a click action occurs
|
|
246
|
-
* @property {string} Change - Event fired when a change action occurs
|
|
247
|
-
* @property {string} Submit - Event fired when a form submission occurs
|
|
248
|
-
* @property {string} ValidationError - Event fired when a validation error occurs
|
|
249
|
-
* @property {string} ThemeChange - Event fired when a theme change occurs
|
|
250
|
-
* @property {string} FormGroupLoaded - Event fired when a reactve form group is loaded
|
|
251
|
-
* @const ComponentEventNames
|
|
252
|
-
*/
|
|
253
|
-
export declare const ComponentEventNames: {
|
|
254
|
-
readonly Render: "render";
|
|
255
|
-
readonly BackButtonClickEvent: "backButtonNavigationEndEvent";
|
|
256
|
-
readonly Refresh: "RefreshEvent";
|
|
257
|
-
readonly Click: "ClickEvent";
|
|
258
|
-
readonly Change: "ChangeEvent";
|
|
259
|
-
readonly Submit: "SubmitEvent";
|
|
260
|
-
readonly ValidationError: "validationErrorEvent";
|
|
261
|
-
readonly ThemeChange: "themeChangeEvent";
|
|
262
|
-
readonly FormGroupLoaded: "formGroupLoadedEvent";
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* @description Lifecycle hook labels for repository transactions.
|
|
266
|
-
* @summary Provides canonical names for CRUD lifecycle callbacks so decorators and
|
|
267
|
-
* components can register work before or after repository operations in a consistent way.
|
|
268
|
-
* Each key maps to the string used when wiring transaction middleware.
|
|
269
|
-
* @const TransactionHooks
|
|
270
|
-
*/
|
|
271
|
-
export declare const TransactionHooks: {
|
|
272
|
-
readonly BeforeRead: "beforeRead";
|
|
273
|
-
readonly AfterRead: "afterRead";
|
|
274
|
-
readonly BeforeCreate: "beforeCreate";
|
|
275
|
-
readonly AfterCreate: "afterCreate";
|
|
276
|
-
readonly BeforeUpdate: "beforeUpdate";
|
|
277
|
-
readonly AfterUpdate: "afterUpdate";
|
|
278
|
-
readonly BeforeDelete: "beforeDelete";
|
|
279
|
-
readonly AfterDelete: "afterDelete";
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* @description Standardized size tokens for UI elements.
|
|
283
|
-
* @summary Defines the semantic size keywords supported by layout and form decorators.
|
|
284
|
-
* These values feed rendering engines so components can express sizing in a uniform vocabulary.
|
|
285
|
-
* @const ElementSizes
|
|
286
|
-
*/
|
|
287
|
-
export declare const ElementSizes: {
|
|
288
|
-
readonly xsmall: "xsmall";
|
|
289
|
-
readonly small: "small";
|
|
290
|
-
readonly medium: "medium";
|
|
291
|
-
readonly default: "default";
|
|
292
|
-
readonly large: "large";
|
|
293
|
-
readonly xLarge: "xlarge";
|
|
294
|
-
readonly "2xLarge": "2xlarge";
|
|
295
|
-
readonly auto: "auto";
|
|
296
|
-
readonly expand: "expand";
|
|
297
|
-
readonly block: "block";
|
|
298
|
-
readonly half: "half";
|
|
299
|
-
readonly full: "full";
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* @description Alignment keywords for element positioning.
|
|
303
|
-
* @summary Supplies canonical position values (horizontal and vertical) that decorators can
|
|
304
|
-
* use when aligning labels, controls, or helper text across components.
|
|
305
|
-
* @const ElementPositions
|
|
306
|
-
*/
|
|
307
|
-
export declare const ElementPositions: {
|
|
308
|
-
readonly left: "left";
|
|
309
|
-
readonly center: "center";
|
|
310
|
-
readonly right: "right";
|
|
311
|
-
readonly top: "top";
|
|
312
|
-
readonly bottom: "bottom";
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* @description Grid spacing presets for layout decorators.
|
|
316
|
-
* @summary Maps human-readable gap sizes to the tokens interpreted by the rendering engine
|
|
317
|
-
* when building CSS grid layouts, enabling predictable spacing across components.
|
|
318
|
-
* @const LayoutGridGaps
|
|
319
|
-
*/
|
|
320
|
-
export declare const LayoutGridGaps: {
|
|
321
|
-
readonly small: "small";
|
|
322
|
-
readonly medium: "medium";
|
|
323
|
-
readonly large: "large";
|
|
324
|
-
readonly collapse: "collapse";
|
|
325
|
-
readonly none: "";
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* @description Canonical action role identifiers for UI controls.
|
|
329
|
-
* @summary Enumerates the semantic roles a button or action may represent so decorators and
|
|
330
|
-
* renderers can attach consistent behaviors and styling (including CRUD verbs tied to
|
|
331
|
-
* `OperationKeys`).
|
|
332
|
-
* @const ActionRoles
|
|
333
|
-
*/
|
|
334
|
-
export declare const ActionRoles: {
|
|
335
|
-
readonly cancel: "cancel";
|
|
336
|
-
readonly confirm: "confirm";
|
|
337
|
-
readonly submit: "submit";
|
|
338
|
-
readonly clear: "clear";
|
|
339
|
-
readonly back: "back";
|
|
340
|
-
readonly create: OperationKeys.CREATE;
|
|
341
|
-
readonly read: OperationKeys.READ;
|
|
342
|
-
readonly update: OperationKeys.UPDATE;
|
|
343
|
-
readonly delete: OperationKeys.DELETE;
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* @description Allowed color scheme tokens for windowed surfaces.
|
|
347
|
-
* @summary Provides the supported theme identifiers exposed to consuming apps so they
|
|
348
|
-
* can target light, dark, or unset window color schemes in a predictable way.
|
|
349
|
-
* @const WindowColorSchemes
|
|
350
|
-
*/
|
|
351
|
-
export declare const WindowColorSchemes: {
|
|
352
|
-
readonly light: "light";
|
|
353
|
-
readonly dark: "dark";
|
|
354
|
-
readonly undefined: "undefined";
|
|
355
|
-
};
|
package/lib/ui/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/ui/constants.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,yEAoBwC;AAExC,2DAAwD;AAExD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,uCAAiB,CAAA;IACjB,qCAAe,CAAA;IACf,uCAAiB,CAAA;A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