@solcre-org/core-ui 2.12.6 → 2.12.7
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.
|
@@ -6625,12 +6625,47 @@ class DropdownComponent {
|
|
|
6625
6625
|
};
|
|
6626
6626
|
}
|
|
6627
6627
|
getCustomActionButtonConfig(customAction) {
|
|
6628
|
-
|
|
6628
|
+
let context;
|
|
6629
|
+
let cleanClass = customAction.class || 'c-link--secondary';
|
|
6630
|
+
if (customAction.class) {
|
|
6631
|
+
if (customAction.class.includes('context:error')) {
|
|
6632
|
+
context = ButtonContext.ERROR;
|
|
6633
|
+
cleanClass = customAction.class.replace('context:error', '').replace(/\s+/g, ' ').trim();
|
|
6634
|
+
}
|
|
6635
|
+
else if (customAction.class.includes('context:success')) {
|
|
6636
|
+
context = ButtonContext.SUCCESS;
|
|
6637
|
+
cleanClass = customAction.class.replace('context:success', '').replace(/\s+/g, ' ').trim();
|
|
6638
|
+
}
|
|
6639
|
+
else if (customAction.class.includes('context:default')) {
|
|
6640
|
+
context = ButtonContext.DEFAULT;
|
|
6641
|
+
cleanClass = customAction.class.replace('context:default', '').replace(/\s+/g, ' ').trim();
|
|
6642
|
+
}
|
|
6643
|
+
if (!cleanClass || cleanClass === '') {
|
|
6644
|
+
cleanClass = 'c-link--secondary';
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
const baseButtonConfig = {
|
|
6629
6648
|
type: ButtonType.LINK,
|
|
6630
|
-
text: customAction.label,
|
|
6649
|
+
text: customAction.label || customAction.title,
|
|
6631
6650
|
icon: customAction.icon,
|
|
6632
|
-
customClass:
|
|
6651
|
+
customClass: cleanClass,
|
|
6652
|
+
tooltip: customAction.tooltip,
|
|
6653
|
+
context: context
|
|
6633
6654
|
};
|
|
6655
|
+
if (customAction.tooltip && customAction.tooltipPosition) {
|
|
6656
|
+
baseButtonConfig.tooltipConfig = {
|
|
6657
|
+
hasTooltip: true,
|
|
6658
|
+
text: customAction.tooltip,
|
|
6659
|
+
position: customAction.tooltipPosition
|
|
6660
|
+
};
|
|
6661
|
+
}
|
|
6662
|
+
if (customAction.buttonConfig) {
|
|
6663
|
+
return {
|
|
6664
|
+
...baseButtonConfig,
|
|
6665
|
+
...customAction.buttonConfig
|
|
6666
|
+
};
|
|
6667
|
+
}
|
|
6668
|
+
return baseButtonConfig;
|
|
6634
6669
|
}
|
|
6635
6670
|
getCustomActionButtonConfigForRow(customAction) {
|
|
6636
6671
|
const baseConfig = this.getCustomActionButtonConfig(customAction);
|
|
@@ -11158,11 +11193,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
11158
11193
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
11159
11194
|
// No edites manualmente este archivo
|
|
11160
11195
|
const VERSION = {
|
|
11161
|
-
full: '2.12.
|
|
11196
|
+
full: '2.12.7',
|
|
11162
11197
|
major: 2,
|
|
11163
11198
|
minor: 12,
|
|
11164
|
-
patch:
|
|
11165
|
-
timestamp: '2025-09-
|
|
11199
|
+
patch: 7,
|
|
11200
|
+
timestamp: '2025-09-03T18:01:25.906Z',
|
|
11166
11201
|
buildDate: '3/9/2025'
|
|
11167
11202
|
};
|
|
11168
11203
|
|