@praxisui/table 8.0.0-beta.0 → 8.0.0-beta.100
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 +236 -13
- package/docs/DSL-Extensions-Guide.md +23 -0
- package/docs/adr/2026-03-dynamic-filter-cross-lib-coupling.md +107 -0
- package/docs/adr/2026-03-filter-drawer-adapter-light-entrypoint.md +105 -0
- package/docs/adr/2026-03-table-editor-idfield-decision.md +85 -0
- package/docs/column-resize-reorder-implementation-plan.md +338 -0
- package/docs/column-resize-reorder-review-prompt.md +34 -0
- package/docs/dynamic-filter-architecture-overview.md +207 -0
- package/docs/dynamic-filter-backend-contract-cheatsheet.md +167 -0
- package/docs/dynamic-filter-editor-settings-guide.md +229 -0
- package/docs/dynamic-filter-host-integration-guide.md +266 -0
- package/docs/dynamic-filter-payload-contract.md +332 -0
- package/docs/dynamic-filter-range-filters-guide.md +296 -0
- package/docs/dynamic-filter-troubleshooting-guide.md +257 -0
- package/docs/dynamic-inline-filter-catalog.md +147 -0
- package/docs/e2e-column-drag-playwright.md +62 -0
- package/docs/expandable-rows-enterprise-big-leagues-plan.md +1080 -0
- package/docs/json-logic-operators-and-helpers.md +57 -0
- package/docs/local-data-mode-precedence.md +12 -0
- package/docs/local-data-pre-implementation-baseline.md +22 -0
- package/docs/local-data-preimplementation-go-no-go.md +39 -0
- package/docs/local-data-support-implementation-plan.md +524 -0
- package/docs/local-data-support-pr-package.md +66 -0
- package/docs/localization-persistence-merge.md +22 -0
- package/docs/performance-hardening-v2-implementation-plan.md +479 -0
- package/docs/playground-scenario-curation-plan.md +482 -0
- package/docs/playground-scenario-second-opinion-prompt.md +121 -0
- package/docs/playground-scenario-second-opinion-review.md +234 -0
- package/docs/release-notes-p1-hardening.md +76 -0
- package/docs/table-authoring-document-completeness-checklist.md +120 -0
- package/docs/table-editor-capability-review-prompt.md +349 -0
- package/docs/visual-rules-editor-transition.md +29 -0
- package/fesm2022/praxisui-table-filter-form-dialog-host.component-DbwGIMjF.mjs +232 -0
- package/fesm2022/praxisui-table-praxisui-table-MXizgJYx.mjs +60987 -0
- package/fesm2022/praxisui-table-table-agentic-authoring-turn-flow-BJWah3jp.mjs +9641 -0
- package/fesm2022/praxisui-table-table-ai.adapter-DFyMRt4g.mjs +3999 -0
- package/fesm2022/praxisui-table.mjs +1 -50362
- package/filter-drawer-adapter/package.json +2 -1
- package/package.json +22 -14
- package/src/lib/praxis-table.json-api.md +1361 -0
- package/{index.d.ts → types/praxisui-table.d.ts} +918 -121
- package/fesm2022/praxisui-table-filter-form-dialog-host.component-EHoM1uuJ.mjs +0 -165
- package/fesm2022/praxisui-table-table-ai.adapter-CFyyQB26.mjs +0 -831
- /package/{filter-drawer-adapter/index.d.ts → types/praxisui-table-filter-drawer-adapter.d.ts} +0 -0
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Inject, Component } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i1 from '@angular/material/dialog';
|
|
6
|
-
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
7
|
-
import * as i3 from '@angular/material/button';
|
|
8
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
9
|
-
import * as i15 from '@angular/material/progress-bar';
|
|
10
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
11
|
-
import * as i5 from '@angular/material/icon';
|
|
12
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
-
import { PraxisFilterForm } from '@praxisui/dynamic-form';
|
|
14
|
-
|
|
15
|
-
class FilterFormDialogHostComponent {
|
|
16
|
-
data;
|
|
17
|
-
ref;
|
|
18
|
-
valid = true;
|
|
19
|
-
lastValue = {};
|
|
20
|
-
formGroup = null;
|
|
21
|
-
canSave = false;
|
|
22
|
-
constructor(data, ref) {
|
|
23
|
-
this.data = data;
|
|
24
|
-
this.ref = ref;
|
|
25
|
-
}
|
|
26
|
-
onReady(ev) {
|
|
27
|
-
try {
|
|
28
|
-
this.formGroup = ev?.formGroup || null;
|
|
29
|
-
const dto = this.data?.initialDto || {};
|
|
30
|
-
if (ev?.formGroup && dto && Object.keys(dto).length) {
|
|
31
|
-
ev.formGroup.patchValue(dto, { emitEvent: false });
|
|
32
|
-
}
|
|
33
|
-
this.lastValue = this.formGroup?.getRawValue?.() ?? this.lastValue;
|
|
34
|
-
this.updateCanSave();
|
|
35
|
-
}
|
|
36
|
-
catch { }
|
|
37
|
-
}
|
|
38
|
-
onChange(ev) {
|
|
39
|
-
this.lastValue = ev?.formData ?? {};
|
|
40
|
-
this.updateCanSave();
|
|
41
|
-
}
|
|
42
|
-
onValidity(v) {
|
|
43
|
-
this.valid = v;
|
|
44
|
-
this.updateCanSave();
|
|
45
|
-
}
|
|
46
|
-
apply() {
|
|
47
|
-
const formData = this.formGroup?.getRawValue?.() ??
|
|
48
|
-
this.lastValue ??
|
|
49
|
-
this.data?.initialDto ??
|
|
50
|
-
{};
|
|
51
|
-
this.ref.close({ formData });
|
|
52
|
-
}
|
|
53
|
-
close() { this.ref.close(); }
|
|
54
|
-
clean(obj) {
|
|
55
|
-
const out = {};
|
|
56
|
-
Object.keys(obj || {}).forEach((k) => {
|
|
57
|
-
const v = obj[k];
|
|
58
|
-
if (v !== '' && v !== null && v !== undefined)
|
|
59
|
-
out[k] = v;
|
|
60
|
-
});
|
|
61
|
-
return out;
|
|
62
|
-
}
|
|
63
|
-
buildDtoForSave() {
|
|
64
|
-
const base = this.data?.initialDto || {};
|
|
65
|
-
const merged = { ...base, ...(this.lastValue || {}) };
|
|
66
|
-
return this.clean(merged);
|
|
67
|
-
}
|
|
68
|
-
updateCanSave() {
|
|
69
|
-
this.canSave = Object.keys(this.buildDtoForSave() || {}).length > 0;
|
|
70
|
-
}
|
|
71
|
-
saveShortcut() {
|
|
72
|
-
try {
|
|
73
|
-
const dto = this.buildDtoForSave();
|
|
74
|
-
if (!Object.keys(dto).length)
|
|
75
|
-
return;
|
|
76
|
-
this.data?.onSaveShortcut?.(dto);
|
|
77
|
-
}
|
|
78
|
-
catch { }
|
|
79
|
-
}
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: FilterFormDialogHostComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.17", type: FilterFormDialogHostComponent, isStandalone: true, selector: "praxis-filter-form-dialog-host", ngImport: i0, template: `
|
|
82
|
-
<div mat-dialog-title class="pfx-dialog-title" id="filterDialogTitle">
|
|
83
|
-
<div class="pfx-dialog-title-text">
|
|
84
|
-
<mat-icon>tune</mat-icon>
|
|
85
|
-
<span>{{ data.title || 'Filtro avançado' }}</span>
|
|
86
|
-
</div>
|
|
87
|
-
<button mat-icon-button type="button" class="pfx-dialog-close" (click)="close()"
|
|
88
|
-
[attr.aria-label]="data.i18n?.cancel || 'Fechar'">
|
|
89
|
-
<mat-icon>close</mat-icon>
|
|
90
|
-
</button>
|
|
91
|
-
</div>
|
|
92
|
-
<mat-dialog-content class="pfx-filter-dialog-content" aria-labelledby="filterDialogTitle">
|
|
93
|
-
<mat-progress-bar *ngIf="data?.schemaLoading" mode="indeterminate"></mat-progress-bar>
|
|
94
|
-
<praxis-filter-form
|
|
95
|
-
*ngIf="data?.config"
|
|
96
|
-
[formId]="data.formId"
|
|
97
|
-
[resourcePath]="data.resourcePath"
|
|
98
|
-
[mode]="'edit'"
|
|
99
|
-
[config]="data.config"
|
|
100
|
-
(formReady)="onReady($event)"
|
|
101
|
-
(valueChange)="onChange($event)"
|
|
102
|
-
(validityChange)="onValidity($event)"
|
|
103
|
-
></praxis-filter-form>
|
|
104
|
-
<p *ngIf="!data?.config && !data?.schemaLoading" class="pfx-empty-state">{{ data.i18n?.noData || 'Nenhum dado' }}</p>
|
|
105
|
-
</mat-dialog-content>
|
|
106
|
-
<mat-dialog-actions align="end" class="pfx-dialog-actions">
|
|
107
|
-
<button mat-button type="button"
|
|
108
|
-
*ngIf="data?.allowSaveTags"
|
|
109
|
-
[disabled]="!canSave"
|
|
110
|
-
(click)="saveShortcut()">
|
|
111
|
-
{{ data.i18n?.saveAsShortcut || 'Salvar como atalho' }}
|
|
112
|
-
</button>
|
|
113
|
-
<button mat-stroked-button type="button" (click)="close()">{{ data.i18n?.cancel || 'Cancelar' }}</button>
|
|
114
|
-
<button mat-flat-button color="primary" (click)="apply()" [disabled]="!valid">
|
|
115
|
-
{{ data.i18n?.apply || 'Aplicar' }}
|
|
116
|
-
</button>
|
|
117
|
-
</mat-dialog-actions>
|
|
118
|
-
`, isInline: true, styles: [".pfx-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:8px}.pfx-dialog-title-text{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--md-sys-color-on-surface)}.pfx-dialog-close{margin-left:auto}.pfx-filter-dialog-content{display:flex;flex-direction:column;gap:12px;padding-top:8px}.pfx-empty-state{margin:8px 0 0;color:var(--md-sys-color-on-surface-variant)}.pfx-dialog-actions{padding:var(--pdx-dialog-actions-padding, 12px 24px 16px);border-top:1px solid var(--md-sys-color-outline-variant);background:transparent;display:flex;align-items:center;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i15.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PraxisFilterForm, selector: "praxis-filter-form", inputs: ["config", "formId", "resourcePath", "mode"], outputs: ["formReady", "valueChange", "submit", "requestSearch", "validityChange"] }] });
|
|
119
|
-
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: FilterFormDialogHostComponent, decorators: [{
|
|
121
|
-
type: Component,
|
|
122
|
-
args: [{ selector: 'praxis-filter-form-dialog-host', standalone: true, imports: [CommonModule, MatDialogModule, MatButtonModule, MatProgressBarModule, MatIconModule, PraxisFilterForm], template: `
|
|
123
|
-
<div mat-dialog-title class="pfx-dialog-title" id="filterDialogTitle">
|
|
124
|
-
<div class="pfx-dialog-title-text">
|
|
125
|
-
<mat-icon>tune</mat-icon>
|
|
126
|
-
<span>{{ data.title || 'Filtro avançado' }}</span>
|
|
127
|
-
</div>
|
|
128
|
-
<button mat-icon-button type="button" class="pfx-dialog-close" (click)="close()"
|
|
129
|
-
[attr.aria-label]="data.i18n?.cancel || 'Fechar'">
|
|
130
|
-
<mat-icon>close</mat-icon>
|
|
131
|
-
</button>
|
|
132
|
-
</div>
|
|
133
|
-
<mat-dialog-content class="pfx-filter-dialog-content" aria-labelledby="filterDialogTitle">
|
|
134
|
-
<mat-progress-bar *ngIf="data?.schemaLoading" mode="indeterminate"></mat-progress-bar>
|
|
135
|
-
<praxis-filter-form
|
|
136
|
-
*ngIf="data?.config"
|
|
137
|
-
[formId]="data.formId"
|
|
138
|
-
[resourcePath]="data.resourcePath"
|
|
139
|
-
[mode]="'edit'"
|
|
140
|
-
[config]="data.config"
|
|
141
|
-
(formReady)="onReady($event)"
|
|
142
|
-
(valueChange)="onChange($event)"
|
|
143
|
-
(validityChange)="onValidity($event)"
|
|
144
|
-
></praxis-filter-form>
|
|
145
|
-
<p *ngIf="!data?.config && !data?.schemaLoading" class="pfx-empty-state">{{ data.i18n?.noData || 'Nenhum dado' }}</p>
|
|
146
|
-
</mat-dialog-content>
|
|
147
|
-
<mat-dialog-actions align="end" class="pfx-dialog-actions">
|
|
148
|
-
<button mat-button type="button"
|
|
149
|
-
*ngIf="data?.allowSaveTags"
|
|
150
|
-
[disabled]="!canSave"
|
|
151
|
-
(click)="saveShortcut()">
|
|
152
|
-
{{ data.i18n?.saveAsShortcut || 'Salvar como atalho' }}
|
|
153
|
-
</button>
|
|
154
|
-
<button mat-stroked-button type="button" (click)="close()">{{ data.i18n?.cancel || 'Cancelar' }}</button>
|
|
155
|
-
<button mat-flat-button color="primary" (click)="apply()" [disabled]="!valid">
|
|
156
|
-
{{ data.i18n?.apply || 'Aplicar' }}
|
|
157
|
-
</button>
|
|
158
|
-
</mat-dialog-actions>
|
|
159
|
-
`, styles: [".pfx-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:8px}.pfx-dialog-title-text{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--md-sys-color-on-surface)}.pfx-dialog-close{margin-left:auto}.pfx-filter-dialog-content{display:flex;flex-direction:column;gap:12px;padding-top:8px}.pfx-empty-state{margin:8px 0 0;color:var(--md-sys-color-on-surface-variant)}.pfx-dialog-actions{padding:var(--pdx-dialog-actions-padding, 12px 24px 16px);border-top:1px solid var(--md-sys-color-outline-variant);background:transparent;display:flex;align-items:center;gap:8px}\n"] }]
|
|
160
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
161
|
-
type: Inject,
|
|
162
|
-
args: [MAT_DIALOG_DATA]
|
|
163
|
-
}] }, { type: i1.MatDialogRef }] });
|
|
164
|
-
|
|
165
|
-
export { FilterFormDialogHostComponent };
|