@praxisui/core 1.0.0-beta.44 → 1.0.0-beta.46
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 +6 -0
- package/fesm2022/praxisui-core.mjs +118 -0
- package/fesm2022/praxisui-core.mjs.map +1 -1
- package/index.d.ts +152 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,12 @@ Observação: os IDs de widgets usados na página devem estar registrados via `C
|
|
|
115
115
|
[`public-api.ts`](https://github.com/codexrodrigues/praxis/blob/main/frontend-libs/praxis-ui-workspace/projects/praxis-core/src/public-api.ts)
|
|
116
116
|
para a lista consolidada de serviços, tokens, modelos e utilitários disponíveis para importação.
|
|
117
117
|
|
|
118
|
+
## 📄 Documentacao Tecnica da Lib
|
|
119
|
+
|
|
120
|
+
- `projects/praxis-core/docs/connection-editor.md`
|
|
121
|
+
- `projects/praxis-core/docs/dynamic-gridster-page.md`
|
|
122
|
+
- `projects/praxis-core/docs/schema-flow.md`
|
|
123
|
+
|
|
118
124
|
## ⚙️ Global Config (bootstrap)
|
|
119
125
|
|
|
120
126
|
- Use `provideGlobalConfigTenant(...)` para definir o tenant e bloquear o bootstrap até a config remota ser carregada.
|
|
@@ -3041,6 +3041,124 @@ function createDefaultTableConfig() {
|
|
|
3041
3041
|
localDataMode: {
|
|
3042
3042
|
enabled: false,
|
|
3043
3043
|
},
|
|
3044
|
+
expansion: {
|
|
3045
|
+
enabled: false,
|
|
3046
|
+
contractVersion: '1.0.0',
|
|
3047
|
+
identity: {
|
|
3048
|
+
rowKeySource: 'table.idField',
|
|
3049
|
+
requireStableIdField: true,
|
|
3050
|
+
},
|
|
3051
|
+
interaction: {
|
|
3052
|
+
trigger: 'icon',
|
|
3053
|
+
toggleOnRowClick: false,
|
|
3054
|
+
keyboard: {
|
|
3055
|
+
profile: 'disclosure',
|
|
3056
|
+
enterSpace: true,
|
|
3057
|
+
arrowLeftRight: false,
|
|
3058
|
+
},
|
|
3059
|
+
},
|
|
3060
|
+
limits: {
|
|
3061
|
+
allowMultiple: false,
|
|
3062
|
+
maxExpandedRows: 1,
|
|
3063
|
+
onOverflow: 'collapseOldest',
|
|
3064
|
+
},
|
|
3065
|
+
collapseOn: {
|
|
3066
|
+
sortChange: true,
|
|
3067
|
+
pageChange: true,
|
|
3068
|
+
filterChange: true,
|
|
3069
|
+
dataRefresh: true,
|
|
3070
|
+
},
|
|
3071
|
+
detail: {
|
|
3072
|
+
schemaContract: {
|
|
3073
|
+
kind: 'praxis.detail.schema',
|
|
3074
|
+
version: '1.0.0',
|
|
3075
|
+
compat: 'semver',
|
|
3076
|
+
allowedNodes: [
|
|
3077
|
+
'layout',
|
|
3078
|
+
'stack',
|
|
3079
|
+
'tabs',
|
|
3080
|
+
'tab',
|
|
3081
|
+
'card',
|
|
3082
|
+
'value',
|
|
3083
|
+
'action',
|
|
3084
|
+
'list',
|
|
3085
|
+
'formRef',
|
|
3086
|
+
'tableRef',
|
|
3087
|
+
'chartRef',
|
|
3088
|
+
'richText',
|
|
3089
|
+
'templateRef',
|
|
3090
|
+
],
|
|
3091
|
+
sanitization: 'strict',
|
|
3092
|
+
},
|
|
3093
|
+
source: {
|
|
3094
|
+
mode: 'inline',
|
|
3095
|
+
inlineSchema: {
|
|
3096
|
+
layout: 'stack',
|
|
3097
|
+
items: [],
|
|
3098
|
+
},
|
|
3099
|
+
fallbackMode: 'none',
|
|
3100
|
+
},
|
|
3101
|
+
rendering: {
|
|
3102
|
+
strategy: 'registry',
|
|
3103
|
+
registryId: 'praxis.detail.default',
|
|
3104
|
+
hostLayout: 'auto',
|
|
3105
|
+
fallbackNodePolicy: 'failClosed',
|
|
3106
|
+
},
|
|
3107
|
+
height: {
|
|
3108
|
+
mode: 'fixed',
|
|
3109
|
+
px: 160,
|
|
3110
|
+
},
|
|
3111
|
+
lazyLoad: {
|
|
3112
|
+
enabled: false,
|
|
3113
|
+
cache: { enabled: true, ttlMs: 300000 },
|
|
3114
|
+
retry: { maxAttempts: 2 },
|
|
3115
|
+
cancelOnCollapse: true,
|
|
3116
|
+
dedupeByRowKey: true,
|
|
3117
|
+
},
|
|
3118
|
+
},
|
|
3119
|
+
virtualization: {
|
|
3120
|
+
policy: 'fixed-height-only',
|
|
3121
|
+
},
|
|
3122
|
+
persistence: {
|
|
3123
|
+
enabled: false,
|
|
3124
|
+
storageKey: 'expanded-rows',
|
|
3125
|
+
storageKeyStrategy: {
|
|
3126
|
+
namespace: 'praxis.table.expansion',
|
|
3127
|
+
version: 'v1',
|
|
3128
|
+
hashScope: true,
|
|
3129
|
+
},
|
|
3130
|
+
scope: ['tableId'],
|
|
3131
|
+
clearOn: ['resetPreferences', 'logout', 'tenantChange'],
|
|
3132
|
+
},
|
|
3133
|
+
security: {
|
|
3134
|
+
eventExposureDefault: {
|
|
3135
|
+
rowId: 'hashed',
|
|
3136
|
+
expandedKeys: 'none',
|
|
3137
|
+
},
|
|
3138
|
+
allowRawExposure: false,
|
|
3139
|
+
},
|
|
3140
|
+
deepLink: {
|
|
3141
|
+
enabled: false,
|
|
3142
|
+
queryParam: 'expanded',
|
|
3143
|
+
encoding: 'csv',
|
|
3144
|
+
keyFormat: '^[a-zA-Z0-9_-]{1,64}$',
|
|
3145
|
+
maxKeys: 5,
|
|
3146
|
+
maxLength: 256,
|
|
3147
|
+
parsing: {
|
|
3148
|
+
duplicateParams: 'firstWins',
|
|
3149
|
+
decodePasses: 1,
|
|
3150
|
+
trimWhitespace: true,
|
|
3151
|
+
sortKeysBeforeApply: true,
|
|
3152
|
+
},
|
|
3153
|
+
integrity: {
|
|
3154
|
+
mode: 'opaqueToken',
|
|
3155
|
+
},
|
|
3156
|
+
privacy: {
|
|
3157
|
+
mode: 'denyByDefault',
|
|
3158
|
+
allowListTables: [],
|
|
3159
|
+
},
|
|
3160
|
+
},
|
|
3161
|
+
},
|
|
3044
3162
|
},
|
|
3045
3163
|
appearance: {
|
|
3046
3164
|
density: 'comfortable',
|