@brandsync/wc 0.0.3 → 0.0.5
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 +417 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-f9e93a35.entry.js → p-0ded3be8.entry.js} +1 -1
- package/dist/brandsync-wc/p-1dc6d7f5.entry.js +1 -0
- package/dist/brandsync-wc/{p-2b693545.entry.js → p-27288299.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c2cc0d6f.entry.js → p-2742ecef.entry.js} +1 -1
- package/dist/brandsync-wc/p-300eea85.entry.js +1 -0
- package/dist/brandsync-wc/{p-69faa19c.entry.js → p-6c1fa4da.entry.js} +1 -1
- package/dist/brandsync-wc/{p-da11e421.entry.js → p-880ea3f8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f0ca3562.entry.js → p-9e5d2211.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3134f5f5.entry.js → p-ab5cc7af.entry.js} +1 -1
- package/dist/brandsync-wc/p-b24c455f.entry.js +1 -0
- package/dist/brandsync-wc/p-cdbad27a.entry.js +1 -0
- package/dist/brandsync-wc/{p-5739acaf.entry.js → p-cfc3421b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-BOj_41o9.js → p-nLORuTUY.js} +2 -2
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +144 -0
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +92 -0
- package/dist/cjs/bs-composer.cjs.entry.js +1 -1
- package/dist/cjs/bs-data-table.cjs.entry.js +1 -1
- package/dist/cjs/bs-input.cjs.entry.js +3 -3
- package/dist/cjs/bs-menu-item.cjs.entry.js +29 -0
- package/dist/cjs/bs-menu.cjs.entry.js +17 -0
- package/dist/cjs/bs-modal.cjs.entry.js +1 -1
- package/dist/cjs/{index-nyOcuVbF.js → index-CVh-sqA_.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +94 -0
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +81 -0
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +194 -0
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.stories.js +53 -0
- package/dist/collection/components/bs-chatbot-header/genie-logo.js +86 -0
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.cmp.test.js +174 -0
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.css +120 -0
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +280 -0
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.stories.js +129 -0
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-menu/bs-menu.cmp.test.js +18 -0
- package/dist/collection/components/bs-menu/bs-menu.css +20 -0
- package/dist/collection/components/bs-menu/bs-menu.js +39 -0
- package/dist/collection/components/bs-menu/bs-menu.stories.js +15 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +33 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.css +68 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +79 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +37 -0
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-chatbot-header.d.ts +11 -0
- package/dist/components/bs-chatbot-header.js +1 -0
- package/dist/components/bs-chatbot-response-action.d.ts +11 -0
- package/dist/components/bs-chatbot-response-action.js +1 -0
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-menu-item.d.ts +11 -0
- package/dist/components/bs-menu-item.js +1 -0
- package/dist/components/bs-menu.d.ts +11 -0
- package/dist/components/bs-menu.js +1 -0
- package/dist/components/bs-modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cu4gTknX.js → p-BpvhHQSw.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +1 -1
- package/dist/esm/bs-button.entry.js +1 -1
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-chatbot-header.entry.js +142 -0
- package/dist/esm/bs-chatbot-response-action.entry.js +90 -0
- package/dist/esm/bs-composer.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +1 -1
- package/dist/esm/bs-input.entry.js +3 -3
- package/dist/esm/bs-menu-item.entry.js +27 -0
- package/dist/esm/bs-menu.entry.js +15 -0
- package/dist/esm/bs-modal.entry.js +1 -1
- package/dist/esm/{index-BOj_41o9.js → index-nLORuTUY.js} +3 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-chatbot-header/bs-chatbot-header.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-chatbot-header/bs-chatbot-header.d.ts +59 -0
- package/dist/types/components/bs-chatbot-header/bs-chatbot-header.stories.d.ts +9 -0
- package/dist/types/components/bs-chatbot-header/genie-logo.d.ts +1 -0
- package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.d.ts +81 -0
- package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.stories.d.ts +11 -0
- package/dist/types/components/bs-menu/bs-menu.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-menu/bs-menu.d.ts +24 -0
- package/dist/types/components/bs-menu/bs-menu.stories.d.ts +5 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.d.ts +38 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.stories.d.ts +7 -0
- package/dist/types/components.d.ts +507 -0
- package/package.json +2 -1
- package/readme.md +38 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js.map +0 -1
- package/dist/brandsync-wc/index-Cqxk7LcP.js.map +0 -1
- package/dist/brandsync-wc/index.esm.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -423,6 +423,320 @@
|
|
|
423
423
|
}
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
+
{
|
|
427
|
+
"kind": "javascript-module",
|
|
428
|
+
"path": "src/components/bs-chatbot-header/bs-chatbot-header.tsx",
|
|
429
|
+
"declarations": [
|
|
430
|
+
{
|
|
431
|
+
"kind": "class",
|
|
432
|
+
"customElement": true,
|
|
433
|
+
"tagName": "bs-chatbot-header",
|
|
434
|
+
"name": "BsChatbotHeader",
|
|
435
|
+
"description": "The header bar that sits above `bs-composer` in a Genie AI chat panel: the Genie brand mark on\nthe left and four fixed actions (new chat, history, expand, close) on the right.\n\n## When to use\n- The top bar of a Genie AI chat panel, directly above a `bs-composer`.\n\n## When not to use\n- A generic app/page header — this component's layout and actions are purpose-built for the\n Genie chat panel, not a general navigation bar.",
|
|
436
|
+
"attributes": [
|
|
437
|
+
{
|
|
438
|
+
"name": "expanded",
|
|
439
|
+
"description": "Whether the chat panel is currently expanded (e.g. to full viewport width/height). This\ncomponent has no visibility into the surrounding layout, so it does not resize anything\nitself -- it only tracks and reflects the toggle state (via the `expanded` attribute, for CSS\nhooks, and `aria-pressed`/`aria-label` on the expand button) and emits `bsExpand` with the new\nvalue. The consuming app is responsible for actually resizing its own chat panel container in\nresponse to that event, since only the app knows what that container is.",
|
|
440
|
+
"type": {
|
|
441
|
+
"text": "boolean"
|
|
442
|
+
},
|
|
443
|
+
"default": "false",
|
|
444
|
+
"fieldName": "expanded"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "heading",
|
|
448
|
+
"description": "Accessible label for the header landmark, and alt text context for the logo image.",
|
|
449
|
+
"type": {
|
|
450
|
+
"text": "string"
|
|
451
|
+
},
|
|
452
|
+
"default": "'Genie'",
|
|
453
|
+
"fieldName": "heading"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"members": [
|
|
457
|
+
{
|
|
458
|
+
"kind": "field",
|
|
459
|
+
"name": "expanded",
|
|
460
|
+
"description": "Whether the chat panel is currently expanded (e.g. to full viewport width/height). This\ncomponent has no visibility into the surrounding layout, so it does not resize anything\nitself -- it only tracks and reflects the toggle state (via the `expanded` attribute, for CSS\nhooks, and `aria-pressed`/`aria-label` on the expand button) and emits `bsExpand` with the new\nvalue. The consuming app is responsible for actually resizing its own chat panel container in\nresponse to that event, since only the app knows what that container is.",
|
|
461
|
+
"type": {
|
|
462
|
+
"text": "boolean"
|
|
463
|
+
},
|
|
464
|
+
"default": "false",
|
|
465
|
+
"attribute": "expanded",
|
|
466
|
+
"reflects": true
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"kind": "field",
|
|
470
|
+
"name": "heading",
|
|
471
|
+
"description": "Accessible label for the header landmark, and alt text context for the logo image.",
|
|
472
|
+
"type": {
|
|
473
|
+
"text": "string"
|
|
474
|
+
},
|
|
475
|
+
"default": "'Genie'",
|
|
476
|
+
"readonly": true,
|
|
477
|
+
"attribute": "heading"
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"events": [
|
|
481
|
+
{
|
|
482
|
+
"name": "bsClose",
|
|
483
|
+
"description": "Fires when the \"Close\" button is clicked.",
|
|
484
|
+
"type": {
|
|
485
|
+
"text": "CustomEvent<void>"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "bsExpand",
|
|
490
|
+
"description": "Fires when the \"Expand\"/\"Collapse\" button is clicked, with the new `expanded` value.",
|
|
491
|
+
"type": {
|
|
492
|
+
"text": "CustomEvent<boolean>"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "bsHistory",
|
|
497
|
+
"description": "Fires when the \"History\" button is clicked.",
|
|
498
|
+
"type": {
|
|
499
|
+
"text": "CustomEvent<void>"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "bsNewChat",
|
|
504
|
+
"description": "Fires when the \"New chat\" button is clicked.",
|
|
505
|
+
"type": {
|
|
506
|
+
"text": "CustomEvent<void>"
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"slots": [
|
|
511
|
+
{
|
|
512
|
+
"name": "close-icon",
|
|
513
|
+
"description": "Overrides the default \"Close\" button icon."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "expand-icon",
|
|
517
|
+
"description": "Overrides the default \"Expand\"/\"Collapse\" button icon (rendered regardless of `expanded` -- there is no separate confirmed \"collapsed\" glyph in the design, so swap it yourself via this slot if you need one)."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "history-icon",
|
|
521
|
+
"description": "Overrides the default \"History\" button icon."
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "new-chat-icon",
|
|
525
|
+
"description": "Overrides the default \"New chat\" button icon."
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"cssParts": [
|
|
529
|
+
{
|
|
530
|
+
"name": "close",
|
|
531
|
+
"description": "The \"Close\" icon button."
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "expand",
|
|
535
|
+
"description": "The \"Expand\"/\"Collapse\" icon button."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "history",
|
|
539
|
+
"description": "The \"History\" icon button."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "logo",
|
|
543
|
+
"description": "The Genie brand mark (inline SVG)."
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "new-chat",
|
|
547
|
+
"description": "The \"New chat\" icon button."
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"exports": [
|
|
553
|
+
{
|
|
554
|
+
"kind": "js",
|
|
555
|
+
"name": "BsChatbotHeader",
|
|
556
|
+
"declaration": {
|
|
557
|
+
"name": "BsChatbotHeader"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"kind": "custom-element-definition",
|
|
562
|
+
"name": "bs-chatbot-header",
|
|
563
|
+
"declaration": {
|
|
564
|
+
"name": "BsChatbotHeader"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"kind": "javascript-module",
|
|
571
|
+
"path": "src/components/bs-chatbot-response-action/bs-chatbot-response-action.tsx",
|
|
572
|
+
"declarations": [
|
|
573
|
+
{
|
|
574
|
+
"kind": "class",
|
|
575
|
+
"customElement": true,
|
|
576
|
+
"tagName": "bs-chatbot-response-action",
|
|
577
|
+
"name": "BsChatbotResponseAction",
|
|
578
|
+
"description": "The row of action buttons that appears below an AI response message in a Genie chat panel:\nlike, dislike, copy, regenerate, and more-options icon buttons, plus an optional \"N sources\"\nbutton.\n\n## When to use\n- Directly below an AI-generated response message in a Genie chat panel.\n\n## When not to use\n- Below a user's own message -- these actions (regenerate, like/dislike a response, etc.) only\n make sense for AI-generated content.",
|
|
579
|
+
"attributes": [
|
|
580
|
+
{
|
|
581
|
+
"name": "menu-open",
|
|
582
|
+
"description": "Whether the \"more options\" popup menu (the `menu` slot) is currently open. Mutable + reflected\nso the component can track/close itself (kebab click, click outside, Escape) the same way\n`bs-chatbot-header`'s `expanded` prop tracks its own toggle state, while still emitting\n`bsMenuOpen` for the consumer to react to.",
|
|
583
|
+
"type": {
|
|
584
|
+
"text": "boolean"
|
|
585
|
+
},
|
|
586
|
+
"default": "false",
|
|
587
|
+
"fieldName": "menuOpen"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "sources-count",
|
|
591
|
+
"description": "Number of sources backing the response. When set to a positive number, renders the \"N\nsources\" button (singular \"1 source\" / plural \"N sources\"). When unset or `0`, the button is\nnot rendered at all.",
|
|
592
|
+
"type": {
|
|
593
|
+
"text": "number"
|
|
594
|
+
},
|
|
595
|
+
"fieldName": "sourcesCount"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"members": [
|
|
599
|
+
{
|
|
600
|
+
"kind": "field",
|
|
601
|
+
"name": "menuOpen",
|
|
602
|
+
"description": "Whether the \"more options\" popup menu (the `menu` slot) is currently open. Mutable + reflected\nso the component can track/close itself (kebab click, click outside, Escape) the same way\n`bs-chatbot-header`'s `expanded` prop tracks its own toggle state, while still emitting\n`bsMenuOpen` for the consumer to react to.",
|
|
603
|
+
"type": {
|
|
604
|
+
"text": "boolean"
|
|
605
|
+
},
|
|
606
|
+
"default": "false",
|
|
607
|
+
"attribute": "menu-open",
|
|
608
|
+
"reflects": true
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"kind": "field",
|
|
612
|
+
"name": "sourcesCount",
|
|
613
|
+
"description": "Number of sources backing the response. When set to a positive number, renders the \"N\nsources\" button (singular \"1 source\" / plural \"N sources\"). When unset or `0`, the button is\nnot rendered at all.",
|
|
614
|
+
"type": {
|
|
615
|
+
"text": "number"
|
|
616
|
+
},
|
|
617
|
+
"readonly": true,
|
|
618
|
+
"attribute": "sources-count"
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
"events": [
|
|
622
|
+
{
|
|
623
|
+
"name": "bsCopy",
|
|
624
|
+
"description": "Fires when the \"Copy\" button is clicked.",
|
|
625
|
+
"type": {
|
|
626
|
+
"text": "CustomEvent<void>"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "bsDislike",
|
|
631
|
+
"description": "Fires when the \"Dislike\" button is clicked.",
|
|
632
|
+
"type": {
|
|
633
|
+
"text": "CustomEvent<void>"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "bsLike",
|
|
638
|
+
"description": "Fires when the \"Like\" button is clicked.",
|
|
639
|
+
"type": {
|
|
640
|
+
"text": "CustomEvent<void>"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "bsMenuOpen",
|
|
645
|
+
"description": "Fires when the \"More options\" button is clicked or the menu is closed (click outside,\nEscape), with the new `menuOpen` value.",
|
|
646
|
+
"type": {
|
|
647
|
+
"text": "CustomEvent<boolean>"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "bsRegenerate",
|
|
652
|
+
"description": "Fires when the \"Regenerate\" button is clicked.",
|
|
653
|
+
"type": {
|
|
654
|
+
"text": "CustomEvent<void>"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "bsSourcesClick",
|
|
659
|
+
"description": "Fires when the \"N sources\" button is clicked.",
|
|
660
|
+
"type": {
|
|
661
|
+
"text": "CustomEvent<void>"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"slots": [
|
|
666
|
+
{
|
|
667
|
+
"name": "copy-icon",
|
|
668
|
+
"description": "Overrides the default \"Copy\" button icon."
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "dislike-icon",
|
|
672
|
+
"description": "Overrides the default \"Dislike\" button icon."
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "like-icon",
|
|
676
|
+
"description": "Overrides the default \"Like\" button icon."
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "menu",
|
|
680
|
+
"description": "A `bs-menu` (or other content) rendered in a popup positioned below the \"More\noptions\" button, shown only while `menuOpen` is `true`."
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "menu-icon",
|
|
684
|
+
"description": "Overrides the default \"More options\" button icon."
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "regenerate-icon",
|
|
688
|
+
"description": "Overrides the default \"Regenerate\" button icon."
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "sources-icon",
|
|
692
|
+
"description": "Overrides the default icon in the \"N sources\" button."
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"cssParts": [
|
|
696
|
+
{
|
|
697
|
+
"name": "copy",
|
|
698
|
+
"description": "The \"Copy\" icon button."
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"name": "dislike",
|
|
702
|
+
"description": "The \"Dislike\" icon button."
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "like",
|
|
706
|
+
"description": "The \"Like\" icon button."
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "menu",
|
|
710
|
+
"description": "The \"More options\" icon button."
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "regenerate",
|
|
714
|
+
"description": "The \"Regenerate\" icon button."
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "sources",
|
|
718
|
+
"description": "The \"N sources\" button (only rendered when `sourcesCount` is set)."
|
|
719
|
+
}
|
|
720
|
+
]
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
"exports": [
|
|
724
|
+
{
|
|
725
|
+
"kind": "js",
|
|
726
|
+
"name": "BsChatbotResponseAction",
|
|
727
|
+
"declaration": {
|
|
728
|
+
"name": "BsChatbotResponseAction"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"kind": "custom-element-definition",
|
|
733
|
+
"name": "bs-chatbot-response-action",
|
|
734
|
+
"declaration": {
|
|
735
|
+
"name": "BsChatbotResponseAction"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
]
|
|
739
|
+
},
|
|
426
740
|
{
|
|
427
741
|
"kind": "javascript-module",
|
|
428
742
|
"path": "src/components/bs-composer/bs-composer.tsx",
|
|
@@ -999,6 +1313,109 @@
|
|
|
999
1313
|
}
|
|
1000
1314
|
]
|
|
1001
1315
|
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "javascript-module",
|
|
1318
|
+
"path": "src/components/bs-menu/bs-menu.tsx",
|
|
1319
|
+
"declarations": [
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "class",
|
|
1322
|
+
"customElement": true,
|
|
1323
|
+
"tagName": "bs-menu",
|
|
1324
|
+
"name": "BsMenu",
|
|
1325
|
+
"description": "A generic dropdown/popup menu container: a rounded, elevated list of items (typically\n`bs-menu-item` elements).\n\n## When to use\n- A popup list of actions/options triggered by another control (e.g. a \"more options\" kebab\n button), such as `bs-chatbot-response-action`'s `menu` slot.\n\n## When not to use\n- A persistent, always-visible list of options -- this component is purpose-built as a popup\n surface (rounded corners, elevation shadow), not a plain list.",
|
|
1326
|
+
"slots": [
|
|
1327
|
+
{
|
|
1328
|
+
"name": "",
|
|
1329
|
+
"description": "Default slot: the menu's items (typically `bs-menu-item` elements, though anything can\nbe slotted in -- this component doesn't restrict slot content via JS)."
|
|
1330
|
+
}
|
|
1331
|
+
],
|
|
1332
|
+
"cssParts": [
|
|
1333
|
+
{
|
|
1334
|
+
"name": "list",
|
|
1335
|
+
"description": "The rounded, elevated box wrapping the slotted items."
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
],
|
|
1340
|
+
"exports": [
|
|
1341
|
+
{
|
|
1342
|
+
"kind": "js",
|
|
1343
|
+
"name": "BsMenu",
|
|
1344
|
+
"declaration": {
|
|
1345
|
+
"name": "BsMenu"
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "custom-element-definition",
|
|
1350
|
+
"name": "bs-menu",
|
|
1351
|
+
"declaration": {
|
|
1352
|
+
"name": "BsMenu"
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "javascript-module",
|
|
1359
|
+
"path": "src/components/bs-menu-item/bs-menu-item.tsx",
|
|
1360
|
+
"declarations": [
|
|
1361
|
+
{
|
|
1362
|
+
"kind": "class",
|
|
1363
|
+
"customElement": true,
|
|
1364
|
+
"tagName": "bs-menu-item",
|
|
1365
|
+
"name": "BsMenuItem",
|
|
1366
|
+
"description": "A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a\nreal `<button>` for correct keyboard/click semantics.\n\n## When to use\n- As a child of `bs-menu`, one per selectable action/option.\n\n## When not to use\n- Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the\n menu's rounded, padded list box.",
|
|
1367
|
+
"events": [
|
|
1368
|
+
{
|
|
1369
|
+
"name": "bsSelect",
|
|
1370
|
+
"description": "Fires when the item is clicked.",
|
|
1371
|
+
"type": {
|
|
1372
|
+
"text": "CustomEvent<void>"
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
],
|
|
1376
|
+
"slots": [
|
|
1377
|
+
{
|
|
1378
|
+
"name": "",
|
|
1379
|
+
"description": "Default slot: the item's text label."
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"name": "icon",
|
|
1383
|
+
"description": "Optional leading icon (24x24). When left empty, no icon space is reserved."
|
|
1384
|
+
}
|
|
1385
|
+
],
|
|
1386
|
+
"cssParts": [
|
|
1387
|
+
{
|
|
1388
|
+
"name": "icon",
|
|
1389
|
+
"description": "The icon wrapper."
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "item",
|
|
1393
|
+
"description": "The button element."
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "label",
|
|
1397
|
+
"description": "The label wrapper."
|
|
1398
|
+
}
|
|
1399
|
+
]
|
|
1400
|
+
}
|
|
1401
|
+
],
|
|
1402
|
+
"exports": [
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "js",
|
|
1405
|
+
"name": "BsMenuItem",
|
|
1406
|
+
"declaration": {
|
|
1407
|
+
"name": "BsMenuItem"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"kind": "custom-element-definition",
|
|
1412
|
+
"name": "bs-menu-item",
|
|
1413
|
+
"declaration": {
|
|
1414
|
+
"name": "BsMenuItem"
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1002
1419
|
{
|
|
1003
1420
|
"kind": "javascript-module",
|
|
1004
1421
|
"path": "src/components/bs-modal/bs-modal.tsx",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,g as a,b as o}from"./p-nLORuTUY.js";export{s as setNonce}from"./p-nLORuTUY.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await a(),o([["p-ab5cc7af",[[769,"bs-badge",{variant:[1]}]]],["p-2742ecef",[[785,"bs-button",{variant:[1],size:[1],disabled:[4],type:[1],ariaLabel:[1,"aria-label"],hasIcon:[32],hasEndIcon:[32],hasLabel:[32]}]]],["p-27288299",[[513,"bs-button-skeleton",{size:[1]}]]],["p-cfc3421b",[[769,"bs-card",{surface:[1]}]]],["p-b24c455f",[[769,"bs-chatbot-header",{heading:[1],expanded:[1540]}]]],["p-1dc6d7f5",[[769,"bs-chatbot-response-action",{sourcesCount:[2,"sources-count"],menuOpen:[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["p-6c1fa4da",[[785,"bs-composer",{variant:[1],placeholder:[1],value:[1],state:[1],ariaLabel:[1,"aria-label"]}]]],["p-9e5d2211",[[513,"bs-data-table",{columns:[16],rows:[16],sortColumn:[1,"sort-column"],sortDirection:[1,"sort-direction"],selectable:[4],cellRenderer:[16],selectedIds:[32]}]]],["p-0ded3be8",[[529,"bs-input",{value:[1],type:[1],label:[1],placeholder:[1],description:[1],error:[1],disabled:[4]}]]],["p-300eea85",[[257,"bs-menu"]]],["p-cdbad27a",[[769,"bs-menu-item",{hasIcon:[32]}]]],["p-880ea3f8",[[769,"bs-modal",{open:[1540],heading:[1],size:[1],hasFooter:[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as s,h as t}from"./p-
|
|
1
|
+
import{r,c as s,h as t}from"./p-nLORuTUY.js";const i=class{constructor(t){r(this,t),this.bsInput=s(this,"bsInput"),this.bsChange=s(this,"bsChange")}value="";type="text";label;placeholder;description;error;disabled=!1;bsInput;bsChange;onInput=r=>{this.bsInput.emit(r.target.value)};onChange=r=>{this.bsChange.emit(r.target.value)};render(){return t("div",{key:"df12d3d7af1bdc0e0e536e6c635ee406e4043b4f",class:"bs-input "+(this.error?"bs-input--error":"")},this.label&&t("label",{key:"2e4f867d17ab691a1df1b0b5b2964c0e1e986a91",part:"label",class:"bs-input__label",htmlFor:"control"},this.label),t("input",{key:"a078574a5ffad9eafea791cf5866ac123c4d5f56",id:"control",part:"control",class:"bs-input__control",type:this.type,value:this.value,placeholder:this.placeholder,disabled:this.disabled,"aria-describedby":this.error||this.description?"description-or-error":void 0,"aria-invalid":this.error?"true":void 0,onInput:this.onInput,onChange:this.onChange}),this.error?t("span",{id:"description-or-error",part:"error",class:"bs-input__error"},this.error):this.description?t("span",{id:"description-or-error",part:"description",class:"bs-input__description"},this.description):null)}static get delegatesFocus(){return!0}};i.style=":host{display:block}.bs-input{display:flex;flex-direction:column;gap:var(--bs-spacing-100);font-family:inherit}.bs-input__label{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);color:var(--bs-input-label)}.bs-input__control{height:var(--bs-spacing-600);padding:0 var(--bs-spacing-300);border:1px solid var(--bs-input-border-default);border-radius:var(--bs-border-radius-100);background:var(--bs-input-bg-default);color:var(--bs-input-text);font-size:var(--bs-font-size-md);font-family:inherit}.bs-input__control::placeholder{color:var(--bs-input-placeholder)}.bs-input__control:hover:not(:disabled){border-color:var(--bs-input-border-hover)}.bs-input__control:focus-visible{outline:none;border-color:var(--bs-input-border-focus)}.bs-input__control:disabled{background:var(--bs-input-bg-disabled);color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-input--error .bs-input__control{border-color:var(--bs-input-border-error)}.bs-input--error .bs-input__label{color:var(--bs-input-label)}.bs-input__description{font-size:var(--bs-font-size-xs);color:var(--bs-input-description)}.bs-input__error{font-size:var(--bs-font-size-xs);color:var(--bs-input-error)}";export{i as bs_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,a as o,h as s}from"./p-nLORuTUY.js";const n=class{constructor(o){e(this,o),this.bsLike=t(this,"bsLike"),this.bsDislike=t(this,"bsDislike"),this.bsCopy=t(this,"bsCopy"),this.bsRegenerate=t(this,"bsRegenerate"),this.bsMenuOpen=t(this,"bsMenuOpen"),this.bsSourcesClick=t(this,"bsSourcesClick")}get host(){return o(this)}sourcesCount;menuOpen=!1;bsLike;bsDislike;bsCopy;bsRegenerate;bsMenuOpen;bsSourcesClick;onLikeClick=()=>{this.bsLike.emit()};onDislikeClick=()=>{this.bsDislike.emit()};onCopyClick=()=>{this.bsCopy.emit()};onRegenerateClick=()=>{this.bsRegenerate.emit()};onMenuClick=()=>{this.menuOpen=!this.menuOpen,this.bsMenuOpen.emit(this.menuOpen)};closeMenu=()=>{this.menuOpen&&(this.menuOpen=!1,this.bsMenuOpen.emit(this.menuOpen))};onDocumentClick(e){this.menuOpen&&!e.composedPath().includes(this.host)&&this.closeMenu()}onKeydown(e){this.menuOpen&&"Escape"===e.key&&this.closeMenu()}onSourcesClick=()=>{this.bsSourcesClick.emit()};render(){const e=!!this.sourcesCount&&this.sourcesCount>0;return s("div",{key:"6595c290930eacb48dc9d52db12a29e2942c2d8f",class:"bs-chatbot-response-action"},s("button",{key:"e3acdbb150047bce0718a168c048ee9db6c829f2",type:"button",part:"like",class:"bs-chatbot-response-action__button","aria-label":"Like",onClick:this.onLikeClick},s("slot",{key:"bc9339dafb25f7529a097eaa578ef9ff5d61cafe",name:"like-icon"},s(r,{key:"49bf4ef39238d9763838ee72ca1b1799e2a284ff"}))),s("button",{key:"1a9900dbb7b1892233477cc4140b690de9d87cf3",type:"button",part:"dislike",class:"bs-chatbot-response-action__button","aria-label":"Dislike",onClick:this.onDislikeClick},s("slot",{key:"db4555adfb4a8cc83cb73ff13d537806e5918f25",name:"dislike-icon"},s(a,{key:"a741f40e3f0ea3a11e839277ad5659e0689fb13a"}))),s("button",{key:"19fbad2e8ae607368b78dc076188ec2b30d21325",type:"button",part:"copy",class:"bs-chatbot-response-action__button","aria-label":"Copy",onClick:this.onCopyClick},s("slot",{key:"8789336bec82b3335be38628d00664246d0f4015",name:"copy-icon"},s(i,{key:"e65198dff09540ce0d9af3fa2ed1e5ece12396cf"}))),s("button",{key:"09c16cca24ab255299d9f892e3d2c5334fcaf7f8",type:"button",part:"regenerate",class:"bs-chatbot-response-action__button","aria-label":"Regenerate",onClick:this.onRegenerateClick},s("slot",{key:"9758f958967908ce1a25805d9d3bea968f3590f4",name:"regenerate-icon"},s(c,{key:"608515ede5570b2482cc46c3f2910d56e086f0b3"}))),s("div",{key:"81c609157f7bb8024a2d0b1a3da30ae3d93f46e8",class:"bs-chatbot-response-action__menu-wrapper"},s("button",{key:"588d3eef27b342c784fd925e7ff4478370ef8b48",type:"button",part:"menu",class:"bs-chatbot-response-action__button","aria-label":"More options","aria-haspopup":"menu","aria-expanded":this.menuOpen?"true":"false",onClick:this.onMenuClick},s("slot",{key:"f14e53e800cc2976306824a6b5131a98cf22ee49",name:"menu-icon"},s(b,{key:"7ce9bc2ee29ab3f7d56b4a5cbead2a014f586841"}))),this.menuOpen&&s("div",{key:"80e0e9688f639c51601f891e46c82059ee1fd921",class:"bs-chatbot-response-action__menu-popup"},s("slot",{key:"9b1a2652e3460a1d97b4de856269516eaf1273e1",name:"menu"}))),e&&s("button",{key:"15febee771c334afddbbdedc21add700ed44ceb1",type:"button",part:"sources",class:"bs-chatbot-response-action__sources",onClick:this.onSourcesClick},s("slot",{key:"39d2cf88bda64d2f2b0a6d767e6ba5fcb1acc8bd",name:"sources-icon"},s(d,{key:"358a3b2c1e8479c7ee92e89401edc5e68ff93e1c"})),s("span",{key:"96b364bdfc9f8ae1ba605f0fd751e19e77959720",class:"bs-chatbot-response-action__sources-label"},this.sourcesCount," ",1===this.sourcesCount?"source":"sources")))}},r=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M2.5 8.125H6.25V16.25H2.5C2.33424 16.25 2.17527 16.1842 2.05806 16.0669C1.94085 15.9497 1.875 15.7908 1.875 15.625V8.75C1.875 8.58424 1.94085 8.42527 2.05806 8.30806C2.17527 8.19085 2.33424 8.125 2.5 8.125Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.25 8.125L9.375 1.875C10.038 1.875 10.6739 2.13839 11.1428 2.60723C11.6116 3.07607 11.875 3.71196 11.875 4.375V6.25H16.875C17.0523 6.25005 17.2276 6.28782 17.3892 6.36081C17.5508 6.4338 17.695 6.54033 17.8123 6.67333C17.9295 6.80634 18.0172 6.96277 18.0693 7.13223C18.1215 7.3017 18.137 7.48033 18.1148 7.65625L17.1773 15.1562C17.1393 15.4583 16.9923 15.736 16.7641 15.9374C16.5358 16.1388 16.2419 16.2499 15.9375 16.25H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),a=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M2.5 3.75H6.25V11.875H2.5C2.33424 11.875 2.17527 11.8092 2.05806 11.6919C1.94085 11.5747 1.875 11.4158 1.875 11.25V4.375C1.875 4.20924 1.94085 4.05027 2.05806 3.93306C2.17527 3.81585 2.33424 3.75 2.5 3.75Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.25 11.875L9.375 18.125C10.038 18.125 10.6739 17.8616 11.1428 17.3928C11.6116 16.9239 11.875 16.288 11.875 15.625V13.75H16.875C17.0523 13.75 17.2276 13.7122 17.3892 13.6392C17.5508 13.5662 17.695 13.4597 17.8123 13.3267C17.9295 13.1937 18.0172 13.0372 18.0693 12.8678C18.1215 12.6983 18.137 12.5197 18.1148 12.3438L17.1773 4.84375C17.1393 4.54174 16.9923 4.26399 16.7641 4.06262C16.5358 3.86124 16.2419 3.75009 15.9375 3.75H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),i=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M13.125 13.125H16.875V3.125H6.875V6.875",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M13.125 6.875H3.125V16.875H13.125V6.875Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M13.125 7.5H16.875V3.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M16.875 7.5L14.6656 5.29063C13.3861 4.01117 11.6538 3.28772 9.84437 3.27719C8.03494 3.26666 6.29431 3.9699 5 5.23438",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.875 12.5H3.125V16.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M3.125 12.5L5.33437 14.7094C6.61388 15.9888 8.34621 16.7123 10.1556 16.7228C11.9651 16.7333 13.7057 16.0301 15 14.7656",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),b=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M10 9.11426C10.489 9.11426 10.8857 9.511 10.8857 10C10.8857 10.489 10.489 10.8857 10 10.8857C9.511 10.8857 9.11426 10.489 9.11426 10C9.11426 9.511 9.511 9.11426 10 9.11426Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),s("path",{d:"M10 3.80176C10.489 3.80176 10.8857 4.1985 10.8857 4.6875C10.8857 5.1765 10.489 5.57324 10 5.57324C9.511 5.57324 9.11426 5.1765 9.11426 4.6875C9.11426 4.1985 9.511 3.80176 10 3.80176Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),s("path",{d:"M10 16.25C10.5178 16.25 10.9375 15.8303 10.9375 15.3125C10.9375 14.7947 10.5178 14.375 10 14.375C9.48223 14.375 9.0625 14.7947 9.0625 15.3125C9.0625 15.8303 9.48223 16.25 10 16.25Z",fill:"currentColor"})),d=()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},s("path",{d:"M13.125 17.5H4.375C4.20924 17.5 4.05027 17.4342 3.93306 17.3169C3.81585 17.1997 3.75 17.0408 3.75 16.875V5.625C3.75 5.45924 3.81585 5.30027 3.93306 5.18306C4.05027 5.06585 4.20924 5 4.375 5H10.625L13.75 8.125V16.875C13.75 17.0408 13.6842 17.1997 13.5669 17.3169C13.4497 17.4342 13.2908 17.5 13.125 17.5Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.25 5V3.125C6.25 2.95924 6.31585 2.80027 6.43306 2.68306C6.55027 2.56585 6.70924 2.5 6.875 2.5H13.125L16.25 5.625V14.375C16.25 14.5408 16.1842 14.6997 16.0669 14.8169C15.9497 14.9342 15.7908 15 15.625 15H13.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.875 11.875H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{d:"M6.875 14.375H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}));n.style=":host{display:block;--bs-chatbot-response-action-gap:var(--bs-spacing-100);--bs-chatbot-response-action-padding-top:var(--bs-spacing-150);--bs-chatbot-response-action-padding-bottom:var(--bs-spacing-50);--bs-chatbot-response-action-button-size:var(--bs-spacing-400);--bs-chatbot-response-action-button-radius:var(--bs-border-radius-100);--bs-chatbot-response-action-button-hover:var(--bs-color-neutral-container);--bs-chatbot-response-action-button-pressed:var(--bs-color-neutral-container-pressed);--bs-chatbot-response-action-icon:var(--bs-icon-neutral-default);--bs-chatbot-response-action-sources-gap:var(--bs-spacing-50);--bs-chatbot-response-action-sources-padding-left:var(--bs-spacing-100);--bs-chatbot-response-action-sources-padding-right:var(--bs-spacing-150);--bs-chatbot-response-action-sources-color:var(--bs-text-neutral-default);--bs-chatbot-response-action-sources-font-size:var(--bs-font-size-sm);--bs-chatbot-response-action-sources-line-height:var(--bs-line-height-body-sm)}.bs-chatbot-response-action{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-chatbot-response-action-gap);padding-top:var(--bs-chatbot-response-action-padding-top);padding-bottom:var(--bs-chatbot-response-action-padding-bottom);background:transparent;font-family:inherit}.bs-chatbot-response-action__button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-icon);font-family:inherit;border-radius:var(--bs-chatbot-response-action-button-radius);width:var(--bs-chatbot-response-action-button-size);height:var(--bs-chatbot-response-action-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__button svg{width:20px;height:20px}.bs-chatbot-response-action__button:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__button:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__menu-wrapper{position:relative;display:inline-flex;flex-shrink:0}.bs-chatbot-response-action__menu-popup{position:absolute;top:calc(100% + var(--bs-spacing-50));left:0;z-index:1}.bs-chatbot-response-action__sources{display:inline-flex;align-items:center;box-sizing:border-box;border:none;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-sources-color);font-family:inherit;font-size:var(--bs-chatbot-response-action-sources-font-size);line-height:calc(var(--bs-chatbot-response-action-sources-line-height) * 1px);gap:var(--bs-chatbot-response-action-sources-gap);border-radius:var(--bs-chatbot-response-action-button-radius);height:var(--bs-chatbot-response-action-button-size);padding-left:var(--bs-chatbot-response-action-sources-padding-left);padding-right:var(--bs-chatbot-response-action-sources-padding-right);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__sources:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__sources svg{width:20px;height:20px;flex-shrink:0}.bs-chatbot-response-action__sources:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__sources:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__sources-label{white-space:nowrap}";export{n as bs_chatbot_response_action}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-
|
|
1
|
+
import{r as t,h as e}from"./p-nLORuTUY.js";const s=class{constructor(e){t(this,e)}size="md";render(){return e("span",{key:"5b51879877adc5abbe6f28d79f27a1f33654a1a4",part:"container",class:`bs-button-skeleton bs-button-skeleton--${this.size}`,role:"status","aria-label":"Loading"})}};s.style=":host{display:inline-block;--bs-button-skeleton-height-sm:var(--bs-spacing-500);--bs-button-skeleton-height-md:var(--bs-spacing-600);--bs-button-skeleton-height-lg:var(--bs-spacing-700);--bs-button-skeleton-width:96px}.bs-button-skeleton{display:inline-block;border-radius:var(--bs-border-radius-100);width:var(--bs-button-skeleton-width);background:var(--bs-color-neutral-container);animation:bs-button-skeleton-pulse 1.5s ease-in-out infinite}.bs-button-skeleton--sm{height:var(--bs-button-skeleton-height-sm)}.bs-button-skeleton--md{height:var(--bs-button-skeleton-height-md)}.bs-button-skeleton--lg{height:var(--bs-button-skeleton-height-lg)}@keyframes bs-button-skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}@media (prefers-reduced-motion: reduce){.bs-button-skeleton{animation:none}}";export{s as bs_button_skeleton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,a as t,h as s}from"./p-
|
|
1
|
+
import{r as o,a as t,h as s}from"./p-nLORuTUY.js";const b=class{constructor(t){o(this,t)}get el(){return t(this)}variant="primary";size="md";disabled=!1;type="button";ariaLabel=null;hasIcon=!1;hasEndIcon=!1;hasLabel=!1;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon"),this.hasEndIcon=this.hasSlottedContent("end-icon"),this.hasLabel=this.hasSlottedContent(null)}hasSlottedContent(o){return Array.from(this.el.childNodes).some((t=>t.nodeType===Node.ELEMENT_NODE?t.getAttribute("slot")===o:null===o))}onIconSlotchange=o=>{this.hasIcon=o.target.assignedNodes().length>0};onEndIconSlotchange=o=>{this.hasEndIcon=o.target.assignedNodes().length>0};onLabelSlotchange=o=>{this.hasLabel=o.target.assignedNodes().length>0};render(){return s("button",{key:"eae5915f036d18b43b9b1ff94272fe27aa119d0e",class:`bs-button bs-button--${this.variant} bs-button--${this.size} ${!this.hasIcon&&!this.hasEndIcon||this.hasLabel?"":"bs-button--icon-only"}`,type:this.type,disabled:this.disabled,"aria-label":this.ariaLabel},s("span",{key:"ee58ccc6f8390663e67a7d7a03fe6113782805e7",part:"icon",class:"bs-button__icon "+(this.hasIcon?"bs-button__icon--visible":"")},s("slot",{key:"526ec7b4fd274bbdb6dc1edb38c33917c26337ee",name:"icon",onSlotchange:this.onIconSlotchange})),s("span",{key:"3e0121dc4dc975b449b03e5ac5f55d1f6001e806",part:"label",class:"bs-button__label"},s("slot",{key:"4ab00b8b91f0513af74faac4ae7b39f9a975dde5",onSlotchange:this.onLabelSlotchange})),s("span",{key:"3f64f1122c5ed1da1bb9cb869490395f1e11b3fb",part:"end-icon",class:"bs-button__end-icon "+(this.hasEndIcon?"bs-button__end-icon--visible":"")},s("slot",{key:"ca79d7ed3cd80c6abc3f17c4f9d215ed69c13059",name:"end-icon",onSlotchange:this.onEndIconSlotchange})))}static get delegatesFocus(){return!0}};b.style=":host{display:inline-block;--bs-button-height-sm:var(--bs-spacing-500);--bs-button-height-md:var(--bs-spacing-600);--bs-button-height-lg:var(--bs-spacing-700);--bs-button-radius:var(--bs-border-radius-100);--bs-button-error-default:var(--bs-color-error-default);--bs-button-error-hover:var(--bs-color-error-hover);--bs-button-error-focus:var(--bs-border-error-focus);--bs-button-error-pressed:var(--bs-color-error-pressed);--bs-button-error-disabled:var(--bs-surface-action-disabled);--bs-button-success-default:var(--bs-color-success-default);--bs-button-success-hover:var(--bs-color-success-hover);--bs-button-success-focus:var(--bs-border-success-focus);--bs-button-success-pressed:var(--bs-color-success-pressed);--bs-button-success-disabled:var(--bs-surface-action-disabled);--bs-button-warning-default:var(--bs-color-warning-default);--bs-button-warning-hover:var(--bs-color-warning-hover);--bs-button-warning-focus:var(--bs-border-warning-focus);--bs-button-warning-pressed:var(--bs-color-warning-pressed);--bs-button-warning-disabled:var(--bs-surface-action-disabled);--bs-button-info-default:var(--bs-color-info-default);--bs-button-info-hover:var(--bs-color-info-hover);--bs-button-info-focus:var(--bs-border-info-focus);--bs-button-info-pressed:var(--bs-color-info-pressed);--bs-button-info-disabled:var(--bs-surface-action-disabled);--bs-button-subtle-hover:var(--bs-color-neutral-container);--bs-button-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-button-subtle-focus:var(--bs-border-primary-focus);--bs-button-outlined-border:var(--bs-border-primary);--bs-button-outlined-border-hover:var(--bs-border-primary-hover);--bs-button-outlined-focus:var(--bs-border-primary-focus);--bs-button-outlined-container:var(--bs-color-primary-container)}.bs-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;border-radius:var(--bs-button-radius);font-family:inherit;font-weight:var(--bs-font-weight-semibold);cursor:pointer;transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease)}.bs-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-button:disabled{cursor:not-allowed}.bs-button--sm{height:var(--bs-button-height-sm);padding:0 var(--bs-spacing-300);font-size:var(--bs-font-size-sm)}.bs-button--md{height:var(--bs-button-height-md);padding:0 var(--bs-spacing-400);font-size:var(--bs-font-size-md)}.bs-button--lg{height:var(--bs-button-height-lg);padding:0 var(--bs-spacing-500);font-size:var(--bs-font-size-lg)}.bs-button--primary{background:var(--bs-button-primary-default);color:var(--bs-text-on-action)}.bs-button--primary:hover:not(:disabled){background:var(--bs-button-primary-hover)}.bs-button--primary:active:not(:disabled){background:var(--bs-button-primary-pressed)}.bs-button--primary:disabled{background:var(--bs-button-primary-disabled);color:var(--bs-text-on-disabled)}.bs-button--neutral{background:var(--bs-button-neutral-container);color:var(--bs-text-default)}.bs-button--neutral:hover:not(:disabled){background:var(--bs-button-neutral-hover)}.bs-button--neutral:active:not(:disabled){background:var(--bs-button-neutral-pressed)}.bs-button--neutral:disabled{background:var(--bs-button-neutral-disabled);color:var(--bs-text-on-disabled)}.bs-button--error{background:var(--bs-button-error-default);color:var(--bs-text-on-action)}.bs-button--error:hover:not(:disabled){background:var(--bs-button-error-hover)}.bs-button--error:active:not(:disabled){background:var(--bs-button-error-pressed)}.bs-button--error:disabled{background:var(--bs-button-error-disabled);color:var(--bs-text-on-disabled)}.bs-button--error:focus-visible{outline-color:var(--bs-button-error-focus)}.bs-button--success{background:var(--bs-button-success-default);color:var(--bs-text-on-action)}.bs-button--success:hover:not(:disabled){background:var(--bs-button-success-hover)}.bs-button--success:active:not(:disabled){background:var(--bs-button-success-pressed)}.bs-button--success:disabled{background:var(--bs-button-success-disabled);color:var(--bs-text-on-disabled)}.bs-button--success:focus-visible{outline-color:var(--bs-button-success-focus)}.bs-button--warning{background:var(--bs-button-warning-default);color:var(--bs-text-default)}.bs-button--warning:hover:not(:disabled){background:var(--bs-button-warning-hover)}.bs-button--warning:active:not(:disabled){background:var(--bs-button-warning-pressed)}.bs-button--warning:disabled{background:var(--bs-button-warning-disabled);color:var(--bs-text-on-disabled)}.bs-button--warning:focus-visible{outline-color:var(--bs-button-warning-focus)}.bs-button--info{background:var(--bs-button-info-default);color:var(--bs-text-on-action)}.bs-button--info:hover:not(:disabled){background:var(--bs-button-info-hover)}.bs-button--info:active:not(:disabled){background:var(--bs-button-info-pressed)}.bs-button--info:disabled{background:var(--bs-button-info-disabled);color:var(--bs-text-on-disabled)}.bs-button--info:focus-visible{outline-color:var(--bs-button-info-focus)}.bs-button--subtle{background:transparent;color:var(--bs-color-neutral-default)}.bs-button--subtle:hover:not(:disabled){background:var(--bs-button-subtle-hover)}.bs-button--subtle:active:not(:disabled){background:var(--bs-button-subtle-pressed)}.bs-button--subtle:disabled{background:transparent;color:var(--bs-text-on-disabled)}.bs-button--subtle:focus-visible{outline-color:var(--bs-button-subtle-focus);background:var(--bs-button-subtle-hover)}.bs-button--outlined{background:transparent;color:var(--bs-color-primary-default);border:1.5px solid var(--bs-button-outlined-border)}.bs-button--outlined:hover:not(:disabled){background:var(--bs-button-outlined-container);border-color:var(--bs-button-outlined-border-hover)}.bs-button--outlined:active:not(:disabled){background:var(--bs-button-outlined-container);color:var(--bs-color-primary-pressed);border-color:var(--bs-button-outlined-border-hover)}.bs-button--outlined:disabled{opacity:var(--bs-opacity-disabled);cursor:not-allowed}.bs-button--outlined:focus-visible{outline-color:var(--bs-button-outlined-focus)}.bs-button__icon--visible{margin-right:var(--bs-spacing-100)}.bs-button__end-icon--visible{margin-left:var(--bs-spacing-100)}.bs-button__icon ::slotted(*),.bs-button__end-icon ::slotted(*){display:block;width:1em;height:1em}.bs-button--icon-only{padding:0;aspect-ratio:1 / 1}.bs-button--icon-only .bs-button__icon--visible{margin-right:0}.bs-button--icon-only .bs-button__end-icon--visible{margin-left:0}";export{b as bs_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as a}from"./p-nLORuTUY.js";const e=class{constructor(a){s(this,a)}render(){return a("div",{key:"d4eee73bfffd1fcfd8f057e394a53fea4688748b",part:"list",class:"bs-menu",role:"menu"},a("slot",{key:"866189bfabc2798ce37b8f0f6141143d4c49081e"}))}};e.style=":host{display:block;--bs-menu-bg:var(--bs-surface-raised);--bs-menu-radius:var(--bs-border-radius-100);--bs-menu-padding-y:var(--bs-spacing-50);--bs-menu-gap:var(--bs-spacing-50);--bs-menu-shadow:var(--bs-shadow-sm)}.bs-menu{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-menu-gap);background:var(--bs-menu-bg);border-radius:var(--bs-menu-radius);padding:var(--bs-menu-padding-y) 0;box-shadow:var(--bs-menu-shadow);font-family:inherit}";export{e as bs_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as s,h as r}from"./p-
|
|
1
|
+
import{r as o,c as s,h as r}from"./p-nLORuTUY.js";const e={ai:"Ask Genie something...",human:"Message your support agent..."},t=[6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,18,14,34,22,22,10,28,18,12,24,6,20,30,14,8,26,16,32,10,22,18,12,28,8,20,14,24,10,16,30,12,22,6,18,26,8,14,32,20,10,24,6],i=class{constructor(r){o(this,r),this.bsInput=s(this,"bsInput"),this.bsSubmit=s(this,"bsSubmit"),this.bsStop=s(this,"bsStop"),this.bsVoiceConfirm=s(this,"bsVoiceConfirm"),this.bsAttach=s(this,"bsAttach"),this.bsMicToggle=s(this,"bsMicToggle")}variant="ai";placeholder;value="";state="idle";ariaLabel=null;bsInput;bsSubmit;bsStop;bsVoiceConfirm;bsAttach;bsMicToggle;onInput=o=>{this.bsInput.emit(o.target.value)};onAttachClick=()=>{this.bsAttach.emit()};onMicClick=()=>{this.bsMicToggle.emit()};onActionClick=()=>{"idle"===this.state?this.bsSubmit.emit():"generating"===this.state?this.bsStop.emit():"recording"===this.state&&this.bsVoiceConfirm.emit()};actionLabel(){return"generating"===this.state?"Stop":"recording"===this.state?"Confirm":"Send"}renderActionIcon(){return r("generating"===this.state?b:"recording"===this.state?d:n,null)}render(){const o="disabled"===this.state,s="recording"===this.state;return r("div",{key:"04c250520759948faa89bd625646a62c79cc6cee",class:`bs-composer bs-composer--${this.state} bs-composer--${this.variant}`},r("div",{key:"8d5d99b90141d3dbeff1b31851cbbb5eaae3d920",class:"bs-composer__text-row"},r("input",{key:"4eb1ef1b51a41de86da466c8a2c9ea93a7746b43",part:"input",class:"bs-composer__input",type:"text",value:this.value,placeholder:this.placeholder??e[this.variant],disabled:o,"aria-label":this.ariaLabel,onInput:this.onInput})),r("div",{key:"8a733762c56ae3f4de7f2af1d89fb05d521b1d17",class:"bs-composer__controls-row"},r("button",{key:"b4cd13546ec447f2650a02f43dc2fc0b6d65c8ef",type:"button",part:"attach",class:"bs-composer__attach","aria-label":"Attach",onClick:this.onAttachClick},r(a,{key:"af8da06a2550d5c37d3737b145ad70c006e1ce66"})),s?r("span",{class:"bs-composer__waveform","aria-hidden":"true"},t.map((o=>r("span",{class:"bs-composer__waveform-bar",style:{"--bs-composer-bar-height":`${o}px`}})))):r("span",{class:"bs-composer__spacer"}),r("button",{key:"18b81bf7dd6057c3954566cd12994bb8589ff4ee",type:"button",part:"mic",class:"bs-composer__mic "+(s?"bs-composer__mic--recording":""),"aria-label":s?"Stop recording":"Start voice input",disabled:o,onClick:this.onMicClick},r(s?b:c,null)),r("button",{key:"a1cf9435fa7dc8e52db7ae148e07fde06971f27c",type:"button",part:"action",class:`bs-composer__action bs-composer__action--${this.state}`,"aria-label":this.actionLabel(),disabled:o,onClick:this.onActionClick},this.renderActionIcon()),r("slot",{key:"6779413b48314161a75ec75be273e72fe4d622c3",name:"actions-end"})))}static get delegatesFocus(){return!0}},a=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M8 2.5V13.5M2.5 8H13.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})),c=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M8 9.5C9.10457 9.5 10 8.60457 10 7.5V3.5C10 2.39543 9.10457 1.5 8 1.5C6.89543 1.5 6 2.39543 6 3.5V7.5C6 8.60457 6.89543 9.5 8 9.5Z",stroke:"currentColor","stroke-width":"1.4"}),r("path",{d:"M3.5 7V7.5C3.5 9.98528 5.51472 12 8 12C10.4853 12 12.5 9.98528 12.5 7.5V7",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),r("path",{d:"M8 12V14.5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})),n=()=>r("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M13.5 12H7.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M4.54594 20.745C4.4932 20.889 4.48589 21.0457 4.52499 21.1941C4.56409 21.3424 4.64771 21.4751 4.76459 21.5744C4.88147 21.6737 5.02599 21.7348 5.17866 21.7494C5.33133 21.7641 5.48482 21.7315 5.61844 21.6562L21.3684 12.6478C21.4857 12.583 21.5834 12.4879 21.6514 12.3725C21.7195 12.2571 21.7553 12.1255 21.7553 11.9916C21.7553 11.8576 21.7195 11.7261 21.6514 11.6107C21.5834 11.4952 21.4857 11.4002 21.3684 11.3353L5.61844 2.34937C5.48523 2.27487 5.33245 2.24278 5.18052 2.2574C5.02859 2.27201 4.88474 2.33264 4.76817 2.43117C4.65161 2.5297 4.56788 2.66145 4.52817 2.80882C4.48846 2.9562 4.49466 3.11218 4.54594 3.25594L7.5 12L4.54594 20.745Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),b=()=>r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("rect",{x:"6",y:"6",width:"8",height:"8",rx:"1.5",fill:"currentColor"})),d=()=>r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M4.5 10.5L8 14L15.5 6",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"}));i.style=":host{display:block;--bs-composer-radius:var(--bs-border-radius-150);--bs-composer-button-radius:var(--bs-border-radius-100);--bs-composer-button-size:var(--bs-spacing-600);--bs-composer-bg:var(--bs-input-bg-default);--bs-composer-border:var(--bs-input-border-default);--bs-composer-border-focus:var(--bs-input-border-focus);--bs-composer-action-bg:var(--bs-color-primary-default);--bs-composer-action-bg-hover:var(--bs-color-primary-hover);--bs-composer-action-bg-pressed:var(--bs-color-primary-pressed);--bs-composer-action-bg-disabled:var(--bs-surface-action-disabled);--bs-composer-action-icon:var(--bs-text-on-action);--bs-composer-action-icon-disabled:var(--bs-text-on-disabled);--bs-composer-attach-icon:var(--bs-icon-default);--bs-composer-mic-icon:var(--bs-icon-default);--bs-composer-mic-icon-disabled:var(--bs-icon-disabled);--bs-composer-mic-recording-icon:var(--bs-icon-default);--bs-composer-subtle-hover:var(--bs-color-neutral-container);--bs-composer-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-composer-waveform-color:var(--bs-border-default)}.bs-composer{box-sizing:border-box;display:flex;flex-direction:column;border:1px solid var(--bs-composer-border);border-radius:var(--bs-composer-radius);background:var(--bs-composer-bg);font-family:inherit}.bs-composer--human{border-style:dashed}.bs-composer:focus-within{border-color:var(--bs-composer-border-focus)}.bs-composer__text-row{display:flex;align-items:center;gap:var(--bs-spacing-150);padding:var(--bs-spacing-150)}.bs-composer__input{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md)}.bs-composer__input::placeholder{color:var(--bs-input-placeholder)}.bs-composer__input:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-composer__waveform{display:inline-flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;overflow:hidden}.bs-composer__waveform-bar{display:inline-block;flex-shrink:0;width:2.5px;border-radius:1.5px;background:var(--bs-composer-waveform-color);height:var(--bs-composer-bar-height, 6px)}.bs-composer__controls-row{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150)}.bs-composer__spacer{flex:1}.bs-composer__attach,.bs-composer__mic,.bs-composer__action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;font-family:inherit;border-radius:var(--bs-composer-button-radius);width:var(--bs-composer-button-size);height:var(--bs-composer-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer__attach:focus-visible,.bs-composer__mic:focus-visible,.bs-composer__action:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-composer__attach svg,.bs-composer__mic svg,.bs-composer__action svg{width:24px;height:24px}.bs-composer__attach,.bs-composer__mic{background:transparent}.bs-composer__attach:hover:not(:disabled),.bs-composer__mic:hover:not(:disabled){background:var(--bs-composer-subtle-hover)}.bs-composer__attach:active:not(:disabled),.bs-composer__mic:active:not(:disabled){background:var(--bs-composer-subtle-pressed)}.bs-composer__attach{color:var(--bs-composer-attach-icon)}.bs-composer__mic{color:var(--bs-composer-mic-icon)}.bs-composer__mic--recording{color:var(--bs-composer-mic-recording-icon)}.bs-composer__mic:disabled{color:var(--bs-composer-mic-icon-disabled);cursor:not-allowed}.bs-composer__action{background:var(--bs-composer-action-bg);color:var(--bs-composer-action-icon)}.bs-composer__action:hover:not(:disabled){background:var(--bs-composer-action-bg-hover)}.bs-composer__action:active:not(:disabled){background:var(--bs-composer-action-bg-pressed)}.bs-composer__action:disabled{background:var(--bs-composer-action-bg-disabled);color:var(--bs-composer-action-icon-disabled);cursor:not-allowed}";export{i as bs_composer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as o,h as a}from"./p-
|
|
1
|
+
import{r as s,c as o,h as a}from"./p-nLORuTUY.js";const i=class{constructor(a){s(this,a),this.bsClose=o(this,"bsClose")}open=!1;heading;size="md";bsClose;hasFooter=!1;onFooterSlotchange=s=>{this.hasFooter=s.target.assignedNodes().length>0};dialogRef;previouslyFocused;wasOpen=!1;close=()=>{this.open=!1,this.bsClose.emit()};onKeydown(s){this.open&&"Escape"===s.key&&this.close()}onBackdropClick=s=>{s.target===s.currentTarget&&this.close()};onFocusIn(s){this.open&&this.dialogRef&&!s.composedPath().includes(this.dialogRef)&&this.dialogRef.focus()}componentDidRender(){this.open&&!this.wasOpen?(this.previouslyFocused=document.activeElement,this.dialogRef?.focus()):!this.open&&this.wasOpen&&this.previouslyFocused?.focus(),this.wasOpen=this.open}render(){return this.open?a("div",{part:"backdrop",class:"bs-modal__backdrop",onClick:this.onBackdropClick},a("div",{ref:s=>this.dialogRef=s,tabIndex:-1,part:"dialog",class:`bs-modal__dialog bs-modal__dialog--${this.size}`,role:"dialog","aria-modal":"true","aria-label":this.heading},a("div",{part:"header",class:"bs-modal__header"},a("span",{class:"bs-modal__heading"},this.heading),a("button",{part:"close",class:"bs-modal__close","aria-label":"Close",onClick:this.close},"×")),a("div",{part:"body",class:"bs-modal__body"},a("slot",null)),a("div",{part:"footer",class:"bs-modal__footer "+(this.hasFooter?"bs-modal__footer--visible":"")},a("slot",{name:"footer",onSlotchange:this.onFooterSlotchange})))):null}};i.style=".bs-modal__backdrop{position:fixed;inset:0;z-index:var(--bs-z-index-modal);display:flex;align-items:center;justify-content:center;background:rgba(0, 0, 0, 0.4)}.bs-modal__dialog{display:flex;flex-direction:column;max-height:calc(100vh - var(--bs-spacing-800));background:var(--bs-surface-raised);border-radius:var(--bs-border-radius-200);box-shadow:var(--bs-shadow-xl);font-family:inherit}.bs-modal__dialog--sm{width:360px}.bs-modal__dialog--md{width:560px}.bs-modal__dialog--lg{width:800px}.bs-modal__header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-spacing-400);border-bottom:1px solid var(--bs-border-default)}.bs-modal__heading{font-size:var(--bs-font-size-lg);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-default)}.bs-modal__close{border:none;background:none;font-size:var(--bs-font-size-xl);line-height:1;color:var(--bs-icon-muted, var(--bs-text-secondary));cursor:pointer;padding:var(--bs-spacing-100)}.bs-modal__body{padding:var(--bs-spacing-400);overflow-y:auto}.bs-modal__footer--visible{display:flex;justify-content:flex-end;gap:var(--bs-spacing-200);padding:var(--bs-spacing-400);border-top:1px solid var(--bs-border-default)}";export{i as bs_modal}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-
|
|
1
|
+
import{r as t,c as e,h as a}from"./p-nLORuTUY.js";const s=class{constructor(a){t(this,a),this.bsSort=e(this,"bsSort"),this.bsRowSelect=e(this,"bsRowSelect")}columns=[];rows=[];sortColumn;sortDirection="asc";selectable=!1;cellRenderer;bsSort;bsRowSelect;selectedIds=new Set;onHeaderClick=t=>{t.sortable&&this.bsSort.emit({column:t.key,direction:this.sortColumn===t.key&&"asc"===this.sortDirection?"desc":"asc"})};onRowCheckboxChange=(t,e)=>{const a=e.target.checked,s=new Set(this.selectedIds);a?s.add(t.id):s.delete(t.id),this.selectedIds=s,this.bsRowSelect.emit({id:t.id,selected:a})};render(){return a("table",{key:"8276a72f6539690dd8189cd29e42993c3d61862c",part:"table",class:"bs-data-table"},a("thead",{key:"2d3e42222eec0bcbe3d06f26f7a3ae53dd5ccdc0",part:"head"},a("tr",{key:"45994ea59d9a1a347bb8abdf25d7b1b919822a61"},this.selectable&&a("th",{key:"05d5efa74feee1545e1c4b9dfc45acd7ffd10e6a",class:"bs-data-table__select-col"}),this.columns.map((t=>{const e=this.sortColumn===t.key;return a("th",{part:"header-cell",class:"bs-data-table__header-cell","aria-sort":t.sortable?e?"asc"===this.sortDirection?"ascending":"descending":"none":void 0},t.sortable?a("button",{type:"button",class:"bs-data-table__sort-button",onClick:()=>this.onHeaderClick(t)},t.label,e&&a("span",{class:"bs-data-table__sort-indicator"},"asc"===this.sortDirection?" ▲":" ▼")):t.label)})))),a("tbody",{key:"9c1dc006341b63e5d22df655836f326ba27e7b9d",part:"body"},this.rows.map((t=>a("tr",{part:"row",class:"bs-data-table__row"},this.selectable&&a("td",{class:"bs-data-table__select-col"},a("input",{type:"checkbox",checked:this.selectedIds.has(t.id),onChange:e=>this.onRowCheckboxChange(t,e)})),this.columns.map((e=>this.cellRenderer?a("td",{part:"cell",class:"bs-data-table__cell",innerHTML:this.cellRenderer(t,e)}):a("td",{part:"cell",class:"bs-data-table__cell"},String(t[e.key]??"")))))))))}};s.style=":host{display:block}.bs-data-table{width:100%;border-collapse:collapse;font-family:inherit;font-size:var(--bs-font-size-sm);color:var(--bs-text-default)}.bs-data-table__header-cell{text-align:left;padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-secondary);white-space:nowrap}.bs-data-table__sort-button{display:inline-flex;align-items:center;border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;user-select:none}.bs-data-table__sort-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-data-table__sort-indicator{color:var(--bs-text-action)}.bs-data-table__row:hover{background:var(--bs-surface-hover)}.bs-data-table__cell{padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}.bs-data-table__select-col{width:var(--bs-spacing-500);padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}";export{s as bs_data_table}
|