@praxisui/core 10.0.0-rc.45 → 10.0.0-rc.46
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-15T00:03:48.148Z",
|
|
4
4
|
"packageName": "@praxisui/core",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.46",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 4,
|
|
@@ -137,9 +137,9 @@ function serializeOptionSourceFilterRequest(filter, options) {
|
|
|
137
137
|
}
|
|
138
138
|
if (search) {
|
|
139
139
|
request.search = search;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
if (searchStrategy) {
|
|
141
|
+
request.searchStrategy = searchStrategy;
|
|
142
|
+
}
|
|
143
143
|
}
|
|
144
144
|
if (sort) {
|
|
145
145
|
request.sort = sort;
|
|
@@ -30957,16 +30957,49 @@ class AnalyticsStatsRequestBuilderService {
|
|
|
30957
30957
|
metrics: requestMetrics,
|
|
30958
30958
|
};
|
|
30959
30959
|
}
|
|
30960
|
-
case 'distribution':
|
|
30960
|
+
case 'distribution': {
|
|
30961
|
+
const inferredMode = projection.defaults?.distributionMode ??
|
|
30962
|
+
(projection.bindings.primaryMetrics?.[0]?.aggregation?.toLowerCase() === 'histogram'
|
|
30963
|
+
? 'histogram'
|
|
30964
|
+
: 'terms');
|
|
30965
|
+
const normalizedMode = inferredMode.toLowerCase();
|
|
30966
|
+
if (normalizedMode === 'histogram') {
|
|
30967
|
+
const bucketSize = projection.defaults?.bucketSize ?? undefined;
|
|
30968
|
+
if (bucketSize === undefined || !Number.isFinite(bucketSize) || bucketSize <= 0) {
|
|
30969
|
+
throw new Error(`AnalyticsStatsRequestBuilderService requires a positive defaults.bucketSize for histogram distribution projection "${projection.id}".`);
|
|
30970
|
+
}
|
|
30971
|
+
const bucketCount = projection.defaults?.bucketCount ?? undefined;
|
|
30972
|
+
if (bucketCount !== undefined && (!Number.isFinite(bucketCount) || bucketCount <= 0)) {
|
|
30973
|
+
throw new Error(`AnalyticsStatsRequestBuilderService requires a positive defaults.bucketCount for histogram distribution projection "${projection.id}".`);
|
|
30974
|
+
}
|
|
30975
|
+
return {
|
|
30976
|
+
filter: {},
|
|
30977
|
+
field,
|
|
30978
|
+
mode: 'HISTOGRAM',
|
|
30979
|
+
metric: {
|
|
30980
|
+
operation: 'COUNT',
|
|
30981
|
+
field: undefined,
|
|
30982
|
+
alias: metric?.alias,
|
|
30983
|
+
},
|
|
30984
|
+
bucketSize,
|
|
30985
|
+
...(bucketCount !== undefined ? { bucketCount } : {}),
|
|
30986
|
+
...(limit !== undefined ? { limit } : {}),
|
|
30987
|
+
...(orderBy ? { orderBy } : {}),
|
|
30988
|
+
};
|
|
30989
|
+
}
|
|
30990
|
+
if (normalizedMode !== 'terms') {
|
|
30991
|
+
throw new Error(`Analytics distribution mode "${inferredMode}" is not supported in praxis.stats execution.`);
|
|
30992
|
+
}
|
|
30961
30993
|
return {
|
|
30962
30994
|
filter: {},
|
|
30963
30995
|
field,
|
|
30964
30996
|
mode: 'TERMS',
|
|
30965
30997
|
metric,
|
|
30966
|
-
bucketCount: limit,
|
|
30998
|
+
bucketCount: projection.defaults?.bucketCount ?? limit,
|
|
30967
30999
|
limit,
|
|
30968
31000
|
orderBy,
|
|
30969
31001
|
};
|
|
31002
|
+
}
|
|
30970
31003
|
case 'comparison': {
|
|
30971
31004
|
const period = projection.bindings.comparisonPeriod;
|
|
30972
31005
|
if (!period?.field || !period.timezone || !period.preset || !period.mode) {
|
|
@@ -31073,6 +31106,7 @@ class AnalyticsStatsRequestBuilderService {
|
|
|
31073
31106
|
case 'percentile_95':
|
|
31074
31107
|
return 'PERCENTILE_95';
|
|
31075
31108
|
case 'count':
|
|
31109
|
+
case 'histogram':
|
|
31076
31110
|
case '':
|
|
31077
31111
|
return 'COUNT';
|
|
31078
31112
|
case 'distinct-count':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.46",
|
|
4
4
|
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "^21.0.0",
|
|
@@ -3055,7 +3055,7 @@ interface PraxisAnalyticalDrawerSchema {
|
|
|
3055
3055
|
/**
|
|
3056
3056
|
* Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
|
|
3057
3057
|
*/
|
|
3058
|
-
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'deduction' | 'addition' | 'result' | 'custom';
|
|
3058
|
+
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'result' | 'custom';
|
|
3059
3059
|
/**
|
|
3060
3060
|
* Etapa individual na sequência algorítmica de memória de cálculo
|
|
3061
3061
|
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
@@ -3132,11 +3132,18 @@ interface PraxisAnalyticalDrawerCalculationTrail {
|
|
|
3132
3132
|
factorHint?: string;
|
|
3133
3133
|
factorHintExpr?: string;
|
|
3134
3134
|
capLabel?: string;
|
|
3135
|
+
capOperator?: string;
|
|
3135
3136
|
capValue?: unknown;
|
|
3136
3137
|
capExpr?: string;
|
|
3137
3138
|
capFormat?: string;
|
|
3138
3139
|
capHint?: string;
|
|
3139
3140
|
capHintExpr?: string;
|
|
3141
|
+
targetLabel?: string;
|
|
3142
|
+
targetValue?: unknown;
|
|
3143
|
+
targetExpr?: string;
|
|
3144
|
+
targetFormat?: string;
|
|
3145
|
+
targetHint?: string;
|
|
3146
|
+
targetHintExpr?: string;
|
|
3140
3147
|
resultLabel?: string;
|
|
3141
3148
|
resultValue?: unknown;
|
|
3142
3149
|
resultExpr?: string;
|
package/types/praxisui-core.d.ts
CHANGED
|
@@ -4628,7 +4628,7 @@ interface PraxisAnalyticalDrawerSchema {
|
|
|
4628
4628
|
/**
|
|
4629
4629
|
* Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
|
|
4630
4630
|
*/
|
|
4631
|
-
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'deduction' | 'addition' | 'result' | 'custom';
|
|
4631
|
+
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'result' | 'custom';
|
|
4632
4632
|
/**
|
|
4633
4633
|
* Etapa individual na sequência algorítmica de memória de cálculo
|
|
4634
4634
|
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
@@ -4705,11 +4705,18 @@ interface PraxisAnalyticalDrawerCalculationTrail {
|
|
|
4705
4705
|
factorHint?: string;
|
|
4706
4706
|
factorHintExpr?: string;
|
|
4707
4707
|
capLabel?: string;
|
|
4708
|
+
capOperator?: string;
|
|
4708
4709
|
capValue?: unknown;
|
|
4709
4710
|
capExpr?: string;
|
|
4710
4711
|
capFormat?: string;
|
|
4711
4712
|
capHint?: string;
|
|
4712
4713
|
capHintExpr?: string;
|
|
4714
|
+
targetLabel?: string;
|
|
4715
|
+
targetValue?: unknown;
|
|
4716
|
+
targetExpr?: string;
|
|
4717
|
+
targetFormat?: string;
|
|
4718
|
+
targetHint?: string;
|
|
4719
|
+
targetHintExpr?: string;
|
|
4713
4720
|
resultLabel?: string;
|
|
4714
4721
|
resultValue?: unknown;
|
|
4715
4722
|
resultExpr?: string;
|
|
@@ -16365,6 +16372,9 @@ interface PraxisAnalyticsDefaults {
|
|
|
16365
16372
|
timezone?: string | null;
|
|
16366
16373
|
periodPreset?: AnalyticsComparisonPeriodPreset | null;
|
|
16367
16374
|
fillGaps?: boolean | null;
|
|
16375
|
+
distributionMode?: 'terms' | 'histogram' | null;
|
|
16376
|
+
bucketSize?: number | null;
|
|
16377
|
+
bucketCount?: number | null;
|
|
16368
16378
|
}
|
|
16369
16379
|
interface PraxisAnalyticsSortRule {
|
|
16370
16380
|
field: string;
|