@praxisui/list 10.0.0-rc.43 → 10.0.0-rc.44
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 +23 -13
- package/fesm2022/praxisui-list.mjs +431 -215
- package/package.json +6 -6
- package/types/praxisui-list.d.ts +11 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-09T21:30:37.724Z",
|
|
4
4
|
"packageName": "@praxisui/list",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.44",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -1470,6 +1470,12 @@
|
|
|
1470
1470
|
"valueKind": "string",
|
|
1471
1471
|
"description": "Feature inline CSS."
|
|
1472
1472
|
},
|
|
1473
|
+
{
|
|
1474
|
+
"path": "templating.features[].quickView",
|
|
1475
|
+
"category": "templating",
|
|
1476
|
+
"valueKind": "object",
|
|
1477
|
+
"description": "Declarative ResourceQuickViewBinding for contextual read-only preview on feature entry (auto-synthesized from remote schema /schemas/filtered when omitted, or { enabled: false } to opt out)."
|
|
1478
|
+
},
|
|
1473
1479
|
{
|
|
1474
1480
|
"path": "templating.featuresVisible",
|
|
1475
1481
|
"category": "templating",
|
|
@@ -6405,6 +6411,9 @@
|
|
|
6405
6411
|
},
|
|
6406
6412
|
"style": {
|
|
6407
6413
|
"type": "string"
|
|
6414
|
+
},
|
|
6415
|
+
"quickView": {
|
|
6416
|
+
"type": "object"
|
|
6408
6417
|
}
|
|
6409
6418
|
}
|
|
6410
6419
|
}
|
|
@@ -6427,7 +6436,8 @@
|
|
|
6427
6436
|
"templating.features[].icon",
|
|
6428
6437
|
"templating.features[].expr",
|
|
6429
6438
|
"templating.features[].class",
|
|
6430
|
-
"templating.features[].style"
|
|
6439
|
+
"templating.features[].style",
|
|
6440
|
+
"templating.features[].quickView"
|
|
6431
6441
|
],
|
|
6432
6442
|
"submissionImpact": "visual-only",
|
|
6433
6443
|
"destructive": false,
|
|
@@ -9560,9 +9570,9 @@
|
|
|
9560
9570
|
{
|
|
9561
9571
|
"chunkIndex": 2,
|
|
9562
9572
|
"chunkKind": "capabilities",
|
|
9563
|
-
"content": "Component Capability:\n - Path: export.general.maxRows\n Category: export\n Kind: number\n Description: Maximum rows to include in local export.\n\nComponent Capability:\n - Path: export.general.defaultFileName\n Category: export\n Kind: string\n Description: Default export file name.\n\nComponent Capability:\n - Path: export.general.includeFields\n Category: export\n Kind: array\n Description: Field paths to include, or \"all\" for inferred object keys.\n\nComponent Capability:\n - Path: export.general.applyFormatting\n Category: export\n Kind: boolean\n Description: Apply configured field formatting when available.\n\nComponent Capability:\n - Path: interaction\n Category: interaction\n Kind: object\n Description: Expandable row interaction settings.\n\nComponent Capability:\n - Path: interaction.expandable\n Category: interaction\n Kind: boolean\n Description: Enable inline row expansion.\n\nComponent Capability:\n - Path: interaction.expandTrigger\n Category: interaction\n Kind: enum\n Description: How expansion is triggered.\n\nComponent Capability:\n - Path: interaction.expandMode\n Category: interaction\n Kind: enum\n Description: Whether one or many rows may be expanded.\n\nComponent Capability:\n - Path: interaction.expandPlacement\n Category: interaction\n Kind: enum\n Description: Where the expansion control is rendered.\n\nComponent Capability:\n - Path: templating\n Category: templating\n Kind: object\n Description: Templating settings.\n\nComponent Capability:\n - Path: templating.metaPlacement\n Category: templating\n Kind: enum\n Description: Meta placement in list variant.\n\nComponent Capability:\n - Path: templating.metaPrefixIcon\n Category: templating\n Kind: string\n Description: Prefix icon for meta.\n\nComponent Capability:\n - Path: templating.statusPosition\n Category: templating\n Kind: enum\n Description: Status position in cards/tiles.\n\nComponent Capability:\n - Path: templating.chipColorMap\n Category: templating\n Kind: object\n Description: Map value -> chip color.\n\nComponent Capability:\n - Path: templating.chipLabelMap\n Category: templating\n Kind: object\n Description: Map value -> label.\n\nComponent Capability:\n - Path: templating.iconColorMap\n Category: templating\n Kind: object\n Description: Map value/icon -> color.\n\nComponent Capability:\n - Path: templating.features\n Category: templating\n Kind: array\n Description: Extra feature line entries.\n\nComponent Capability:\n - Path: templating.features[].icon\n Category: templating\n Kind: string\n Description: Feature icon.\n\nComponent Capability:\n - Path: templating.features[].expr\n Category: templating\n Kind: expression\n Description: Templating expression for feature label; not Json Logic.\n\nComponent Capability:\n - Path: templating.features[].class\n Category: templating\n Kind: string\n Description: Feature CSS class.\n\nComponent Capability:\n - Path: templating.features[].style\n Category: templating\n Kind: string\n Description: Feature inline CSS.\n\nComponent Capability:\n - Path: templating.featuresVisible\n Category: templating\n Kind: boolean\n Description: Show features line.\n\nComponent Capability:\n - Path: templating.featuresMode\n Category: templating\n Kind: enum\n Description: Features render mode.\n\nComponent Capability:\n - Path: templating.skeleton\n Category: templating\n Kind: object\n Description: Skeleton loading config.\n\nComponent Capability:\n - Path: templating.skeleton.count\n Category: templating\n Kind: number\n Description: Skeleton items count.\n\nComponent Capability:\n - Path: actions\n Category: actions\n Kind: array\n Description: Item actions array.\n\nComponent Capability:\n - Path: actions[]\n Category: actions\n Kind: object\n Description: Single item action entry.\n\nComponent Capability:\n - Path: actions[].id\n Category: actions\n Kind: string\n Description: Action id.\n\nComponent Capability:\n - Path: actions[].icon\n Category: actions\n Kind: string\n Description: Action icon.\n\nComponent Capability:\n - Path: actions[].label\n Category: actions\n Kind: string\n Description: Action label.\n\nComponent Capability:\n - Path: actions[].color\n Category: actions\n Kind: string\n Description: Action color.\n\nComponent Capability:\n - Path: actions[].kind\n Category: actions\n Kind: enum\n Description: Action render kind.\n\nComponent Capability:\n - Path: actions[].buttonVariant\n Category: actions\n Kind: enum\n Description: Action button variant.\n\nComponent Capability:\n - Path: actions[].showIf\n Category: actions\n Kind: expression\n Description: Json Logic visibility condition for the current row.\n\nComponent Capability:\n - Path: actions[].globalAction.[actionId]\n Category: actions\n Kind: string\n Description: Canonical global app action id (ex.: \"toast.success\" ou \"navigation.openRoute\").\n\nComponent Capability:\n - Path: actions[].globalAction.payload\n Category: actions\n Kind: object\n Description: Structured payload for the global app action (JSON/template), including internal route payloads resolved from item context.\n\nComponent Capability:\n - Path: actions[].globalAction.payloadExpr\n Category: actions\n Kind: expression\n Description: Advanced payload expression for the global app action when structured payload is not authored.\n\nComponent Capability:\n - Path: actions[].emitLocal\n Category: actions\n Kind: boolean\n Description: Emit local actionClick even when globalAction is set.\n\nComponent Capability:\n - Path: actions[].showLoading\n Category: actions\n Kind: boolean\n Description: Show loading state while a global action executes.\n\nComponent Capability:\n - Path: actions[].placement\n Category: actions\n Kind: enum\n Description: Action placement in row layout actions or trailing slot.\n\nComponent Capability:\n - Path: actions[].quickView\n Category: actions\n Kind: object\n Description: Declarative ResourceQuickViewBinding for contextual read-only preview triggered by the list item action.\n\nComponent Capability:\n - Path: actions[].confirmation\n Category: actions\n Kind: object\n Description: Confirmation prompt before executing the action.\n\nComponent Capability:\n - Path: actions[].confirmation.title\n Category: actions\n Kind: string\n Description: Confirmation title.\n\nComponent Capability:\n - Path: actions[].confirmation.message\n Category: actions\n Kind: string\n Description: Confirmation message.\n\nComponent Capability:\n - Path: actions[].confirmation.type\n Category: actions\n Kind: enum\n Description: Confirmation severity.\n\nComponent Capability:\n - Path: rules\n Category: rules\n Kind: object\n Description: Conditional list item styling and slot override rules.\n\nComponent Capability:\n - Path: rules.itemStyles\n Category: rules\n Kind: array\n Description: Conditional item style rules.\n\nComponent Capability:\n - Path: rules.itemStyles[].id\n Category: rules\n Kind: string\n Description: Stable item style rule id.\n\nComponent Capability:\n - Path: rules.itemStyles[].condition\n Category: rules\n Kind: expression\n Description: Json Logic condition in row context.\n\nComponent Capability:\n - Path: rules.itemStyles[].tone\n Category: rules\n Kind: enum\n Description: Semantic tone applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].class\n Category: rules\n Kind: string\n Description: CSS class applied when the rule matches
|
|
9573
|
+
"content": "Component Capability:\n - Path: export.general.maxRows\n Category: export\n Kind: number\n Description: Maximum rows to include in local export.\n\nComponent Capability:\n - Path: export.general.defaultFileName\n Category: export\n Kind: string\n Description: Default export file name.\n\nComponent Capability:\n - Path: export.general.includeFields\n Category: export\n Kind: array\n Description: Field paths to include, or \"all\" for inferred object keys.\n\nComponent Capability:\n - Path: export.general.applyFormatting\n Category: export\n Kind: boolean\n Description: Apply configured field formatting when available.\n\nComponent Capability:\n - Path: interaction\n Category: interaction\n Kind: object\n Description: Expandable row interaction settings.\n\nComponent Capability:\n - Path: interaction.expandable\n Category: interaction\n Kind: boolean\n Description: Enable inline row expansion.\n\nComponent Capability:\n - Path: interaction.expandTrigger\n Category: interaction\n Kind: enum\n Description: How expansion is triggered.\n\nComponent Capability:\n - Path: interaction.expandMode\n Category: interaction\n Kind: enum\n Description: Whether one or many rows may be expanded.\n\nComponent Capability:\n - Path: interaction.expandPlacement\n Category: interaction\n Kind: enum\n Description: Where the expansion control is rendered.\n\nComponent Capability:\n - Path: templating\n Category: templating\n Kind: object\n Description: Templating settings.\n\nComponent Capability:\n - Path: templating.metaPlacement\n Category: templating\n Kind: enum\n Description: Meta placement in list variant.\n\nComponent Capability:\n - Path: templating.metaPrefixIcon\n Category: templating\n Kind: string\n Description: Prefix icon for meta.\n\nComponent Capability:\n - Path: templating.statusPosition\n Category: templating\n Kind: enum\n Description: Status position in cards/tiles.\n\nComponent Capability:\n - Path: templating.chipColorMap\n Category: templating\n Kind: object\n Description: Map value -> chip color.\n\nComponent Capability:\n - Path: templating.chipLabelMap\n Category: templating\n Kind: object\n Description: Map value -> label.\n\nComponent Capability:\n - Path: templating.iconColorMap\n Category: templating\n Kind: object\n Description: Map value/icon -> color.\n\nComponent Capability:\n - Path: templating.features\n Category: templating\n Kind: array\n Description: Extra feature line entries.\n\nComponent Capability:\n - Path: templating.features[].icon\n Category: templating\n Kind: string\n Description: Feature icon.\n\nComponent Capability:\n - Path: templating.features[].expr\n Category: templating\n Kind: expression\n Description: Templating expression for feature label; not Json Logic.\n\nComponent Capability:\n - Path: templating.features[].class\n Category: templating\n Kind: string\n Description: Feature CSS class.\n\nComponent Capability:\n - Path: templating.features[].style\n Category: templating\n Kind: string\n Description: Feature inline CSS.\n\nComponent Capability:\n - Path: templating.features[].quickView\n Category: templating\n Kind: object\n Description: Declarative ResourceQuickViewBinding for contextual read-only preview on feature entry (auto-synthesized from remote schema /schemas/filtered when omitted, or { enabled: false } to opt out).\n\nComponent Capability:\n - Path: templating.featuresVisible\n Category: templating\n Kind: boolean\n Description: Show features line.\n\nComponent Capability:\n - Path: templating.featuresMode\n Category: templating\n Kind: enum\n Description: Features render mode.\n\nComponent Capability:\n - Path: templating.skeleton\n Category: templating\n Kind: object\n Description: Skeleton loading config.\n\nComponent Capability:\n - Path: templating.skeleton.count\n Category: templating\n Kind: number\n Description: Skeleton items count.\n\nComponent Capability:\n - Path: actions\n Category: actions\n Kind: array\n Description: Item actions array.\n\nComponent Capability:\n - Path: actions[]\n Category: actions\n Kind: object\n Description: Single item action entry.\n\nComponent Capability:\n - Path: actions[].id\n Category: actions\n Kind: string\n Description: Action id.\n\nComponent Capability:\n - Path: actions[].icon\n Category: actions\n Kind: string\n Description: Action icon.\n\nComponent Capability:\n - Path: actions[].label\n Category: actions\n Kind: string\n Description: Action label.\n\nComponent Capability:\n - Path: actions[].color\n Category: actions\n Kind: string\n Description: Action color.\n\nComponent Capability:\n - Path: actions[].kind\n Category: actions\n Kind: enum\n Description: Action render kind.\n\nComponent Capability:\n - Path: actions[].buttonVariant\n Category: actions\n Kind: enum\n Description: Action button variant.\n\nComponent Capability:\n - Path: actions[].showIf\n Category: actions\n Kind: expression\n Description: Json Logic visibility condition for the current row.\n\nComponent Capability:\n - Path: actions[].globalAction.[actionId]\n Category: actions\n Kind: string\n Description: Canonical global app action id (ex.: \"toast.success\" ou \"navigation.openRoute\").\n\nComponent Capability:\n - Path: actions[].globalAction.payload\n Category: actions\n Kind: object\n Description: Structured payload for the global app action (JSON/template), including internal route payloads resolved from item context.\n\nComponent Capability:\n - Path: actions[].globalAction.payloadExpr\n Category: actions\n Kind: expression\n Description: Advanced payload expression for the global app action when structured payload is not authored.\n\nComponent Capability:\n - Path: actions[].emitLocal\n Category: actions\n Kind: boolean\n Description: Emit local actionClick even when globalAction is set.\n\nComponent Capability:\n - Path: actions[].showLoading\n Category: actions\n Kind: boolean\n Description: Show loading state while a global action executes.\n\nComponent Capability:\n - Path: actions[].placement\n Category: actions\n Kind: enum\n Description: Action placement in row layout actions or trailing slot.\n\nComponent Capability:\n - Path: actions[].quickView\n Category: actions\n Kind: object\n Description: Declarative ResourceQuickViewBinding for contextual read-only preview triggered by the list item action.\n\nComponent Capability:\n - Path: actions[].confirmation\n Category: actions\n Kind: object\n Description: Confirmation prompt before executing the action.\n\nComponent Capability:\n - Path: actions[].confirmation.title\n Category: actions\n Kind: string\n Description: Confirmation title.\n\nComponent Capability:\n - Path: actions[].confirmation.message\n Category: actions\n Kind: string\n Description: Confirmation message.\n\nComponent Capability:\n - Path: actions[].confirmation.type\n Category: actions\n Kind: enum\n Description: Confirmation severity.\n\nComponent Capability:\n - Path: rules\n Category: rules\n Kind: object\n Description: Conditional list item styling and slot override rules.\n\nComponent Capability:\n - Path: rules.itemStyles\n Category: rules\n Kind: array\n Description: Conditional item style rules.\n\nComponent Capability:\n - Path: rules.itemStyles[].id\n Category: rules\n Kind: string\n Description: Stable item style rule id.\n\nComponent Capability:\n - Path: rules.itemStyles[].condition\n Category: rules\n Kind: expression\n Description: Json Logic condition in row context.\n\nComponent Capability:\n - Path: rules.itemStyles[].tone\n Category: rules\n Kind: enum\n Description: Semantic tone applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].class\n Category: rules\n Kind: string\n Description: CSS class applied when the rule matches.",
|
|
9564
9574
|
"sourcePointer": "projects/praxis-list/src/lib/ai/list-ai-capabilities.ts",
|
|
9565
|
-
"contentHash": "
|
|
9575
|
+
"contentHash": "d62fe8da8641f2f6dedfcd8ab3f92356672c136c5051890959b6b08eb14a7cf2",
|
|
9566
9576
|
"sourceKind": "component_definition",
|
|
9567
9577
|
"sourceId": "praxis-list",
|
|
9568
9578
|
"corpusVersion": "1.0.0"
|
|
@@ -9570,9 +9580,9 @@
|
|
|
9570
9580
|
{
|
|
9571
9581
|
"chunkIndex": 3,
|
|
9572
9582
|
"chunkKind": "capabilities",
|
|
9573
|
-
"content": "Component Capability:\n - Path: rules.itemStyles[].background\n Category: rules\n Kind: string\n Description: Background style override applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].effects\n Category: rules\n Kind: array\n Description: Canonical conditional effect array aligned with PraxisRuntimeConditionalEffectRule<ListItemStyleEffect>.\n\nComponent Capability:\n - Path: rules.itemStyles[].effects[].kind\n Category: rules\n Kind: enum\n Description: Discriminator for list item style effects.\n\nComponent Capability:\n - Path: rules.slotOverrides\n Category: rules\n Kind: array\n Description: Conditional slot template override rules.\n\nComponent Capability:\n - Path: rules.slotOverrides[].id\n Category: rules\n Kind: string\n Description: Stable slot override rule id.\n\nComponent Capability:\n - Path: rules.slotOverrides[].slot\n Category: rules\n Kind: enum\n Description: Templating slot affected by the override.\n\nComponent Capability:\n - Path: rules.slotOverrides[].condition\n Category: rules\n Kind: expression\n Description: Json Logic condition in row context.\n\nComponent Capability:\n - Path: rules.slotOverrides[].template\n Category: rules\n Kind: object\n Description: Template override applied when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].class\n Category: rules\n Kind: string\n Description: CSS class appended when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].style\n Category: rules\n Kind: string\n Description: Inline style appended when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].hide\n Category: rules\n Kind: boolean\n Description: Hide the slot when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].effects\n Category: rules\n Kind: array\n Description: Canonical conditional effect array aligned with PraxisRuntimeConditionalEffectRule<ListSlotOverrideEffect>.\n\nComponent Capability:\n - Path: rules.slotOverrides[].effects[].kind\n Category: rules\n Kind: enum\n Description: Discriminator for list slot override effects.\n\nComponent Capability:\n - Path: expansion\n Category: expansion\n Kind: object\n Description: Inline expansion sections and remote detail contract.\n\nComponent Capability:\n - Path: expansion.sections\n Category: expansion\n Kind: array\n Description: Expansion detail sections.\n\nComponent Capability:\n - Path: expansion.sections[].id\n Category: expansion\n Kind: string\n Description: Stable expansion section id.\n\nComponent Capability:\n - Path: expansion.sections[].title\n Category: expansion\n Kind: string\n Description: Expansion section title.\n\nComponent Capability:\n - Path: expansion.sections[].type\n Category: expansion\n Kind: enum\n Description: Expansion section renderer type.\n\nComponent Capability:\n - Path: expansion.sections[].itemsExpr\n Category: expansion\n Kind: expression\n Description: Expression used to resolve section items from the row.\n\nComponent Capability:\n - Path: expansion.sections[].document\n Category: expansion\n Kind: object\n Description: Canonical RichContentDocument rendered when type=rich-content.\n\nComponent Capability:\n - Path: expansion.sections[].documentExpr\n Category: expansion\n Kind: expression\n Description: Expression resolving to a RichContentDocument for type=rich-content.\n\nComponent Capability:\n - Path: expansion.sections[].emptyLabel\n Category: expansion\n Kind: string\n Description: Empty label for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].metadata\n Category: expansion\n Kind: object\n Description: Metadata rendering options for metadata expansion sections.\n\nComponent Capability:\n - Path: expansion.sections[].component\n Category: expansion\n Kind: object\n Description: Runtime component rendering options for component expansion sections.\n\nComponent Capability:\n - Path: expansion.sections[].class\n Category: expansion\n Kind: string\n Description: CSS class for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].style\n Category: expansion\n Kind: string\n Description: Inline style for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].showIf\n Category: expansion\n Kind: expression\n Description: Json Logic visibility condition for an expansion section.\n\nComponent Capability:\n - Path: expansion.dataSource\n Category: expansion\n Kind: object\n Description: Expansion detail data source.\n\nComponent Capability:\n - Path: expansion.dataSource.mode\n Category: expansion\n Kind: enum\n Description: Expansion data source mode.\n\nComponent Capability:\n - Path: expansion.dataSource.resource\n Category: expansion\n Kind: object\n Description: Canonical resource descriptor for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.kind\n Category: expansion\n Kind: string\n Description: Canonical expansion resource kind.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.id\n Category: expansion\n Kind: string\n Description: Canonical expansion resource id.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.version\n Category: expansion\n Kind: string\n Description: Canonical expansion resource version.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath\n Category: expansion\n Kind: object\n Description: Dynamic resource path descriptor for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.path\n Category: expansion\n Kind: string\n Description: Expression-backed remote path for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.method\n Category: expansion\n Kind: enum\n Description: HTTP method for dynamic expansion resource path.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.paramsMap\n Category: expansion\n Kind: object\n Description: Parameter map for dynamic expansion resource path.\n\nComponent Capability:\n - Path: expansion.dataSource.resourceAllowList\n Category: expansion\n Kind: array\n Description: Allowlist for dynamic expansion resource paths.\n\nComponent Capability:\n - Path: expansion.dataSource.fallbackMode\n Category: expansion\n Kind: enum\n Description: Fallback mode for expansion detail loading.\n\nComponent Capability:\n - Path: expansion.dataSource.cache\n Category: expansion\n Kind: object\n Description: Expansion detail cache configuration.\n\nComponent Capability:\n - Path: expansion.dataSource.cache.enabled\n Category: expansion\n Kind: boolean\n Description: Enable expansion detail cache.\n\nComponent Capability:\n - Path: expansion.dataSource.cancelOnCollapse\n Category: expansion\n Kind: boolean\n Description: Cancel expansion detail loading when a row collapses.\n\nComponent Capability:\n - Path: expansion.schemaContract\n Category: expansion\n Kind: object\n Description: Fail-closed schema contract for remote expansion details.\n\nComponent Capability:\n - Path: expansion.schemaContract.kind\n Category: expansion\n Kind: string\n Description: Expansion schema contract kind.\n\nComponent Capability:\n - Path: expansion.schemaContract.version\n Category: expansion\n Kind: string\n Description: Expansion schema contract version.\n\nComponent Capability:\n - Path: expansion.schemaContract.allowedNodes\n Category: expansion\n Kind: array\n Description: Allowed remote expansion node types
|
|
9583
|
+
"content": "Component Capability:\n - Path: rules.itemStyles[].style\n Category: rules\n Kind: string\n Description: Inline style applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].border\n Category: rules\n Kind: string\n Description: Border style override applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].background\n Category: rules\n Kind: string\n Description: Background style override applied when the rule matches.\n\nComponent Capability:\n - Path: rules.itemStyles[].effects\n Category: rules\n Kind: array\n Description: Canonical conditional effect array aligned with PraxisRuntimeConditionalEffectRule<ListItemStyleEffect>.\n\nComponent Capability:\n - Path: rules.itemStyles[].effects[].kind\n Category: rules\n Kind: enum\n Description: Discriminator for list item style effects.\n\nComponent Capability:\n - Path: rules.slotOverrides\n Category: rules\n Kind: array\n Description: Conditional slot template override rules.\n\nComponent Capability:\n - Path: rules.slotOverrides[].id\n Category: rules\n Kind: string\n Description: Stable slot override rule id.\n\nComponent Capability:\n - Path: rules.slotOverrides[].slot\n Category: rules\n Kind: enum\n Description: Templating slot affected by the override.\n\nComponent Capability:\n - Path: rules.slotOverrides[].condition\n Category: rules\n Kind: expression\n Description: Json Logic condition in row context.\n\nComponent Capability:\n - Path: rules.slotOverrides[].template\n Category: rules\n Kind: object\n Description: Template override applied when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].class\n Category: rules\n Kind: string\n Description: CSS class appended when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].style\n Category: rules\n Kind: string\n Description: Inline style appended when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].hide\n Category: rules\n Kind: boolean\n Description: Hide the slot when the rule matches.\n\nComponent Capability:\n - Path: rules.slotOverrides[].effects\n Category: rules\n Kind: array\n Description: Canonical conditional effect array aligned with PraxisRuntimeConditionalEffectRule<ListSlotOverrideEffect>.\n\nComponent Capability:\n - Path: rules.slotOverrides[].effects[].kind\n Category: rules\n Kind: enum\n Description: Discriminator for list slot override effects.\n\nComponent Capability:\n - Path: expansion\n Category: expansion\n Kind: object\n Description: Inline expansion sections and remote detail contract.\n\nComponent Capability:\n - Path: expansion.sections\n Category: expansion\n Kind: array\n Description: Expansion detail sections.\n\nComponent Capability:\n - Path: expansion.sections[].id\n Category: expansion\n Kind: string\n Description: Stable expansion section id.\n\nComponent Capability:\n - Path: expansion.sections[].title\n Category: expansion\n Kind: string\n Description: Expansion section title.\n\nComponent Capability:\n - Path: expansion.sections[].type\n Category: expansion\n Kind: enum\n Description: Expansion section renderer type.\n\nComponent Capability:\n - Path: expansion.sections[].itemsExpr\n Category: expansion\n Kind: expression\n Description: Expression used to resolve section items from the row.\n\nComponent Capability:\n - Path: expansion.sections[].document\n Category: expansion\n Kind: object\n Description: Canonical RichContentDocument rendered when type=rich-content.\n\nComponent Capability:\n - Path: expansion.sections[].documentExpr\n Category: expansion\n Kind: expression\n Description: Expression resolving to a RichContentDocument for type=rich-content.\n\nComponent Capability:\n - Path: expansion.sections[].emptyLabel\n Category: expansion\n Kind: string\n Description: Empty label for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].metadata\n Category: expansion\n Kind: object\n Description: Metadata rendering options for metadata expansion sections.\n\nComponent Capability:\n - Path: expansion.sections[].component\n Category: expansion\n Kind: object\n Description: Runtime component rendering options for component expansion sections.\n\nComponent Capability:\n - Path: expansion.sections[].class\n Category: expansion\n Kind: string\n Description: CSS class for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].style\n Category: expansion\n Kind: string\n Description: Inline style for an expansion section.\n\nComponent Capability:\n - Path: expansion.sections[].showIf\n Category: expansion\n Kind: expression\n Description: Json Logic visibility condition for an expansion section.\n\nComponent Capability:\n - Path: expansion.dataSource\n Category: expansion\n Kind: object\n Description: Expansion detail data source.\n\nComponent Capability:\n - Path: expansion.dataSource.mode\n Category: expansion\n Kind: enum\n Description: Expansion data source mode.\n\nComponent Capability:\n - Path: expansion.dataSource.resource\n Category: expansion\n Kind: object\n Description: Canonical resource descriptor for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.kind\n Category: expansion\n Kind: string\n Description: Canonical expansion resource kind.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.id\n Category: expansion\n Kind: string\n Description: Canonical expansion resource id.\n\nComponent Capability:\n - Path: expansion.dataSource.resource.version\n Category: expansion\n Kind: string\n Description: Canonical expansion resource version.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath\n Category: expansion\n Kind: object\n Description: Dynamic resource path descriptor for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.path\n Category: expansion\n Kind: string\n Description: Expression-backed remote path for expansion details.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.method\n Category: expansion\n Kind: enum\n Description: HTTP method for dynamic expansion resource path.\n\nComponent Capability:\n - Path: expansion.dataSource.resourcePath.paramsMap\n Category: expansion\n Kind: object\n Description: Parameter map for dynamic expansion resource path.\n\nComponent Capability:\n - Path: expansion.dataSource.resourceAllowList\n Category: expansion\n Kind: array\n Description: Allowlist for dynamic expansion resource paths.\n\nComponent Capability:\n - Path: expansion.dataSource.fallbackMode\n Category: expansion\n Kind: enum\n Description: Fallback mode for expansion detail loading.\n\nComponent Capability:\n - Path: expansion.dataSource.cache\n Category: expansion\n Kind: object\n Description: Expansion detail cache configuration.\n\nComponent Capability:\n - Path: expansion.dataSource.cache.enabled\n Category: expansion\n Kind: boolean\n Description: Enable expansion detail cache.\n\nComponent Capability:\n - Path: expansion.dataSource.cancelOnCollapse\n Category: expansion\n Kind: boolean\n Description: Cancel expansion detail loading when a row collapses.\n\nComponent Capability:\n - Path: expansion.schemaContract\n Category: expansion\n Kind: object\n Description: Fail-closed schema contract for remote expansion details.\n\nComponent Capability:\n - Path: expansion.schemaContract.kind\n Category: expansion\n Kind: string\n Description: Expansion schema contract kind.\n\nComponent Capability:\n - Path: expansion.schemaContract.version\n Category: expansion\n Kind: string\n Description: Expansion schema contract version.\n\nComponent Capability:\n - Path: expansion.schemaContract.allowedNodes\n Category: expansion\n Kind: array\n Description: Allowed remote expansion node types.",
|
|
9574
9584
|
"sourcePointer": "projects/praxis-list/src/lib/ai/list-ai-capabilities.ts",
|
|
9575
|
-
"contentHash": "
|
|
9585
|
+
"contentHash": "0335cbeb1a04e9d01ad0133b9c5f8cdab4e046a32bcb28e4f7b82683b4401041",
|
|
9576
9586
|
"sourceKind": "component_definition",
|
|
9577
9587
|
"sourceId": "praxis-list",
|
|
9578
9588
|
"corpusVersion": "1.0.0"
|
|
@@ -9580,9 +9590,9 @@
|
|
|
9580
9590
|
{
|
|
9581
9591
|
"chunkIndex": 4,
|
|
9582
9592
|
"chunkKind": "capabilities",
|
|
9583
|
-
"content": "Component Capability:\n - Path: expansion.schemaContract.maxItemsPerSection\n Category: expansion\n Kind: number\n Description: Maximum number of items per remote expansion section.\n\nComponent Capability:\n - Path: expansion.schemaContract.requireSectionIds\n Category: expansion\n Kind: boolean\n Description: Require explicit ids for remote expansion sections.\n\nComponent Capability:\n - Path: expansion.rendering\n Category: expansion\n Kind: object\n Description: Expansion shell rendering configuration.\n\nComponent Capability:\n - Path: expansion.rendering.shell\n Category: expansion\n Kind: enum\n Description: Expansion shell attachment mode.\n\nComponent Capability:\n - Path: expansion.rendering.columns\n Category: expansion\n Kind: enum\n Description: Expansion detail column count.\n\nComponent Capability:\n - Path: expansion.rendering.gap\n Category: expansion\n Kind: string\n Description: Gap between expansion sections.\n\nComponent Capability:\n - Path: expansion.rendering.padding\n Category: expansion\n Kind: string\n Description: Padding inside the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.class\n Category: expansion\n Kind: string\n Description: CSS class for the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.style\n Category: expansion\n Kind: string\n Description: Inline style for the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.loadingTemplate\n Category: expansion\n Kind: object\n Description: Template rendered while expansion detail loads.\n\nComponent Capability:\n - Path: expansion.rendering.errorTemplate\n Category: expansion\n Kind: object\n Description: Template rendered when expansion detail loading fails.\n\nComponent Capability:\n - Path: ui\n Category: ui\n Kind: object\n Description: Lightweight toolbar UI.\n\nComponent Capability:\n - Path: ui.showSearch\n Category: ui\n Kind: boolean\n Description: Show search input.\n\nComponent Capability:\n - Path: ui.searchField\n Category: ui\n Kind: string\n Description: Search field.\n\nComponent Capability:\n - Path: ui.searchPlaceholder\n Category: ui\n Kind: string\n Description: Search placeholder.\n\nComponent Capability:\n - Path: ui.showSort\n Category: ui\n Kind: boolean\n Description: Show sort selector.\n\nComponent Capability:\n - Path: ui.sortOptions\n Category: ui\n Kind: array\n Description: Sort options (string or {label,value}).\n\nComponent Capability:\n - Path: ui.sortOptions[].label\n Category: ui\n Kind: string\n Description: Sort option label.\n\nComponent Capability:\n - Path: ui.sortOptions[].value\n Category: ui\n Kind: string\n Description: Sort option value.\n\nComponent Capability:\n - Path: ui.showRange\n Category: ui\n Kind: boolean\n Description: Show range in footer.\n\nComponent Capability:\n - Path: i18n\n Category: i18n\n Kind: object\n Description: i18n map.\n\nComponent Capability:\n - Path: i18n.locale\n Category: i18n\n Kind: string\n Description: Locale (ex.: pt-BR).\n\nComponent Capability:\n - Path: i18n.currency\n Category: i18n\n Kind: string\n Description: Currency code (ex.: BRL).\n\nComponent Capability:\n - Path: i18n.localization\n Category: i18n\n Kind: object\n Description: Core localization defaults reused by list template pipes.\n\nComponent Capability:\n - Path: a11y\n Category: a11y\n Kind: object\n Description: Accessibility settings.\n\nComponent Capability:\n - Path: a11y.ariaLabel\n Category: a11y\n Kind: string\n Description: aria-label for container.\n\nComponent Capability:\n - Path: a11y.ariaLabelledBy\n Category: a11y\n Kind: string\n Description: aria-labelledby for container.\n\nComponent Capability:\n - Path: a11y.highContrast\n Category: a11y\n Kind: boolean\n Description: High contrast mode.\n\nComponent Capability:\n - Path: a11y.reduceMotion\n Category: a11y\n Kind: boolean\n Description: Reduce motion.\n\nComponent Capability:\n - Path: events\n Category: events\n Kind: object\n Description: Event mappings.\n\nComponent Capability:\n - Path: events.itemClick\n Category: events\n Kind: string\n Description: Mapped itemClick event name.\n\nComponent Capability:\n - Path: events.actionClick\n Category: events\n Kind: string\n Description: Mapped actionClick event name.\n\nComponent Capability:\n - Path: events.selectionChange\n Category: events\n Kind: string\n Description: Mapped selectionChange event name.\n\nComponent Capability:\n - Path: events.exportAction\n Category: events\n Kind: string\n Description: Mapped exportAction event name.\n\nComponent Capability:\n - Path: events.loaded\n Category: events\n Kind: string\n Description: Mapped loaded event name.\n\nCapability Note:\n - Template expressions support only ${item.path} and simple pipes: bool/date/map/number.\n\nCapability Note:\n - Taxonomia editorial: templating.*.expr continua no dominio de template; conditions booleanas de acoes, rules e expansion usam Json Logic canonico.\n\nCapability Note:\n - actions[].showIf uses Json Logic, for example {\"==\":[{\"var\":\"row.status\"},\"done\"]}.\n\nCapability Note:\n - Arrays should be merged by id/expr to avoid replacing existing items.\n\nCapability Note:\n - dataSource.data overrides resourcePath when provided.\n\nCapability Note:\n - layout.variant supports list, cards and tiles.\n\nCapability Note:\n - Colors accept theme tokens (primary/accent/warn), M3 tokens (var(--md-sys-color-*)), or custom CSS colors.",
|
|
9593
|
+
"content": "Component Capability:\n - Path: expansion.schemaContract.maxSections\n Category: expansion\n Kind: number\n Description: Maximum number of remote expansion sections.\n\nComponent Capability:\n - Path: expansion.schemaContract.maxItemsPerSection\n Category: expansion\n Kind: number\n Description: Maximum number of items per remote expansion section.\n\nComponent Capability:\n - Path: expansion.schemaContract.requireSectionIds\n Category: expansion\n Kind: boolean\n Description: Require explicit ids for remote expansion sections.\n\nComponent Capability:\n - Path: expansion.rendering\n Category: expansion\n Kind: object\n Description: Expansion shell rendering configuration.\n\nComponent Capability:\n - Path: expansion.rendering.shell\n Category: expansion\n Kind: enum\n Description: Expansion shell attachment mode.\n\nComponent Capability:\n - Path: expansion.rendering.columns\n Category: expansion\n Kind: enum\n Description: Expansion detail column count.\n\nComponent Capability:\n - Path: expansion.rendering.gap\n Category: expansion\n Kind: string\n Description: Gap between expansion sections.\n\nComponent Capability:\n - Path: expansion.rendering.padding\n Category: expansion\n Kind: string\n Description: Padding inside the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.class\n Category: expansion\n Kind: string\n Description: CSS class for the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.style\n Category: expansion\n Kind: string\n Description: Inline style for the expansion shell.\n\nComponent Capability:\n - Path: expansion.rendering.loadingTemplate\n Category: expansion\n Kind: object\n Description: Template rendered while expansion detail loads.\n\nComponent Capability:\n - Path: expansion.rendering.errorTemplate\n Category: expansion\n Kind: object\n Description: Template rendered when expansion detail loading fails.\n\nComponent Capability:\n - Path: ui\n Category: ui\n Kind: object\n Description: Lightweight toolbar UI.\n\nComponent Capability:\n - Path: ui.showSearch\n Category: ui\n Kind: boolean\n Description: Show search input.\n\nComponent Capability:\n - Path: ui.searchField\n Category: ui\n Kind: string\n Description: Search field.\n\nComponent Capability:\n - Path: ui.searchPlaceholder\n Category: ui\n Kind: string\n Description: Search placeholder.\n\nComponent Capability:\n - Path: ui.showSort\n Category: ui\n Kind: boolean\n Description: Show sort selector.\n\nComponent Capability:\n - Path: ui.sortOptions\n Category: ui\n Kind: array\n Description: Sort options (string or {label,value}).\n\nComponent Capability:\n - Path: ui.sortOptions[].label\n Category: ui\n Kind: string\n Description: Sort option label.\n\nComponent Capability:\n - Path: ui.sortOptions[].value\n Category: ui\n Kind: string\n Description: Sort option value.\n\nComponent Capability:\n - Path: ui.showRange\n Category: ui\n Kind: boolean\n Description: Show range in footer.\n\nComponent Capability:\n - Path: i18n\n Category: i18n\n Kind: object\n Description: i18n map.\n\nComponent Capability:\n - Path: i18n.locale\n Category: i18n\n Kind: string\n Description: Locale (ex.: pt-BR).\n\nComponent Capability:\n - Path: i18n.currency\n Category: i18n\n Kind: string\n Description: Currency code (ex.: BRL).\n\nComponent Capability:\n - Path: i18n.localization\n Category: i18n\n Kind: object\n Description: Core localization defaults reused by list template pipes.\n\nComponent Capability:\n - Path: a11y\n Category: a11y\n Kind: object\n Description: Accessibility settings.\n\nComponent Capability:\n - Path: a11y.ariaLabel\n Category: a11y\n Kind: string\n Description: aria-label for container.\n\nComponent Capability:\n - Path: a11y.ariaLabelledBy\n Category: a11y\n Kind: string\n Description: aria-labelledby for container.\n\nComponent Capability:\n - Path: a11y.highContrast\n Category: a11y\n Kind: boolean\n Description: High contrast mode.\n\nComponent Capability:\n - Path: a11y.reduceMotion\n Category: a11y\n Kind: boolean\n Description: Reduce motion.\n\nComponent Capability:\n - Path: events\n Category: events\n Kind: object\n Description: Event mappings.\n\nComponent Capability:\n - Path: events.itemClick\n Category: events\n Kind: string\n Description: Mapped itemClick event name.\n\nComponent Capability:\n - Path: events.actionClick\n Category: events\n Kind: string\n Description: Mapped actionClick event name.\n\nComponent Capability:\n - Path: events.selectionChange\n Category: events\n Kind: string\n Description: Mapped selectionChange event name.\n\nComponent Capability:\n - Path: events.exportAction\n Category: events\n Kind: string\n Description: Mapped exportAction event name.\n\nComponent Capability:\n - Path: events.loaded\n Category: events\n Kind: string\n Description: Mapped loaded event name.\n\nCapability Note:\n - Template expressions support only ${item.path} and simple pipes: bool/date/map/number.\n\nCapability Note:\n - Taxonomia editorial: templating.*.expr continua no dominio de template; conditions booleanas de acoes, rules e expansion usam Json Logic canonico.\n\nCapability Note:\n - actions[].showIf uses Json Logic, for example {\"==\":[{\"var\":\"row.status\"},\"done\"]}.\n\nCapability Note:\n - Arrays should be merged by id/expr to avoid replacing existing items.\n\nCapability Note:\n - dataSource.data overrides resourcePath when provided.\n\nCapability Note:\n - layout.variant supports list, cards and tiles.\n\nCapability Note:\n - Colors accept theme tokens (primary/accent/warn), M3 tokens (var(--md-sys-color-*)), or custom CSS colors.",
|
|
9584
9594
|
"sourcePointer": "projects/praxis-list/src/lib/ai/list-ai-capabilities.ts",
|
|
9585
|
-
"contentHash": "
|
|
9595
|
+
"contentHash": "f4139330adc9db92bf62d6a2ee0553444e2247a0e01f96a072f28e8790e072d0",
|
|
9586
9596
|
"sourceKind": "component_definition",
|
|
9587
9597
|
"sourceId": "praxis-list",
|
|
9588
9598
|
"corpusVersion": "1.0.0"
|
|
@@ -9740,9 +9750,9 @@
|
|
|
9740
9750
|
{
|
|
9741
9751
|
"chunkIndex": 20,
|
|
9742
9752
|
"chunkKind": "authoring_manifest",
|
|
9743
|
-
"content": "{\"operationId\":\"templating.features.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.1.0\",\"componentId\":\"praxis-list\",\"ownerPackage\":\"@praxisui/list\",\"configSchemaId\":\"PraxisListConfig\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set list feature line Effects: set-value. Show the amenities feature line.\",\"scope\":\"templating\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-features\",\"required\":false},\"inputContract\":{\"required\":[\"features\"],\"properties\":[\"features\"],\"semanticTerms\":[\"features\",\"features.icon\",\"features.expr\",\"features.class\",\"features.style\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"templating.features\",\"templating.features[].icon\",\"templating.features[].expr\",\"templating.features[].class\",\"templating.features[].style\"],\"validators\":[{\"validatorId\":\"bound-field-exists\",\"level\":\"error\",\"code\":\"PL001\",\"description\":\"Bound template and selection fields must exist in local data or schema context when available.\"},{\"validatorId\":\"template-expression-safe\",\"level\":\"error\",\"code\":\"PL002\",\"description\":\"Template expressions must use supported ${item.path} syntax and allowed pipes.\"},{\"validatorId\":\"editor-round-trip-preserve\",\"level\":\"error\",\"code\":\"PL012\",\"description\":\"The list config editor and JSON editor must preserve the saved shape without drift.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-feature-line\",\"request\":\"Show the amenities feature line.\",\"operationId\":\"templating.features.set\",\"params\":{\"features\":[{\"icon\":\"wifi\",\"expr\":\"${item.hasWifi}\"}]},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
9753
|
+
"content": "{\"operationId\":\"templating.features.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.1.0\",\"componentId\":\"praxis-list\",\"ownerPackage\":\"@praxisui/list\",\"configSchemaId\":\"PraxisListConfig\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set list feature line Effects: set-value. Show the amenities feature line.\",\"scope\":\"templating\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-features\",\"required\":false},\"inputContract\":{\"required\":[\"features\"],\"properties\":[\"features\"],\"semanticTerms\":[\"features\",\"features.icon\",\"features.expr\",\"features.class\",\"features.style\",\"features.quickView\"]},\"effects\":[\"set-value\"],\"affectedPaths\":[\"templating.features\",\"templating.features[].icon\",\"templating.features[].expr\",\"templating.features[].class\",\"templating.features[].style\",\"templating.features[].quickView\"],\"validators\":[{\"validatorId\":\"bound-field-exists\",\"level\":\"error\",\"code\":\"PL001\",\"description\":\"Bound template and selection fields must exist in local data or schema context when available.\"},{\"validatorId\":\"template-expression-safe\",\"level\":\"error\",\"code\":\"PL002\",\"description\":\"Template expressions must use supported ${item.path} syntax and allowed pipes.\"},{\"validatorId\":\"editor-round-trip-preserve\",\"level\":\"error\",\"code\":\"PL012\",\"description\":\"The list config editor and JSON editor must preserve the saved shape without drift.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"visual-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-feature-line\",\"request\":\"Show the amenities feature line.\",\"operationId\":\"templating.features.set\",\"params\":{\"features\":[{\"icon\":\"wifi\",\"expr\":\"${item.hasWifi}\"}]},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
9744
9754
|
"sourcePointer": "projects/praxis-list/src/lib/ai/praxis-list-authoring-manifest.ts",
|
|
9745
|
-
"contentHash": "
|
|
9755
|
+
"contentHash": "1125af3aee9ffa7de3452a49595c5e4824bfc2802e4fb9b5d4a0205955343efa",
|
|
9746
9756
|
"sourceKind": "component_definition",
|
|
9747
9757
|
"sourceId": "praxis-list",
|
|
9748
9758
|
"corpusVersion": "1.0.0"
|
|
@@ -9950,9 +9960,9 @@
|
|
|
9950
9960
|
{
|
|
9951
9961
|
"chunkIndex": 41,
|
|
9952
9962
|
"chunkKind": "authoring_manifest",
|
|
9953
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.1.0\",\"componentId\":\"praxis-list\",\"ownerPackage\":\"@praxisui/list\",\"configSchemaId\":\"PraxisListConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"skin.configure\",\"title\":\"Configure list skin\",\"scope\":\"skin\",\"targetKind\":\"skin\",\"target\":{\"kind\":\"skin\",\"resolver\":\"skin-config\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"type\":{\"enum\":[\"pill-soft\",\"gradient-tile\",\"glass\",\"elevated\",\"outline\",\"flat\",\"neumorphism\",\"custom\"]},\"gradient\":{\"type\":\"object\",\"properties\":{\"from\":{\"type\":\"string\"},\"to\":{\"type\":\"string\"},\"angle\":{\"type\":\"number\"}}},\"radius\":{\"type\":\"string\"},\"shadow\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"backdropBlur\":{\"type\":\"string\"},\"class\":{\"type\":\"string\"},\"inlineStyle\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"skin\"}],\"validators\":[\"skin-value-supported\",\"style-value-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"skin\",\"skin.type\",\"skin.gradient\",\"skin.gradient.from\",\"skin.gradient.to\",\"skin.gradient.angle\",\"skin.radius\",\"skin.shadow\",\"skin.border\",\"skin.backdropBlur\",\"skin.class\",\"skin.inlineStyle\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.display.configure\",\"title\":\"Configure list template display options\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-display-options\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"metaPlacement\":{\"enum\":[\"side\",\"line\"]},\"metaPrefixIcon\":{\"type\":\"string\"},\"statusPosition\":{\"enum\":[\"inline\",\"top-right\"]},\"chipColorMap\":{\"type\":\"object\"},\"chipLabelMap\":{\"type\":\"object\"},\"iconColorMap\":{\"type\":\"object\"},\"featuresVisible\":{\"type\":\"boolean\"},\"featuresMode\":{\"enum\":[\"icons+labels\",\"icons-only\",\"labels-only\"]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"templating\"}],\"validators\":[\"template-display-supported\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating\",\"templating.metaPlacement\",\"templating.metaPrefixIcon\",\"templating.statusPosition\",\"templating.chipColorMap\",\"templating.chipLabelMap\",\"templating.iconColorMap\",\"templating.featuresVisible\",\"templating.featuresMode\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.features.set\",\"title\":\"Set list feature line\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-features\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"features\"],\"properties\":{\"features\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"expr\"],\"properties\":{\"icon\":{\"type\":\"string\"},\"expr\":{\"type\":\"string\"},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"}}}}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"templating.features\"}],\"validators\":[\"bound-field-exists\",\"template-expression-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating.features\",\"templating.features[].icon\",\"templating.features[].expr\",\"templating.features[].class\",\"templating.features[].style\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.skeleton.configure\",\"title\":\"Configure list skeleton\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-skeleton\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"count\"],\"properties\":{\"count\":{\"type\":\"number\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"templating.skeleton\"}],\"validators\":[\"skeleton-value-supported\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating.skeleton\",\"templating.skeleton.count\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"rules.itemStyle.upsert\",\"title\":\"Upsert item style rule\",\"scope\":\"rules\",\"targetKind\":\"rules\",\"target\":{\"kind\":\"rules\",\"resolver\":\"rules-config\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"tone\":{\"enum\":[\"primary\",\"success\",\"warning\",\"danger\",\"muted\",\"neutral\"]},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"background\":{\"type\":\"string\"},\"effects\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"kind\":{\"enum\":[\"item-style\"]},\"tone\":{\"enum\":[\"primary\",\"success\",\"warning\",\"danger\",\"muted\",\"neutral\"]},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"background\":{\"type\":\"string\"}}}}}},\"effects\":[{\"kind\":\"merge-by-key\",\"path\":\"rules.itemStyles[]\",\"key\":\"id\"}],\"validators\":[\"rule-id-stable\",\"json-logic-valid\",\"style-value-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"rules\",\"rules.itemStyles\",\"rules.itemStyles[].id\",\"rules.itemStyles[].condition\",\"rules.itemStyles[].tone\",\"rules.itemStyles[].class\",\"rules.itemStyles[].style\",\"rules.itemStyles[].border\",\"rules.itemStyles[].background\",\"rules.itemStyles[].effects\",\"rules.itemStyles[].effects[].kind\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]}]}",
|
|
9963
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.1.0\",\"componentId\":\"praxis-list\",\"ownerPackage\":\"@praxisui/list\",\"configSchemaId\":\"PraxisListConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"skin.configure\",\"title\":\"Configure list skin\",\"scope\":\"skin\",\"targetKind\":\"skin\",\"target\":{\"kind\":\"skin\",\"resolver\":\"skin-config\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"type\":{\"enum\":[\"pill-soft\",\"gradient-tile\",\"glass\",\"elevated\",\"outline\",\"flat\",\"neumorphism\",\"custom\"]},\"gradient\":{\"type\":\"object\",\"properties\":{\"from\":{\"type\":\"string\"},\"to\":{\"type\":\"string\"},\"angle\":{\"type\":\"number\"}}},\"radius\":{\"type\":\"string\"},\"shadow\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"backdropBlur\":{\"type\":\"string\"},\"class\":{\"type\":\"string\"},\"inlineStyle\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"skin\"}],\"validators\":[\"skin-value-supported\",\"style-value-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"skin\",\"skin.type\",\"skin.gradient\",\"skin.gradient.from\",\"skin.gradient.to\",\"skin.gradient.angle\",\"skin.radius\",\"skin.shadow\",\"skin.border\",\"skin.backdropBlur\",\"skin.class\",\"skin.inlineStyle\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.display.configure\",\"title\":\"Configure list template display options\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-display-options\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"metaPlacement\":{\"enum\":[\"side\",\"line\"]},\"metaPrefixIcon\":{\"type\":\"string\"},\"statusPosition\":{\"enum\":[\"inline\",\"top-right\"]},\"chipColorMap\":{\"type\":\"object\"},\"chipLabelMap\":{\"type\":\"object\"},\"iconColorMap\":{\"type\":\"object\"},\"featuresVisible\":{\"type\":\"boolean\"},\"featuresMode\":{\"enum\":[\"icons+labels\",\"icons-only\",\"labels-only\"]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"templating\"}],\"validators\":[\"template-display-supported\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating\",\"templating.metaPlacement\",\"templating.metaPrefixIcon\",\"templating.statusPosition\",\"templating.chipColorMap\",\"templating.chipLabelMap\",\"templating.iconColorMap\",\"templating.featuresVisible\",\"templating.featuresMode\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.features.set\",\"title\":\"Set list feature line\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-features\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"features\"],\"properties\":{\"features\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"expr\"],\"properties\":{\"icon\":{\"type\":\"string\"},\"expr\":{\"type\":\"string\"},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"},\"quickView\":{\"type\":\"object\"}}}}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"templating.features\"}],\"validators\":[\"bound-field-exists\",\"template-expression-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating.features\",\"templating.features[].icon\",\"templating.features[].expr\",\"templating.features[].class\",\"templating.features[].style\",\"templating.features[].quickView\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"templating.skeleton.configure\",\"title\":\"Configure list skeleton\",\"scope\":\"templating\",\"targetKind\":\"itemTemplate\",\"target\":{\"kind\":\"itemTemplate\",\"resolver\":\"templating-skeleton\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"count\"],\"properties\":{\"count\":{\"type\":\"number\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"templating.skeleton\"}],\"validators\":[\"skeleton-value-supported\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"templating.skeleton\",\"templating.skeleton.count\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"rules.itemStyle.upsert\",\"title\":\"Upsert item style rule\",\"scope\":\"rules\",\"targetKind\":\"rules\",\"target\":{\"kind\":\"rules\",\"resolver\":\"rules-config\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"tone\":{\"enum\":[\"primary\",\"success\",\"warning\",\"danger\",\"muted\",\"neutral\"]},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"background\":{\"type\":\"string\"},\"effects\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"kind\":{\"enum\":[\"item-style\"]},\"tone\":{\"enum\":[\"primary\",\"success\",\"warning\",\"danger\",\"muted\",\"neutral\"]},\"class\":{\"type\":\"string\"},\"style\":{\"type\":\"string\"},\"border\":{\"type\":\"string\"},\"background\":{\"type\":\"string\"}}}}}},\"effects\":[{\"kind\":\"merge-by-key\",\"path\":\"rules.itemStyles[]\",\"key\":\"id\"}],\"validators\":[\"rule-id-stable\",\"json-logic-valid\",\"style-value-safe\",\"editor-round-trip-preserve\"],\"affectedPaths\":[\"rules\",\"rules.itemStyles\",\"rules.itemStyles[].id\",\"rules.itemStyles[].condition\",\"rules.itemStyles[].tone\",\"rules.itemStyles[].class\",\"rules.itemStyles[].style\",\"rules.itemStyles[].border\",\"rules.itemStyles[].background\",\"rules.itemStyles[].effects\",\"rules.itemStyles[].effects[].kind\"],\"submissionImpact\":\"visual-only\",\"destructive\":false,\"requiresConfirmation\":false,\"preconditions\":[\"config-initialized\"]}]}",
|
|
9954
9964
|
"sourcePointer": "projects/praxis-list/src/lib/ai/praxis-list-authoring-manifest.ts",
|
|
9955
|
-
"contentHash": "
|
|
9965
|
+
"contentHash": "af971fad527de2738a23fa363b33af23d06075d16b8325cdd313d8737f305566",
|
|
9956
9966
|
"sourceKind": "component_definition",
|
|
9957
9967
|
"sourceId": "praxis-list",
|
|
9958
9968
|
"corpusVersion": "1.0.0"
|
|
@@ -11,7 +11,7 @@ import * as i4$1 from '@angular/material/radio';
|
|
|
11
11
|
import { MatRadioModule } from '@angular/material/radio';
|
|
12
12
|
import * as i4 from '@angular/material/icon';
|
|
13
13
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
-
import { normalizeResourceQuickViewBinding, resolveValuePresentation, LoggerService, GenericCrudService, deepMerge, validateGlobalActionRefs, providePraxisI18n, PraxisIconDirective, PraxisQuickViewTriggerDirective, ResourceQuickViewService, ASYNC_CONFIG_STORAGE, ComponentKeyService, PraxisJsonLogicService, PraxisI18nService, PraxisCollectionExportService, GlobalActionService, GLOBAL_DIALOG_SERVICE, normalizePraxisDataQueryContext, ResourceRecordOpenError, ResourceRecordOpenService, assertPraxisCollectionExportArtifact, toTitleCase, ResourceQuickConnectComponent, ResourceDiscoveryService, PraxisIconButtonComponent, EmptyStateCardComponent, IconPickerService, SURFACE_OPEN_I18N_NAMESPACE, GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_ACTION_CATALOG, getGlobalActionCatalog, getGlobalActionUiSchema, SurfaceOpenActionEditorComponent, PRAXIS_I18N_CONFIG, providePraxisI18nConfig, SURFACE_OPEN_I18N_CONFIG, ComponentMetadataRegistry, API_URL, LocalStorageAsyncAdapter, LocalStorageConfigService } from '@praxisui/core';
|
|
14
|
+
import { normalizeResourceQuickViewBinding, resolveValuePresentation, LoggerService, GenericCrudService, deepMerge, validateGlobalActionRefs, providePraxisI18n, PraxisIconDirective, PraxisQuickViewTriggerDirective, ResourceQuickViewService, ASYNC_CONFIG_STORAGE, ComponentKeyService, PraxisJsonLogicService, PraxisI18nService, PraxisCollectionExportService, GlobalActionService, GLOBAL_DIALOG_SERVICE, normalizePraxisDataQueryContext, ResourceRecordOpenError, ResourceRecordOpenService, assertPraxisCollectionExportArtifact, toTitleCase, ResourceQuickConnectComponent, ResourceDiscoveryService, resolveFieldQuickViewBinding, PraxisIconButtonComponent, EmptyStateCardComponent, IconPickerService, SURFACE_OPEN_I18N_NAMESPACE, GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_ACTION_CATALOG, getGlobalActionCatalog, getGlobalActionUiSchema, SurfaceOpenActionEditorComponent, PRAXIS_I18N_CONFIG, providePraxisI18nConfig, SURFACE_OPEN_I18N_CONFIG, ComponentMetadataRegistry, API_URL, LocalStorageAsyncAdapter, LocalStorageConfigService } from '@praxisui/core';
|
|
15
15
|
import * as i2 from '@angular/material/chips';
|
|
16
16
|
import { MatChipsModule } from '@angular/material/chips';
|
|
17
17
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -36,12 +36,12 @@ import * as i1$1 from '@angular/forms';
|
|
|
36
36
|
import { FormControl, ReactiveFormsModule, FormsModule, FormGroup } from '@angular/forms';
|
|
37
37
|
import * as i15 from '@angular/cdk/scrolling';
|
|
38
38
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
39
|
+
import { produce, setAutoFreeze } from 'immer';
|
|
39
40
|
import { BehaviorSubject, combineLatest, of, firstValueFrom, Subject, debounceTime, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, timer, defer, Subscription } from 'rxjs';
|
|
40
41
|
import { auditTime, map, distinctUntilChanged, switchMap, catchError, finalize, shareReplay, take, takeUntil, defaultIfEmpty } from 'rxjs/operators';
|
|
41
42
|
import { PraxisRichContent } from '@praxisui/rich-content';
|
|
42
43
|
import { SettingsPanelService, SETTINGS_PANEL_DATA } from '@praxisui/settings-panel';
|
|
43
44
|
import { BaseAiAdapter, withAuthoringScopePolicy, shouldRoutePromptToGovernedDecision, createPraxisAssistantViewportLayout, AiBackendApiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnOrchestratorService, PraxisAiAssistantShellComponent } from '@praxisui/ai';
|
|
44
|
-
import { produce, setAutoFreeze } from 'immer';
|
|
45
45
|
import * as i3$3 from '@angular/material/tabs';
|
|
46
46
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
47
47
|
import * as i8$1 from '@angular/material/slide-toggle';
|
|
@@ -783,6 +783,293 @@ function parseDigitsFormat(format) {
|
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
+
/**
|
|
787
|
+
* Infer templating slots from field names already exposed by the canonical schema.
|
|
788
|
+
* - Does not override existing primary if already defined.
|
|
789
|
+
* - Heuristics prioritize common corporate/person records without creating a domain-specific preset.
|
|
790
|
+
*/
|
|
791
|
+
function inferTemplatingFromSchema(cfg, fieldNames, fieldQuickViews) {
|
|
792
|
+
const names = (fieldNames || []).filter(Boolean);
|
|
793
|
+
if (!names.length)
|
|
794
|
+
return cfg;
|
|
795
|
+
const templ = cfg.templating || {};
|
|
796
|
+
const usesIdentityRowSlot = hasIdentityRowSlot(cfg);
|
|
797
|
+
const needsPrimary = !templ.primary;
|
|
798
|
+
const needsIdentity = usesIdentityRowSlot && !templ.identity;
|
|
799
|
+
if (!needsPrimary && !needsIdentity) {
|
|
800
|
+
return enrichTemplatingWithSchemaQuickViews(cfg, fieldQuickViews);
|
|
801
|
+
}
|
|
802
|
+
const pickBy = (preds, accept = () => true) => names.find((n) => preds.some((p) => p.test(String(n))) && accept(n)) || undefined;
|
|
803
|
+
const primaryName = pickBy([
|
|
804
|
+
/nomeCompleto/i,
|
|
805
|
+
/fullName/i,
|
|
806
|
+
/^nome$/i,
|
|
807
|
+
/^name$/i,
|
|
808
|
+
/^nome[A-Z]/,
|
|
809
|
+
/^title$/i,
|
|
810
|
+
/^titulo$/i,
|
|
811
|
+
/title/i,
|
|
812
|
+
/titulo/i,
|
|
813
|
+
/label/i,
|
|
814
|
+
]) ||
|
|
815
|
+
names.find(isReadableBusinessField) ||
|
|
816
|
+
names[0];
|
|
817
|
+
const avatarName = pickBy([
|
|
818
|
+
/avatar/i,
|
|
819
|
+
/foto/i,
|
|
820
|
+
/photo/i,
|
|
821
|
+
/image/i,
|
|
822
|
+
/imagem/i,
|
|
823
|
+
/picture/i,
|
|
824
|
+
/profile.*url/i,
|
|
825
|
+
]);
|
|
826
|
+
const emailName = pickBy([/email/i, /e-mail/i]);
|
|
827
|
+
const phoneName = pickBy([/telefone/i, /phone/i, /celular/i, /mobile/i, /whats/i]);
|
|
828
|
+
const cpfName = pickBy([/^cpf$/i, /documento/i, /document/i, /taxId/i]);
|
|
829
|
+
const roleName = pickBy([/cargoNome/i, /roleName/i, /funcaoNome/i, /funçãoNome/i, /positionName/i], (n) => n !== primaryName) ||
|
|
830
|
+
pickBy([/cargo/i, /role/i, /funcao/i, /função/i, /position/i], (n) => n !== primaryName && isReadableBusinessField(n));
|
|
831
|
+
const departmentName = pickBy([/departamentoNome/i, /departmentName/i, /areaNome/i, /setorNome/i, /teamName/i], (n) => n !== primaryName) ||
|
|
832
|
+
pickBy([/departamento/i, /department/i, /area/i, /setor/i, /team/i], (n) => n !== primaryName && isReadableBusinessField(n));
|
|
833
|
+
const descriptionName = names.find((n) => n !== primaryName && /(desc|descricao|descrição|resumo|summary)/i.test(n));
|
|
834
|
+
const secondaryFields = [phoneName, emailName].filter(Boolean);
|
|
835
|
+
const fallbackSecondaryFields = [cpfName, emailName].filter(Boolean);
|
|
836
|
+
const secondaryName = secondaryFields.length > 1
|
|
837
|
+
? undefined
|
|
838
|
+
: fallbackSecondaryFields.length > 1
|
|
839
|
+
? undefined
|
|
840
|
+
: roleName || departmentName || descriptionName || names.find((n) => n !== primaryName && isDisplayFallbackField(n));
|
|
841
|
+
const trailingName = pickBy([
|
|
842
|
+
/status/i,
|
|
843
|
+
/situacao/i,
|
|
844
|
+
/situação/i,
|
|
845
|
+
/tag/i,
|
|
846
|
+
/state/i,
|
|
847
|
+
/^ativo$/i,
|
|
848
|
+
/^active$/i,
|
|
849
|
+
/enabled/i,
|
|
850
|
+
]);
|
|
851
|
+
const trailingIsBoolean = !!trailingName && /(^ativo$|^active$|enabled)/i.test(trailingName);
|
|
852
|
+
const newCfg = produce(cfg, (draft) => {
|
|
853
|
+
const t = { ...draft.templating };
|
|
854
|
+
if (needsPrimary) {
|
|
855
|
+
if (avatarName) {
|
|
856
|
+
t.leading = {
|
|
857
|
+
type: 'image',
|
|
858
|
+
expr: '${item.' + avatarName + '}',
|
|
859
|
+
imageAlt: 'Avatar',
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
t.primary = makeText(primaryName);
|
|
863
|
+
if (secondaryFields.length > 1) {
|
|
864
|
+
t.secondary = makeCompose(secondaryFields);
|
|
865
|
+
}
|
|
866
|
+
else if (fallbackSecondaryFields.length > 1) {
|
|
867
|
+
t.secondary = makeCompose(fallbackSecondaryFields);
|
|
868
|
+
}
|
|
869
|
+
else if (secondaryName) {
|
|
870
|
+
t.secondary = makeText(secondaryName);
|
|
871
|
+
}
|
|
872
|
+
if (t.secondary) {
|
|
873
|
+
draft.layout = draft.layout || {};
|
|
874
|
+
const cur = Number(draft.layout.lines) || 1;
|
|
875
|
+
draft.layout.lines = Math.max(cur, 2);
|
|
876
|
+
}
|
|
877
|
+
if (departmentName && departmentName !== secondaryName && !secondaryFields.includes(departmentName)) {
|
|
878
|
+
t.meta = makeText(departmentName);
|
|
879
|
+
}
|
|
880
|
+
if (trailingName) {
|
|
881
|
+
t.trailing = makeChip(trailingName, trailingIsBoolean ? '|bool:Ativo:Inativo' : '');
|
|
882
|
+
t.chipLabelMap = {
|
|
883
|
+
...(t.chipLabelMap || {}),
|
|
884
|
+
true: 'Ativo',
|
|
885
|
+
false: 'Inativo',
|
|
886
|
+
ativo: 'Ativo',
|
|
887
|
+
inativo: 'Inativo',
|
|
888
|
+
active: 'Ativo',
|
|
889
|
+
inactive: 'Inativo',
|
|
890
|
+
};
|
|
891
|
+
t.chipColorMap = {
|
|
892
|
+
...(t.chipColorMap || {}),
|
|
893
|
+
ativo: 'primary',
|
|
894
|
+
active: 'primary',
|
|
895
|
+
true: 'primary',
|
|
896
|
+
inativo: 'warn',
|
|
897
|
+
inactive: 'warn',
|
|
898
|
+
false: 'warn',
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
if (usesIdentityRowSlot && !t.identity && t.primary) {
|
|
903
|
+
const secondaryForIdentity = t.secondary ||
|
|
904
|
+
(secondaryFields.length > 1
|
|
905
|
+
? makeCompose(secondaryFields)
|
|
906
|
+
: fallbackSecondaryFields.length > 1
|
|
907
|
+
? makeCompose(fallbackSecondaryFields)
|
|
908
|
+
: secondaryName
|
|
909
|
+
? makeText(secondaryName)
|
|
910
|
+
: undefined);
|
|
911
|
+
t.identity = secondaryForIdentity
|
|
912
|
+
? {
|
|
913
|
+
type: 'compose',
|
|
914
|
+
props: {
|
|
915
|
+
compose: {
|
|
916
|
+
direction: 'column',
|
|
917
|
+
gap: '2px',
|
|
918
|
+
items: [t.primary, secondaryForIdentity],
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
}
|
|
922
|
+
: t.primary;
|
|
923
|
+
}
|
|
924
|
+
draft.templating = t;
|
|
925
|
+
});
|
|
926
|
+
return enrichTemplatingWithSchemaQuickViews(newCfg, fieldQuickViews);
|
|
927
|
+
}
|
|
928
|
+
function enrichTemplatingWithSchemaQuickViews(cfg, fieldQuickViews) {
|
|
929
|
+
if (!fieldQuickViews ||
|
|
930
|
+
!Object.keys(fieldQuickViews).length ||
|
|
931
|
+
(!cfg.templating && !cfg.rules?.slotOverrides?.length)) {
|
|
932
|
+
return cfg;
|
|
933
|
+
}
|
|
934
|
+
return produce(cfg, (draft) => {
|
|
935
|
+
const templating = draft.templating;
|
|
936
|
+
if (templating) {
|
|
937
|
+
for (const slot of [
|
|
938
|
+
'leading',
|
|
939
|
+
'primary',
|
|
940
|
+
'secondary',
|
|
941
|
+
'meta',
|
|
942
|
+
'trailing',
|
|
943
|
+
'identity',
|
|
944
|
+
'balance',
|
|
945
|
+
'limit',
|
|
946
|
+
'risk',
|
|
947
|
+
'alerts',
|
|
948
|
+
'owner',
|
|
949
|
+
]) {
|
|
950
|
+
if (templating[slot]) {
|
|
951
|
+
enrichTemplateDefQuickView(templating[slot], fieldQuickViews);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
if (Array.isArray(templating['features'])) {
|
|
955
|
+
templating['features'].forEach((feature) => {
|
|
956
|
+
if (feature && typeof feature === 'object') {
|
|
957
|
+
enrichTemplateDefQuickView(feature, fieldQuickViews);
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if (Array.isArray(draft.rules?.slotOverrides)) {
|
|
963
|
+
draft.rules.slotOverrides.forEach((override) => {
|
|
964
|
+
if (override?.template) {
|
|
965
|
+
enrichTemplateDefQuickView(override.template, fieldQuickViews);
|
|
966
|
+
}
|
|
967
|
+
if (Array.isArray(override?.effects)) {
|
|
968
|
+
override.effects.forEach((effect) => {
|
|
969
|
+
if (effect?.template) {
|
|
970
|
+
enrichTemplateDefQuickView(effect.template, fieldQuickViews);
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
function resolveSchemaQuickViewForTemplateDef(def, fieldQuickViews) {
|
|
979
|
+
if (!def || typeof def !== 'object' || !fieldQuickViews)
|
|
980
|
+
return undefined;
|
|
981
|
+
if (def.quickView?.enabled === false)
|
|
982
|
+
return undefined;
|
|
983
|
+
if (def.quickView)
|
|
984
|
+
return def.quickView;
|
|
985
|
+
const expr = typeof def.expr === 'string' ? def.expr.trim() : '';
|
|
986
|
+
if (!expr)
|
|
987
|
+
return undefined;
|
|
988
|
+
const referencedFields = extractTemplateExprItemFields(expr);
|
|
989
|
+
if (!referencedFields.length)
|
|
990
|
+
return undefined;
|
|
991
|
+
const matchedBindings = [];
|
|
992
|
+
const seenTargets = new Set();
|
|
993
|
+
for (const fieldName of referencedFields) {
|
|
994
|
+
const binding = fieldQuickViews[fieldName];
|
|
995
|
+
if (!binding)
|
|
996
|
+
continue;
|
|
997
|
+
const signature = `${binding.recordOpen.sourceIdentityField}::${binding.recordOpen.target.resourceKey}::${binding.recordOpen.target.surfaceId || ''}`;
|
|
998
|
+
if (!seenTargets.has(signature)) {
|
|
999
|
+
seenTargets.add(signature);
|
|
1000
|
+
matchedBindings.push(binding);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
return matchedBindings.length === 1 ? matchedBindings[0] : undefined;
|
|
1004
|
+
}
|
|
1005
|
+
function extractTemplateExprItemFields(expr) {
|
|
1006
|
+
const fields = [];
|
|
1007
|
+
const seen = new Set();
|
|
1008
|
+
for (const match of expr.matchAll(/\$\{([^}]+)\}/g)) {
|
|
1009
|
+
const rawPlaceholder = match[1] || '';
|
|
1010
|
+
const basePart = rawPlaceholder.split('|')[0] || '';
|
|
1011
|
+
for (const itemMatch of basePart.matchAll(/\bitem\.([A-Za-z_][\w]*)\b/g)) {
|
|
1012
|
+
const fieldName = itemMatch[1];
|
|
1013
|
+
if (fieldName && !seen.has(fieldName)) {
|
|
1014
|
+
seen.add(fieldName);
|
|
1015
|
+
fields.push(fieldName);
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
return fields;
|
|
1020
|
+
}
|
|
1021
|
+
function enrichTemplateDefQuickView(def, fieldQuickViews) {
|
|
1022
|
+
if (!def || typeof def !== 'object')
|
|
1023
|
+
return;
|
|
1024
|
+
if (def.type === 'compose') {
|
|
1025
|
+
if (Array.isArray(def.props?.compose?.items)) {
|
|
1026
|
+
def.props.compose.items.forEach((child) => enrichTemplateDefQuickView(child, fieldQuickViews));
|
|
1027
|
+
}
|
|
1028
|
+
if (Array.isArray(def.props?.compose?.nodes)) {
|
|
1029
|
+
def.props.compose.nodes.forEach((child) => enrichTemplateDefQuickView(child, fieldQuickViews));
|
|
1030
|
+
}
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1033
|
+
if (def.quickView?.enabled === false || def.quickView)
|
|
1034
|
+
return;
|
|
1035
|
+
const quickView = resolveSchemaQuickViewForTemplateDef(def, fieldQuickViews);
|
|
1036
|
+
if (quickView) {
|
|
1037
|
+
def.quickView = quickView;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
function hasIdentityRowSlot(cfg) {
|
|
1041
|
+
const rowLayout = cfg?.layout?.rowLayout;
|
|
1042
|
+
if (!rowLayout || typeof rowLayout !== 'object')
|
|
1043
|
+
return false;
|
|
1044
|
+
return (Array.isArray(rowLayout.columns) &&
|
|
1045
|
+
rowLayout.columns.some((col) => col?.slot === 'identity'));
|
|
1046
|
+
}
|
|
1047
|
+
function makeText(field) {
|
|
1048
|
+
return { type: 'text', expr: '${item.' + field + '}' };
|
|
1049
|
+
}
|
|
1050
|
+
function makeChip(field, pipe = '') {
|
|
1051
|
+
return { type: 'chip', expr: '${item.' + field + '}' + pipe, variant: 'outlined' };
|
|
1052
|
+
}
|
|
1053
|
+
function makeCompose(fields) {
|
|
1054
|
+
return {
|
|
1055
|
+
type: 'compose',
|
|
1056
|
+
props: {
|
|
1057
|
+
compose: {
|
|
1058
|
+
direction: 'column',
|
|
1059
|
+
gap: '2px',
|
|
1060
|
+
items: fields.map((field) => makeText(field)),
|
|
1061
|
+
},
|
|
1062
|
+
},
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
function isDisplayFallbackField(field) {
|
|
1066
|
+
return isReadableBusinessField(field) &&
|
|
1067
|
+
!/(idade|age|ativo|active|enabled|status|situacao|situação|state|tag|avatar|foto|photo|image|imagem|picture)/i.test(field);
|
|
1068
|
+
}
|
|
1069
|
+
function isReadableBusinessField(field) {
|
|
1070
|
+
return !/(^id$|Id$|ID$|_id$|-id$)/.test(field);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
786
1073
|
function adaptSelection(config, items) {
|
|
787
1074
|
const mode = (config?.selection?.mode ?? 'none');
|
|
788
1075
|
const compareBy = config?.selection?.compareBy;
|
|
@@ -1977,7 +2264,7 @@ function templateCaps(slot, label) {
|
|
|
1977
2264
|
path: `${base}.quickView`,
|
|
1978
2265
|
category: 'templating',
|
|
1979
2266
|
valueKind: 'object',
|
|
1980
|
-
description: `Declarative ResourceQuickViewBinding for contextual read-only preview on ${label}.`,
|
|
2267
|
+
description: `Declarative ResourceQuickViewBinding for contextual read-only preview on ${label} (auto-synthesized from remote schema /schemas/filtered when omitted, or { enabled: false } to opt out).`,
|
|
1981
2268
|
},
|
|
1982
2269
|
{
|
|
1983
2270
|
path: `${base}.props`,
|
|
@@ -2620,6 +2907,12 @@ const LIST_AI_CAPABILITIES = {
|
|
|
2620
2907
|
valueKind: 'string',
|
|
2621
2908
|
description: 'Feature inline CSS.',
|
|
2622
2909
|
},
|
|
2910
|
+
{
|
|
2911
|
+
path: 'templating.features[].quickView',
|
|
2912
|
+
category: 'templating',
|
|
2913
|
+
valueKind: 'object',
|
|
2914
|
+
description: 'Declarative ResourceQuickViewBinding for contextual read-only preview on feature entry (auto-synthesized from remote schema /schemas/filtered when omitted, or { enabled: false } to opt out).',
|
|
2915
|
+
},
|
|
2623
2916
|
{
|
|
2624
2917
|
path: 'templating.featuresVisible',
|
|
2625
2918
|
category: 'templating',
|
|
@@ -4157,6 +4450,7 @@ const PRAXIS_LIST_AUTHORING_MANIFEST = {
|
|
|
4157
4450
|
expr: { type: 'string' },
|
|
4158
4451
|
class: { type: 'string' },
|
|
4159
4452
|
style: { type: 'string' },
|
|
4453
|
+
quickView: { type: 'object' },
|
|
4160
4454
|
},
|
|
4161
4455
|
},
|
|
4162
4456
|
},
|
|
@@ -4170,6 +4464,7 @@ const PRAXIS_LIST_AUTHORING_MANIFEST = {
|
|
|
4170
4464
|
'templating.features[].expr',
|
|
4171
4465
|
'templating.features[].class',
|
|
4172
4466
|
'templating.features[].style',
|
|
4467
|
+
'templating.features[].quickView',
|
|
4173
4468
|
],
|
|
4174
4469
|
submissionImpact: 'visual-only',
|
|
4175
4470
|
destructive: false,
|
|
@@ -5753,180 +6048,6 @@ class ListAgenticAuthoringTurnFlow {
|
|
|
5753
6048
|
}
|
|
5754
6049
|
}
|
|
5755
6050
|
|
|
5756
|
-
/**
|
|
5757
|
-
* Infer templating slots from field names already exposed by the canonical schema.
|
|
5758
|
-
* - Does not override existing primary if already defined.
|
|
5759
|
-
* - Heuristics prioritize common corporate/person records without creating a domain-specific preset.
|
|
5760
|
-
*/
|
|
5761
|
-
function inferTemplatingFromSchema(cfg, fieldNames) {
|
|
5762
|
-
const names = (fieldNames || []).filter(Boolean);
|
|
5763
|
-
if (!names.length)
|
|
5764
|
-
return cfg;
|
|
5765
|
-
const templ = cfg.templating || {};
|
|
5766
|
-
const usesIdentityRowSlot = hasIdentityRowSlot(cfg);
|
|
5767
|
-
const needsPrimary = !templ.primary;
|
|
5768
|
-
const needsIdentity = usesIdentityRowSlot && !templ.identity;
|
|
5769
|
-
if (!needsPrimary && !needsIdentity)
|
|
5770
|
-
return cfg; // respect user config
|
|
5771
|
-
const pickBy = (preds, accept = () => true) => names.find((n) => preds.some((p) => p.test(String(n))) && accept(n)) || undefined;
|
|
5772
|
-
const primaryName = pickBy([
|
|
5773
|
-
/nomeCompleto/i,
|
|
5774
|
-
/fullName/i,
|
|
5775
|
-
/^nome$/i,
|
|
5776
|
-
/^name$/i,
|
|
5777
|
-
/^nome[A-Z]/,
|
|
5778
|
-
/^title$/i,
|
|
5779
|
-
/^titulo$/i,
|
|
5780
|
-
/title/i,
|
|
5781
|
-
/titulo/i,
|
|
5782
|
-
/label/i,
|
|
5783
|
-
]) ||
|
|
5784
|
-
names.find(isReadableBusinessField) ||
|
|
5785
|
-
names[0];
|
|
5786
|
-
const avatarName = pickBy([
|
|
5787
|
-
/avatar/i,
|
|
5788
|
-
/foto/i,
|
|
5789
|
-
/photo/i,
|
|
5790
|
-
/image/i,
|
|
5791
|
-
/imagem/i,
|
|
5792
|
-
/picture/i,
|
|
5793
|
-
/profile.*url/i,
|
|
5794
|
-
]);
|
|
5795
|
-
const emailName = pickBy([/email/i, /e-mail/i]);
|
|
5796
|
-
const phoneName = pickBy([/telefone/i, /phone/i, /celular/i, /mobile/i, /whats/i]);
|
|
5797
|
-
const cpfName = pickBy([/^cpf$/i, /documento/i, /document/i, /taxId/i]);
|
|
5798
|
-
const roleName = pickBy([/cargoNome/i, /roleName/i, /funcaoNome/i, /funçãoNome/i, /positionName/i], (n) => n !== primaryName) ||
|
|
5799
|
-
pickBy([/cargo/i, /role/i, /funcao/i, /função/i, /position/i], (n) => n !== primaryName && isReadableBusinessField(n));
|
|
5800
|
-
const departmentName = pickBy([/departamentoNome/i, /departmentName/i, /areaNome/i, /setorNome/i, /teamName/i], (n) => n !== primaryName) ||
|
|
5801
|
-
pickBy([/departamento/i, /department/i, /area/i, /setor/i, /team/i], (n) => n !== primaryName && isReadableBusinessField(n));
|
|
5802
|
-
const descriptionName = names.find((n) => n !== primaryName && /(desc|descricao|descrição|resumo|summary)/i.test(n));
|
|
5803
|
-
const secondaryFields = [phoneName, emailName].filter(Boolean);
|
|
5804
|
-
const fallbackSecondaryFields = [cpfName, emailName].filter(Boolean);
|
|
5805
|
-
const secondaryName = secondaryFields.length > 1
|
|
5806
|
-
? undefined
|
|
5807
|
-
: fallbackSecondaryFields.length > 1
|
|
5808
|
-
? undefined
|
|
5809
|
-
: roleName || departmentName || descriptionName || names.find((n) => n !== primaryName && isDisplayFallbackField(n));
|
|
5810
|
-
const trailingName = pickBy([
|
|
5811
|
-
/status/i,
|
|
5812
|
-
/situacao/i,
|
|
5813
|
-
/situação/i,
|
|
5814
|
-
/tag/i,
|
|
5815
|
-
/state/i,
|
|
5816
|
-
/^ativo$/i,
|
|
5817
|
-
/^active$/i,
|
|
5818
|
-
/enabled/i,
|
|
5819
|
-
]);
|
|
5820
|
-
const trailingIsBoolean = !!trailingName && /(^ativo$|^active$|enabled)/i.test(trailingName);
|
|
5821
|
-
const newCfg = produce(cfg, (draft) => {
|
|
5822
|
-
const t = { ...draft.templating };
|
|
5823
|
-
if (needsPrimary) {
|
|
5824
|
-
if (avatarName) {
|
|
5825
|
-
t.leading = {
|
|
5826
|
-
type: 'image',
|
|
5827
|
-
expr: '${item.' + avatarName + '}',
|
|
5828
|
-
imageAlt: 'Avatar',
|
|
5829
|
-
};
|
|
5830
|
-
}
|
|
5831
|
-
t.primary = makeText(primaryName);
|
|
5832
|
-
if (secondaryFields.length > 1) {
|
|
5833
|
-
t.secondary = makeCompose(secondaryFields);
|
|
5834
|
-
}
|
|
5835
|
-
else if (fallbackSecondaryFields.length > 1) {
|
|
5836
|
-
t.secondary = makeCompose(fallbackSecondaryFields);
|
|
5837
|
-
}
|
|
5838
|
-
else if (secondaryName) {
|
|
5839
|
-
t.secondary = makeText(secondaryName);
|
|
5840
|
-
}
|
|
5841
|
-
if (t.secondary) {
|
|
5842
|
-
draft.layout = draft.layout || {};
|
|
5843
|
-
const cur = Number(draft.layout.lines) || 1;
|
|
5844
|
-
draft.layout.lines = Math.max(cur, 2);
|
|
5845
|
-
}
|
|
5846
|
-
if (departmentName && departmentName !== secondaryName && !secondaryFields.includes(departmentName)) {
|
|
5847
|
-
t.meta = makeText(departmentName);
|
|
5848
|
-
}
|
|
5849
|
-
if (trailingName) {
|
|
5850
|
-
t.trailing = makeChip(trailingName, trailingIsBoolean ? '|bool:Ativo:Inativo' : '');
|
|
5851
|
-
t.chipLabelMap = {
|
|
5852
|
-
...(t.chipLabelMap || {}),
|
|
5853
|
-
true: 'Ativo',
|
|
5854
|
-
false: 'Inativo',
|
|
5855
|
-
ativo: 'Ativo',
|
|
5856
|
-
inativo: 'Inativo',
|
|
5857
|
-
active: 'Ativo',
|
|
5858
|
-
inactive: 'Inativo',
|
|
5859
|
-
};
|
|
5860
|
-
t.chipColorMap = {
|
|
5861
|
-
...(t.chipColorMap || {}),
|
|
5862
|
-
ativo: 'primary',
|
|
5863
|
-
active: 'primary',
|
|
5864
|
-
true: 'primary',
|
|
5865
|
-
inativo: 'warn',
|
|
5866
|
-
inactive: 'warn',
|
|
5867
|
-
false: 'warn',
|
|
5868
|
-
};
|
|
5869
|
-
}
|
|
5870
|
-
}
|
|
5871
|
-
if (usesIdentityRowSlot && !t.identity && t.primary) {
|
|
5872
|
-
const secondaryForIdentity = t.secondary ||
|
|
5873
|
-
(secondaryFields.length > 1
|
|
5874
|
-
? makeCompose(secondaryFields)
|
|
5875
|
-
: fallbackSecondaryFields.length > 1
|
|
5876
|
-
? makeCompose(fallbackSecondaryFields)
|
|
5877
|
-
: secondaryName
|
|
5878
|
-
? makeText(secondaryName)
|
|
5879
|
-
: undefined);
|
|
5880
|
-
t.identity = secondaryForIdentity
|
|
5881
|
-
? {
|
|
5882
|
-
type: 'compose',
|
|
5883
|
-
props: {
|
|
5884
|
-
compose: {
|
|
5885
|
-
direction: 'column',
|
|
5886
|
-
gap: '2px',
|
|
5887
|
-
items: [t.primary, secondaryForIdentity],
|
|
5888
|
-
},
|
|
5889
|
-
},
|
|
5890
|
-
}
|
|
5891
|
-
: t.primary;
|
|
5892
|
-
}
|
|
5893
|
-
draft.templating = t;
|
|
5894
|
-
});
|
|
5895
|
-
return newCfg;
|
|
5896
|
-
}
|
|
5897
|
-
function hasIdentityRowSlot(cfg) {
|
|
5898
|
-
const rowLayout = cfg?.layout?.rowLayout;
|
|
5899
|
-
if (!rowLayout || typeof rowLayout !== 'object')
|
|
5900
|
-
return false;
|
|
5901
|
-
return (Array.isArray(rowLayout.columns) &&
|
|
5902
|
-
rowLayout.columns.some((col) => col?.slot === 'identity'));
|
|
5903
|
-
}
|
|
5904
|
-
function makeText(field) {
|
|
5905
|
-
return { type: 'text', expr: '${item.' + field + '}' };
|
|
5906
|
-
}
|
|
5907
|
-
function makeChip(field, pipe = '') {
|
|
5908
|
-
return { type: 'chip', expr: '${item.' + field + '}' + pipe, variant: 'outlined' };
|
|
5909
|
-
}
|
|
5910
|
-
function makeCompose(fields) {
|
|
5911
|
-
return {
|
|
5912
|
-
type: 'compose',
|
|
5913
|
-
props: {
|
|
5914
|
-
compose: {
|
|
5915
|
-
direction: 'column',
|
|
5916
|
-
gap: '2px',
|
|
5917
|
-
items: fields.map((field) => makeText(field)),
|
|
5918
|
-
},
|
|
5919
|
-
},
|
|
5920
|
-
};
|
|
5921
|
-
}
|
|
5922
|
-
function isDisplayFallbackField(field) {
|
|
5923
|
-
return isReadableBusinessField(field) &&
|
|
5924
|
-
!/(idade|age|ativo|active|enabled|status|situacao|situação|state|tag|avatar|foto|photo|image|imagem|picture)/i.test(field);
|
|
5925
|
-
}
|
|
5926
|
-
function isReadableBusinessField(field) {
|
|
5927
|
-
return !/(^id$|Id$|ID$|_id$|-id$)/.test(field);
|
|
5928
|
-
}
|
|
5929
|
-
|
|
5930
6051
|
const LIST_RUNTIME_COMPONENT_IDS = [
|
|
5931
6052
|
'account-identity',
|
|
5932
6053
|
'alert-summary',
|
|
@@ -6059,13 +6180,22 @@ function projectListAuthoringDocument(doc, context) {
|
|
|
6059
6180
|
function inferListAuthoringDocument(doc, context) {
|
|
6060
6181
|
const normalized = normalizeListAuthoringDocument(doc);
|
|
6061
6182
|
const schemaFieldNames = context?.schemaFieldNames || [];
|
|
6183
|
+
const schemaFieldQuickViews = context?.schemaFieldQuickViews;
|
|
6062
6184
|
if (normalized.config.dataSource?.resourcePath &&
|
|
6063
6185
|
schemaFieldNames.length &&
|
|
6064
6186
|
shouldInferTemplatingFromSchema(normalized.config, schemaFieldNames)) {
|
|
6065
6187
|
const groundedConfig = removeUngroundedTemplatingSlots(normalized.config, schemaFieldNames);
|
|
6066
6188
|
return normalizeListAuthoringDocument({
|
|
6067
6189
|
...normalized,
|
|
6068
|
-
config: inferTemplatingFromSchema(groundedConfig, schemaFieldNames),
|
|
6190
|
+
config: inferTemplatingFromSchema(groundedConfig, schemaFieldNames, schemaFieldQuickViews),
|
|
6191
|
+
});
|
|
6192
|
+
}
|
|
6193
|
+
if (normalized.config.dataSource?.resourcePath &&
|
|
6194
|
+
schemaFieldQuickViews &&
|
|
6195
|
+
Object.keys(schemaFieldQuickViews).length > 0) {
|
|
6196
|
+
return normalizeListAuthoringDocument({
|
|
6197
|
+
...normalized,
|
|
6198
|
+
config: enrichTemplatingWithSchemaQuickViews(normalized.config, schemaFieldQuickViews),
|
|
6069
6199
|
});
|
|
6070
6200
|
}
|
|
6071
6201
|
return normalized;
|
|
@@ -6586,9 +6716,11 @@ function buildListApplyPlan(doc, runtime, options) {
|
|
|
6586
6716
|
});
|
|
6587
6717
|
const canonicalDocument = projectListAuthoringDocument(normalized, {
|
|
6588
6718
|
schemaFieldNames: runtime?.schemaFieldNames,
|
|
6719
|
+
schemaFieldQuickViews: runtime?.schemaFieldQuickViews,
|
|
6589
6720
|
});
|
|
6590
6721
|
const canonicalConfig = toCanonicalListConfig(canonicalDocument, {
|
|
6591
6722
|
schemaFieldNames: runtime?.schemaFieldNames,
|
|
6723
|
+
schemaFieldQuickViews: runtime?.schemaFieldQuickViews,
|
|
6592
6724
|
});
|
|
6593
6725
|
const diff = deriveConfigDiff(canonicalConfig, runtime?.currentConfig) || {};
|
|
6594
6726
|
const schemaInference = buildSchemaInferencePlan(normalized, canonicalDocument, diff, runtime);
|
|
@@ -7099,9 +7231,14 @@ function normalizeRichContentDocument(value) {
|
|
|
7099
7231
|
function normalizeTemplateDef(template) {
|
|
7100
7232
|
if (!template || typeof template !== 'object')
|
|
7101
7233
|
return undefined;
|
|
7234
|
+
const explicitDisabledQuickView = template.quickView &&
|
|
7235
|
+
typeof template.quickView === 'object' &&
|
|
7236
|
+
template.quickView.enabled === false;
|
|
7102
7237
|
return stripUndefinedDeep({
|
|
7103
7238
|
...template,
|
|
7104
|
-
quickView:
|
|
7239
|
+
quickView: explicitDisabledQuickView
|
|
7240
|
+
? { enabled: false }
|
|
7241
|
+
: normalizeResourceQuickViewBinding(template.quickView) || undefined,
|
|
7105
7242
|
expr: trimToUndefined(template.expr),
|
|
7106
7243
|
class: trimToUndefined(template.class),
|
|
7107
7244
|
style: trimToUndefined(template.style),
|
|
@@ -7221,8 +7358,14 @@ function normalizeTemplatingFeature(feature) {
|
|
|
7221
7358
|
const expr = trimToUndefined(feature.expr);
|
|
7222
7359
|
if (!expr)
|
|
7223
7360
|
return undefined;
|
|
7361
|
+
const explicitDisabledQuickView = feature.quickView &&
|
|
7362
|
+
typeof feature.quickView === 'object' &&
|
|
7363
|
+
feature.quickView.enabled === false;
|
|
7224
7364
|
return stripUndefinedDeep({
|
|
7225
7365
|
...feature,
|
|
7366
|
+
quickView: explicitDisabledQuickView
|
|
7367
|
+
? { enabled: false }
|
|
7368
|
+
: normalizeResourceQuickViewBinding(feature.quickView) || undefined,
|
|
7226
7369
|
icon: trimToUndefined(feature.icon),
|
|
7227
7370
|
expr,
|
|
7228
7371
|
class: trimToUndefined(feature.class),
|
|
@@ -9810,6 +9953,7 @@ class PraxisList {
|
|
|
9810
9953
|
inferredForPath = new Set();
|
|
9811
9954
|
schemaInferenceInFlight = new Set();
|
|
9812
9955
|
schemaFieldsByPath = new Map();
|
|
9956
|
+
schemaQuickViewsByPath = new Map();
|
|
9813
9957
|
appliedRuntimeConfig;
|
|
9814
9958
|
data = inject(ListDataService);
|
|
9815
9959
|
settings = inject(SettingsPanelService);
|
|
@@ -10565,12 +10709,26 @@ class PraxisList {
|
|
|
10565
10709
|
});
|
|
10566
10710
|
}
|
|
10567
10711
|
if (mode !== 'icons-only' && lines[0]) {
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10712
|
+
const effectiveFeature = this.withResolvedSchemaQuickView(feature);
|
|
10713
|
+
const featureQuickView = normalizeResourceQuickViewBinding(effectiveFeature?.quickView);
|
|
10714
|
+
if (featureQuickView) {
|
|
10715
|
+
nodes.push({
|
|
10716
|
+
type: 'recordReference',
|
|
10717
|
+
label: lines[0],
|
|
10718
|
+
quickView: featureQuickView,
|
|
10719
|
+
className: feature.class,
|
|
10720
|
+
style: this.parseInlineStyle(feature.style),
|
|
10721
|
+
sourceRecord: item,
|
|
10722
|
+
});
|
|
10723
|
+
}
|
|
10724
|
+
else {
|
|
10725
|
+
nodes.push({
|
|
10726
|
+
type: 'text',
|
|
10727
|
+
text: lines[0],
|
|
10728
|
+
className: feature.class,
|
|
10729
|
+
style: this.parseInlineStyle(feature.style),
|
|
10730
|
+
});
|
|
10731
|
+
}
|
|
10574
10732
|
}
|
|
10575
10733
|
if (!nodes.length) {
|
|
10576
10734
|
return null;
|
|
@@ -12347,6 +12505,9 @@ class PraxisList {
|
|
|
12347
12505
|
schemaFieldNames: resourcePath
|
|
12348
12506
|
? this.schemaFieldsByPath.get(resourcePath)
|
|
12349
12507
|
: undefined,
|
|
12508
|
+
schemaFieldQuickViews: resourcePath
|
|
12509
|
+
? this.schemaQuickViewsByPath.get(resourcePath)
|
|
12510
|
+
: undefined,
|
|
12350
12511
|
};
|
|
12351
12512
|
}
|
|
12352
12513
|
executeListEditorApplyPlan(plan, _doc, trigger) {
|
|
@@ -12456,8 +12617,12 @@ class PraxisList {
|
|
|
12456
12617
|
? 'settings-applied'
|
|
12457
12618
|
: 'schema-inference';
|
|
12458
12619
|
const cachedNames = this.schemaFieldsByPath.get(resourcePath);
|
|
12620
|
+
const cachedQuickViews = this.schemaQuickViewsByPath.get(resourcePath);
|
|
12459
12621
|
if (this.inferredForPath.has(resourcePath) && cachedNames?.length) {
|
|
12460
|
-
const inferredDocument = inferListAuthoringDocument(inferencePlan.sourceDocument, {
|
|
12622
|
+
const inferredDocument = inferListAuthoringDocument(inferencePlan.sourceDocument, {
|
|
12623
|
+
schemaFieldNames: cachedNames,
|
|
12624
|
+
schemaFieldQuickViews: cachedQuickViews,
|
|
12625
|
+
});
|
|
12461
12626
|
if (JSON.stringify(inferredDocument.config) !==
|
|
12462
12627
|
JSON.stringify(inferencePlan.sourceDocument.config)) {
|
|
12463
12628
|
this.applyAuthoringPayload(inferredDocument, inferenceTrigger);
|
|
@@ -12473,6 +12638,16 @@ class PraxisList {
|
|
|
12473
12638
|
.filter(Boolean);
|
|
12474
12639
|
if (!rawNames.length)
|
|
12475
12640
|
return false;
|
|
12641
|
+
const quickViews = {};
|
|
12642
|
+
for (const field of fields || []) {
|
|
12643
|
+
const fieldName = field?.name || field?.field || field?.key;
|
|
12644
|
+
if (!fieldName)
|
|
12645
|
+
continue;
|
|
12646
|
+
const resolvedQuickView = resolveFieldQuickViewBinding(field);
|
|
12647
|
+
if (resolvedQuickView) {
|
|
12648
|
+
quickViews[String(fieldName)] = resolvedQuickView;
|
|
12649
|
+
}
|
|
12650
|
+
}
|
|
12476
12651
|
const resourceMeta = this.crud?.getLastResourceMetadata?.();
|
|
12477
12652
|
const canonicalIdField = typeof resourceMeta?.identity?.keyField === 'string' &&
|
|
12478
12653
|
resourceMeta.identity.keyField.trim().length > 0
|
|
@@ -12486,8 +12661,15 @@ class PraxisList {
|
|
|
12486
12661
|
: rawNames;
|
|
12487
12662
|
this.inferredForPath.add(resourcePath);
|
|
12488
12663
|
this.schemaFieldsByPath.set(resourcePath, names);
|
|
12664
|
+
if (Object.keys(quickViews).length > 0) {
|
|
12665
|
+
this.schemaQuickViewsByPath.set(resourcePath, quickViews);
|
|
12666
|
+
}
|
|
12667
|
+
else {
|
|
12668
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12669
|
+
}
|
|
12489
12670
|
const inferredDocument = inferListAuthoringDocument(inferencePlan.sourceDocument, {
|
|
12490
12671
|
schemaFieldNames: names,
|
|
12672
|
+
schemaFieldQuickViews: Object.keys(quickViews).length > 0 ? quickViews : undefined,
|
|
12491
12673
|
});
|
|
12492
12674
|
this.applyAuthoringPayload(inferredDocument, inferenceTrigger);
|
|
12493
12675
|
return true;
|
|
@@ -12496,6 +12678,7 @@ class PraxisList {
|
|
|
12496
12678
|
if (!canDiscover || !this.resourceDiscovery) {
|
|
12497
12679
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
12498
12680
|
this.schemaFieldsByPath.delete(resourcePath);
|
|
12681
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12499
12682
|
return;
|
|
12500
12683
|
}
|
|
12501
12684
|
this.resourceDiscovery
|
|
@@ -12508,6 +12691,7 @@ class PraxisList {
|
|
|
12508
12691
|
error: () => {
|
|
12509
12692
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
12510
12693
|
this.schemaFieldsByPath.delete(resourcePath);
|
|
12694
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12511
12695
|
},
|
|
12512
12696
|
complete: () => {
|
|
12513
12697
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
@@ -12518,6 +12702,7 @@ class PraxisList {
|
|
|
12518
12702
|
if (!this.crud) {
|
|
12519
12703
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
12520
12704
|
this.schemaFieldsByPath.delete(resourcePath);
|
|
12705
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12521
12706
|
return;
|
|
12522
12707
|
}
|
|
12523
12708
|
try {
|
|
@@ -12530,6 +12715,7 @@ class PraxisList {
|
|
|
12530
12715
|
error: () => {
|
|
12531
12716
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
12532
12717
|
this.schemaFieldsByPath.delete(resourcePath);
|
|
12718
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12533
12719
|
},
|
|
12534
12720
|
complete: () => {
|
|
12535
12721
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
@@ -12539,6 +12725,7 @@ class PraxisList {
|
|
|
12539
12725
|
catch {
|
|
12540
12726
|
this.schemaInferenceInFlight.delete(resourcePath);
|
|
12541
12727
|
this.schemaFieldsByPath.delete(resourcePath);
|
|
12728
|
+
this.schemaQuickViewsByPath.delete(resourcePath);
|
|
12542
12729
|
}
|
|
12543
12730
|
};
|
|
12544
12731
|
const isCatalogResourceKey = !resourcePath.includes('/') && resourcePath.includes('.');
|
|
@@ -12676,36 +12863,57 @@ class PraxisList {
|
|
|
12676
12863
|
: value !== undefined && value !== null;
|
|
12677
12864
|
});
|
|
12678
12865
|
}
|
|
12866
|
+
currentSchemaFieldQuickViews() {
|
|
12867
|
+
const resourcePath = String(this.config?.dataSource?.resourcePath ||
|
|
12868
|
+
this.appliedRuntimeConfig?.dataSource?.resourcePath ||
|
|
12869
|
+
'').trim();
|
|
12870
|
+
if (!resourcePath)
|
|
12871
|
+
return undefined;
|
|
12872
|
+
return this.schemaQuickViewsByPath.get(resourcePath);
|
|
12873
|
+
}
|
|
12874
|
+
withResolvedSchemaQuickView(def) {
|
|
12875
|
+
if (!def || typeof def !== 'object')
|
|
12876
|
+
return def;
|
|
12877
|
+
if (def.quickView !== undefined ||
|
|
12878
|
+
def.type === 'compose' ||
|
|
12879
|
+
def.type === 'metric' ||
|
|
12880
|
+
def.type === 'component') {
|
|
12881
|
+
return def;
|
|
12882
|
+
}
|
|
12883
|
+
const schemaQuickView = resolveSchemaQuickViewForTemplateDef(def, this.currentSchemaFieldQuickViews());
|
|
12884
|
+
return schemaQuickView ? { ...def, quickView: schemaQuickView } : def;
|
|
12885
|
+
}
|
|
12679
12886
|
evaluateTemplateNode(def, item, insideCompose = false) {
|
|
12680
12887
|
if (!def)
|
|
12681
12888
|
return null;
|
|
12682
|
-
|
|
12683
|
-
|
|
12889
|
+
const effectiveDef = this.withResolvedSchemaQuickView(def) || def;
|
|
12890
|
+
if (effectiveDef.type === 'metric') {
|
|
12891
|
+
return this.buildMetricView(effectiveDef, item);
|
|
12684
12892
|
}
|
|
12685
|
-
if (
|
|
12686
|
-
return this.buildComposeView(
|
|
12893
|
+
if (effectiveDef.type === 'compose') {
|
|
12894
|
+
return this.buildComposeView(effectiveDef, item);
|
|
12687
12895
|
}
|
|
12688
|
-
if (
|
|
12689
|
-
return this.buildRuntimeComponentView(
|
|
12896
|
+
if (effectiveDef.type === 'component') {
|
|
12897
|
+
return this.buildRuntimeComponentView(effectiveDef, item);
|
|
12690
12898
|
}
|
|
12691
|
-
if (
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
return evaluateTemplate(
|
|
12899
|
+
if (effectiveDef.type === 'currency' ||
|
|
12900
|
+
effectiveDef.type === 'date' ||
|
|
12901
|
+
effectiveDef.type === 'datetime' ||
|
|
12902
|
+
effectiveDef.type === 'relative') {
|
|
12903
|
+
return evaluateTemplate(effectiveDef, item, this.templateEvaluatorOptions());
|
|
12696
12904
|
}
|
|
12697
|
-
if (
|
|
12698
|
-
const { baseExpr } = this.splitPipe(
|
|
12905
|
+
if (effectiveDef.type === 'rating') {
|
|
12906
|
+
const { baseExpr } = this.splitPipe(effectiveDef.expr || '');
|
|
12699
12907
|
const raw = Number(this.evalString(baseExpr, { item }));
|
|
12700
12908
|
return {
|
|
12701
|
-
type:
|
|
12909
|
+
type: effectiveDef.type,
|
|
12702
12910
|
value: isFinite(raw) ? String(raw) : '0',
|
|
12703
|
-
class:
|
|
12704
|
-
style:
|
|
12911
|
+
class: effectiveDef.class,
|
|
12912
|
+
style: effectiveDef.style,
|
|
12705
12913
|
};
|
|
12706
12914
|
}
|
|
12707
|
-
if (
|
|
12708
|
-
const { baseExpr, param } = this.splitPipe(
|
|
12915
|
+
if (effectiveDef.type === 'chip') {
|
|
12916
|
+
const { baseExpr, param } = this.splitPipe(effectiveDef.expr || '');
|
|
12709
12917
|
const rawValue = this.evalString(baseExpr, { item });
|
|
12710
12918
|
let value = rawValue;
|
|
12711
12919
|
if (param) {
|
|
@@ -12717,7 +12925,7 @@ class PraxisList {
|
|
|
12717
12925
|
}
|
|
12718
12926
|
}
|
|
12719
12927
|
// Optional color mapping from config.templating.chipColorMap
|
|
12720
|
-
let color =
|
|
12928
|
+
let color = effectiveDef.color;
|
|
12721
12929
|
try {
|
|
12722
12930
|
const map = this.config?.templating?.chipColorMap;
|
|
12723
12931
|
if (map) {
|
|
@@ -12750,19 +12958,19 @@ class PraxisList {
|
|
|
12750
12958
|
}
|
|
12751
12959
|
}
|
|
12752
12960
|
catch { }
|
|
12753
|
-
const chipQuickView = normalizeResourceQuickViewBinding(
|
|
12961
|
+
const chipQuickView = normalizeResourceQuickViewBinding(effectiveDef.quickView);
|
|
12754
12962
|
return {
|
|
12755
|
-
type:
|
|
12963
|
+
type: effectiveDef.type,
|
|
12756
12964
|
value,
|
|
12757
|
-
class:
|
|
12758
|
-
style:
|
|
12965
|
+
class: effectiveDef.class,
|
|
12966
|
+
style: effectiveDef.style,
|
|
12759
12967
|
color,
|
|
12760
|
-
variant:
|
|
12968
|
+
variant: effectiveDef.variant,
|
|
12761
12969
|
...(chipQuickView ? { quickView: chipQuickView, sourceRecord: item } : {}),
|
|
12762
12970
|
};
|
|
12763
12971
|
}
|
|
12764
|
-
if (
|
|
12765
|
-
const out = evaluateTemplate(
|
|
12972
|
+
if (effectiveDef.type === 'icon') {
|
|
12973
|
+
const out = evaluateTemplate(effectiveDef, item, this.templateEvaluatorOptions());
|
|
12766
12974
|
// Optional color mapping from config.templating.iconColorMap
|
|
12767
12975
|
try {
|
|
12768
12976
|
const map = this.config?.templating?.iconColorMap;
|
|
@@ -12779,7 +12987,7 @@ class PraxisList {
|
|
|
12779
12987
|
catch { }
|
|
12780
12988
|
return out;
|
|
12781
12989
|
}
|
|
12782
|
-
return evaluateTemplate(
|
|
12990
|
+
return evaluateTemplate(effectiveDef, item, this.templateEvaluatorOptions());
|
|
12783
12991
|
}
|
|
12784
12992
|
buildUnsupportedComposeNode(def) {
|
|
12785
12993
|
return {
|
|
@@ -13342,6 +13550,9 @@ class PraxisList {
|
|
|
13342
13550
|
return this.cloneTemplateDef(base);
|
|
13343
13551
|
const merged = this.cloneTemplateDef(base);
|
|
13344
13552
|
const overrideClone = this.cloneTemplateDef(override);
|
|
13553
|
+
const exprChanged = overrideClone.expr !== undefined && overrideClone.expr !== base.expr;
|
|
13554
|
+
const structuralTypeChanged = overrideClone.type !== undefined &&
|
|
13555
|
+
['compose', 'metric', 'component'].includes(overrideClone.type);
|
|
13345
13556
|
merged.type = overrideClone.type || merged.type;
|
|
13346
13557
|
merged.expr = overrideClone.expr ?? merged.expr;
|
|
13347
13558
|
merged.class = this.joinClasses(merged.class, overrideClone.class);
|
|
@@ -13350,7 +13561,12 @@ class PraxisList {
|
|
|
13350
13561
|
merged.variant = overrideClone.variant ?? merged.variant;
|
|
13351
13562
|
merged.imageAlt = overrideClone.imageAlt ?? merged.imageAlt;
|
|
13352
13563
|
merged.badge = overrideClone.badge ?? merged.badge;
|
|
13353
|
-
merged.quickView =
|
|
13564
|
+
merged.quickView =
|
|
13565
|
+
overrideClone.quickView !== undefined
|
|
13566
|
+
? overrideClone.quickView
|
|
13567
|
+
: exprChanged || structuralTypeChanged
|
|
13568
|
+
? undefined
|
|
13569
|
+
: merged.quickView;
|
|
13354
13570
|
merged.props = this.mergePlainObjects(merged.props, overrideClone.props);
|
|
13355
13571
|
return merged;
|
|
13356
13572
|
}
|
|
@@ -21130,4 +21346,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21130
21346
|
* Generated bundle index. Do not edit.
|
|
21131
21347
|
*/
|
|
21132
21348
|
|
|
21133
|
-
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 };
|
|
21349
|
+
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, enrichTemplatingWithSchemaQuickViews, evalExpr, evaluateTemplate, formatRelativeTime, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, resolveSchemaQuickViewForTemplateDef, safeFormatDate, safeFormatDateTime, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
|
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.44",
|
|
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.44",
|
|
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.44",
|
|
15
|
+
"@praxisui/core": "^10.0.0-rc.44",
|
|
16
|
+
"@praxisui/rich-content": "^10.0.0-rc.44",
|
|
17
|
+
"@praxisui/settings-panel": "^10.0.0-rc.44"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
package/types/praxisui-list.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ interface ListFeatureDef {
|
|
|
88
88
|
expr: string;
|
|
89
89
|
class?: string;
|
|
90
90
|
style?: string;
|
|
91
|
+
quickView?: ResourceQuickViewBinding;
|
|
91
92
|
}
|
|
92
93
|
interface TemplateFeatureDef extends TemplateDef {
|
|
93
94
|
icon?: string;
|
|
@@ -589,6 +590,7 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
589
590
|
private inferredForPath;
|
|
590
591
|
private schemaInferenceInFlight;
|
|
591
592
|
private readonly schemaFieldsByPath;
|
|
593
|
+
private readonly schemaQuickViewsByPath;
|
|
592
594
|
private appliedRuntimeConfig?;
|
|
593
595
|
private readonly data;
|
|
594
596
|
private readonly settings;
|
|
@@ -700,6 +702,7 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
700
702
|
expr?: string;
|
|
701
703
|
class?: string;
|
|
702
704
|
style?: string;
|
|
705
|
+
quickView?: ResourceQuickViewBinding;
|
|
703
706
|
} | null | undefined): RichBlockNode[] | null;
|
|
704
707
|
featureSemanticClass(item: any, expr?: string, featureClass?: string): string | null;
|
|
705
708
|
featureProgressPercent(item: any, expr?: string, featureClass?: string): number | null;
|
|
@@ -864,6 +867,8 @@ declare class PraxisList implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|
|
864
867
|
private resolveLocalDataFallbackTemplate;
|
|
865
868
|
private isLocalDataPreviewItem;
|
|
866
869
|
private firstPresentItemKey;
|
|
870
|
+
private currentSchemaFieldQuickViews;
|
|
871
|
+
private withResolvedSchemaQuickView;
|
|
867
872
|
private evaluateTemplateNode;
|
|
868
873
|
private buildUnsupportedComposeNode;
|
|
869
874
|
private buildRuntimeComponentView;
|
|
@@ -1161,6 +1166,7 @@ interface ListValidationContext {
|
|
|
1161
1166
|
}
|
|
1162
1167
|
interface ListProjectionContext {
|
|
1163
1168
|
schemaFieldNames?: string[];
|
|
1169
|
+
schemaFieldQuickViews?: Record<string, ResourceQuickViewBinding>;
|
|
1164
1170
|
}
|
|
1165
1171
|
interface ListSchemaInferencePlan {
|
|
1166
1172
|
resourcePath: string;
|
|
@@ -1170,6 +1176,7 @@ interface ListSchemaInferencePlan {
|
|
|
1170
1176
|
interface ListRuntimeContext {
|
|
1171
1177
|
currentConfig?: PraxisListConfig;
|
|
1172
1178
|
schemaFieldNames?: string[];
|
|
1179
|
+
schemaFieldQuickViews?: Record<string, ResourceQuickViewBinding>;
|
|
1173
1180
|
}
|
|
1174
1181
|
interface ListApplyPlan {
|
|
1175
1182
|
canonicalConfig: PraxisListConfig;
|
|
@@ -1973,7 +1980,9 @@ declare function serializeListAuthoringDocument(doc: ListAuthoringDocument): unk
|
|
|
1973
1980
|
* - Does not override existing primary if already defined.
|
|
1974
1981
|
* - Heuristics prioritize common corporate/person records without creating a domain-specific preset.
|
|
1975
1982
|
*/
|
|
1976
|
-
declare function inferTemplatingFromSchema(cfg: PraxisListConfig, fieldNames: string[]): PraxisListConfig;
|
|
1983
|
+
declare function inferTemplatingFromSchema(cfg: PraxisListConfig, fieldNames: string[], fieldQuickViews?: Record<string, ResourceQuickViewBinding>): PraxisListConfig;
|
|
1984
|
+
declare function enrichTemplatingWithSchemaQuickViews(cfg: PraxisListConfig, fieldQuickViews?: Record<string, ResourceQuickViewBinding>): PraxisListConfig;
|
|
1985
|
+
declare function resolveSchemaQuickViewForTemplateDef(def: TemplateDef | undefined, fieldQuickViews?: Record<string, ResourceQuickViewBinding>): ResourceQuickViewBinding | undefined;
|
|
1977
1986
|
|
|
1978
1987
|
declare class ListSkinService {
|
|
1979
1988
|
toHostClasses(config?: PraxisListConfig): string[];
|
|
@@ -3178,5 +3187,5 @@ declare const PRAXIS_LIST_PT_BR: {
|
|
|
3178
3187
|
readonly 'Advanced row CSS': "CSS avançado da linha";
|
|
3179
3188
|
};
|
|
3180
3189
|
|
|
3181
|
-
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 };
|
|
3190
|
+
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, enrichTemplatingWithSchemaQuickViews, evalExpr, evaluateTemplate, formatRelativeTime, inferListAuthoringDocument, inferTemplatingFromSchema, isListTemplateSupportedByRichContentP0, mapListTemplateToRichContentP0, normalizeListActionPayloads, normalizeListAuthoringDocument, normalizeListConfig, parseLegacyOrListDocument, projectListAuthoringDocument, providePraxisListI18n, providePraxisListMetadata, resolveSchemaQuickViewForTemplateDef, safeFormatDate, safeFormatDateTime, serializeListAuthoringDocument, toCanonicalListConfig, validateListAuthoringDocument };
|
|
3182
3191
|
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 };
|