@solcre-org/core-ui 2.20.24 → 2.20.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.c-entry-input--native-select{
|
|
9
9
|
position: relative;
|
|
10
|
+
min-width: 0;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
/* ---- Single value ---- */
|
|
46
47
|
|
|
47
48
|
.c-native-select__single-value{
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 0;
|
|
48
51
|
white-space: nowrap;
|
|
49
52
|
overflow: hidden;
|
|
50
53
|
text-overflow: ellipsis;
|
|
@@ -55,6 +58,8 @@
|
|
|
55
58
|
/* ---- Placeholder ---- */
|
|
56
59
|
|
|
57
60
|
.c-native-select__placeholder{
|
|
61
|
+
flex: 1;
|
|
62
|
+
min-width: 0;
|
|
58
63
|
color: var(--_entry-input-placeholder-color);
|
|
59
64
|
white-space: nowrap;
|
|
60
65
|
overflow: hidden;
|
|
@@ -17674,12 +17674,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
17674
17674
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
17675
17675
|
// No edites manualmente este archivo
|
|
17676
17676
|
const VERSION = {
|
|
17677
|
-
full: '2.20.
|
|
17677
|
+
full: '2.20.26',
|
|
17678
17678
|
major: 2,
|
|
17679
17679
|
minor: 20,
|
|
17680
|
-
patch:
|
|
17681
|
-
timestamp: '2026-02-
|
|
17682
|
-
buildDate: '
|
|
17680
|
+
patch: 26,
|
|
17681
|
+
timestamp: '2026-02-25T13:49:44.166Z',
|
|
17682
|
+
buildDate: '25/2/2026'
|
|
17683
17683
|
};
|
|
17684
17684
|
|
|
17685
17685
|
class MainNavComponent {
|
|
@@ -22796,12 +22796,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
22796
22796
|
|
|
22797
22797
|
class TreeService {
|
|
22798
22798
|
setExpandedState(nodes, expanded) {
|
|
22799
|
-
|
|
22799
|
+
return nodes.map(node => {
|
|
22800
22800
|
if (node.children && node.children.length > 0) {
|
|
22801
|
-
|
|
22802
|
-
|
|
22801
|
+
return {
|
|
22802
|
+
...node,
|
|
22803
|
+
isExpanded: expanded,
|
|
22804
|
+
children: this.setExpandedState(node.children, expanded)
|
|
22805
|
+
};
|
|
22803
22806
|
}
|
|
22804
|
-
|
|
22807
|
+
return node;
|
|
22808
|
+
});
|
|
22805
22809
|
}
|
|
22806
22810
|
findNodeById(nodes, id) {
|
|
22807
22811
|
for (const node of nodes) {
|
|
@@ -23100,6 +23104,22 @@ class GenericTreeComponent {
|
|
|
23100
23104
|
nodesChanged = output();
|
|
23101
23105
|
isAllExpanded = signal(false);
|
|
23102
23106
|
draggedNodeId = signal(null);
|
|
23107
|
+
_expansionInitialized = signal(false);
|
|
23108
|
+
constructor() {
|
|
23109
|
+
effect(() => {
|
|
23110
|
+
const currentNodes = this.nodes();
|
|
23111
|
+
const expandByDefault = this.mergedConfig().expandAllByDefault;
|
|
23112
|
+
if (currentNodes.length > 0 && expandByDefault && !untracked(() => this._expansionInitialized())) {
|
|
23113
|
+
this._expansionInitialized.set(true);
|
|
23114
|
+
const updated = untracked(() => this.treeService.setExpandedState(currentNodes, true));
|
|
23115
|
+
this.isAllExpanded.set(true);
|
|
23116
|
+
queueMicrotask(() => this.nodesChanged.emit(updated));
|
|
23117
|
+
}
|
|
23118
|
+
if (currentNodes.length === 0) {
|
|
23119
|
+
untracked(() => this._expansionInitialized.set(false));
|
|
23120
|
+
}
|
|
23121
|
+
});
|
|
23122
|
+
}
|
|
23103
23123
|
mergedConfig = computed(() => {
|
|
23104
23124
|
const defaults = {
|
|
23105
23125
|
enableDragDrop: false,
|
|
@@ -23134,16 +23154,19 @@ class GenericTreeComponent {
|
|
|
23134
23154
|
});
|
|
23135
23155
|
toggleExpandAll() {
|
|
23136
23156
|
const newState = !this.isAllExpanded();
|
|
23137
|
-
this.treeService.setExpandedState(this.nodes(), newState);
|
|
23157
|
+
const updated = this.treeService.setExpandedState(this.nodes(), newState);
|
|
23138
23158
|
this.isAllExpanded.set(newState);
|
|
23159
|
+
this.nodesChanged.emit(updated);
|
|
23139
23160
|
}
|
|
23140
23161
|
expandAll() {
|
|
23141
|
-
this.treeService.setExpandedState(this.nodes(), true);
|
|
23162
|
+
const updated = this.treeService.setExpandedState(this.nodes(), true);
|
|
23142
23163
|
this.isAllExpanded.set(true);
|
|
23164
|
+
this.nodesChanged.emit(updated);
|
|
23143
23165
|
}
|
|
23144
23166
|
collapseAll() {
|
|
23145
|
-
this.treeService.setExpandedState(this.nodes(), false);
|
|
23167
|
+
const updated = this.treeService.setExpandedState(this.nodes(), false);
|
|
23146
23168
|
this.isAllExpanded.set(false);
|
|
23169
|
+
this.nodesChanged.emit(updated);
|
|
23147
23170
|
}
|
|
23148
23171
|
onNodeToggled(node) {
|
|
23149
23172
|
this.nodeToggled.emit(node);
|
|
@@ -23198,7 +23221,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
23198
23221
|
TranslateModule,
|
|
23199
23222
|
TreeNodeComponent
|
|
23200
23223
|
], hostDirectives: [CoreHostDirective], template: "<div class=\"c-tree-container\" [class]=\"customClass()\">\n @if (hasNodes()) {\n <ul [class]=\"treeClasses()\">\n @for (node of nodes(); track trackByNodeId($index, node)) {\n <core-tree-node\n [node]=\"node\"\n [level]=\"0\"\n [config]=\"mergedConfig()\"\n [nodeTemplate]=\"effectiveNodeTemplate()\"\n (nodeToggled)=\"onNodeToggled($event)\"\n (nodeClicked)=\"onNodeClicked($event)\"\n (actionTriggered)=\"onActionTriggered($event)\"\n (nodeDragStart)=\"onDragStart($event)\"\n (nodeDragOver)=\"($event)\"\n (nodeDrop)=\"onNodeDrop($event)\"\n (nodeDragEnd)=\"onDragEnd()\"\n />\n }\n </ul>\n } @else {\n <div class=\"c-tree-empty\">\n <span class=\"{{ mergedConfig().emptyIcon }} c-tree-empty__icon\"></span>\n <p class=\"c-tree-empty__text\">\n {{ mergedConfig().emptyMessage! | translate }}\n </p>\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{display:block}.c-tree-container{background:var(--color-white, #fff);border-radius:var(--app-br, .5rem);border:1px solid var(--color-neutral-200, #e5e7eb);overflow:hidden}.c-tree{list-style:none;padding:0;margin:0}.c-tree-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 1rem;text-align:center}.c-tree-empty__icon{font-size:3rem;color:var(--color-neutral-400, #9ca3af);margin-bottom:1rem;opacity:.6}.c-tree-empty__text{margin:0;font-size:.875rem;color:var(--color-neutral-500, #6b7280)}\n"] }]
|
|
23201
|
-
}], propDecorators: { customNodeTemplate: [{
|
|
23224
|
+
}], ctorParameters: () => [], propDecorators: { customNodeTemplate: [{
|
|
23202
23225
|
type: ContentChild,
|
|
23203
23226
|
args: ['nodeTemplate']
|
|
23204
23227
|
}] } });
|