@praxisui/core 10.0.0-rc.58 → 10.0.0-rc.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "10.0.0-rc.58",
3
+ "version": "10.0.0-rc.59",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
@@ -5,6 +5,7 @@ type OptionSourceSelectedReloadPolicy = 'required' | 'supported' | 'unsupported-
5
5
  type OptionSourceInvalidSortPolicy = 'reject' | 'ignore' | 'unsupported';
6
6
  type LookupOpenDetailMode = 'samePage' | 'newTab' | 'drawer' | 'modal' | 'route';
7
7
  type LookupStatusTone = 'success' | 'warning' | 'danger' | 'neutral';
8
+ type LookupDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
8
9
  type LookupFilterFieldType = 'text' | 'enum' | 'date' | 'number' | 'reference';
9
10
  type LookupFilterOperator = 'contains' | 'startsWith' | 'equals' | 'in' | 'before' | 'after' | 'between' | 'gt' | 'gte' | 'lt' | 'lte';
10
11
  type EntityLookupSelectedLayout = 'card' | 'inline' | 'compact' | 'token';
@@ -60,12 +61,24 @@ interface LookupCreateMetadata {
60
61
  routeTemplate?: string;
61
62
  openMode?: LookupOpenDetailMode;
62
63
  }
64
+ interface LookupFilterOptionMetadata {
65
+ value: string | number | boolean;
66
+ label: string;
67
+ icon?: string;
68
+ tone?: LookupStatusTone | string;
69
+ description?: string;
70
+ disabled?: boolean;
71
+ }
63
72
  interface LookupFilterDefinitionMetadata {
64
73
  field: string;
65
74
  label?: string;
66
75
  type: LookupFilterFieldType;
67
76
  operators: LookupFilterOperator[];
68
77
  defaultOperator?: LookupFilterOperator;
78
+ options?: LookupFilterOptionMetadata[];
79
+ optionSource?: OptionSourceMetadata | string;
80
+ dependsOn?: string[];
81
+ dependencyFilterMap?: Record<string, string>;
69
82
  optionsSource?: string;
70
83
  required?: boolean;
71
84
  hidden?: boolean;
@@ -93,6 +106,26 @@ interface LookupFilteringMetadata {
93
106
  quickFilterFields?: string[];
94
107
  searchPlaceholder?: string;
95
108
  searchStrategies?: LookupSearchStrategyMetadata[];
109
+ defaultSearchStrategy?: string;
110
+ }
111
+ interface LookupDialogMetadata {
112
+ enabled?: boolean;
113
+ title?: string;
114
+ size?: LookupDialogSize;
115
+ previewPanel?: boolean;
116
+ allowColumnChooser?: boolean;
117
+ allowSavedViews?: boolean;
118
+ resultColumns?: LookupResultColumnMetadata[];
119
+ openActionLabel?: string;
120
+ applyActionLabel?: string;
121
+ cancelActionLabel?: string;
122
+ }
123
+ type LookupResultColumnKind = 'code' | 'label' | 'description' | 'status' | 'disabledReason' | 'custom';
124
+ interface LookupResultColumnMetadata {
125
+ field: string;
126
+ label?: string;
127
+ kind?: LookupResultColumnKind;
128
+ width?: string;
96
129
  }
97
130
  interface EntityLookupActionsMetadata {
98
131
  showQuickView?: boolean;
@@ -157,6 +190,7 @@ interface OptionSourceMetadata {
157
190
  create?: LookupCreateMetadata;
158
191
  display?: EntityLookupDisplayMetadata;
159
192
  filtering?: LookupFilteringMetadata;
193
+ dialog?: LookupDialogMetadata;
160
194
  excludeSelfField?: boolean;
161
195
  searchMode?: OptionSourceSearchMode;
162
196
  pageSize?: number;
@@ -1272,6 +1306,8 @@ interface ColumnDefinition {
1272
1306
  headerCssClass?: string;
1273
1307
  /** Formato de exibição dos dados */
1274
1308
  format?: any;
1309
+ /** Texto exibido quando o valor resolvido da célula for null, undefined ou string vazia, sem alterar o dado bruto ou a ordenação. */
1310
+ emptyValue?: string;
1275
1311
  /** Coluna calculada baseada em expressão */
1276
1312
  computed?: {
1277
1313
  /** Expressão segura baseada em campos da linha */
@@ -2145,6 +2181,8 @@ interface SelectionConfig {
2145
2181
  type: 'single' | 'multiple';
2146
2182
  /** Modo de seleção */
2147
2183
  mode: 'checkbox' | 'row' | 'both';
2184
+ /** Permitir desselecionar a linha ao clicar ou ativar novamente em seleção única. */
2185
+ allowDeselect?: boolean;
2148
2186
  /** Permitir selecionar todas as linhas */
2149
2187
  allowSelectAll: boolean;
2150
2188
  /** Posição do checkbox de seleção */
@@ -4650,6 +4688,14 @@ interface FieldMetadata extends ComponentMetadata {
4650
4688
  * needs platform-governed Apply/Cancel/Clear actions.
4651
4689
  */
4652
4690
  inlineOverlay?: InlineOverlayMetadata;
4691
+ /** Title displayed in the inline overlay panel header. */
4692
+ inlinePanelTitle?: string;
4693
+ /** Subtitle displayed under the inline overlay panel header title. */
4694
+ inlinePanelSubtitle?: string;
4695
+ /** Material icon ligature rendered in the inline overlay panel header badge. */
4696
+ inlinePanelIcon?: string;
4697
+ /** Theme palette token or CSS color applied to the inline overlay panel header icon. */
4698
+ inlinePanelIconColor?: string;
4653
4699
  /** Fields this field depends on */
4654
4700
  dependencyFields?: string[];
4655
4701
  /** Canonical conditional required guard for metadata-driven forms. */
@@ -4708,6 +4754,11 @@ interface FieldAccessMetadata {
4708
4754
  reason?: string;
4709
4755
  }
4710
4756
 
4757
+ /**
4758
+ * Supported operator modes for inline monetary range controls.
4759
+ */
4760
+ type InlineCurrencyRangeOperatorMode = 'between' | 'gte' | 'lte' | 'eq';
4761
+
4711
4762
  type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
4712
4763
  interface PraxisContextBindingContract {
4713
4764
  dimension: PraxisContextBindingDimension;
@@ -4815,6 +4866,7 @@ interface FieldDefinition {
4815
4866
  endpoint?: string;
4816
4867
  resourcePath?: string;
4817
4868
  optionSource?: OptionSourceMetadata;
4869
+ dialog?: LookupDialogMetadata;
4818
4870
  emptyOptionText?: string;
4819
4871
  options?: {
4820
4872
  key: string;
@@ -4926,6 +4978,248 @@ interface FieldDefinition {
4926
4978
  showInputs?: boolean;
4927
4979
  /** Exibe marcações (ticks) ao longo da trilha do slider. */
4928
4980
  showTicks?: boolean | 'auto';
4981
+ /** Exibe âncoras clicáveis abaixo da trilha do slider/faixa inline (`true`, `false` ou `'auto'`). */
4982
+ showAnchors?: boolean | 'auto';
4983
+ /** Título exibido no cabeçalho do popover para controles inline. */
4984
+ inlinePanelTitle?: string;
4985
+ /** Subtítulo exibido no cabeçalho do popover para controles inline. */
4986
+ inlinePanelSubtitle?: string;
4987
+ /** Ligadura Material Icons exibida no cabeçalho do popover para controles inline. */
4988
+ inlinePanelIcon?: string;
4989
+ /** Cor do ícone exibido no cabeçalho do popover para controles inline. */
4990
+ inlinePanelIconColor?: string;
4991
+ /** Exibe campos numéricos inline editáveis dentro do popover de controles de slider/faixa. */
4992
+ showInlineInputs?: boolean;
4993
+ /** Histograma ou configuração de distribuição interativa exibida acima do slider inline. */
4994
+ inlineDistribution?: unknown;
4995
+ /** Modos de operador habilitados para filtros de faixa monetária inline. */
4996
+ operatorModes?: InlineCurrencyRangeOperatorMode[] | boolean | string;
4997
+ /** Modo de operador inicial para filtros de faixa monetária inline. */
4998
+ defaultOperatorMode?: InlineCurrencyRangeOperatorMode;
4999
+ /** Exige ambos os limites da faixa (ex.: BETWEEN_EXCLUSIVE). */
5000
+ requireTwoBounds?: boolean;
5001
+ /** Passo aplicado exclusivamente à trilha do slider. */
5002
+ sliderStep?: number;
5003
+ /** Incremento de teclado com modificador Shift para sliders/faixas. */
5004
+ shiftStep?: number;
5005
+ /** Distância mínima exigida entre os limites da faixa. */
5006
+ minDistance?: number;
5007
+ /** Distância máxima permitida entre os limites da faixa. */
5008
+ maxDistance?: number;
5009
+ /** Código de moeda (ex.: BRL, USD, EUR). */
5010
+ currency?: string;
5011
+ /** Alias para código de moeda (`currency`). */
5012
+ currencyCode?: string;
5013
+ /** Quantidade de casas decimais para campos numéricos/monetários. */
5014
+ decimalPlaces?: number;
5015
+ /** Precisão numérica (moeda/número) ou granularidade de avaliação ('half' | 'item'). */
5016
+ precision?: number | string;
5017
+ /** Posição do símbolo monetário em relação ao valor. */
5018
+ currencyPosition?: 'before' | 'after';
5019
+ /** Exibe símbolo/indicador monetário em cabeçalhos e inputs. */
5020
+ showCurrencySymbol?: boolean;
5021
+ /** Separador de milhar (alias de `thousandsSeparator`). */
5022
+ thousandSeparator?: string;
5023
+ /** Separador de milhar. */
5024
+ thousandsSeparator?: string;
5025
+ /** Separador decimal. */
5026
+ decimalSeparator?: string;
5027
+ /** Permite valores negativos em controles numéricos/monetários. */
5028
+ allowNegative?: boolean;
5029
+ /** Rótulo do input mínimo de faixa. */
5030
+ inputMinLabel?: string;
5031
+ /** Rótulo do input máximo de faixa. */
5032
+ inputMaxLabel?: string;
5033
+ /** Rótulo do input de valor exato em faixa monetária. */
5034
+ inputExactLabel?: string;
5035
+ /** Limite mínimo permitido para o valor inicial da faixa. */
5036
+ startMin?: number;
5037
+ /** Limite máximo permitido para o valor inicial da faixa. */
5038
+ startMax?: number;
5039
+ /** Limite mínimo permitido para o valor final da faixa. */
5040
+ endMin?: number;
5041
+ /** Limite máximo permitido para o valor final da faixa. */
5042
+ endMax?: number;
5043
+ /** Mensagens e deslocamentos relacionais de limites de faixa monetária. */
5044
+ startMinMessage?: string;
5045
+ startMaxMessage?: string;
5046
+ endMinMessage?: string;
5047
+ endMaxMessage?: string;
5048
+ endMinOffset?: number;
5049
+ endMinOffsetMessage?: string;
5050
+ startMaxOffset?: number;
5051
+ startMaxOffsetMessage?: string;
5052
+ /** Configuração especializada de faixa de horário inline. */
5053
+ stepMinute?: number;
5054
+ stepMinutes?: number;
5055
+ interval?: number;
5056
+ inlineTimeTrackShifts?: unknown[];
5057
+ inlineTrackShifts?: unknown[];
5058
+ trackShifts?: unknown[];
5059
+ minDistanceMinutes?: number;
5060
+ maxDistanceMinutes?: number;
5061
+ /** Configuração especializada de raio de distância inline. */
5062
+ distanceIcon?: string;
5063
+ distanceStart?: number;
5064
+ distanceEnd?: number;
5065
+ radiusMin?: number;
5066
+ radiusMax?: number;
5067
+ radiusStep?: number;
5068
+ radiusMode?: string;
5069
+ distanceSliderStep?: number;
5070
+ /** Configuração especializada de avaliação (rating) inline. */
5071
+ ratingGradientLowColor?: string;
5072
+ ratingGradientMidColor?: string;
5073
+ ratingGradientHighColor?: string;
5074
+ ratingToneLowColor?: string;
5075
+ ratingToneMidColor?: string;
5076
+ ratingToneHighColor?: string;
5077
+ ratingBadgeColor?: string;
5078
+ ratingBadgeIcon?: string;
5079
+ ratingBadgeIconColor?: string;
5080
+ ratingActiveIcon?: string;
5081
+ ratingInactiveIcon?: string;
5082
+ ratingAllowHalf?: boolean;
5083
+ ratingPrecision?: number | string;
5084
+ ratingColors?: Record<string, unknown> | string[];
5085
+ starColors?: Record<string, unknown> | string[];
5086
+ ratingLowColor?: string;
5087
+ ratingMidColor?: string;
5088
+ ratingHighColor?: string;
5089
+ ratingIndicatorColor?: string;
5090
+ ratingMin?: number;
5091
+ ratingMax?: number;
5092
+ itemsCount?: number;
5093
+ ratingStep?: number;
5094
+ /** Configuração especializada de faixa de score / prioridade inline. */
5095
+ scoreSubtitle?: string;
5096
+ scoreUnit?: string;
5097
+ scoreDisplayDecimals?: number;
5098
+ scoreShowScaleLabels?: boolean;
5099
+ scoreShowBandChips?: boolean;
5100
+ scoreRangeSeparator?: string;
5101
+ scoreGradientLowColor?: string;
5102
+ scoreGradientMidColor?: string;
5103
+ scoreGradientHighColor?: string;
5104
+ scoreValueFallbackColor?: string;
5105
+ scoreEmptyGradient?: string;
5106
+ scoreIcon?: string;
5107
+ scoreBandsAriaLabel?: string;
5108
+ scoreBandAriaLabelTemplate?: string;
5109
+ scoreMin?: number;
5110
+ scoreMax?: number;
5111
+ scoreStep?: number;
5112
+ scoreMode?: string;
5113
+ scoreSliderStep?: number;
5114
+ /** Configuração especializada de filtros gráficos e date-range inline (Onda 2). */
5115
+ optionSubtitleKey?: string;
5116
+ optionWeightKey?: string;
5117
+ optionColorKey?: string;
5118
+ optionIconKey?: string;
5119
+ optionEmojiKey?: string;
5120
+ panelSearchIcon?: string;
5121
+ panelSearchIconColor?: string;
5122
+ panelResetIcon?: string;
5123
+ panelResetIconColor?: string;
5124
+ optionSelectedIcon?: string;
5125
+ optionSelectedIconColor?: string;
5126
+ columns?: number;
5127
+ pipelineTitle?: string;
5128
+ pipelineSubtitle?: string;
5129
+ pipelineMode?: string;
5130
+ pipelineMultiple?: boolean;
5131
+ pipelineSearchable?: boolean;
5132
+ pipelineSearchPlaceholder?: string;
5133
+ pipelineOptionSubtitleKey?: string;
5134
+ pipelineOptionWeightKey?: string;
5135
+ pipelineOptionColorKey?: string;
5136
+ pipelineShowBar?: boolean;
5137
+ pipelineShowSelectionPills?: boolean;
5138
+ pipelineShowSelectAll?: boolean;
5139
+ pipelineSelectAllText?: string;
5140
+ pipelineShowClearAction?: boolean;
5141
+ pipelineClearActionText?: string;
5142
+ pipelineChipMaxVisible?: number;
5143
+ statusColors?: unknown;
5144
+ pipelineGradientLowColor?: string;
5145
+ pipelineGradientMidColor?: string;
5146
+ pipelineGradientHighColor?: string;
5147
+ pipelineEmptyStateText?: string;
5148
+ pipelineSelectionActionsAriaLabel?: string;
5149
+ pipelineOptionsGroupAriaLabelMultiple?: string;
5150
+ pipelineOptionsGroupAriaLabelSingle?: string;
5151
+ pipelineSelectionPillsAriaLabel?: string;
5152
+ pipelineBarAriaLabelEmpty?: string;
5153
+ pipelineBarAriaLabelSelected?: string;
5154
+ pipelineIcon?: string;
5155
+ pipelineSearchIcon?: string;
5156
+ pipelineSearchIconColor?: string;
5157
+ relativePeriodTitle?: string;
5158
+ relativePeriodSubtitle?: string;
5159
+ relativePeriodShowProgress?: boolean;
5160
+ relativePeriodProgressGradientLowColor?: string;
5161
+ relativePeriodProgressGradientMidColor?: string;
5162
+ relativePeriodProgressGradientHighColor?: string;
5163
+ relativePeriodColumns?: number;
5164
+ relativePeriodCloseOnSelect?: boolean;
5165
+ relativePeriodMultiple?: boolean;
5166
+ relativePeriodSearchable?: boolean;
5167
+ relativePeriodIcon?: string;
5168
+ relativePeriodIconKey?: string;
5169
+ relativePeriodSubtitleKey?: string;
5170
+ relativePeriodSelectedIcon?: string;
5171
+ relativePeriodSelectedIconColor?: string;
5172
+ relativePeriodOptionsAriaLabel?: string;
5173
+ relativePeriodProgressEmptyLabel?: string;
5174
+ relativePeriodEmptyStateText?: string;
5175
+ sentimentTitle?: string;
5176
+ sentimentSubtitle?: string;
5177
+ sentimentGradientLowColor?: string;
5178
+ sentimentGradientMidColor?: string;
5179
+ sentimentGradientHighColor?: string;
5180
+ sentimentShowBar?: boolean;
5181
+ sentimentAnimatedEmoji?: boolean;
5182
+ sentimentCloseOnSelect?: boolean;
5183
+ sentimentMultiple?: boolean;
5184
+ sentimentShowSelectionPills?: boolean;
5185
+ sentimentIcon?: string;
5186
+ sentimentColorKey?: string;
5187
+ sentimentEmojiKey?: string;
5188
+ sentimentOptionsAriaLabel?: string;
5189
+ sentimentSelectionPillsAriaLabel?: string;
5190
+ sentimentEmptyStateText?: string;
5191
+ colorLabelTitle?: string;
5192
+ colorLabelSubtitle?: string;
5193
+ colorLabelMultiple?: boolean;
5194
+ colorLabelColumns?: number;
5195
+ colorLabelShowSelectedBadges?: boolean;
5196
+ colorLabelCloseOnSelect?: boolean;
5197
+ colorLabelSelectionTitle?: string;
5198
+ colorLabelIcon?: string;
5199
+ colorLabelSelectedIcon?: string;
5200
+ colorLabelSelectedIconColor?: string;
5201
+ colorLabelBadgeRemoveIcon?: string;
5202
+ colorLabelBadgeRemoveIconColor?: string;
5203
+ colorLabelColorKey?: string;
5204
+ colorLabelOptionsAriaLabel?: string;
5205
+ colorLabelSelectionBadgesAriaLabel?: string;
5206
+ colorLabelRemoveSelectionAriaLabel?: string;
5207
+ colorLabelEmptyStateText?: string;
5208
+ startAriaLabel?: string;
5209
+ endAriaLabel?: string;
5210
+ inlineQuickPresetsAriaLabel?: string;
5211
+ inlineQuickPresetsCancelLabel?: string;
5212
+ inlineQuickPresetsCancelAriaLabel?: string;
5213
+ inlineQuickPresetsApplyLabel?: string;
5214
+ inlineQuickPresetsApplyAriaLabel?: string;
5215
+ shortcutsPosition?: string;
5216
+ applyOnShortcutClick?: boolean;
5217
+ i18nShortcuts?: Record<string, string>;
5218
+ startView?: string;
5219
+ startAt?: string | Date;
5220
+ touchUi?: boolean;
5221
+ minDate?: string | Date;
5222
+ maxDate?: string | Date;
4929
5223
  [key: string]: any;
4930
5224
  }
4931
5225