@praxisui/table 8.0.0-beta.29 → 8.0.0-beta.30
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/fesm2022/{praxisui-table-praxisui-table-CKnX_qQK.mjs → praxisui-table-praxisui-table-DFBE5wpp.mjs} +153 -4
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-BvOLCDkU.mjs → praxisui-table-table-agentic-authoring-turn-flow-EigJf8mp.mjs} +11 -1
- package/fesm2022/praxisui-table-table-ai.adapter-7THXe94D.mjs +2674 -0
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/fesm2022/praxisui-table-table-ai.adapter-DHNdWFmg.mjs +0 -929
|
@@ -38873,7 +38873,7 @@ class PraxisTable {
|
|
|
38873
38873
|
if (this.aiAdapter || this.aiAdapterLoadStarted)
|
|
38874
38874
|
return;
|
|
38875
38875
|
this.aiAdapterLoadStarted = true;
|
|
38876
|
-
import('./praxisui-table-table-ai.adapter-
|
|
38876
|
+
import('./praxisui-table-table-ai.adapter-7THXe94D.mjs')
|
|
38877
38877
|
.then(({ TableAiAdapter }) => {
|
|
38878
38878
|
this.aiAdapter = new TableAiAdapter(this);
|
|
38879
38879
|
this.initializeAiAssistantController();
|
|
@@ -38962,11 +38962,18 @@ class PraxisTable {
|
|
|
38962
38962
|
return;
|
|
38963
38963
|
const state = controller.snapshot();
|
|
38964
38964
|
const next$ = state.state === 'clarification'
|
|
38965
|
-
? controller.answerClarification(
|
|
38965
|
+
? controller.answerClarification({
|
|
38966
|
+
id: reply.id,
|
|
38967
|
+
label: reply.label,
|
|
38968
|
+
value: reply.prompt,
|
|
38969
|
+
description: reply.description ?? undefined,
|
|
38970
|
+
contextHints: reply.contextHints ? { ...reply.contextHints } : undefined,
|
|
38971
|
+
})
|
|
38966
38972
|
: controller.submitPrompt(reply.prompt, {
|
|
38967
38973
|
kind: reply.kind || 'quick-reply',
|
|
38968
38974
|
id: reply.id,
|
|
38969
38975
|
value: reply.prompt,
|
|
38976
|
+
contextHints: reply.contextHints ? { ...reply.contextHints } : undefined,
|
|
38970
38977
|
});
|
|
38971
38978
|
next$.subscribe((nextState) => {
|
|
38972
38979
|
this.aiAssistantPrompt = '';
|
|
@@ -38993,7 +39000,7 @@ class PraxisTable {
|
|
|
38993
39000
|
initializeAiAssistantController() {
|
|
38994
39001
|
if (!this.aiAdapter || this.aiAssistantController)
|
|
38995
39002
|
return;
|
|
38996
|
-
import('./praxisui-table-table-agentic-authoring-turn-flow-
|
|
39003
|
+
import('./praxisui-table-table-agentic-authoring-turn-flow-EigJf8mp.mjs')
|
|
38997
39004
|
.then(({ TableAgenticAuthoringTurnFlow }) => {
|
|
38998
39005
|
if (this.aiAssistantController || !this.aiAdapter)
|
|
38999
39006
|
return;
|
|
@@ -52988,6 +52995,22 @@ const PRAXIS_TABLE_AUTHORING_MANIFEST = {
|
|
|
52988
52995
|
params: { format: 'BRL|symbol|2' },
|
|
52989
52996
|
isPositive: true
|
|
52990
52997
|
},
|
|
52998
|
+
{
|
|
52999
|
+
id: 'set-cpf-format-preset',
|
|
53000
|
+
request: 'Formate a coluna CPF',
|
|
53001
|
+
operationId: 'column.format.set',
|
|
53002
|
+
target: 'cpf',
|
|
53003
|
+
params: { format: '000.000.000-00' },
|
|
53004
|
+
isPositive: true
|
|
53005
|
+
},
|
|
53006
|
+
{
|
|
53007
|
+
id: 'set-long-date-format-preset',
|
|
53008
|
+
request: 'Mostre a data de admissão por extenso',
|
|
53009
|
+
operationId: 'column.format.set',
|
|
53010
|
+
target: 'dataAdmissao',
|
|
53011
|
+
params: { format: 'longDate' },
|
|
53012
|
+
isPositive: true
|
|
53013
|
+
},
|
|
52991
53014
|
{
|
|
52992
53015
|
id: 'set-basic-column-width',
|
|
52993
53016
|
request: 'Definir a largura da coluna nome para 240px',
|
|
@@ -52996,6 +53019,132 @@ const PRAXIS_TABLE_AUTHORING_MANIFEST = {
|
|
|
52996
53019
|
params: { width: '240px' },
|
|
52997
53020
|
isPositive: true
|
|
52998
53021
|
},
|
|
53022
|
+
{
|
|
53023
|
+
id: 'set-salary-align-right',
|
|
53024
|
+
request: 'Alinhe o salário à direita',
|
|
53025
|
+
operationId: 'column.align.set',
|
|
53026
|
+
target: 'salario',
|
|
53027
|
+
params: { align: 'right' },
|
|
53028
|
+
isPositive: true
|
|
53029
|
+
},
|
|
53030
|
+
{
|
|
53031
|
+
id: 'make-name-sticky-start',
|
|
53032
|
+
request: 'Fixe a coluna funcionário no início da tabela',
|
|
53033
|
+
operationId: 'column.sticky.set',
|
|
53034
|
+
target: 'funcionario',
|
|
53035
|
+
params: { sticky: 'start' },
|
|
53036
|
+
isPositive: true
|
|
53037
|
+
},
|
|
53038
|
+
{
|
|
53039
|
+
id: 'disable-cpf-sorting',
|
|
53040
|
+
request: 'Não permita ordenar pela coluna CPF',
|
|
53041
|
+
operationId: 'column.sortable.set',
|
|
53042
|
+
target: 'cpf',
|
|
53043
|
+
params: { sortable: false },
|
|
53044
|
+
isPositive: true
|
|
53045
|
+
},
|
|
53046
|
+
{
|
|
53047
|
+
id: 'enable-department-filter',
|
|
53048
|
+
request: 'Deixe o departamento disponível nos filtros',
|
|
53049
|
+
operationId: 'column.filterable.set',
|
|
53050
|
+
target: 'departamento',
|
|
53051
|
+
params: { filterable: true },
|
|
53052
|
+
isPositive: true
|
|
53053
|
+
},
|
|
53054
|
+
{
|
|
53055
|
+
id: 'hide-internal-id-column',
|
|
53056
|
+
request: 'Oculte o ID interno da tabela',
|
|
53057
|
+
operationId: 'column.visibility.set',
|
|
53058
|
+
target: 'id',
|
|
53059
|
+
params: { visible: false },
|
|
53060
|
+
isPositive: true
|
|
53061
|
+
},
|
|
53062
|
+
{
|
|
53063
|
+
id: 'map-active-status-labels',
|
|
53064
|
+
request: 'Mostre Sim e Não na coluna ativo',
|
|
53065
|
+
operationId: 'column.valueMapping.set',
|
|
53066
|
+
target: 'ativo',
|
|
53067
|
+
params: { valueMapping: { true: 'Sim', false: 'Não' } },
|
|
53068
|
+
isPositive: true
|
|
53069
|
+
},
|
|
53070
|
+
{
|
|
53071
|
+
id: 'set-avatar-chip-renderer',
|
|
53072
|
+
request: 'Corrija o avatar do funcionário e mantenha o nome como chip',
|
|
53073
|
+
operationId: 'column.renderer.set',
|
|
53074
|
+
target: 'funcionario',
|
|
53075
|
+
params: {
|
|
53076
|
+
type: 'compose',
|
|
53077
|
+
compose: {
|
|
53078
|
+
items: [
|
|
53079
|
+
{ type: 'avatar', source: 'avatarUrl', fallback: 'initials' },
|
|
53080
|
+
{ type: 'chip', source: 'funcionario', variant: 'soft' }
|
|
53081
|
+
]
|
|
53082
|
+
}
|
|
53083
|
+
},
|
|
53084
|
+
isPositive: true
|
|
53085
|
+
},
|
|
53086
|
+
{
|
|
53087
|
+
id: 'animate-high-salary-row',
|
|
53088
|
+
request: 'Anime suavemente as linhas com salário acima de 30000',
|
|
53089
|
+
operationId: 'row.conditionalRenderer.add',
|
|
53090
|
+
params: {
|
|
53091
|
+
id: 'salario-alto-pulse',
|
|
53092
|
+
condition: { ">": [{ "var": "salario" }, 30000] },
|
|
53093
|
+
animation: { enabled: true, type: 'pulse', trigger: 'onConditionEnter', intensity: 'subtle', durationMs: 1200 },
|
|
53094
|
+
description: 'Destaca linhas de salário alto sem alterar os dados.'
|
|
53095
|
+
},
|
|
53096
|
+
isPositive: true
|
|
53097
|
+
},
|
|
53098
|
+
{
|
|
53099
|
+
id: 'style-low-salary-cell',
|
|
53100
|
+
request: 'Para salários menores que 30000, use fundo laranja claro',
|
|
53101
|
+
operationId: 'column.conditionalStyle.add',
|
|
53102
|
+
target: 'salario',
|
|
53103
|
+
params: {
|
|
53104
|
+
id: 'salario-baixo-laranja',
|
|
53105
|
+
condition: { "<": [{ "var": "salario" }, 30000] },
|
|
53106
|
+
style: { backgroundColor: '#FFF3E0', color: '#8A4B00' },
|
|
53107
|
+
tooltip: { text: 'Salário abaixo do recorte configurado', position: 'top' }
|
|
53108
|
+
},
|
|
53109
|
+
isPositive: true
|
|
53110
|
+
},
|
|
53111
|
+
{
|
|
53112
|
+
id: 'enable-advanced-filters-human',
|
|
53113
|
+
request: 'Ative filtros avançados e deixe CPF e departamento sempre visíveis',
|
|
53114
|
+
operationId: 'filter.advanced.configure',
|
|
53115
|
+
params: {
|
|
53116
|
+
enabled: true,
|
|
53117
|
+
queryBuilder: true,
|
|
53118
|
+
savePresets: true,
|
|
53119
|
+
settings: {
|
|
53120
|
+
mode: 'filter',
|
|
53121
|
+
showAdvanced: true,
|
|
53122
|
+
alwaysVisibleFields: ['cpf', 'departamento']
|
|
53123
|
+
}
|
|
53124
|
+
},
|
|
53125
|
+
isPositive: true
|
|
53126
|
+
},
|
|
53127
|
+
{
|
|
53128
|
+
id: 'enable-table-filters-human',
|
|
53129
|
+
request: 'Habilite os filtros dinâmicos da tabela',
|
|
53130
|
+
operationId: 'behavior.filtering.configure',
|
|
53131
|
+
params: { enabled: true, strategy: 'client', debounceMs: 250 },
|
|
53132
|
+
isPositive: true
|
|
53133
|
+
},
|
|
53134
|
+
{
|
|
53135
|
+
id: 'compact-density-human',
|
|
53136
|
+
request: 'Deixe a tabela mais compacta',
|
|
53137
|
+
operationId: 'appearance.density.set',
|
|
53138
|
+
params: { density: 'compact' },
|
|
53139
|
+
isPositive: true
|
|
53140
|
+
},
|
|
53141
|
+
{
|
|
53142
|
+
id: 'toolbar-search-refresh-human',
|
|
53143
|
+
request: 'Mostre busca e botão de atualizar na toolbar',
|
|
53144
|
+
operationId: 'toolbar.configure',
|
|
53145
|
+
params: { visible: true, showSearch: true, showRefresh: true },
|
|
53146
|
+
isPositive: true
|
|
53147
|
+
},
|
|
52999
53148
|
{
|
|
53000
53149
|
id: 'configure-server-pagination',
|
|
53001
53150
|
request: 'Usar paginacao no servidor com 50 linhas por pagina',
|
|
@@ -57012,4 +57161,4 @@ function isSupportedJsonLogicComputedOperator(operator) {
|
|
|
57012
57161
|
* Generated bundle index. Do not edit.
|
|
57013
57162
|
*/
|
|
57014
57163
|
|
|
57015
|
-
export { JsonConfigEditorComponent as $, AnalyticsTableConfigAdapterService as A, BOOLEAN_PRESETS as B, CURRENCY_PRESETS as C, DATE_PRESETS as D,
|
|
57164
|
+
export { JsonConfigEditorComponent as $, AnalyticsTableConfigAdapterService as A, BOOLEAN_PRESETS as B, CURRENCY_PRESETS as C, DATE_PRESETS as D, AnalyticsTableStatsApiService as E, FilterConfigService as F, AnalyticsTableContractService as G, getActionId as H, isTableRendererSupportedByRichContentP0 as I, mapTableRendererToRichContentP0 as J, createTableAuthoringDocument as K, parseLegacyOrTableDocument as L, normalizeTableAuthoringDocument as M, NUMBER_PRESETS as N, validateTableAuthoringDocument as O, PRAXIS_TABLE_AUTHORING_MANIFEST as P, toCanonicalTableConfig as Q, buildTableApplyPlan as R, STRING_PRESETS as S, TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS as T, serializeTableAuthoringDocument as U, BehaviorConfigEditorComponent as V, ColumnsConfigEditorComponent as W, PraxisTableInlineAuthoringEditorComponent as X, MessagesLocalizationEditorComponent as Y, ToolbarActionsEditorComponent as Z, ValueMappingEditorComponent as _, TABLE_AI_CAPABILITIES as a, FilterSettingsComponent as a0, TableRulesEditorComponent as a1, VisualFormulaBuilderComponent as a2, FormulaGeneratorService as a3, FORMULA_TEMPLATES as a4, PRAXIS_TABLE_COMPONENT_METADATA as a5, providePraxisTableMetadata as a6, getTableCapabilities as a7, getEnum as a8, compileTableComponentEditPlans as b, coerceTableComponentEditPlans as c, TASK_PRESETS as d, TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS as e, TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS as f, getTableComponentEditPlanCapabilities as g, TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA as h, TABLE_COMPONENT_EDIT_PLAN_VERSION as i, TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND as j, TABLE_COMPONENT_EDIT_PLAN_KIND as k, TABLE_COMPONENT_AI_CAPABILITIES as l, coerceTableComponentEditPlan as m, compileTableComponentEditPlan as n, PraxisTable as o, PraxisTableToolbar as p, PraxisTableConfigEditor as q, PraxisTableWidgetConfigEditor as r, PraxisFilter as s, PRAXIS_FILTER_COMPONENT_METADATA as t, providePraxisFilterMetadata as u, PraxisFilterWidgetConfigEditor as v, PERCENTAGE_PRESETS as w, DataFormattingService as x, DataFormatterComponent as y, TableDefaultsProvider as z };
|
|
@@ -25,7 +25,7 @@ class TableAgenticAuthoringTurnFlow {
|
|
|
25
25
|
const schemaFields = this.adapter.getSchemaFields?.()
|
|
26
26
|
?.map((field) => this.toAiJsonObject(field))
|
|
27
27
|
.filter((field) => Object.keys(field).length > 0);
|
|
28
|
-
const contextHints = this.optionalJsonObject(this.adapter.getAuthoringContext?.());
|
|
28
|
+
const contextHints = this.mergeJsonObjects(this.optionalJsonObject(this.adapter.getAuthoringContext?.()), this.optionalJsonObject(request.action?.contextHints));
|
|
29
29
|
const response = await firstValueFrom(this.aiApi.getPatch({
|
|
30
30
|
componentId,
|
|
31
31
|
componentType,
|
|
@@ -303,6 +303,16 @@ class TableAgenticAuthoringTurnFlow {
|
|
|
303
303
|
const object = this.toAiJsonObject(value);
|
|
304
304
|
return Object.keys(object).length ? object : undefined;
|
|
305
305
|
}
|
|
306
|
+
mergeJsonObjects(base, overlay) {
|
|
307
|
+
if (!base)
|
|
308
|
+
return overlay;
|
|
309
|
+
if (!overlay)
|
|
310
|
+
return base;
|
|
311
|
+
return {
|
|
312
|
+
...base,
|
|
313
|
+
...overlay,
|
|
314
|
+
};
|
|
315
|
+
}
|
|
306
316
|
toAiJsonObject(value) {
|
|
307
317
|
const record = this.toRecord(value);
|
|
308
318
|
if (!record) {
|