@praxisui/list 10.0.0-rc.25 → 10.0.0-rc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-list.mjs +687 -21
- package/package.json +6 -6
- package/types/praxisui-list.d.ts +79 -2
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/list",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.26",
|
|
4
4
|
"description": "List components and helpers for Praxis UI.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.26",
|
|
11
11
|
"rxjs": ">=7 <9",
|
|
12
12
|
"@angular/forms": "^21.0.0",
|
|
13
13
|
"@angular/router": "^21.0.0",
|
|
14
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/rich-content": "^10.0.0-rc.
|
|
17
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/ai": "^10.0.0-rc.26",
|
|
15
|
+
"@praxisui/core": "^10.0.0-rc.26",
|
|
16
|
+
"@praxisui/rich-content": "^10.0.0-rc.26",
|
|
17
|
+
"@praxisui/settings-panel": "^10.0.0-rc.26"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
package/types/praxisui-list.d.ts
CHANGED
|
@@ -121,8 +121,11 @@ interface ListExpansionSectionDef {
|
|
|
121
121
|
}
|
|
122
122
|
type ListTemplatingSlot = 'leading' | 'primary' | 'secondary' | 'meta' | 'trailing' | 'identity' | 'balance' | 'limit' | 'risk' | 'alerts' | 'owner';
|
|
123
123
|
type ListRowLayoutSlot = ListTemplatingSlot | 'actions' | 'expand';
|
|
124
|
+
type ListCardColumns = 'auto' | 1 | 2 | 3 | 4;
|
|
125
|
+
type ListItemStateTone = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'muted';
|
|
124
126
|
interface ListItemStyleEffect {
|
|
125
127
|
kind?: 'item-style';
|
|
128
|
+
tone?: ListItemStateTone;
|
|
126
129
|
class?: string;
|
|
127
130
|
style?: string;
|
|
128
131
|
border?: string;
|
|
@@ -201,6 +204,18 @@ interface PraxisListConfig {
|
|
|
201
204
|
lines?: 1 | 2 | 3;
|
|
202
205
|
dividers?: 'none' | 'between' | 'all';
|
|
203
206
|
model?: 'standard' | 'media' | 'hotel';
|
|
207
|
+
/**
|
|
208
|
+
* Structured column count for cards/tiles grids without requiring raw CSS.
|
|
209
|
+
*/
|
|
210
|
+
cardColumns?: ListCardColumns;
|
|
211
|
+
/**
|
|
212
|
+
* Minimum card/tile track width when cardColumns is 'auto' (e.g. '240px', '300px', '340px').
|
|
213
|
+
*/
|
|
214
|
+
cardMinWidth?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Minimum card surface height (e.g. 'auto', '148px', '188px', '220px').
|
|
217
|
+
*/
|
|
218
|
+
cardMinHeight?: string;
|
|
204
219
|
groupBy?: string;
|
|
205
220
|
stickySectionHeader?: boolean;
|
|
206
221
|
virtualScroll?: boolean | PraxisListVirtualScrollConfig;
|
|
@@ -1199,9 +1214,12 @@ type NormalizedListConfig = Omit<PraxisListConfig, 'dataSource' | 'layout' | 'se
|
|
|
1199
1214
|
lines: 1 | 2 | 3;
|
|
1200
1215
|
dividers?: 'none' | 'between' | 'all';
|
|
1201
1216
|
model?: 'standard' | 'media' | 'hotel';
|
|
1217
|
+
cardColumns?: ListCardColumns;
|
|
1218
|
+
cardMinWidth?: string;
|
|
1219
|
+
cardMinHeight?: string;
|
|
1202
1220
|
groupBy?: string;
|
|
1203
1221
|
stickySectionHeader?: boolean;
|
|
1204
|
-
virtualScroll?: boolean;
|
|
1222
|
+
virtualScroll?: boolean | PraxisListVirtualScrollConfig;
|
|
1205
1223
|
pageSize?: number;
|
|
1206
1224
|
rowLayout?: NonNullable<PraxisListConfig['layout']>['rowLayout'];
|
|
1207
1225
|
};
|
|
@@ -1589,6 +1607,19 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1589
1607
|
ngDoCheck(): void;
|
|
1590
1608
|
reset(): void;
|
|
1591
1609
|
onLayoutChanged(): void;
|
|
1610
|
+
virtualScrollEnabled(): boolean;
|
|
1611
|
+
onVirtualScrollEnabledChange(enabled: boolean): void;
|
|
1612
|
+
getVirtualScrollViewportHeight(): string;
|
|
1613
|
+
onVirtualScrollViewportHeightChange(value: string): void;
|
|
1614
|
+
getVirtualScrollItemSize(): number | undefined;
|
|
1615
|
+
onVirtualScrollItemSizeChange(value: any): void;
|
|
1616
|
+
getVirtualScrollMinBufferPx(): number | undefined;
|
|
1617
|
+
onVirtualScrollMinBufferPxChange(value: any): void;
|
|
1618
|
+
getVirtualScrollMaxBufferPx(): number | undefined;
|
|
1619
|
+
onVirtualScrollMaxBufferPxChange(value: any): void;
|
|
1620
|
+
getVirtualScrollCompatibilityWarning(): string;
|
|
1621
|
+
private ensureVirtualScrollObjectDraft;
|
|
1622
|
+
private collapseVirtualScrollDraftIfDefault;
|
|
1592
1623
|
rowLayoutEnabled(): boolean;
|
|
1593
1624
|
onRowLayoutEnabledChange(enabled: boolean): void;
|
|
1594
1625
|
applyCorporateRowLayoutPreset(): void;
|
|
@@ -1666,6 +1697,49 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1666
1697
|
onRuleConditionChanged(rule: {
|
|
1667
1698
|
condition?: JsonLogicExpression | null;
|
|
1668
1699
|
}, raw: string): void;
|
|
1700
|
+
readonly cardColumnsOptions: readonly ListCardColumns[];
|
|
1701
|
+
readonly ruleConditionOperators: readonly ["==", "!=", ">", ">=", "<", "<="];
|
|
1702
|
+
readonly itemStateToneOptions: ReadonlyArray<{
|
|
1703
|
+
value: ListItemStateTone;
|
|
1704
|
+
label: string;
|
|
1705
|
+
cssClass: string;
|
|
1706
|
+
border: string;
|
|
1707
|
+
background: string;
|
|
1708
|
+
}>;
|
|
1709
|
+
getCardColumnsModel(): ListCardColumns;
|
|
1710
|
+
onCardColumnsChange(value: ListCardColumns): void;
|
|
1711
|
+
applyCardWidthPreset(width: string): void;
|
|
1712
|
+
applyCardHeightPreset(height: string): void;
|
|
1713
|
+
onStatusPositionChange(position: 'inline' | 'top-right' | undefined): void;
|
|
1714
|
+
applyStandardStatusColorMap(): void;
|
|
1715
|
+
getSlotAnatomyItems(): Array<{
|
|
1716
|
+
slot: 'leading' | 'primary' | 'secondary' | 'meta' | 'trailing' | 'features';
|
|
1717
|
+
label: string;
|
|
1718
|
+
role: string;
|
|
1719
|
+
mapped: boolean;
|
|
1720
|
+
summary: string;
|
|
1721
|
+
}>;
|
|
1722
|
+
isSlotMapped(slot: 'leading' | 'primary' | 'secondary' | 'meta' | 'trailing' | 'features'): boolean;
|
|
1723
|
+
getSlotMappingSummary(slot: 'leading' | 'primary' | 'secondary' | 'meta' | 'trailing' | 'features'): string;
|
|
1724
|
+
applyDidacticSlotPreset(preset: 'operational-card' | 'executive-compact-card' | 'dense-list'): void;
|
|
1725
|
+
applyItemStyleTonePreset(rule: ListItemStyleRule, tone: ListItemStateTone): void;
|
|
1726
|
+
private parseSimpleRuleCondition;
|
|
1727
|
+
getGuidedRuleConditionField(rule: {
|
|
1728
|
+
condition?: JsonLogicExpression | null;
|
|
1729
|
+
}): string;
|
|
1730
|
+
getGuidedRuleConditionOperator(rule: {
|
|
1731
|
+
condition?: JsonLogicExpression | null;
|
|
1732
|
+
}): string;
|
|
1733
|
+
getGuidedRuleConditionValue(rule: {
|
|
1734
|
+
condition?: JsonLogicExpression | null;
|
|
1735
|
+
}): string;
|
|
1736
|
+
onGuidedRuleConditionChange(rule: {
|
|
1737
|
+
condition?: JsonLogicExpression | null;
|
|
1738
|
+
}, patch: {
|
|
1739
|
+
field?: string;
|
|
1740
|
+
operator?: string;
|
|
1741
|
+
value?: string;
|
|
1742
|
+
}): void;
|
|
1669
1743
|
getItemStyleEffect(rule: ListItemStyleRule): ListItemStyleEffect | undefined;
|
|
1670
1744
|
ensureItemStyleEffect(rule: ListItemStyleRule): void;
|
|
1671
1745
|
clearItemStyleEffects(rule: ListItemStyleRule): void;
|
|
@@ -2017,6 +2091,9 @@ declare class PraxisListDocPageComponent {
|
|
|
2017
2091
|
itemSpacing?: "none" | "tight" | "default" | "relaxed";
|
|
2018
2092
|
itemAppearance?: "flat" | "card" | "capsule";
|
|
2019
2093
|
dividers?: "none" | "between" | "all";
|
|
2094
|
+
cardColumns?: _praxisui_list.ListCardColumns;
|
|
2095
|
+
cardMinWidth?: string;
|
|
2096
|
+
cardMinHeight?: string;
|
|
2020
2097
|
stickySectionHeader?: boolean;
|
|
2021
2098
|
virtualScroll?: boolean | _praxisui_list.PraxisListVirtualScrollConfig;
|
|
2022
2099
|
pageSize?: number;
|
|
@@ -2983,4 +3060,4 @@ declare const PRAXIS_LIST_PT_BR: {
|
|
|
2983
3060
|
};
|
|
2984
3061
|
|
|
2985
3062
|
export { ExecutiveAlertsComponent, ExecutiveBadgeComponent, ExecutiveOwnerComponent, LIST_AI_CAPABILITIES, ListDataService, ListSkinService, PRAXIS_LIST_AUTHORING_MANIFEST, PRAXIS_LIST_COMPONENT_METADATA, PRAXIS_LIST_EN_US, PRAXIS_LIST_I18N_NAMESPACE, PRAXIS_LIST_INSERTION_PRESETS, PRAXIS_LIST_PT_BR, PraxisList, PraxisListConfigEditor, PraxisListDocPageComponent, PraxisListJsonConfigEditorComponent, PraxisListWidgetConfigEditor, adaptSelection, buildListApplyPlan, createListAuthoringDocument, evalExpr, evaluateTemplate, formatRelativeTime, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, safeFormatDate, safeFormatDateTime, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
|
|
2986
|
-
export type { Capability, CapabilityCatalog, CapabilityCategory, EditorDiagnostic, EditorDocument, ExecutiveAlert, JsonEditorEvent, JsonValidationResult, ListActionEvent, ListApplyPlan, ListAuthoringDocument, ListExpansionSectionDef, ListExpansionSectionType, ListFeatureDef, ListItemEvent, ListItemStyleEffect, ListItemStyleRule, ListProjectionContext, ListRemoteLoadError, ListRichContentP0Node, ListRowLayoutSlot, ListRuntimeContext, ListSchemaInferencePlan, ListSection, ListSelectionEvent, ListSlotOverrideEffect, ListSlotOverrideRule, ListTemplatingSlot, ListValidationContext, PraxisListConfig, PraxisListExportConfig, PraxisListI18nConfig, PraxisListItemAction, PraxisListVirtualScrollConfig, PraxisListWidgetEditorInputs, PraxisListWidgetEditorValue, TemplateDef, TemplateEvaluatorOptions, TemplateFeatureDef, TemplateType, TemplatingFeatureDef, ValueKind };
|
|
3063
|
+
export type { Capability, CapabilityCatalog, CapabilityCategory, EditorDiagnostic, EditorDocument, ExecutiveAlert, JsonEditorEvent, JsonValidationResult, ListActionEvent, ListApplyPlan, ListAuthoringDocument, ListCardColumns, ListExpansionSectionDef, ListExpansionSectionType, ListFeatureDef, ListItemEvent, ListItemStateTone, ListItemStyleEffect, ListItemStyleRule, ListProjectionContext, ListRemoteLoadError, ListRichContentP0Node, ListRowLayoutSlot, ListRuntimeContext, ListSchemaInferencePlan, ListSection, ListSelectionEvent, ListSlotOverrideEffect, ListSlotOverrideRule, ListTemplatingSlot, ListValidationContext, PraxisListConfig, PraxisListExportConfig, PraxisListI18nConfig, PraxisListItemAction, PraxisListVirtualScrollConfig, PraxisListWidgetEditorInputs, PraxisListWidgetEditorValue, TemplateDef, TemplateEvaluatorOptions, TemplateFeatureDef, TemplateType, TemplatingFeatureDef, ValueKind };
|