@praxisui/crud 10.0.0-rc.52 → 10.0.0-rc.53
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/ai/component-registry.json +2 -2
- package/fesm2022/{praxisui-crud-crud-route-form.component-xYXi2GPl.mjs → praxisui-crud-crud-route-form.component-WB40xi5m.mjs} +1 -1
- package/fesm2022/{praxisui-crud-praxisui-crud-GuTAIkKU.mjs → praxisui-crud-praxisui-crud-Dwiyw5xM.mjs} +244 -19
- package/fesm2022/praxisui-crud.mjs +1 -1
- package/package.json +7 -7
- package/types/praxisui-crud.d.ts +14 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-18T18:58:23.543Z",
|
|
4
4
|
"packageName": "@praxisui/crud",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.53",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 3,
|
|
@@ -4,7 +4,7 @@ import { NgComponentOutlet } from '@angular/common';
|
|
|
4
4
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { EnterpriseRuntimeContextService, PraxisI18nService, providePraxisI18nConfig } from '@praxisui/core';
|
|
7
|
-
import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, G as translateCrudRuntimeText, t as crudRouteContextKey, g as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-
|
|
7
|
+
import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, G as translateCrudRuntimeText, t as crudRouteContextKey, g as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-Dwiyw5xM.mjs';
|
|
8
8
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
9
9
|
|
|
10
10
|
/** Created only by createCrudFormRoute; owns the transferred form instance. */
|
|
@@ -5408,13 +5408,15 @@ class CrudLauncherService {
|
|
|
5408
5408
|
return action;
|
|
5409
5409
|
}
|
|
5410
5410
|
const formId = this.buildInferredFormId(action, metadata);
|
|
5411
|
+
const hasResolvedFormSections = Array.isArray(metadata.form?.sections) && metadata.form.sections.length > 0;
|
|
5411
5412
|
return formId
|
|
5412
5413
|
? {
|
|
5413
5414
|
...action,
|
|
5414
5415
|
formId,
|
|
5415
5416
|
form: {
|
|
5416
5417
|
...(action.form || {}),
|
|
5417
|
-
layoutPolicy: action.form?.layoutPolicy ??
|
|
5418
|
+
layoutPolicy: action.form?.layoutPolicy ??
|
|
5419
|
+
(hasResolvedFormSections ? undefined : this.defaultInferredLayoutPolicy(action)),
|
|
5418
5420
|
},
|
|
5419
5421
|
}
|
|
5420
5422
|
: action;
|
|
@@ -5597,17 +5599,84 @@ class CrudLauncherService {
|
|
|
5597
5599
|
requireComponentId: true,
|
|
5598
5600
|
}) ?? null);
|
|
5599
5601
|
}
|
|
5602
|
+
collectStoredFormCandidateKeys(action, metadata) {
|
|
5603
|
+
const resourcePath = String(metadata.resource?.path ?? metadata.table?.resourcePath ?? '').trim();
|
|
5604
|
+
const rawIds = [
|
|
5605
|
+
stringOrUndefined$1(action.formId),
|
|
5606
|
+
this.buildInferredFormId(action, metadata),
|
|
5607
|
+
].filter((value) => Boolean(value));
|
|
5608
|
+
const candidates = [];
|
|
5609
|
+
const pushUnique = (value) => {
|
|
5610
|
+
const normalized = typeof value === 'string' ? value.trim() : '';
|
|
5611
|
+
if (normalized && !candidates.includes(normalized)) {
|
|
5612
|
+
candidates.push(normalized);
|
|
5613
|
+
}
|
|
5614
|
+
};
|
|
5615
|
+
for (const rawId of rawIds) {
|
|
5616
|
+
if (this.componentKeys && resourcePath) {
|
|
5617
|
+
try {
|
|
5618
|
+
pushUnique(this.componentKeys.buildComponentId({
|
|
5619
|
+
componentType: 'praxis-dynamic-form',
|
|
5620
|
+
componentId: rawId,
|
|
5621
|
+
resourcePath,
|
|
5622
|
+
requireComponentId: true,
|
|
5623
|
+
}));
|
|
5624
|
+
}
|
|
5625
|
+
catch { }
|
|
5626
|
+
}
|
|
5627
|
+
pushUnique(rawId);
|
|
5628
|
+
}
|
|
5629
|
+
return candidates;
|
|
5630
|
+
}
|
|
5631
|
+
loadStoredActionFormConfig(action, metadata, normalizedMode, signal) {
|
|
5632
|
+
if (signal?.aborted) {
|
|
5633
|
+
return null;
|
|
5634
|
+
}
|
|
5635
|
+
const candidateKeys = this.collectStoredFormCandidateKeys(action, metadata);
|
|
5636
|
+
return this.probeStoredActionFormKeys(candidateKeys, 0, normalizedMode, signal);
|
|
5637
|
+
}
|
|
5638
|
+
probeStoredActionFormKeys(candidateKeys, index, normalizedMode, signal) {
|
|
5639
|
+
for (let i = index; i < candidateKeys.length; i += 1) {
|
|
5640
|
+
if (signal?.aborted) {
|
|
5641
|
+
return null;
|
|
5642
|
+
}
|
|
5643
|
+
const configKey = `praxis-form-config-${candidateKeys[i]}:${normalizedMode}`;
|
|
5644
|
+
try {
|
|
5645
|
+
const stored = this.storage.loadConfig(configKey);
|
|
5646
|
+
if (!stored) {
|
|
5647
|
+
continue;
|
|
5648
|
+
}
|
|
5649
|
+
const valueOrPromise = readConfigWithAbort(stored, signal);
|
|
5650
|
+
if (valueOrPromise instanceof Promise) {
|
|
5651
|
+
return valueOrPromise.then((savedForm) => {
|
|
5652
|
+
if (isStoredFormConfig(savedForm)) {
|
|
5653
|
+
return savedForm;
|
|
5654
|
+
}
|
|
5655
|
+
return this.probeStoredActionFormKeys(candidateKeys, i + 1, normalizedMode, signal);
|
|
5656
|
+
});
|
|
5657
|
+
}
|
|
5658
|
+
if (isStoredFormConfig(valueOrPromise)) {
|
|
5659
|
+
return valueOrPromise;
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
catch { }
|
|
5663
|
+
}
|
|
5664
|
+
return null;
|
|
5665
|
+
}
|
|
5600
5666
|
async mergeCrudOverrides(metadata, action, componentKeyId, signal) {
|
|
5601
5667
|
try {
|
|
5602
|
-
if (!componentKeyId)
|
|
5603
|
-
return { metadata, action };
|
|
5604
|
-
const key = `crud-overrides:${componentKeyId}`;
|
|
5605
5668
|
let saved = null;
|
|
5606
|
-
|
|
5607
|
-
const
|
|
5608
|
-
|
|
5669
|
+
if (componentKeyId) {
|
|
5670
|
+
const key = `crud-overrides:${componentKeyId}`;
|
|
5671
|
+
try {
|
|
5672
|
+
const stored = this.storage.loadConfig(key);
|
|
5673
|
+
saved = await firstValueFrom(signal ? stored.pipe(takeUntil(fromEvent(signal, 'abort'))) : stored);
|
|
5674
|
+
}
|
|
5675
|
+
catch { }
|
|
5676
|
+
}
|
|
5677
|
+
if (signal?.aborted) {
|
|
5678
|
+
return { metadata, action };
|
|
5609
5679
|
}
|
|
5610
|
-
catch { }
|
|
5611
5680
|
const overDefaults = saved?.defaults || {};
|
|
5612
5681
|
const overActions = saved?.actions || {};
|
|
5613
5682
|
// Merge defaults (shallow for defaults, shallow for modal/back)
|
|
@@ -5646,6 +5715,30 @@ class CrudLauncherService {
|
|
|
5646
5715
|
if (action.form?.initialValue != null) {
|
|
5647
5716
|
mergedAction.form = { ...mergedAction.form, initialValue: action.form.initialValue };
|
|
5648
5717
|
}
|
|
5718
|
+
const normalizedMode = this.normalizeCrudOperationName(mergedAction.action);
|
|
5719
|
+
const hasExplicitFormSections = Array.isArray(mergedMetadata.form?.sections) && mergedMetadata.form.sections.length > 0;
|
|
5720
|
+
const transientPersistence = mergedAction.form?.layoutPolicy?.persistence === 'transient';
|
|
5721
|
+
if (!hasExplicitFormSections &&
|
|
5722
|
+
!transientPersistence &&
|
|
5723
|
+
(normalizedMode === 'create' || normalizedMode === 'edit' || normalizedMode === 'view')) {
|
|
5724
|
+
const storedOrPromise = this.loadStoredActionFormConfig(mergedAction, mergedMetadata, normalizedMode, signal);
|
|
5725
|
+
const storedForm = storedOrPromise instanceof Promise ? await storedOrPromise : storedOrPromise;
|
|
5726
|
+
if (storedForm) {
|
|
5727
|
+
mergedMetadata.form = {
|
|
5728
|
+
...(mergedMetadata.form || {}),
|
|
5729
|
+
...storedForm,
|
|
5730
|
+
...(Array.isArray(storedForm.sections) && storedForm.sections.length > 0
|
|
5731
|
+
? { sections: storedForm.sections }
|
|
5732
|
+
: {}),
|
|
5733
|
+
...(Array.isArray(storedForm.fieldMetadata) && storedForm.fieldMetadata.length > 0
|
|
5734
|
+
? { fieldMetadata: storedForm.fieldMetadata }
|
|
5735
|
+
: {}),
|
|
5736
|
+
...(isPlainRecord(storedForm.layout)
|
|
5737
|
+
? { layout: storedForm.layout }
|
|
5738
|
+
: {}),
|
|
5739
|
+
};
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5649
5742
|
return { metadata: mergedMetadata, action: mergedAction };
|
|
5650
5743
|
}
|
|
5651
5744
|
catch {
|
|
@@ -5659,6 +5752,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5659
5752
|
type: Injectable,
|
|
5660
5753
|
args: [{ providedIn: 'root' }]
|
|
5661
5754
|
}] });
|
|
5755
|
+
function readConfigWithAbort(source$, signal) {
|
|
5756
|
+
if (signal?.aborted) {
|
|
5757
|
+
return null;
|
|
5758
|
+
}
|
|
5759
|
+
let settled = false;
|
|
5760
|
+
let syncValue = null;
|
|
5761
|
+
let isSync = true;
|
|
5762
|
+
let asyncResolve;
|
|
5763
|
+
const asyncPromise = new Promise((resolve) => {
|
|
5764
|
+
asyncResolve = resolve;
|
|
5765
|
+
});
|
|
5766
|
+
const guarded$ = signal
|
|
5767
|
+
? source$.pipe(takeUntil(fromEvent(signal, 'abort')), take(1))
|
|
5768
|
+
: source$.pipe(take(1));
|
|
5769
|
+
const sub = guarded$.subscribe({
|
|
5770
|
+
next: (value) => {
|
|
5771
|
+
if (settled)
|
|
5772
|
+
return;
|
|
5773
|
+
settled = true;
|
|
5774
|
+
if (isSync) {
|
|
5775
|
+
syncValue = value ?? null;
|
|
5776
|
+
}
|
|
5777
|
+
else {
|
|
5778
|
+
asyncResolve(value ?? null);
|
|
5779
|
+
}
|
|
5780
|
+
},
|
|
5781
|
+
error: () => {
|
|
5782
|
+
if (settled)
|
|
5783
|
+
return;
|
|
5784
|
+
settled = true;
|
|
5785
|
+
if (isSync) {
|
|
5786
|
+
syncValue = null;
|
|
5787
|
+
}
|
|
5788
|
+
else {
|
|
5789
|
+
asyncResolve(null);
|
|
5790
|
+
}
|
|
5791
|
+
},
|
|
5792
|
+
complete: () => {
|
|
5793
|
+
if (settled)
|
|
5794
|
+
return;
|
|
5795
|
+
settled = true;
|
|
5796
|
+
if (isSync) {
|
|
5797
|
+
syncValue = null;
|
|
5798
|
+
}
|
|
5799
|
+
else {
|
|
5800
|
+
asyncResolve(null);
|
|
5801
|
+
}
|
|
5802
|
+
},
|
|
5803
|
+
});
|
|
5804
|
+
isSync = false;
|
|
5805
|
+
if (settled) {
|
|
5806
|
+
sub.unsubscribe();
|
|
5807
|
+
return syncValue;
|
|
5808
|
+
}
|
|
5809
|
+
return asyncPromise;
|
|
5810
|
+
}
|
|
5811
|
+
function isPlainRecord(value) {
|
|
5812
|
+
return Boolean(value && typeof value === 'object' && !Array.isArray(value));
|
|
5813
|
+
}
|
|
5814
|
+
function isStoredFormConfig(value) {
|
|
5815
|
+
if (!isPlainRecord(value)) {
|
|
5816
|
+
return false;
|
|
5817
|
+
}
|
|
5818
|
+
const hasSections = Array.isArray(value['sections']) && value['sections'].length > 0;
|
|
5819
|
+
const hasFieldMetadata = Array.isArray(value['fieldMetadata']) && value['fieldMetadata'].length > 0;
|
|
5820
|
+
const hasLayout = isPlainRecord(value['layout']);
|
|
5821
|
+
return hasSections || hasFieldMetadata || hasLayout;
|
|
5822
|
+
}
|
|
5662
5823
|
function mergeClassList(base, extra) {
|
|
5663
5824
|
if (!extra) {
|
|
5664
5825
|
return base;
|
|
@@ -6046,7 +6207,10 @@ function normalizeCrudMetadata(metadata) {
|
|
|
6046
6207
|
? normalizedPageHeader
|
|
6047
6208
|
: undefined;
|
|
6048
6209
|
}
|
|
6049
|
-
if (base.kpiBand
|
|
6210
|
+
if (base.kpiBand === false) {
|
|
6211
|
+
normalized.kpiBand = false;
|
|
6212
|
+
}
|
|
6213
|
+
else if (base.kpiBand && typeof base.kpiBand === 'object') {
|
|
6050
6214
|
normalized.kpiBand = normalizeKpiBandConfig(base.kpiBand);
|
|
6051
6215
|
}
|
|
6052
6216
|
if (base.filterBar && typeof base.filterBar === 'object') {
|
|
@@ -7690,6 +7854,9 @@ class CrudMetadataEditorComponent {
|
|
|
7690
7854
|
}, ...(ngDevMode ? [{ debugName: "filteredTelemetryEndpoints" }] : /* istanbul ignore next */ []));
|
|
7691
7855
|
effectiveKpiBand = computed(() => {
|
|
7692
7856
|
const meta = this.currentDocument().metadata;
|
|
7857
|
+
if (meta.kpiBand === false) {
|
|
7858
|
+
return { enabled: false, cards: [] };
|
|
7859
|
+
}
|
|
7693
7860
|
return (meta.kpiBand ||
|
|
7694
7861
|
meta.table?.kpiBand ||
|
|
7695
7862
|
meta.table?.behavior?.kpiBand ||
|
|
@@ -14820,6 +14987,8 @@ class PraxisCrudComponent {
|
|
|
14820
14987
|
filterCriteriaChange = new EventEmitter();
|
|
14821
14988
|
/** Emite os filtros rápidos canônicos descobertos no schema x-ui.resource.quickFilters da tabela interna */
|
|
14822
14989
|
discoveredQuickFiltersChange = new EventEmitter();
|
|
14990
|
+
/** Emite os campos promovidos para filtro inline descobertos no schema de filtro da tabela interna */
|
|
14991
|
+
discoveredInlineFilterFieldsChange = new EventEmitter();
|
|
14823
14992
|
/** Evento emitido ao clicar em um card da faixa declarativa de KPIs (Issue #33) */
|
|
14824
14993
|
kpiCardClick = new EventEmitter();
|
|
14825
14994
|
get resolvedPageHeader() {
|
|
@@ -14966,11 +15135,24 @@ class PraxisCrudComponent {
|
|
|
14966
15135
|
onStandaloneScopeClear() {
|
|
14967
15136
|
this.clearFilterCriteria();
|
|
14968
15137
|
}
|
|
15138
|
+
autoSchemaKpiBandConfig = {
|
|
15139
|
+
enabled: true,
|
|
15140
|
+
source: 'schema',
|
|
15141
|
+
};
|
|
14969
15142
|
get resolvedKpiBandConfig() {
|
|
14970
15143
|
const meta = this.resolvedMetadata;
|
|
14971
|
-
const
|
|
14972
|
-
if (
|
|
14973
|
-
return
|
|
15144
|
+
const rawBand = meta?.kpiBand ?? meta?.table?.kpiBand ?? meta?.table?.behavior?.kpiBand;
|
|
15145
|
+
if (rawBand === false || (rawBand && rawBand.enabled === false)) {
|
|
15146
|
+
return null;
|
|
15147
|
+
}
|
|
15148
|
+
if (rawBand && rawBand.enabled !== false && (rawBand.cards?.length || rawBand.source || rawBand.document)) {
|
|
15149
|
+
return rawBand;
|
|
15150
|
+
}
|
|
15151
|
+
if (rawBand === undefined &&
|
|
15152
|
+
!this.isInspectOnly(meta) &&
|
|
15153
|
+
Boolean(this.resolveResourcePath(meta)) &&
|
|
15154
|
+
(this.discoveredResourceFacts.length > 0 || this.collectionCapabilities?.stats?.supported === true)) {
|
|
15155
|
+
return this.autoSchemaKpiBandConfig;
|
|
14974
15156
|
}
|
|
14975
15157
|
return null;
|
|
14976
15158
|
}
|
|
@@ -15069,6 +15251,7 @@ class PraxisCrudComponent {
|
|
|
15069
15251
|
tableCollectionLinks = null;
|
|
15070
15252
|
collectionCapabilities = null;
|
|
15071
15253
|
discoveredSchemaQuickFilters = [];
|
|
15254
|
+
discoveredInlineFilterFields = [];
|
|
15072
15255
|
discoveredSchemaFields = [];
|
|
15073
15256
|
discoveredSchemaMetadata = null;
|
|
15074
15257
|
discoveredResourceFacts = [];
|
|
@@ -15689,6 +15872,7 @@ class PraxisCrudComponent {
|
|
|
15689
15872
|
this.tableCollectionLinks = null;
|
|
15690
15873
|
this.collectionCapabilities = null;
|
|
15691
15874
|
this.discoveredSchemaQuickFilters = [];
|
|
15875
|
+
this.discoveredInlineFilterFields = [];
|
|
15692
15876
|
this.discoveredSchemaFields = [];
|
|
15693
15877
|
this.discoveredSchemaMetadata = null;
|
|
15694
15878
|
this.discoveredResourceFacts = [];
|
|
@@ -16647,6 +16831,21 @@ class PraxisCrudComponent {
|
|
|
16647
16831
|
}
|
|
16648
16832
|
this.cdr.markForCheck();
|
|
16649
16833
|
}
|
|
16834
|
+
onTableDiscoveredResourceFactsChange(facts) {
|
|
16835
|
+
const normalized = Array.isArray(facts)
|
|
16836
|
+
? facts.filter((item) => Boolean(item && typeof item === 'object' && !Array.isArray(item)))
|
|
16837
|
+
: [];
|
|
16838
|
+
this.discoveredResourceFacts = normalized.map((item) => structuredClone(item));
|
|
16839
|
+
this.cdr.markForCheck();
|
|
16840
|
+
}
|
|
16841
|
+
onTableDiscoveredInlineFilterFieldsChange(fields) {
|
|
16842
|
+
const normalized = Array.isArray(fields)
|
|
16843
|
+
? fields.map((field) => String(field || '').trim()).filter(Boolean)
|
|
16844
|
+
: [];
|
|
16845
|
+
this.discoveredInlineFilterFields = normalized;
|
|
16846
|
+
this.discoveredInlineFilterFieldsChange.emit([...normalized]);
|
|
16847
|
+
this.cdr.markForCheck();
|
|
16848
|
+
}
|
|
16650
16849
|
/**
|
|
16651
16850
|
* Aplica critérios de busca avançada na tabela interna do CRUD (Issue #11).
|
|
16652
16851
|
*/
|
|
@@ -16829,7 +17028,12 @@ class PraxisCrudComponent {
|
|
|
16829
17028
|
if (!cleanPath || this.isInspectOnly() || this.loadedSchemaResourcePath === cleanPath) {
|
|
16830
17029
|
return;
|
|
16831
17030
|
}
|
|
16832
|
-
const
|
|
17031
|
+
const rawKpiBand = this.resolvedMetadata?.kpiBand ??
|
|
17032
|
+
this.resolvedMetadata?.table?.kpiBand ??
|
|
17033
|
+
this.resolvedMetadata?.table?.behavior?.kpiBand;
|
|
17034
|
+
const wantsSchemaKpi = typeof rawKpiBand === 'object' &&
|
|
17035
|
+
rawKpiBand !== null &&
|
|
17036
|
+
rawKpiBand.source?.trim().toLowerCase() === 'schema';
|
|
16833
17037
|
const hasWorkspaceContext = this.workspaceQueryContext?.hasActiveContext() === true;
|
|
16834
17038
|
if (!wantsSchemaKpi && !hasWorkspaceContext) {
|
|
16835
17039
|
return;
|
|
@@ -18054,6 +18258,8 @@ class PraxisCrudComponent {
|
|
|
18054
18258
|
this.tableCollectionLinks = null;
|
|
18055
18259
|
this.collectionCapabilities = null;
|
|
18056
18260
|
this.discoveredSchemaQuickFilters = [];
|
|
18261
|
+
this.discoveredInlineFilterFields = [];
|
|
18262
|
+
this.discoveredResourceFacts = [];
|
|
18057
18263
|
this.collectionCapabilitiesRequestHref = null;
|
|
18058
18264
|
this.collectionCapabilitiesResolvedHref = null;
|
|
18059
18265
|
this.collectionCapabilitiesRequestSeq += 1;
|
|
@@ -18541,7 +18747,7 @@ class PraxisCrudComponent {
|
|
|
18541
18747
|
return Object.entries(params).reduce((current, [name, value]) => current.split(`{${name}}`).join(value), text);
|
|
18542
18748
|
}
|
|
18543
18749
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisCrudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18544
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisCrudComponent, isStandalone: true, selector: "praxis-crud", inputs: { metadata: "metadata", crudId: "crudId", resource: "resource", componentInstanceId: "componentInstanceId", tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", enableCustomization: "enableCustomization", showResourceIdentityKey: "showResourceIdentityKey", authoringCapability: "authoringCapability", filterCriteria: "filterCriteria", lockedFilterFields: "lockedFilterFields", schemaFields: "schemaFields", filterTeleport: ["filterTeleport", "filterTeleport", booleanAttribute], disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], hostManagedChrome: ["hostManagedChrome", "hostManagedChrome", booleanAttribute] }, outputs: { configureRequested: "configureRequested", afterOpen: "afterOpen", afterClose: "afterClose", afterSave: "afterSave", afterDelete: "afterDelete", reactiveDeterminationExecuted: "reactiveDeterminationExecuted", reactiveDeterminationPendingChange: "reactiveDeterminationPendingChange", reactiveDeterminationStabilityChange: "reactiveDeterminationStabilityChange", error: "error", rowClick: "rowClick", rowAction: "rowAction", selectionChange: "selectionChange", resourceEvent: "resourceEvent", tableRuntimeConfigChange: "tableRuntimeConfigChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", crudAuthoringDocumentApplied: "crudAuthoringDocumentApplied", crudAuthoringDocumentSaved: "crudAuthoringDocumentSaved", filterCriteriaChange: "filterCriteriaChange", discoveredQuickFiltersChange: "discoveredQuickFiltersChange", kpiCardClick: "kpiCardClick" }, providers: [
|
|
18750
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisCrudComponent, isStandalone: true, selector: "praxis-crud", inputs: { metadata: "metadata", crudId: "crudId", resource: "resource", componentInstanceId: "componentInstanceId", tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", enableCustomization: "enableCustomization", showResourceIdentityKey: "showResourceIdentityKey", authoringCapability: "authoringCapability", filterCriteria: "filterCriteria", lockedFilterFields: "lockedFilterFields", schemaFields: "schemaFields", filterTeleport: ["filterTeleport", "filterTeleport", booleanAttribute], disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], hostManagedChrome: ["hostManagedChrome", "hostManagedChrome", booleanAttribute] }, outputs: { configureRequested: "configureRequested", afterOpen: "afterOpen", afterClose: "afterClose", afterSave: "afterSave", afterDelete: "afterDelete", reactiveDeterminationExecuted: "reactiveDeterminationExecuted", reactiveDeterminationPendingChange: "reactiveDeterminationPendingChange", reactiveDeterminationStabilityChange: "reactiveDeterminationStabilityChange", error: "error", rowClick: "rowClick", rowAction: "rowAction", selectionChange: "selectionChange", resourceEvent: "resourceEvent", tableRuntimeConfigChange: "tableRuntimeConfigChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", crudAuthoringDocumentApplied: "crudAuthoringDocumentApplied", crudAuthoringDocumentSaved: "crudAuthoringDocumentSaved", filterCriteriaChange: "filterCriteriaChange", discoveredQuickFiltersChange: "discoveredQuickFiltersChange", discoveredInlineFilterFieldsChange: "discoveredInlineFilterFieldsChange", kpiCardClick: "kpiCardClick" }, providers: [
|
|
18545
18751
|
providePraxisI18nConfig(RESOURCE_DISCOVERY_I18N_CONFIG),
|
|
18546
18752
|
providePraxisI18nConfig(PRAXIS_CRUD_RUNTIME_I18N_CONFIG),
|
|
18547
18753
|
], viewQueries: [{ propertyName: "kpiBand", first: true, predicate: PraxisKpiBandComponent, descendants: true }, { propertyName: "table", first: true, predicate: PraxisTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -18634,6 +18840,8 @@ class PraxisCrudComponent {
|
|
|
18634
18840
|
(drawerClose)="onTableDrawerClose()"
|
|
18635
18841
|
(filterCriteriaChange)="onTableFilterCriteriaChange($event)"
|
|
18636
18842
|
(discoveredQuickFiltersChange)="onTableDiscoveredQuickFiltersChange($event)"
|
|
18843
|
+
(discoveredResourceFactsChange)="onTableDiscoveredResourceFactsChange($event)"
|
|
18844
|
+
(discoveredInlineFilterFieldsChange)="onTableDiscoveredInlineFilterFieldsChange($event)"
|
|
18637
18845
|
></praxis-table>
|
|
18638
18846
|
} @else {
|
|
18639
18847
|
@if (isCustomizationAvailable()) {
|
|
@@ -18646,7 +18854,7 @@ class PraxisCrudComponent {
|
|
|
18646
18854
|
}
|
|
18647
18855
|
}
|
|
18648
18856
|
</div>
|
|
18649
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:var(--praxis-crud-runtime-gap, 16px)}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:var(--praxis-header-align-items, center);gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-crud-runtime__header-main{min-width:0;display:flex;flex-direction:column}.praxis-crud-runtime__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--praxis-domain-badge-margin-bottom, 8px);align-self:flex-start;background:var(--praxis-domain-badge-bg, rgba(255, 255, 255, .08));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, rgba(255, 255, 255, .1))}.praxis-crud-runtime__domain-badge.tone-primary,.praxis-crud-runtime__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,transparent);color:var(--praxis-info, #38bdf8);border-color:color-mix(in srgb,var(--praxis-info, #0284c7) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, #6366f1) 14%,transparent);color:var(--praxis-primary, #818cf8);border-color:color-mix(in srgb,var(--praxis-primary, #6366f1) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-success{background:color-mix(in srgb,var(--praxis-success, #059669) 14%,transparent);color:var(--praxis-success, #34d399);border-color:color-mix(in srgb,var(--praxis-success, #059669) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-warning,.praxis-crud-runtime__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, #d97706) 14%,transparent);color:var(--praxis-warning, #fbbf24);border-color:color-mix(in srgb,var(--praxis-warning, #d97706) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-danger,.praxis-crud-runtime__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, #dc2626) 14%,transparent);color:var(--praxis-error, #f87171);border-color:color-mix(in srgb,var(--praxis-error, #dc2626) 30%,transparent)}.praxis-crud-runtime__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-crud-runtime__title{margin:var(--praxis-page-title-margin, 0 0 6px 0);font-size:var(--praxis-page-title-size, 1.75rem);font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.2}.praxis-crud-runtime__subtitle{margin:var(--praxis-page-subtitle-margin, 0);font-size:var(--praxis-page-subtitle-size, .9rem);color:var(--muted-foreground, #94a3b8);max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.5)}.praxis-crud-opening-status{position:absolute;z-index:6;top:.7rem;right:.7rem;display:inline-flex;align-items:center;gap:.55rem;min-height:2.25rem;max-width:min(24rem,calc(100% - 1.4rem));padding:.48rem .72rem;border:1px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 32%,transparent);border-radius:999px;color:var(--md-sys-color-on-surface, currentColor);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)) 94%,transparent);box-shadow:0 10px 28px #0f172a29;font-size:.82rem;font-weight:650;line-height:1.25;pointer-events:none}.praxis-crud-opening-status__spinner{width:.95rem;height:.95rem;flex:0 0 auto;border:2px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 26%,transparent);border-top-color:var(--md-sys-color-primary, #3f51b5);border-radius:50%;animation:praxis-crud-opening-spin .72s linear infinite}@keyframes praxis-crud-opening-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.praxis-crud-opening-status__spinner{animation:none;border-top-color:currentColor}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisTable, selector: "praxis-table", inputs: ["config", "resourcePath", "collectionSurface", "data", "tableId", "componentInstanceId", "configPersistenceStrategy", "title", "subtitle", "icon", "autoDelete", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "crudContext", "filterCriteria", "hostOwnsDefaultQuickFilter", "filterTeleport", "widgetId", "queryContext", "lockedFilterFields", "aiContext", "aiAssistantVoiceInputMode", "aiAssistantVoiceLanguage", "horizontalScroll", "enableCustomization", "authoringCapability", "dense"], outputs: ["filterCriteriaChange", "discoveredQuickFiltersChange", "queryContextClear", "queryContextChange", "rowClick", "widgetEvent", "resourceEvent", "rowDoubleClick", "rowExpansionChange", "rowAction", "toolbarAction", "bulkAction", "exportAction", "columnReorder", "columnReorderAttempt", "columnResize", "beforeDelete", "afterDelete", "deleteError", "beforeBulkDelete", "afterBulkDelete", "bulkDeleteError", "schemaStatusChange", "configChange", "metadataChange", "loadingStateChange", "collectionLinksChange", "selectionChange", "drawerOpen", "drawerClose", "drawerTabChange"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "component", type: PraxisKpiBandComponent, selector: "praxis-kpi-band", inputs: ["config", "dataContext", "isInteractiveHost", "activeFilter", "endpointKey", "apiUrlEntry", "resourcePath", "resourceFacts", "quickFilters", "capabilities", "schemaMetadata", "baseFilter"], outputs: ["cardClick", "statsLoaded", "statsError", "refreshClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }] });
|
|
18857
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:var(--praxis-crud-runtime-gap, 16px)}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:var(--praxis-header-align-items, center);gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-crud-runtime__header-main{min-width:0;display:flex;flex-direction:column}.praxis-crud-runtime__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--praxis-domain-badge-margin-bottom, 8px);align-self:flex-start;background:var(--praxis-domain-badge-bg, rgba(255, 255, 255, .08));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, rgba(255, 255, 255, .1))}.praxis-crud-runtime__domain-badge.tone-primary,.praxis-crud-runtime__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,transparent);color:var(--praxis-info, #38bdf8);border-color:color-mix(in srgb,var(--praxis-info, #0284c7) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, #6366f1) 14%,transparent);color:var(--praxis-primary, #818cf8);border-color:color-mix(in srgb,var(--praxis-primary, #6366f1) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-success{background:color-mix(in srgb,var(--praxis-success, #059669) 14%,transparent);color:var(--praxis-success, #34d399);border-color:color-mix(in srgb,var(--praxis-success, #059669) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-warning,.praxis-crud-runtime__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, #d97706) 14%,transparent);color:var(--praxis-warning, #fbbf24);border-color:color-mix(in srgb,var(--praxis-warning, #d97706) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-danger,.praxis-crud-runtime__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, #dc2626) 14%,transparent);color:var(--praxis-error, #f87171);border-color:color-mix(in srgb,var(--praxis-error, #dc2626) 30%,transparent)}.praxis-crud-runtime__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-crud-runtime__title{margin:var(--praxis-page-title-margin, 0 0 6px 0);font-size:var(--praxis-page-title-size, 1.75rem);font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.2}.praxis-crud-runtime__subtitle{margin:var(--praxis-page-subtitle-margin, 0);font-size:var(--praxis-page-subtitle-size, .9rem);color:var(--muted-foreground, #94a3b8);max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.5)}.praxis-crud-opening-status{position:absolute;z-index:6;top:.7rem;right:.7rem;display:inline-flex;align-items:center;gap:.55rem;min-height:2.25rem;max-width:min(24rem,calc(100% - 1.4rem));padding:.48rem .72rem;border:1px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 32%,transparent);border-radius:999px;color:var(--md-sys-color-on-surface, currentColor);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)) 94%,transparent);box-shadow:0 10px 28px #0f172a29;font-size:.82rem;font-weight:650;line-height:1.25;pointer-events:none}.praxis-crud-opening-status__spinner{width:.95rem;height:.95rem;flex:0 0 auto;border:2px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 26%,transparent);border-top-color:var(--md-sys-color-primary, #3f51b5);border-radius:50%;animation:praxis-crud-opening-spin .72s linear infinite}@keyframes praxis-crud-opening-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.praxis-crud-opening-status__spinner{animation:none;border-top-color:currentColor}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisTable, selector: "praxis-table", inputs: ["config", "resourcePath", "collectionSurface", "data", "tableId", "componentInstanceId", "configPersistenceStrategy", "title", "subtitle", "icon", "autoDelete", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "crudContext", "filterCriteria", "hostOwnsDefaultQuickFilter", "filterTeleport", "widgetId", "queryContext", "lockedFilterFields", "aiContext", "aiAssistantVoiceInputMode", "aiAssistantVoiceLanguage", "horizontalScroll", "enableCustomization", "authoringCapability", "dense"], outputs: ["filterCriteriaChange", "discoveredQuickFiltersChange", "discoveredResourceFactsChange", "discoveredInlineFilterFieldsChange", "queryContextClear", "queryContextChange", "rowClick", "widgetEvent", "resourceEvent", "rowDoubleClick", "rowExpansionChange", "rowAction", "toolbarAction", "bulkAction", "exportAction", "columnReorder", "columnReorderAttempt", "columnResize", "beforeDelete", "afterDelete", "deleteError", "beforeBulkDelete", "afterBulkDelete", "bulkDeleteError", "schemaStatusChange", "configChange", "metadataChange", "loadingStateChange", "collectionLinksChange", "selectionChange", "drawerOpen", "drawerClose", "drawerTabChange"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "component", type: PraxisKpiBandComponent, selector: "praxis-kpi-band", inputs: ["config", "dataContext", "isInteractiveHost", "activeFilter", "endpointKey", "apiUrlEntry", "resourcePath", "resourceFacts", "quickFilters", "capabilities", "schemaMetadata", "baseFilter"], outputs: ["cardClick", "statsLoaded", "statsError", "refreshClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }] });
|
|
18650
18858
|
}
|
|
18651
18859
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisCrudComponent, decorators: [{
|
|
18652
18860
|
type: Component,
|
|
@@ -18749,6 +18957,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
18749
18957
|
(drawerClose)="onTableDrawerClose()"
|
|
18750
18958
|
(filterCriteriaChange)="onTableFilterCriteriaChange($event)"
|
|
18751
18959
|
(discoveredQuickFiltersChange)="onTableDiscoveredQuickFiltersChange($event)"
|
|
18960
|
+
(discoveredResourceFactsChange)="onTableDiscoveredResourceFactsChange($event)"
|
|
18961
|
+
(discoveredInlineFilterFieldsChange)="onTableDiscoveredInlineFilterFieldsChange($event)"
|
|
18752
18962
|
></praxis-table>
|
|
18753
18963
|
} @else {
|
|
18754
18964
|
@if (isCustomizationAvailable()) {
|
|
@@ -18833,6 +19043,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
18833
19043
|
type: Output
|
|
18834
19044
|
}], discoveredQuickFiltersChange: [{
|
|
18835
19045
|
type: Output
|
|
19046
|
+
}], discoveredInlineFilterFieldsChange: [{
|
|
19047
|
+
type: Output
|
|
18836
19048
|
}], kpiCardClick: [{
|
|
18837
19049
|
type: Output
|
|
18838
19050
|
}], kpiBand: [{
|
|
@@ -18855,7 +19067,7 @@ function createCrudFormRoute(target) {
|
|
|
18855
19067
|
return {
|
|
18856
19068
|
path: target.path,
|
|
18857
19069
|
data: { crudFormTarget: { formId: target.formId, resourcePath: target.resourcePath } },
|
|
18858
|
-
loadComponent: () => import('./praxisui-crud-crud-route-form.component-
|
|
19070
|
+
loadComponent: () => import('./praxisui-crud-crud-route-form.component-WB40xi5m.mjs').then(m => m.CrudRouteFormComponent),
|
|
18859
19071
|
canDeactivate: [(component) => component.canLeave()],
|
|
18860
19072
|
};
|
|
18861
19073
|
}
|
|
@@ -22727,7 +22939,7 @@ class PraxisDossierPageComponent {
|
|
|
22727
22939
|
}
|
|
22728
22940
|
}
|
|
22729
22941
|
</div>
|
|
22730
|
-
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box}.praxis-dossier-shell{display:flex;flex-direction:column;gap:var(--praxis-dossier-gap, 16px);width:100%}.praxis-dossier-hero{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .28))}:host([data-surface-variant=\"default\"]) .praxis-dossier-hero{padding:16px 20px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 12px);background:var(--mat-sys-surface-container-low, transparent)}.praxis-dossier-hero__identity{display:flex;align-items:flex-start;gap:14px;min-width:240px;flex:1 1 380px}.praxis-dossier-hero__avatar{width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--mat-sys-primary-container, rgba(37, 99, 235, .12));color:var(--mat-sys-on-primary-container, #1d4ed8);font-weight:700;flex-shrink:0;overflow:hidden}.praxis-dossier-hero__avatar img{width:100%;height:100%;object-fit:cover}.praxis-dossier-hero__eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mat-sys-on-surface-variant, #64748b);margin-bottom:4px}.praxis-dossier-hero__key-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;font-variant-numeric:tabular-nums;background:var(--mat-sys-surface-container-highest, rgba(148, 163, 184, .18));color:var(--mat-sys-on-surface, inherit);text-transform:none;letter-spacing:normal}.praxis-dossier-hero__title{margin:0;font-size:1.35rem;font-weight:700;line-height:1.25}.praxis-dossier-hero__subtitle{margin:4px 0 0;font-size:.9rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-hero__chips{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:.82rem}.praxis-dossier-chip{display:inline-flex;align-items:center;gap:6px;color:var(--mat-sys-on-surface, inherit)}.praxis-dossier-chip__label{color:var(--mat-sys-on-surface-variant, #64748b);font-weight:600}.praxis-dossier-chip__toggle{border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));background:transparent;color:inherit;border-radius:6px;padding:1px 6px;font-size:.72rem;cursor:pointer}.praxis-dossier-hero__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.praxis-dossier-switcher{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 10px);background:var(--mat-sys-surface-container-lowest, transparent)}.praxis-dossier-switcher__search{max-width:320px;padding:6px 10px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.85rem}.praxis-dossier-switcher__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.praxis-dossier-sibling-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .3));border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:border-color .14s ease,background-color .14s ease}.praxis-dossier-sibling-card--active{border-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-primary-container, rgba(37, 99, 235, .08))}.praxis-dossier-sibling-card__title{font-weight:600;font-size:.9rem}.praxis-dossier-sibling-card__meta{font-size:.78rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-capabilities{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:8px 0}.praxis-dossier-cap-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.praxis-dossier-cap-group__label{font-size:.78rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));padding-bottom:4px}.praxis-dossier-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--mat-sys-on-surface-variant, #64748b);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;border-radius:6px 6px 0 0}.praxis-dossier-tab--active{color:var(--mat-sys-primary, #2563eb);border-bottom-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-surface-container-low, rgba(37, 99, 235, .06))}.praxis-dossier-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;padding:12px 0}.praxis-dossier-overview-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .16))}.praxis-dossier-overview-item__label{font-size:.76rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-overview-item__value{font-size:.92rem}.praxis-dossier-state{padding:20px 16px;border:1px dashed var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "kpiCardClick"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22942
|
+
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box}.praxis-dossier-shell{display:flex;flex-direction:column;gap:var(--praxis-dossier-gap, 16px);width:100%}.praxis-dossier-hero{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .28))}:host([data-surface-variant=\"default\"]) .praxis-dossier-hero{padding:16px 20px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 12px);background:var(--mat-sys-surface-container-low, transparent)}.praxis-dossier-hero__identity{display:flex;align-items:flex-start;gap:14px;min-width:240px;flex:1 1 380px}.praxis-dossier-hero__avatar{width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--mat-sys-primary-container, rgba(37, 99, 235, .12));color:var(--mat-sys-on-primary-container, #1d4ed8);font-weight:700;flex-shrink:0;overflow:hidden}.praxis-dossier-hero__avatar img{width:100%;height:100%;object-fit:cover}.praxis-dossier-hero__eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mat-sys-on-surface-variant, #64748b);margin-bottom:4px}.praxis-dossier-hero__key-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;font-variant-numeric:tabular-nums;background:var(--mat-sys-surface-container-highest, rgba(148, 163, 184, .18));color:var(--mat-sys-on-surface, inherit);text-transform:none;letter-spacing:normal}.praxis-dossier-hero__title{margin:0;font-size:1.35rem;font-weight:700;line-height:1.25}.praxis-dossier-hero__subtitle{margin:4px 0 0;font-size:.9rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-hero__chips{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:.82rem}.praxis-dossier-chip{display:inline-flex;align-items:center;gap:6px;color:var(--mat-sys-on-surface, inherit)}.praxis-dossier-chip__label{color:var(--mat-sys-on-surface-variant, #64748b);font-weight:600}.praxis-dossier-chip__toggle{border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));background:transparent;color:inherit;border-radius:6px;padding:1px 6px;font-size:.72rem;cursor:pointer}.praxis-dossier-hero__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.praxis-dossier-switcher{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 10px);background:var(--mat-sys-surface-container-lowest, transparent)}.praxis-dossier-switcher__search{max-width:320px;padding:6px 10px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.85rem}.praxis-dossier-switcher__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.praxis-dossier-sibling-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .3));border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:border-color .14s ease,background-color .14s ease}.praxis-dossier-sibling-card--active{border-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-primary-container, rgba(37, 99, 235, .08))}.praxis-dossier-sibling-card__title{font-weight:600;font-size:.9rem}.praxis-dossier-sibling-card__meta{font-size:.78rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-capabilities{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:8px 0}.praxis-dossier-cap-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.praxis-dossier-cap-group__label{font-size:.78rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));padding-bottom:4px}.praxis-dossier-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--mat-sys-on-surface-variant, #64748b);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;border-radius:6px 6px 0 0}.praxis-dossier-tab--active{color:var(--mat-sys-primary, #2563eb);border-bottom-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-surface-container-low, rgba(37, 99, 235, .06))}.praxis-dossier-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;padding:12px 0}.praxis-dossier-overview-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .16))}.praxis-dossier-overview-item__label{font-size:.76rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-overview-item__value{font-size:.92rem}.praxis-dossier-state{padding:20px 16px;border:1px dashed var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "discoveredInlineFilterFieldsChange", "kpiCardClick"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22731
22943
|
}
|
|
22732
22944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisDossierPageComponent, decorators: [{
|
|
22733
22945
|
type: Component,
|
|
@@ -23208,6 +23420,7 @@ class PraxisResourcePage {
|
|
|
23208
23420
|
activeInspectedRecordId = signal(null, ...(ngDevMode ? [{ debugName: "activeInspectedRecordId" }] : /* istanbul ignore next */ []));
|
|
23209
23421
|
activeScopeFilter = signal({}, ...(ngDevMode ? [{ debugName: "activeScopeFilter" }] : /* istanbul ignore next */ []));
|
|
23210
23422
|
discoveredQuickFiltersSignal = signal([], ...(ngDevMode ? [{ debugName: "discoveredQuickFiltersSignal" }] : /* istanbul ignore next */ []));
|
|
23423
|
+
discoveredInlineFilterFieldsSignal = signal([], ...(ngDevMode ? [{ debugName: "discoveredInlineFilterFieldsSignal" }] : /* istanbul ignore next */ []));
|
|
23211
23424
|
lastObservedResourcePath = undefined;
|
|
23212
23425
|
governedRulesCheckGeneration = 0;
|
|
23213
23426
|
initialized = false;
|
|
@@ -23225,6 +23438,7 @@ class PraxisResourcePage {
|
|
|
23225
23438
|
if (this.lastObservedResourcePath !== undefined &&
|
|
23226
23439
|
resourcePath !== this.lastObservedResourcePath) {
|
|
23227
23440
|
this.discoveredQuickFiltersSignal.set([]);
|
|
23441
|
+
this.discoveredInlineFilterFieldsSignal.set([]);
|
|
23228
23442
|
}
|
|
23229
23443
|
this.lastObservedResourcePath = resourcePath ?? null;
|
|
23230
23444
|
this.identityRenderKey();
|
|
@@ -23392,7 +23606,10 @@ class PraxisResourcePage {
|
|
|
23392
23606
|
if (meta?.filterBar?.placement === 'table-toolbar') {
|
|
23393
23607
|
return false;
|
|
23394
23608
|
}
|
|
23395
|
-
const
|
|
23609
|
+
const explicitInlineFields = meta?.filterBar?.inlineFields;
|
|
23610
|
+
const hasInlineFields = Array.isArray(explicitInlineFields)
|
|
23611
|
+
? explicitInlineFields.length > 0
|
|
23612
|
+
: this.discoveredInlineFilterFieldsSignal().length > 0;
|
|
23396
23613
|
const discovered = this.discoveredQuickFiltersSignal();
|
|
23397
23614
|
const canPromoteDiscovered = discovered.length > 0 &&
|
|
23398
23615
|
meta?.filterBar?.quickFilters !== false &&
|
|
@@ -23903,6 +24120,12 @@ class PraxisResourcePage {
|
|
|
23903
24120
|
this.restoreDefaultScope();
|
|
23904
24121
|
}
|
|
23905
24122
|
}
|
|
24123
|
+
onCrudDiscoveredInlineFilterFieldsChange(fields) {
|
|
24124
|
+
const normalized = Array.isArray(fields)
|
|
24125
|
+
? fields.map((field) => String(field || '').trim()).filter(Boolean)
|
|
24126
|
+
: [];
|
|
24127
|
+
this.discoveredInlineFilterFieldsSignal.set(normalized);
|
|
24128
|
+
}
|
|
23906
24129
|
onCrudFilterCriteriaChange(criteria) {
|
|
23907
24130
|
const normalized = this.normalizeScopeFilterExpression(criteria);
|
|
23908
24131
|
const current = this.activeScopeFilter();
|
|
@@ -24258,6 +24481,7 @@ class PraxisResourcePage {
|
|
|
24258
24481
|
(kpiCardClick)="handleKpiCardClick($event)"
|
|
24259
24482
|
(filterCriteriaChange)="onCrudFilterCriteriaChange($event)"
|
|
24260
24483
|
(discoveredQuickFiltersChange)="onCrudDiscoveredQuickFiltersChange($event)"
|
|
24484
|
+
(discoveredInlineFilterFieldsChange)="onCrudDiscoveredInlineFilterFieldsChange($event)"
|
|
24261
24485
|
(afterSave)="afterSave.emit($event)"
|
|
24262
24486
|
(afterDelete)="afterDelete.emit($event)"
|
|
24263
24487
|
(error)="error.emit($event)"
|
|
@@ -24266,7 +24490,7 @@ class PraxisResourcePage {
|
|
|
24266
24490
|
}
|
|
24267
24491
|
}
|
|
24268
24492
|
</div>
|
|
24269
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:var(--praxis-domain-badge-margin-bottom, 6px);align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:var(--praxis-page-title-margin, 0);font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.22}.praxis-resource-page__subtitle{margin:var(--praxis-page-subtitle-margin, 4px 0 0);font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.45)}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__assistant-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 38%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__assistant-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 24%,transparent)}.praxis-resource-page__assistant-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "kpiCardClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }, { kind: "component", type: PraxisFilterOutletComponent, selector: "praxis-filter-outlet", inputs: ["target"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24493
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:var(--praxis-domain-badge-margin-bottom, 6px);align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:var(--praxis-page-title-margin, 0);font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.22}.praxis-resource-page__subtitle{margin:var(--praxis-page-subtitle-margin, 4px 0 0);font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.45)}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__assistant-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 38%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__assistant-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 24%,transparent)}.praxis-resource-page__assistant-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "discoveredInlineFilterFieldsChange", "kpiCardClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }, { kind: "component", type: PraxisFilterOutletComponent, selector: "praxis-filter-outlet", inputs: ["target"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24270
24494
|
}
|
|
24271
24495
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourcePage, decorators: [{
|
|
24272
24496
|
type: Component,
|
|
@@ -24399,6 +24623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
24399
24623
|
(kpiCardClick)="handleKpiCardClick($event)"
|
|
24400
24624
|
(filterCriteriaChange)="onCrudFilterCriteriaChange($event)"
|
|
24401
24625
|
(discoveredQuickFiltersChange)="onCrudDiscoveredQuickFiltersChange($event)"
|
|
24626
|
+
(discoveredInlineFilterFieldsChange)="onCrudDiscoveredInlineFilterFieldsChange($event)"
|
|
24402
24627
|
(afterSave)="afterSave.emit($event)"
|
|
24403
24628
|
(afterDelete)="afterDelete.emit($event)"
|
|
24404
24629
|
(error)="error.emit($event)"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CRUD_AUTHORING_MANIFEST, f as PRAXIS_CRUD_COMPONENT_METADATA, h as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, i as PraxisBulkEditDialogComponent, j as PraxisBulkOperationDialogComponent, k as PraxisCrudBulkProposalBridgeService, l as PraxisCrudComponent, m as PraxisCrudWidgetConfigEditor, n as PraxisDossierPageComponent, o as PraxisKpiBandComponent, p as PraxisResourcePage, q as assertCrudMetadata, r as createCrudAuthoringDocument, s as createCrudFormRoute, u as findCrudAction, v as formatKpiValue, w as isResourceDiscoveredCrudAction, x as normalizeCrudAuthoringDocument, y as openCrudMetadataEditor, z as parseLegacyOrCrudDocument, A as providePraxisCrudBulkProposalBridge, B as providePraxisCrudMetadata, E as providePraxisDossierPageMetadata, F as serializeCrudAuthoringDocument, H as validateCrudAuthoringDocument } from './praxisui-crud-praxisui-crud-
|
|
1
|
+
export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CRUD_AUTHORING_MANIFEST, f as PRAXIS_CRUD_COMPONENT_METADATA, h as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, i as PraxisBulkEditDialogComponent, j as PraxisBulkOperationDialogComponent, k as PraxisCrudBulkProposalBridgeService, l as PraxisCrudComponent, m as PraxisCrudWidgetConfigEditor, n as PraxisDossierPageComponent, o as PraxisKpiBandComponent, p as PraxisResourcePage, q as assertCrudMetadata, r as createCrudAuthoringDocument, s as createCrudFormRoute, u as findCrudAction, v as formatKpiValue, w as isResourceDiscoveredCrudAction, x as normalizeCrudAuthoringDocument, y as openCrudMetadataEditor, z as parseLegacyOrCrudDocument, A as providePraxisCrudBulkProposalBridge, B as providePraxisCrudMetadata, E as providePraxisDossierPageMetadata, F as serializeCrudAuthoringDocument, H as validateCrudAuthoringDocument } from './praxisui-crud-praxisui-crud-Dwiyw5xM.mjs';
|
|
2
2
|
export { MAT_DIALOG_DATA as DIALOG_DATA } from '@angular/material/dialog';
|
|
3
3
|
export { createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/crud",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.53",
|
|
4
4
|
"description": "CRUD building blocks for Praxis UI: integrates dynamic forms and tables with unified configuration and services.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/platform-browser": "^21.0.0",
|
|
9
|
-
"@praxisui/dynamic-form": "^10.0.0-rc.
|
|
10
|
-
"@praxisui/table": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
13
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
9
|
+
"@praxisui/dynamic-form": "^10.0.0-rc.53",
|
|
10
|
+
"@praxisui/table": "^10.0.0-rc.53",
|
|
11
|
+
"@praxisui/core": "^10.0.0-rc.53",
|
|
12
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.53",
|
|
13
|
+
"@praxisui/settings-panel": "^10.0.0-rc.53",
|
|
14
14
|
"@angular/cdk": "^21.0.0",
|
|
15
15
|
"@angular/forms": "^21.0.0",
|
|
16
16
|
"@angular/material": "^21.0.0",
|
|
17
17
|
"@angular/router": "^21.0.0",
|
|
18
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
18
|
+
"@praxisui/ai": "^10.0.0-rc.53",
|
|
19
19
|
"rxjs": "~7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
package/types/praxisui-crud.d.ts
CHANGED
|
@@ -198,8 +198,8 @@ interface CrudMetadata {
|
|
|
198
198
|
data?: any[] | null;
|
|
199
199
|
table?: CrudTableConfig;
|
|
200
200
|
filterBar?: CrudFilterBarConfig;
|
|
201
|
-
/** Configuração declarativa da faixa de resumo executivo e KPIs (Issue #33) */
|
|
202
|
-
kpiBand?: CrudKpiBandConfig;
|
|
201
|
+
/** Configuração declarativa da faixa de resumo executivo e KPIs (Issue #33). Use `false` para desativar explicitamente a inferência automática via schema. */
|
|
202
|
+
kpiBand?: CrudKpiBandConfig | false;
|
|
203
203
|
queryContext?: PraxisDataQueryContext | null;
|
|
204
204
|
filterCriteria?: Record<string, unknown> | null;
|
|
205
205
|
form?: FormConfig;
|
|
@@ -337,6 +337,8 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
337
337
|
filterCriteriaChange: EventEmitter<Record<string, unknown>>;
|
|
338
338
|
/** Emite os filtros rápidos canônicos descobertos no schema x-ui.resource.quickFilters da tabela interna */
|
|
339
339
|
discoveredQuickFiltersChange: EventEmitter<NormalizedPraxisResourceQuickFilter[]>;
|
|
340
|
+
/** Emite os campos promovidos para filtro inline descobertos no schema de filtro da tabela interna */
|
|
341
|
+
discoveredInlineFilterFieldsChange: EventEmitter<string[]>;
|
|
340
342
|
/** Evento emitido ao clicar em um card da faixa declarativa de KPIs (Issue #33) */
|
|
341
343
|
kpiCardClick: EventEmitter<{
|
|
342
344
|
card: PraxisKpiBandCard;
|
|
@@ -353,6 +355,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
353
355
|
get activeStandaloneScopeId(): string;
|
|
354
356
|
onStandaloneScopeChange(item: PraxisScopeBarItem): void;
|
|
355
357
|
onStandaloneScopeClear(): void;
|
|
358
|
+
private readonly autoSchemaKpiBandConfig;
|
|
356
359
|
get resolvedKpiBandConfig(): PraxisKpiBandConfig | null;
|
|
357
360
|
get isKpiInteractiveHost(): boolean;
|
|
358
361
|
get kpiDataContext(): Record<string, any>;
|
|
@@ -409,6 +412,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
409
412
|
private tableCollectionLinks;
|
|
410
413
|
protected collectionCapabilities: ResourceCapabilitySnapshot | null;
|
|
411
414
|
protected discoveredSchemaQuickFilters: NormalizedPraxisResourceQuickFilter[];
|
|
415
|
+
protected discoveredInlineFilterFields: string[];
|
|
412
416
|
private discoveredSchemaFields;
|
|
413
417
|
protected discoveredSchemaMetadata: Record<string, unknown> | null;
|
|
414
418
|
protected discoveredResourceFacts: Array<DomainCatalogResourceFactMetadata | Record<string, unknown>>;
|
|
@@ -494,6 +498,8 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
494
498
|
onTableFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
495
499
|
private mergeExplicitAndDiscoveredQuickFilters;
|
|
496
500
|
onTableDiscoveredQuickFiltersChange(items: NormalizedPraxisResourceQuickFilter[]): void;
|
|
501
|
+
onTableDiscoveredResourceFactsChange(facts: Array<DomainCatalogResourceFactMetadata | Record<string, unknown>>): void;
|
|
502
|
+
onTableDiscoveredInlineFilterFieldsChange(fields: string[]): void;
|
|
497
503
|
/**
|
|
498
504
|
* Aplica critérios de busca avançada na tabela interna do CRUD (Issue #11).
|
|
499
505
|
*/
|
|
@@ -590,7 +596,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
590
596
|
private txWithParams;
|
|
591
597
|
private interpolateTranslationParams;
|
|
592
598
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCrudComponent, never>;
|
|
593
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudComponent, "praxis-crud", never, { "metadata": { "alias": "metadata"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showResourceIdentityKey": { "alias": "showResourceIdentityKey"; "required": false; }; "authoringCapability": { "alias": "authoringCapability"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "lockedFilterFields": { "alias": "lockedFilterFields"; "required": false; }; "schemaFields": { "alias": "schemaFields"; "required": false; }; "filterTeleport": { "alias": "filterTeleport"; "required": false; }; "disableAutoDrawer": { "alias": "disableAutoDrawer"; "required": false; }; "hostManagedChrome": { "alias": "hostManagedChrome"; "required": false; }; }, { "configureRequested": "configureRequested"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; "error": "error"; "rowClick": "rowClick"; "rowAction": "rowAction"; "selectionChange": "selectionChange"; "resourceEvent": "resourceEvent"; "tableRuntimeConfigChange": "tableRuntimeConfigChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "crudAuthoringDocumentApplied": "crudAuthoringDocumentApplied"; "crudAuthoringDocumentSaved": "crudAuthoringDocumentSaved"; "filterCriteriaChange": "filterCriteriaChange"; "discoveredQuickFiltersChange": "discoveredQuickFiltersChange"; "kpiCardClick": "kpiCardClick"; }, never, never, true, never>;
|
|
599
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudComponent, "praxis-crud", never, { "metadata": { "alias": "metadata"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showResourceIdentityKey": { "alias": "showResourceIdentityKey"; "required": false; }; "authoringCapability": { "alias": "authoringCapability"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "lockedFilterFields": { "alias": "lockedFilterFields"; "required": false; }; "schemaFields": { "alias": "schemaFields"; "required": false; }; "filterTeleport": { "alias": "filterTeleport"; "required": false; }; "disableAutoDrawer": { "alias": "disableAutoDrawer"; "required": false; }; "hostManagedChrome": { "alias": "hostManagedChrome"; "required": false; }; }, { "configureRequested": "configureRequested"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; "error": "error"; "rowClick": "rowClick"; "rowAction": "rowAction"; "selectionChange": "selectionChange"; "resourceEvent": "resourceEvent"; "tableRuntimeConfigChange": "tableRuntimeConfigChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "crudAuthoringDocumentApplied": "crudAuthoringDocumentApplied"; "crudAuthoringDocumentSaved": "crudAuthoringDocumentSaved"; "filterCriteriaChange": "filterCriteriaChange"; "discoveredQuickFiltersChange": "discoveredQuickFiltersChange"; "discoveredInlineFilterFieldsChange": "discoveredInlineFilterFieldsChange"; "kpiCardClick": "kpiCardClick"; }, never, never, true, never>;
|
|
594
600
|
static ngAcceptInputType_filterTeleport: unknown;
|
|
595
601
|
static ngAcceptInputType_disableAutoDrawer: unknown;
|
|
596
602
|
static ngAcceptInputType_hostManagedChrome: unknown;
|
|
@@ -708,6 +714,9 @@ declare class CrudLauncherService {
|
|
|
708
714
|
private resolveSurfaceFrameSubtitle;
|
|
709
715
|
private bindSurfaceFrameLifecycle;
|
|
710
716
|
private resolveFallbackComponentKeyId;
|
|
717
|
+
private collectStoredFormCandidateKeys;
|
|
718
|
+
private loadStoredActionFormConfig;
|
|
719
|
+
private probeStoredActionFormKeys;
|
|
711
720
|
private mergeCrudOverrides;
|
|
712
721
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CrudLauncherService, never>;
|
|
713
722
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CrudLauncherService>;
|
|
@@ -1817,6 +1826,7 @@ declare class PraxisResourcePage implements OnInit, OnChanges, OnDestroy {
|
|
|
1817
1826
|
readonly activeInspectedRecordId: _angular_core.WritableSignal<string | number | null>;
|
|
1818
1827
|
private readonly activeScopeFilter;
|
|
1819
1828
|
private readonly discoveredQuickFiltersSignal;
|
|
1829
|
+
private readonly discoveredInlineFilterFieldsSignal;
|
|
1820
1830
|
private lastObservedResourcePath;
|
|
1821
1831
|
private governedRulesCheckGeneration;
|
|
1822
1832
|
private initialized;
|
|
@@ -1860,6 +1870,7 @@ declare class PraxisResourcePage implements OnInit, OnChanges, OnDestroy {
|
|
|
1860
1870
|
onScopeFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
1861
1871
|
onScopeClear(): void;
|
|
1862
1872
|
onCrudDiscoveredQuickFiltersChange(items: NormalizedPraxisResourceQuickFilter[]): void;
|
|
1873
|
+
onCrudDiscoveredInlineFilterFieldsChange(fields: string[]): void;
|
|
1863
1874
|
onCrudFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
1864
1875
|
handleKpiCardClick(event: {
|
|
1865
1876
|
card: PraxisKpiBandCard;
|