@carbon/web-components 2.62.0 → 2.63.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/README.md +26 -0
- package/bin/create-prefixed-build.js +157 -0
- package/custom-elements.json +2074 -360
- package/es/components/accordion/accordion.scss.js +1 -1
- package/es/components/action-set/action-set.scss.js +1 -1
- package/es/components/ai-label/ai-label-action-button.d.ts +1 -1
- package/es/components/ai-label/ai-label-action-button.d.ts.map +1 -1
- package/es/components/ai-label/ai-label-action-button.js +4 -3
- package/es/components/ai-label/ai-label-action-button.js.map +1 -1
- package/es/components/ai-label/ai-label.scss.js +1 -1
- package/es/components/ai-label/ai-label.scss.js.map +1 -1
- package/es/components/ai-label/index.d.ts +1 -0
- package/es/components/ai-label/index.d.ts.map +1 -1
- package/es/components/ai-label/index.js +1 -0
- package/es/components/ai-skeleton/ai-skeleton.scss.js +1 -1
- package/es/components/big-number/big-number-skeleton.d.ts +21 -0
- package/es/components/big-number/big-number-skeleton.d.ts.map +1 -0
- package/es/components/big-number/big-number-skeleton.js +62 -0
- package/es/components/big-number/big-number-skeleton.js.map +1 -0
- package/es/components/big-number/big-number-skeleton.scss.js +14 -0
- package/es/components/big-number/big-number-skeleton.scss.js.map +1 -0
- package/es/components/big-number/big-number.d.ts +35 -0
- package/es/components/big-number/big-number.d.ts.map +1 -0
- package/es/components/big-number/big-number.js +171 -0
- package/es/components/big-number/big-number.js.map +1 -0
- package/es/components/big-number/big-number.scss.js +14 -0
- package/es/components/big-number/big-number.scss.js.map +1 -0
- package/es/components/big-number/constants.d.ts +20 -0
- package/es/components/big-number/constants.d.ts.map +1 -0
- package/es/components/big-number/constants.js +32 -0
- package/es/components/big-number/constants.js.map +1 -0
- package/es/components/big-number/index.d.ts +8 -0
- package/es/components/big-number/index.d.ts.map +1 -0
- package/es/components/big-number/index.js +8 -0
- package/es/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/es/components/breadcrumb/breadcrumb-item.js +2 -1
- package/es/components/breadcrumb/breadcrumb-item.js.map +1 -1
- package/es/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/es/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/es/components/breadcrumb/breadcrumb.js +2 -2
- package/es/components/breadcrumb/breadcrumb.js.map +1 -1
- package/es/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es/components/button/button.d.ts.map +1 -1
- package/es/components/button/button.js +1 -1
- package/es/components/button/button.js.map +1 -1
- package/es/components/button/button.scss.js +1 -1
- package/es/components/card/card-action.d.ts +27 -0
- package/es/components/card/card-action.d.ts.map +1 -0
- package/es/components/card/card-action.js +52 -0
- package/es/components/card/card-action.js.map +1 -0
- package/es/components/card/card-actions.d.ts +36 -0
- package/es/components/card/card-actions.d.ts.map +1 -0
- package/es/components/card/card-actions.js +171 -0
- package/es/components/card/card-actions.js.map +1 -0
- package/es/components/card/card-body.d.ts +23 -0
- package/es/components/card/card-body.d.ts.map +1 -0
- package/es/components/card/card-body.js +54 -0
- package/es/components/card/card-body.js.map +1 -0
- package/es/components/card/card-context.d.ts +20 -0
- package/es/components/card/card-context.d.ts.map +1 -0
- package/es/components/card/card-context.js +29 -0
- package/es/components/card/card-context.js.map +1 -0
- package/es/components/card/card-footer.d.ts +34 -0
- package/es/components/card/card-footer.d.ts.map +1 -0
- package/es/components/card/card-footer.js +75 -0
- package/es/components/card/card-footer.js.map +1 -0
- package/es/components/card/card-header-media.d.ts +19 -0
- package/es/components/card/card-header-media.d.ts.map +1 -0
- package/es/components/card/card-header-media.js +39 -0
- package/es/components/card/card-header-media.js.map +1 -0
- package/es/components/card/card-header.d.ts +23 -0
- package/es/components/card/card-header.d.ts.map +1 -0
- package/es/components/card/card-header.js +70 -0
- package/es/components/card/card-header.js.map +1 -0
- package/es/components/card/card-media.d.ts +37 -0
- package/es/components/card/card-media.d.ts.map +1 -0
- package/es/components/card/card-media.js +79 -0
- package/es/components/card/card-media.js.map +1 -0
- package/es/components/card/card-title-media.d.ts +19 -0
- package/es/components/card/card-title-media.d.ts.map +1 -0
- package/es/components/card/card-title-media.js +39 -0
- package/es/components/card/card-title-media.js.map +1 -0
- package/es/components/card/card-title.d.ts +52 -0
- package/es/components/card/card-title.d.ts.map +1 -0
- package/es/components/card/card-title.js +144 -0
- package/es/components/card/card-title.js.map +1 -0
- package/es/components/card/card.d.ts +69 -0
- package/es/components/card/card.d.ts.map +1 -0
- package/es/components/card/card.js +185 -0
- package/es/components/card/card.js.map +1 -0
- package/es/components/card/card.scss.js +14 -0
- package/es/components/card/card.scss.js.map +1 -0
- package/es/components/card/defs.d.ts +33 -0
- package/es/components/card/defs.d.ts.map +1 -0
- package/es/components/card/defs.js +46 -0
- package/es/components/card/defs.js.map +1 -0
- package/es/components/card/index.d.ts +17 -0
- package/es/components/card/index.d.ts.map +1 -0
- package/es/components/card/index.js +17 -0
- package/es/components/checkbox/checkbox.scss.js +1 -1
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +67 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +120 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +14 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/defs.d.ts +13 -0
- package/es/components/coachmark/coachmark-beacon/defs.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/index.d.ts +8 -0
- package/es/components/coachmark/coachmark-beacon/index.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-beacon/index.js +8 -0
- package/es/components/coachmark/coachmark-body.d.ts +31 -0
- package/es/components/coachmark/coachmark-body.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-body.js +39 -0
- package/es/components/coachmark/coachmark-body.js.map +1 -0
- package/es/components/coachmark/coachmark-body.scss.js +14 -0
- package/es/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-context.d.ts +12 -0
- package/es/components/coachmark/coachmark-context.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-context.js +39 -0
- package/es/components/coachmark/coachmark-context.js.map +1 -0
- package/es/components/coachmark/coachmark-header.d.ts +41 -0
- package/es/components/coachmark/coachmark-header.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-header.js +95 -0
- package/es/components/coachmark/coachmark-header.js.map +1 -0
- package/es/components/coachmark/coachmark-header.scss.js +14 -0
- package/es/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-helpers.d.ts +10 -0
- package/es/components/coachmark/coachmark-helpers.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-helpers.js +33 -0
- package/es/components/coachmark/coachmark-helpers.js.map +1 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts +72 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.js +130 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.js.map +1 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.scss.js +14 -0
- package/es/components/coachmark/coachmark-tagline/coachmark-tagline.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-tagline/index.d.ts +8 -0
- package/es/components/coachmark/coachmark-tagline/index.d.ts.map +1 -0
- package/es/components/coachmark/coachmark-tagline/index.js +8 -0
- package/es/components/coachmark/coachmark.d.ts +97 -0
- package/es/components/coachmark/coachmark.d.ts.map +1 -0
- package/es/components/coachmark/coachmark.js +290 -0
- package/es/components/coachmark/coachmark.js.map +1 -0
- package/es/components/coachmark/coachmark.scss.js +14 -0
- package/es/components/coachmark/coachmark.scss.js.map +1 -0
- package/es/components/coachmark/index.d.ts +10 -0
- package/es/components/coachmark/index.d.ts.map +1 -0
- package/es/components/coachmark/index.js +10 -0
- package/es/components/code-snippet/code-snippet.scss.js +1 -1
- package/es/components/combo-box/combo-box.d.ts.map +1 -1
- package/es/components/combo-box/combo-box.js +5 -12
- package/es/components/combo-box/combo-box.js.map +1 -1
- package/es/components/combo-box/combo-box.scss.js +1 -1
- package/es/components/combo-box/combo-box.scss.js.map +1 -1
- package/es/components/combo-button/combo-button.scss.js +1 -1
- package/es/components/contained-list/contained-list.scss.js +1 -1
- package/es/components/content-switcher/content-switcher.scss.js +1 -1
- package/es/components/copy/index.d.ts +9 -0
- package/es/components/copy/index.d.ts.map +1 -0
- package/es/components/copy/index.js +9 -0
- package/es/components/copy-button/copy-button.scss.js +1 -1
- package/es/components/data-table/data-table.scss.js +1 -1
- package/es/components/date-picker/date-picker.scss.js +1 -1
- package/es/components/date-picker/date-picker.scss.js.map +1 -1
- package/es/components/date-picker/next/components/date-picker.scss.js +1 -1
- package/es/components/date-picker/next/components/date-picker.scss.js.map +1 -1
- package/es/components/dialog/dialog.scss.js +1 -1
- package/es/components/dropdown/dropdown.d.ts +2 -1
- package/es/components/dropdown/dropdown.d.ts.map +1 -1
- package/es/components/dropdown/dropdown.js +13 -15
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/dropdown/dropdown.scss.js +1 -1
- package/es/components/dropdown/dropdown.scss.js.map +1 -1
- package/es/components/edit-in-place/defs.d.ts +30 -0
- package/es/components/edit-in-place/defs.d.ts.map +1 -0
- package/es/components/edit-in-place/defs.js +43 -0
- package/es/components/edit-in-place/defs.js.map +1 -0
- package/es/components/edit-in-place/edit-in-place-helpers.d.ts +47 -0
- package/es/components/edit-in-place/edit-in-place-helpers.d.ts.map +1 -0
- package/es/components/edit-in-place/edit-in-place-helpers.js +59 -0
- package/es/components/edit-in-place/edit-in-place-helpers.js.map +1 -0
- package/es/components/edit-in-place/edit-in-place.d.ts +214 -0
- package/es/components/edit-in-place/edit-in-place.d.ts.map +1 -0
- package/es/components/edit-in-place/edit-in-place.js +453 -0
- package/es/components/edit-in-place/edit-in-place.js.map +1 -0
- package/es/components/edit-in-place/edit-in-place.scss.js +14 -0
- package/es/components/edit-in-place/edit-in-place.scss.js.map +1 -0
- package/es/components/edit-in-place/index.d.ts +10 -0
- package/es/components/edit-in-place/index.d.ts.map +1 -0
- package/es/components/edit-in-place/index.js +20 -0
- package/es/components/edit-in-place/index.js.map +1 -0
- package/es/components/file-uploader/file-uploader.scss.js +1 -1
- package/es/components/fluid-combo-box/fluid-combo-box.scss.js +1 -1
- package/es/components/fluid-combo-box/fluid-combo-box.scss.js.map +1 -1
- package/es/components/fluid-date-picker/fluid-date-picker.d.ts +5 -1
- package/es/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -1
- package/es/components/fluid-date-picker/fluid-date-picker.js +27 -1
- package/es/components/fluid-date-picker/fluid-date-picker.js.map +1 -1
- package/es/components/fluid-date-picker/fluid-date-picker.scss.js +1 -1
- package/es/components/fluid-date-picker/fluid-date-picker.scss.js.map +1 -1
- package/es/components/fluid-dropdown/fluid-dropdown.scss.js +1 -1
- package/es/components/fluid-dropdown/fluid-dropdown.scss.js.map +1 -1
- package/es/components/fluid-form/fluid-form.scss.js +1 -1
- package/es/components/fluid-multi-select/fluid-multi-select.scss.js +1 -1
- package/es/components/fluid-multi-select/fluid-multi-select.scss.js.map +1 -1
- package/es/components/fluid-number-input/fluid-number-input.scss.js +1 -1
- package/es/components/fluid-number-input/fluid-number-input.scss.js.map +1 -1
- package/es/components/fluid-password-input/fluid-password-input.scss.js +1 -1
- package/es/components/fluid-search/fluid-search.scss.js +1 -1
- package/es/components/fluid-search/fluid-search.scss.js.map +1 -1
- package/es/components/fluid-select/fluid-select.scss.js +1 -1
- package/es/components/fluid-text-input/fluid-text-input.scss.js +1 -1
- package/es/components/fluid-textarea/fluid-textarea.scss.js +1 -1
- package/es/components/fluid-time-picker/fluid-time-picker.scss.js +1 -1
- package/es/components/form/form-item.scss.js +1 -1
- package/es/components/form/form.scss.js +1 -1
- package/es/components/form-group/form-group.scss.js +1 -1
- package/es/components/grid/column-hang.scss.js +1 -1
- package/es/components/grid/grid.scss.js +1 -1
- package/es/components/icon-button/icon-button.d.ts +1 -1
- package/es/components/icon-button/icon-button.js +1 -1
- package/es/components/icon-button/icon-button.js.map +1 -1
- package/es/components/inline-loading/inline-loading.scss.js +1 -1
- package/es/components/layer/layer.scss.js +1 -1
- package/es/components/layout/layout.scss.js +1 -1
- package/es/components/link/link.d.ts +2 -1
- package/es/components/link/link.d.ts.map +1 -1
- package/es/components/link/link.js +1 -1
- package/es/components/link/link.js.map +1 -1
- package/es/components/loading/loading.scss.js +1 -1
- package/es/components/menu/menu-item.d.ts.map +1 -1
- package/es/components/menu/menu-item.js +2 -6
- package/es/components/menu/menu-item.js.map +1 -1
- package/es/components/menu/menu-item.scss.js +1 -1
- package/es/components/menu/menu-item.scss.js.map +1 -1
- package/es/components/menu/menu.d.ts +10 -0
- package/es/components/menu/menu.d.ts.map +1 -1
- package/es/components/menu/menu.js +17 -11
- package/es/components/menu/menu.js.map +1 -1
- package/es/components/menu/menu.scss.js +1 -1
- package/es/components/menu/menu.scss.js.map +1 -1
- package/es/components/menu-button/menu-button.scss.js +1 -1
- package/es/components/modal/modal.scss.js +1 -1
- package/es/components/multi-select/multi-select-item.d.ts +1 -1
- package/es/components/multi-select/multi-select-item.d.ts.map +1 -1
- package/es/components/multi-select/multi-select-item.js +5 -1
- package/es/components/multi-select/multi-select-item.js.map +1 -1
- package/es/components/multi-select/multi-select.d.ts +2 -1
- package/es/components/multi-select/multi-select.d.ts.map +1 -1
- package/es/components/multi-select/multi-select.js +15 -14
- package/es/components/multi-select/multi-select.js.map +1 -1
- package/es/components/multi-select/multi-select.scss.js +1 -1
- package/es/components/multi-select/multi-select.scss.js.map +1 -1
- package/es/components/notification/actionable-notification-button.d.ts +1 -1
- package/es/components/notification/actionable-notification-button.d.ts.map +1 -1
- package/es/components/notification/actionable-notification-button.js +2 -2
- package/es/components/notification/actionable-notification-button.js.map +1 -1
- package/es/components/notification/actionable-notification.d.ts.map +1 -1
- package/es/components/notification/actionable-notification.js +4 -4
- package/es/components/notification/actionable-notification.js.map +1 -1
- package/es/components/notification/actionable-notification.scss.js +1 -1
- package/es/components/notification/inline-notification.scss.js +1 -1
- package/es/components/notification/toast-notification.scss.js +1 -1
- package/es/components/number-input/number-input.scss.js +1 -1
- package/es/components/number-input/number-input.scss.js.map +1 -1
- package/es/components/options-tile/index.d.ts +8 -0
- package/es/components/options-tile/index.d.ts.map +1 -0
- package/es/components/options-tile/index.js +8 -0
- package/es/components/options-tile/option-tile-helpers.d.ts +16 -0
- package/es/components/options-tile/option-tile-helpers.d.ts.map +1 -0
- package/es/components/options-tile/option-tile-helpers.js +163 -0
- package/es/components/options-tile/option-tile-helpers.js.map +1 -0
- package/es/components/options-tile/options-tile.d.ts +91 -0
- package/es/components/options-tile/options-tile.d.ts.map +1 -0
- package/es/components/options-tile/options-tile.js +208 -0
- package/es/components/options-tile/options-tile.js.map +1 -0
- package/es/components/options-tile/options-tile.scss.js +14 -0
- package/es/components/options-tile/options-tile.scss.js.map +1 -0
- package/es/components/overflow-menu/overflow-menu.js +1 -1
- package/es/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es/components/page-header/index.d.ts +1 -0
- package/es/components/page-header/index.d.ts.map +1 -1
- package/es/components/page-header/index.js +1 -0
- package/es/components/page-header/page-header-tabs.d.ts +1 -1
- package/es/components/page-header/page-header-tabs.d.ts.map +1 -1
- package/es/components/page-header/page-header-tabs.js +1 -2
- package/es/components/page-header/page-header-tabs.js.map +1 -1
- package/es/components/page-header/page-header.d.ts +1 -1
- package/es/components/page-header/page-header.d.ts.map +1 -1
- package/es/components/page-header/page-header.js +1 -2
- package/es/components/page-header/page-header.js.map +1 -1
- package/es/components/page-header/page-header.scss.js +1 -1
- package/es/components/pagination/pagination.scss.js +1 -1
- package/es/components/pagination-nav/pagination-nav.scss.js +1 -1
- package/es/components/password-input/password-input.scss.js +1 -1
- package/es/components/popover/popover.scss.js +1 -1
- package/es/components/progress-bar/progress-bar.scss.js +1 -1
- package/es/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es/components/radio-button/radio-button.scss.js +1 -1
- package/es/components/resizer/resizer-handle-pivot.scss.js +1 -1
- package/es/components/search/search.d.ts.map +1 -1
- package/es/components/search/search.js +2 -0
- package/es/components/search/search.js.map +1 -1
- package/es/components/search/search.scss.js +1 -1
- package/es/components/search/search.scss.js.map +1 -1
- package/es/components/select/select.scss.js +1 -1
- package/es/components/select/select.scss.js.map +1 -1
- package/es/components/side-panel/side-panel.js +2 -2
- package/es/components/side-panel/side-panel.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/skeleton-icon/skeleton-icon.scss.js +1 -1
- package/es/components/skeleton-placeholder/skeleton-placeholder.scss.js +1 -1
- package/es/components/skeleton-text/skeleton-text.scss.js +1 -1
- package/es/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es/components/slider/slider.scss.js +1 -1
- package/es/components/slider/slider.scss.js.map +1 -1
- package/es/components/slug/index.d.ts +1 -0
- package/es/components/slug/index.d.ts.map +1 -1
- package/es/components/slug/index.js +1 -0
- package/es/components/slug/slug.scss.js +1 -1
- package/es/components/structured-list/structured-list.scss.js +1 -1
- package/es/components/tabs/tabs.scss.js +1 -1
- package/es/components/tabs/tabs.scss.js.map +1 -1
- package/es/components/tag/dismissible-tag.d.ts +1 -1
- package/es/components/tag/dismissible-tag.d.ts.map +1 -1
- package/es/components/tag/dismissible-tag.js +24 -15
- package/es/components/tag/dismissible-tag.js.map +1 -1
- package/es/components/tag/tag.d.ts.map +1 -1
- package/es/components/tag/tag.js +1 -1
- package/es/components/tag/tag.js.map +1 -1
- package/es/components/tag/tag.scss.js +1 -1
- package/es/components/tag/tag.scss.js.map +1 -1
- package/es/components/text-input/text-input.scss.js +1 -1
- package/es/components/text-input/text-input.scss.js.map +1 -1
- package/es/components/textarea/textarea.scss.js +1 -1
- package/es/components/tile/clickable-tile.d.ts +2 -1
- package/es/components/tile/clickable-tile.d.ts.map +1 -1
- package/es/components/tile/clickable-tile.js +1 -1
- package/es/components/tile/clickable-tile.js.map +1 -1
- package/es/components/tile/tile.scss.js +1 -1
- package/es/components/time-picker/time-picker.scss.js +1 -1
- package/es/components/toggle-tip/toggletip.scss.js +1 -1
- package/es/components/tooltip/tooltip.scss.js +1 -1
- package/es/components/tree-view/tree-view.scss.js +1 -1
- package/es/components/ui-shell/header.scss.js +1 -1
- package/es/components/ui-shell/side-nav.scss.js +1 -1
- package/es/components/user-avatar/index.d.ts +8 -0
- package/es/components/user-avatar/index.d.ts.map +1 -0
- package/es/components/user-avatar/index.js +8 -0
- package/es/components/user-avatar/user-avatar.d.ts +84 -0
- package/es/components/user-avatar/user-avatar.d.ts.map +1 -0
- package/es/components/user-avatar/user-avatar.js +151 -0
- package/es/components/user-avatar/user-avatar.js.map +1 -0
- package/es/components/user-avatar/user-avatar.scss.js +14 -0
- package/es/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es/globals/controllers/floating-controller.d.ts.map +1 -1
- package/es/globals/controllers/floating-controller.js.map +1 -1
- package/es/globals/decorators/carbon-element.d.ts +8 -0
- package/es/globals/decorators/carbon-element.d.ts.map +1 -1
- package/es/globals/decorators/carbon-element.js +8 -0
- package/es/globals/decorators/carbon-element.js.map +1 -1
- package/es/globals/internal/collection-helpers.d.ts +5 -5
- package/es/globals/internal/collection-helpers.d.ts.map +1 -1
- package/es/globals/internal/collection-helpers.js +1 -1
- package/es/globals/internal/collection-helpers.js.map +1 -1
- package/es/globals/internal/getSupportedLocale.d.ts +12 -0
- package/es/globals/internal/getSupportedLocale.d.ts.map +1 -0
- package/es/globals/internal/getSupportedLocale.js +29 -0
- package/es/globals/internal/getSupportedLocale.js.map +1 -0
- package/es/globals/mixins/on.d.ts +2 -2
- package/es/globals/mixins/on.d.ts.map +1 -1
- package/es/globals/mixins/on.js +4 -4
- package/es/globals/mixins/on.js.map +1 -1
- package/es/globals/register.d.ts +89 -0
- package/es/globals/register.d.ts.map +1 -0
- package/es/globals/register.js +56 -0
- package/es/globals/register.js.map +1 -0
- package/es/globals/settings.d.ts +1 -1
- package/es/globals/settings.d.ts.map +1 -1
- package/es/globals/settings.js +1 -0
- package/es/globals/settings.js.map +1 -1
- package/es/index.d.ts +10 -0
- package/es/index.d.ts.map +1 -1
- package/es/index.js +13 -3
- package/es-custom/components/accordion/accordion.scss.js +1 -1
- package/es-custom/components/action-set/action-set.scss.js +1 -1
- package/es-custom/components/ai-label/ai-label-action-button.d.ts +1 -1
- package/es-custom/components/ai-label/ai-label-action-button.d.ts.map +1 -1
- package/es-custom/components/ai-label/ai-label-action-button.js +4 -3
- package/es-custom/components/ai-label/ai-label-action-button.js.map +1 -1
- package/es-custom/components/ai-label/ai-label.scss.js +1 -1
- package/es-custom/components/ai-label/ai-label.scss.js.map +1 -1
- package/es-custom/components/ai-label/index.d.ts +1 -0
- package/es-custom/components/ai-label/index.d.ts.map +1 -1
- package/es-custom/components/ai-label/index.js +1 -0
- package/es-custom/components/ai-skeleton/ai-skeleton.scss.js +1 -1
- package/es-custom/components/big-number/big-number-skeleton.d.ts +21 -0
- package/es-custom/components/big-number/big-number-skeleton.d.ts.map +1 -0
- package/es-custom/components/big-number/big-number-skeleton.js +62 -0
- package/es-custom/components/big-number/big-number-skeleton.js.map +1 -0
- package/es-custom/components/big-number/big-number-skeleton.scss.js +14 -0
- package/es-custom/components/big-number/big-number-skeleton.scss.js.map +1 -0
- package/es-custom/components/big-number/big-number.d.ts +35 -0
- package/es-custom/components/big-number/big-number.d.ts.map +1 -0
- package/es-custom/components/big-number/big-number.js +171 -0
- package/es-custom/components/big-number/big-number.js.map +1 -0
- package/es-custom/components/big-number/big-number.scss.js +14 -0
- package/es-custom/components/big-number/big-number.scss.js.map +1 -0
- package/es-custom/components/big-number/constants.d.ts +20 -0
- package/es-custom/components/big-number/constants.d.ts.map +1 -0
- package/es-custom/components/big-number/constants.js +32 -0
- package/es-custom/components/big-number/constants.js.map +1 -0
- package/es-custom/components/big-number/index.d.ts +8 -0
- package/es-custom/components/big-number/index.d.ts.map +1 -0
- package/es-custom/components/big-number/index.js +8 -0
- package/es-custom/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/es-custom/components/breadcrumb/breadcrumb-item.js +2 -1
- package/es-custom/components/breadcrumb/breadcrumb-item.js.map +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.js +2 -2
- package/es-custom/components/breadcrumb/breadcrumb.js.map +1 -1
- package/es-custom/components/breadcrumb/breadcrumb.scss.js +1 -1
- package/es-custom/components/button/button.d.ts.map +1 -1
- package/es-custom/components/button/button.js +1 -1
- package/es-custom/components/button/button.js.map +1 -1
- package/es-custom/components/button/button.scss.js +1 -1
- package/es-custom/components/card/card-action.d.ts +27 -0
- package/es-custom/components/card/card-action.d.ts.map +1 -0
- package/es-custom/components/card/card-action.js +52 -0
- package/es-custom/components/card/card-action.js.map +1 -0
- package/es-custom/components/card/card-actions.d.ts +36 -0
- package/es-custom/components/card/card-actions.d.ts.map +1 -0
- package/es-custom/components/card/card-actions.js +171 -0
- package/es-custom/components/card/card-actions.js.map +1 -0
- package/es-custom/components/card/card-body.d.ts +23 -0
- package/es-custom/components/card/card-body.d.ts.map +1 -0
- package/es-custom/components/card/card-body.js +54 -0
- package/es-custom/components/card/card-body.js.map +1 -0
- package/es-custom/components/card/card-context.d.ts +20 -0
- package/es-custom/components/card/card-context.d.ts.map +1 -0
- package/es-custom/components/card/card-context.js +29 -0
- package/es-custom/components/card/card-context.js.map +1 -0
- package/es-custom/components/card/card-footer.d.ts +34 -0
- package/es-custom/components/card/card-footer.d.ts.map +1 -0
- package/es-custom/components/card/card-footer.js +75 -0
- package/es-custom/components/card/card-footer.js.map +1 -0
- package/es-custom/components/card/card-header-media.d.ts +19 -0
- package/es-custom/components/card/card-header-media.d.ts.map +1 -0
- package/es-custom/components/card/card-header-media.js +39 -0
- package/es-custom/components/card/card-header-media.js.map +1 -0
- package/es-custom/components/card/card-header.d.ts +23 -0
- package/es-custom/components/card/card-header.d.ts.map +1 -0
- package/es-custom/components/card/card-header.js +70 -0
- package/es-custom/components/card/card-header.js.map +1 -0
- package/es-custom/components/card/card-media.d.ts +37 -0
- package/es-custom/components/card/card-media.d.ts.map +1 -0
- package/es-custom/components/card/card-media.js +79 -0
- package/es-custom/components/card/card-media.js.map +1 -0
- package/es-custom/components/card/card-title-media.d.ts +19 -0
- package/es-custom/components/card/card-title-media.d.ts.map +1 -0
- package/es-custom/components/card/card-title-media.js +39 -0
- package/es-custom/components/card/card-title-media.js.map +1 -0
- package/es-custom/components/card/card-title.d.ts +52 -0
- package/es-custom/components/card/card-title.d.ts.map +1 -0
- package/es-custom/components/card/card-title.js +144 -0
- package/es-custom/components/card/card-title.js.map +1 -0
- package/es-custom/components/card/card.d.ts +69 -0
- package/es-custom/components/card/card.d.ts.map +1 -0
- package/es-custom/components/card/card.js +185 -0
- package/es-custom/components/card/card.js.map +1 -0
- package/es-custom/components/card/card.scss.js +14 -0
- package/es-custom/components/card/card.scss.js.map +1 -0
- package/es-custom/components/card/defs.d.ts +33 -0
- package/es-custom/components/card/defs.d.ts.map +1 -0
- package/es-custom/components/card/defs.js +46 -0
- package/es-custom/components/card/defs.js.map +1 -0
- package/es-custom/components/card/index.d.ts +17 -0
- package/es-custom/components/card/index.d.ts.map +1 -0
- package/es-custom/components/card/index.js +17 -0
- package/es-custom/components/checkbox/checkbox.scss.js +1 -1
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +67 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +120 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +14 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.d.ts +13 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.d.ts +8 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.js +8 -0
- package/es-custom/components/coachmark/coachmark-body.d.ts +31 -0
- package/es-custom/components/coachmark/coachmark-body.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.js +39 -0
- package/es-custom/components/coachmark/coachmark-body.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js +14 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-context.d.ts +12 -0
- package/es-custom/components/coachmark/coachmark-context.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-context.js +39 -0
- package/es-custom/components/coachmark/coachmark-context.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.d.ts +41 -0
- package/es-custom/components/coachmark/coachmark-header.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.js +95 -0
- package/es-custom/components/coachmark/coachmark-header.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js +14 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-helpers.d.ts +10 -0
- package/es-custom/components/coachmark/coachmark-helpers.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-helpers.js +33 -0
- package/es-custom/components/coachmark/coachmark-helpers.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts +72 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.js +130 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.scss.js +14 -0
- package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-tagline/index.d.ts +8 -0
- package/es-custom/components/coachmark/coachmark-tagline/index.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark-tagline/index.js +8 -0
- package/es-custom/components/coachmark/coachmark.d.ts +97 -0
- package/es-custom/components/coachmark/coachmark.d.ts.map +1 -0
- package/es-custom/components/coachmark/coachmark.js +290 -0
- package/es-custom/components/coachmark/coachmark.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.scss.js +14 -0
- package/es-custom/components/coachmark/coachmark.scss.js.map +1 -0
- package/es-custom/components/coachmark/index.d.ts +10 -0
- package/es-custom/components/coachmark/index.d.ts.map +1 -0
- package/es-custom/components/coachmark/index.js +10 -0
- package/es-custom/components/code-snippet/code-snippet.scss.js +1 -1
- package/es-custom/components/combo-box/combo-box.d.ts.map +1 -1
- package/es-custom/components/combo-box/combo-box.js +5 -12
- package/es-custom/components/combo-box/combo-box.js.map +1 -1
- package/es-custom/components/combo-box/combo-box.scss.js +1 -1
- package/es-custom/components/combo-box/combo-box.scss.js.map +1 -1
- package/es-custom/components/combo-button/combo-button.scss.js +1 -1
- package/es-custom/components/contained-list/contained-list.scss.js +1 -1
- package/es-custom/components/content-switcher/content-switcher.scss.js +1 -1
- package/es-custom/components/copy/index.d.ts +9 -0
- package/es-custom/components/copy/index.d.ts.map +1 -0
- package/es-custom/components/copy/index.js +9 -0
- package/es-custom/components/copy-button/copy-button.scss.js +1 -1
- package/es-custom/components/data-table/data-table.scss.js +1 -1
- package/es-custom/components/date-picker/date-picker.scss.js +1 -1
- package/es-custom/components/date-picker/date-picker.scss.js.map +1 -1
- package/es-custom/components/date-picker/next/components/date-picker.scss.js +1 -1
- package/es-custom/components/date-picker/next/components/date-picker.scss.js.map +1 -1
- package/es-custom/components/dialog/dialog.scss.js +1 -1
- package/es-custom/components/dropdown/dropdown.d.ts +2 -1
- package/es-custom/components/dropdown/dropdown.d.ts.map +1 -1
- package/es-custom/components/dropdown/dropdown.js +13 -15
- package/es-custom/components/dropdown/dropdown.js.map +1 -1
- package/es-custom/components/dropdown/dropdown.scss.js +1 -1
- package/es-custom/components/dropdown/dropdown.scss.js.map +1 -1
- package/es-custom/components/edit-in-place/defs.d.ts +30 -0
- package/es-custom/components/edit-in-place/defs.d.ts.map +1 -0
- package/es-custom/components/edit-in-place/defs.js +43 -0
- package/es-custom/components/edit-in-place/defs.js.map +1 -0
- package/es-custom/components/edit-in-place/edit-in-place-helpers.d.ts +47 -0
- package/es-custom/components/edit-in-place/edit-in-place-helpers.d.ts.map +1 -0
- package/es-custom/components/edit-in-place/edit-in-place-helpers.js +59 -0
- package/es-custom/components/edit-in-place/edit-in-place-helpers.js.map +1 -0
- package/es-custom/components/edit-in-place/edit-in-place.d.ts +214 -0
- package/es-custom/components/edit-in-place/edit-in-place.d.ts.map +1 -0
- package/es-custom/components/edit-in-place/edit-in-place.js +453 -0
- package/es-custom/components/edit-in-place/edit-in-place.js.map +1 -0
- package/es-custom/components/edit-in-place/edit-in-place.scss.js +14 -0
- package/es-custom/components/edit-in-place/edit-in-place.scss.js.map +1 -0
- package/es-custom/components/edit-in-place/index.d.ts +10 -0
- package/es-custom/components/edit-in-place/index.d.ts.map +1 -0
- package/es-custom/components/edit-in-place/index.js +20 -0
- package/es-custom/components/edit-in-place/index.js.map +1 -0
- package/es-custom/components/file-uploader/file-uploader.scss.js +1 -1
- package/es-custom/components/fluid-combo-box/fluid-combo-box.scss.js +1 -1
- package/es-custom/components/fluid-combo-box/fluid-combo-box.scss.js.map +1 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.d.ts +5 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.js +27 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.js.map +1 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.scss.js +1 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker.scss.js.map +1 -1
- package/es-custom/components/fluid-dropdown/fluid-dropdown.scss.js +1 -1
- package/es-custom/components/fluid-dropdown/fluid-dropdown.scss.js.map +1 -1
- package/es-custom/components/fluid-form/fluid-form.scss.js +1 -1
- package/es-custom/components/fluid-multi-select/fluid-multi-select.scss.js +1 -1
- package/es-custom/components/fluid-multi-select/fluid-multi-select.scss.js.map +1 -1
- package/es-custom/components/fluid-number-input/fluid-number-input.scss.js +1 -1
- package/es-custom/components/fluid-number-input/fluid-number-input.scss.js.map +1 -1
- package/es-custom/components/fluid-password-input/fluid-password-input.scss.js +1 -1
- package/es-custom/components/fluid-search/fluid-search.scss.js +1 -1
- package/es-custom/components/fluid-search/fluid-search.scss.js.map +1 -1
- package/es-custom/components/fluid-select/fluid-select.scss.js +1 -1
- package/es-custom/components/fluid-text-input/fluid-text-input.scss.js +1 -1
- package/es-custom/components/fluid-textarea/fluid-textarea.scss.js +1 -1
- package/es-custom/components/fluid-time-picker/fluid-time-picker.scss.js +1 -1
- package/es-custom/components/form/form-item.scss.js +1 -1
- package/es-custom/components/form/form.scss.js +1 -1
- package/es-custom/components/form-group/form-group.scss.js +1 -1
- package/es-custom/components/grid/column-hang.scss.js +1 -1
- package/es-custom/components/grid/grid.scss.js +1 -1
- package/es-custom/components/icon-button/icon-button.d.ts +1 -1
- package/es-custom/components/icon-button/icon-button.js +1 -1
- package/es-custom/components/icon-button/icon-button.js.map +1 -1
- package/es-custom/components/inline-loading/inline-loading.scss.js +1 -1
- package/es-custom/components/layer/layer.scss.js +1 -1
- package/es-custom/components/layout/layout.scss.js +1 -1
- package/es-custom/components/link/link.d.ts +2 -1
- package/es-custom/components/link/link.d.ts.map +1 -1
- package/es-custom/components/link/link.js +1 -1
- package/es-custom/components/link/link.js.map +1 -1
- package/es-custom/components/loading/loading.scss.js +1 -1
- package/es-custom/components/menu/menu-item.d.ts.map +1 -1
- package/es-custom/components/menu/menu-item.js +2 -6
- package/es-custom/components/menu/menu-item.js.map +1 -1
- package/es-custom/components/menu/menu-item.scss.js +1 -1
- package/es-custom/components/menu/menu-item.scss.js.map +1 -1
- package/es-custom/components/menu/menu.d.ts +10 -0
- package/es-custom/components/menu/menu.d.ts.map +1 -1
- package/es-custom/components/menu/menu.js +17 -11
- package/es-custom/components/menu/menu.js.map +1 -1
- package/es-custom/components/menu/menu.scss.js +1 -1
- package/es-custom/components/menu/menu.scss.js.map +1 -1
- package/es-custom/components/menu-button/menu-button.scss.js +1 -1
- package/es-custom/components/modal/modal.scss.js +1 -1
- package/es-custom/components/multi-select/multi-select-item.d.ts +1 -1
- package/es-custom/components/multi-select/multi-select-item.d.ts.map +1 -1
- package/es-custom/components/multi-select/multi-select-item.js +5 -1
- package/es-custom/components/multi-select/multi-select-item.js.map +1 -1
- package/es-custom/components/multi-select/multi-select.d.ts +2 -1
- package/es-custom/components/multi-select/multi-select.d.ts.map +1 -1
- package/es-custom/components/multi-select/multi-select.js +15 -14
- package/es-custom/components/multi-select/multi-select.js.map +1 -1
- package/es-custom/components/multi-select/multi-select.scss.js +1 -1
- package/es-custom/components/multi-select/multi-select.scss.js.map +1 -1
- package/es-custom/components/notification/actionable-notification-button.d.ts +1 -1
- package/es-custom/components/notification/actionable-notification-button.d.ts.map +1 -1
- package/es-custom/components/notification/actionable-notification-button.js +2 -2
- package/es-custom/components/notification/actionable-notification-button.js.map +1 -1
- package/es-custom/components/notification/actionable-notification.d.ts.map +1 -1
- package/es-custom/components/notification/actionable-notification.js +4 -4
- package/es-custom/components/notification/actionable-notification.js.map +1 -1
- package/es-custom/components/notification/actionable-notification.scss.js +1 -1
- package/es-custom/components/notification/inline-notification.scss.js +1 -1
- package/es-custom/components/notification/toast-notification.scss.js +1 -1
- package/es-custom/components/number-input/number-input.scss.js +1 -1
- package/es-custom/components/number-input/number-input.scss.js.map +1 -1
- package/es-custom/components/options-tile/index.d.ts +8 -0
- package/es-custom/components/options-tile/index.d.ts.map +1 -0
- package/es-custom/components/options-tile/index.js +8 -0
- package/es-custom/components/options-tile/option-tile-helpers.d.ts +16 -0
- package/es-custom/components/options-tile/option-tile-helpers.d.ts.map +1 -0
- package/es-custom/components/options-tile/option-tile-helpers.js +163 -0
- package/es-custom/components/options-tile/option-tile-helpers.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.d.ts +91 -0
- package/es-custom/components/options-tile/options-tile.d.ts.map +1 -0
- package/es-custom/components/options-tile/options-tile.js +208 -0
- package/es-custom/components/options-tile/options-tile.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.scss.js +14 -0
- package/es-custom/components/options-tile/options-tile.scss.js.map +1 -0
- package/es-custom/components/overflow-menu/overflow-menu.js +1 -1
- package/es-custom/components/overflow-menu/overflow-menu.scss.js +1 -1
- package/es-custom/components/page-header/index.d.ts +1 -0
- package/es-custom/components/page-header/index.d.ts.map +1 -1
- package/es-custom/components/page-header/index.js +1 -0
- package/es-custom/components/page-header/page-header-tabs.d.ts +1 -1
- package/es-custom/components/page-header/page-header-tabs.d.ts.map +1 -1
- package/es-custom/components/page-header/page-header-tabs.js +1 -2
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -1
- package/es-custom/components/page-header/page-header.d.ts +1 -1
- package/es-custom/components/page-header/page-header.d.ts.map +1 -1
- package/es-custom/components/page-header/page-header.js +1 -2
- package/es-custom/components/page-header/page-header.js.map +1 -1
- package/es-custom/components/page-header/page-header.scss.js +1 -1
- package/es-custom/components/pagination/pagination.scss.js +1 -1
- package/es-custom/components/pagination-nav/pagination-nav.scss.js +1 -1
- package/es-custom/components/password-input/password-input.scss.js +1 -1
- package/es-custom/components/popover/popover.scss.js +1 -1
- package/es-custom/components/progress-bar/progress-bar.scss.js +1 -1
- package/es-custom/components/progress-indicator/progress-indicator.scss.js +1 -1
- package/es-custom/components/radio-button/radio-button.scss.js +1 -1
- package/es-custom/components/resizer/resizer-handle-pivot.scss.js +1 -1
- package/es-custom/components/search/search.d.ts.map +1 -1
- package/es-custom/components/search/search.js +2 -0
- package/es-custom/components/search/search.js.map +1 -1
- package/es-custom/components/search/search.scss.js +1 -1
- package/es-custom/components/search/search.scss.js.map +1 -1
- package/es-custom/components/select/select.scss.js +1 -1
- package/es-custom/components/select/select.scss.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.js +2 -2
- package/es-custom/components/side-panel/side-panel.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/skeleton-icon/skeleton-icon.scss.js +1 -1
- package/es-custom/components/skeleton-placeholder/skeleton-placeholder.scss.js +1 -1
- package/es-custom/components/skeleton-text/skeleton-text.scss.js +1 -1
- package/es-custom/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es-custom/components/slider/slider.scss.js +1 -1
- package/es-custom/components/slider/slider.scss.js.map +1 -1
- package/es-custom/components/slug/index.d.ts +1 -0
- package/es-custom/components/slug/index.d.ts.map +1 -1
- package/es-custom/components/slug/index.js +1 -0
- package/es-custom/components/slug/slug.scss.js +1 -1
- package/es-custom/components/structured-list/structured-list.scss.js +1 -1
- package/es-custom/components/tabs/tabs.scss.js +1 -1
- package/es-custom/components/tabs/tabs.scss.js.map +1 -1
- package/es-custom/components/tag/dismissible-tag.d.ts +1 -1
- package/es-custom/components/tag/dismissible-tag.d.ts.map +1 -1
- package/es-custom/components/tag/dismissible-tag.js +24 -15
- package/es-custom/components/tag/dismissible-tag.js.map +1 -1
- package/es-custom/components/tag/tag.d.ts.map +1 -1
- package/es-custom/components/tag/tag.js +1 -1
- package/es-custom/components/tag/tag.js.map +1 -1
- package/es-custom/components/tag/tag.scss.js +1 -1
- package/es-custom/components/tag/tag.scss.js.map +1 -1
- package/es-custom/components/text-input/text-input.scss.js +1 -1
- package/es-custom/components/text-input/text-input.scss.js.map +1 -1
- package/es-custom/components/textarea/textarea.scss.js +1 -1
- package/es-custom/components/tile/clickable-tile.d.ts +2 -1
- package/es-custom/components/tile/clickable-tile.d.ts.map +1 -1
- package/es-custom/components/tile/clickable-tile.js +1 -1
- package/es-custom/components/tile/clickable-tile.js.map +1 -1
- package/es-custom/components/tile/tile.scss.js +1 -1
- package/es-custom/components/time-picker/time-picker.scss.js +1 -1
- package/es-custom/components/toggle-tip/toggletip.scss.js +1 -1
- package/es-custom/components/tooltip/tooltip.scss.js +1 -1
- package/es-custom/components/tree-view/tree-view.scss.js +1 -1
- package/es-custom/components/ui-shell/header.scss.js +1 -1
- package/es-custom/components/ui-shell/side-nav.scss.js +1 -1
- package/es-custom/components/user-avatar/index.d.ts +8 -0
- package/es-custom/components/user-avatar/index.d.ts.map +1 -0
- package/es-custom/components/user-avatar/index.js +8 -0
- package/es-custom/components/user-avatar/user-avatar.d.ts +84 -0
- package/es-custom/components/user-avatar/user-avatar.d.ts.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.js +151 -0
- package/es-custom/components/user-avatar/user-avatar.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js +14 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es-custom/globals/controllers/floating-controller.d.ts.map +1 -1
- package/es-custom/globals/controllers/floating-controller.js.map +1 -1
- package/es-custom/globals/decorators/carbon-element.d.ts +8 -0
- package/es-custom/globals/decorators/carbon-element.d.ts.map +1 -1
- package/es-custom/globals/decorators/carbon-element.js +18 -1
- package/es-custom/globals/decorators/carbon-element.js.map +1 -1
- package/es-custom/globals/internal/collection-helpers.d.ts +5 -5
- package/es-custom/globals/internal/collection-helpers.d.ts.map +1 -1
- package/es-custom/globals/internal/collection-helpers.js +1 -1
- package/es-custom/globals/internal/collection-helpers.js.map +1 -1
- package/es-custom/globals/internal/getSupportedLocale.d.ts +12 -0
- package/es-custom/globals/internal/getSupportedLocale.d.ts.map +1 -0
- package/es-custom/globals/internal/getSupportedLocale.js +29 -0
- package/es-custom/globals/internal/getSupportedLocale.js.map +1 -0
- package/es-custom/globals/mixins/on.d.ts +2 -2
- package/es-custom/globals/mixins/on.d.ts.map +1 -1
- package/es-custom/globals/mixins/on.js +4 -4
- package/es-custom/globals/mixins/on.js.map +1 -1
- package/es-custom/globals/register.d.ts +89 -0
- package/es-custom/globals/register.d.ts.map +1 -0
- package/es-custom/globals/register.js +56 -0
- package/es-custom/globals/register.js.map +1 -0
- package/es-custom/globals/settings.d.ts +1 -1
- package/es-custom/globals/settings.d.ts.map +1 -1
- package/es-custom/globals/settings.js +1 -0
- package/es-custom/globals/settings.js.map +1 -1
- package/es-custom/index.d.ts +10 -0
- package/es-custom/index.d.ts.map +1 -1
- package/es-custom/index.js +13 -3
- package/lib/components/ai-label/ai-label-action-button.d.ts +1 -1
- package/lib/components/ai-label/ai-label-action-button.d.ts.map +1 -1
- package/lib/components/ai-label/index.d.ts +1 -0
- package/lib/components/ai-label/index.d.ts.map +1 -1
- package/lib/components/big-number/big-number-skeleton.d.ts +21 -0
- package/lib/components/big-number/big-number-skeleton.d.ts.map +1 -0
- package/lib/components/big-number/big-number.d.ts +35 -0
- package/lib/components/big-number/big-number.d.ts.map +1 -0
- package/lib/components/big-number/constants.d.ts +20 -0
- package/lib/components/big-number/constants.d.ts.map +1 -0
- package/lib/components/big-number/index.d.ts +8 -0
- package/lib/components/big-number/index.d.ts.map +1 -0
- package/lib/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/lib/components/button/button.d.ts.map +1 -1
- package/lib/components/card/card-action.d.ts +27 -0
- package/lib/components/card/card-action.d.ts.map +1 -0
- package/lib/components/card/card-actions.d.ts +36 -0
- package/lib/components/card/card-actions.d.ts.map +1 -0
- package/lib/components/card/card-body.d.ts +23 -0
- package/lib/components/card/card-body.d.ts.map +1 -0
- package/lib/components/card/card-context.d.ts +20 -0
- package/lib/components/card/card-context.d.ts.map +1 -0
- package/lib/components/card/card-footer.d.ts +34 -0
- package/lib/components/card/card-footer.d.ts.map +1 -0
- package/lib/components/card/card-header-media.d.ts +19 -0
- package/lib/components/card/card-header-media.d.ts.map +1 -0
- package/lib/components/card/card-header.d.ts +23 -0
- package/lib/components/card/card-header.d.ts.map +1 -0
- package/lib/components/card/card-media.d.ts +37 -0
- package/lib/components/card/card-media.d.ts.map +1 -0
- package/lib/components/card/card-title-media.d.ts +19 -0
- package/lib/components/card/card-title-media.d.ts.map +1 -0
- package/lib/components/card/card-title.d.ts +52 -0
- package/lib/components/card/card-title.d.ts.map +1 -0
- package/lib/components/card/card.d.ts +69 -0
- package/lib/components/card/card.d.ts.map +1 -0
- package/lib/components/card/defs.d.ts +33 -0
- package/lib/components/card/defs.d.ts.map +1 -0
- package/lib/components/card/defs.js +48 -0
- package/lib/components/card/defs.js.map +1 -0
- package/lib/components/card/index.d.ts +17 -0
- package/lib/components/card/index.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +67 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/defs.d.ts +13 -0
- package/lib/components/coachmark/coachmark-beacon/defs.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js +26 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/index.d.ts +8 -0
- package/lib/components/coachmark/coachmark-beacon/index.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-body.d.ts +31 -0
- package/lib/components/coachmark/coachmark-body.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-context.d.ts +12 -0
- package/lib/components/coachmark/coachmark-context.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-header.d.ts +41 -0
- package/lib/components/coachmark/coachmark-header.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-helpers.d.ts +10 -0
- package/lib/components/coachmark/coachmark-helpers.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts +72 -0
- package/lib/components/coachmark/coachmark-tagline/coachmark-tagline.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark-tagline/index.d.ts +8 -0
- package/lib/components/coachmark/coachmark-tagline/index.d.ts.map +1 -0
- package/lib/components/coachmark/coachmark.d.ts +97 -0
- package/lib/components/coachmark/coachmark.d.ts.map +1 -0
- package/lib/components/coachmark/index.d.ts +10 -0
- package/lib/components/coachmark/index.d.ts.map +1 -0
- package/lib/components/combo-box/combo-box.d.ts.map +1 -1
- package/lib/components/copy/index.d.ts +9 -0
- package/lib/components/copy/index.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.d.ts +2 -1
- package/lib/components/dropdown/dropdown.d.ts.map +1 -1
- package/lib/components/edit-in-place/defs.d.ts +30 -0
- package/lib/components/edit-in-place/defs.d.ts.map +1 -0
- package/lib/components/edit-in-place/defs.js +45 -0
- package/lib/components/edit-in-place/defs.js.map +1 -0
- package/lib/components/edit-in-place/edit-in-place-helpers.d.ts +47 -0
- package/lib/components/edit-in-place/edit-in-place-helpers.d.ts.map +1 -0
- package/lib/components/edit-in-place/edit-in-place.d.ts +214 -0
- package/lib/components/edit-in-place/edit-in-place.d.ts.map +1 -0
- package/lib/components/edit-in-place/index.d.ts +10 -0
- package/lib/components/edit-in-place/index.d.ts.map +1 -0
- package/lib/components/fluid-date-picker/fluid-date-picker.d.ts +5 -1
- package/lib/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -1
- package/lib/components/icon-button/icon-button.d.ts +1 -1
- package/lib/components/link/link.d.ts +2 -1
- package/lib/components/link/link.d.ts.map +1 -1
- package/lib/components/menu/menu-item.d.ts.map +1 -1
- package/lib/components/menu/menu.d.ts +10 -0
- package/lib/components/menu/menu.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select-item.d.ts +1 -1
- package/lib/components/multi-select/multi-select-item.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.d.ts +2 -1
- package/lib/components/multi-select/multi-select.d.ts.map +1 -1
- package/lib/components/notification/actionable-notification-button.d.ts +1 -1
- package/lib/components/notification/actionable-notification-button.d.ts.map +1 -1
- package/lib/components/notification/actionable-notification.d.ts.map +1 -1
- package/lib/components/options-tile/index.d.ts +8 -0
- package/lib/components/options-tile/index.d.ts.map +1 -0
- package/lib/components/options-tile/option-tile-helpers.d.ts +16 -0
- package/lib/components/options-tile/option-tile-helpers.d.ts.map +1 -0
- package/lib/components/options-tile/options-tile.d.ts +91 -0
- package/lib/components/options-tile/options-tile.d.ts.map +1 -0
- package/lib/components/page-header/index.d.ts +1 -0
- package/lib/components/page-header/index.d.ts.map +1 -1
- package/lib/components/page-header/page-header-tabs.d.ts +1 -1
- package/lib/components/page-header/page-header-tabs.d.ts.map +1 -1
- package/lib/components/page-header/page-header.d.ts +1 -1
- package/lib/components/page-header/page-header.d.ts.map +1 -1
- package/lib/components/search/search.d.ts.map +1 -1
- package/lib/components/slug/index.d.ts +1 -0
- package/lib/components/slug/index.d.ts.map +1 -1
- package/lib/components/tag/dismissible-tag.d.ts +1 -1
- package/lib/components/tag/dismissible-tag.d.ts.map +1 -1
- package/lib/components/tag/tag.d.ts.map +1 -1
- package/lib/components/tile/clickable-tile.d.ts +2 -1
- package/lib/components/tile/clickable-tile.d.ts.map +1 -1
- package/lib/components/user-avatar/index.d.ts +8 -0
- package/lib/components/user-avatar/index.d.ts.map +1 -0
- package/lib/components/user-avatar/user-avatar.d.ts +84 -0
- package/lib/components/user-avatar/user-avatar.d.ts.map +1 -0
- package/lib/globals/controllers/floating-controller.d.ts.map +1 -1
- package/lib/globals/controllers/floating-controller.js.map +1 -1
- package/lib/globals/decorators/carbon-element.d.ts +8 -0
- package/lib/globals/decorators/carbon-element.d.ts.map +1 -1
- package/lib/globals/internal/collection-helpers.d.ts +5 -5
- package/lib/globals/internal/collection-helpers.d.ts.map +1 -1
- package/lib/globals/internal/getSupportedLocale.d.ts +12 -0
- package/lib/globals/internal/getSupportedLocale.d.ts.map +1 -0
- package/lib/globals/mixins/on.d.ts +2 -2
- package/lib/globals/mixins/on.d.ts.map +1 -1
- package/lib/globals/register.d.ts +89 -0
- package/lib/globals/register.d.ts.map +1 -0
- package/lib/globals/register.js +61 -0
- package/lib/globals/register.js.map +1 -0
- package/lib/globals/settings.d.ts +1 -1
- package/lib/globals/settings.d.ts.map +1 -1
- package/lib/globals/settings.js +1 -0
- package/lib/globals/settings.js.map +1 -1
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -1
- package/package.json +16 -10
- package/scss/components/ai-label/ai-label.scss +24 -33
- package/scss/components/big-number/big-number-skeleton.scss +58 -0
- package/scss/components/big-number/big-number.scss +29 -0
- package/scss/components/big-number/story-styles.scss +48 -0
- package/scss/components/card/card-story.scss +29 -0
- package/scss/components/card/card.scss +212 -0
- package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +89 -0
- package/scss/components/coachmark/coachmark-body.scss +16 -0
- package/scss/components/coachmark/coachmark-header.scss +28 -0
- package/scss/components/coachmark/coachmark-tagline/coachmark-tagline.scss +42 -0
- package/scss/components/coachmark/coachmark.scss +42 -0
- package/scss/components/coachmark/story-styles.scss +37 -0
- package/scss/components/combo-box/combo-box.scss +63 -6
- package/scss/components/data-table/_table-action.scss +5 -3
- package/scss/components/date-picker/date-picker.scss +70 -2
- package/scss/components/date-picker/next/components/date-picker.scss +28 -2
- package/scss/components/dropdown/dropdown.scss +39 -4
- package/scss/components/edit-in-place/edit-in-place.scss +127 -0
- package/scss/components/edit-in-place/story-styles.scss +61 -0
- package/scss/components/fluid-combo-box/fluid-combo-box.scss +68 -5
- package/scss/components/fluid-date-picker/fluid-date-picker.scss +109 -12
- package/scss/components/fluid-dropdown/fluid-dropdown.scss +56 -6
- package/scss/components/fluid-multi-select/fluid-multi-select.scss +75 -2
- package/scss/components/fluid-number-input/fluid-number-input.scss +32 -1
- package/scss/components/fluid-search/fluid-search.scss +6 -3
- package/scss/components/menu/menu-item.scss +9 -1
- package/scss/components/menu/menu.scss +32 -1
- package/scss/components/multi-select/multi-select.scss +130 -28
- package/scss/components/number-input/number-input.scss +35 -1
- package/scss/components/options-tile/options-tile.scss +157 -0
- package/scss/components/options-tile/story-styles.scss +32 -0
- package/scss/components/search/search.scss +7 -0
- package/scss/components/select/select.scss +7 -3
- package/scss/components/slider/slider.scss +9 -2
- package/scss/components/tabs/tabs.scss +9 -2
- package/scss/components/tag/tag-story.scss +19 -0
- package/scss/components/tag/tag.scss +15 -11
- package/scss/components/text-input/text-input.scss +22 -0
- package/scss/components/user-avatar/story-styles.scss +53 -0
- package/scss/components/user-avatar/user-avatar.scss +113 -0
- package/telemetry.yml +67 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import "../../globals/settings.js";
|
|
9
|
+
import { carbonElement } from "../../globals/decorators/carbon-element.js";
|
|
10
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/decorate.js";
|
|
11
|
+
import iconLoader from "../../globals/internal/icon-loader.js";
|
|
12
|
+
import HostListener from "../../globals/decorators/host-listener.js";
|
|
13
|
+
import HostListenerMixin from "../../globals/mixins/host-listener.js";
|
|
14
|
+
import "../tooltip/index.js";
|
|
15
|
+
import "../icon-button/index.js";
|
|
16
|
+
import { EDIT_IN_PLACE_SIZE, TOOLTIP_ALIGNMENT } from "./defs.js";
|
|
17
|
+
import edit_in_place_default$1 from "./edit-in-place.scss.js";
|
|
18
|
+
import { LitElement, html } from "lit";
|
|
19
|
+
import { property, query, state } from "lit/decorators.js";
|
|
20
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
21
|
+
import Close from "@carbon/icons/es/close/16";
|
|
22
|
+
import Edit16 from "@carbon/icons/es/edit/16";
|
|
23
|
+
import EditOff16 from "@carbon/icons/es/edit--off/16";
|
|
24
|
+
import Checkmark16 from "@carbon/icons/es/checkmark/16";
|
|
25
|
+
import WarningFilled16 from "@carbon/icons/es/warning--filled/16";
|
|
26
|
+
//#region src/components/edit-in-place/edit-in-place.ts
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
*
|
|
30
|
+
* Copyright IBM Corp. 2026
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const blockClass = `cds--edit-in-place`;
|
|
36
|
+
/**
|
|
37
|
+
* EditInPlace component for inline text editing.
|
|
38
|
+
*
|
|
39
|
+
* @element cds-edit-in-place
|
|
40
|
+
* @csspart input - The input element
|
|
41
|
+
* @csspart actions - The button container
|
|
42
|
+
* @csspart invalid-text - The error message container
|
|
43
|
+
* @fires cds-edit-in-place-change - Fired when the input value changes
|
|
44
|
+
* @fires cds-edit-in-place-save - Fired when the save button is clicked or Enter is pressed
|
|
45
|
+
* @fires cds-edit-in-place-cancel - Fired when the cancel button is clicked or Escape is pressed
|
|
46
|
+
* @fires cds-edit-in-place-blur - Fired when the input loses focus (if onBlur handler is used)
|
|
47
|
+
*/
|
|
48
|
+
let CDSEditInPlace = class CDSEditInPlace extends HostListenerMixin(LitElement) {
|
|
49
|
+
constructor(..._args) {
|
|
50
|
+
super(..._args);
|
|
51
|
+
this.cancelLabel = "Cancel";
|
|
52
|
+
this.editAlwaysVisible = false;
|
|
53
|
+
this.editLabel = "Edit";
|
|
54
|
+
this.id = "";
|
|
55
|
+
this.inheritTypography = false;
|
|
56
|
+
this.invalid = false;
|
|
57
|
+
this.invalidText = "";
|
|
58
|
+
this.labelText = "";
|
|
59
|
+
this.placeholder = "";
|
|
60
|
+
this.readOnly = false;
|
|
61
|
+
this.readOnlyLabel = "Edit off";
|
|
62
|
+
this.readOnlyToggleTipText = "This field is read-only and cannot be edited";
|
|
63
|
+
this.saveLabel = "Save";
|
|
64
|
+
this.size = "sm";
|
|
65
|
+
this.toggleTipAlignment = "bottom";
|
|
66
|
+
this.tooltipAlignment = "top";
|
|
67
|
+
this.value = "";
|
|
68
|
+
this.defaultValue = "";
|
|
69
|
+
this._focused = false;
|
|
70
|
+
this._internalValue = "";
|
|
71
|
+
this._initialValue = "";
|
|
72
|
+
this._dirtyInput = false;
|
|
73
|
+
this._escaping = false;
|
|
74
|
+
this._clickingWithin = false;
|
|
75
|
+
this._handleDocumentClick = (e) => {
|
|
76
|
+
if (!this._focused) return;
|
|
77
|
+
if (!e.composedPath().includes(this)) if (this._canSave) this._handleSave(true);
|
|
78
|
+
else this._handleCancel(true);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if value has changed from initial
|
|
83
|
+
*/
|
|
84
|
+
get _hasValueChanged() {
|
|
85
|
+
return this._internalValue.trim() !== this._initialValue.trim();
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check if we can save (value changed and not invalid)
|
|
89
|
+
*/
|
|
90
|
+
get _canSave() {
|
|
91
|
+
return this._hasValueChanged && !this.invalid;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Check if we can cancel (value has changed)
|
|
95
|
+
*/
|
|
96
|
+
get _canCancel() {
|
|
97
|
+
return this._hasValueChanged;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Handle input change
|
|
101
|
+
*/
|
|
102
|
+
_handleChange(e) {
|
|
103
|
+
const input = e.target;
|
|
104
|
+
if (!this._dirtyInput) this._dirtyInput = true;
|
|
105
|
+
this._internalValue = input.value;
|
|
106
|
+
this._emitEvent("change", this._internalValue);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Handle focus
|
|
110
|
+
*/
|
|
111
|
+
_handleFocus(e) {
|
|
112
|
+
const relatedTarget = e?.relatedTarget;
|
|
113
|
+
if (e?.target !== this._inputElement && !this.readOnly && !this._focused && !this.contains(relatedTarget ?? null)) requestAnimationFrame(() => {
|
|
114
|
+
this._inputElement?.focus();
|
|
115
|
+
});
|
|
116
|
+
this._focused = true;
|
|
117
|
+
}
|
|
118
|
+
willUpdate(changedProperties) {
|
|
119
|
+
if (changedProperties.has("value")) {
|
|
120
|
+
const value = this.value || this.defaultValue;
|
|
121
|
+
this._internalValue = value;
|
|
122
|
+
this._initialValue = value;
|
|
123
|
+
this._dirtyInput = false;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
_emitEvent(name, value) {
|
|
127
|
+
this.dispatchEvent(new CustomEvent(`cds-edit-in-place-${name}`, {
|
|
128
|
+
bubbles: true,
|
|
129
|
+
composed: true,
|
|
130
|
+
detail: { value }
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Handle save
|
|
135
|
+
*/
|
|
136
|
+
_handleSave(exitEditMode = false) {
|
|
137
|
+
this._initialValue = this._internalValue;
|
|
138
|
+
this._dirtyInput = false;
|
|
139
|
+
this._emitEvent("save", this._internalValue);
|
|
140
|
+
if (exitEditMode) this._focused = false;
|
|
141
|
+
else requestAnimationFrame(() => {
|
|
142
|
+
this._inputElement?.focus();
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Handle cancel
|
|
147
|
+
*/
|
|
148
|
+
_handleCancel(exitEditMode = false) {
|
|
149
|
+
this._dirtyInput = false;
|
|
150
|
+
this._internalValue = this._initialValue;
|
|
151
|
+
this._emitEvent("cancel", this._initialValue);
|
|
152
|
+
if (exitEditMode) this._focused = false;
|
|
153
|
+
else requestAnimationFrame(() => {
|
|
154
|
+
if (this._inputElement) {
|
|
155
|
+
this._inputElement.focus();
|
|
156
|
+
const length = this._inputElement.value.length;
|
|
157
|
+
this._inputElement.setSelectionRange(length, length);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Handle blur
|
|
163
|
+
*/
|
|
164
|
+
_handleBlur(e) {
|
|
165
|
+
const relatedTarget = e.relatedTarget;
|
|
166
|
+
const clickedWithin = this._clickingWithin;
|
|
167
|
+
const targetingChild = relatedTarget ? this.contains(relatedTarget) : false;
|
|
168
|
+
if (clickedWithin) {
|
|
169
|
+
this._clickingWithin = false;
|
|
170
|
+
if (targetingChild) return;
|
|
171
|
+
}
|
|
172
|
+
if (!clickedWithin && targetingChild) return;
|
|
173
|
+
if (this._escaping) return;
|
|
174
|
+
if (this._canSave) this._handleSave(true);
|
|
175
|
+
else this._handleCancel(true);
|
|
176
|
+
this._emitEvent("blur", this._initialValue);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Handle keyboard events
|
|
180
|
+
*/
|
|
181
|
+
_handleKeyDown(e) {
|
|
182
|
+
switch (e.key) {
|
|
183
|
+
case "Escape":
|
|
184
|
+
this._escaping = true;
|
|
185
|
+
this._inputElement?.blur();
|
|
186
|
+
this._handleCancel(false);
|
|
187
|
+
this._escaping = false;
|
|
188
|
+
break;
|
|
189
|
+
case "Enter":
|
|
190
|
+
this._escaping = true;
|
|
191
|
+
this._inputElement?.blur();
|
|
192
|
+
if (this._canSave) this._handleSave(false);
|
|
193
|
+
this._escaping = false;
|
|
194
|
+
break;
|
|
195
|
+
case "Tab":
|
|
196
|
+
if (!e.shiftKey && !this._hasValueChanged) this._handleCancel(true);
|
|
197
|
+
break;
|
|
198
|
+
default: break;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Handle toolbar mousedown to track button clicks
|
|
203
|
+
* Uses composedPath() to properly handle Shadow DOM boundaries
|
|
204
|
+
*/
|
|
205
|
+
_handleToolbarMouseDown(e) {
|
|
206
|
+
const foundButton = e.composedPath().find((el) => el instanceof HTMLElement && (el.tagName === "BUTTON" || el.tagName === "CDS-ICON-BUTTON"));
|
|
207
|
+
if (foundButton) {
|
|
208
|
+
this._clickingWithin = true;
|
|
209
|
+
if (foundButton.hasAttribute("disabled") || foundButton.getAttribute("aria-disabled") === "true") e.preventDefault();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Handle keydown on save button to exit edit mode on Tab
|
|
214
|
+
*/
|
|
215
|
+
_handleSaveButtonKeyDown(e) {
|
|
216
|
+
if (e.key === "Tab" && !e.shiftKey) {
|
|
217
|
+
this._focused = false;
|
|
218
|
+
this._inputElement?.blur();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Initialize component
|
|
223
|
+
*/
|
|
224
|
+
connectedCallback() {
|
|
225
|
+
super.connectedCallback();
|
|
226
|
+
const value = this.value || this.defaultValue;
|
|
227
|
+
this._internalValue = value;
|
|
228
|
+
this._initialValue = value;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Cleanup component state when removed from DOM
|
|
232
|
+
*/
|
|
233
|
+
disconnectedCallback() {
|
|
234
|
+
super.disconnectedCallback();
|
|
235
|
+
this._escaping = false;
|
|
236
|
+
this._clickingWithin = false;
|
|
237
|
+
this._focused = false;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Render the input element
|
|
241
|
+
*/
|
|
242
|
+
_renderInput() {
|
|
243
|
+
const inputClasses = {
|
|
244
|
+
[`${blockClass}__text-input`]: true,
|
|
245
|
+
[`cds--text-input`]: true,
|
|
246
|
+
[`cds--text-input--${this.size}`]: true
|
|
247
|
+
};
|
|
248
|
+
const inputElement = html`
|
|
249
|
+
<input
|
|
250
|
+
id=${this.id}
|
|
251
|
+
class=${classMap(inputClasses)}
|
|
252
|
+
type="text"
|
|
253
|
+
part="input"
|
|
254
|
+
placeholder=${this.placeholder}
|
|
255
|
+
.value=${this._internalValue}
|
|
256
|
+
@input=${this._handleChange}
|
|
257
|
+
@focus=${this._handleFocus}
|
|
258
|
+
@keydown=${this._handleKeyDown}
|
|
259
|
+
aria-label=${this.labelText}
|
|
260
|
+
aria-invalid=${this.invalid ? "true" : "false"}
|
|
261
|
+
?readonly=${this.readOnly} />
|
|
262
|
+
`;
|
|
263
|
+
if (this.readOnly) return html`
|
|
264
|
+
<cds-tooltip
|
|
265
|
+
align=${this.toggleTipAlignment}
|
|
266
|
+
class="${blockClass}__toggletip-wrapper">
|
|
267
|
+
${inputElement}
|
|
268
|
+
<cds-tooltip-content
|
|
269
|
+
>${this.readOnlyToggleTipText}</cds-tooltip-content
|
|
270
|
+
>
|
|
271
|
+
</cds-tooltip>
|
|
272
|
+
`;
|
|
273
|
+
return inputElement;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Render action buttons
|
|
277
|
+
*/
|
|
278
|
+
_renderActions() {
|
|
279
|
+
if (this.readOnly) return html`
|
|
280
|
+
<cds-icon-button
|
|
281
|
+
class="${blockClass}__btn-readonly"
|
|
282
|
+
size=${this.size}
|
|
283
|
+
align=${this.tooltipAlignment}
|
|
284
|
+
kind="ghost"
|
|
285
|
+
@click=${this._handleFocus}>
|
|
286
|
+
${iconLoader(EditOff16, { slot: "icon" })}
|
|
287
|
+
<span slot="tooltip-content">${this.readOnlyLabel}</span>
|
|
288
|
+
</cds-icon-button>
|
|
289
|
+
`;
|
|
290
|
+
if (this._focused) return html`
|
|
291
|
+
<cds-icon-button
|
|
292
|
+
class="${blockClass}__btn ${blockClass}__btn-cancel"
|
|
293
|
+
size=${this.size}
|
|
294
|
+
align=${this.tooltipAlignment}
|
|
295
|
+
kind="ghost"
|
|
296
|
+
?disabled=${!this._canCancel}
|
|
297
|
+
@click=${() => this._handleCancel(false)}>
|
|
298
|
+
${iconLoader(Close, { slot: "icon" })}
|
|
299
|
+
<span slot="tooltip-content">${this.cancelLabel}</span>
|
|
300
|
+
</cds-icon-button>
|
|
301
|
+
<cds-icon-button
|
|
302
|
+
class="${blockClass}__btn ${blockClass}__btn-save"
|
|
303
|
+
size=${this.size}
|
|
304
|
+
align=${this.tooltipAlignment}
|
|
305
|
+
kind="ghost"
|
|
306
|
+
?disabled=${!this._canSave}
|
|
307
|
+
@click=${() => this._handleSave(false)}
|
|
308
|
+
@keydown=${this._handleSaveButtonKeyDown}>
|
|
309
|
+
${iconLoader(Checkmark16, { slot: "icon" })}
|
|
310
|
+
<span slot="tooltip-content">${this.saveLabel}</span>
|
|
311
|
+
</cds-icon-button>
|
|
312
|
+
`;
|
|
313
|
+
return html`
|
|
314
|
+
<cds-icon-button
|
|
315
|
+
class=${classMap({
|
|
316
|
+
[`${blockClass}__btn`]: true,
|
|
317
|
+
[`${blockClass}__btn-edit`]: true,
|
|
318
|
+
[`${blockClass}__btn-edit--always-visible`]: this.editAlwaysVisible
|
|
319
|
+
})}
|
|
320
|
+
size=${this.size}
|
|
321
|
+
align=${this.tooltipAlignment}
|
|
322
|
+
kind="ghost"
|
|
323
|
+
@click=${this._handleFocus}>
|
|
324
|
+
${iconLoader(Edit16, { slot: "icon" })}
|
|
325
|
+
<span slot="tooltip-content">${this.editLabel}</span>
|
|
326
|
+
</cds-icon-button>
|
|
327
|
+
`;
|
|
328
|
+
}
|
|
329
|
+
render() {
|
|
330
|
+
return html`
|
|
331
|
+
<div class=${classMap({
|
|
332
|
+
[`${blockClass}__container`]: true,
|
|
333
|
+
[`${blockClass}--${this.size}`]: true,
|
|
334
|
+
[`${blockClass}--focused`]: this._focused,
|
|
335
|
+
[`${blockClass}--invalid`]: this.invalid,
|
|
336
|
+
[`${blockClass}--inherit-type`]: this.inheritTypography,
|
|
337
|
+
[`${blockClass}--readonly`]: this.readOnly
|
|
338
|
+
})} @blur=${this._handleBlur}>
|
|
339
|
+
${this._renderInput()}
|
|
340
|
+
<div
|
|
341
|
+
class="${blockClass}__toolbar"
|
|
342
|
+
part="actions"
|
|
343
|
+
@mousedown=${this._handleToolbarMouseDown}>
|
|
344
|
+
${this.invalid ? iconLoader(WarningFilled16, { class: `${blockClass}__warning-icon` }) : ""}
|
|
345
|
+
${this._renderActions()}
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
${this.invalid ? html`<p class="${blockClass}__warning-text" part="invalid-text">
|
|
349
|
+
${this.invalidText}
|
|
350
|
+
</p>` : ""}
|
|
351
|
+
`;
|
|
352
|
+
}
|
|
353
|
+
static {
|
|
354
|
+
this.styles = edit_in_place_default$1;
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
__decorate([property({
|
|
358
|
+
type: String,
|
|
359
|
+
attribute: "cancel-label",
|
|
360
|
+
reflect: true
|
|
361
|
+
})], CDSEditInPlace.prototype, "cancelLabel", void 0);
|
|
362
|
+
__decorate([property({
|
|
363
|
+
type: Boolean,
|
|
364
|
+
attribute: "edit-always-visible",
|
|
365
|
+
reflect: true
|
|
366
|
+
})], CDSEditInPlace.prototype, "editAlwaysVisible", void 0);
|
|
367
|
+
__decorate([property({
|
|
368
|
+
type: String,
|
|
369
|
+
attribute: "edit-label",
|
|
370
|
+
reflect: true
|
|
371
|
+
})], CDSEditInPlace.prototype, "editLabel", void 0);
|
|
372
|
+
__decorate([property({
|
|
373
|
+
type: String,
|
|
374
|
+
reflect: true
|
|
375
|
+
})], CDSEditInPlace.prototype, "id", void 0);
|
|
376
|
+
__decorate([property({
|
|
377
|
+
type: Boolean,
|
|
378
|
+
attribute: "inherit-typography",
|
|
379
|
+
reflect: true
|
|
380
|
+
})], CDSEditInPlace.prototype, "inheritTypography", void 0);
|
|
381
|
+
__decorate([property({
|
|
382
|
+
type: Boolean,
|
|
383
|
+
reflect: true
|
|
384
|
+
})], CDSEditInPlace.prototype, "invalid", void 0);
|
|
385
|
+
__decorate([property({
|
|
386
|
+
type: String,
|
|
387
|
+
attribute: "invalid-text",
|
|
388
|
+
reflect: true
|
|
389
|
+
})], CDSEditInPlace.prototype, "invalidText", void 0);
|
|
390
|
+
__decorate([property({
|
|
391
|
+
type: String,
|
|
392
|
+
attribute: "label-text",
|
|
393
|
+
reflect: true
|
|
394
|
+
})], CDSEditInPlace.prototype, "labelText", void 0);
|
|
395
|
+
__decorate([property({
|
|
396
|
+
type: String,
|
|
397
|
+
reflect: true
|
|
398
|
+
})], CDSEditInPlace.prototype, "placeholder", void 0);
|
|
399
|
+
__decorate([property({
|
|
400
|
+
type: Boolean,
|
|
401
|
+
attribute: "read-only",
|
|
402
|
+
reflect: true
|
|
403
|
+
})], CDSEditInPlace.prototype, "readOnly", void 0);
|
|
404
|
+
__decorate([property({
|
|
405
|
+
type: String,
|
|
406
|
+
attribute: "read-only-label",
|
|
407
|
+
reflect: true
|
|
408
|
+
})], CDSEditInPlace.prototype, "readOnlyLabel", void 0);
|
|
409
|
+
__decorate([property({
|
|
410
|
+
type: String,
|
|
411
|
+
attribute: "read-only-toggletip-text",
|
|
412
|
+
reflect: true
|
|
413
|
+
})], CDSEditInPlace.prototype, "readOnlyToggleTipText", void 0);
|
|
414
|
+
__decorate([property({
|
|
415
|
+
type: String,
|
|
416
|
+
attribute: "save-label",
|
|
417
|
+
reflect: true
|
|
418
|
+
})], CDSEditInPlace.prototype, "saveLabel", void 0);
|
|
419
|
+
__decorate([property({
|
|
420
|
+
type: String,
|
|
421
|
+
reflect: true
|
|
422
|
+
})], CDSEditInPlace.prototype, "size", void 0);
|
|
423
|
+
__decorate([property({
|
|
424
|
+
type: String,
|
|
425
|
+
attribute: "toggletip-alignment",
|
|
426
|
+
reflect: true
|
|
427
|
+
})], CDSEditInPlace.prototype, "toggleTipAlignment", void 0);
|
|
428
|
+
__decorate([property({
|
|
429
|
+
type: String,
|
|
430
|
+
attribute: "tooltip-alignment",
|
|
431
|
+
reflect: true
|
|
432
|
+
})], CDSEditInPlace.prototype, "tooltipAlignment", void 0);
|
|
433
|
+
__decorate([property({
|
|
434
|
+
type: String,
|
|
435
|
+
reflect: true
|
|
436
|
+
})], CDSEditInPlace.prototype, "value", void 0);
|
|
437
|
+
__decorate([property({
|
|
438
|
+
type: String,
|
|
439
|
+
attribute: "default-value",
|
|
440
|
+
reflect: true
|
|
441
|
+
})], CDSEditInPlace.prototype, "defaultValue", void 0);
|
|
442
|
+
__decorate([state()], CDSEditInPlace.prototype, "_focused", void 0);
|
|
443
|
+
__decorate([state()], CDSEditInPlace.prototype, "_internalValue", void 0);
|
|
444
|
+
__decorate([state()], CDSEditInPlace.prototype, "_initialValue", void 0);
|
|
445
|
+
__decorate([state()], CDSEditInPlace.prototype, "_dirtyInput", void 0);
|
|
446
|
+
__decorate([query("input")], CDSEditInPlace.prototype, "_inputElement", void 0);
|
|
447
|
+
__decorate([HostListener("document:click")], CDSEditInPlace.prototype, "_handleDocumentClick", void 0);
|
|
448
|
+
CDSEditInPlace = __decorate([carbonElement(`cds-edit-in-place`)], CDSEditInPlace);
|
|
449
|
+
var edit_in_place_default = CDSEditInPlace;
|
|
450
|
+
//#endregion
|
|
451
|
+
export { EDIT_IN_PLACE_SIZE, TOOLTIP_ALIGNMENT, edit_in_place_default as default };
|
|
452
|
+
|
|
453
|
+
//# sourceMappingURL=edit-in-place.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-in-place.js","names":["Close16","styles","customElement"],"sources":["../../../src/components/edit-in-place/edit-in-place.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html } from 'lit';\nimport { property, state, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport HostListener from '../../globals/decorators/host-listener';\nimport { carbonElement as customElement } from '../../globals/decorators/carbon-element';\nimport { prefix } from '../../globals/settings';\nimport { iconLoader } from '../../globals/internal/icon-loader';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\nimport styles from './edit-in-place.scss?lit';\nimport Edit16 from '@carbon/icons/es/edit/16';\nimport EditOff16 from '@carbon/icons/es/edit--off/16';\nimport Checkmark16 from '@carbon/icons/es/checkmark/16';\nimport Close16 from '@carbon/icons/es/close/16';\nimport WarningFilled16 from '@carbon/icons/es/warning--filled/16';\nimport '../icon-button/index';\nimport '../tooltip/index';\nimport { EDIT_IN_PLACE_SIZE, TOOLTIP_ALIGNMENT } from './defs';\n\nexport { EDIT_IN_PLACE_SIZE, TOOLTIP_ALIGNMENT };\n\nconst blockClass = `${prefix}--edit-in-place`;\n\nexport type EditInPlaceSize = `${EDIT_IN_PLACE_SIZE}`;\nexport type TooltipAlignment = `${TOOLTIP_ALIGNMENT}`;\n\n/**\n * EditInPlace component for inline text editing.\n *\n * @element cds-edit-in-place\n * @csspart input - The input element\n * @csspart actions - The button container\n * @csspart invalid-text - The error message container\n * @fires cds-edit-in-place-change - Fired when the input value changes\n * @fires cds-edit-in-place-save - Fired when the save button is clicked or Enter is pressed\n * @fires cds-edit-in-place-cancel - Fired when the cancel button is clicked or Escape is pressed\n * @fires cds-edit-in-place-blur - Fired when the input loses focus (if onBlur handler is used)\n */\n@customElement(`${prefix}-edit-in-place`)\nclass CDSEditInPlace extends HostListenerMixin(LitElement) {\n /**\n * Label for the cancel button\n */\n @property({ type: String, attribute: 'cancel-label', reflect: true })\n cancelLabel = 'Cancel';\n\n /**\n * By default the edit icon is shown on hover only. Set to true to always show it.\n */\n @property({ type: Boolean, attribute: 'edit-always-visible', reflect: true })\n editAlwaysVisible = false;\n\n /**\n * Label for the edit button\n */\n @property({ type: String, attribute: 'edit-label', reflect: true })\n editLabel = 'Edit';\n\n /**\n * Specify a custom id for the input\n */\n @property({ type: String, reflect: true })\n override id = '';\n\n /**\n * Causes the text entry field to inherit typography settings from the container\n */\n @property({ type: Boolean, attribute: 'inherit-typography', reflect: true })\n inheritTypography = false;\n\n /**\n * Determines if the input is invalid\n */\n @property({ type: Boolean, reflect: true })\n invalid = false;\n\n /**\n * Text that is displayed if the input is invalid\n */\n @property({ type: String, attribute: 'invalid-text', reflect: true })\n invalidText = '';\n\n /**\n * Text that will be read by a screen reader when visiting this control\n */\n @property({ type: String, attribute: 'label-text', reflect: true })\n labelText = '';\n\n /**\n * Placeholder text for the input\n */\n @property({ type: String, reflect: true })\n placeholder = '';\n\n /**\n * Determines if the input is in readOnly mode\n */\n @property({ type: Boolean, attribute: 'read-only', reflect: true })\n readOnly = false;\n\n /**\n * Label for the edit off button that displays when in read only mode\n */\n @property({ type: String, attribute: 'read-only-label', reflect: true })\n readOnlyLabel = 'Edit off';\n\n /**\n * Text for the toggletip that displays when in read only mode\n */\n @property({\n type: String,\n attribute: 'read-only-toggletip-text',\n reflect: true,\n })\n readOnlyToggleTipText = 'This field is read-only and cannot be edited';\n\n /**\n * Label for the save button\n */\n @property({ type: String, attribute: 'save-label', reflect: true })\n saveLabel = 'Save';\n\n /**\n * Vertical size of control\n */\n @property({ type: String, reflect: true })\n size: EditInPlaceSize = 'sm';\n\n /**\n * Alignment for the toggletip that displays when in read only mode\n */\n @property({ type: String, attribute: 'toggletip-alignment', reflect: true })\n toggleTipAlignment: TooltipAlignment = 'bottom';\n\n /**\n * Tooltip alignment for buttons\n */\n @property({ type: String, attribute: 'tooltip-alignment', reflect: true })\n tooltipAlignment: TooltipAlignment = 'top';\n\n /**\n * Current value of the input (controlled mode)\n */\n @property({ type: String, reflect: true })\n value = '';\n\n /**\n * Default value for uncontrolled mode\n */\n @property({ type: String, attribute: 'default-value', reflect: true })\n defaultValue = '';\n\n /**\n * Internal state for focused mode\n */\n @state()\n private _focused = false;\n\n /**\n * Internal value for managing state\n */\n @state()\n private _internalValue = '';\n\n /**\n * Internal state for initial value (when entering edit mode)\n */\n @state()\n private _initialValue = '';\n\n /**\n * Internal state to track if input has been modified\n */\n @state()\n private _dirtyInput = false;\n\n /**\n * Flag to track if we're handling escape key\n */\n private _escaping = false;\n\n /**\n * Flag to track if we're clicking within the component\n */\n private _clickingWithin = false;\n\n /**\n * Reference to the input element\n */\n @query('input')\n private _inputElement?: HTMLInputElement;\n\n /**\n * Check if value has changed from initial\n */\n private get _hasValueChanged(): boolean {\n return this._internalValue.trim() !== this._initialValue.trim();\n }\n\n /**\n * Check if we can save (value changed and not invalid)\n */\n private get _canSave(): boolean {\n return this._hasValueChanged && !this.invalid;\n }\n\n /**\n * Check if we can cancel (value has changed)\n */\n private get _canCancel(): boolean {\n return this._hasValueChanged;\n }\n\n /**\n * Handle input change\n */\n private _handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n if (!this._dirtyInput) {\n this._dirtyInput = true;\n }\n\n this._internalValue = input.value;\n this._emitEvent('change', this._internalValue);\n }\n\n /**\n * Handle focus\n */\n private _handleFocus(e?: FocusEvent) {\n const relatedTarget = e?.relatedTarget as Node | null | undefined;\n const target = e?.target as EventTarget | null | undefined;\n\n if (\n target !== this._inputElement &&\n !this.readOnly &&\n !this._focused &&\n !this.contains(relatedTarget ?? null)\n ) {\n requestAnimationFrame(() => {\n this._inputElement?.focus();\n });\n }\n\n this._focused = true;\n }\n\n protected override willUpdate(changedProperties: Map<string, unknown>) {\n if (changedProperties.has('value')) {\n const value = this.value || this.defaultValue;\n this._internalValue = value;\n this._initialValue = value;\n this._dirtyInput = false;\n }\n }\n\n private _emitEvent(name: string, value: string) {\n this.dispatchEvent(\n new CustomEvent(`${prefix}-edit-in-place-${name}`, {\n bubbles: true,\n composed: true,\n detail: { value },\n })\n );\n }\n\n /**\n * Handle save\n */\n private _handleSave(exitEditMode = false) {\n this._initialValue = this._internalValue;\n this._dirtyInput = false;\n\n this._emitEvent('save', this._internalValue);\n\n if (exitEditMode) {\n this._focused = false;\n } else {\n requestAnimationFrame(() => {\n this._inputElement?.focus();\n });\n }\n }\n\n /**\n * Handle cancel\n */\n private _handleCancel(exitEditMode = false) {\n this._dirtyInput = false;\n this._internalValue = this._initialValue;\n\n this._emitEvent('cancel', this._initialValue);\n\n if (exitEditMode) {\n this._focused = false;\n } else {\n requestAnimationFrame(() => {\n if (this._inputElement) {\n this._inputElement.focus();\n const length = this._inputElement.value.length;\n this._inputElement.setSelectionRange(length, length);\n }\n });\n }\n }\n\n /**\n * Handle blur\n */\n private _handleBlur(e: FocusEvent) {\n const relatedTarget = e.relatedTarget as Node | null;\n const clickedWithin = this._clickingWithin;\n const targetingChild = relatedTarget ? this.contains(relatedTarget) : false;\n\n // Reset clicking flag if we clicked within\n if (clickedWithin) {\n this._clickingWithin = false;\n // If focus is staying within, don't exit edit mode\n if (targetingChild) {\n return;\n }\n }\n\n // If tabbing to a button within, allow it\n if (!clickedWithin && targetingChild) {\n return;\n }\n\n // Default behavior: auto-save or auto-cancel\n if (this._escaping) {\n return;\n }\n\n if (this._canSave) {\n this._handleSave(true);\n } else {\n this._handleCancel(true);\n }\n\n // Dispatch blur event\n this._emitEvent('blur', this._initialValue);\n }\n\n /**\n * Handle keyboard events\n */\n private _handleKeyDown(e: KeyboardEvent) {\n switch (e.key) {\n case 'Escape':\n this._escaping = true;\n this._inputElement?.blur();\n this._handleCancel(false);\n this._escaping = false;\n break;\n case 'Enter':\n this._escaping = true;\n this._inputElement?.blur();\n if (this._canSave) {\n this._handleSave(false);\n }\n this._escaping = false;\n break;\n case 'Tab':\n // When tabbing from input, check if we're going outside the component\n // If shift+tab, we're going backwards (let it handle naturally)\n // If tab forward and no changes, we should exit edit mode\n if (!e.shiftKey && !this._hasValueChanged) {\n // Exit edit mode when tabbing out without changes\n this._handleCancel(true);\n }\n break;\n default:\n break;\n }\n }\n\n /**\n * Handle toolbar mousedown to track button clicks\n * Uses composedPath() to properly handle Shadow DOM boundaries\n */\n private _handleToolbarMouseDown(e: MouseEvent) {\n const path = e.composedPath();\n const foundButton = path.find(\n (el) =>\n el instanceof HTMLElement &&\n (el.tagName === 'BUTTON' || el.tagName === 'CDS-ICON-BUTTON')\n ) as HTMLElement | undefined;\n\n if (foundButton) {\n this._clickingWithin = true;\n\n // For disabled buttons, prevent default to stop blur\n const isDisabled =\n foundButton.hasAttribute('disabled') ||\n foundButton.getAttribute('aria-disabled') === 'true';\n if (isDisabled) {\n e.preventDefault();\n }\n }\n }\n\n /**\n * Handle keydown on save button to exit edit mode on Tab\n */\n private _handleSaveButtonKeyDown(e: KeyboardEvent) {\n if (e.key === 'Tab' && !e.shiftKey) {\n // Tab forward from save button - exit edit mode\n this._focused = false;\n this._inputElement?.blur();\n }\n }\n\n /**\n * Handle clicks outside the component\n */\n @HostListener('document:click')\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20452\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleDocumentClick = (e: MouseEvent) => {\n // Only handle if we're in focused mode\n if (!this._focused) {\n return;\n }\n\n // Check if click is outside the component\n const path = e.composedPath();\n const clickedInside = path.includes(this);\n\n if (!clickedInside) {\n // Click was outside - exit edit mode\n if (this._canSave) {\n this._handleSave(true);\n } else {\n this._handleCancel(true);\n }\n }\n };\n\n /**\n * Initialize component\n */\n connectedCallback() {\n super.connectedCallback();\n const value = this.value || this.defaultValue;\n this._internalValue = value;\n this._initialValue = value;\n }\n\n /**\n * Cleanup component state when removed from DOM\n */\n disconnectedCallback() {\n super.disconnectedCallback();\n this._escaping = false;\n this._clickingWithin = false;\n this._focused = false;\n }\n\n /**\n * Render the input element\n */\n private _renderInput() {\n const inputClasses = {\n [`${blockClass}__text-input`]: true,\n [`${prefix}--text-input`]: true,\n [`${prefix}--text-input--${this.size}`]: true,\n };\n\n const inputElement = html`\n <input\n id=${this.id}\n class=${classMap(inputClasses)}\n type=\"text\"\n part=\"input\"\n placeholder=${this.placeholder}\n .value=${this._internalValue}\n @input=${this._handleChange}\n @focus=${this._handleFocus}\n @keydown=${this._handleKeyDown}\n aria-label=${this.labelText}\n aria-invalid=${this.invalid ? 'true' : 'false'}\n ?readonly=${this.readOnly} />\n `;\n\n if (this.readOnly) {\n return html`\n <cds-tooltip\n align=${this.toggleTipAlignment}\n class=\"${blockClass}__toggletip-wrapper\">\n ${inputElement}\n <cds-tooltip-content\n >${this.readOnlyToggleTipText}</cds-tooltip-content\n >\n </cds-tooltip>\n `;\n }\n\n return inputElement;\n }\n\n /**\n * Render action buttons\n */\n private _renderActions() {\n if (this.readOnly) {\n return html`\n <cds-icon-button\n class=\"${blockClass}__btn-readonly\"\n size=${this.size}\n align=${this.tooltipAlignment}\n kind=\"ghost\"\n @click=${this._handleFocus}>\n ${iconLoader(EditOff16, { slot: 'icon' })}\n <span slot=\"tooltip-content\">${this.readOnlyLabel}</span>\n </cds-icon-button>\n `;\n }\n\n if (this._focused) {\n return html`\n <cds-icon-button\n class=\"${blockClass}__btn ${blockClass}__btn-cancel\"\n size=${this.size}\n align=${this.tooltipAlignment}\n kind=\"ghost\"\n ?disabled=${!this._canCancel}\n @click=${() => this._handleCancel(false)}>\n ${iconLoader(Close16, { slot: 'icon' })}\n <span slot=\"tooltip-content\">${this.cancelLabel}</span>\n </cds-icon-button>\n <cds-icon-button\n class=\"${blockClass}__btn ${blockClass}__btn-save\"\n size=${this.size}\n align=${this.tooltipAlignment}\n kind=\"ghost\"\n ?disabled=${!this._canSave}\n @click=${() => this._handleSave(false)}\n @keydown=${this._handleSaveButtonKeyDown}>\n ${iconLoader(Checkmark16, { slot: 'icon' })}\n <span slot=\"tooltip-content\">${this.saveLabel}</span>\n </cds-icon-button>\n `;\n }\n\n const editBtnClasses = {\n [`${blockClass}__btn`]: true,\n [`${blockClass}__btn-edit`]: true,\n [`${blockClass}__btn-edit--always-visible`]: this.editAlwaysVisible,\n };\n\n return html`\n <cds-icon-button\n class=${classMap(editBtnClasses)}\n size=${this.size}\n align=${this.tooltipAlignment}\n kind=\"ghost\"\n @click=${this._handleFocus}>\n ${iconLoader(Edit16, { slot: 'icon' })}\n <span slot=\"tooltip-content\">${this.editLabel}</span>\n </cds-icon-button>\n `;\n }\n\n render() {\n const containerClasses = {\n [`${blockClass}__container`]: true,\n [`${blockClass}--${this.size}`]: true,\n [`${blockClass}--focused`]: this._focused,\n [`${blockClass}--invalid`]: this.invalid,\n [`${blockClass}--inherit-type`]: this.inheritTypography,\n [`${blockClass}--readonly`]: this.readOnly,\n };\n\n return html`\n <div class=${classMap(containerClasses)} @blur=${this._handleBlur}>\n ${this._renderInput()}\n <div\n class=\"${blockClass}__toolbar\"\n part=\"actions\"\n @mousedown=${this._handleToolbarMouseDown}>\n ${this.invalid\n ? iconLoader(WarningFilled16, {\n class: `${blockClass}__warning-icon`,\n })\n : ''}\n ${this._renderActions()}\n </div>\n </div>\n ${this.invalid\n ? html`<p class=\"${blockClass}__warning-text\" part=\"invalid-text\">\n ${this.invalidText}\n </p>`\n : ''}\n `;\n }\n\n static styles = styles;\n}\n\nexport default CDSEditInPlace;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAM,aAAa;;;;;;;;;;;;;AAiBnB,IAAA,iBAAA,MACM,uBAAuB,kBAAkB,UAAU,CAAC,CAAC;;;qBAK3C;2BAMM;mBAMR;YAME;2BAMM;iBAMV;qBAMI;mBAMF;qBAME;kBAMH;uBAMK;+BAUQ;mBAMZ;cAMY;4BAMe;0BAMF;eAM7B;sBAMO;kBAMI;wBAMM;uBAMD;qBAMF;mBAKF;yBAKM;+BA0OM,MAAkB;GAEhD,IAAI,CAAC,KAAK,UACR;GAOF,IAAI,CAHS,EAAE,aACU,CAAC,CAAC,SAAS,IAEnB,GAEf,IAAI,KAAK,UACP,KAAK,YAAY,IAAI;QAErB,KAAK,cAAc,IAAI;EAG7B;;;;;CAjPA,IAAY,mBAA4B;EACtC,OAAO,KAAK,eAAe,KAAK,MAAM,KAAK,cAAc,KAAK;CAChE;;;;CAKA,IAAY,WAAoB;EAC9B,OAAO,KAAK,oBAAoB,CAAC,KAAK;CACxC;;;;CAKA,IAAY,aAAsB;EAChC,OAAO,KAAK;CACd;;;;CAKA,cAAsB,GAAU;EAC9B,MAAM,QAAQ,EAAE;EAChB,IAAI,CAAC,KAAK,aACR,KAAK,cAAc;EAGrB,KAAK,iBAAiB,MAAM;EAC5B,KAAK,WAAW,UAAU,KAAK,cAAc;CAC/C;;;;CAKA,aAAqB,GAAgB;EACnC,MAAM,gBAAgB,GAAG;EAGzB,IAFe,GAAG,WAGL,KAAK,iBAChB,CAAC,KAAK,YACN,CAAC,KAAK,YACN,CAAC,KAAK,SAAS,iBAAiB,IAAI,GAEpC,4BAA4B;GAC1B,KAAK,eAAe,MAAM;EAC5B,CAAC;EAGH,KAAK,WAAW;CAClB;CAEA,WAA8B,mBAAyC;EACrE,IAAI,kBAAkB,IAAI,OAAO,GAAG;GAClC,MAAM,QAAQ,KAAK,SAAS,KAAK;GACjC,KAAK,iBAAiB;GACtB,KAAK,gBAAgB;GACrB,KAAK,cAAc;EACrB;CACF;CAEA,WAAmB,MAAc,OAAe;EAC9C,KAAK,cACH,IAAI,YAAY,qBAA2B,QAAQ;GACjD,SAAS;GACT,UAAU;GACV,QAAQ,EAAE,MAAM;EAClB,CAAC,CACH;CACF;;;;CAKA,YAAoB,eAAe,OAAO;EACxC,KAAK,gBAAgB,KAAK;EAC1B,KAAK,cAAc;EAEnB,KAAK,WAAW,QAAQ,KAAK,cAAc;EAE3C,IAAI,cACF,KAAK,WAAW;OAEhB,4BAA4B;GAC1B,KAAK,eAAe,MAAM;EAC5B,CAAC;CAEL;;;;CAKA,cAAsB,eAAe,OAAO;EAC1C,KAAK,cAAc;EACnB,KAAK,iBAAiB,KAAK;EAE3B,KAAK,WAAW,UAAU,KAAK,aAAa;EAE5C,IAAI,cACF,KAAK,WAAW;OAEhB,4BAA4B;GAC1B,IAAI,KAAK,eAAe;IACtB,KAAK,cAAc,MAAM;IACzB,MAAM,SAAS,KAAK,cAAc,MAAM;IACxC,KAAK,cAAc,kBAAkB,QAAQ,MAAM;GACrD;EACF,CAAC;CAEL;;;;CAKA,YAAoB,GAAe;EACjC,MAAM,gBAAgB,EAAE;EACxB,MAAM,gBAAgB,KAAK;EAC3B,MAAM,iBAAiB,gBAAgB,KAAK,SAAS,aAAa,IAAI;EAGtE,IAAI,eAAe;GACjB,KAAK,kBAAkB;GAEvB,IAAI,gBACF;EAEJ;EAGA,IAAI,CAAC,iBAAiB,gBACpB;EAIF,IAAI,KAAK,WACP;EAGF,IAAI,KAAK,UACP,KAAK,YAAY,IAAI;OAErB,KAAK,cAAc,IAAI;EAIzB,KAAK,WAAW,QAAQ,KAAK,aAAa;CAC5C;;;;CAKA,eAAuB,GAAkB;EACvC,QAAQ,EAAE,KAAV;GACE,KAAK;IACH,KAAK,YAAY;IACjB,KAAK,eAAe,KAAK;IACzB,KAAK,cAAc,KAAK;IACxB,KAAK,YAAY;IACjB;GACF,KAAK;IACH,KAAK,YAAY;IACjB,KAAK,eAAe,KAAK;IACzB,IAAI,KAAK,UACP,KAAK,YAAY,KAAK;IAExB,KAAK,YAAY;IACjB;GACF,KAAK;IAIH,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,kBAEvB,KAAK,cAAc,IAAI;IAEzB;GACF,SACE;EACJ;CACF;;;;;CAMA,wBAAgC,GAAe;EAE7C,MAAM,cADO,EAAE,aACQ,CAAC,CAAC,MACtB,OACC,cAAc,gBACb,GAAG,YAAY,YAAY,GAAG,YAAY,kBAC/C;EAEA,IAAI,aAAa;GACf,KAAK,kBAAkB;GAMvB,IAFE,YAAY,aAAa,UAAU,KACnC,YAAY,aAAa,eAAe,MAAM,QAE9C,EAAE,eAAe;EAErB;CACF;;;;CAKA,yBAAiC,GAAkB;EACjD,IAAI,EAAE,QAAQ,SAAS,CAAC,EAAE,UAAU;GAElC,KAAK,WAAW;GAChB,KAAK,eAAe,KAAK;EAC3B;CACF;;;;CA+BA,oBAAoB;EAClB,MAAM,kBAAkB;EACxB,MAAM,QAAQ,KAAK,SAAS,KAAK;EACjC,KAAK,iBAAiB;EACtB,KAAK,gBAAgB;CACvB;;;;CAKA,uBAAuB;EACrB,MAAM,qBAAqB;EAC3B,KAAK,YAAY;EACjB,KAAK,kBAAkB;EACvB,KAAK,WAAW;CAClB;;;;CAKA,eAAuB;EACrB,MAAM,eAAe;IAClB,GAAG,WAAW,gBAAgB;IAC9B,oBAA0B;IAC1B,oBAA0B,KAAK,SAAS;EAC3C;EAEA,MAAM,eAAe,IAAI;;aAEhB,KAAK,GAAG;gBACL,SAAS,YAAY,EAAE;;;sBAGjB,KAAK,YAAY;iBACtB,KAAK,eAAe;iBACpB,KAAK,cAAc;iBACnB,KAAK,aAAa;mBAChB,KAAK,eAAe;qBAClB,KAAK,UAAU;uBACb,KAAK,UAAU,SAAS,QAAQ;oBACnC,KAAK,SAAS;;EAG9B,IAAI,KAAK,UACP,OAAO,IAAI;;kBAEC,KAAK,mBAAmB;mBACvB,WAAW;YAClB,aAAa;;eAEV,KAAK,sBAAsB;;;;EAMtC,OAAO;CACT;;;;CAKA,iBAAyB;EACvB,IAAI,KAAK,UACP,OAAO,IAAI;;mBAEE,WAAW;iBACb,KAAK,KAAK;kBACT,KAAK,iBAAiB;;mBAErB,KAAK,aAAa;YACzB,WAAW,WAAW,EAAE,MAAM,OAAO,CAAC,EAAE;yCACX,KAAK,cAAc;;;EAKxD,IAAI,KAAK,UACP,OAAO,IAAI;;mBAEE,WAAW,QAAQ,WAAW;iBAChC,KAAK,KAAK;kBACT,KAAK,iBAAiB;;sBAElB,CAAC,KAAK,WAAW;yBACd,KAAK,cAAc,KAAK,EAAE;YACvC,WAAWA,OAAS,EAAE,MAAM,OAAO,CAAC,EAAE;yCACT,KAAK,YAAY;;;mBAGvC,WAAW,QAAQ,WAAW;iBAChC,KAAK,KAAK;kBACT,KAAK,iBAAiB;;sBAElB,CAAC,KAAK,SAAS;yBACZ,KAAK,YAAY,KAAK,EAAE;qBAC5B,KAAK,yBAAyB;YACvC,WAAW,aAAa,EAAE,MAAM,OAAO,CAAC,EAAE;yCACb,KAAK,UAAU;;;EAWpD,OAAO,IAAI;;gBAEC,SAAS;IAPlB,GAAG,WAAW,SAAS;IACvB,GAAG,WAAW,cAAc;IAC5B,GAAG,WAAW,8BAA8B,KAAK;EAKlB,CAAC,EAAE;eAC1B,KAAK,KAAK;gBACT,KAAK,iBAAiB;;iBAErB,KAAK,aAAa;UACzB,WAAW,QAAQ,EAAE,MAAM,OAAO,CAAC,EAAE;uCACR,KAAK,UAAU;;;CAGpD;CAEA,SAAS;EAUP,OAAO,IAAI;mBACI,SAAS;IATrB,GAAG,WAAW,eAAe;IAC7B,GAAG,WAAW,IAAI,KAAK,SAAS;IAChC,GAAG,WAAW,aAAa,KAAK;IAChC,GAAG,WAAW,aAAa,KAAK;IAChC,GAAG,WAAW,kBAAkB,KAAK;IACrC,GAAG,WAAW,cAAc,KAAK;EAIG,CAAC,EAAE,SAAS,KAAK,YAAY;UAC9D,KAAK,aAAa,EAAE;;mBAEX,WAAW;;uBAEP,KAAK,wBAAwB;YACxC,KAAK,UACH,WAAW,iBAAiB,EAC1B,OAAO,GAAG,WAAW,gBACvB,CAAC,IACD,GAAG;YACL,KAAK,eAAe,EAAE;;;QAG1B,KAAK,UACH,IAAI,aAAa,WAAW;cACxB,KAAK,YAAY;kBAErB,GAAG;;CAEX;;gBAEgBC;;AAClB;YA1iBG,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAgB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,eAAA,KAAA,CAAA;YAMnE,SAAS;CAAE,MAAM;CAAS,WAAW;CAAuB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,qBAAA,KAAA,CAAA;YAM3E,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAc,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,aAAA,KAAA,CAAA;YAMjE,SAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,MAAA,KAAA,CAAA;YAMxC,SAAS;CAAE,MAAM;CAAS,WAAW;CAAsB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,qBAAA,KAAA,CAAA;YAM1E,SAAS;CAAE,MAAM;CAAS,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,WAAA,KAAA,CAAA;YAMzC,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAgB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,eAAA,KAAA,CAAA;YAMnE,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAc,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,aAAA,KAAA,CAAA;YAMjE,SAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,eAAA,KAAA,CAAA;YAMxC,SAAS;CAAE,MAAM;CAAS,WAAW;CAAa,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,YAAA,KAAA,CAAA;YAMjE,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAmB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,iBAAA,KAAA,CAAA;YAMtE,SAAS;CACR,MAAM;CACN,WAAW;CACX,SAAS;AACX,CAAC,CAAA,GAAA,eAAA,WAAA,yBAAA,KAAA,CAAA;YAMA,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAc,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,aAAA,KAAA,CAAA;YAMjE,SAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,QAAA,KAAA,CAAA;YAMxC,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAuB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,sBAAA,KAAA,CAAA;YAM1E,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAqB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,oBAAA,KAAA,CAAA;YAMxE,SAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,SAAA,KAAA,CAAA;YAMxC,SAAS;CAAE,MAAM;CAAQ,WAAW;CAAiB,SAAS;AAAK,CAAC,CAAA,GAAA,eAAA,WAAA,gBAAA,KAAA,CAAA;YAMpE,MAAM,CAAA,GAAA,eAAA,WAAA,YAAA,KAAA,CAAA;YAMN,MAAM,CAAA,GAAA,eAAA,WAAA,kBAAA,KAAA,CAAA;YAMN,MAAM,CAAA,GAAA,eAAA,WAAA,iBAAA,KAAA,CAAA;YAMN,MAAM,CAAA,GAAA,eAAA,WAAA,eAAA,KAAA,CAAA;YAgBN,MAAM,OAAO,CAAA,GAAA,eAAA,WAAA,iBAAA,KAAA,CAAA;YAkOb,aAAa,gBAAgB,CAAA,GAAA,eAAA,WAAA,wBAAA,KAAA,CAAA;6BAzX/BC,cAAc,mBAAyB,CAAA,GAAA,cAAA;AAijBxC,IAAA,wBAAe"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { css } from "lit";
|
|
9
|
+
//#region src/components/edit-in-place/edit-in-place.scss?lit
|
|
10
|
+
var edit_in_place_default = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;border:0;margin:0;font:inherit;font-feature-settings:\"liga\" 1;font-size:100%;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}:root{color-scheme:var(--cds-color-scheme,light)}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-background,#fff);color:var(--cds-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{font-weight:400;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);line-height:var(--cds-heading-06-line-height,1.199);letter-spacing:var(--cds-heading-06-letter-spacing,0)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);line-height:var(--cds-heading-05-line-height,1.25);letter-spacing:var(--cds-heading-05-letter-spacing,0)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);line-height:var(--cds-heading-04-line-height,1.28572);letter-spacing:var(--cds-heading-04-letter-spacing,0)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);line-height:var(--cds-heading-03-line-height,1.4);letter-spacing:var(--cds-heading-03-letter-spacing,0)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);line-height:var(--cds-heading-02-line-height,1.5);letter-spacing:var(--cds-heading-02-letter-spacing,0)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);line-height:var(--cds-heading-01-line-height,1.42857);letter-spacing:var(--cds-heading-01-letter-spacing,.16px)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);line-height:var(--cds-body-02-line-height,1.5);letter-spacing:var(--cds-body-02-letter-spacing,0)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds--assistive-text,.cds--visually-hidden{position:absolute;overflow:hidden;padding:0;border:0;margin:-1px;block-size:1px;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.cds--edit-in-place,:host(cds-edit-in-place) .cds--edit-in-place__container{--cds--edit-in-place--size:2rem;display:flex;align-items:center;background:transparent;cursor:pointer}.cds--edit-in-place--sm{--cds--edit-in-place--size:2.5rem}.cds--edit-in-place--md{--cds--edit-in-place--size:3rem}.cds--edit-in-place--lg{--cds--edit-in-place--size:4rem}.cds--edit-in-place__toggletip-wrapper,.cds--edit-in-place__toggletip-wrapper .cds--toggletip-button{display:block;inline-size:100%}.cds--edit-in-place:hover,:host(cds-edit-in-place) .cds--edit-in-place__container:hover{background:var(--cds-field-01,#f4f4f4)}.cds--edit-in-place:hover .cds--edit-in-place__btn-edit,.cds--edit-in-place__btn-edit.cds--edit-in-place__btn-edit--always-visible,:host(cds-edit-in-place) .cds--edit-in-place__container:hover .cds--edit-in-place__btn-edit{visibility:visible}.cds--edit-in-place__btn-edit{visibility:hidden}.cds--edit-in-place--invalid{border:2px solid var(--cds-support-error,#da1e28)}.cds--edit-in-place--focused{background:var(--cds-field-01,#f4f4f4)}.cds--edit-in-place--focused:has(.cds--edit-in-place__text-input:focus){outline:2px solid var(--cds-focus,#0f62fe)}.cds--edit-in-place--invalid.cds--edit-in-place--focused{border:none}.cds--edit-in-place__text-input{flex:1}.cds--edit-in-place--inherit-type .cds--edit-in-place__text-input{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit}.cds--edit-in-place__text-input-label{display:none}.cds--edit-in-place__warning-icon{margin:auto .5rem;color:var(--cds-support-error,#da1e28);inline-size:1rem}.cds--edit-in-place__warning-text{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px);color:var(--cds-support-error,#da1e28);margin-block-start:.5rem}.cds--edit-in-place__text-input.cds--text-input{border:none;background:transparent;cursor:pointer;outline:none}.cds--edit-in-place:not(.cds--edit-in-place--focused) .cds--edit-in-place__text-input.cds--text-input:active,.cds--edit-in-place:not(.cds--edit-in-place--focused) .cds--edit-in-place__text-input.cds--text-input:focus,:host(cds-edit-in-place) .cds--edit-in-place__container:not(.cds--edit-in-place--focused) .cds--edit-in-place__text-input.cds--text-input:active,:host(cds-edit-in-place) .cds--edit-in-place__container:not(.cds--edit-in-place--focused) .cds--edit-in-place__text-input.cds--text-input:focus{outline:none}.cds--edit-in-place__toolbar{--toolbar-width:var(--cds--edit-in-place--size);--toolbar-width-focussed:calc(2 * var(--cds--edit-in-place--size));display:inline-flex;align-self:stretch;inline-size:var(--toolbar-width)}.cds--edit-in-place__toolbar .cds--btn.cds--btn--icon-only:not(cds-icon-button){padding:0;min-block-size:unset;block-size:var(--cds--edit-in-place--size);inline-size:var(--cds--edit-in-place--size)}.cds--edit-in-place__toolbar cds-icon-button::part(button){padding:.25rem}.cds--edit-in-place--invalid .cds--edit-in-place__toolbar{--toolbar-width:calc(2rem + var(--cds--edit-in-place--size));--toolbar-width-focussed:calc(2rem + 2 * var(--cds--edit-in-place--size))}@keyframes edit-in-place-slide-in{0%{overflow:hidden;inline-size:var(--toolbar-width)}99%{overflow:hidden;inline-size:var(--toolbar-width-focussed)}to{overflow:visible;inline-size:var(--toolbar-width-focussed)}}.cds--edit-in-place--focused:not(.cds--edit-in-place--readonly) .cds--edit-in-place__toolbar{overflow:initial;animation:edit-in-place-slide-in .15s cubic-bezier(0,0,.38,.9);inline-size:var(--toolbar-width-focussed)}:host(cds-edit-in-place){display:block}:host(cds-edit-in-place) .cds--edit-in-place__container{display:flex;align-items:center;background:transparent;container-name:edit-in-place;container-type:inline-size;cursor:pointer;padding-inline-start:1rem}:host(cds-edit-in-place) .cds--edit-in-place__container.cds--edit-in-place--focused,:host(cds-edit-in-place) .cds--edit-in-place__container:hover{background:var(--cds-field-01,#f4f4f4)}:host(cds-edit-in-place) .cds--edit-in-place__container.cds--edit-in-place--focused{outline:2px solid var(--cds-focus,#0f62fe);outline-offset:0}:host(cds-edit-in-place) .cds--edit-in-place__container:has(.cds--edit-in-place__btn:focus-within){outline:none}:host(cds-edit-in-place) .cds--edit-in-place__container.cds--edit-in-place--invalid{border:2px solid var(--cds-support-error,#da1e28)}:host(cds-edit-in-place) .cds--edit-in-place__container.cds--edit-in-place--invalid.cds--edit-in-place--focused{border:none}:host(cds-edit-in-place) .cds--edit-in-place__text-input{outline:none}:host(cds-edit-in-place) .cds--edit-in-place__text-input:focus{outline:none}:host(cds-edit-in-place) .cds--edit-in-place__btn-edit{visibility:hidden}:host(cds-edit-in-place) .cds--edit-in-place__btn-edit.cds--edit-in-place__btn-edit--always-visible{visibility:visible}:host(cds-edit-in-place) .cds--edit-in-place__container:hover .cds--edit-in-place__btn-edit{visibility:visible}:host(cds-edit-in-place) .cds--edit-in-place__toolbar{justify-content:end}:host(cds-edit-in-place) .cds--edit-in-place__toolbar cds-icon-button{display:flex;align-items:stretch;padding:0;block-size:100%;min-block-size:unset}:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-cancel::part(button),:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-cancel::part(button):hover,:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-save::part(button),:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-save::part(button):hover{border:transparent}:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-cancel::part(button):focus,:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-save::part(button):focus{border:transparent;outline:2px solid var(--cds-focus,#0f62fe);outline-offset:-2px}:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-cancel::part(button):disabled,:host(cds-edit-in-place) .cds--edit-in-place__toolbar .cds--edit-in-place__btn-save::part(button):disabled{border:transparent;opacity:.5}:host(cds-edit-in-place) .cds--edit-in-place__toggletip-wrapper{display:flex;flex:1}:host(cds-edit-in-place) .cds--edit-in-place__toggletip-wrapper button[slot=tooltip-trigger]{all:unset;display:flex;flex:1;cursor:pointer}"]);
|
|
11
|
+
//#endregion
|
|
12
|
+
export { edit_in_place_default as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=edit-in-place.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-in-place.scss.js","names":[],"sources":["../../../src/components/edit-in-place/edit-in-place.scss?lit"],"sourcesContent":["/*\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n$css--plex: true !default;\n\n@use '@carbon/styles/scss/reset';\n@use '@carbon/styles/scss/config' as *;\n@use '@carbon/styles/scss/motion' as *;\n@use '@carbon/styles/scss/spacing' as *;\n@use '@carbon/styles/scss/theme' as *;\n@use '@carbon/styles/scss/utilities/convert' as *;\n@use '@carbon/styles/scss/utilities' as *;\n@use '@carbon/styles/scss/components/edit-in-place' as edit-in-place-styles;\n\n@include edit-in-place-styles.edit-in-place;\n\n$block-class: #{$prefix}--edit-in-place;\n\n:host(#{$prefix}-edit-in-place) {\n display: block;\n\n .#{$block-class}__container {\n @extend .#{$block-class} !optional;\n\n display: flex;\n align-items: center;\n background: transparent;\n container-name: edit-in-place;\n container-type: inline-size;\n cursor: pointer;\n padding-inline-start: $spacing-05;\n\n &:hover,\n &.#{$block-class}--focused {\n background: $field-01;\n }\n\n &.#{$block-class}--focused {\n outline: 2px solid $focus;\n outline-offset: 0;\n }\n\n &:has(.#{$block-class}__btn:focus-within) {\n outline: none;\n }\n\n &.#{$block-class}--invalid {\n border: 2px solid $support-error;\n }\n\n &.#{$block-class}--invalid.#{$block-class}--focused {\n border: none;\n }\n }\n\n .#{$block-class}__text-input {\n outline: none;\n\n &:focus {\n outline: none;\n }\n }\n\n .#{$block-class}__btn-edit {\n visibility: hidden;\n\n &.#{$block-class}__btn-edit--always-visible {\n visibility: visible;\n }\n }\n\n .#{$block-class}__container:hover .#{$block-class}__btn-edit {\n visibility: visible;\n }\n\n .#{$block-class}__toolbar {\n justify-content: end;\n }\n\n .#{$block-class}__toolbar #{$prefix}-icon-button {\n display: flex;\n align-items: stretch;\n padding: 0;\n block-size: 100%;\n min-block-size: unset;\n }\n\n .#{$block-class}__toolbar .#{$block-class}__btn-save::part(button),\n .#{$block-class}__toolbar .#{$block-class}__btn-cancel::part(button),\n .#{$block-class}__toolbar .#{$block-class}__btn-save::part(button):hover,\n .#{$block-class}__toolbar .#{$block-class}__btn-cancel::part(button):hover {\n border: none;\n border-color: transparent;\n }\n\n .#{$block-class}__toolbar .#{$block-class}__btn-save::part(button):focus,\n .#{$block-class}__toolbar .#{$block-class}__btn-cancel::part(button):focus {\n border: none;\n border-color: transparent;\n outline: 2px solid $focus;\n outline-offset: -2px;\n }\n\n .#{$block-class}__toolbar .#{$block-class}__btn-save::part(button):disabled,\n .#{$block-class}__toolbar\n .#{$block-class}__btn-cancel::part(button):disabled {\n border: none;\n border-color: transparent;\n opacity: 0.5;\n }\n\n .#{$block-class}__toggletip-wrapper {\n display: flex;\n flex: 1;\n\n button[slot='tooltip-trigger'] {\n all: unset;\n display: flex;\n flex: 1;\n cursor: pointer;\n }\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/edit-in-place/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import "./edit-in-place.js";
|
|
9
|
+
//#region src/components/edit-in-place/index.ts
|
|
10
|
+
/**
|
|
11
|
+
* @license
|
|
12
|
+
*
|
|
13
|
+
* Copyright IBM Corp. 2026
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
//#endregion
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/edit-in-place/index.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport './edit-in-place';\n"],"mappings":""}
|