@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,485 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
import { boePanel, boeRadius } from "../../foundations/geometry/index.js";
|
|
3
|
+
import { boeBrandInteractiveStyles, boeFocusVisibleStyles, boeNeutralInteractiveStyles, } from "../../foundations/tokens/index.js";
|
|
4
|
+
const DEFAULT_TAG_NAME = "box-item-form";
|
|
5
|
+
const escapeHtml = (value) => value
|
|
6
|
+
.replaceAll("&", "&")
|
|
7
|
+
.replaceAll("<", "<")
|
|
8
|
+
.replaceAll(">", ">")
|
|
9
|
+
.replaceAll('"', """)
|
|
10
|
+
.replaceAll("'", "'");
|
|
11
|
+
const escapeSelectorValue = (value) => value.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
|
|
12
|
+
const elementStyles = `
|
|
13
|
+
:host {
|
|
14
|
+
display: block;
|
|
15
|
+
color: inherit;
|
|
16
|
+
font: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part="form"] {
|
|
20
|
+
display: grid;
|
|
21
|
+
gap: ${boePanel.gap};
|
|
22
|
+
padding: ${boePanel.padding};
|
|
23
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 82%, transparent);
|
|
24
|
+
border-radius: ${boePanel.radius};
|
|
25
|
+
background: color-mix(in srgb, var(--boe-token-surface-surface-secondary, #fbfbfb) 92%, var(--boe-token-surface-surface, #ffffff) 8%);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[part="label"] {
|
|
29
|
+
font-size: 0.9rem;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
letter-spacing: 0.08em;
|
|
32
|
+
text-transform: uppercase;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part="fields"] {
|
|
36
|
+
display: grid;
|
|
37
|
+
gap: ${boePanel.gap};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[part="section"] {
|
|
41
|
+
display: grid;
|
|
42
|
+
gap: ${boePanel.gap};
|
|
43
|
+
padding: 0.65rem;
|
|
44
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 52%, transparent);
|
|
45
|
+
border-radius: ${boePanel.radius};
|
|
46
|
+
background: color-mix(in srgb, var(--boe-token-surface-surface, #ffffff) 68%, transparent);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[part="section-label"] {
|
|
50
|
+
font-size: 0.82rem;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
letter-spacing: 0.08em;
|
|
53
|
+
text-transform: uppercase;
|
|
54
|
+
color: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[part="field"] {
|
|
58
|
+
display: grid;
|
|
59
|
+
gap: 0.45rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[part="checkbox-field"] {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: auto 1fr;
|
|
65
|
+
gap: ${boePanel.gap};
|
|
66
|
+
align-items: start;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[part="checkbox-content"] {
|
|
70
|
+
display: grid;
|
|
71
|
+
gap: 0.35rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[part="field-label"] {
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[part="field-description"] {
|
|
79
|
+
color: var(--boe-token-text-text-secondary, #6f6f6f);
|
|
80
|
+
font-size: 0.95rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[part="field-value"] {
|
|
84
|
+
padding: 0.45rem 0.7rem;
|
|
85
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 48%, transparent);
|
|
86
|
+
border-radius: ${boeRadius.control};
|
|
87
|
+
background: color-mix(in srgb, var(--boe-token-surface-surface, #ffffff) 82%, transparent);
|
|
88
|
+
color: rgba(35, 32, 28, 0.94);
|
|
89
|
+
min-block-size: 1.25rem;
|
|
90
|
+
white-space: pre-wrap;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[part="input"],
|
|
94
|
+
[part="checkbox"] {
|
|
95
|
+
font: inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[part="input"] {
|
|
99
|
+
width: 100%;
|
|
100
|
+
min-width: 0;
|
|
101
|
+
padding: 0.45rem 0.7rem;
|
|
102
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 64%, transparent);
|
|
103
|
+
border-radius: ${boeRadius.control};
|
|
104
|
+
background: var(--boe-token-surface-surface, #ffffff);
|
|
105
|
+
color: inherit;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
textarea[part="input"] {
|
|
110
|
+
min-block-size: 6.5rem;
|
|
111
|
+
resize: vertical;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[part="actions"] {
|
|
115
|
+
display: flex;
|
|
116
|
+
gap: ${boePanel.gap};
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[part="submit"],
|
|
121
|
+
[part="cancel"] {
|
|
122
|
+
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 82%, transparent);
|
|
123
|
+
border-radius: 999px;
|
|
124
|
+
padding: 0.4rem 0.7rem;
|
|
125
|
+
background: var(--boe-token-surface-surface, #ffffff);
|
|
126
|
+
color: inherit;
|
|
127
|
+
font: inherit;
|
|
128
|
+
font-weight: 700;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[part="submit"] {
|
|
133
|
+
background: var(--boe-token-surface-surface-brand, #0061d5);
|
|
134
|
+
color: var(--boe-token-text-text-on-brand, #ffffff);
|
|
135
|
+
border-color: var(--boe-token-surface-surface-brand, #0061d5);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
${boeNeutralInteractiveStyles('[part="input"]')}
|
|
139
|
+
${boeFocusVisibleStyles('[part="checkbox"]')}
|
|
140
|
+
${boeNeutralInteractiveStyles('[part="cancel"]')}
|
|
141
|
+
${boeBrandInteractiveStyles('[part="submit"]')}
|
|
142
|
+
`;
|
|
143
|
+
export class BoxItemFormElement extends BaseElement {
|
|
144
|
+
static get observedAttributes() {
|
|
145
|
+
return ["disabled", "fields", "label", "mode", "submit-label", "value"];
|
|
146
|
+
}
|
|
147
|
+
valueInternal = {};
|
|
148
|
+
labelEl;
|
|
149
|
+
fieldsEl;
|
|
150
|
+
actionsEl;
|
|
151
|
+
submitEl;
|
|
152
|
+
cancelEl;
|
|
153
|
+
structureSignature = "";
|
|
154
|
+
get disabled() {
|
|
155
|
+
return this.hasAttribute("disabled");
|
|
156
|
+
}
|
|
157
|
+
set disabled(value) {
|
|
158
|
+
if (value) {
|
|
159
|
+
this.setAttribute("disabled", "");
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this.removeAttribute("disabled");
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
get fields() {
|
|
166
|
+
const raw = this.getAttribute("fields");
|
|
167
|
+
if (!raw) {
|
|
168
|
+
return [];
|
|
169
|
+
}
|
|
170
|
+
try {
|
|
171
|
+
const parsed = JSON.parse(raw);
|
|
172
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
set fields(value) {
|
|
179
|
+
this.setAttribute("fields", JSON.stringify(value));
|
|
180
|
+
}
|
|
181
|
+
get label() {
|
|
182
|
+
return this.getAttribute("label") ?? "Item Form";
|
|
183
|
+
}
|
|
184
|
+
set label(value) {
|
|
185
|
+
this.setAttribute("label", value);
|
|
186
|
+
}
|
|
187
|
+
get mode() {
|
|
188
|
+
return this.getAttribute("mode") === "read" ? "read" : "edit";
|
|
189
|
+
}
|
|
190
|
+
set mode(value) {
|
|
191
|
+
this.setAttribute("mode", value);
|
|
192
|
+
}
|
|
193
|
+
get submitLabel() {
|
|
194
|
+
return this.getAttribute("submit-label") ?? "Save Item";
|
|
195
|
+
}
|
|
196
|
+
set submitLabel(value) {
|
|
197
|
+
this.setAttribute("submit-label", value);
|
|
198
|
+
}
|
|
199
|
+
get value() {
|
|
200
|
+
return { ...this.valueInternal };
|
|
201
|
+
}
|
|
202
|
+
set value(value) {
|
|
203
|
+
this.valueInternal = { ...value };
|
|
204
|
+
this.setAttribute("value", JSON.stringify(value));
|
|
205
|
+
if (this.isRendered) {
|
|
206
|
+
this.update();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
connectedCallback() {
|
|
210
|
+
super.connectedCallback();
|
|
211
|
+
}
|
|
212
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
213
|
+
if (name === "value") {
|
|
214
|
+
const raw = this.getAttribute("value");
|
|
215
|
+
if (!raw) {
|
|
216
|
+
this.valueInternal = {};
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
try {
|
|
220
|
+
const parsed = JSON.parse(raw);
|
|
221
|
+
this.valueInternal = parsed && typeof parsed === "object" ? parsed : {};
|
|
222
|
+
}
|
|
223
|
+
catch {
|
|
224
|
+
this.valueInternal = {};
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
229
|
+
}
|
|
230
|
+
emitValueChanged() {
|
|
231
|
+
this.dispatchEvent(new CustomEvent("value-changed", {
|
|
232
|
+
bubbles: true,
|
|
233
|
+
composed: true,
|
|
234
|
+
detail: { value: { ...this.valueInternal } },
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
setFieldValue(fieldId, nextValue) {
|
|
238
|
+
this.valueInternal = {
|
|
239
|
+
...this.valueInternal,
|
|
240
|
+
[fieldId]: nextValue,
|
|
241
|
+
};
|
|
242
|
+
this.setAttribute("value", JSON.stringify(this.valueInternal));
|
|
243
|
+
this.emitValueChanged();
|
|
244
|
+
}
|
|
245
|
+
getFieldValue(field) {
|
|
246
|
+
const type = field.type ?? "text";
|
|
247
|
+
const currentValue = this.valueInternal[field.id];
|
|
248
|
+
if (type === "checkbox") {
|
|
249
|
+
return typeof currentValue === "boolean" ? currentValue : false;
|
|
250
|
+
}
|
|
251
|
+
return typeof currentValue === "string" ? currentValue : "";
|
|
252
|
+
}
|
|
253
|
+
getFieldSections() {
|
|
254
|
+
const sections = new Map();
|
|
255
|
+
this.fields.forEach(field => {
|
|
256
|
+
const sectionName = field.section?.trim() || "Details";
|
|
257
|
+
const sectionFields = sections.get(sectionName) ?? [];
|
|
258
|
+
sectionFields.push(field);
|
|
259
|
+
sections.set(sectionName, sectionFields);
|
|
260
|
+
});
|
|
261
|
+
return Array.from(sections.entries()).map(([name, fields]) => ({ name, fields }));
|
|
262
|
+
}
|
|
263
|
+
renderReadValue(field) {
|
|
264
|
+
const type = field.type ?? "text";
|
|
265
|
+
const value = this.getFieldValue(field);
|
|
266
|
+
if (type === "checkbox") {
|
|
267
|
+
return value ? "Yes" : "No";
|
|
268
|
+
}
|
|
269
|
+
if (type === "select") {
|
|
270
|
+
const selectedOption = (field.options ?? []).find(option => option.value === value);
|
|
271
|
+
return selectedOption?.label ?? String(value || "Empty");
|
|
272
|
+
}
|
|
273
|
+
return String(value || "Empty");
|
|
274
|
+
}
|
|
275
|
+
renderField(field) {
|
|
276
|
+
const type = field.type ?? "text";
|
|
277
|
+
const value = this.getFieldValue(field);
|
|
278
|
+
const descriptionMarkup = field.description
|
|
279
|
+
? `<div part="field-description">${escapeHtml(field.description)}</div>`
|
|
280
|
+
: "";
|
|
281
|
+
const disabled = this.disabled || field.disabled;
|
|
282
|
+
if (this.mode === "read") {
|
|
283
|
+
return `
|
|
284
|
+
<div part="field" data-mode="read" data-field-id="${escapeHtml(field.id)}">
|
|
285
|
+
<span part="field-label">${escapeHtml(field.label)}</span>
|
|
286
|
+
${descriptionMarkup}
|
|
287
|
+
<div part="field-value">${escapeHtml(this.renderReadValue(field))}</div>
|
|
288
|
+
</div>
|
|
289
|
+
`;
|
|
290
|
+
}
|
|
291
|
+
if (type === "textarea") {
|
|
292
|
+
return `
|
|
293
|
+
<label part="field">
|
|
294
|
+
<span part="field-label">${escapeHtml(field.label)}</span>
|
|
295
|
+
${descriptionMarkup}
|
|
296
|
+
<textarea
|
|
297
|
+
part="input"
|
|
298
|
+
data-field-id="${escapeHtml(field.id)}"
|
|
299
|
+
placeholder="${escapeHtml(field.placeholder ?? "")}"
|
|
300
|
+
${disabled ? "disabled" : ""}
|
|
301
|
+
>${escapeHtml(String(value))}</textarea>
|
|
302
|
+
</label>
|
|
303
|
+
`;
|
|
304
|
+
}
|
|
305
|
+
if (type === "select") {
|
|
306
|
+
const optionsMarkup = (field.options ?? [])
|
|
307
|
+
.map(option => `
|
|
308
|
+
<option value="${escapeHtml(option.value)}" ${option.value === value ? "selected" : ""}>
|
|
309
|
+
${escapeHtml(option.label)}
|
|
310
|
+
</option>
|
|
311
|
+
`)
|
|
312
|
+
.join("");
|
|
313
|
+
return `
|
|
314
|
+
<label part="field">
|
|
315
|
+
<span part="field-label">${escapeHtml(field.label)}</span>
|
|
316
|
+
${descriptionMarkup}
|
|
317
|
+
<select part="input" data-field-id="${escapeHtml(field.id)}" ${disabled ? "disabled" : ""}>
|
|
318
|
+
${optionsMarkup}
|
|
319
|
+
</select>
|
|
320
|
+
</label>
|
|
321
|
+
`;
|
|
322
|
+
}
|
|
323
|
+
if (type === "checkbox") {
|
|
324
|
+
return `
|
|
325
|
+
<label part="checkbox-field">
|
|
326
|
+
<input
|
|
327
|
+
type="checkbox"
|
|
328
|
+
part="checkbox"
|
|
329
|
+
data-field-id="${escapeHtml(field.id)}"
|
|
330
|
+
${value ? "checked" : ""}
|
|
331
|
+
${disabled ? "disabled" : ""}
|
|
332
|
+
/>
|
|
333
|
+
<span part="checkbox-content">
|
|
334
|
+
<span part="field-label">${escapeHtml(field.label)}</span>
|
|
335
|
+
${descriptionMarkup}
|
|
336
|
+
</span>
|
|
337
|
+
</label>
|
|
338
|
+
`;
|
|
339
|
+
}
|
|
340
|
+
return `
|
|
341
|
+
<label part="field">
|
|
342
|
+
<span part="field-label">${escapeHtml(field.label)}</span>
|
|
343
|
+
${descriptionMarkup}
|
|
344
|
+
<input
|
|
345
|
+
type="text"
|
|
346
|
+
part="input"
|
|
347
|
+
data-field-id="${escapeHtml(field.id)}"
|
|
348
|
+
value="${escapeHtml(String(value))}"
|
|
349
|
+
placeholder="${escapeHtml(field.placeholder ?? "")}"
|
|
350
|
+
${disabled ? "disabled" : ""}
|
|
351
|
+
/>
|
|
352
|
+
</label>
|
|
353
|
+
`;
|
|
354
|
+
}
|
|
355
|
+
structureKey() {
|
|
356
|
+
return JSON.stringify({
|
|
357
|
+
fields: this.fields,
|
|
358
|
+
mode: this.mode,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
rebuildFields() {
|
|
362
|
+
this.fieldsEl.innerHTML = this.getFieldSections()
|
|
363
|
+
.map(section => `
|
|
364
|
+
<section part="section">
|
|
365
|
+
<div part="section-label">${escapeHtml(section.name)}</div>
|
|
366
|
+
${section.fields.map(field => this.renderField(field)).join("")}
|
|
367
|
+
</section>
|
|
368
|
+
`)
|
|
369
|
+
.join("");
|
|
370
|
+
}
|
|
371
|
+
patchFieldValues() {
|
|
372
|
+
if (this.mode === "read") {
|
|
373
|
+
this.fields.forEach(field => {
|
|
374
|
+
const valueEl = this.fieldsEl.querySelector(`[data-mode="read"][data-field-id="${escapeSelectorValue(field.id)}"] [part="field-value"]`);
|
|
375
|
+
if (valueEl) {
|
|
376
|
+
valueEl.textContent = this.renderReadValue(field);
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
this.fields.forEach(field => {
|
|
382
|
+
const control = this.fieldsEl.querySelector(`[data-field-id="${escapeSelectorValue(field.id)}"]`);
|
|
383
|
+
if (!control) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const value = this.getFieldValue(field);
|
|
387
|
+
const disabled = this.disabled || Boolean(field.disabled);
|
|
388
|
+
control.disabled = disabled;
|
|
389
|
+
// Only rewrite value when stale so a focused control keeps its selection.
|
|
390
|
+
if (control instanceof HTMLInputElement && control.type === "checkbox") {
|
|
391
|
+
const nextChecked = Boolean(value);
|
|
392
|
+
if (control.checked !== nextChecked) {
|
|
393
|
+
control.checked = nextChecked;
|
|
394
|
+
}
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
const nextValue = String(value);
|
|
398
|
+
if (control.value !== nextValue) {
|
|
399
|
+
control.value = nextValue;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
renderTemplate() {
|
|
404
|
+
if (!this.shadowRoot) {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
this.shadowRoot.innerHTML = `
|
|
408
|
+
<style>${elementStyles}</style>
|
|
409
|
+
<form part="form" novalidate>
|
|
410
|
+
<div part="label"></div>
|
|
411
|
+
<div part="fields"></div>
|
|
412
|
+
<div part="actions">
|
|
413
|
+
<button type="button" part="cancel">Cancel</button>
|
|
414
|
+
<button type="submit" part="submit"></button>
|
|
415
|
+
</div>
|
|
416
|
+
</form>
|
|
417
|
+
`;
|
|
418
|
+
this.labelEl = this.shadowRoot.querySelector('[part="label"]');
|
|
419
|
+
this.fieldsEl = this.shadowRoot.querySelector('[part="fields"]');
|
|
420
|
+
this.actionsEl = this.shadowRoot.querySelector('[part="actions"]');
|
|
421
|
+
this.cancelEl = this.shadowRoot.querySelector('[part="cancel"]');
|
|
422
|
+
this.submitEl = this.shadowRoot.querySelector('[part="submit"]');
|
|
423
|
+
}
|
|
424
|
+
setupListeners() {
|
|
425
|
+
const form = this.shadowRoot?.querySelector('[part="form"]');
|
|
426
|
+
form?.addEventListener("input", event => {
|
|
427
|
+
const target = event.target;
|
|
428
|
+
const fieldId = target.dataset.fieldId ?? "";
|
|
429
|
+
if (!fieldId) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (target instanceof HTMLInputElement && target.type === "checkbox") {
|
|
433
|
+
this.setFieldValue(fieldId, target.checked);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
this.setFieldValue(fieldId, target.value);
|
|
437
|
+
});
|
|
438
|
+
form?.addEventListener("submit", event => {
|
|
439
|
+
event.preventDefault();
|
|
440
|
+
if (this.disabled) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
this.dispatchEvent(new CustomEvent("submit", {
|
|
444
|
+
bubbles: true,
|
|
445
|
+
composed: true,
|
|
446
|
+
detail: { value: { ...this.valueInternal } },
|
|
447
|
+
}));
|
|
448
|
+
});
|
|
449
|
+
this.cancelEl.addEventListener("click", () => {
|
|
450
|
+
if (this.disabled) {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
this.dispatchEvent(new CustomEvent("cancel", {
|
|
454
|
+
bubbles: true,
|
|
455
|
+
composed: true,
|
|
456
|
+
detail: { value: { ...this.valueInternal } },
|
|
457
|
+
}));
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
update() {
|
|
461
|
+
if (!this.labelEl || !this.fieldsEl) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
this.labelEl.textContent = this.label;
|
|
465
|
+
this.submitEl.textContent = this.submitLabel;
|
|
466
|
+
this.actionsEl.hidden = this.mode !== "edit";
|
|
467
|
+
this.submitEl.disabled = this.disabled;
|
|
468
|
+
this.cancelEl.disabled = this.disabled;
|
|
469
|
+
const nextSignature = this.structureKey();
|
|
470
|
+
if (nextSignature !== this.structureSignature || this.fieldsEl.childElementCount === 0) {
|
|
471
|
+
this.structureSignature = nextSignature;
|
|
472
|
+
this.rebuildFields();
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
this.patchFieldValues();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
export const defineBoxItemFormElement = (tagName = DEFAULT_TAG_NAME) => {
|
|
479
|
+
const existingElement = customElements.get(tagName);
|
|
480
|
+
if (existingElement) {
|
|
481
|
+
return existingElement;
|
|
482
|
+
}
|
|
483
|
+
customElements.define(tagName, BoxItemFormElement);
|
|
484
|
+
return BoxItemFormElement;
|
|
485
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseElement } from "../../core/index.js";
|
|
2
|
+
type PreviewHeaderAction = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
tone?: string;
|
|
6
|
+
};
|
|
7
|
+
type PreviewHeaderBreadcrumb = {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class BoxPreviewHeaderElement extends BaseElement {
|
|
12
|
+
static get observedAttributes(): string[];
|
|
13
|
+
private breadcrumbsEl;
|
|
14
|
+
private titleEl;
|
|
15
|
+
private statusEl;
|
|
16
|
+
private messageEl;
|
|
17
|
+
private actionsEl;
|
|
18
|
+
private breadcrumbsSignature;
|
|
19
|
+
private actionsSignature;
|
|
20
|
+
get actions(): PreviewHeaderAction[];
|
|
21
|
+
set actions(value: PreviewHeaderAction[]);
|
|
22
|
+
get breadcrumbs(): PreviewHeaderBreadcrumb[];
|
|
23
|
+
set breadcrumbs(value: PreviewHeaderBreadcrumb[]);
|
|
24
|
+
get message(): string;
|
|
25
|
+
set message(value: string);
|
|
26
|
+
get status(): string;
|
|
27
|
+
set status(value: string);
|
|
28
|
+
get heading(): string;
|
|
29
|
+
set heading(value: string);
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
32
|
+
private parseJsonAttribute;
|
|
33
|
+
private emitAction;
|
|
34
|
+
private emitBreadcrumbSelected;
|
|
35
|
+
private breadcrumbsKey;
|
|
36
|
+
private actionsKey;
|
|
37
|
+
private rebuildBreadcrumbs;
|
|
38
|
+
private patchBreadcrumbLabels;
|
|
39
|
+
private rebuildActions;
|
|
40
|
+
private patchActionLabels;
|
|
41
|
+
protected renderTemplate(): void;
|
|
42
|
+
protected setupListeners(): void;
|
|
43
|
+
protected update(): void;
|
|
44
|
+
}
|
|
45
|
+
export declare const defineBoxPreviewHeaderElement: (tagName?: string) => typeof BoxPreviewHeaderElement;
|
|
46
|
+
export {};
|