@prolibu-suite/cobalt-core 0.11.7 → 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-calendar_3.cjs.entry.js +2 -1
- package/dist/cjs/co-kbd_2.cjs.entry.js +5 -4
- package/dist/cjs/co-lightbox.cjs.entry.js +7 -6
- package/dist/cjs/co-overlay.cjs.entry.js +4 -3
- package/dist/cjs/co-popover.cjs.entry.js +5 -4
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +29 -8
- package/dist/cjs/index-bHoidDwv.js +4 -4
- package/dist/cjs/popoverApi-D1ChCCdO.js +27 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-2832ab99.entry.js +1 -0
- package/dist/cobalt/p-299c2425.entry.js +1 -0
- package/dist/cobalt/p-438cc876.entry.js +1 -0
- package/dist/cobalt/p-Dp1JT0dm.js +1 -0
- package/dist/cobalt/p-b723aa47.entry.js +1 -0
- package/dist/cobalt/p-eab59be5.entry.js +1 -0
- package/dist/cobalt/p-f562bd96.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-drawer/co-drawer.js +2 -1
- package/dist/collection/components/co-lightbox/co-lightbox.js +7 -6
- package/dist/collection/components/co-overlay/co-overlay.js +4 -3
- package/dist/collection/components/co-popover/co-popover.js +6 -5
- 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-tooltip/co-tooltip.js +5 -4
- 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/collection/utils/popoverApi.js +23 -0
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-date-time-picker.js +1 -1
- package/dist/components/co-document-editor.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/{p-_S5htX1i.js → p-BGNXvnDr.js} +1 -1
- package/dist/components/p-BMyWdiVO.js +1 -0
- package/dist/components/{p-CaFwCFgg.js → p-BRIf9NGv.js} +1 -1
- package/dist/components/p-Bd6H9_5D.js +1 -0
- package/dist/components/{p-upZqhFKo.js → p-BkyYV32T.js} +1 -1
- package/dist/components/p-DHIa14ep.js +1 -0
- package/dist/components/p-DRL-a5hO.js +1 -0
- package/dist/components/p-Dp1JT0dm.js +1 -0
- package/dist/components/p-xA7AfoIW.js +1 -0
- package/dist/esm/co-calendar_3.entry.js +2 -1
- package/dist/esm/co-kbd_2.entry.js +5 -4
- package/dist/esm/co-lightbox.entry.js +7 -6
- package/dist/esm/co-overlay.entry.js +4 -3
- package/dist/esm/co-popover.entry.js +5 -4
- package/dist/esm/co-sidebar-nav.entry.js +29 -8
- package/dist/esm/index-DJkaRtbb.js +4 -4
- package/dist/esm/popoverApi-Dp1JT0dm.js +25 -0
- package/dist/types/components/co-sidebar-nav/sidebar-icon-map.d.ts +6 -0
- package/dist/types/utils/popoverApi.d.ts +12 -0
- package/package.json +2 -2
- package/dist/cobalt/p-60ea3d33.entry.js +0 -1
- package/dist/cobalt/p-84256bde.entry.js +0 -1
- package/dist/cobalt/p-8c22bf4b.entry.js +0 -1
- package/dist/cobalt/p-99781b0b.entry.js +0 -1
- package/dist/cobalt/p-b2c49664.entry.js +0 -1
- package/dist/cobalt/p-cf675968.entry.js +0 -1
- package/dist/components/p-B5F93Ujt.js +0 -1
- package/dist/components/p-CMMv2RcH.js +0 -1
- package/dist/components/p-CX0bNXK3.js +0 -1
- package/dist/components/p-Co0eKIiO.js +0 -1
- package/dist/components/p-xtGT3YeI.js +0 -1
|
@@ -1,190 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { normalizeText } from "../../utils/normalizeText";
|
|
3
|
-
|
|
4
|
-
const DEFAULT_ICON_MAP = {
|
|
5
|
-
// Directory
|
|
6
|
-
Home: 'house',
|
|
7
|
-
Contacts: 'address-book',
|
|
8
|
-
Companies: 'buildings',
|
|
9
|
-
// Sales
|
|
10
|
-
Presentations: 'presentation-chart',
|
|
11
|
-
Deals: 'handshake',
|
|
12
|
-
Invoices: 'receipt',
|
|
13
|
-
Payments: 'credit-card',
|
|
14
|
-
// Communications
|
|
15
|
-
Conversations: 'chat-circle',
|
|
16
|
-
Channels: 'broadcast',
|
|
17
|
-
ChannelProviders: 'plugs-connected',
|
|
18
|
-
ConversationFlows: 'flow-arrow',
|
|
19
|
-
PhoneNumbers: 'phone',
|
|
20
|
-
// Operations
|
|
21
|
-
Tasks: 'check-square',
|
|
22
|
-
TaskGroups: 'squares-four',
|
|
23
|
-
WorkOrders: 'clipboard-text',
|
|
24
|
-
// Support
|
|
25
|
-
Tickets: 'ticket',
|
|
26
|
-
CaseTypes: 'tag',
|
|
27
|
-
EmailHubs: 'at',
|
|
28
|
-
RoutingRules: 'path',
|
|
29
|
-
// Tools
|
|
30
|
-
Contracts: 'file-text',
|
|
31
|
-
Notes: 'note',
|
|
32
|
-
Meetings: 'video-camera',
|
|
33
|
-
Calls: 'phone-call',
|
|
34
|
-
CloudDrive: 'cloud',
|
|
35
|
-
// Libraries
|
|
36
|
-
Quotes: 'quotes',
|
|
37
|
-
ContentTemplates: 'article',
|
|
38
|
-
MessageTemplates: 'chat-text',
|
|
39
|
-
Skills: 'brain',
|
|
40
|
-
AiAgentProfiles: 'robot',
|
|
41
|
-
// Analytics
|
|
42
|
-
Insights: 'chart-line',
|
|
43
|
-
Dashboards: 'gauge',
|
|
44
|
-
Reports: 'chart-bar',
|
|
45
|
-
// Mailing
|
|
46
|
-
Emails: 'envelope',
|
|
47
|
-
ContactLists: 'users-three',
|
|
48
|
-
EmailCampaigns: 'megaphone',
|
|
49
|
-
// TourStudio
|
|
50
|
-
VirtualTours: 'cube',
|
|
51
|
-
Scenes: 'image',
|
|
52
|
-
Spots: 'map-pin',
|
|
53
|
-
FloorPlans: 'blueprint',
|
|
54
|
-
// Configuration
|
|
55
|
-
Users: 'user',
|
|
56
|
-
UserTeams: 'users',
|
|
57
|
-
UserGroups: 'user-circle-gear',
|
|
58
|
-
Roles: 'shield',
|
|
59
|
-
Workspaces: 'stack',
|
|
60
|
-
AuthenticationRules: 'lock-key',
|
|
61
|
-
OauthApps: 'key',
|
|
62
|
-
ServiceCredentials: 'certificate',
|
|
63
|
-
// Scheduling
|
|
64
|
-
Calendars: 'calendar',
|
|
65
|
-
CalendarPolicies: 'calendar-check',
|
|
66
|
-
CalendarGroups: 'calendar-dots',
|
|
67
|
-
CalendarEvents: 'calendar-plus',
|
|
68
|
-
// Wizards
|
|
69
|
-
ProposalWizards: 'magic-wand',
|
|
70
|
-
WizardGroups: 'folders',
|
|
71
|
-
// Advertising
|
|
72
|
-
AdHubs: 'storefront',
|
|
73
|
-
AdCampaigns: 'flag-banner',
|
|
74
|
-
// Pricing
|
|
75
|
-
Pricebooks: 'book-open',
|
|
76
|
-
PricebookEntries: 'list-numbers',
|
|
77
|
-
Products: 'package',
|
|
78
|
-
Taxes: 'percent',
|
|
79
|
-
ProductGroups: 'stack',
|
|
80
|
-
ProductFamilies: 'tree-structure',
|
|
81
|
-
ProductCategories: 'tag',
|
|
82
|
-
ProductRules: 'gear-six',
|
|
83
|
-
DiscountSchedules: 'piggy-bank',
|
|
84
|
-
// Notifications
|
|
85
|
-
LiveStreams: 'broadcast',
|
|
86
|
-
EventSubscriptions: 'bell-ringing',
|
|
87
|
-
// System
|
|
88
|
-
Stages: 'steps',
|
|
89
|
-
ContactFlows: 'flow-arrow',
|
|
90
|
-
Categories: 'folder-simple',
|
|
91
|
-
CustomFilters: 'funnel',
|
|
92
|
-
Logs: 'list-bullets',
|
|
93
|
-
// Iot
|
|
94
|
-
Devices: 'cpu',
|
|
95
|
-
// Development
|
|
96
|
-
Scripts: 'code',
|
|
97
|
-
Webhooks: 'webhooks-logo',
|
|
98
|
-
Endpoints: 'plug',
|
|
99
|
-
Sites: 'globe',
|
|
100
|
-
HealthChecks: 'heartbeat',
|
|
101
|
-
Plugins: 'puzzle-piece',
|
|
102
|
-
Cobs: 'cube',
|
|
103
|
-
CustomFields: 'textbox',
|
|
104
|
-
CustomUis: 'layout',
|
|
105
|
-
Documentation: 'book-open-text',
|
|
106
|
-
// Docs
|
|
107
|
-
Sections: 'article',
|
|
108
|
-
Articles: 'newspaper',
|
|
109
|
-
// Category-level icons
|
|
110
|
-
Directory: 'address-book',
|
|
111
|
-
Sales: 'currency-dollar',
|
|
112
|
-
Communications: 'chat-teardrop-text',
|
|
113
|
-
Operations: 'gear',
|
|
114
|
-
Support: 'lifebuoy',
|
|
115
|
-
Tools: 'wrench',
|
|
116
|
-
Configuration: 'sliders',
|
|
117
|
-
Analytics: 'chart-pie',
|
|
118
|
-
Mailing: 'envelope-simple',
|
|
119
|
-
Billing: 'money',
|
|
120
|
-
Libraries: 'books',
|
|
121
|
-
Scheduling: 'timer',
|
|
122
|
-
Pricing: 'tag',
|
|
123
|
-
Development: 'terminal',
|
|
124
|
-
AccessControl: 'shield-check',
|
|
125
|
-
Notifications: 'bell',
|
|
126
|
-
System: 'database',
|
|
127
|
-
Iot: 'wifi-high',
|
|
128
|
-
Advertising: 'megaphone',
|
|
129
|
-
Wizards: 'magic-wand',
|
|
130
|
-
TourStudio: 'cube',
|
|
131
|
-
Docs: 'file-text',
|
|
132
|
-
Setup: 'gear-six',
|
|
133
|
-
// Human Resources — Learning
|
|
134
|
-
Learning: 'graduation-cap',
|
|
135
|
-
Programs: 'path',
|
|
136
|
-
Courses: 'chalkboard-teacher',
|
|
137
|
-
Enrollments: 'student',
|
|
138
|
-
Certificates: 'certificate',
|
|
139
|
-
Assessments: 'exam',
|
|
140
|
-
// Human Resources — Recruitment
|
|
141
|
-
Recruitment: 'user-plus',
|
|
142
|
-
Vacancies: 'briefcase',
|
|
143
|
-
Candidates: 'user-list',
|
|
144
|
-
JobApplications: 'read-cv-logo',
|
|
145
|
-
Interviews: 'chats-circle',
|
|
146
|
-
// Human Resources — Asset Management
|
|
147
|
-
AssetManagement: 'package',
|
|
148
|
-
Assets: 'devices',
|
|
149
|
-
AssetAssignments: 'user-switch',
|
|
150
|
-
// Achievements / Recognition
|
|
151
|
-
Recognition: 'hands-clapping',
|
|
152
|
-
Achievements: 'trophy',
|
|
153
|
-
Rewards: 'gift',
|
|
154
|
-
Badges: 'medal',
|
|
155
|
-
BadgeNominations: 'star',
|
|
156
|
-
Prizes: 'trophy',
|
|
157
|
-
RewardsBudgets: 'wallet',
|
|
158
|
-
RedeemedPrizes: 'crown',
|
|
159
|
-
// Sales / Billing extras
|
|
160
|
-
PaymentReceipts: 'hand-coins',
|
|
161
|
-
Coupons: 'seal-percent',
|
|
162
|
-
// Events
|
|
163
|
-
EventManager: 'calendar-star',
|
|
164
|
-
EventProspects: 'users-four',
|
|
165
|
-
BusinessEvents: 'briefcase',
|
|
166
|
-
EventExpense: 'coins',
|
|
167
|
-
// Content
|
|
168
|
-
Content: 'folder-open',
|
|
169
|
-
Portals: 'app-window',
|
|
170
|
-
// Communication Center
|
|
171
|
-
CommunicationCenter: 'headset',
|
|
172
|
-
// Integrations
|
|
173
|
-
Integrations: 'plugs-connected',
|
|
174
|
-
Mcp: 'plug',
|
|
175
|
-
LifecycleHooks: 'arrows-clockwise',
|
|
176
|
-
PaymentProviders: 'credit-card',
|
|
177
|
-
Stripe: 'credit-card',
|
|
178
|
-
ThirdParty: 'plugs-connected',
|
|
179
|
-
Sendgrid: 'paper-plane-tilt',
|
|
180
|
-
Apollo: 'rocket-launch',
|
|
181
|
-
Kaspr: 'identification-card',
|
|
182
|
-
OpenAi: 'robot',
|
|
183
|
-
Ultramsg: 'whatsapp-logo',
|
|
184
|
-
Slack: 'slack-logo',
|
|
185
|
-
Telegram: 'telegram-logo',
|
|
186
|
-
Discord: 'discord-logo',
|
|
187
|
-
};
|
|
3
|
+
import { SIDEBAR_ICON_MAP } from "./sidebar-icon-map";
|
|
188
4
|
/** Ícono de un ítem en modo `min` (sin label): 18 (20 se veía pesado; 16 = el de full, se perdía). */
|
|
189
5
|
const MIN_ICON_SIZE = 18;
|
|
190
6
|
/**
|
|
@@ -257,10 +73,10 @@ export class CoSidebarNav {
|
|
|
257
73
|
}
|
|
258
74
|
parseIconMap() {
|
|
259
75
|
try {
|
|
260
|
-
this.parsedIconMap = Object.assign(Object.assign({},
|
|
76
|
+
this.parsedIconMap = Object.assign(Object.assign({}, SIDEBAR_ICON_MAP), JSON.parse(this.iconMap));
|
|
261
77
|
}
|
|
262
78
|
catch (_a) {
|
|
263
|
-
this.parsedIconMap = Object.assign({},
|
|
79
|
+
this.parsedIconMap = Object.assign({}, SIDEBAR_ICON_MAP);
|
|
264
80
|
}
|
|
265
81
|
}
|
|
266
82
|
parseTranslations() {
|
|
@@ -514,10 +330,10 @@ export class CoSidebarNav {
|
|
|
514
330
|
// `flyout-open` (min mode only) lets the CSS drop the host edge-fade mask
|
|
515
331
|
// while a flyout is shown — a host mask would otherwise clip AND
|
|
516
332
|
// mis-position the fixed flyout (mask makes the host a containing block).
|
|
517
|
-
h(Host, { key: '
|
|
333
|
+
h(Host, { key: 'a7c5661ad2613a6f2c45c37e6def2e4c8d7e9801', class: { 'flyout-open': !!this.flyoutKey } }, h("nav", { key: '597d59612958ab2014a7db0ad561abd1db15524f', class: {
|
|
518
334
|
'co-sidebar-nav': true,
|
|
519
335
|
'co-sidebar-nav--min': this.mode === 'min',
|
|
520
|
-
} }, this.renderSearch(), h("div", { key: '
|
|
336
|
+
} }, this.renderSearch(), h("div", { key: '55a5bb260444a26e3e2228fb08c30c15746994a9', class: "co-sidebar-nav__items" }, items.map(item => this.renderItem(item))))));
|
|
521
337
|
}
|
|
522
338
|
static get is() { return "co-sidebar-nav"; }
|
|
523
339
|
static get encapsulation() { return "shadow"; }
|
|
@@ -720,7 +536,7 @@ export class CoSidebarNav {
|
|
|
720
536
|
"references": {
|
|
721
537
|
"NavigateDetail": {
|
|
722
538
|
"location": "local",
|
|
723
|
-
"path": "/Users/agox/
|
|
539
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-sidebar-nav/co-sidebar-nav.tsx",
|
|
724
540
|
"id": "src/components/co-sidebar-nav/co-sidebar-nav.tsx::NavigateDetail"
|
|
725
541
|
}
|
|
726
542
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clave del menú de Prolibu → ícono Phosphor (lo usa `co-sidebar-nav`; el prop `icon-map`
|
|
3
|
+
* lo extiende). Una clave sin entrada cae a `circle`: `sidebar-icon-map.test.ts` cruza este
|
|
4
|
+
* mapa con las claves que manda el backend y verifica que cada ícono exista en Phosphor.
|
|
5
|
+
*/
|
|
6
|
+
export const SIDEBAR_ICON_MAP = {
|
|
7
|
+
// Directory
|
|
8
|
+
Home: 'house',
|
|
9
|
+
Contacts: 'address-book',
|
|
10
|
+
Companies: 'buildings',
|
|
11
|
+
Leads: 'user-focus',
|
|
12
|
+
// Sales
|
|
13
|
+
Presentations: 'presentation-chart',
|
|
14
|
+
Deals: 'handshake',
|
|
15
|
+
TestDrive: 'steering-wheel',
|
|
16
|
+
Invoices: 'receipt',
|
|
17
|
+
Payments: 'credit-card',
|
|
18
|
+
// Communications
|
|
19
|
+
Conversations: 'chat-circle',
|
|
20
|
+
Channels: 'broadcast',
|
|
21
|
+
ChannelProviders: 'plugs-connected',
|
|
22
|
+
ConversationFlows: 'flow-arrow',
|
|
23
|
+
PhoneNumbers: 'phone',
|
|
24
|
+
// Operations
|
|
25
|
+
Tasks: 'check-square',
|
|
26
|
+
TaskGroups: 'squares-four',
|
|
27
|
+
WorkOrders: 'clipboard-text',
|
|
28
|
+
// Support
|
|
29
|
+
Tickets: 'ticket',
|
|
30
|
+
CaseTypes: 'tag',
|
|
31
|
+
EmailHubs: 'at',
|
|
32
|
+
RoutingRules: 'path',
|
|
33
|
+
// Tools
|
|
34
|
+
Contracts: 'file-text',
|
|
35
|
+
Notes: 'note',
|
|
36
|
+
Meetings: 'video-camera',
|
|
37
|
+
Calls: 'phone-call',
|
|
38
|
+
CloudDrive: 'cloud',
|
|
39
|
+
Forms: 'note-pencil',
|
|
40
|
+
// Libraries
|
|
41
|
+
Quotes: 'quotes',
|
|
42
|
+
ContentTemplates: 'article',
|
|
43
|
+
MessageTemplates: 'chat-text',
|
|
44
|
+
Skills: 'brain',
|
|
45
|
+
AiAgentProfiles: 'robot',
|
|
46
|
+
// Analytics
|
|
47
|
+
Insights: 'chart-line',
|
|
48
|
+
Dashboards: 'gauge',
|
|
49
|
+
Reports: 'chart-bar',
|
|
50
|
+
// Mailing
|
|
51
|
+
Emails: 'envelope',
|
|
52
|
+
ContactLists: 'users-three',
|
|
53
|
+
EmailCampaigns: 'megaphone',
|
|
54
|
+
// TourStudio
|
|
55
|
+
VirtualTours: 'cube',
|
|
56
|
+
Scenes: 'image',
|
|
57
|
+
Spots: 'map-pin',
|
|
58
|
+
FloorPlans: 'blueprint',
|
|
59
|
+
// Configuration
|
|
60
|
+
Users: 'user',
|
|
61
|
+
UserTeams: 'users',
|
|
62
|
+
Teams: 'users',
|
|
63
|
+
UserGroups: 'user-circle-gear',
|
|
64
|
+
Roles: 'shield',
|
|
65
|
+
Workspaces: 'stack',
|
|
66
|
+
AuthenticationRules: 'lock-key',
|
|
67
|
+
OauthApps: 'key',
|
|
68
|
+
ServiceCredentials: 'certificate',
|
|
69
|
+
// Scheduling
|
|
70
|
+
Calendars: 'calendar',
|
|
71
|
+
CalendarPolicies: 'calendar-check',
|
|
72
|
+
CalendarGroups: 'calendar-dots',
|
|
73
|
+
CalendarEvents: 'calendar-plus',
|
|
74
|
+
// Wizards
|
|
75
|
+
ProposalWizards: 'magic-wand',
|
|
76
|
+
WizardGroups: 'folders',
|
|
77
|
+
ProposalWizardGroup: 'folders',
|
|
78
|
+
// Advertising
|
|
79
|
+
AdHubs: 'storefront',
|
|
80
|
+
AdCampaigns: 'flag-banner',
|
|
81
|
+
// Pricing
|
|
82
|
+
Pricebooks: 'book-open',
|
|
83
|
+
PricebookEntries: 'list-numbers',
|
|
84
|
+
Products: 'package',
|
|
85
|
+
Taxes: 'percent',
|
|
86
|
+
ProductGroups: 'stack',
|
|
87
|
+
ProductFamilies: 'tree-structure',
|
|
88
|
+
ProductCategories: 'tag',
|
|
89
|
+
ProductRules: 'gear-six',
|
|
90
|
+
DiscountSchedules: 'piggy-bank',
|
|
91
|
+
// Notifications
|
|
92
|
+
LiveStreams: 'broadcast',
|
|
93
|
+
EventSubscriptions: 'bell-ringing',
|
|
94
|
+
// System
|
|
95
|
+
Stages: 'steps',
|
|
96
|
+
ContactFlows: 'flow-arrow',
|
|
97
|
+
Categories: 'folder-simple',
|
|
98
|
+
CustomFilters: 'funnel',
|
|
99
|
+
Logs: 'list-bullets',
|
|
100
|
+
ContactProtocols: 'list-checks',
|
|
101
|
+
Scorings: 'chart-line-up',
|
|
102
|
+
// Iot
|
|
103
|
+
Devices: 'cpu',
|
|
104
|
+
// Development
|
|
105
|
+
Scripts: 'code',
|
|
106
|
+
Webhooks: 'webhooks-logo',
|
|
107
|
+
Endpoints: 'plug',
|
|
108
|
+
Sites: 'globe',
|
|
109
|
+
HealthChecks: 'heartbeat',
|
|
110
|
+
Plugins: 'puzzle-piece',
|
|
111
|
+
Cobs: 'cube',
|
|
112
|
+
CustomFields: 'textbox',
|
|
113
|
+
CustomUis: 'layout',
|
|
114
|
+
Documentation: 'book-open-text',
|
|
115
|
+
// Docs
|
|
116
|
+
Sections: 'article',
|
|
117
|
+
Articles: 'newspaper',
|
|
118
|
+
// Category-level icons
|
|
119
|
+
Directory: 'address-book',
|
|
120
|
+
Sales: 'currency-dollar',
|
|
121
|
+
Communications: 'chat-teardrop-text',
|
|
122
|
+
Operations: 'gear',
|
|
123
|
+
Support: 'lifebuoy',
|
|
124
|
+
Tools: 'wrench',
|
|
125
|
+
Configuration: 'sliders',
|
|
126
|
+
Analytics: 'chart-pie',
|
|
127
|
+
Mailing: 'envelope-simple',
|
|
128
|
+
Billing: 'money',
|
|
129
|
+
Libraries: 'books',
|
|
130
|
+
Scheduling: 'timer',
|
|
131
|
+
Pricing: 'tag',
|
|
132
|
+
Development: 'terminal',
|
|
133
|
+
AccessControl: 'shield-check',
|
|
134
|
+
Notifications: 'bell',
|
|
135
|
+
System: 'database',
|
|
136
|
+
Iot: 'wifi-high',
|
|
137
|
+
Advertising: 'megaphone',
|
|
138
|
+
Wizards: 'magic-wand',
|
|
139
|
+
TourStudio: 'cube',
|
|
140
|
+
Docs: 'file-text',
|
|
141
|
+
Setup: 'gear-six',
|
|
142
|
+
SalesAndMarketing: 'trend-up',
|
|
143
|
+
CustomerService: 'lifebuoy',
|
|
144
|
+
HumanResources: 'identification-badge',
|
|
145
|
+
TicketsSetup: 'ticket',
|
|
146
|
+
CommunicationCenterSetup: 'headset',
|
|
147
|
+
// Inventory
|
|
148
|
+
Inventory: 'warehouse',
|
|
149
|
+
Branches: 'building-office',
|
|
150
|
+
ItemStock: 'barcode',
|
|
151
|
+
// Human Resources — Learning
|
|
152
|
+
Learning: 'graduation-cap',
|
|
153
|
+
Programs: 'path',
|
|
154
|
+
Courses: 'chalkboard-teacher',
|
|
155
|
+
Enrollments: 'student',
|
|
156
|
+
Certificates: 'certificate',
|
|
157
|
+
Assessments: 'exam',
|
|
158
|
+
// Human Resources — Recruitment
|
|
159
|
+
Recruitment: 'user-plus',
|
|
160
|
+
Vacancies: 'briefcase',
|
|
161
|
+
Candidates: 'user-list',
|
|
162
|
+
JobApplications: 'read-cv-logo',
|
|
163
|
+
Interviews: 'chats-circle',
|
|
164
|
+
// Human Resources — Asset Management
|
|
165
|
+
AssetManagement: 'package',
|
|
166
|
+
Assets: 'devices',
|
|
167
|
+
AssetAssignments: 'user-switch',
|
|
168
|
+
// Achievements / Recognition
|
|
169
|
+
Recognition: 'hands-clapping',
|
|
170
|
+
Achievements: 'trophy',
|
|
171
|
+
Rewards: 'gift',
|
|
172
|
+
Badges: 'medal',
|
|
173
|
+
BadgeNominations: 'star',
|
|
174
|
+
Prizes: 'trophy',
|
|
175
|
+
RewardsBudgets: 'wallet',
|
|
176
|
+
RedeemedPrizes: 'crown',
|
|
177
|
+
// Sales / Billing extras
|
|
178
|
+
PaymentReceipts: 'hand-coins',
|
|
179
|
+
Coupons: 'seal-percent',
|
|
180
|
+
// Events
|
|
181
|
+
EventManager: 'calendar-star',
|
|
182
|
+
EventProspects: 'users-four',
|
|
183
|
+
BusinessEvents: 'briefcase',
|
|
184
|
+
EventExpense: 'coins',
|
|
185
|
+
// Content
|
|
186
|
+
Content: 'folder-open',
|
|
187
|
+
Portals: 'app-window',
|
|
188
|
+
// Communication Center
|
|
189
|
+
CommunicationCenter: 'headset',
|
|
190
|
+
// Integrations
|
|
191
|
+
Integrations: 'plugs-connected',
|
|
192
|
+
Mcp: 'plug',
|
|
193
|
+
LifecycleHooks: 'arrows-clockwise',
|
|
194
|
+
PaymentProviders: 'credit-card',
|
|
195
|
+
Stripe: 'credit-card',
|
|
196
|
+
ThirdParty: 'plugs-connected',
|
|
197
|
+
Sendgrid: 'paper-plane-tilt',
|
|
198
|
+
Apollo: 'rocket-launch',
|
|
199
|
+
Kaspr: 'identification-card',
|
|
200
|
+
OpenAi: 'robot',
|
|
201
|
+
Ultramsg: 'whatsapp-logo',
|
|
202
|
+
Slack: 'slack-logo',
|
|
203
|
+
Telegram: 'telegram-logo',
|
|
204
|
+
Discord: 'discord-logo',
|
|
205
|
+
};
|
|
@@ -189,7 +189,7 @@ export class CoToast {
|
|
|
189
189
|
"references": {
|
|
190
190
|
"CoToastActionsLayout": {
|
|
191
191
|
"location": "local",
|
|
192
|
-
"path": "/Users/agox/
|
|
192
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-toast/co-toast.tsx",
|
|
193
193
|
"id": "src/components/co-toast/co-toast.tsx::CoToastActionsLayout"
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -215,7 +215,7 @@ export class CoToast {
|
|
|
215
215
|
"references": {
|
|
216
216
|
"CoToastVariant": {
|
|
217
217
|
"location": "local",
|
|
218
|
-
"path": "/Users/agox/
|
|
218
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-toast/co-toast.tsx",
|
|
219
219
|
"id": "src/components/co-toast/co-toast.tsx::CoToastVariant"
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { computePosition, findScrollParents, getOffsetAncestor } from "../../utils/positioning";
|
|
3
|
+
import { isPopoverOpen } from "../../utils/popoverApi";
|
|
3
4
|
/**
|
|
4
5
|
* Globo de ayuda que aparece al pasar el mouse o enfocar el control envuelto.
|
|
5
6
|
* Es la forma de rotular un control de solo ícono (en lugar del `title`
|
|
@@ -144,7 +145,7 @@ export class CoTooltip {
|
|
|
144
145
|
// top layer (Popover API), `position:fixed` resolves against the viewport
|
|
145
146
|
// regardless of any transformed/filtered ancestor — so skip compensation
|
|
146
147
|
// (it would double-shift). Only applies in the no-Popover-API fallback.
|
|
147
|
-
const promoted = this.panelEl
|
|
148
|
+
const promoted = isPopoverOpen(this.panelEl);
|
|
148
149
|
if (!promoted) {
|
|
149
150
|
if (!this.offsetAncestorComputed) {
|
|
150
151
|
this.cachedOffsetAncestor = getOffsetAncestor(this.panelEl);
|
|
@@ -244,7 +245,7 @@ export class CoTooltip {
|
|
|
244
245
|
if (!el || typeof el.showPopover !== 'function')
|
|
245
246
|
return;
|
|
246
247
|
try {
|
|
247
|
-
if (!el
|
|
248
|
+
if (!isPopoverOpen(el))
|
|
248
249
|
el.showPopover();
|
|
249
250
|
}
|
|
250
251
|
catch (_a) {
|
|
@@ -279,7 +280,7 @@ export class CoTooltip {
|
|
|
279
280
|
// ── Render ─────────────────────────────────────────────────
|
|
280
281
|
render() {
|
|
281
282
|
const side = this.actualPlacement.split('-')[0];
|
|
282
|
-
return (h("div", { key: '
|
|
283
|
+
return (h("div", { key: '2254aedec8e6f6f5d2a5eb8421474d367bf88618', class: "co-tooltip" }, h("div", { key: '8e165c1e70c2147924f125b48c893a92ec23e6c7', class: "co-tooltip__trigger", ref: (el) => (this.triggerEl = el), onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onPointerDown: this.handlePointerDown, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut, onKeyDown: this.handleKeyDown, "aria-describedby": this.visible ? 'tooltip-panel' : undefined }, h("slot", { key: 'c5cf8e75b1be170ed3cd7193677779e426b2eb90' })), (this.visible || this.closing) && this.content && (h("div", { key: '181da8ed7444cbeefecf4282e267737593c8be0b', id: "tooltip-panel", class: {
|
|
283
284
|
'co-tooltip__panel': true,
|
|
284
285
|
[`co-tooltip__panel--${side}`]: true,
|
|
285
286
|
'co-tooltip__panel--closing': this.closing,
|
|
@@ -292,7 +293,7 @@ export class CoTooltip {
|
|
|
292
293
|
this.promotePanel();
|
|
293
294
|
this.scheduleUpdate();
|
|
294
295
|
}
|
|
295
|
-
}, style: { maxWidth: this.maxWidth } }, this.arrow && h("div", { key: '
|
|
296
|
+
}, style: { maxWidth: this.maxWidth } }, this.arrow && h("div", { key: '526fbe6d0317d185491a5e564739c5f2e793688a', class: `co-tooltip__arrow co-tooltip__arrow--${side}` }), h("span", { key: '0a09d46f957d3231ee1584565acc815501ab1fbc', class: "co-tooltip__content" }, this.content), this.shortcut && h("co-kbd", { key: '15a382aa3e6d5547f8450389faa5360e2ee5ecac', keys: this.shortcut, surface: "dark", size: "xs" })))));
|
|
296
297
|
}
|
|
297
298
|
static get is() { return "co-tooltip"; }
|
|
298
299
|
static get encapsulation() { return "shadow"; }
|
|
@@ -214,7 +214,7 @@ export class CoTransferList {
|
|
|
214
214
|
"references": {
|
|
215
215
|
"TransferOption": {
|
|
216
216
|
"location": "local",
|
|
217
|
-
"path": "/Users/agox/
|
|
217
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-transfer-list/co-transfer-list.tsx",
|
|
218
218
|
"id": "src/components/co-transfer-list/co-transfer-list.tsx::TransferOption"
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -243,7 +243,7 @@ export class CoTreeItem {
|
|
|
243
243
|
"references": {
|
|
244
244
|
"TreeItemSelection": {
|
|
245
245
|
"location": "local",
|
|
246
|
-
"path": "/Users/agox/
|
|
246
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-tree-item/co-tree-item.tsx",
|
|
247
247
|
"id": "src/components/co-tree-item/co-tree-item.tsx::TreeItemSelection"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -269,7 +269,7 @@ export class CoTreeItem {
|
|
|
269
269
|
"references": {
|
|
270
270
|
"TreeItemSize": {
|
|
271
271
|
"location": "local",
|
|
272
|
-
"path": "/Users/agox/
|
|
272
|
+
"path": "/Users/agox/worktrees/cobalt-sidebar-icons/packages/core/src/components/co-tree-item/co-tree-item.tsx",
|
|
273
273
|
"id": "src/components/co-tree-item/co-tree-item.tsx::TreeItemSize"
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover API (top layer) con caída segura para navegadores que no la traen
|
|
3
|
+
* (Chrome / Android WebView < 114: Android 12 sin actualizar viene con Chrome 99).
|
|
4
|
+
*
|
|
5
|
+
* ⛔ Nunca `el.matches(':popover-open')` pelado: en esos navegadores el pseudo-selector es
|
|
6
|
+
* DESCONOCIDO y `matches()` LANZA `SyntaxError` — en co-popover cortaba `updatePosition` antes de
|
|
7
|
+
* marcar el panel como posicionado y todo dropdown quedaba invisible (reporte 2026-10-01). Sin la
|
|
8
|
+
* API nada está promovido: el panel vive en su lugar con `position: fixed` + compensación del
|
|
9
|
+
* ancestro (la rama «fallback» que cada componente ya tiene).
|
|
10
|
+
*/
|
|
11
|
+
export function supportsPopover(el) {
|
|
12
|
+
return !!el && typeof el.showPopover === 'function';
|
|
13
|
+
}
|
|
14
|
+
export function isPopoverOpen(el) {
|
|
15
|
+
if (!supportsPopover(el))
|
|
16
|
+
return false;
|
|
17
|
+
try {
|
|
18
|
+
return el.matches(':popover-open');
|
|
19
|
+
}
|
|
20
|
+
catch (_a) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as o,c,h as a}from"./index.js";import{R as i}from"./p-CWneqh4n.js";import{d as s}from"./p-CaFwCFgg.js";import{d as r}from"./p-BSt2t5Fy.js";import{d as l}from"./p-qMNHMnvI.js";import{d as n}from"./p-DldA2IL3.js";import{d as p}from"./p-BH184F0X.js";import{d as h}from"./p-_S5htX1i.js";import{d}from"./p-B5F93Ujt.js";const m=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coSearch=c(this,"coSearch",7),this.coChange=c(this,"coChange",7),this.coClear=c(this,"coClear",7),this.required=!1,this.placeholder="Search…",this.disabled=!1,this.clearable=!0,this.layout="vertical",this.size="md",this.status="default",this.options="[]",this.value="",this.multiple=!1,this.loading=!1,this.minChars=1,this.searchDebounce=300,this.emptyMessage="No results",this.isOpen=!1,this.query="",this.focused=!1,this.handleInput=e=>{const t=e.target.value;this.query=t,this.debounceTimer&&clearTimeout(this.debounceTimer),t.length>=this.minChars?(this.debounceTimer=setTimeout((()=>this.coSearch.emit(t)),this.searchDebounce),this.isOpen=!0):this.isOpen=!1},this.handleFocus=()=>{this.focused=!0,this.query.length>=this.minChars&&this.parsedOptions.length>0&&(this.isOpen=!0)},this.handleClear=e=>{var t;e.stopPropagation(),this.query="",this.value=this.multiple?"[]":"",this.isOpen=!1,this.coClear.emit(),this.coChange.emit({value:this.multiple?[]:"",item:null}),null===(t=this.inputEl)||void 0===t||t.focus()},this.handleChipRemove=e=>{const t=this.selectedValues.filter((t=>t!==e));this.value=JSON.stringify(t),this.coChange.emit({value:t,item:{_id:e,label:e}})},this.handleListChange=e=>{if(null==e.value)return this.value=this.multiple?"[]":"",this.query="",this.isOpen=!1,void this.coChange.emit({value:null,item:null});this.multiple?(this.value=JSON.stringify(e.value),this.coChange.emit({value:e.value,item:e.item})):(this.value=e.value,this.query=e.item.label,this.isOpen=!1,this.coChange.emit({value:e.value,item:e.item}))},this.handleInputKeyDown=async e=>{"Escape"!==e.key?this.isOpen&&this.optionListEl&&("ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key||(e.preventDefault(),await this.optionListEl.handleKey(e))):this.isOpen=!1}}get parsedOptions(){let e=this.options;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return[]}return Array.isArray(e)?e.map((e=>"string"==typeof e?{label:e,value:e}:e)):[]}get selectedValues(){if(this.multiple){if("string"==typeof this.value)try{return JSON.parse(this.value)}catch(e){return this.value?[this.value]:[]}return this.value}return"string"==typeof this.value&&this.value?[this.value]:[]}get hasValue(){return this.selectedValues.length>0}get statusIcon(){return{error:"warning-circle",success:"check-circle",warning:"warning",info:"info"}[this.status]||null}componentWillLoad(){this.syncQueryFromValue()}onOptionsChange(){this.query.length>=this.minChars&&(this.isOpen=!0),this.focused||this.syncQueryFromValue()}onValueChange(){this.syncQueryFromValue()}syncQueryFromValue(){if(!this.multiple&&"string"==typeof this.value&&this.value){const e=this.parsedOptions.find((e=>e.value===this.value));this.query=e?e.label:this.value}else this.multiple||this.value||(this.query="")}handleDocumentClick(e){this.el.contains(e.target)||(this.isOpen=!1,this.focused=!1)}render(){const e=this.parsedOptions,t=this.selectedValues;return a("div",{key:"02fe5e70777f1a39038af676c76032ae1fbecbc8",class:{"co-autocomplete":!0,"co-autocomplete--disabled":this.disabled,"co-autocomplete--focused":this.focused,["co-autocomplete--"+this.size]:!0,["co-autocomplete--"+this.status]:"default"!==this.status}},(this.label||this.secondaryLabel)&&a("div",{key:"a9237e72752d5d3921d70cb2d63a160625db7e62",class:"co-autocomplete__labels"},this.label&&a("label",{key:"f1284520b961bf6598e4b9c8a3d943b8b1aa847f",class:"co-autocomplete__label"},this.label,a(i,{key:"6c40530c3e2dca2b3adef8a8ce00c256b7070b48",required:this.required})),this.secondaryLabel&&a("span",{key:"37a0de4ba199f1bc6503543e18261623642c00cf",class:"co-autocomplete__secondary-label"},this.secondaryLabel)),a("div",{key:"30ff3eacbf9634085b212135356c3edbef6e8df9",class:"co-autocomplete__field"},this.iconLeft&&a("co-icon",{key:"3b8c564aae36e7db59c39fcc31fda7d98f55fae8",name:this.iconLeft,size:16,class:"co-autocomplete__icon"}),this.multiple&&t.length>0&&a("div",{key:"df7f0b08d2b456a048368f80c828ee83502b0a20",class:"co-autocomplete__chips"},t.map((e=>{const t=this.parsedOptions.find((t=>t.value===e));return a("co-chip",{label:t?t.label:e,size:"small",removable:!0,onCoRemove:()=>this.handleChipRemove(e)})}))),a("input",{key:"e2d9cfa48001c20aa9e8a4ef5800135172b2aff9",ref:e=>this.inputEl=e,class:"co-autocomplete__input",type:"text",value:this.query,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onFocus:this.handleFocus,onKeyDown:this.handleInputKeyDown}),this.loading&&a("div",{key:"e58449cb033553a123f3c2b1daa9b9c62a571273",class:"co-autocomplete__spinner"}),this.clearable&&(this.hasValue||this.query)&&!this.disabled&&a("button",{key:"ea8021e0807cd0eece9933f84772f5f497d2a63c",class:"co-autocomplete__clear",type:"button",tabIndex:-1,onClick:this.handleClear,"aria-label":"Clear"},a("co-icon",{key:"67a2f961d0ece0178811aa04fd9e5a082976ef6a",name:"x-circle",size:16,weight:"fill"}))),this.isOpen&&a("div",{key:"562cc6f307edd60c361c60974d0423550d8f681a",class:"co-autocomplete__dropdown"},a("co-option-list",{key:"3dec3da0d38adb8986b57960c74b697ffbc211dd",ref:e=>this.optionListEl=e,items:JSON.stringify(e.map((e=>({_id:e.value,label:e.label,icon:e.icon,disabled:e.disabled})))),value:this.multiple?JSON.stringify(this.selectedValues):this.selectedValues[0]||"",multiple:this.multiple,selectedAffordance:"check",virtual:!0,loading:this.loading,emptyMessage:this.emptyMessage,onCoChange:e=>this.handleListChange(e.detail)})),this.helperText&&a("div",{key:"5c21f62defe09b0160aeec8eaeaa881408dbe964",class:"co-autocomplete__helper co-autocomplete__helper--"+this.status},this.statusIcon&&a("co-icon",{key:"166ccdb5f1e308bb0212c473881bb36a33a8d2e4",name:this.statusIcon,size:14,weight:"fill",class:"co-autocomplete__helper-icon"}),a("span",{key:"bf4b038b665c269484b3bf841b19c92d5b0ceb27",class:"co-autocomplete__helper-text"},this.helperText)))}get el(){return this}static get watchers(){return{options:[{onOptionsChange:0}],value:[{onValueChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1;position:relative}.co-autocomplete{display:flex;flex-direction:column;gap:var(--co-spacing-sm2);position:relative}.co-autocomplete__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-autocomplete__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;cursor:default}.co-autocomplete__secondary-label{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;text-align:right}.co-autocomplete--disabled .co-autocomplete__label,.co-autocomplete--disabled .co-autocomplete__secondary-label{color:var(--co-semantic-text-disabled)}.co-autocomplete__field{display:flex;align-items:center;flex-wrap:wrap;gap:var(--co-spacing-xs);padding:var(--co-spacing-sm2) var(--co-spacing-md);background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);min-height:40px;box-sizing:border-box;transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-autocomplete--s .co-autocomplete__field{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm);font-size:var(--co-font-size-12)}.co-autocomplete--sm .co-autocomplete__field{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-14)}.co-autocomplete--lg .co-autocomplete__field{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg);font-size:var(--co-font-size-16)}.co-autocomplete--focused .co-autocomplete__field{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-autocomplete--disabled .co-autocomplete__field{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-autocomplete--error .co-autocomplete__field{border-color:var(--co-semantic-border-error, var(--co-semantic-status-error))}.co-autocomplete--success .co-autocomplete__field{border-color:var(--co-semantic-status-success)}.co-autocomplete--warning .co-autocomplete__field{border-color:var(--co-color-status-review)}.co-autocomplete--info .co-autocomplete__field{border-color:var(--co-semantic-status-info)}.co-autocomplete__icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-autocomplete__chips{display:flex;flex-wrap:wrap;gap:var(--co-spacing-xs)}.co-autocomplete__input{flex:1;min-width:80px;border:none;background:transparent;color:var(--co-semantic-text-default);font-family:inherit;font-size:inherit;font-weight:400;line-height:1;padding:0;outline:none}.co-autocomplete__input::placeholder{color:var(--co-semantic-text-muted)}.co-autocomplete--disabled .co-autocomplete__input{color:var(--co-semantic-text-disabled);cursor:not-allowed}.co-autocomplete__clear{flex-shrink:0;display:flex;align-items:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-autocomplete__clear:hover{color:var(--co-semantic-text-default)}.co-autocomplete__spinner{width:16px;height:16px;border:2px solid var(--co-semantic-border-subtle);border-top-color:var(--co-semantic-text-default);border-radius:var(--co-border-radius-full);animation:co-spin 0.6s linear infinite;flex-shrink:0}@keyframes co-spin{to{transform:rotate(360deg)}}.co-autocomplete__dropdown{position:absolute;top:100%;left:0;right:0;z-index:100;margin-top:var(--co-spacing-xs);background:var(--co-semantic-surface-secondary);border:1px solid var(--co-semantic-border-subtle);border-radius:var(--co-border-radius-sm, 12px);box-shadow:0 4px 16px rgba(31, 28, 27, 0.08);overflow:hidden;}.co-autocomplete__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-autocomplete__helper-icon{flex-shrink:0;display:flex;align-items:center}.co-autocomplete__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1}.co-autocomplete__helper--error .co-autocomplete__helper-icon,.co-autocomplete__helper--error .co-autocomplete__helper-text{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}.co-autocomplete__helper--success .co-autocomplete__helper-icon,.co-autocomplete__helper--success .co-autocomplete__helper-text{color:var(--co-semantic-text-success, var(--co-semantic-status-success))}.co-autocomplete__helper--warning .co-autocomplete__helper-icon,.co-autocomplete__helper--warning .co-autocomplete__helper-text{color:var(--co-semantic-text-warning, var(--co-color-status-review))}.co-autocomplete__helper--info .co-autocomplete__helper-icon,.co-autocomplete__helper--info .co-autocomplete__helper-text{color:var(--co-semantic-text-info, var(--co-semantic-status-info))}:host([layout='horizontal']) .co-autocomplete{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-autocomplete__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-autocomplete__label{white-space:normal}:host([layout='horizontal']) .co-autocomplete>:not(.co-autocomplete__labels){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-semantic-text-error, var(--co-color-status-error))}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}"}},[1,"co-autocomplete",{label:[1],required:[4],secondaryLabel:[1,"secondary-label"],placeholder:[1],disabled:[4],iconLeft:[1,"icon-left"],clearable:[4],helperText:[1,"helper-text"],layout:[513],size:[513],status:[1],options:[1],value:[1025],multiple:[4],loading:[4],minChars:[2,"min-chars"],searchDebounce:[2,"search-debounce"],emptyMessage:[1,"empty-message"],isOpen:[32],query:[32],focused:[32]},[[4,"click","handleDocumentClick"]],{options:[{onOptionsChange:0}],value:[{onValueChange:0}]}]);function u(){"undefined"!=typeof customElements&&["co-autocomplete","co-avatar","co-chip","co-icon","co-kbd","co-loader","co-option-list","co-tooltip"].forEach((t=>{switch(t){case"co-autocomplete":customElements.get(e(t))||customElements.define(e(t),m);break;case"co-avatar":customElements.get(e(t))||s();break;case"co-chip":customElements.get(e(t))||r();break;case"co-icon":customElements.get(e(t))||l();break;case"co-kbd":customElements.get(e(t))||n();break;case"co-loader":customElements.get(e(t))||p();break;case"co-option-list":customElements.get(e(t))||h();break;case"co-tooltip":customElements.get(e(t))||d()}}))}u();const f=m,b=u;export{f as CoAutocomplete,b as defineCustomElement}
|
|
1
|
+
import{t as e,p as t,H as o,c,h as a}from"./index.js";import{R as i}from"./p-CWneqh4n.js";import{d as s}from"./p-BRIf9NGv.js";import{d as r}from"./p-BSt2t5Fy.js";import{d as l}from"./p-qMNHMnvI.js";import{d as n}from"./p-DldA2IL3.js";import{d as p}from"./p-BH184F0X.js";import{d as h}from"./p-BGNXvnDr.js";import{d}from"./p-DRL-a5hO.js";const m=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coSearch=c(this,"coSearch",7),this.coChange=c(this,"coChange",7),this.coClear=c(this,"coClear",7),this.required=!1,this.placeholder="Search…",this.disabled=!1,this.clearable=!0,this.layout="vertical",this.size="md",this.status="default",this.options="[]",this.value="",this.multiple=!1,this.loading=!1,this.minChars=1,this.searchDebounce=300,this.emptyMessage="No results",this.isOpen=!1,this.query="",this.focused=!1,this.handleInput=e=>{const t=e.target.value;this.query=t,this.debounceTimer&&clearTimeout(this.debounceTimer),t.length>=this.minChars?(this.debounceTimer=setTimeout((()=>this.coSearch.emit(t)),this.searchDebounce),this.isOpen=!0):this.isOpen=!1},this.handleFocus=()=>{this.focused=!0,this.query.length>=this.minChars&&this.parsedOptions.length>0&&(this.isOpen=!0)},this.handleClear=e=>{var t;e.stopPropagation(),this.query="",this.value=this.multiple?"[]":"",this.isOpen=!1,this.coClear.emit(),this.coChange.emit({value:this.multiple?[]:"",item:null}),null===(t=this.inputEl)||void 0===t||t.focus()},this.handleChipRemove=e=>{const t=this.selectedValues.filter((t=>t!==e));this.value=JSON.stringify(t),this.coChange.emit({value:t,item:{_id:e,label:e}})},this.handleListChange=e=>{if(null==e.value)return this.value=this.multiple?"[]":"",this.query="",this.isOpen=!1,void this.coChange.emit({value:null,item:null});this.multiple?(this.value=JSON.stringify(e.value),this.coChange.emit({value:e.value,item:e.item})):(this.value=e.value,this.query=e.item.label,this.isOpen=!1,this.coChange.emit({value:e.value,item:e.item}))},this.handleInputKeyDown=async e=>{"Escape"!==e.key?this.isOpen&&this.optionListEl&&("ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"Enter"!==e.key||(e.preventDefault(),await this.optionListEl.handleKey(e))):this.isOpen=!1}}get parsedOptions(){let e=this.options;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return[]}return Array.isArray(e)?e.map((e=>"string"==typeof e?{label:e,value:e}:e)):[]}get selectedValues(){if(this.multiple){if("string"==typeof this.value)try{return JSON.parse(this.value)}catch(e){return this.value?[this.value]:[]}return this.value}return"string"==typeof this.value&&this.value?[this.value]:[]}get hasValue(){return this.selectedValues.length>0}get statusIcon(){return{error:"warning-circle",success:"check-circle",warning:"warning",info:"info"}[this.status]||null}componentWillLoad(){this.syncQueryFromValue()}onOptionsChange(){this.query.length>=this.minChars&&(this.isOpen=!0),this.focused||this.syncQueryFromValue()}onValueChange(){this.syncQueryFromValue()}syncQueryFromValue(){if(!this.multiple&&"string"==typeof this.value&&this.value){const e=this.parsedOptions.find((e=>e.value===this.value));this.query=e?e.label:this.value}else this.multiple||this.value||(this.query="")}handleDocumentClick(e){this.el.contains(e.target)||(this.isOpen=!1,this.focused=!1)}render(){const e=this.parsedOptions,t=this.selectedValues;return a("div",{key:"02fe5e70777f1a39038af676c76032ae1fbecbc8",class:{"co-autocomplete":!0,"co-autocomplete--disabled":this.disabled,"co-autocomplete--focused":this.focused,["co-autocomplete--"+this.size]:!0,["co-autocomplete--"+this.status]:"default"!==this.status}},(this.label||this.secondaryLabel)&&a("div",{key:"a9237e72752d5d3921d70cb2d63a160625db7e62",class:"co-autocomplete__labels"},this.label&&a("label",{key:"f1284520b961bf6598e4b9c8a3d943b8b1aa847f",class:"co-autocomplete__label"},this.label,a(i,{key:"6c40530c3e2dca2b3adef8a8ce00c256b7070b48",required:this.required})),this.secondaryLabel&&a("span",{key:"37a0de4ba199f1bc6503543e18261623642c00cf",class:"co-autocomplete__secondary-label"},this.secondaryLabel)),a("div",{key:"30ff3eacbf9634085b212135356c3edbef6e8df9",class:"co-autocomplete__field"},this.iconLeft&&a("co-icon",{key:"3b8c564aae36e7db59c39fcc31fda7d98f55fae8",name:this.iconLeft,size:16,class:"co-autocomplete__icon"}),this.multiple&&t.length>0&&a("div",{key:"df7f0b08d2b456a048368f80c828ee83502b0a20",class:"co-autocomplete__chips"},t.map((e=>{const t=this.parsedOptions.find((t=>t.value===e));return a("co-chip",{label:t?t.label:e,size:"small",removable:!0,onCoRemove:()=>this.handleChipRemove(e)})}))),a("input",{key:"e2d9cfa48001c20aa9e8a4ef5800135172b2aff9",ref:e=>this.inputEl=e,class:"co-autocomplete__input",type:"text",value:this.query,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onFocus:this.handleFocus,onKeyDown:this.handleInputKeyDown}),this.loading&&a("div",{key:"e58449cb033553a123f3c2b1daa9b9c62a571273",class:"co-autocomplete__spinner"}),this.clearable&&(this.hasValue||this.query)&&!this.disabled&&a("button",{key:"ea8021e0807cd0eece9933f84772f5f497d2a63c",class:"co-autocomplete__clear",type:"button",tabIndex:-1,onClick:this.handleClear,"aria-label":"Clear"},a("co-icon",{key:"67a2f961d0ece0178811aa04fd9e5a082976ef6a",name:"x-circle",size:16,weight:"fill"}))),this.isOpen&&a("div",{key:"562cc6f307edd60c361c60974d0423550d8f681a",class:"co-autocomplete__dropdown"},a("co-option-list",{key:"3dec3da0d38adb8986b57960c74b697ffbc211dd",ref:e=>this.optionListEl=e,items:JSON.stringify(e.map((e=>({_id:e.value,label:e.label,icon:e.icon,disabled:e.disabled})))),value:this.multiple?JSON.stringify(this.selectedValues):this.selectedValues[0]||"",multiple:this.multiple,selectedAffordance:"check",virtual:!0,loading:this.loading,emptyMessage:this.emptyMessage,onCoChange:e=>this.handleListChange(e.detail)})),this.helperText&&a("div",{key:"5c21f62defe09b0160aeec8eaeaa881408dbe964",class:"co-autocomplete__helper co-autocomplete__helper--"+this.status},this.statusIcon&&a("co-icon",{key:"166ccdb5f1e308bb0212c473881bb36a33a8d2e4",name:this.statusIcon,size:14,weight:"fill",class:"co-autocomplete__helper-icon"}),a("span",{key:"bf4b038b665c269484b3bf841b19c92d5b0ceb27",class:"co-autocomplete__helper-text"},this.helperText)))}get el(){return this}static get watchers(){return{options:[{onOptionsChange:0}],value:[{onValueChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1;position:relative}.co-autocomplete{display:flex;flex-direction:column;gap:var(--co-spacing-sm2);position:relative}.co-autocomplete__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-autocomplete__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;cursor:default}.co-autocomplete__secondary-label{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;text-align:right}.co-autocomplete--disabled .co-autocomplete__label,.co-autocomplete--disabled .co-autocomplete__secondary-label{color:var(--co-semantic-text-disabled)}.co-autocomplete__field{display:flex;align-items:center;flex-wrap:wrap;gap:var(--co-spacing-xs);padding:var(--co-spacing-sm2) var(--co-spacing-md);background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);min-height:40px;box-sizing:border-box;transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-autocomplete--s .co-autocomplete__field{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm);font-size:var(--co-font-size-12)}.co-autocomplete--sm .co-autocomplete__field{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-14)}.co-autocomplete--lg .co-autocomplete__field{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg);font-size:var(--co-font-size-16)}.co-autocomplete--focused .co-autocomplete__field{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-autocomplete--disabled .co-autocomplete__field{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-autocomplete--error .co-autocomplete__field{border-color:var(--co-semantic-border-error, var(--co-semantic-status-error))}.co-autocomplete--success .co-autocomplete__field{border-color:var(--co-semantic-status-success)}.co-autocomplete--warning .co-autocomplete__field{border-color:var(--co-color-status-review)}.co-autocomplete--info .co-autocomplete__field{border-color:var(--co-semantic-status-info)}.co-autocomplete__icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-autocomplete__chips{display:flex;flex-wrap:wrap;gap:var(--co-spacing-xs)}.co-autocomplete__input{flex:1;min-width:80px;border:none;background:transparent;color:var(--co-semantic-text-default);font-family:inherit;font-size:inherit;font-weight:400;line-height:1;padding:0;outline:none}.co-autocomplete__input::placeholder{color:var(--co-semantic-text-muted)}.co-autocomplete--disabled .co-autocomplete__input{color:var(--co-semantic-text-disabled);cursor:not-allowed}.co-autocomplete__clear{flex-shrink:0;display:flex;align-items:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-autocomplete__clear:hover{color:var(--co-semantic-text-default)}.co-autocomplete__spinner{width:16px;height:16px;border:2px solid var(--co-semantic-border-subtle);border-top-color:var(--co-semantic-text-default);border-radius:var(--co-border-radius-full);animation:co-spin 0.6s linear infinite;flex-shrink:0}@keyframes co-spin{to{transform:rotate(360deg)}}.co-autocomplete__dropdown{position:absolute;top:100%;left:0;right:0;z-index:100;margin-top:var(--co-spacing-xs);background:var(--co-semantic-surface-secondary);border:1px solid var(--co-semantic-border-subtle);border-radius:var(--co-border-radius-sm, 12px);box-shadow:0 4px 16px rgba(31, 28, 27, 0.08);overflow:hidden;}.co-autocomplete__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-autocomplete__helper-icon{flex-shrink:0;display:flex;align-items:center}.co-autocomplete__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1}.co-autocomplete__helper--error .co-autocomplete__helper-icon,.co-autocomplete__helper--error .co-autocomplete__helper-text{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}.co-autocomplete__helper--success .co-autocomplete__helper-icon,.co-autocomplete__helper--success .co-autocomplete__helper-text{color:var(--co-semantic-text-success, var(--co-semantic-status-success))}.co-autocomplete__helper--warning .co-autocomplete__helper-icon,.co-autocomplete__helper--warning .co-autocomplete__helper-text{color:var(--co-semantic-text-warning, var(--co-color-status-review))}.co-autocomplete__helper--info .co-autocomplete__helper-icon,.co-autocomplete__helper--info .co-autocomplete__helper-text{color:var(--co-semantic-text-info, var(--co-semantic-status-info))}:host([layout='horizontal']) .co-autocomplete{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-autocomplete__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-autocomplete__label{white-space:normal}:host([layout='horizontal']) .co-autocomplete>:not(.co-autocomplete__labels){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-semantic-text-error, var(--co-color-status-error))}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}"}},[1,"co-autocomplete",{label:[1],required:[4],secondaryLabel:[1,"secondary-label"],placeholder:[1],disabled:[4],iconLeft:[1,"icon-left"],clearable:[4],helperText:[1,"helper-text"],layout:[513],size:[513],status:[1],options:[1],value:[1025],multiple:[4],loading:[4],minChars:[2,"min-chars"],searchDebounce:[2,"search-debounce"],emptyMessage:[1,"empty-message"],isOpen:[32],query:[32],focused:[32]},[[4,"click","handleDocumentClick"]],{options:[{onOptionsChange:0}],value:[{onValueChange:0}]}]);function u(){"undefined"!=typeof customElements&&["co-autocomplete","co-avatar","co-chip","co-icon","co-kbd","co-loader","co-option-list","co-tooltip"].forEach((t=>{switch(t){case"co-autocomplete":customElements.get(e(t))||customElements.define(e(t),m);break;case"co-avatar":customElements.get(e(t))||s();break;case"co-chip":customElements.get(e(t))||r();break;case"co-icon":customElements.get(e(t))||l();break;case"co-kbd":customElements.get(e(t))||n();break;case"co-loader":customElements.get(e(t))||p();break;case"co-option-list":customElements.get(e(t))||h();break;case"co-tooltip":customElements.get(e(t))||d()}}))}u();const f=m,b=u;export{f as CoAutocomplete,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,p as o,H as t,c as e,h as r}from"./index.js";import{d as i}from"./p-
|
|
1
|
+
import{t as a,p as o,H as t,c as e,h as r}from"./index.js";import{d as i}from"./p-BRIf9NGv.js";import{d as s}from"./p-qMNHMnvI.js";import{d as c}from"./p-DldA2IL3.js";import{d as n}from"./p-DRL-a5hO.js";const l={xl:80,lg:64,md:56,sm:48,xs:32,xxs:24},v={xl:"var(--co-font-size-26)",lg:"var(--co-font-size-22)",md:"var(--co-font-size-18)",sm:"var(--co-font-size-16)",xs:"var(--co-font-size-12)",xxs:"var(--co-font-size-10)"},p=o(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.coClick=e(this,"coClick",3),this.items=[],this.max=4,this.size="xs",this.shape="circle",this.interactive=!1,this.activate=()=>{this.coClick.emit()}}accessibleLabel(a){return this.label?this.label:a.map((a=>a.name||a.text)).filter(Boolean).join(", ")}render(){var a,o;const t=Array.isArray(this.items)?this.items:[],e=this.max>0?this.max:t.length,i=t.slice(0,e),s=Math.max(0,t.length-e),c=null!==(a=l[this.size])&&void 0!==a?a:l.xs,n=null!==(o=v[this.size])&&void 0!==o?o:v.xs,p=t.slice(e).map((a=>a.name||a.text)).filter(Boolean).join(", "),u=this.interactive?"button":"div",d=this.interactive?{type:"button","aria-label":this.accessibleLabel(t),onClick:this.activate}:{role:"group"};return r(u,Object.assign({key:"7e14b71d5b7391c15fcba50aa43964fdf65282e3",class:{"co-avatar-group":!0,"co-avatar-group--interactive":this.interactive}},d),i.map(((a,o)=>{var t,e,i;return r("co-avatar",{key:o,class:"co-avatar-group__avatar",type:null!==(t=a.type)&&void 0!==t?t:a.src?"image":a.icon?"icon":"text",size:this.size,shape:null!==(e=a.shape)&&void 0!==e?e:this.shape,text:a.text,src:a.src,icon:null!==(i=a.icon)&&void 0!==i?i:"user",color:a.color,"ring-color":a.ringColor,name:a.name||a.text||""})})),s>0&&r("co-tooltip",{key:"f3cc2f5a9f1ceac07ea3b665e6bd0c87804d27ae",class:"co-avatar-group__slot",content:p,placement:"bottom"},r("div",{key:"c0b5fcb8df88917b06a2a9b36f1c2798f10730ff",class:"co-avatar-group__overflow",style:{width:c+"px",height:c+"px",fontSize:n},role:"img","aria-label":"+"+s},"+",s)))}static get style(){return":host{display:inline-flex}.co-avatar-group{display:inline-flex;align-items:center}.co-avatar-group--interactive{appearance:none;-webkit-appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;color:inherit;cursor:pointer;border-radius:var(--co-border-radius-full);outline:none;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-avatar-group--interactive:hover{opacity:0.88}.co-avatar-group--interactive:focus-visible{box-shadow:0 0 0 2px var(--co-semantic-surface-page), 0 0 0 4px var(--co-semantic-border-focus)}.co-avatar-group__slot{display:inline-flex;align-items:center;line-height:0}.co-avatar-group>*:not(:first-child){margin-left:calc(-1 * var(--co-avatar-group-overlap, var(--co-spacing-sm)))}.co-avatar-group__avatar::part(avatar),.co-avatar-group__overflow{box-shadow:0 0 0 var(--co-avatar-group-ring-width, 2px) var(--co-semantic-surface-page)}.co-avatar-group__avatar,.co-avatar-group__overflow{vertical-align:middle}.co-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:var(--co-border-radius-full);background:var(--co-semantic-surface-muted);color:var(--co-semantic-text-secondary);font-family:var(--co-font-family-primary);font-weight:600;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);flex-shrink:0;user-select:none;-webkit-font-smoothing:antialiased}"}},[1,"co-avatar-group",{items:[16],max:[2],size:[1],shape:[1],interactive:[4],label:[1]}]);function u(){"undefined"!=typeof customElements&&["co-avatar-group","co-avatar","co-icon","co-kbd","co-tooltip"].forEach((o=>{switch(o){case"co-avatar-group":customElements.get(a(o))||customElements.define(a(o),p);break;case"co-avatar":customElements.get(a(o))||i();break;case"co-icon":customElements.get(a(o))||s();break;case"co-kbd":customElements.get(a(o))||c();break;case"co-tooltip":customElements.get(a(o))||n()}}))}u();const d=p,f=u;export{d as CoAvatarGroup,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as o,d as s}from"./p-
|
|
1
|
+
import{C as o,d as s}from"./p-BRIf9NGv.js";const p=o,r=s;export{p as CoAvatar,r as defineCustomElement}
|