@unofficialbox/box-open-elements 0.1.0
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/LICENSE +21 -0
- package/README.md +125 -0
- package/dist/components/actions/button-group.d.ts +22 -0
- package/dist/components/actions/button-group.js +255 -0
- package/dist/components/actions/button.d.ts +16 -0
- package/dist/components/actions/button.js +190 -0
- package/dist/components/actions/icon-button.d.ts +20 -0
- package/dist/components/actions/icon-button.js +187 -0
- package/dist/components/actions/link-button.d.ts +14 -0
- package/dist/components/actions/link-button.js +137 -0
- package/dist/components/actions/menu-item.d.ts +17 -0
- package/dist/components/actions/menu-item.js +137 -0
- package/dist/components/actions/menu.d.ts +22 -0
- package/dist/components/actions/menu.js +178 -0
- package/dist/components/actions/segmented-control.d.ts +27 -0
- package/dist/components/actions/segmented-control.js +273 -0
- package/dist/components/collections/card.d.ts +13 -0
- package/dist/components/collections/card.js +110 -0
- package/dist/components/collections/carousel.d.ts +40 -0
- package/dist/components/collections/carousel.js +406 -0
- package/dist/components/collections/datalist-item.d.ts +32 -0
- package/dist/components/collections/datalist-item.js +196 -0
- package/dist/components/collections/draggable-list.d.ts +33 -0
- package/dist/components/collections/draggable-list.js +306 -0
- package/dist/components/collections/grid-view.d.ts +38 -0
- package/dist/components/collections/grid-view.js +321 -0
- package/dist/components/collections/pagination.d.ts +19 -0
- package/dist/components/collections/pagination.js +147 -0
- package/dist/components/collections/tree-grid.d.ts +47 -0
- package/dist/components/collections/tree-grid.js +593 -0
- package/dist/components/collections/tree.d.ts +37 -0
- package/dist/components/collections/tree.js +526 -0
- package/dist/components/feedback/alert.d.ts +27 -0
- package/dist/components/feedback/alert.js +263 -0
- package/dist/components/feedback/badge.d.ts +12 -0
- package/dist/components/feedback/badge.js +99 -0
- package/dist/components/feedback/chip.d.ts +33 -0
- package/dist/components/feedback/chip.js +261 -0
- package/dist/components/feedback/empty-state.d.ts +19 -0
- package/dist/components/feedback/empty-state.js +137 -0
- package/dist/components/feedback/error-mask.d.ts +25 -0
- package/dist/components/feedback/error-mask.js +199 -0
- package/dist/components/feedback/help-text.d.ts +22 -0
- package/dist/components/feedback/help-text.js +176 -0
- package/dist/components/feedback/nudge.d.ts +32 -0
- package/dist/components/feedback/nudge.js +299 -0
- package/dist/components/feedback/progress-bar.d.ts +18 -0
- package/dist/components/feedback/progress-bar.js +128 -0
- package/dist/components/feedback/progress-ring.d.ts +21 -0
- package/dist/components/feedback/progress-ring.js +155 -0
- package/dist/components/feedback/progress-steps.d.ts +25 -0
- package/dist/components/feedback/progress-steps.js +276 -0
- package/dist/components/feedback/skeleton.d.ts +14 -0
- package/dist/components/feedback/skeleton.js +95 -0
- package/dist/components/feedback/spinner.d.ts +10 -0
- package/dist/components/feedback/spinner.js +80 -0
- package/dist/components/feedback/toast.d.ts +26 -0
- package/dist/components/feedback/toast.js +205 -0
- package/dist/components/files/drop-zone.d.ts +19 -0
- package/dist/components/files/drop-zone.js +169 -0
- package/dist/components/forms/calendar.d.ts +47 -0
- package/dist/components/forms/calendar.js +499 -0
- package/dist/components/forms/category-selector.d.ts +35 -0
- package/dist/components/forms/category-selector.js +269 -0
- package/dist/components/forms/checkbox-group.d.ts +31 -0
- package/dist/components/forms/checkbox-group.js +267 -0
- package/dist/components/forms/checkbox.d.ts +28 -0
- package/dist/components/forms/checkbox.js +250 -0
- package/dist/components/forms/color-picker.d.ts +34 -0
- package/dist/components/forms/color-picker.js +314 -0
- package/dist/components/forms/combobox.d.ts +37 -0
- package/dist/components/forms/combobox.js +234 -0
- package/dist/components/forms/date-field.d.ts +27 -0
- package/dist/components/forms/date-field.js +187 -0
- package/dist/components/forms/dropdown.d.ts +38 -0
- package/dist/components/forms/dropdown.js +405 -0
- package/dist/components/forms/dual-listbox.d.ts +44 -0
- package/dist/components/forms/dual-listbox.js +484 -0
- package/dist/components/forms/fieldset.d.ts +32 -0
- package/dist/components/forms/fieldset.js +168 -0
- package/dist/components/forms/multi-select.d.ts +30 -0
- package/dist/components/forms/multi-select.js +264 -0
- package/dist/components/forms/number-input.d.ts +32 -0
- package/dist/components/forms/number-input.js +245 -0
- package/dist/components/forms/pill-cloud.d.ts +35 -0
- package/dist/components/forms/pill-cloud.js +230 -0
- package/dist/components/forms/pill-selector-dropdown.d.ts +55 -0
- package/dist/components/forms/pill-selector-dropdown.js +499 -0
- package/dist/components/forms/radio-group.d.ts +32 -0
- package/dist/components/forms/radio-group.js +285 -0
- package/dist/components/forms/range-slider.d.ts +36 -0
- package/dist/components/forms/range-slider.js +294 -0
- package/dist/components/forms/rating.d.ts +31 -0
- package/dist/components/forms/rating.js +302 -0
- package/dist/components/forms/rich-text-input.d.ts +32 -0
- package/dist/components/forms/rich-text-input.js +403 -0
- package/dist/components/forms/search-field.d.ts +27 -0
- package/dist/components/forms/search-field.js +293 -0
- package/dist/components/forms/select.d.ts +30 -0
- package/dist/components/forms/select.js +198 -0
- package/dist/components/forms/slider.d.ts +31 -0
- package/dist/components/forms/slider.js +221 -0
- package/dist/components/forms/spin-button.d.ts +33 -0
- package/dist/components/forms/spin-button.js +352 -0
- package/dist/components/forms/switch.d.ts +32 -0
- package/dist/components/forms/switch.js +302 -0
- package/dist/components/forms/tag-input.d.ts +46 -0
- package/dist/components/forms/tag-input.js +420 -0
- package/dist/components/forms/text-area.d.ts +26 -0
- package/dist/components/forms/text-area.js +188 -0
- package/dist/components/forms/text-field.d.ts +24 -0
- package/dist/components/forms/text-field.js +151 -0
- package/dist/components/forms/time-field.d.ts +29 -0
- package/dist/components/forms/time-field.js +203 -0
- package/dist/components/identity/avatar.d.ts +21 -0
- package/dist/components/identity/avatar.js +191 -0
- package/dist/components/identity/contact-datalist-item.d.ts +31 -0
- package/dist/components/identity/contact-datalist-item.js +235 -0
- package/dist/components/identity/persona.d.ts +28 -0
- package/dist/components/identity/persona.js +272 -0
- package/dist/components/layout/app-shell.d.ts +26 -0
- package/dist/components/layout/app-shell.js +258 -0
- package/dist/components/layout/divider.d.ts +12 -0
- package/dist/components/layout/divider.js +119 -0
- package/dist/components/layout/nav-sidebar.d.ts +23 -0
- package/dist/components/layout/nav-sidebar.js +167 -0
- package/dist/components/layout/section.d.ts +20 -0
- package/dist/components/layout/section.js +143 -0
- package/dist/components/layout/sidebar-toggle-button.d.ts +26 -0
- package/dist/components/layout/sidebar-toggle-button.js +137 -0
- package/dist/components/layout/split-view.d.ts +19 -0
- package/dist/components/layout/split-view.js +157 -0
- package/dist/components/navigation/accordion.d.ts +25 -0
- package/dist/components/navigation/accordion.js +253 -0
- package/dist/components/navigation/tabs.d.ts +27 -0
- package/dist/components/navigation/tabs.js +289 -0
- package/dist/components/overlays/dialog.d.ts +26 -0
- package/dist/components/overlays/dialog.js +267 -0
- package/dist/components/overlays/drawer.d.ts +32 -0
- package/dist/components/overlays/drawer.js +323 -0
- package/dist/components/overlays/popover.d.ts +35 -0
- package/dist/components/overlays/popover.js +317 -0
- package/dist/components/overlays/tooltip.d.ts +26 -0
- package/dist/components/overlays/tooltip.js +204 -0
- package/dist/components/visuals/illustration.d.ts +26 -0
- package/dist/components/visuals/illustration.js +319 -0
- package/dist/core/controller.d.ts +11 -0
- package/dist/core/controller.js +23 -0
- package/dist/core/element.d.ts +22 -0
- package/dist/core/element.js +28 -0
- package/dist/core/event-emitter.d.ts +9 -0
- package/dist/core/event-emitter.js +33 -0
- package/dist/core/form-associated.d.ts +63 -0
- package/dist/core/form-associated.js +218 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.js +4 -0
- package/dist/core/json-schema.d.ts +1 -0
- package/dist/core/json-schema.js +1 -0
- package/dist/foundations/a11y/focus.d.ts +17 -0
- package/dist/foundations/a11y/focus.js +94 -0
- package/dist/foundations/a11y/heading.d.ts +26 -0
- package/dist/foundations/a11y/heading.js +40 -0
- package/dist/foundations/a11y/index.d.ts +5 -0
- package/dist/foundations/a11y/index.js +3 -0
- package/dist/foundations/a11y/keyboard.d.ts +28 -0
- package/dist/foundations/a11y/keyboard.js +77 -0
- package/dist/foundations/geometry/index.d.ts +1 -0
- package/dist/foundations/geometry/index.js +1 -0
- package/dist/foundations/geometry/tokens.d.ts +123 -0
- package/dist/foundations/geometry/tokens.js +154 -0
- package/dist/foundations/icons/box-iconography.d.ts +479 -0
- package/dist/foundations/icons/box-iconography.generated.d.ts +2370 -0
- package/dist/foundations/icons/box-iconography.generated.js +4010 -0
- package/dist/foundations/icons/box-iconography.js +39 -0
- package/dist/foundations/icons/index.d.ts +1 -0
- package/dist/foundations/icons/index.js +1 -0
- package/dist/foundations/motion/index.d.ts +2 -0
- package/dist/foundations/motion/index.js +1 -0
- package/dist/foundations/motion/tokens.d.ts +39 -0
- package/dist/foundations/motion/tokens.js +43 -0
- package/dist/foundations/tokens/box-dark.d.ts +11 -0
- package/dist/foundations/tokens/box-dark.js +46 -0
- package/dist/foundations/tokens/box-defaults.d.ts +5 -0
- package/dist/foundations/tokens/box-defaults.js +52 -0
- package/dist/foundations/tokens/index.d.ts +5 -0
- package/dist/foundations/tokens/index.js +4 -0
- package/dist/foundations/tokens/interaction.d.ts +28 -0
- package/dist/foundations/tokens/interaction.js +72 -0
- package/dist/foundations/tokens/registry.d.ts +14 -0
- package/dist/foundations/tokens/registry.js +92 -0
- package/dist/foundations/tokens/types.d.ts +16 -0
- package/dist/foundations/tokens/types.js +1 -0
- package/dist/foundations/typography/index.d.ts +2 -0
- package/dist/foundations/typography/index.js +1 -0
- package/dist/foundations/typography/tokens.d.ts +76 -0
- package/dist/foundations/typography/tokens.js +27 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +98 -0
- package/dist/patterns/content-explorer/actions/controller.d.ts +12 -0
- package/dist/patterns/content-explorer/actions/controller.js +36 -0
- package/dist/patterns/content-explorer/actions/index.d.ts +2 -0
- package/dist/patterns/content-explorer/actions/index.js +1 -0
- package/dist/patterns/content-explorer/actions/types.d.ts +13 -0
- package/dist/patterns/content-explorer/actions/types.js +1 -0
- package/dist/patterns/content-explorer/adapters/action-menu.d.ts +24 -0
- package/dist/patterns/content-explorer/adapters/action-menu.js +312 -0
- package/dist/patterns/content-explorer/adapters/breadcrumbs.d.ts +15 -0
- package/dist/patterns/content-explorer/adapters/breadcrumbs.js +161 -0
- package/dist/patterns/content-explorer/adapters/item-summary.d.ts +11 -0
- package/dist/patterns/content-explorer/adapters/item-summary.js +72 -0
- package/dist/patterns/content-explorer/adapters/items.d.ts +4 -0
- package/dist/patterns/content-explorer/adapters/items.js +12 -0
- package/dist/patterns/content-explorer/adapters/list.d.ts +28 -0
- package/dist/patterns/content-explorer/adapters/list.js +527 -0
- package/dist/patterns/content-explorer/adapters/table.d.ts +23 -0
- package/dist/patterns/content-explorer/adapters/table.js +467 -0
- package/dist/patterns/content-explorer/adapters/toolbar.d.ts +19 -0
- package/dist/patterns/content-explorer/adapters/toolbar.js +234 -0
- package/dist/patterns/content-explorer/box-transport.d.ts +44 -0
- package/dist/patterns/content-explorer/box-transport.js +229 -0
- package/dist/patterns/content-explorer/collection/controller.d.ts +17 -0
- package/dist/patterns/content-explorer/collection/controller.js +67 -0
- package/dist/patterns/content-explorer/collection/index.d.ts +2 -0
- package/dist/patterns/content-explorer/collection/index.js +1 -0
- package/dist/patterns/content-explorer/collection/types.d.ts +20 -0
- package/dist/patterns/content-explorer/collection/types.js +1 -0
- package/dist/patterns/content-explorer/content-explorer.d.ts +85 -0
- package/dist/patterns/content-explorer/content-explorer.js +745 -0
- package/dist/patterns/content-explorer/contracts.d.ts +32 -0
- package/dist/patterns/content-explorer/contracts.js +114 -0
- package/dist/patterns/content-explorer/controller.d.ts +34 -0
- package/dist/patterns/content-explorer/controller.js +399 -0
- package/dist/patterns/content-explorer/host-bindings.d.ts +50 -0
- package/dist/patterns/content-explorer/host-bindings.js +76 -0
- package/dist/patterns/content-explorer/index.d.ts +18 -0
- package/dist/patterns/content-explorer/index.js +24 -0
- package/dist/patterns/content-explorer/navigation/controller.d.ts +10 -0
- package/dist/patterns/content-explorer/navigation/controller.js +48 -0
- package/dist/patterns/content-explorer/navigation/index.d.ts +2 -0
- package/dist/patterns/content-explorer/navigation/index.js +1 -0
- package/dist/patterns/content-explorer/navigation/types.d.ts +20 -0
- package/dist/patterns/content-explorer/navigation/types.js +1 -0
- package/dist/patterns/content-explorer/schemas.d.ts +6 -0
- package/dist/patterns/content-explorer/schemas.js +120 -0
- package/dist/patterns/content-explorer/selection/controller.d.ts +12 -0
- package/dist/patterns/content-explorer/selection/controller.js +54 -0
- package/dist/patterns/content-explorer/selection/index.d.ts +2 -0
- package/dist/patterns/content-explorer/selection/index.js +1 -0
- package/dist/patterns/content-explorer/selection/types.d.ts +14 -0
- package/dist/patterns/content-explorer/selection/types.js +1 -0
- package/dist/patterns/content-explorer/types.d.ts +209 -0
- package/dist/patterns/content-explorer/types.js +10 -0
- package/dist/patterns/file-request/file-request-builder.d.ts +36 -0
- package/dist/patterns/file-request/file-request-builder.js +344 -0
- package/dist/patterns/file-request/index.d.ts +1 -0
- package/dist/patterns/file-request/index.js +1 -0
- package/dist/patterns/governance/governance-panel.d.ts +40 -0
- package/dist/patterns/governance/governance-panel.js +351 -0
- package/dist/patterns/governance/index.d.ts +1 -0
- package/dist/patterns/governance/index.js +1 -0
- package/dist/patterns/insights/bar-chart.d.ts +43 -0
- package/dist/patterns/insights/bar-chart.js +462 -0
- package/dist/patterns/insights/chart-panel.d.ts +43 -0
- package/dist/patterns/insights/chart-panel.js +436 -0
- package/dist/patterns/insights/donut-chart.d.ts +43 -0
- package/dist/patterns/insights/donut-chart.js +535 -0
- package/dist/patterns/insights/index.d.ts +5 -0
- package/dist/patterns/insights/index.js +5 -0
- package/dist/patterns/insights/line-chart.d.ts +46 -0
- package/dist/patterns/insights/line-chart.js +511 -0
- package/dist/patterns/insights/metric-card.d.ts +36 -0
- package/dist/patterns/insights/metric-card.js +278 -0
- package/dist/patterns/item/bulk-action-bar.d.ts +35 -0
- package/dist/patterns/item/bulk-action-bar.js +325 -0
- package/dist/patterns/item/index.d.ts +4 -0
- package/dist/patterns/item/index.js +4 -0
- package/dist/patterns/item/item-details-panel.d.ts +61 -0
- package/dist/patterns/item/item-details-panel.js +429 -0
- package/dist/patterns/item/item-form.d.ts +54 -0
- package/dist/patterns/item/item-form.js +485 -0
- package/dist/patterns/item/preview-header.d.ts +46 -0
- package/dist/patterns/item/preview-header.js +323 -0
- package/dist/patterns/metadata/contracts.d.ts +75 -0
- package/dist/patterns/metadata/contracts.js +91 -0
- package/dist/patterns/metadata/index.d.ts +4 -0
- package/dist/patterns/metadata/index.js +4 -0
- package/dist/patterns/metadata/metadata-filter-builder.d.ts +43 -0
- package/dist/patterns/metadata/metadata-filter-builder.js +362 -0
- package/dist/patterns/metadata/metadata-inspector.d.ts +31 -0
- package/dist/patterns/metadata/metadata-inspector.js +245 -0
- package/dist/patterns/metadata/schemas.d.ts +5 -0
- package/dist/patterns/metadata/schemas.js +66 -0
- package/dist/patterns/preview/annotation-inspector.d.ts +44 -0
- package/dist/patterns/preview/annotation-inspector.js +380 -0
- package/dist/patterns/preview/annotation-thread.d.ts +37 -0
- package/dist/patterns/preview/annotation-thread.js +338 -0
- package/dist/patterns/preview/annotation-toolbar.d.ts +42 -0
- package/dist/patterns/preview/annotation-toolbar.js +393 -0
- package/dist/patterns/preview/content-preview-adapter.d.ts +13 -0
- package/dist/patterns/preview/content-preview-adapter.js +30 -0
- package/dist/patterns/preview/index.d.ts +6 -0
- package/dist/patterns/preview/index.js +6 -0
- package/dist/patterns/preview/preview-element.d.ts +41 -0
- package/dist/patterns/preview/preview-element.js +429 -0
- package/dist/patterns/preview/provider-adapter.d.ts +36 -0
- package/dist/patterns/preview/provider-adapter.js +29 -0
- package/dist/patterns/search/filter-bar.d.ts +50 -0
- package/dist/patterns/search/filter-bar.js +379 -0
- package/dist/patterns/search/index.d.ts +3 -0
- package/dist/patterns/search/index.js +3 -0
- package/dist/patterns/search/saved-view-picker.d.ts +25 -0
- package/dist/patterns/search/saved-view-picker.js +239 -0
- package/dist/patterns/search/search-results-header.d.ts +34 -0
- package/dist/patterns/search/search-results-header.js +288 -0
- package/dist/patterns/share/access-stats.d.ts +19 -0
- package/dist/patterns/share/access-stats.js +204 -0
- package/dist/patterns/share/collaborator-avatars.d.ts +22 -0
- package/dist/patterns/share/collaborator-avatars.js +214 -0
- package/dist/patterns/share/contracts.d.ts +65 -0
- package/dist/patterns/share/contracts.js +75 -0
- package/dist/patterns/share/index.d.ts +14 -0
- package/dist/patterns/share/index.js +14 -0
- package/dist/patterns/share/invite-collaborators-contracts.d.ts +38 -0
- package/dist/patterns/share/invite-collaborators-contracts.js +1 -0
- package/dist/patterns/share/invite-collaborators-controller.d.ts +40 -0
- package/dist/patterns/share/invite-collaborators-controller.js +86 -0
- package/dist/patterns/share/invite-collaborators-modal.d.ts +46 -0
- package/dist/patterns/share/invite-collaborators-modal.js +465 -0
- package/dist/patterns/share/permission-matrix.d.ts +37 -0
- package/dist/patterns/share/permission-matrix.js +360 -0
- package/dist/patterns/share/presence-contracts.d.ts +26 -0
- package/dist/patterns/share/presence-contracts.js +1 -0
- package/dist/patterns/share/presence-controller.d.ts +31 -0
- package/dist/patterns/share/presence-controller.js +47 -0
- package/dist/patterns/share/presence.d.ts +32 -0
- package/dist/patterns/share/presence.js +255 -0
- package/dist/patterns/share/schemas.d.ts +4 -0
- package/dist/patterns/share/schemas.js +41 -0
- package/dist/patterns/share/share-panel.d.ts +75 -0
- package/dist/patterns/share/share-panel.js +565 -0
- package/dist/patterns/share/unified-share-controller.d.ts +52 -0
- package/dist/patterns/share/unified-share-controller.js +97 -0
- package/dist/patterns/share/unified-share-modal.d.ts +50 -0
- package/dist/patterns/share/unified-share-modal.js +646 -0
- package/dist/patterns/task/index.d.ts +2 -0
- package/dist/patterns/task/index.js +2 -0
- package/dist/patterns/task/review-queue-item.d.ts +45 -0
- package/dist/patterns/task/review-queue-item.js +403 -0
- package/dist/patterns/task/task-assignment-panel.d.ts +50 -0
- package/dist/patterns/task/task-assignment-panel.js +450 -0
- package/package.json +151 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
import { boePanel } from "../../foundations/geometry/index.js";
|
|
3
|
+
import { boeBrandInteractiveStyles, boeNeutralInteractiveStyles, } from "../../foundations/tokens/index.js";
|
|
4
|
+
const DEFAULT_TAG_NAME = "box-search-results-header";
|
|
5
|
+
const escapeHtml = (value) => value
|
|
6
|
+
.replaceAll("&", "&")
|
|
7
|
+
.replaceAll("<", "<")
|
|
8
|
+
.replaceAll(">", ">")
|
|
9
|
+
.replaceAll('"', """)
|
|
10
|
+
.replaceAll("'", "'");
|
|
11
|
+
const elementStyles = `
|
|
12
|
+
:host {
|
|
13
|
+
display: block;
|
|
14
|
+
color: inherit;
|
|
15
|
+
font: inherit;
|
|
16
|
+
--_obp-surface: var(--boe-token-surface-surface, #ffffff);
|
|
17
|
+
--_obp-surface-muted: var(--boe-token-surface-surface-secondary, #fbfbfb);
|
|
18
|
+
--_obp-border: color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 82%, transparent);
|
|
19
|
+
--_obp-border-subtle: color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 64%, transparent);
|
|
20
|
+
--_obp-text-muted: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
21
|
+
--_obp-brand: var(--boe-token-surface-surface-brand, #0061d5);
|
|
22
|
+
--_obp-brand-soft: color-mix(in srgb, var(--_obp-brand) 12%, var(--boe-token-surface-surface, #ffffff) 88%);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[part="header"] {
|
|
26
|
+
display: grid;
|
|
27
|
+
gap: ${boePanel.gap};
|
|
28
|
+
padding: ${boePanel.padding};
|
|
29
|
+
border: 1px solid var(--_obp-border);
|
|
30
|
+
border-radius: ${boePanel.radius};
|
|
31
|
+
background: var(--_obp-surface-muted);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[part="topline"] {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
gap: ${boePanel.gap};
|
|
38
|
+
align-items: start;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[part="meta"] {
|
|
43
|
+
display: grid;
|
|
44
|
+
gap: 0.35rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[part="label"] {
|
|
48
|
+
font-size: 0.8rem;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
letter-spacing: 0.08em;
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
color: var(--_obp-text-muted);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[part="count"] {
|
|
56
|
+
font-size: 1.35rem;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
line-height: 1.1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part="context"] {
|
|
62
|
+
color: var(--_obp-text-muted);
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part="actions"] {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
gap: ${boePanel.gap};
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: flex-end;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[part="action"],
|
|
75
|
+
[part="filter-chip"] {
|
|
76
|
+
border: 1px solid var(--_obp-border-subtle);
|
|
77
|
+
border-radius: 999px;
|
|
78
|
+
padding: 0.4rem 0.7rem;
|
|
79
|
+
background: var(--_obp-surface);
|
|
80
|
+
color: inherit;
|
|
81
|
+
font: inherit;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[part="filters"] {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-wrap: wrap;
|
|
88
|
+
gap: 0.65rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[part="filter-chip"]::after {
|
|
92
|
+
content: " ×";
|
|
93
|
+
color: var(--_obp-text-muted);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
${boeNeutralInteractiveStyles('[part="action"]')}
|
|
97
|
+
${boeNeutralInteractiveStyles('[part="filter-chip"]')}
|
|
98
|
+
${boeBrandInteractiveStyles('[part="action"][data-tone="primary"]')}
|
|
99
|
+
|
|
100
|
+
[part="action"][data-tone="primary"] {
|
|
101
|
+
border-color: var(--_obp-brand);
|
|
102
|
+
background: var(--_obp-brand);
|
|
103
|
+
color: var(--boe-token-text-text-on-brand, #ffffff);
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
export class BoxSearchResultsHeaderElement extends BaseElement {
|
|
107
|
+
static get observedAttributes() {
|
|
108
|
+
return ["actions", "filters", "label", "query", "result-count", "scope", "sort-label", "view-label"];
|
|
109
|
+
}
|
|
110
|
+
get actions() {
|
|
111
|
+
return this.parseJsonAttribute("actions", []);
|
|
112
|
+
}
|
|
113
|
+
set actions(value) {
|
|
114
|
+
this.setAttribute("actions", JSON.stringify(value));
|
|
115
|
+
}
|
|
116
|
+
get filters() {
|
|
117
|
+
return this.parseJsonAttribute("filters", []);
|
|
118
|
+
}
|
|
119
|
+
set filters(value) {
|
|
120
|
+
this.setAttribute("filters", JSON.stringify(value));
|
|
121
|
+
}
|
|
122
|
+
get label() {
|
|
123
|
+
return this.getAttribute("label") ?? "Search Results";
|
|
124
|
+
}
|
|
125
|
+
set label(value) {
|
|
126
|
+
this.setAttribute("label", value);
|
|
127
|
+
}
|
|
128
|
+
get query() {
|
|
129
|
+
return this.getAttribute("query") ?? "";
|
|
130
|
+
}
|
|
131
|
+
set query(value) {
|
|
132
|
+
this.setAttribute("query", value);
|
|
133
|
+
}
|
|
134
|
+
get resultCount() {
|
|
135
|
+
const raw = this.getAttribute("result-count");
|
|
136
|
+
const parsed = raw ? Number.parseInt(raw, 10) : 0;
|
|
137
|
+
return Number.isFinite(parsed) ? Math.max(parsed, 0) : 0;
|
|
138
|
+
}
|
|
139
|
+
set resultCount(value) {
|
|
140
|
+
this.setAttribute("result-count", String(value));
|
|
141
|
+
}
|
|
142
|
+
get scope() {
|
|
143
|
+
return this.getAttribute("scope") ?? "";
|
|
144
|
+
}
|
|
145
|
+
set scope(value) {
|
|
146
|
+
this.setAttribute("scope", value);
|
|
147
|
+
}
|
|
148
|
+
get sortLabel() {
|
|
149
|
+
return this.getAttribute("sort-label") ?? "";
|
|
150
|
+
}
|
|
151
|
+
set sortLabel(value) {
|
|
152
|
+
this.setAttribute("sort-label", value);
|
|
153
|
+
}
|
|
154
|
+
get viewLabel() {
|
|
155
|
+
return this.getAttribute("view-label") ?? "";
|
|
156
|
+
}
|
|
157
|
+
set viewLabel(value) {
|
|
158
|
+
this.setAttribute("view-label", value);
|
|
159
|
+
}
|
|
160
|
+
connectedCallback() {
|
|
161
|
+
super.connectedCallback();
|
|
162
|
+
}
|
|
163
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
164
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
165
|
+
}
|
|
166
|
+
parseJsonAttribute(name, fallback) {
|
|
167
|
+
const raw = this.getAttribute(name);
|
|
168
|
+
if (!raw) {
|
|
169
|
+
return fallback;
|
|
170
|
+
}
|
|
171
|
+
try {
|
|
172
|
+
return JSON.parse(raw);
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return fallback;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
emitAction(actionId) {
|
|
179
|
+
this.dispatchEvent(new CustomEvent("action", {
|
|
180
|
+
bubbles: true,
|
|
181
|
+
composed: true,
|
|
182
|
+
detail: { action: actionId },
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
emitFilterRemoved(filter) {
|
|
186
|
+
this.dispatchEvent(new CustomEvent("filter-removed", {
|
|
187
|
+
bubbles: true,
|
|
188
|
+
composed: true,
|
|
189
|
+
detail: { filter },
|
|
190
|
+
}));
|
|
191
|
+
}
|
|
192
|
+
renderTemplate() {
|
|
193
|
+
if (!this.shadowRoot) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
this.shadowRoot.innerHTML = `
|
|
197
|
+
<style>${elementStyles}</style>
|
|
198
|
+
<div part="content-host"></div>
|
|
199
|
+
`;
|
|
200
|
+
}
|
|
201
|
+
update() {
|
|
202
|
+
if (!this.shadowRoot) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const contextParts = [
|
|
206
|
+
this.query ? `Query: ${this.query}` : "",
|
|
207
|
+
this.scope ? `Scope: ${this.scope}` : "",
|
|
208
|
+
this.sortLabel ? `Sorted by ${this.sortLabel}` : "",
|
|
209
|
+
this.viewLabel ? `View: ${this.viewLabel}` : "",
|
|
210
|
+
].filter(Boolean);
|
|
211
|
+
const filtersMarkup = this.filters.length
|
|
212
|
+
? `
|
|
213
|
+
<div part="filters">
|
|
214
|
+
${this.filters
|
|
215
|
+
.map(filter => `
|
|
216
|
+
<button
|
|
217
|
+
type="button"
|
|
218
|
+
part="filter-chip"
|
|
219
|
+
data-filter="${escapeHtml(filter)}"
|
|
220
|
+
>
|
|
221
|
+
${escapeHtml(filter)}
|
|
222
|
+
</button>
|
|
223
|
+
`)
|
|
224
|
+
.join("")}
|
|
225
|
+
</div>
|
|
226
|
+
`
|
|
227
|
+
: "";
|
|
228
|
+
const actionsMarkup = this.actions.length
|
|
229
|
+
? `
|
|
230
|
+
<div part="actions">
|
|
231
|
+
${this.actions
|
|
232
|
+
.map(action => `
|
|
233
|
+
<button
|
|
234
|
+
type="button"
|
|
235
|
+
part="action"
|
|
236
|
+
data-action-id="${escapeHtml(action.id)}"
|
|
237
|
+
data-tone="${escapeHtml(action.tone ?? "neutral")}"
|
|
238
|
+
>
|
|
239
|
+
${escapeHtml(action.label)}
|
|
240
|
+
</button>
|
|
241
|
+
`)
|
|
242
|
+
.join("")}
|
|
243
|
+
</div>
|
|
244
|
+
`
|
|
245
|
+
: "";
|
|
246
|
+
const host = this.shadowRoot.querySelector('[part="content-host"]');
|
|
247
|
+
if (!host) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
host.innerHTML = `
|
|
251
|
+
<section part="header">
|
|
252
|
+
<div part="topline">
|
|
253
|
+
<div part="meta">
|
|
254
|
+
<div part="label">${escapeHtml(this.label)}</div>
|
|
255
|
+
<div part="count">${escapeHtml(`${this.resultCount} results`)}</div>
|
|
256
|
+
${contextParts.length ? `<div part="context">${escapeHtml(contextParts.join(" · "))}</div>` : ""}
|
|
257
|
+
</div>
|
|
258
|
+
${actionsMarkup}
|
|
259
|
+
</div>
|
|
260
|
+
${filtersMarkup}
|
|
261
|
+
</section>
|
|
262
|
+
`;
|
|
263
|
+
this.shadowRoot.querySelectorAll('[part="action"]').forEach(button => {
|
|
264
|
+
button.addEventListener("click", () => {
|
|
265
|
+
const actionId = button.getAttribute("data-action-id");
|
|
266
|
+
if (actionId) {
|
|
267
|
+
this.emitAction(actionId);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
this.shadowRoot.querySelectorAll('[part="filter-chip"]').forEach(button => {
|
|
272
|
+
button.addEventListener("click", () => {
|
|
273
|
+
const filter = button.getAttribute("data-filter");
|
|
274
|
+
if (filter) {
|
|
275
|
+
this.emitFilterRemoved(filter);
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
export const defineBoxSearchResultsHeaderElement = (tagName = DEFAULT_TAG_NAME) => {
|
|
282
|
+
const existingElement = customElements.get(tagName);
|
|
283
|
+
if (existingElement) {
|
|
284
|
+
return existingElement;
|
|
285
|
+
}
|
|
286
|
+
customElements.define(tagName, BoxSearchResultsHeaderElement);
|
|
287
|
+
return BoxSearchResultsHeaderElement;
|
|
288
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
type AccessStat = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
icon?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class BoxAccessStatsElement extends BaseElement {
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
get label(): string;
|
|
10
|
+
set label(value: string);
|
|
11
|
+
get stats(): AccessStat[];
|
|
12
|
+
set stats(value: AccessStat[]);
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
15
|
+
protected renderTemplate(): void;
|
|
16
|
+
protected update(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const defineBoxAccessStatsElement: (tagName?: string) => typeof BoxAccessStatsElement;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
import { boePanel, boeRadius } from "../../foundations/geometry/index.js";
|
|
3
|
+
const DEFAULT_TAG_NAME = "box-access-stats";
|
|
4
|
+
const escapeHtml = (value) => value
|
|
5
|
+
.replaceAll("&", "&")
|
|
6
|
+
.replaceAll("<", "<")
|
|
7
|
+
.replaceAll(">", ">")
|
|
8
|
+
.replaceAll('"', """)
|
|
9
|
+
.replaceAll("'", "'");
|
|
10
|
+
const formatFullCount = (value) => {
|
|
11
|
+
if (!Number.isFinite(value)) {
|
|
12
|
+
return "0";
|
|
13
|
+
}
|
|
14
|
+
return String(value);
|
|
15
|
+
};
|
|
16
|
+
const formatScaled = (abs, divisor) => {
|
|
17
|
+
const scaled = abs / divisor;
|
|
18
|
+
const decimals = abs % divisor === 0 ? 0 : 1;
|
|
19
|
+
const rounded = Math.round(scaled * 10 ** decimals) / 10 ** decimals;
|
|
20
|
+
return rounded % 1 === 0 ? String(Math.round(rounded)) : rounded.toFixed(decimals);
|
|
21
|
+
};
|
|
22
|
+
const formatCount = (value) => {
|
|
23
|
+
if (!Number.isFinite(value)) {
|
|
24
|
+
return "0";
|
|
25
|
+
}
|
|
26
|
+
const sign = value < 0 ? "-" : "";
|
|
27
|
+
const abs = Math.abs(value);
|
|
28
|
+
if (abs >= 1_000_000_000) {
|
|
29
|
+
return `${sign}${formatScaled(abs, 1_000_000_000)}B`;
|
|
30
|
+
}
|
|
31
|
+
if (abs >= 1_000_000) {
|
|
32
|
+
return `${sign}${formatScaled(abs, 1_000_000)}M`;
|
|
33
|
+
}
|
|
34
|
+
if (abs >= 1000) {
|
|
35
|
+
const kDisplay = formatScaled(abs, 1000);
|
|
36
|
+
if (parseFloat(kDisplay) >= 1000) {
|
|
37
|
+
return `${sign}${formatScaled(abs, 1_000_000)}M`;
|
|
38
|
+
}
|
|
39
|
+
return `${sign}${kDisplay}k`;
|
|
40
|
+
}
|
|
41
|
+
return String(value);
|
|
42
|
+
};
|
|
43
|
+
const isAccessStat = (candidate) => {
|
|
44
|
+
if (typeof candidate !== "object" || candidate === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
const { label, value, icon } = candidate;
|
|
48
|
+
return (typeof label === "string" &&
|
|
49
|
+
typeof value === "number" &&
|
|
50
|
+
Number.isFinite(value) &&
|
|
51
|
+
(icon === undefined || typeof icon === "string"));
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A compact, data-injected display of how a shared item has been accessed —
|
|
55
|
+
* view / download / comment counts and the like. A composition: the numbers
|
|
56
|
+
* arrive via the `stats` property (no transport). Presentational; each figure
|
|
57
|
+
* sits in a tile inside a labelled `role="group"` so assistive tech reads the
|
|
58
|
+
* value and its label together. Large counts abbreviate to `k`.
|
|
59
|
+
*/
|
|
60
|
+
const elementStyles = `
|
|
61
|
+
:host {
|
|
62
|
+
display: block;
|
|
63
|
+
color: inherit;
|
|
64
|
+
font: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[part="stats"] {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: ${boePanel.padding};
|
|
70
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 82%, transparent);
|
|
71
|
+
border-radius: ${boePanel.radius};
|
|
72
|
+
background: ${boePanel.background};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[part="title"] {
|
|
76
|
+
margin: 0 0 0.5rem;
|
|
77
|
+
font-size: 0.8rem;
|
|
78
|
+
font-weight: 700;
|
|
79
|
+
letter-spacing: 0.08em;
|
|
80
|
+
text-transform: uppercase;
|
|
81
|
+
color: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[part="grid"] {
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
|
|
87
|
+
gap: 0.6rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part="tile"] {
|
|
91
|
+
display: grid;
|
|
92
|
+
justify-items: center;
|
|
93
|
+
gap: 0.15rem;
|
|
94
|
+
padding: 0.5rem 0.45rem;
|
|
95
|
+
border-radius: ${boeRadius.large};
|
|
96
|
+
background: var(--boe-token-surface-surface, #ffffff);
|
|
97
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 48%, transparent);
|
|
98
|
+
text-align: center;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[part="tile-icon"] {
|
|
102
|
+
font-size: 1rem;
|
|
103
|
+
color: var(--boe-token-surface-surface-brand, #0061d5);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part="tile-value"] {
|
|
107
|
+
margin: 0;
|
|
108
|
+
font-size: 1.35rem;
|
|
109
|
+
font-weight: 700;
|
|
110
|
+
line-height: 1.1;
|
|
111
|
+
color: var(--boe-token-text-text, #222222);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[part="tile-label"] {
|
|
115
|
+
font-size: 0.76rem;
|
|
116
|
+
color: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[part="empty"] {
|
|
120
|
+
padding: ${boePanel.padding};
|
|
121
|
+
text-align: center;
|
|
122
|
+
color: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
123
|
+
font-size: 0.9rem;
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
export class BoxAccessStatsElement extends BaseElement {
|
|
127
|
+
static get observedAttributes() {
|
|
128
|
+
return ["label", "stats"];
|
|
129
|
+
}
|
|
130
|
+
get label() {
|
|
131
|
+
return this.getAttribute("label")?.trim() || "Access stats";
|
|
132
|
+
}
|
|
133
|
+
set label(value) {
|
|
134
|
+
this.setAttribute("label", value);
|
|
135
|
+
}
|
|
136
|
+
get stats() {
|
|
137
|
+
const raw = this.getAttribute("stats");
|
|
138
|
+
if (!raw) {
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
try {
|
|
142
|
+
const parsed = JSON.parse(raw);
|
|
143
|
+
return Array.isArray(parsed) ? parsed.filter(isAccessStat) : [];
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
set stats(value) {
|
|
150
|
+
this.setAttribute("stats", JSON.stringify(value));
|
|
151
|
+
}
|
|
152
|
+
connectedCallback() {
|
|
153
|
+
super.connectedCallback();
|
|
154
|
+
}
|
|
155
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
156
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
157
|
+
}
|
|
158
|
+
renderTemplate() {
|
|
159
|
+
if (!this.shadowRoot) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
this.shadowRoot.innerHTML = `
|
|
163
|
+
<style>${elementStyles}</style>
|
|
164
|
+
<div part="content-host"></div>
|
|
165
|
+
`;
|
|
166
|
+
}
|
|
167
|
+
update() {
|
|
168
|
+
if (!this.shadowRoot) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const stats = this.stats;
|
|
172
|
+
const tiles = stats
|
|
173
|
+
.map(stat => {
|
|
174
|
+
const iconMarkup = stat.icon ? `<span part="tile-icon" aria-hidden="true">${escapeHtml(stat.icon)}</span>` : "";
|
|
175
|
+
const accessibleLabel = `${formatFullCount(stat.value)} ${stat.label}`;
|
|
176
|
+
return `
|
|
177
|
+
<div part="tile" role="group" aria-label="${escapeHtml(accessibleLabel)}">
|
|
178
|
+
${iconMarkup}
|
|
179
|
+
<span part="tile-value" aria-hidden="true">${escapeHtml(formatCount(stat.value))}</span>
|
|
180
|
+
<span part="tile-label" aria-hidden="true">${escapeHtml(stat.label)}</span>
|
|
181
|
+
</div>
|
|
182
|
+
`;
|
|
183
|
+
})
|
|
184
|
+
.join("");
|
|
185
|
+
const host = this.shadowRoot.querySelector('[part="content-host"]');
|
|
186
|
+
if (!host) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
host.innerHTML = `
|
|
190
|
+
${`<section part="stats" aria-labelledby="access-stats-title">
|
|
191
|
+
<p part="title" id="access-stats-title">${escapeHtml(this.label)}</p>
|
|
192
|
+
${stats.length ? `<div part="grid">${tiles}</div>` : `<div part="empty">No access data</div>`}
|
|
193
|
+
</section>`}
|
|
194
|
+
`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
export const defineBoxAccessStatsElement = (tagName = DEFAULT_TAG_NAME) => {
|
|
198
|
+
const existingElement = customElements.get(tagName);
|
|
199
|
+
if (existingElement) {
|
|
200
|
+
return existingElement;
|
|
201
|
+
}
|
|
202
|
+
customElements.define(tagName, BoxAccessStatsElement);
|
|
203
|
+
return BoxAccessStatsElement;
|
|
204
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
type Collaborator = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
initials?: string;
|
|
6
|
+
src?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class BoxCollaboratorAvatarsElement extends BaseElement {
|
|
9
|
+
static get observedAttributes(): string[];
|
|
10
|
+
get collaborators(): Collaborator[];
|
|
11
|
+
set collaborators(value: Collaborator[]);
|
|
12
|
+
get label(): string;
|
|
13
|
+
set label(value: string);
|
|
14
|
+
get max(): number;
|
|
15
|
+
set max(value: number);
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
18
|
+
protected renderTemplate(): void;
|
|
19
|
+
protected update(): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const defineBoxCollaboratorAvatarsElement: (tagName?: string) => typeof BoxCollaboratorAvatarsElement;
|
|
22
|
+
export {};
|