@brandsync/wc 0.0.9 → 0.0.11
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 +310 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-8d12ed96.entry.js → p-030a8ba7.entry.js} +1 -1
- package/dist/brandsync-wc/p-073e5fee.entry.js +1 -0
- package/dist/brandsync-wc/{p-ce0914a7.entry.js → p-0b858120.entry.js} +1 -1
- package/dist/brandsync-wc/{p-575ce905.entry.js → p-1bf0b2d5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bc72439a.entry.js → p-2598ca88.entry.js} +1 -1
- package/dist/brandsync-wc/p-3c8fbaa8.entry.js +1 -0
- package/dist/brandsync-wc/p-3dd9b814.entry.js +1 -0
- package/dist/brandsync-wc/{p-94ed898a.entry.js → p-41edb0a2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3dacae70.entry.js → p-4ca15322.entry.js} +1 -1
- package/dist/brandsync-wc/p-6254dcbe.entry.js +1 -0
- package/dist/brandsync-wc/{p-880ea3f8.entry.js → p-7131d0a1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a34f460d.entry.js → p-74a4dd91.entry.js} +1 -1
- package/dist/brandsync-wc/{p-30a0e168.entry.js → p-7a605d98.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a78d6ea.entry.js → p-84ae4420.entry.js} +1 -1
- package/dist/brandsync-wc/{p-16a54578.entry.js → p-8c302968.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd747a12.entry.js → p-8d78171b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7776b57b.entry.js → p-8dff4f24.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dad4a92c.entry.js → p-93e44903.entry.js} +1 -1
- package/dist/brandsync-wc/{p-nLORuTUY.js → p-DP_bvuvB.js} +2 -2
- package/dist/brandsync-wc/{p-eb4d87f0.entry.js → p-aa45d877.entry.js} +1 -1
- package/dist/brandsync-wc/{p-805644e4.entry.js → p-b174403d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d682675e.entry.js → p-c6d330c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1515498e.entry.js → p-d1dc2ced.entry.js} +1 -1
- package/dist/brandsync-wc/{p-18af02df.entry.js → p-dd224cb3.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- 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-feedback.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +83 -0
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
- package/dist/cjs/bs-input.cjs.entry.js +3 -3
- package/dist/cjs/bs-menu_2.cjs.entry.js +9 -4
- package/dist/cjs/bs-modal.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-CVh-sqA_.js → index-CGrdFg95.js} +73 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.cmp.test.js +107 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +193 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +234 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +65 -0
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +18 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.css +19 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +34 -2
- package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +3 -0
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- 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-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox.d.ts +11 -0
- package/dist/components/bs-checkbox.js +1 -0
- package/dist/components/bs-composer-status-banner.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-modal.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cz2nfz2j.js → p-B9PrXIl_.js} +1 -1
- package/dist/components/{p-DndQiCMP.js → p-BUbGEXL7.js} +1 -1
- package/dist/components/{p-BpvhHQSw.js → p-D1cYtKyN.js} +1 -1
- package/dist/components/p-D2HDHZjz.js +1 -0
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +1 -1
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +2 -2
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +81 -0
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-data-table.entry.js +3 -3
- package/dist/esm/bs-input.entry.js +3 -3
- package/dist/esm/bs-menu_2.entry.js +9 -4
- package/dist/esm/bs-modal.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-nLORuTUY.js → index-DP_bvuvB.js} +73 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-checkbox/bs-checkbox.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +53 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.stories.d.ts +23 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.d.ts +7 -1
- package/dist/types/components/bs-menu-item/bs-menu-item.stories.d.ts +1 -0
- package/dist/types/components.d.ts +165 -5
- package/package.json +1 -1
- package/dist/brandsync-wc/p-0d64ea40.entry.js +0 -1
- package/dist/brandsync-wc/p-5333bb5a.entry.js +0 -1
- package/dist/brandsync-wc/p-96f374be.entry.js +0 -1
- package/dist/components/p-_vXDfB3V.js +0 -1
|
@@ -10,6 +10,7 @@ import { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
|
10
10
|
import { BsButtonSize, BsButtonVariant } from "./components/bs-button/bs-button";
|
|
11
11
|
import { BsButtonSize as BsButtonSize1 } from "./components/bs-button/bs-button";
|
|
12
12
|
import { BsCardSurface } from "./components/bs-card/bs-card";
|
|
13
|
+
import { BsCheckboxSize } from "./components/bs-checkbox/bs-checkbox";
|
|
13
14
|
import { BsComposerState, BsComposerVariant } from "./components/bs-composer/bs-composer";
|
|
14
15
|
import { BsComposerStatusBannerType } from "./components/bs-composer-status-banner/bs-composer-status-banner";
|
|
15
16
|
import { BsDataTableColumn, BsDataTableRow } from "./components/bs-data-table/bs-data-table";
|
|
@@ -19,6 +20,7 @@ export { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
|
19
20
|
export { BsButtonSize, BsButtonVariant } from "./components/bs-button/bs-button";
|
|
20
21
|
export { BsButtonSize as BsButtonSize1 } from "./components/bs-button/bs-button";
|
|
21
22
|
export { BsCardSurface } from "./components/bs-card/bs-card";
|
|
23
|
+
export { BsCheckboxSize } from "./components/bs-checkbox/bs-checkbox";
|
|
22
24
|
export { BsComposerState, BsComposerVariant } from "./components/bs-composer/bs-composer";
|
|
23
25
|
export { BsComposerStatusBannerType } from "./components/bs-composer-status-banner/bs-composer-status-banner";
|
|
24
26
|
export { BsDataTableColumn, BsDataTableRow } from "./components/bs-data-table/bs-data-table";
|
|
@@ -516,6 +518,44 @@ export namespace Components {
|
|
|
516
518
|
*/
|
|
517
519
|
"disabled": boolean;
|
|
518
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
523
|
+
* choices.
|
|
524
|
+
* ## When to use
|
|
525
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
526
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
527
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
528
|
+
* ## When not to use
|
|
529
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
530
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
531
|
+
*/
|
|
532
|
+
interface BsCheckbox {
|
|
533
|
+
/**
|
|
534
|
+
* Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly. When `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon) regardless of this value -- same as native checkboxes.
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
"checked": boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling, and prevents toggling.
|
|
540
|
+
* @default false
|
|
541
|
+
*/
|
|
542
|
+
"disabled": boolean;
|
|
543
|
+
/**
|
|
544
|
+
* Applies the error border/label-color treatment. This component's spec has no error message text of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.
|
|
545
|
+
* @default false
|
|
546
|
+
*/
|
|
547
|
+
"error": boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Whether the checkbox is in the indeterminate ("partially selected") state -- shows a minus icon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native checkboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the element. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's this component's own reflected state, not the native control's -- the native `<input>` inside has its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
"indeterminate": boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Sizing scale. Controls the box's width/height and border width; corner radius is constant across all sizes.
|
|
555
|
+
* @default 'lg'
|
|
556
|
+
*/
|
|
557
|
+
"size": BsCheckboxSize;
|
|
558
|
+
}
|
|
519
559
|
/**
|
|
520
560
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
521
561
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
|
@@ -838,14 +878,22 @@ export namespace Components {
|
|
|
838
878
|
* @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
|
|
839
879
|
* @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
|
|
840
880
|
* @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
|
|
841
|
-
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
|
|
881
|
+
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container-hover`.
|
|
842
882
|
* @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
|
|
883
|
+
* @prop --bs-menu-item-disabled-bg - Background when `disabled` is set. Aliased to `--bs-surface-action-disabled`.
|
|
843
884
|
* @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
|
|
885
|
+
* @prop --bs-menu-item-icon-color-disabled - Icon color when `disabled` is set. Aliased to `--bs-icon-disabled`.
|
|
844
886
|
* @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
|
|
887
|
+
* @prop --bs-menu-item-color-disabled - Label text color when `disabled` is set. Aliased to `--bs-text-on-disabled`.
|
|
845
888
|
* @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
|
|
846
889
|
* @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
|
|
847
890
|
*/
|
|
848
891
|
interface BsMenuItem {
|
|
892
|
+
/**
|
|
893
|
+
* Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by keyboard tabbing, and clicking it does not emit `bsSelect`.
|
|
894
|
+
* @default false
|
|
895
|
+
*/
|
|
896
|
+
"disabled": boolean;
|
|
849
897
|
}
|
|
850
898
|
/**
|
|
851
899
|
* An overlay dialog that interrupts the current flow for a focused task or confirmation.
|
|
@@ -978,6 +1026,10 @@ export interface BsChatbotSuggestionButtonCustomEvent<T> extends CustomEvent<T>
|
|
|
978
1026
|
detail: T;
|
|
979
1027
|
target: HTMLBsChatbotSuggestionButtonElement;
|
|
980
1028
|
}
|
|
1029
|
+
export interface BsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1030
|
+
detail: T;
|
|
1031
|
+
target: HTMLBsCheckboxElement;
|
|
1032
|
+
}
|
|
981
1033
|
export interface BsComposerCustomEvent<T> extends CustomEvent<T> {
|
|
982
1034
|
detail: T;
|
|
983
1035
|
target: HTMLBsComposerElement;
|
|
@@ -1489,6 +1541,34 @@ declare global {
|
|
|
1489
1541
|
prototype: HTMLBsChatbotSuggestionButtonElement;
|
|
1490
1542
|
new (): HTMLBsChatbotSuggestionButtonElement;
|
|
1491
1543
|
};
|
|
1544
|
+
interface HTMLBsCheckboxElementEventMap {
|
|
1545
|
+
"bsChange": boolean;
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
1549
|
+
* choices.
|
|
1550
|
+
* ## When to use
|
|
1551
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
1552
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
1553
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
1554
|
+
* ## When not to use
|
|
1555
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
1556
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
1557
|
+
*/
|
|
1558
|
+
interface HTMLBsCheckboxElement extends Components.BsCheckbox, HTMLStencilElement {
|
|
1559
|
+
addEventListener<K extends keyof HTMLBsCheckboxElementEventMap>(type: K, listener: (this: HTMLBsCheckboxElement, ev: BsCheckboxCustomEvent<HTMLBsCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1560
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1561
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1562
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1563
|
+
removeEventListener<K extends keyof HTMLBsCheckboxElementEventMap>(type: K, listener: (this: HTMLBsCheckboxElement, ev: BsCheckboxCustomEvent<HTMLBsCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1564
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1565
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1566
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1567
|
+
}
|
|
1568
|
+
var HTMLBsCheckboxElement: {
|
|
1569
|
+
prototype: HTMLBsCheckboxElement;
|
|
1570
|
+
new (): HTMLBsCheckboxElement;
|
|
1571
|
+
};
|
|
1492
1572
|
interface HTMLBsComposerElementEventMap {
|
|
1493
1573
|
"bsInput": string;
|
|
1494
1574
|
"bsSubmit": void;
|
|
@@ -1722,10 +1802,13 @@ declare global {
|
|
|
1722
1802
|
* @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
|
|
1723
1803
|
* @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
|
|
1724
1804
|
* @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
|
|
1725
|
-
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
|
|
1805
|
+
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container-hover`.
|
|
1726
1806
|
* @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
|
|
1807
|
+
* @prop --bs-menu-item-disabled-bg - Background when `disabled` is set. Aliased to `--bs-surface-action-disabled`.
|
|
1727
1808
|
* @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
|
|
1809
|
+
* @prop --bs-menu-item-icon-color-disabled - Icon color when `disabled` is set. Aliased to `--bs-icon-disabled`.
|
|
1728
1810
|
* @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
|
|
1811
|
+
* @prop --bs-menu-item-color-disabled - Label text color when `disabled` is set. Aliased to `--bs-text-on-disabled`.
|
|
1729
1812
|
* @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
|
|
1730
1813
|
* @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
|
|
1731
1814
|
*/
|
|
@@ -1861,6 +1944,7 @@ declare global {
|
|
|
1861
1944
|
"bs-chatbot-response-action": HTMLBsChatbotResponseActionElement;
|
|
1862
1945
|
"bs-chatbot-sources-drawer": HTMLBsChatbotSourcesDrawerElement;
|
|
1863
1946
|
"bs-chatbot-suggestion-button": HTMLBsChatbotSuggestionButtonElement;
|
|
1947
|
+
"bs-checkbox": HTMLBsCheckboxElement;
|
|
1864
1948
|
"bs-composer": HTMLBsComposerElement;
|
|
1865
1949
|
"bs-composer-status-banner": HTMLBsComposerStatusBannerElement;
|
|
1866
1950
|
"bs-data-table": HTMLBsDataTableElement;
|
|
@@ -2437,6 +2521,48 @@ declare namespace LocalJSX {
|
|
|
2437
2521
|
*/
|
|
2438
2522
|
"onBsSelect"?: (event: BsChatbotSuggestionButtonCustomEvent<void>) => void;
|
|
2439
2523
|
}
|
|
2524
|
+
/**
|
|
2525
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
2526
|
+
* choices.
|
|
2527
|
+
* ## When to use
|
|
2528
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
2529
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
2530
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
2531
|
+
* ## When not to use
|
|
2532
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
2533
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
2534
|
+
*/
|
|
2535
|
+
interface BsCheckbox {
|
|
2536
|
+
/**
|
|
2537
|
+
* Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly. When `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon) regardless of this value -- same as native checkboxes.
|
|
2538
|
+
* @default false
|
|
2539
|
+
*/
|
|
2540
|
+
"checked"?: boolean;
|
|
2541
|
+
/**
|
|
2542
|
+
* Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling, and prevents toggling.
|
|
2543
|
+
* @default false
|
|
2544
|
+
*/
|
|
2545
|
+
"disabled"?: boolean;
|
|
2546
|
+
/**
|
|
2547
|
+
* Applies the error border/label-color treatment. This component's spec has no error message text of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.
|
|
2548
|
+
* @default false
|
|
2549
|
+
*/
|
|
2550
|
+
"error"?: boolean;
|
|
2551
|
+
/**
|
|
2552
|
+
* Whether the checkbox is in the indeterminate ("partially selected") state -- shows a minus icon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native checkboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the element. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's this component's own reflected state, not the native control's -- the native `<input>` inside has its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.
|
|
2553
|
+
* @default false
|
|
2554
|
+
*/
|
|
2555
|
+
"indeterminate"?: boolean;
|
|
2556
|
+
/**
|
|
2557
|
+
* Emitted when the checked state changes via user interaction, with the new `checked` value.
|
|
2558
|
+
*/
|
|
2559
|
+
"onBsChange"?: (event: BsCheckboxCustomEvent<boolean>) => void;
|
|
2560
|
+
/**
|
|
2561
|
+
* Sizing scale. Controls the box's width/height and border width; corner radius is constant across all sizes.
|
|
2562
|
+
* @default 'lg'
|
|
2563
|
+
*/
|
|
2564
|
+
"size"?: BsCheckboxSize;
|
|
2565
|
+
}
|
|
2440
2566
|
/**
|
|
2441
2567
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
2442
2568
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
|
@@ -2815,14 +2941,22 @@ declare namespace LocalJSX {
|
|
|
2815
2941
|
* @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
|
|
2816
2942
|
* @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
|
|
2817
2943
|
* @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
|
|
2818
|
-
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
|
|
2944
|
+
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container-hover`.
|
|
2819
2945
|
* @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
|
|
2946
|
+
* @prop --bs-menu-item-disabled-bg - Background when `disabled` is set. Aliased to `--bs-surface-action-disabled`.
|
|
2820
2947
|
* @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
|
|
2948
|
+
* @prop --bs-menu-item-icon-color-disabled - Icon color when `disabled` is set. Aliased to `--bs-icon-disabled`.
|
|
2821
2949
|
* @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
|
|
2950
|
+
* @prop --bs-menu-item-color-disabled - Label text color when `disabled` is set. Aliased to `--bs-text-on-disabled`.
|
|
2822
2951
|
* @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
|
|
2823
2952
|
* @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
|
|
2824
2953
|
*/
|
|
2825
2954
|
interface BsMenuItem {
|
|
2955
|
+
/**
|
|
2956
|
+
* Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by keyboard tabbing, and clicking it does not emit `bsSelect`.
|
|
2957
|
+
* @default false
|
|
2958
|
+
*/
|
|
2959
|
+
"disabled"?: boolean;
|
|
2826
2960
|
/**
|
|
2827
2961
|
* Fires when the item is clicked.
|
|
2828
2962
|
*/
|
|
@@ -2996,6 +3130,13 @@ declare namespace LocalJSX {
|
|
|
2996
3130
|
interface BsChatbotSuggestionButtonAttributes {
|
|
2997
3131
|
"disabled": boolean;
|
|
2998
3132
|
}
|
|
3133
|
+
interface BsCheckboxAttributes {
|
|
3134
|
+
"size": BsCheckboxSize;
|
|
3135
|
+
"checked": boolean;
|
|
3136
|
+
"indeterminate": boolean;
|
|
3137
|
+
"disabled": boolean;
|
|
3138
|
+
"error": boolean;
|
|
3139
|
+
}
|
|
2999
3140
|
interface BsComposerAttributes {
|
|
3000
3141
|
"variant": BsComposerVariant;
|
|
3001
3142
|
"placeholder": string;
|
|
@@ -3046,6 +3187,9 @@ declare namespace LocalJSX {
|
|
|
3046
3187
|
"length": number;
|
|
3047
3188
|
"open": boolean;
|
|
3048
3189
|
}
|
|
3190
|
+
interface BsMenuItemAttributes {
|
|
3191
|
+
"disabled": boolean;
|
|
3192
|
+
}
|
|
3049
3193
|
interface BsModalAttributes {
|
|
3050
3194
|
"open": boolean;
|
|
3051
3195
|
"heading": string;
|
|
@@ -3077,12 +3221,13 @@ declare namespace LocalJSX {
|
|
|
3077
3221
|
"bs-chatbot-response-action": Omit<BsChatbotResponseAction, keyof BsChatbotResponseActionAttributes> & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes]?: BsChatbotResponseAction[K] } & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes as `attr:${K}`]?: BsChatbotResponseActionAttributes[K] } & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes as `prop:${K}`]?: BsChatbotResponseAction[K] };
|
|
3078
3222
|
"bs-chatbot-sources-drawer": Omit<BsChatbotSourcesDrawer, keyof BsChatbotSourcesDrawerAttributes> & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes]?: BsChatbotSourcesDrawer[K] } & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes as `attr:${K}`]?: BsChatbotSourcesDrawerAttributes[K] } & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes as `prop:${K}`]?: BsChatbotSourcesDrawer[K] };
|
|
3079
3223
|
"bs-chatbot-suggestion-button": Omit<BsChatbotSuggestionButton, keyof BsChatbotSuggestionButtonAttributes> & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes]?: BsChatbotSuggestionButton[K] } & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes as `attr:${K}`]?: BsChatbotSuggestionButtonAttributes[K] } & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes as `prop:${K}`]?: BsChatbotSuggestionButton[K] };
|
|
3224
|
+
"bs-checkbox": Omit<BsCheckbox, keyof BsCheckboxAttributes> & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes]?: BsCheckbox[K] } & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes as `attr:${K}`]?: BsCheckboxAttributes[K] } & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes as `prop:${K}`]?: BsCheckbox[K] };
|
|
3080
3225
|
"bs-composer": Omit<BsComposer, keyof BsComposerAttributes> & { [K in keyof BsComposer & keyof BsComposerAttributes]?: BsComposer[K] } & { [K in keyof BsComposer & keyof BsComposerAttributes as `attr:${K}`]?: BsComposerAttributes[K] } & { [K in keyof BsComposer & keyof BsComposerAttributes as `prop:${K}`]?: BsComposer[K] };
|
|
3081
3226
|
"bs-composer-status-banner": Omit<BsComposerStatusBanner, keyof BsComposerStatusBannerAttributes> & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes]?: BsComposerStatusBanner[K] } & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes as `attr:${K}`]?: BsComposerStatusBannerAttributes[K] } & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes as `prop:${K}`]?: BsComposerStatusBanner[K] };
|
|
3082
3227
|
"bs-data-table": Omit<BsDataTable, keyof BsDataTableAttributes> & { [K in keyof BsDataTable & keyof BsDataTableAttributes]?: BsDataTable[K] } & { [K in keyof BsDataTable & keyof BsDataTableAttributes as `attr:${K}`]?: BsDataTableAttributes[K] } & { [K in keyof BsDataTable & keyof BsDataTableAttributes as `prop:${K}`]?: BsDataTable[K] };
|
|
3083
3228
|
"bs-input": Omit<BsInput, keyof BsInputAttributes> & { [K in keyof BsInput & keyof BsInputAttributes]?: BsInput[K] } & { [K in keyof BsInput & keyof BsInputAttributes as `attr:${K}`]?: BsInputAttributes[K] } & { [K in keyof BsInput & keyof BsInputAttributes as `prop:${K}`]?: BsInput[K] };
|
|
3084
3229
|
"bs-menu": BsMenu;
|
|
3085
|
-
"bs-menu-item": BsMenuItem;
|
|
3230
|
+
"bs-menu-item": Omit<BsMenuItem, keyof BsMenuItemAttributes> & { [K in keyof BsMenuItem & keyof BsMenuItemAttributes]?: BsMenuItem[K] } & { [K in keyof BsMenuItem & keyof BsMenuItemAttributes as `attr:${K}`]?: BsMenuItemAttributes[K] } & { [K in keyof BsMenuItem & keyof BsMenuItemAttributes as `prop:${K}`]?: BsMenuItem[K] };
|
|
3086
3231
|
"bs-modal": Omit<BsModal, keyof BsModalAttributes> & { [K in keyof BsModal & keyof BsModalAttributes]?: BsModal[K] } & { [K in keyof BsModal & keyof BsModalAttributes as `attr:${K}`]?: BsModalAttributes[K] } & { [K in keyof BsModal & keyof BsModalAttributes as `prop:${K}`]?: BsModal[K] };
|
|
3087
3232
|
"bs-source-link": Omit<BsSourceLink, keyof BsSourceLinkAttributes> & { [K in keyof BsSourceLink & keyof BsSourceLinkAttributes]?: BsSourceLink[K] } & { [K in keyof BsSourceLink & keyof BsSourceLinkAttributes as `attr:${K}`]?: BsSourceLinkAttributes[K] } & { [K in keyof BsSourceLink & keyof BsSourceLinkAttributes as `prop:${K}`]?: BsSourceLink[K] };
|
|
3088
3233
|
"bs-tooltip": Omit<BsTooltip, keyof BsTooltipAttributes> & { [K in keyof BsTooltip & keyof BsTooltipAttributes]?: BsTooltip[K] } & { [K in keyof BsTooltip & keyof BsTooltipAttributes as `attr:${K}`]?: BsTooltipAttributes[K] } & { [K in keyof BsTooltip & keyof BsTooltipAttributes as `prop:${K}`]?: BsTooltip[K] };
|
|
@@ -3426,6 +3571,18 @@ declare module "@stencil/core" {
|
|
|
3426
3571
|
* `--bs-border-primary-focus`.
|
|
3427
3572
|
*/
|
|
3428
3573
|
"bs-chatbot-suggestion-button": LocalJSX.IntrinsicElements["bs-chatbot-suggestion-button"] & JSXBase.HTMLAttributes<HTMLBsChatbotSuggestionButtonElement>;
|
|
3574
|
+
/**
|
|
3575
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
3576
|
+
* choices.
|
|
3577
|
+
* ## When to use
|
|
3578
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
3579
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
3580
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
3581
|
+
* ## When not to use
|
|
3582
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
3583
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
3584
|
+
*/
|
|
3585
|
+
"bs-checkbox": LocalJSX.IntrinsicElements["bs-checkbox"] & JSXBase.HTMLAttributes<HTMLBsCheckboxElement>;
|
|
3429
3586
|
/**
|
|
3430
3587
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
3431
3588
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
|
@@ -3574,10 +3731,13 @@ declare module "@stencil/core" {
|
|
|
3574
3731
|
* @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
|
|
3575
3732
|
* @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
|
|
3576
3733
|
* @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
|
|
3577
|
-
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
|
|
3734
|
+
* @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container-hover`.
|
|
3578
3735
|
* @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
|
|
3736
|
+
* @prop --bs-menu-item-disabled-bg - Background when `disabled` is set. Aliased to `--bs-surface-action-disabled`.
|
|
3579
3737
|
* @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
|
|
3738
|
+
* @prop --bs-menu-item-icon-color-disabled - Icon color when `disabled` is set. Aliased to `--bs-icon-disabled`.
|
|
3580
3739
|
* @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
|
|
3740
|
+
* @prop --bs-menu-item-color-disabled - Label text color when `disabled` is set. Aliased to `--bs-text-on-disabled`.
|
|
3581
3741
|
* @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
|
|
3582
3742
|
* @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
|
|
3583
3743
|
*/
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as e,a,h as r}from"./p-nLORuTUY.js";const o=class{constructor(a){s(this,a),this.bsCollapse=e(this,"bsCollapse")}get el(){return a(this)}heading="Sources";count;bsCollapse;slottedCount=0;onSlotchange=s=>{this.slottedCount=s.target.assignedElements().filter((s=>"bs-source-link"===s.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const s=this.count??this.slottedCount;return r("div",{key:"54cb56455b630d5ed30dd2a925728f2803143b17",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},r("div",{key:"d24eabd0ac2c36ec4033a9b5c361aa32225fa78a",class:"bs-chatbot-sources-drawer__header"},r("div",{key:"0bec3fb848552496e1884b4731c5e1964570c70d",class:"bs-chatbot-sources-drawer__title-group"},r("h2",{key:"955389bd4f3ba1950c9af404e5880a6837298384",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),s>0&&r("span",{key:"40d83288bbd257504ef814247c7bd4664df9e169",part:"count",class:"bs-chatbot-sources-drawer__count"},s)),r("button",{key:"56a15c64faea80790387d4918843c806b684268b",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":"Collapse sources",onClick:this.onCollapseClick},r("slot",{key:"c321f53482f0265357a6a29fc40e0ff3766f0b74",name:"collapse-icon"},r(t,{key:"c3d4c17bebd2611b27c3e7f87d359e4b46c41d4f"})))),r("div",{key:"d6c4b8e3660f765112f0c33dd72021af118332d9",part:"list",class:"bs-chatbot-sources-drawer__list"},r("slot",{key:"19759a01d921ed2517cbca2b01ea53741a207b8b",onSlotchange:this.onSlotchange})))}},t=()=>r("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M7.5 4.375L13.125 10L7.5 15.625",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-chatbot-sources-drawer-bg:var(--bs-surface-raised);--bs-chatbot-sources-drawer-header-shadow:var(--bs-shadow-xs);--bs-chatbot-sources-drawer-header-padding-x:var(--bs-spacing-200);--bs-chatbot-sources-drawer-header-padding-top:var(--bs-spacing-150);--bs-chatbot-sources-drawer-header-padding-bottom:var(--bs-spacing-100);--bs-chatbot-sources-drawer-heading-color:var(--bs-text-default);--bs-chatbot-sources-drawer-count-bg:var(--bs-badge-bg-neutral-container);--bs-chatbot-sources-drawer-count-color:var(--bs-badge-text-neutral);--bs-chatbot-sources-drawer-collapse-hover:var(--bs-surface-hover);--bs-chatbot-sources-drawer-section-gap:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-padding:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-gap:var(--bs-spacing-50)}.bs-chatbot-sources-drawer{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-section-gap);width:100%;height:100%;background:var(--bs-chatbot-sources-drawer-bg);font-family:inherit}.bs-chatbot-sources-drawer__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:var(--bs-chatbot-sources-drawer-header-padding-top) var(--bs-chatbot-sources-drawer-header-padding-x) var(--bs-chatbot-sources-drawer-header-padding-bottom);box-shadow:var(--bs-chatbot-sources-drawer-header-shadow)}.bs-chatbot-sources-drawer__title-group{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-chatbot-sources-drawer__heading{margin:0;color:var(--bs-chatbot-sources-drawer-heading-color);font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}.bs-chatbot-sources-drawer__count{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:16px;max-width:34px;padding:var(--bs-spacing-50) var(--bs-spacing-100);background:var(--bs-chatbot-sources-drawer-count-bg);border-radius:var(--bs-border-radius-50);color:var(--bs-chatbot-sources-drawer-count-color);font-size:var(--bs-font-size-xs);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-chatbot-sources-drawer__collapse{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer}.bs-chatbot-sources-drawer__collapse:hover{background:var(--bs-chatbot-sources-drawer-collapse-hover)}.bs-chatbot-sources-drawer__collapse:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}.bs-chatbot-sources-drawer__list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-list-gap);padding:0 var(--bs-chatbot-sources-drawer-list-padding) var(--bs-chatbot-sources-drawer-list-padding);overflow-y:auto}";export{o as bs_chatbot_sources_drawer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s,c as n}from"./p-nLORuTUY.js";const a=class{constructor(s){e(this,s)}render(){return s("div",{key:"e49c52a18ea8c10399d818a00e0c6b748f0c9b8f",part:"list",class:"bs-menu",role:"menu"},s("slot",{key:"7e8cef2af1a068d0ab31fc3aee0abf8b59645a08"}))}};a.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}";const i=class{constructor(s){e(this,s),this.bsSelect=n(this,"bsSelect")}hasIcon=!1;bsSelect;onIconSlotchange=e=>{this.hasIcon=e.target.assignedNodes().length>0};onClick=()=>{this.bsSelect.emit()};render(){return s("button",{key:"dee92b0e122d1a1d100e950ac5b3a368a94d075b",type:"button",part:"item",role:"menuitem",class:"bs-menu-item",onClick:this.onClick},s("span",{key:"e4ce02b4df1ec40bf0f3f72bd1611816e8851909",part:"icon",class:"bs-menu-item__icon "+(this.hasIcon?"bs-menu-item__icon--has-content":"")},s("slot",{key:"9e19fea7d90078577047b5aea0170c09d27fb340",name:"icon",onSlotchange:this.onIconSlotchange})),s("span",{key:"179ce497185c4f9f5bbd238bd0c781a189743ad1",part:"label",class:"bs-menu-item__label"},s("slot",{key:"dfe5de71a770cc9ff9847d8f687bba01ae9e1b1e"})))}};i.style=":host{display:block;--bs-menu-item-radius:var(--bs-border-radius-100);--bs-menu-item-padding-y:var(--bs-spacing-100);--bs-menu-item-padding-x:var(--bs-spacing-150);--bs-menu-item-gap:var(--bs-spacing-100);--bs-menu-item-hover:var(--bs-color-neutral-container);--bs-menu-item-pressed:var(--bs-color-neutral-container-pressed);--bs-menu-item-icon-color:var(--bs-icon-default);--bs-menu-item-color:var(--bs-text-muted);--bs-menu-item-font-size:var(--bs-font-size-md);--bs-menu-item-line-height:var(--bs-line-height-body-md)}.bs-menu-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:48px;border:none;cursor:pointer;background:transparent;color:var(--bs-menu-item-color);font-family:inherit;border-radius:var(--bs-menu-item-radius);padding:var(--bs-menu-item-padding-y) var(--bs-menu-item-padding-x);gap:var(--bs-menu-item-gap);transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-menu-item:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-menu-item:hover{background:var(--bs-menu-item-hover)}.bs-menu-item:active{background:var(--bs-menu-item-pressed)}.bs-menu-item__icon{display:none;width:24px;height:24px;flex-shrink:0;color:var(--bs-menu-item-icon-color)}.bs-menu-item__icon--has-content{display:inline-flex;align-items:center;justify-content:center}.bs-menu-item__icon ::slotted(svg){width:24px;height:24px}.bs-menu-item__label{font-size:var(--bs-menu-item-font-size);line-height:calc(var(--bs-menu-item-line-height) * 1px);white-space:nowrap}";export{a as bs_menu,i as bs_menu_item}
|
|
@@ -1 +0,0 @@
|
|
|
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:"9b16ade44ff85120e9629722de8e8c1738835c1b",part:"table",class:"bs-data-table"},a("thead",{key:"644eed606e68782ada42c289bb7bfc8d6de4affb",part:"head"},a("tr",{key:"4e4ea75018796c77f14703c1c1402022f8c8cde9"},this.selectable&&a("th",{key:"85460f7c2eab6ad0f3604f72bcd81a4aa8699c03",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:"024cb8a25cc6471e7074d119b78e6a8e22f86450",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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,c as n,h as i}from"./p-BpvhHQSw.js";const a=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsSelect=n(this,"bsSelect")}hasIcon=!1;bsSelect;onIconSlotchange=e=>{this.hasIcon=e.target.assignedNodes().length>0};onClick=()=>{this.bsSelect.emit()};render(){return i("button",{key:"dee92b0e122d1a1d100e950ac5b3a368a94d075b",type:"button",part:"item",role:"menuitem",class:"bs-menu-item",onClick:this.onClick},i("span",{key:"e4ce02b4df1ec40bf0f3f72bd1611816e8851909",part:"icon",class:"bs-menu-item__icon "+(this.hasIcon?"bs-menu-item__icon--has-content":"")},i("slot",{key:"9e19fea7d90078577047b5aea0170c09d27fb340",name:"icon",onSlotchange:this.onIconSlotchange})),i("span",{key:"179ce497185c4f9f5bbd238bd0c781a189743ad1",part:"label",class:"bs-menu-item__label"},i("slot",{key:"dfe5de71a770cc9ff9847d8f687bba01ae9e1b1e"})))}static get style(){return":host{display:block;--bs-menu-item-radius:var(--bs-border-radius-100);--bs-menu-item-padding-y:var(--bs-spacing-100);--bs-menu-item-padding-x:var(--bs-spacing-150);--bs-menu-item-gap:var(--bs-spacing-100);--bs-menu-item-hover:var(--bs-color-neutral-container);--bs-menu-item-pressed:var(--bs-color-neutral-container-pressed);--bs-menu-item-icon-color:var(--bs-icon-default);--bs-menu-item-color:var(--bs-text-muted);--bs-menu-item-font-size:var(--bs-font-size-md);--bs-menu-item-line-height:var(--bs-line-height-body-md)}.bs-menu-item{box-sizing:border-box;display:flex;align-items:center;width:100%;height:48px;border:none;cursor:pointer;background:transparent;color:var(--bs-menu-item-color);font-family:inherit;border-radius:var(--bs-menu-item-radius);padding:var(--bs-menu-item-padding-y) var(--bs-menu-item-padding-x);gap:var(--bs-menu-item-gap);transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-menu-item:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-menu-item:hover{background:var(--bs-menu-item-hover)}.bs-menu-item:active{background:var(--bs-menu-item-pressed)}.bs-menu-item__icon{display:none;width:24px;height:24px;flex-shrink:0;color:var(--bs-menu-item-icon-color)}.bs-menu-item__icon--has-content{display:inline-flex;align-items:center;justify-content:center}.bs-menu-item__icon ::slotted(svg){width:24px;height:24px}.bs-menu-item__label{font-size:var(--bs-menu-item-font-size);line-height:calc(var(--bs-menu-item-line-height) * 1px);white-space:nowrap}"}},[769,"bs-menu-item",{hasIcon:[32]}]);function o(){"undefined"!=typeof customElements&&["bs-menu-item"].forEach((s=>{"bs-menu-item"===s&&(customElements.get(e(s))||customElements.define(e(s),a))}))}o();export{a as B,o as d}
|