@praxisui/core 1.0.0-beta.43 → 1.0.0-beta.45

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 CHANGED
@@ -473,7 +473,7 @@ interface SortingConfig {
473
473
  /** Habilitar ordenação */
474
474
  enabled: boolean;
475
475
 
476
- /** Permitir ordenação múltipla */
476
+ /** Permitir ordenação múltipla (schema-only no runtime atual) */
477
477
  multiSort: boolean;
478
478
 
479
479
  /** Estratégia de ordenação */
@@ -490,6 +490,8 @@ interface SortingConfig {
490
490
  }
491
491
  ```
492
492
 
493
+ Observação enterprise: `multiSort` está disponível no contrato de schema, porém no runtime atual deve ser tratado como `schema-only` (apenas 1 critério de ordenação efetivo).
494
+
493
495
  ## 🎨 Configurações de Aparência
494
496
 
495
497
  ### TableAppearanceConfig
@@ -659,7 +661,8 @@ export class MyComponent {
659
661
  this.configService.setConfig(this.tableConfig);
660
662
 
661
663
  // Verificar recursos
662
- const hasMultiSort = this.configService.isFeatureEnabled('multiSort');
664
+ // No runtime atual, multiSort permanece schema-only.
665
+ const hasMultiSort = false;
663
666
  const hasBulkActions = this.configService.isFeatureEnabled('bulkActions');
664
667
  const hasExport = this.configService.isFeatureEnabled('export');
665
668
 
@@ -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',