@prolibu-suite/cobalt-core 0.11.8 → 0.11.9
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/custom-elements.json +31 -31
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +29 -8
- package/dist/cjs/index-bHoidDwv.js +4 -4
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-438cc876.entry.js +1 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-color-area/co-color-area.js +2 -2
- package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
- package/dist/collection/components/co-combobox/co-combobox.js +1 -1
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-document-editor/co-document-editor.js +5 -5
- package/dist/collection/components/co-popover/co-popover.js +1 -1
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-ref-field/co-ref-field.js +4 -4
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.js +1 -1
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +6 -190
- package/dist/collection/components/co-sidebar-nav/sidebar-icon-map.js +205 -0
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/esm/co-sidebar-nav.entry.js +29 -8
- package/dist/esm/index-DJkaRtbb.js +4 -4
- package/dist/types/components/co-sidebar-nav/sidebar-icon-map.d.ts +6 -0
- package/package.json +3 -3
- package/dist/cobalt/p-99781b0b.entry.js +0 -1
package/custom-elements.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-10-
|
|
2
|
+
"timestamp": "2026-10-01T19:23:24",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.43.4",
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
"references": {
|
|
1435
1435
|
"AutocompleteOption": {
|
|
1436
1436
|
"location": "local",
|
|
1437
|
-
"path": "/Users/agox/
|
|
1437
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-autocomplete/co-autocomplete.tsx",
|
|
1438
1438
|
"id": "src/components/co-autocomplete/co-autocomplete.tsx::AutocompleteOption"
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
@@ -2270,7 +2270,7 @@
|
|
|
2270
2270
|
"references": {
|
|
2271
2271
|
"CoAvatarGroupItem": {
|
|
2272
2272
|
"location": "local",
|
|
2273
|
-
"path": "/Users/agox/
|
|
2273
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
|
|
2274
2274
|
"id": "src/components/co-avatar-group/co-avatar-group.tsx::CoAvatarGroupItem"
|
|
2275
2275
|
}
|
|
2276
2276
|
}
|
|
@@ -7076,7 +7076,7 @@
|
|
|
7076
7076
|
"references": {
|
|
7077
7077
|
"CheckboxOption": {
|
|
7078
7078
|
"location": "local",
|
|
7079
|
-
"path": "/Users/agox/
|
|
7079
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-checkbox-group/co-checkbox-group.tsx",
|
|
7080
7080
|
"id": "src/components/co-checkbox-group/co-checkbox-group.tsx::CheckboxOption"
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
@@ -8196,7 +8196,7 @@
|
|
|
8196
8196
|
"references": {
|
|
8197
8197
|
"ColorAreaDetail": {
|
|
8198
8198
|
"location": "local",
|
|
8199
|
-
"path": "/Users/agox/
|
|
8199
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
8200
8200
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
8201
8201
|
}
|
|
8202
8202
|
}
|
|
@@ -8216,7 +8216,7 @@
|
|
|
8216
8216
|
"references": {
|
|
8217
8217
|
"ColorAreaDetail": {
|
|
8218
8218
|
"location": "local",
|
|
8219
|
-
"path": "/Users/agox/
|
|
8219
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
8220
8220
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
8221
8221
|
}
|
|
8222
8222
|
}
|
|
@@ -8751,7 +8751,7 @@
|
|
|
8751
8751
|
"references": {
|
|
8752
8752
|
"ColorSliderChannel": {
|
|
8753
8753
|
"location": "local",
|
|
8754
|
-
"path": "/Users/agox/
|
|
8754
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-color-slider/co-color-slider.tsx",
|
|
8755
8755
|
"id": "src/components/co-color-slider/co-color-slider.tsx::ColorSliderChannel"
|
|
8756
8756
|
}
|
|
8757
8757
|
}
|
|
@@ -9971,7 +9971,7 @@
|
|
|
9971
9971
|
"references": {
|
|
9972
9972
|
"ComboboxOption": {
|
|
9973
9973
|
"location": "local",
|
|
9974
|
-
"path": "/Users/agox/
|
|
9974
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-combobox/co-combobox.tsx",
|
|
9975
9975
|
"id": "src/components/co-combobox/co-combobox.tsx::ComboboxOption"
|
|
9976
9976
|
}
|
|
9977
9977
|
}
|
|
@@ -10680,7 +10680,7 @@
|
|
|
10680
10680
|
"references": {
|
|
10681
10681
|
"CommandItem": {
|
|
10682
10682
|
"location": "local",
|
|
10683
|
-
"path": "/Users/agox/
|
|
10683
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-command-search/co-command-search.tsx",
|
|
10684
10684
|
"id": "src/components/co-command-search/co-command-search.tsx::CommandItem"
|
|
10685
10685
|
}
|
|
10686
10686
|
}
|
|
@@ -11072,7 +11072,7 @@
|
|
|
11072
11072
|
"references": {
|
|
11073
11073
|
"CoDataTableColumn": {
|
|
11074
11074
|
"location": "local",
|
|
11075
|
-
"path": "/Users/agox/
|
|
11075
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-data-table/co-data-table.tsx",
|
|
11076
11076
|
"id": "src/components/co-data-table/co-data-table.tsx::CoDataTableColumn"
|
|
11077
11077
|
}
|
|
11078
11078
|
}
|
|
@@ -15242,7 +15242,7 @@
|
|
|
15242
15242
|
"references": {
|
|
15243
15243
|
"DateRangeValue": {
|
|
15244
15244
|
"location": "local",
|
|
15245
|
-
"path": "/Users/agox/
|
|
15245
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
15246
15246
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
15247
15247
|
}
|
|
15248
15248
|
}
|
|
@@ -15318,7 +15318,7 @@
|
|
|
15318
15318
|
"references": {
|
|
15319
15319
|
"DateRangeValue": {
|
|
15320
15320
|
"location": "local",
|
|
15321
|
-
"path": "/Users/agox/
|
|
15321
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-date-range-picker/co-date-range-picker.tsx",
|
|
15322
15322
|
"id": "src/components/co-date-range-picker/co-date-range-picker.tsx::DateRangeValue"
|
|
15323
15323
|
}
|
|
15324
15324
|
}
|
|
@@ -16532,7 +16532,7 @@
|
|
|
16532
16532
|
"references": {
|
|
16533
16533
|
"DocumentFeatures": {
|
|
16534
16534
|
"location": "local",
|
|
16535
|
-
"path": "/Users/agox/
|
|
16535
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
16536
16536
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentFeatures"
|
|
16537
16537
|
}
|
|
16538
16538
|
}
|
|
@@ -16715,7 +16715,7 @@
|
|
|
16715
16715
|
"references": {
|
|
16716
16716
|
"DocumentMargins": {
|
|
16717
16717
|
"location": "local",
|
|
16718
|
-
"path": "/Users/agox/
|
|
16718
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
16719
16719
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentMargins"
|
|
16720
16720
|
}
|
|
16721
16721
|
}
|
|
@@ -16750,7 +16750,7 @@
|
|
|
16750
16750
|
"references": {
|
|
16751
16751
|
"DocumentPageSize": {
|
|
16752
16752
|
"location": "local",
|
|
16753
|
-
"path": "/Users/agox/
|
|
16753
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
16754
16754
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentPageSize"
|
|
16755
16755
|
}
|
|
16756
16756
|
}
|
|
@@ -17227,7 +17227,7 @@
|
|
|
17227
17227
|
"references": {
|
|
17228
17228
|
"DocumentActionDetail": {
|
|
17229
17229
|
"location": "local",
|
|
17230
|
-
"path": "/Users/agox/
|
|
17230
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
17231
17231
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentActionDetail"
|
|
17232
17232
|
}
|
|
17233
17233
|
}
|
|
@@ -17282,7 +17282,7 @@
|
|
|
17282
17282
|
"references": {
|
|
17283
17283
|
"DocumentHeaderDetail": {
|
|
17284
17284
|
"location": "local",
|
|
17285
|
-
"path": "/Users/agox/
|
|
17285
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-document-editor/co-document-editor.tsx",
|
|
17286
17286
|
"id": "src/components/co-document-editor/co-document-editor.tsx::DocumentHeaderDetail"
|
|
17287
17287
|
}
|
|
17288
17288
|
}
|
|
@@ -30556,7 +30556,7 @@
|
|
|
30556
30556
|
"references": {
|
|
30557
30557
|
"PopoverPlacement": {
|
|
30558
30558
|
"location": "local",
|
|
30559
|
-
"path": "/Users/agox/
|
|
30559
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-popover/co-popover.tsx",
|
|
30560
30560
|
"id": "src/components/co-popover/co-popover.tsx::PopoverPlacement"
|
|
30561
30561
|
}
|
|
30562
30562
|
}
|
|
@@ -31753,7 +31753,7 @@
|
|
|
31753
31753
|
"references": {
|
|
31754
31754
|
"RadioOption": {
|
|
31755
31755
|
"location": "local",
|
|
31756
|
-
"path": "/Users/agox/
|
|
31756
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-radio-group/co-radio-group.tsx",
|
|
31757
31757
|
"id": "src/components/co-radio-group/co-radio-group.tsx::RadioOption"
|
|
31758
31758
|
}
|
|
31759
31759
|
}
|
|
@@ -33554,7 +33554,7 @@
|
|
|
33554
33554
|
},
|
|
33555
33555
|
"RefFieldOption": {
|
|
33556
33556
|
"location": "local",
|
|
33557
|
-
"path": "/Users/agox/
|
|
33557
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
33558
33558
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
33559
33559
|
}
|
|
33560
33560
|
},
|
|
@@ -33583,7 +33583,7 @@
|
|
|
33583
33583
|
"references": {
|
|
33584
33584
|
"RefFieldOption": {
|
|
33585
33585
|
"location": "local",
|
|
33586
|
-
"path": "/Users/agox/
|
|
33586
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
33587
33587
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
33588
33588
|
}
|
|
33589
33589
|
}
|
|
@@ -33673,7 +33673,7 @@
|
|
|
33673
33673
|
"references": {
|
|
33674
33674
|
"RefFieldOption": {
|
|
33675
33675
|
"location": "local",
|
|
33676
|
-
"path": "/Users/agox/
|
|
33676
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
33677
33677
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
33678
33678
|
}
|
|
33679
33679
|
}
|
|
@@ -33721,7 +33721,7 @@
|
|
|
33721
33721
|
"references": {
|
|
33722
33722
|
"RefFieldOption": {
|
|
33723
33723
|
"location": "local",
|
|
33724
|
-
"path": "/Users/agox/
|
|
33724
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
33725
33725
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
33726
33726
|
}
|
|
33727
33727
|
}
|
|
@@ -36054,7 +36054,7 @@
|
|
|
36054
36054
|
"references": {
|
|
36055
36055
|
"CoSegment": {
|
|
36056
36056
|
"location": "local",
|
|
36057
|
-
"path": "/Users/agox/
|
|
36057
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-segmented-bar/co-segmented-bar.tsx",
|
|
36058
36058
|
"id": "src/components/co-segmented-bar/co-segmented-bar.tsx::CoSegment"
|
|
36059
36059
|
}
|
|
36060
36060
|
}
|
|
@@ -36594,7 +36594,7 @@
|
|
|
36594
36594
|
"references": {
|
|
36595
36595
|
"SelectOption": {
|
|
36596
36596
|
"location": "local",
|
|
36597
|
-
"path": "/Users/agox/
|
|
36597
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-select/co-select.tsx",
|
|
36598
36598
|
"id": "src/components/co-select/co-select.tsx::SelectOption"
|
|
36599
36599
|
}
|
|
36600
36600
|
}
|
|
@@ -37668,7 +37668,7 @@
|
|
|
37668
37668
|
"references": {
|
|
37669
37669
|
"NavigateDetail": {
|
|
37670
37670
|
"location": "local",
|
|
37671
|
-
"path": "/Users/agox/
|
|
37671
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-sidebar-nav/co-sidebar-nav.tsx",
|
|
37672
37672
|
"id": "src/components/co-sidebar-nav/co-sidebar-nav.tsx::NavigateDetail"
|
|
37673
37673
|
}
|
|
37674
37674
|
}
|
|
@@ -41210,7 +41210,7 @@
|
|
|
41210
41210
|
"references": {
|
|
41211
41211
|
"CoToastActionsLayout": {
|
|
41212
41212
|
"location": "local",
|
|
41213
|
-
"path": "/Users/agox/
|
|
41213
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-toast/co-toast.tsx",
|
|
41214
41214
|
"id": "src/components/co-toast/co-toast.tsx::CoToastActionsLayout"
|
|
41215
41215
|
}
|
|
41216
41216
|
}
|
|
@@ -41386,7 +41386,7 @@
|
|
|
41386
41386
|
"references": {
|
|
41387
41387
|
"CoToastVariant": {
|
|
41388
41388
|
"location": "local",
|
|
41389
|
-
"path": "/Users/agox/
|
|
41389
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-toast/co-toast.tsx",
|
|
41390
41390
|
"id": "src/components/co-toast/co-toast.tsx::CoToastVariant"
|
|
41391
41391
|
}
|
|
41392
41392
|
}
|
|
@@ -42808,7 +42808,7 @@
|
|
|
42808
42808
|
"references": {
|
|
42809
42809
|
"TransferOption": {
|
|
42810
42810
|
"location": "local",
|
|
42811
|
-
"path": "/Users/agox/
|
|
42811
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-transfer-list/co-transfer-list.tsx",
|
|
42812
42812
|
"id": "src/components/co-transfer-list/co-transfer-list.tsx::TransferOption"
|
|
42813
42813
|
}
|
|
42814
42814
|
}
|
|
@@ -43238,7 +43238,7 @@
|
|
|
43238
43238
|
"references": {
|
|
43239
43239
|
"TreeItemSelection": {
|
|
43240
43240
|
"location": "local",
|
|
43241
|
-
"path": "/Users/agox/
|
|
43241
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-tree-item/co-tree-item.tsx",
|
|
43242
43242
|
"id": "src/components/co-tree-item/co-tree-item.tsx::TreeItemSelection"
|
|
43243
43243
|
}
|
|
43244
43244
|
}
|
|
@@ -43282,7 +43282,7 @@
|
|
|
43282
43282
|
"references": {
|
|
43283
43283
|
"TreeItemSize": {
|
|
43284
43284
|
"location": "local",
|
|
43285
|
-
"path": "/Users/agox/
|
|
43285
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-tree-item/co-tree-item.tsx",
|
|
43286
43286
|
"id": "src/components/co-tree-item/co-tree-item.tsx::TreeItemSize"
|
|
43287
43287
|
}
|
|
43288
43288
|
}
|
|
@@ -3,17 +3,21 @@
|
|
|
3
3
|
var index = require('./index-bHoidDwv.js');
|
|
4
4
|
var normalizeText = require('./normalizeText-D9rlJWZa.js');
|
|
5
5
|
|
|
6
|
-
const coSidebarNavCss = () => `@property --co-sidebar-fade-top{syntax:"<length>";inherits:false;initial-value:0px}@property --co-sidebar-fade-bottom{syntax:"<length>";inherits:false;initial-value:0px}:host{display:block;height:100%;overflow-y:auto;overflow-x:hidden;font-family:var(--co-font-family-primary);scrollbar-width:thin;scrollbar-color:transparent transparent;--co-sidebar-fade-size:28px}:host(:not([mode="min"])),:host([mode="min"]:not(.flyout-open)){-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--co-sidebar-fade-top), #000 calc(100% - var(--co-sidebar-fade-bottom)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--co-sidebar-fade-top), #000 calc(100% - var(--co-sidebar-fade-bottom)), transparent 100%)}@supports (animation-timeline: scroll()){:host(:not([mode="min"])),:host([mode="min"]:not(.flyout-open)){animation:co-sidebar-edge-fade linear both;animation-timeline:scroll(self block)}}@keyframes co-sidebar-edge-fade{0%{--co-sidebar-fade-top:0px;--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}8%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}92%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}100%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:0px}}:host(:hover){scrollbar-color:var(--co-color-opacity-blanco-16) transparent}:host::-webkit-scrollbar{width:6px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}:host(:hover)::-webkit-scrollbar-thumb{background:var(--co-color-opacity-blanco-16)}:host(:hover)::-webkit-scrollbar-thumb:hover{background:var(--co-color-opacity-blanco-25)}:host(:hover)::-webkit-scrollbar-thumb:active{background:var(--co-color-opacity-blanco-50)}:host([mode="min"]){scrollbar-width:none !important}:host([mode="min"])::-webkit-scrollbar{width:0 !important}.co-sidebar-nav{display:flex;flex-direction:column;gap:var(--co-spacing-xs);padding:var(--co-spacing-xs)}.co-sidebar-nav--min{align-items:center;padding:var(--co-spacing-xs) 0}.co-sidebar-nav__search{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-xs) var(--co-spacing-sm);margin:0 var(--co-spacing-xs) var(--co-spacing-xs);border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-xs);background:var(--co-semantic-surface-secondary);height:32px}.co-sidebar-nav__search co-icon{color:var(--co-semantic-text-muted);flex-shrink:0}.co-sidebar-nav__search-input{flex:1;border:none;outline:none;background:transparent;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12);letter-spacing:var(--co-font-letter-spacing-body);color:var(--co-semantic-text-default);min-width:0}.co-sidebar-nav__search-input::placeholder{color:var(--co-semantic-text-muted)}.co-sidebar-nav__search-clear{display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;padding:0;color:var(--co-semantic-text-muted);border-radius:var(--co-border-radius-xxs)}.co-sidebar-nav__search-clear:hover{color:var(--co-semantic-text-default)}.co-sidebar-nav__items{display:flex;flex-direction:column;gap:var(--co-spacing-xxs)}.co-sidebar-nav--min .co-sidebar-nav__items{align-items:center}.co-sidebar-nav__category{display:flex;flex-direction:column}.co-sidebar-nav__category+.co-sidebar-nav__category{margin-top:var(--co-spacing-sm)}.co-sidebar-nav__category-label{text-transform:uppercase;font-family:var(--co-font-family-mono);font-size:var(--co-font-size-10);font-weight:400;color:var(--co-semantic-text-muted);line-height:110%;letter-spacing:0.08em;padding:var(--co-spacing-lg) var(--co-spacing-sm) var(--co-spacing-xs);user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-sidebar-nav__category-items{display:flex;flex-direction:column;gap:var(--co-spacing-xxs)}.co-sidebar-nav__category--min{display:flex;flex-direction:column;align-items:center}.co-sidebar-nav__category--min+.co-sidebar-nav__category--min{margin-top:var(--co-spacing-sm)}.co-sidebar-nav__category-spacer{visibility:hidden;white-space:nowrap;padding-left:0;padding-right:0}.co-sidebar-nav__category--min>:not(.co-sidebar-nav__category-spacer)+*{margin-top:var(--co-spacing-xxs)}.co-sidebar-nav__item{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);border:none;background:none;cursor:pointer;width:100%;text-align:left;color:var(--co-semantic-text-default);transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);font-weight:var(--co-font-weight-medium);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-sidebar-nav__item:hover{background:var(--co-semantic-surface-hover);color:var(--co-semantic-text-default)}.co-sidebar-nav__item--active{background:var(--co-sidebar-nav-active-bg, var(--co-semantic-surface-hover));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)));font-weight:var(--co-font-weight-medium);--co-glass-blur:12px;--co-glass-saturate:1.3;-webkit-backdrop-filter:var(--co-glass-filter, blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate)));backdrop-filter:var(--co-glass-filter, blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate)))}.co-sidebar-nav__item--active:hover{background:var(--co-sidebar-nav-active-bg-min, var(--co-sidebar-nav-active-bg, var(--co-semantic-surface-hover)));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}.co-sidebar-nav__item-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}.co-sidebar-nav__item-icon co-icon{color:inherit}.co-sidebar-nav__item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-sidebar-nav__custom-icon{width:18px;height:18px;object-fit:contain;border-radius:var(--co-border-radius-xxs)}.co-sidebar-nav--min co-tooltip{line-height:0}.co-sidebar-nav--min .co-sidebar-nav__item{width:36px;height:28px;padding:0;justify-content:center;border-radius:var(--co-border-radius-xs)}.co-sidebar-nav__flyout-anchor{position:relative}.co-sidebar-nav__flyout{position:fixed;min-width:180px;max-width:240px;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-subtle);color:var(--co-semantic-text-default);border-radius:var(--co-border-radius-sm);box-shadow:var(--co-shadow-lg);padding:var(--co-spacing-md);display:flex;flex-direction:column;z-index:9999;animation:co-flyout-in var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-sidebar-nav__flyout-title{text-transform:uppercase;font-family:var(--co-font-family-mono);font-size:var(--co-font-size-10);font-weight:400;color:var(--co-semantic-text-muted);line-height:110%;letter-spacing:var(--co-font-letter-spacing-overline);padding:var(--co-spacing-xxs) var(--co-spacing-sm) var(--co-spacing-xs);user-select:none}.co-sidebar-nav__flyout .co-sidebar-nav__item{width:100%;height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);gap:var(--co-spacing-md);font-weight:var(--co-font-weight-regular);color:var(--co-semantic-text-default);line-height:var(--co-font-line-height-none);justify-content:flex-start}.co-sidebar-nav__flyout .co-sidebar-nav__item:hover{background:var(--co-semantic-surface-control)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active{background:var(--co-sidebar-nav-active-bg-min, var(--co-semantic-surface-control));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)));font-weight:var(--co-font-weight-medium)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active:hover{background:var(--co-sidebar-nav-active-bg-min, var(--co-semantic-surface-control));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}.co-sidebar-nav__flyout .co-sidebar-nav__item-icon{display:flex;width:24px;height:24px}.co-sidebar-nav__flyout .co-sidebar-nav__item-icon co-icon{color:var(--co-semantic-text-default)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active .co-sidebar-nav__item-icon co-icon{color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}@keyframes co-flyout-in{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}.co-sidebar-nav__expansion{display:flex;flex-direction:column}.co-sidebar-nav__expansion-header{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);border:none;background:none;cursor:pointer;width:100%;text-align:left;color:var(--co-semantic-text-secondary);transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);font-weight:var(--co-font-weight-medium);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-sidebar-nav__expansion-header:hover{background:var(--co-semantic-surface-hover);color:var(--co-semantic-text-default)}.co-sidebar-nav__expansion--active>.co-sidebar-nav__expansion-header{color:var(--co-semantic-text-default)}.co-sidebar-nav__expansion-caret{margin-left:auto;flex-shrink:0;transition:transform var(--co-motion-duration-base) var(--co-motion-ease-out);color:var(--co-semantic-text-muted)}.co-sidebar-nav__expansion--expanded>.co-sidebar-nav__expansion-header .co-sidebar-nav__expansion-caret{transform:rotate(90deg)}.co-sidebar-nav__expansion-body{display:flex;flex-direction:column;gap:var(--co-spacing-xxs);overflow:hidden;max-height:0;opacity:0;transition:max-height var(--co-motion-duration-slow) var(--co-motion-ease-out), opacity var(--co-motion-duration-base) var(--co-motion-ease-out), padding var(--co-motion-duration-base) var(--co-motion-ease-out);padding-left:var(--co-spacing-xl)}.co-sidebar-nav__expansion--expanded>.co-sidebar-nav__expansion-body{max-height:1000px;opacity:1;padding-top:var(--co-spacing-xxs)}.co-sidebar-nav__highlight{all:unset;background-color:var(--co-color-primary-amarillo, #facc15);color:var(--co-color-base-negro, #000);border-radius:2px;padding:0 1px}`;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Clave del menú de Prolibu → ícono Phosphor (lo usa `co-sidebar-nav`; el prop `icon-map`
|
|
8
|
+
* lo extiende). Una clave sin entrada cae a `circle`: `sidebar-icon-map.test.ts` cruza este
|
|
9
|
+
* mapa con las claves que manda el backend y verifica que cada ícono exista en Phosphor.
|
|
10
|
+
*/
|
|
11
|
+
const SIDEBAR_ICON_MAP = {
|
|
10
12
|
// Directory
|
|
11
13
|
Home: 'house',
|
|
12
14
|
Contacts: 'address-book',
|
|
13
15
|
Companies: 'buildings',
|
|
16
|
+
Leads: 'user-focus',
|
|
14
17
|
// Sales
|
|
15
18
|
Presentations: 'presentation-chart',
|
|
16
19
|
Deals: 'handshake',
|
|
20
|
+
TestDrive: 'steering-wheel',
|
|
17
21
|
Invoices: 'receipt',
|
|
18
22
|
Payments: 'credit-card',
|
|
19
23
|
// Communications
|
|
@@ -37,6 +41,7 @@ const DEFAULT_ICON_MAP = {
|
|
|
37
41
|
Meetings: 'video-camera',
|
|
38
42
|
Calls: 'phone-call',
|
|
39
43
|
CloudDrive: 'cloud',
|
|
44
|
+
Forms: 'note-pencil',
|
|
40
45
|
// Libraries
|
|
41
46
|
Quotes: 'quotes',
|
|
42
47
|
ContentTemplates: 'article',
|
|
@@ -59,6 +64,7 @@ const DEFAULT_ICON_MAP = {
|
|
|
59
64
|
// Configuration
|
|
60
65
|
Users: 'user',
|
|
61
66
|
UserTeams: 'users',
|
|
67
|
+
Teams: 'users',
|
|
62
68
|
UserGroups: 'user-circle-gear',
|
|
63
69
|
Roles: 'shield',
|
|
64
70
|
Workspaces: 'stack',
|
|
@@ -73,6 +79,7 @@ const DEFAULT_ICON_MAP = {
|
|
|
73
79
|
// Wizards
|
|
74
80
|
ProposalWizards: 'magic-wand',
|
|
75
81
|
WizardGroups: 'folders',
|
|
82
|
+
ProposalWizardGroup: 'folders',
|
|
76
83
|
// Advertising
|
|
77
84
|
AdHubs: 'storefront',
|
|
78
85
|
AdCampaigns: 'flag-banner',
|
|
@@ -95,6 +102,8 @@ const DEFAULT_ICON_MAP = {
|
|
|
95
102
|
Categories: 'folder-simple',
|
|
96
103
|
CustomFilters: 'funnel',
|
|
97
104
|
Logs: 'list-bullets',
|
|
105
|
+
ContactProtocols: 'list-checks',
|
|
106
|
+
Scorings: 'chart-line-up',
|
|
98
107
|
// Iot
|
|
99
108
|
Devices: 'cpu',
|
|
100
109
|
// Development
|
|
@@ -135,6 +144,15 @@ const DEFAULT_ICON_MAP = {
|
|
|
135
144
|
TourStudio: 'cube',
|
|
136
145
|
Docs: 'file-text',
|
|
137
146
|
Setup: 'gear-six',
|
|
147
|
+
SalesAndMarketing: 'trend-up',
|
|
148
|
+
CustomerService: 'lifebuoy',
|
|
149
|
+
HumanResources: 'identification-badge',
|
|
150
|
+
TicketsSetup: 'ticket',
|
|
151
|
+
CommunicationCenterSetup: 'headset',
|
|
152
|
+
// Inventory
|
|
153
|
+
Inventory: 'warehouse',
|
|
154
|
+
Branches: 'building-office',
|
|
155
|
+
ItemStock: 'barcode',
|
|
138
156
|
// Human Resources — Learning
|
|
139
157
|
Learning: 'graduation-cap',
|
|
140
158
|
Programs: 'path',
|
|
@@ -190,6 +208,9 @@ const DEFAULT_ICON_MAP = {
|
|
|
190
208
|
Telegram: 'telegram-logo',
|
|
191
209
|
Discord: 'discord-logo',
|
|
192
210
|
};
|
|
211
|
+
|
|
212
|
+
const coSidebarNavCss = () => `@property --co-sidebar-fade-top{syntax:"<length>";inherits:false;initial-value:0px}@property --co-sidebar-fade-bottom{syntax:"<length>";inherits:false;initial-value:0px}:host{display:block;height:100%;overflow-y:auto;overflow-x:hidden;font-family:var(--co-font-family-primary);scrollbar-width:thin;scrollbar-color:transparent transparent;--co-sidebar-fade-size:28px}:host(:not([mode="min"])),:host([mode="min"]:not(.flyout-open)){-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--co-sidebar-fade-top), #000 calc(100% - var(--co-sidebar-fade-bottom)), transparent 100%);mask-image:linear-gradient(to bottom, transparent 0, #000 var(--co-sidebar-fade-top), #000 calc(100% - var(--co-sidebar-fade-bottom)), transparent 100%)}@supports (animation-timeline: scroll()){:host(:not([mode="min"])),:host([mode="min"]:not(.flyout-open)){animation:co-sidebar-edge-fade linear both;animation-timeline:scroll(self block)}}@keyframes co-sidebar-edge-fade{0%{--co-sidebar-fade-top:0px;--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}8%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}92%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:var(--co-sidebar-fade-size)}100%{--co-sidebar-fade-top:var(--co-sidebar-fade-size);--co-sidebar-fade-bottom:0px}}:host(:hover){scrollbar-color:var(--co-color-opacity-blanco-16) transparent}:host::-webkit-scrollbar{width:6px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}:host(:hover)::-webkit-scrollbar-thumb{background:var(--co-color-opacity-blanco-16)}:host(:hover)::-webkit-scrollbar-thumb:hover{background:var(--co-color-opacity-blanco-25)}:host(:hover)::-webkit-scrollbar-thumb:active{background:var(--co-color-opacity-blanco-50)}:host([mode="min"]){scrollbar-width:none !important}:host([mode="min"])::-webkit-scrollbar{width:0 !important}.co-sidebar-nav{display:flex;flex-direction:column;gap:var(--co-spacing-xs);padding:var(--co-spacing-xs)}.co-sidebar-nav--min{align-items:center;padding:var(--co-spacing-xs) 0}.co-sidebar-nav__search{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-xs) var(--co-spacing-sm);margin:0 var(--co-spacing-xs) var(--co-spacing-xs);border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-xs);background:var(--co-semantic-surface-secondary);height:32px}.co-sidebar-nav__search co-icon{color:var(--co-semantic-text-muted);flex-shrink:0}.co-sidebar-nav__search-input{flex:1;border:none;outline:none;background:transparent;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12);letter-spacing:var(--co-font-letter-spacing-body);color:var(--co-semantic-text-default);min-width:0}.co-sidebar-nav__search-input::placeholder{color:var(--co-semantic-text-muted)}.co-sidebar-nav__search-clear{display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;padding:0;color:var(--co-semantic-text-muted);border-radius:var(--co-border-radius-xxs)}.co-sidebar-nav__search-clear:hover{color:var(--co-semantic-text-default)}.co-sidebar-nav__items{display:flex;flex-direction:column;gap:var(--co-spacing-xxs)}.co-sidebar-nav--min .co-sidebar-nav__items{align-items:center}.co-sidebar-nav__category{display:flex;flex-direction:column}.co-sidebar-nav__category+.co-sidebar-nav__category{margin-top:var(--co-spacing-sm)}.co-sidebar-nav__category-label{text-transform:uppercase;font-family:var(--co-font-family-mono);font-size:var(--co-font-size-10);font-weight:400;color:var(--co-semantic-text-muted);line-height:110%;letter-spacing:0.08em;padding:var(--co-spacing-lg) var(--co-spacing-sm) var(--co-spacing-xs);user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-sidebar-nav__category-items{display:flex;flex-direction:column;gap:var(--co-spacing-xxs)}.co-sidebar-nav__category--min{display:flex;flex-direction:column;align-items:center}.co-sidebar-nav__category--min+.co-sidebar-nav__category--min{margin-top:var(--co-spacing-sm)}.co-sidebar-nav__category-spacer{visibility:hidden;white-space:nowrap;padding-left:0;padding-right:0}.co-sidebar-nav__category--min>:not(.co-sidebar-nav__category-spacer)+*{margin-top:var(--co-spacing-xxs)}.co-sidebar-nav__item{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);border:none;background:none;cursor:pointer;width:100%;text-align:left;color:var(--co-semantic-text-default);transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);font-weight:var(--co-font-weight-medium);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-sidebar-nav__item:hover{background:var(--co-semantic-surface-hover);color:var(--co-semantic-text-default)}.co-sidebar-nav__item--active{background:var(--co-sidebar-nav-active-bg, var(--co-semantic-surface-hover));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)));font-weight:var(--co-font-weight-medium);--co-glass-blur:12px;--co-glass-saturate:1.3;-webkit-backdrop-filter:var(--co-glass-filter, blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate)));backdrop-filter:var(--co-glass-filter, blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate)))}.co-sidebar-nav__item--active:hover{background:var(--co-sidebar-nav-active-bg-min, var(--co-sidebar-nav-active-bg, var(--co-semantic-surface-hover)));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}.co-sidebar-nav__item-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}.co-sidebar-nav__item-icon co-icon{color:inherit}.co-sidebar-nav__item-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-sidebar-nav__custom-icon{width:18px;height:18px;object-fit:contain;border-radius:var(--co-border-radius-xxs)}.co-sidebar-nav--min co-tooltip{line-height:0}.co-sidebar-nav--min .co-sidebar-nav__item{width:36px;height:28px;padding:0;justify-content:center;border-radius:var(--co-border-radius-xs)}.co-sidebar-nav__flyout-anchor{position:relative}.co-sidebar-nav__flyout{position:fixed;min-width:180px;max-width:240px;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-subtle);color:var(--co-semantic-text-default);border-radius:var(--co-border-radius-sm);box-shadow:var(--co-shadow-lg);padding:var(--co-spacing-md);display:flex;flex-direction:column;z-index:9999;animation:co-flyout-in var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-sidebar-nav__flyout-title{text-transform:uppercase;font-family:var(--co-font-family-mono);font-size:var(--co-font-size-10);font-weight:400;color:var(--co-semantic-text-muted);line-height:110%;letter-spacing:var(--co-font-letter-spacing-overline);padding:var(--co-spacing-xxs) var(--co-spacing-sm) var(--co-spacing-xs);user-select:none}.co-sidebar-nav__flyout .co-sidebar-nav__item{width:100%;height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);gap:var(--co-spacing-md);font-weight:var(--co-font-weight-regular);color:var(--co-semantic-text-default);line-height:var(--co-font-line-height-none);justify-content:flex-start}.co-sidebar-nav__flyout .co-sidebar-nav__item:hover{background:var(--co-semantic-surface-control)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active{background:var(--co-sidebar-nav-active-bg-min, var(--co-semantic-surface-control));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)));font-weight:var(--co-font-weight-medium)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active:hover{background:var(--co-sidebar-nav-active-bg-min, var(--co-semantic-surface-control));color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}.co-sidebar-nav__flyout .co-sidebar-nav__item-icon{display:flex;width:24px;height:24px}.co-sidebar-nav__flyout .co-sidebar-nav__item-icon co-icon{color:var(--co-semantic-text-default)}.co-sidebar-nav__flyout .co-sidebar-nav__item--active .co-sidebar-nav__item-icon co-icon{color:var(--co-sidebar-nav-active-color, var(--co-semantic-text-link, var(--co-color-primary-azul)))}@keyframes co-flyout-in{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}.co-sidebar-nav__expansion{display:flex;flex-direction:column}.co-sidebar-nav__expansion-header{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-radius:var(--co-border-radius-xs);border:none;background:none;cursor:pointer;width:100%;text-align:left;color:var(--co-semantic-text-secondary);transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);font-weight:var(--co-font-weight-medium);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-sidebar-nav__expansion-header:hover{background:var(--co-semantic-surface-hover);color:var(--co-semantic-text-default)}.co-sidebar-nav__expansion--active>.co-sidebar-nav__expansion-header{color:var(--co-semantic-text-default)}.co-sidebar-nav__expansion-caret{margin-left:auto;flex-shrink:0;transition:transform var(--co-motion-duration-base) var(--co-motion-ease-out);color:var(--co-semantic-text-muted)}.co-sidebar-nav__expansion--expanded>.co-sidebar-nav__expansion-header .co-sidebar-nav__expansion-caret{transform:rotate(90deg)}.co-sidebar-nav__expansion-body{display:flex;flex-direction:column;gap:var(--co-spacing-xxs);overflow:hidden;max-height:0;opacity:0;transition:max-height var(--co-motion-duration-slow) var(--co-motion-ease-out), opacity var(--co-motion-duration-base) var(--co-motion-ease-out), padding var(--co-motion-duration-base) var(--co-motion-ease-out);padding-left:var(--co-spacing-xl)}.co-sidebar-nav__expansion--expanded>.co-sidebar-nav__expansion-body{max-height:1000px;opacity:1;padding-top:var(--co-spacing-xxs)}.co-sidebar-nav__highlight{all:unset;background-color:var(--co-color-primary-amarillo, #facc15);color:var(--co-color-base-negro, #000);border-radius:2px;padding:0 1px}`;
|
|
213
|
+
|
|
193
214
|
/** Ícono de un ítem en modo `min` (sin label): 18 (20 se veía pesado; 16 = el de full, se perdía). */
|
|
194
215
|
const MIN_ICON_SIZE = 18;
|
|
195
216
|
const CoSidebarNav = class {
|
|
@@ -250,10 +271,10 @@ const CoSidebarNav = class {
|
|
|
250
271
|
}
|
|
251
272
|
parseIconMap() {
|
|
252
273
|
try {
|
|
253
|
-
this.parsedIconMap = Object.assign(Object.assign({},
|
|
274
|
+
this.parsedIconMap = Object.assign(Object.assign({}, SIDEBAR_ICON_MAP), JSON.parse(this.iconMap));
|
|
254
275
|
}
|
|
255
276
|
catch (_a) {
|
|
256
|
-
this.parsedIconMap = Object.assign({},
|
|
277
|
+
this.parsedIconMap = Object.assign({}, SIDEBAR_ICON_MAP);
|
|
257
278
|
}
|
|
258
279
|
}
|
|
259
280
|
parseTranslations() {
|
|
@@ -507,10 +528,10 @@ const CoSidebarNav = class {
|
|
|
507
528
|
// `flyout-open` (min mode only) lets the CSS drop the host edge-fade mask
|
|
508
529
|
// while a flyout is shown — a host mask would otherwise clip AND
|
|
509
530
|
// mis-position the fixed flyout (mask makes the host a containing block).
|
|
510
|
-
index.h(index.Host, { key: '
|
|
531
|
+
index.h(index.Host, { key: 'a7c5661ad2613a6f2c45c37e6def2e4c8d7e9801', class: { 'flyout-open': !!this.flyoutKey } }, index.h("nav", { key: '597d59612958ab2014a7db0ad561abd1db15524f', class: {
|
|
511
532
|
'co-sidebar-nav': true,
|
|
512
533
|
'co-sidebar-nav--min': this.mode === 'min',
|
|
513
|
-
} }, this.renderSearch(), index.h("div", { key: '
|
|
534
|
+
} }, this.renderSearch(), index.h("div", { key: '55a5bb260444a26e3e2228fb08c30c15746994a9', class: "co-sidebar-nav__items" }, items.map(item => this.renderItem(item))))));
|
|
514
535
|
}
|
|
515
536
|
get el() { return index.getElement(this); }
|
|
516
537
|
static get watchers() { return {
|
|
@@ -315,10 +315,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
315
315
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
316
316
|
/* webpackMode: "lazy" */
|
|
317
317
|
'./co-sidebar.cjs.entry.js')); }).then(processMod, consoleError);
|
|
318
|
-
case 'co-sidebar-nav.cjs':
|
|
319
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
320
|
-
/* webpackMode: "lazy" */
|
|
321
|
-
'./co-sidebar-nav.cjs.entry.js')); }).then(processMod, consoleError);
|
|
322
318
|
case 'co-slider.cjs':
|
|
323
319
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
324
320
|
/* webpackMode: "lazy" */
|
|
@@ -435,6 +431,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
435
431
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
436
432
|
/* webpackMode: "lazy" */
|
|
437
433
|
'./co-select.cjs.entry.js')); }).then(processMod, consoleError);
|
|
434
|
+
case 'co-sidebar-nav.cjs':
|
|
435
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
436
|
+
/* webpackMode: "lazy" */
|
|
437
|
+
'./co-sidebar-nav.cjs.entry.js')); }).then(processMod, consoleError);
|
|
438
438
|
case 'co-swatch-grid.cjs':
|
|
439
439
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
440
440
|
/* webpackMode: "lazy" */
|