@praxisui/core 0.0.1 → 1.0.0-beta.10
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/README.md +81 -21
- package/fesm2022/praxisui-core.mjs +290 -31
- package/fesm2022/praxisui-core.mjs.map +1 -1
- package/index.d.ts +257 -3
- package/package.json +12 -1
package/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ interface ColumnDefinition {
|
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* Renderizador de célula (Fase 1): opções básicas para ícone, imagem ou badge.
|
|
74
|
+
* Fase 2: expandido com tipos interativos/ricos (link, button, chip, progress, avatar, toggle, menu, html).
|
|
74
75
|
* Mantém compatibilidade com type/format/valueMapping; quando definido, tem precedência na exibição.
|
|
75
76
|
*/
|
|
76
77
|
renderer?: {
|
|
@@ -79,7 +80,7 @@ interface ColumnDefinition {
|
|
|
79
80
|
expr: string;
|
|
80
81
|
};
|
|
81
82
|
/** Tipo do renderizador */
|
|
82
|
-
type: 'icon' | 'image' | 'badge';
|
|
83
|
+
type: 'icon' | 'image' | 'badge' | 'link' | 'button' | 'chip' | 'progress' | 'avatar' | 'toggle' | 'menu' | 'html' | 'compose';
|
|
83
84
|
/** Configuração de ícone (Material/SVG por nome) */
|
|
84
85
|
icon?: {
|
|
85
86
|
/** Nome fixo do ícone (ex.: 'check_circle') */
|
|
@@ -126,7 +127,201 @@ interface ColumnDefinition {
|
|
|
126
127
|
/** Ícone opcional dentro do badge */
|
|
127
128
|
icon?: string;
|
|
128
129
|
};
|
|
130
|
+
/** Link (sanitizado) */
|
|
131
|
+
link?: {
|
|
132
|
+
text?: string;
|
|
133
|
+
textField?: string;
|
|
134
|
+
href?: string;
|
|
135
|
+
hrefField?: string;
|
|
136
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
137
|
+
rel?: string;
|
|
138
|
+
};
|
|
139
|
+
/** Botão (ação por linha) */
|
|
140
|
+
button?: {
|
|
141
|
+
label?: string;
|
|
142
|
+
labelField?: string;
|
|
143
|
+
icon?: string;
|
|
144
|
+
color?: 'primary' | 'accent' | 'warn' | string;
|
|
145
|
+
variant?: 'filled' | 'outlined' | 'text';
|
|
146
|
+
size?: 'sm' | 'md' | 'lg';
|
|
147
|
+
ariaLabel?: string;
|
|
148
|
+
disabledCondition?: string;
|
|
149
|
+
action?: {
|
|
150
|
+
id: string;
|
|
151
|
+
payloadExpr?: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
/** Chip (etiqueta leve) */
|
|
155
|
+
chip?: {
|
|
156
|
+
text?: string;
|
|
157
|
+
textField?: string;
|
|
158
|
+
color?: string;
|
|
159
|
+
icon?: string;
|
|
160
|
+
variant?: 'filled' | 'outlined' | 'soft';
|
|
161
|
+
};
|
|
162
|
+
/** Barra de progresso leve */
|
|
163
|
+
progress?: {
|
|
164
|
+
valueExpr: string;
|
|
165
|
+
color?: string;
|
|
166
|
+
showLabel?: boolean;
|
|
167
|
+
};
|
|
168
|
+
/** Avatar (imagem ou iniciais) */
|
|
169
|
+
avatar?: {
|
|
170
|
+
src?: string;
|
|
171
|
+
srcField?: string;
|
|
172
|
+
alt?: string;
|
|
173
|
+
altField?: string;
|
|
174
|
+
initialsExpr?: string;
|
|
175
|
+
shape?: 'square' | 'rounded' | 'circle';
|
|
176
|
+
size?: number;
|
|
177
|
+
};
|
|
178
|
+
/** Alternância (toggle) com ação */
|
|
179
|
+
toggle?: {
|
|
180
|
+
stateExpr: string;
|
|
181
|
+
disabledCondition?: string;
|
|
182
|
+
action?: {
|
|
183
|
+
id: string;
|
|
184
|
+
payloadExpr?: string;
|
|
185
|
+
};
|
|
186
|
+
ariaLabel?: string;
|
|
187
|
+
};
|
|
188
|
+
/** Menu de ações
|
|
189
|
+
* itemsExpr → Array<{ label: string; icon?: string; id: string; payloadExpr?: string; visibleCondition?: string }> */
|
|
190
|
+
menu?: {
|
|
191
|
+
itemsExpr: string;
|
|
192
|
+
ariaLabel?: string;
|
|
193
|
+
};
|
|
194
|
+
/** HTML (sanitizado) com tokens [[field]] */
|
|
195
|
+
html?: {
|
|
196
|
+
template: string;
|
|
197
|
+
sanitize?: 'strict' | 'basic';
|
|
198
|
+
emptyFallback?: string;
|
|
199
|
+
};
|
|
200
|
+
/** Compose (multi-itens) */
|
|
201
|
+
compose?: {
|
|
202
|
+
items: Array<{
|
|
203
|
+
type: 'icon';
|
|
204
|
+
icon?: {
|
|
205
|
+
name?: string;
|
|
206
|
+
nameField?: string;
|
|
207
|
+
color?: string;
|
|
208
|
+
size?: number;
|
|
209
|
+
ariaLabel?: string;
|
|
210
|
+
};
|
|
211
|
+
} | {
|
|
212
|
+
type: 'image';
|
|
213
|
+
image?: {
|
|
214
|
+
src?: string;
|
|
215
|
+
srcField?: string;
|
|
216
|
+
alt?: string;
|
|
217
|
+
altField?: string;
|
|
218
|
+
width?: number;
|
|
219
|
+
height?: number;
|
|
220
|
+
shape?: 'square' | 'rounded' | 'circle';
|
|
221
|
+
fit?: 'cover' | 'contain';
|
|
222
|
+
lazy?: boolean;
|
|
223
|
+
};
|
|
224
|
+
} | {
|
|
225
|
+
type: 'badge';
|
|
226
|
+
badge?: {
|
|
227
|
+
text?: string;
|
|
228
|
+
textField?: string;
|
|
229
|
+
color?: string;
|
|
230
|
+
variant?: 'filled' | 'outlined' | 'soft';
|
|
231
|
+
icon?: string;
|
|
232
|
+
};
|
|
233
|
+
} | {
|
|
234
|
+
type: 'link';
|
|
235
|
+
link?: {
|
|
236
|
+
text?: string;
|
|
237
|
+
textField?: string;
|
|
238
|
+
href?: string;
|
|
239
|
+
hrefField?: string;
|
|
240
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
241
|
+
rel?: string;
|
|
242
|
+
};
|
|
243
|
+
} | {
|
|
244
|
+
type: 'button';
|
|
245
|
+
button?: {
|
|
246
|
+
label?: string;
|
|
247
|
+
labelField?: string;
|
|
248
|
+
icon?: string;
|
|
249
|
+
color?: string;
|
|
250
|
+
variant?: 'filled' | 'outlined' | 'text';
|
|
251
|
+
size?: 'sm' | 'md' | 'lg';
|
|
252
|
+
disabledCondition?: string;
|
|
253
|
+
action?: {
|
|
254
|
+
id: string;
|
|
255
|
+
payloadExpr?: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
} | {
|
|
259
|
+
type: 'chip';
|
|
260
|
+
chip?: {
|
|
261
|
+
text?: string;
|
|
262
|
+
textField?: string;
|
|
263
|
+
color?: string;
|
|
264
|
+
icon?: string;
|
|
265
|
+
variant?: 'filled' | 'outlined' | 'soft';
|
|
266
|
+
};
|
|
267
|
+
} | {
|
|
268
|
+
type: 'progress';
|
|
269
|
+
progress?: {
|
|
270
|
+
valueExpr: string;
|
|
271
|
+
color?: string;
|
|
272
|
+
showLabel?: boolean;
|
|
273
|
+
};
|
|
274
|
+
} | {
|
|
275
|
+
type: 'avatar';
|
|
276
|
+
avatar?: {
|
|
277
|
+
src?: string;
|
|
278
|
+
srcField?: string;
|
|
279
|
+
alt?: string;
|
|
280
|
+
altField?: string;
|
|
281
|
+
initialsExpr?: string;
|
|
282
|
+
shape?: 'square' | 'rounded' | 'circle';
|
|
283
|
+
size?: number;
|
|
284
|
+
};
|
|
285
|
+
} | {
|
|
286
|
+
type: 'toggle';
|
|
287
|
+
toggle?: {
|
|
288
|
+
stateExpr: string;
|
|
289
|
+
disabledCondition?: string;
|
|
290
|
+
action?: {
|
|
291
|
+
id: string;
|
|
292
|
+
payloadExpr?: string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
} | {
|
|
296
|
+
type: 'menu';
|
|
297
|
+
menu?: {
|
|
298
|
+
itemsExpr: string;
|
|
299
|
+
ariaLabel?: string;
|
|
300
|
+
};
|
|
301
|
+
} | {
|
|
302
|
+
type: 'html';
|
|
303
|
+
html?: {
|
|
304
|
+
template: string;
|
|
305
|
+
sanitize?: 'strict' | 'basic';
|
|
306
|
+
emptyFallback?: string;
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
layout?: {
|
|
310
|
+
direction?: 'row' | 'column';
|
|
311
|
+
gap?: number;
|
|
312
|
+
align?: 'start' | 'center' | 'end';
|
|
313
|
+
wrap?: boolean;
|
|
314
|
+
ellipsis?: boolean;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
129
317
|
};
|
|
318
|
+
/** Overrides condicionais do renderer por linha (first‑match wins) */
|
|
319
|
+
conditionalRenderers?: Array<{
|
|
320
|
+
condition: string;
|
|
321
|
+
renderer: Partial<ColumnDefinition['renderer']>;
|
|
322
|
+
description?: string;
|
|
323
|
+
enabled?: boolean;
|
|
324
|
+
}>;
|
|
130
325
|
/**
|
|
131
326
|
* Regras de estilo condicionais por coluna (experimental)
|
|
132
327
|
* Cada regra contém uma expressão/DSL em `condition` e o efeito visual a aplicar.
|
|
@@ -6076,6 +6271,65 @@ declare function normalizeFormMetadata(list: FieldMetadata[] | undefined | null)
|
|
|
6076
6271
|
/** Normalize a full FormConfig object */
|
|
6077
6272
|
declare function normalizeFormConfig(config: FormConfig): FormConfig;
|
|
6078
6273
|
|
|
6274
|
+
/** Minimal metadata about the backend schema source. */
|
|
6275
|
+
interface SchemaMetaInfo {
|
|
6276
|
+
/** API path used to resolve the schema (e.g., /api/employees/all or /filter) */
|
|
6277
|
+
path: string;
|
|
6278
|
+
/** Operation used when fetching the schema (get|post) */
|
|
6279
|
+
operation: string;
|
|
6280
|
+
/** Schema type requested (response|request) */
|
|
6281
|
+
schemaType: string;
|
|
6282
|
+
/** Optional strong hash returned by server (X-Schema-Hash/ETag) */
|
|
6283
|
+
schemaHash?: string;
|
|
6284
|
+
/** Optional resource id field name provided by server */
|
|
6285
|
+
idField?: string;
|
|
6286
|
+
/** API origin used to fetch (useful when not same-origin) */
|
|
6287
|
+
apiOrigin?: string;
|
|
6288
|
+
/** Client-side composed id (path|operation|schemaType|...) */
|
|
6289
|
+
schemaId?: string;
|
|
6290
|
+
}
|
|
6291
|
+
/** Context consumed by SchemaViewer to present component/config/schema metadata. */
|
|
6292
|
+
interface SchemaViewerContext {
|
|
6293
|
+
/** Registered component id (ComponentMetadataRegistry) */
|
|
6294
|
+
componentId: string;
|
|
6295
|
+
/** Optional user-friendly title for the viewer */
|
|
6296
|
+
title?: string;
|
|
6297
|
+
/** Config JSON used by the example (e.g., TabsMetadata, TableConfig) */
|
|
6298
|
+
rawConfig?: unknown;
|
|
6299
|
+
/** Optional pre-computed effective config (raw + defaults) */
|
|
6300
|
+
effectiveConfig?: unknown;
|
|
6301
|
+
/** Raw backend schema JSON (OpenAPI/JSON Schema + x-ui) */
|
|
6302
|
+
backendSchema?: unknown;
|
|
6303
|
+
/** Optional meta associated with backendSchema */
|
|
6304
|
+
schemaMeta?: SchemaMetaInfo;
|
|
6305
|
+
/** Optional already normalized field definitions */
|
|
6306
|
+
normalizedFields?: FieldDefinition[];
|
|
6307
|
+
/** Free-form notes shown on top of the viewer */
|
|
6308
|
+
notes?: string;
|
|
6309
|
+
}
|
|
6310
|
+
|
|
6311
|
+
declare class SchemaViewerComponent implements OnChanges {
|
|
6312
|
+
private readonly registry;
|
|
6313
|
+
private readonly normalizer;
|
|
6314
|
+
private readonly injected;
|
|
6315
|
+
context?: SchemaViewerContext;
|
|
6316
|
+
private _ctx;
|
|
6317
|
+
ctx: i0.Signal<SchemaViewerContext | undefined>;
|
|
6318
|
+
private _componentMeta;
|
|
6319
|
+
componentMeta: i0.Signal<ComponentDocMeta | undefined>;
|
|
6320
|
+
private _normalizedFields;
|
|
6321
|
+
normalizedFields: i0.Signal<FieldDefinition[]>;
|
|
6322
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
6323
|
+
private refresh;
|
|
6324
|
+
hasAnyData(): boolean;
|
|
6325
|
+
copyAll(): void;
|
|
6326
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaViewerComponent, never>;
|
|
6327
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaViewerComponent, "praxis-schema-viewer", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
/** Optional DI token used by SchemaViewer when input is not provided. */
|
|
6331
|
+
declare const SCHEMA_VIEWER_CONTEXT: InjectionToken<SchemaViewerContext>;
|
|
6332
|
+
|
|
6079
6333
|
interface SchemaIdParams {
|
|
6080
6334
|
path: string;
|
|
6081
6335
|
operation?: string;
|
|
@@ -6259,5 +6513,5 @@ declare function provideFormHookPresets(presets: Array<FormHookPreset>): Provide
|
|
|
6259
6513
|
/** Register a whitelist of allowed hook ids/patterns. */
|
|
6260
6514
|
declare function provideHookWhitelist(allowed: Array<string | RegExp>): Provider[];
|
|
6261
6515
|
|
|
6262
|
-
export { API_URL, AllowedFileTypes, ApiEndpoint, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentMetadataRegistry, ConnectionManagerService, DEFAULT_TABLE_CONFIG, DynamicFormService, DynamicGridPageComponent, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EmptyStateCardComponent, ErrorMessageService, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FormHooksRegistry, GLOBAL_CONFIG, GenericCrudService, GlobalConfigService, IconPickerService, IconPosition, IconSize, LocalConnectionStorage, LocalStorageCacheAdapter, LocalStorageConfigService, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, OverlayDeciderService, PraxisCore, PraxisIconDirective, PraxisIconPickerComponent, ResourceQuickConnectComponent, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SchemaMetadataClient, SchemaNormalizerService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryService, ValidationPattern, applyLocalCustomizations$1 as applyLocalCustomizations, applyLocalCustomizations as applyLocalFormCustomizations, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildHeaders, buildPageKey, buildSchemaId, buildValidatorsFromValidatorOptions, cancelIfCpfInvalidHook, cloneTableConfig, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, conditionalAsyncValidator, convertFormLayoutToConfig, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createEmptyFormConfig, createPersistedPage, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, deepMerge, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, fetchWithETag, fileTypeValidator, fillUndefined, generateId, getEssentialConfig, getReferencedFieldMetadata, getTextTransformer, isCssTextTransform, isTableConfigV2, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, matchFieldValidator, maxFileSizeValidator, mergeFieldMetadata, mergeTableConfigs, minWordsValidator, normalizeFieldConstraints, normalizeFormConfig, normalizeFormMetadata, normalizePath, notifySuccessHook, prefillFromContextHook, provideDefaultFormHooks, provideFormHookPresets, provideFormHooks, provideGlobalConfig, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, provideRemoteGlobalConfig, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, removeDiacritics, reportTelemetryHookFactory, requiredCheckedValidator, resolveHidden, resolveOffset, resolveOrder, resolveSpan, slugify, stripMasksHook, syncWithServerMetadata, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, trim, uniqueAsyncValidator, urlValidator, withMessage };
|
|
6263
|
-
export type { AccessibilityConfig, ActionDefinition, ActionMessagesConfig, AnimationConfig, AnnouncementConfig, ApiUrlConfig, ApiUrlEntry, BackConfig, BaseMaterialInputMetadata, BatchDeleteOptions, BatchDeleteProgress, BatchDeleteResult, BorderConfig, Breakpoint, BuiltValidators, BulkAction, BulkActionsConfig, CacheAdapter, CacheConfig, CacheEntry, ColorConfig, ColumnAlign, ColumnDefinition, ColumnHidden, ColumnOffset, ColumnOrder, ColumnSpan, ComponentDocMeta, ComponentMetadata, ConfigMetadata, ConfigStorage, ConfirmationConfig, ConnectionConfigV1, ConnectionStorage, ContextAction, ContextActionsConfig, BackConfig as CoreBackConfig, CoreFieldMetadata, CrudOperationOptions, CsvExportConfig, CurrencyLocaleConfig, CursorPage, CursorRequest, CustomizationLog, DataConfig, DataTransformation, DataValidationConfig, DateRangePreset, DateRangeValue, DateTimeLocaleConfig, DebounceConfig, DeviceKind, DraggingConfig, ElevationConfig, EmptyAction, EmptyStateConfig, EndpointConfig, EnhancedValidationConfig, ExcelExportConfig, ExcelStylingConfig, ExportConfig, ExportFormat, ExportMessagesConfig, ExportTemplate, FetchWithEtagParams, FetchWithEtagResult, FieldConflict, FieldDefinition, FieldMetadata, FieldModification, FieldOption, FieldsetLayout, FilterOptions, FilteringConfig, FormActionButton, FormActionConfirmationEvent, FormActionsLayout, FormApiLayout, FormBehaviorLayout, FormColumn, FormConfig, FormConfigMetadata, FormConfigState, FormCustomActionEvent, FormEntityEvent, FormHook, FormHookContext, FormHookDeclaration, FormHookDeclarationLite, FormHookOutcome, FormHookPreset, FormHookPresetMatch, FormHookStage, FormHookStatus, FormHooksLayout, FormInitializationError, FormLayout, FormLayoutRule, FormMessagesLayout, FormMetadataLayout, FormOpenMode, FormReadyEvent, FormRow, FormRowLayout, FormRuleContext, FormSection, FormSubmitEvent, FormValidationEvent, FormValueChangeEvent, FormattingLocaleConfig, GeneralExportConfig, GetSchemaParams, GlobalConfig, GlobalCrudActionDefaults, GlobalCrudConfig, GlobalCrudDefaults, GlobalDialogAction, GlobalDialogAnimation, GlobalDialogAriaRole, GlobalDialogConfig, GlobalDialogConfigEntry, GlobalDialogPosition, GlobalDialogStyles, GlobalDynamicFieldsAsyncSelectConfig, GlobalDynamicFieldsCascadeConfig, GlobalDynamicFieldsConfig, GlobalTableConfig, GridItemLayout, GridPageDefinition, GridPageDefinitionWithIds, GridWidgetInstance, HookResolver, InteractionConfig, JsonExportConfig, KeyboardAccessibilityConfig, LazyLoadingConfig, LegacyTableConfig, LoadingConfig, LocalizationConfig, LocateRequest, MarginConfig, MaterialAutocompleteMetadata, MaterialButtonMetadata, MaterialButtonToggleMetadata, MaterialCheckboxMetadata, MaterialChipsMetadata, MaterialColorInputMetadata, MaterialColorPickerMetadata, MaterialCpfCnpjMetadata, MaterialCurrencyMetadata, MaterialDateInputMetadata, MaterialDateRangeMetadata, MaterialDatepickerMetadata, MaterialDatetimeLocalInputMetadata, MaterialDesignConfig, MaterialEmailInputMetadata, MaterialEmailMetadata, MaterialInputMetadata, MaterialMonthInputMetadata, MaterialMultiSelectTreeMetadata, MaterialNumericMetadata, MaterialPasswordMetadata, MaterialPhoneMetadata, MaterialPriceRangeMetadata, MaterialRadioMetadata, MaterialRangeSliderMetadata, MaterialRatingMetadata, MaterialSearchInputMetadata, MaterialSelectMetadata, MaterialSelectionListMetadata, MaterialSliderMetadata, MaterialTextareaMetadata, MaterialTimeInputMetadata, MaterialTimeRangeMetadata, MaterialTimepickerMetadata, MaterialToggleMetadata, MaterialTransferListMetadata, MaterialTreeNode, MaterialTreeSelectMetadata, MaterialUrlInputMetadata, MaterialWeekInputMetadata, MaterialYearInputMetadata, MemoryConfig, MessageTemplate, MessagesConfig, NestedFieldsetLayout, NumberLocaleConfig, OptionDTO, OverlayDecider, OverlayDecision, OverlayDecisionContext, OverlayDecisionMatrix, OverlayPattern, OverlayRange, OverlayRule, OverlayRuleMatch, OverlayThresholds, Page, PageIdentity, PageableRequest, PaginationConfig, PartialFieldMetadata, PdfExportConfig, PerformanceConfig, PersistedPageConfig, PersistedWidgetInstance, PlainObject, PluginConfig, PollingConfig, PriceRangeValue, RangeSliderValue, RenderingConfig, ResizingConfig, ResponsiveConfig, RowAction, RowActionsConfig, RunHooksResult, SchemaIdParams, SelectionConfig, SerializableFieldMetadata, SettingsPanelBridge, SettingsPanelOpenContent, SettingsPanelOpenOptions, SettingsPanelRef, SettingsValueProvider, SortingConfig, SpacingConfig, StateMessagesConfig, SyncConfig, SyncResult, TableActionsConfig, TableAppearanceConfig, TableBehaviorConfig, TableConfig, TableConfigV2 as TableConfigModern, TableConfigState, TableConfigV2, TelemetryEvent, TextTransformApply, TextTransformName, ThemeConfig, ToolbarAction, ToolbarConfig, ToolbarFilterConfig, ToolbarLayoutConfig, ToolbarSettingsConfig, TypographyConfig, ValidationContext, ValidationError, ValidationMessagesConfig, ValidationResult, ValidationRule, ValidatorFunction, ValidatorOptions, VirtualizationConfig, WidgetConnection, WidgetDefinition, WidgetInstance, WidgetPageDefinition };
|
|
6516
|
+
export { API_URL, AllowedFileTypes, ApiEndpoint, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentMetadataRegistry, ConnectionManagerService, DEFAULT_TABLE_CONFIG, DynamicFormService, DynamicGridPageComponent, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EmptyStateCardComponent, ErrorMessageService, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FormHooksRegistry, GLOBAL_CONFIG, GenericCrudService, GlobalConfigService, IconPickerService, IconPosition, IconSize, LocalConnectionStorage, LocalStorageCacheAdapter, LocalStorageConfigService, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, OverlayDeciderService, PraxisCore, PraxisIconDirective, PraxisIconPickerComponent, ResourceQuickConnectComponent, SCHEMA_VIEWER_CONTEXT, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryService, ValidationPattern, applyLocalCustomizations$1 as applyLocalCustomizations, applyLocalCustomizations as applyLocalFormCustomizations, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildHeaders, buildPageKey, buildSchemaId, buildValidatorsFromValidatorOptions, cancelIfCpfInvalidHook, cloneTableConfig, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, conditionalAsyncValidator, convertFormLayoutToConfig, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createEmptyFormConfig, createPersistedPage, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, deepMerge, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, fetchWithETag, fileTypeValidator, fillUndefined, generateId, getEssentialConfig, getReferencedFieldMetadata, getTextTransformer, isCssTextTransform, isTableConfigV2, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, matchFieldValidator, maxFileSizeValidator, mergeFieldMetadata, mergeTableConfigs, minWordsValidator, normalizeFieldConstraints, normalizeFormConfig, normalizeFormMetadata, normalizePath, notifySuccessHook, prefillFromContextHook, provideDefaultFormHooks, provideFormHookPresets, provideFormHooks, provideGlobalConfig, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, provideRemoteGlobalConfig, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, removeDiacritics, reportTelemetryHookFactory, requiredCheckedValidator, resolveHidden, resolveOffset, resolveOrder, resolveSpan, slugify, stripMasksHook, syncWithServerMetadata, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, trim, uniqueAsyncValidator, urlValidator, withMessage };
|
|
6517
|
+
export type { AccessibilityConfig, ActionDefinition, ActionMessagesConfig, AnimationConfig, AnnouncementConfig, ApiUrlConfig, ApiUrlEntry, BackConfig, BaseMaterialInputMetadata, BatchDeleteOptions, BatchDeleteProgress, BatchDeleteResult, BorderConfig, Breakpoint, BuiltValidators, BulkAction, BulkActionsConfig, CacheAdapter, CacheConfig, CacheEntry, ColorConfig, ColumnAlign, ColumnDefinition, ColumnHidden, ColumnOffset, ColumnOrder, ColumnSpan, ComponentDocMeta, ComponentMetadata, ConfigMetadata, ConfigStorage, ConfirmationConfig, ConnectionConfigV1, ConnectionStorage, ContextAction, ContextActionsConfig, BackConfig as CoreBackConfig, CoreFieldMetadata, CrudOperationOptions, CsvExportConfig, CurrencyLocaleConfig, CursorPage, CursorRequest, CustomizationLog, DataConfig, DataTransformation, DataValidationConfig, DateRangePreset, DateRangeValue, DateTimeLocaleConfig, DebounceConfig, DeviceKind, DraggingConfig, ElevationConfig, EmptyAction, EmptyStateConfig, EndpointConfig, EnhancedValidationConfig, ExcelExportConfig, ExcelStylingConfig, ExportConfig, ExportFormat, ExportMessagesConfig, ExportTemplate, FetchWithEtagParams, FetchWithEtagResult, FieldConflict, FieldDefinition, FieldMetadata, FieldModification, FieldOption, FieldsetLayout, FilterOptions, FilteringConfig, FormActionButton, FormActionConfirmationEvent, FormActionsLayout, FormApiLayout, FormBehaviorLayout, FormColumn, FormConfig, FormConfigMetadata, FormConfigState, FormCustomActionEvent, FormEntityEvent, FormHook, FormHookContext, FormHookDeclaration, FormHookDeclarationLite, FormHookOutcome, FormHookPreset, FormHookPresetMatch, FormHookStage, FormHookStatus, FormHooksLayout, FormInitializationError, FormLayout, FormLayoutRule, FormMessagesLayout, FormMetadataLayout, FormOpenMode, FormReadyEvent, FormRow, FormRowLayout, FormRuleContext, FormSection, FormSubmitEvent, FormValidationEvent, FormValueChangeEvent, FormattingLocaleConfig, GeneralExportConfig, GetSchemaParams, GlobalConfig, GlobalCrudActionDefaults, GlobalCrudConfig, GlobalCrudDefaults, GlobalDialogAction, GlobalDialogAnimation, GlobalDialogAriaRole, GlobalDialogConfig, GlobalDialogConfigEntry, GlobalDialogPosition, GlobalDialogStyles, GlobalDynamicFieldsAsyncSelectConfig, GlobalDynamicFieldsCascadeConfig, GlobalDynamicFieldsConfig, GlobalTableConfig, GridItemLayout, GridPageDefinition, GridPageDefinitionWithIds, GridWidgetInstance, HookResolver, InteractionConfig, JsonExportConfig, KeyboardAccessibilityConfig, LazyLoadingConfig, LegacyTableConfig, LoadingConfig, LocalizationConfig, LocateRequest, MarginConfig, MaterialAutocompleteMetadata, MaterialButtonMetadata, MaterialButtonToggleMetadata, MaterialCheckboxMetadata, MaterialChipsMetadata, MaterialColorInputMetadata, MaterialColorPickerMetadata, MaterialCpfCnpjMetadata, MaterialCurrencyMetadata, MaterialDateInputMetadata, MaterialDateRangeMetadata, MaterialDatepickerMetadata, MaterialDatetimeLocalInputMetadata, MaterialDesignConfig, MaterialEmailInputMetadata, MaterialEmailMetadata, MaterialInputMetadata, MaterialMonthInputMetadata, MaterialMultiSelectTreeMetadata, MaterialNumericMetadata, MaterialPasswordMetadata, MaterialPhoneMetadata, MaterialPriceRangeMetadata, MaterialRadioMetadata, MaterialRangeSliderMetadata, MaterialRatingMetadata, MaterialSearchInputMetadata, MaterialSelectMetadata, MaterialSelectionListMetadata, MaterialSliderMetadata, MaterialTextareaMetadata, MaterialTimeInputMetadata, MaterialTimeRangeMetadata, MaterialTimepickerMetadata, MaterialToggleMetadata, MaterialTransferListMetadata, MaterialTreeNode, MaterialTreeSelectMetadata, MaterialUrlInputMetadata, MaterialWeekInputMetadata, MaterialYearInputMetadata, MemoryConfig, MessageTemplate, MessagesConfig, NestedFieldsetLayout, NumberLocaleConfig, OptionDTO, OverlayDecider, OverlayDecision, OverlayDecisionContext, OverlayDecisionMatrix, OverlayPattern, OverlayRange, OverlayRule, OverlayRuleMatch, OverlayThresholds, Page, PageIdentity, PageableRequest, PaginationConfig, PartialFieldMetadata, PdfExportConfig, PerformanceConfig, PersistedPageConfig, PersistedWidgetInstance, PlainObject, PluginConfig, PollingConfig, PriceRangeValue, RangeSliderValue, RenderingConfig, ResizingConfig, ResponsiveConfig, RowAction, RowActionsConfig, RunHooksResult, SchemaIdParams, SchemaMetaInfo, SchemaViewerContext, SelectionConfig, SerializableFieldMetadata, SettingsPanelBridge, SettingsPanelOpenContent, SettingsPanelOpenOptions, SettingsPanelRef, SettingsValueProvider, SortingConfig, SpacingConfig, StateMessagesConfig, SyncConfig, SyncResult, TableActionsConfig, TableAppearanceConfig, TableBehaviorConfig, TableConfig, TableConfigV2 as TableConfigModern, TableConfigState, TableConfigV2, TelemetryEvent, TextTransformApply, TextTransformName, ThemeConfig, ToolbarAction, ToolbarConfig, ToolbarFilterConfig, ToolbarLayoutConfig, ToolbarSettingsConfig, TypographyConfig, ValidationContext, ValidationError, ValidationMessagesConfig, ValidationResult, ValidationRule, ValidatorFunction, ValidatorOptions, VirtualizationConfig, WidgetConnection, WidgetDefinition, WidgetInstance, WidgetPageDefinition };
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "1.0.0-beta.10",
|
|
4
|
+
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
4
5
|
"peerDependencies": {
|
|
5
6
|
"@angular/common": "^20.0.0",
|
|
6
7
|
"@angular/core": "^20.0.0",
|
|
@@ -22,6 +23,16 @@
|
|
|
22
23
|
"bugs": {
|
|
23
24
|
"url": "https://github.com/codexrodrigues/praxis/issues"
|
|
24
25
|
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"angular",
|
|
28
|
+
"praxisui",
|
|
29
|
+
"core",
|
|
30
|
+
"ui",
|
|
31
|
+
"library",
|
|
32
|
+
"forms",
|
|
33
|
+
"table",
|
|
34
|
+
"components"
|
|
35
|
+
],
|
|
25
36
|
"sideEffects": false,
|
|
26
37
|
"module": "fesm2022/praxisui-core.mjs",
|
|
27
38
|
"typings": "index.d.ts",
|