@vonage/vivid 5.3.0 → 5.4.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/accordion-item/definition.js +1 -1
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +2 -2
- package/badge/definition.js +1 -1
- package/banner/definition.js +1 -1
- package/bundled/calendar-picker.template.cjs +7 -7
- package/bundled/calendar-picker.template.js +101 -101
- package/bundled/definition11.cjs +13 -13
- package/bundled/definition11.js +202 -50
- package/bundled/definition19.cjs +24 -25
- package/bundled/definition19.js +152 -164
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +19 -19
- package/bundled/definition9.cjs +5 -5
- package/bundled/definition9.js +394 -392
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +82 -102
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +18 -14
- package/bundled/vivid-element.cjs +5 -1
- package/bundled/vivid-element.js +401 -358
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +14 -14
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/color-picker/definition.cjs +1 -1
- package/color-picker/definition.js +1 -1
- package/combobox/definition.cjs +7 -27
- package/combobox/definition.js +8 -28
- package/combobox/index.cjs +6 -6
- package/combobox/index.js +57 -71
- package/custom-elements.json +305 -2
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/dialog/definition.cjs +2 -2
- package/dialog/definition.js +2 -2
- package/dialog/index.cjs +7 -7
- package/dialog/index.js +6 -6
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/fab/definition.js +1 -1
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/index.cjs +3 -4
- package/index.js +2 -3
- package/lib/accordion/accordion.d.ts +1 -1
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/audio-player/audio-player.d.ts +1 -1
- package/lib/combobox/combobox.d.ts +1 -0
- package/lib/combobox/combobox.options.d.ts +1 -1
- package/lib/divider/divider.d.ts +1 -1
- package/lib/menu-item/menu-item-role.d.ts +1 -1
- package/lib/popup/popup.d.ts +1 -1
- package/lib/searchable-select/locale.d.ts +4 -0
- package/lib/searchable-select/searchable-select.d.ts +3 -0
- package/lib/select/select.d.ts +3 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +2 -2
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -1
- package/locales/de-DE.cjs +4 -0
- package/locales/de-DE.js +4 -0
- package/locales/en-GB.cjs +4 -0
- package/locales/en-GB.js +4 -0
- package/locales/en-US.cjs +4 -0
- package/locales/en-US.js +4 -0
- package/locales/ja-JP.cjs +4 -0
- package/locales/ja-JP.js +4 -0
- package/locales/zh-CN.cjs +4 -0
- package/locales/zh-CN.js +4 -0
- package/menu/definition.cjs +4 -4
- package/menu/definition.js +4 -4
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.js +1 -1
- package/option/definition.cjs +6 -77
- package/option/definition.js +3 -78
- package/package.json +31 -5
- package/popup/definition.cjs +2 -2
- package/popup/definition.js +2 -2
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +2 -3
- package/rich-text-editor/definition.js +1 -2
- package/rich-text-editor/index.cjs +27 -27
- package/rich-text-editor/index.js +1208 -1198
- package/searchable-select/definition.cjs +103 -11
- package/searchable-select/definition.js +103 -11
- package/searchable-select/index.cjs +81 -69
- package/searchable-select/index.js +359 -273
- package/select/definition.cjs +24 -41
- package/select/definition.js +24 -41
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/aria/aria-mixin.d.ts +1 -1
- package/shared/foundation/listbox/listbox.d.ts +4 -0
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/split-button/definition.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/tab/definition.js +1 -1
- package/tag/definition.js +1 -1
- package/text-field/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/toggletip/definition.cjs +1 -1
- package/toggletip/definition.js +1 -1
- package/tooltip/definition.cjs +1 -1
- package/tooltip/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/calendar-picker.template.cjs +1 -1
- package/unbundled/calendar-picker.template.js +1 -1
- package/unbundled/definition.js +1 -1
- package/unbundled/definition2.js +1 -1
- package/unbundled/definition3.cjs +222 -141
- package/unbundled/definition3.js +220 -139
- package/unbundled/definition4.cjs +145 -235
- package/unbundled/definition4.js +143 -233
- package/unbundled/definition5.cjs +269 -27
- package/unbundled/definition5.js +267 -26
- package/unbundled/definition6.cjs +56 -0
- package/unbundled/definition6.js +52 -0
- package/unbundled/listbox.cjs +41 -63
- package/unbundled/listbox.js +39 -61
- package/unbundled/picker-field.template.cjs +1 -1
- package/unbundled/picker-field.template.js +1 -1
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +56 -16
- package/video-player/definition.js +56 -16
- package/video-player/index.cjs +36 -36
- package/video-player/index.js +2461 -2445
- package/vivid.api.json +285 -38
- package/bundled/option.cjs +0 -1
- package/bundled/option.js +0 -158
- package/unbundled/option.cjs +0 -217
- package/unbundled/option.js +0 -214
package/dialog/definition.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const icon_definition = require('../icon/definition.cjs');
|
|
6
6
|
const button_definition = require('../unbundled/definition.cjs');
|
|
7
|
-
const elevation_definition = require('../unbundled/
|
|
7
|
+
const elevation_definition = require('../unbundled/definition6.cjs');
|
|
8
8
|
const vividElement = require('../unbundled/vivid-element.cjs');
|
|
9
9
|
const fastElement = require('@microsoft/fast-element');
|
|
10
10
|
const index = require('../unbundled/index.cjs');
|
|
@@ -12,7 +12,7 @@ const delegatesAria = require('../unbundled/delegates-aria.cjs');
|
|
|
12
12
|
const localized = require('../unbundled/localized.cjs');
|
|
13
13
|
const fastWebUtilities = require('@microsoft/fast-web-utilities');
|
|
14
14
|
|
|
15
|
-
const styles = ".base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:\"\";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}";
|
|
15
|
+
const styles = ".base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-block-size:none;max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-block-size:fit-content;min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:\"\";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}";
|
|
16
16
|
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
18
18
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/dialog/definition.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VwcIconElement as Icon, iconDefinition } from '../icon/definition.js';
|
|
2
2
|
import { B as Button, b as buttonDefinition } from '../unbundled/definition.js';
|
|
3
|
-
import { E as Elevation, e as elevationDefinition } from '../unbundled/
|
|
3
|
+
import { E as Elevation, e as elevationDefinition } from '../unbundled/definition6.js';
|
|
4
4
|
import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
5
5
|
import { attr, observable, when, slotted, html } from '@microsoft/fast-element';
|
|
6
6
|
import { h as handleEscapeKeyAndStopPropogation } from '../unbundled/index.js';
|
|
@@ -8,7 +8,7 @@ import { D as DelegatesAria, d as delegateAria } from '../unbundled/delegates-ar
|
|
|
8
8
|
import { L as Localized } from '../unbundled/localized.js';
|
|
9
9
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
10
10
|
|
|
11
|
-
const styles = ".base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:\"\";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}";
|
|
11
|
+
const styles = ".base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-block-size:none;max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-block-size:fit-content;min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:\"\";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}";
|
|
12
12
|
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/dialog/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";const h=require("../bundled/definition2.cjs"),p=require("../bundled/definition3.cjs"),u=require("../bundled/definition4.cjs"),t=require("../bundled/vivid-element.cjs"),v=require("../bundled/index.cjs"),m=require("../bundled/delegates-aria.cjs"),y=require("../bundled/localized.cjs"),d=require("../bundled/when.cjs"),c=require("../bundled/slotted.cjs"),x=require("../bundled/class-names.cjs"),w='.base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:"";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}';var k=Object.defineProperty,l=(i,o,s,r)=>{for(var e=void 0,n=i.length-1,b;n>=0;n--)(b=i[n])&&(e=b(o,s,e)||e);return e&&k(o,s,e),e};class a extends y.Localized(m.DelegatesAria(t.VividElement)){constructor(){super(...arguments),this.open=!1,this.fullWidthBody=!1,this.dismissButtonAriaLabel=null,this.noLightDismiss=!1,this.noDismissOnEsc=!1,this.noDismissButton=!1,this.nonDismissible=!1,this.modal=!1,this.scrollableBody=!1,this._openedAsModal=!1,this.#i=o=>{if(o.target!==this.#e||!this.#t("light-dismiss"))return;const s=this.#e.getBoundingClientRect();s.top<=o.clientY&&o.clientY<=s.top+s.height&&s.left<=o.clientX&&o.clientX<=s.left+s.width||this._handleCloseRequest()},this.#a=o=>{o.target.method==="dialog"&&(this.open=!1)}}modalChanged(o,s){this.open&&(this._openedAsModal=s,this.$fastController.isConnected&&(this.#s(),this.#l()))}set returnValue(o){this.#e&&(this.#e.returnValue=o)}get returnValue(){return this.#e?.returnValue}#o;get#e(){return this.#o||(this.#o=this.shadowRoot.querySelector("dialog")),this.#o}openChanged(o,s){o!==void 0&&(s?(this._openedAsModal=this._openedAsModal||this.modal,this.$fastController.isConnected&&this.#l(),this.$emit("open",void 0,{bubbles:!1})):(this._openedAsModal=!1,this.$fastController.isConnected&&this.#s(),this.$emit("close",this.returnValue,{bubbles:!1})))}get _showDismissButton(){return this.#t("dismiss-button")}#t(o){if(this.nonDismissible)return!1;switch(o){case"escape":return!this.noDismissOnEsc;case"dismiss-button":return!this.noDismissButton;case"light-dismiss":return!this.noLightDismiss}}#i;#a;_onKeyDown(o){return v.handleEscapeKeyAndStopPropogation(o)&&this._openedAsModal?(this.#t("escape")&&this._handleCloseRequest(),!1):!0}_handleCloseRequest(){this.$emit("cancel",void 0,{bubbles:!1,cancelable:!0})&&(this.open=!1)}close(){this.open=!1}show(){if(this._openedAsModal&&!this.modal)throw new DOMException("Failed to execute 'show' on 'Dialog': The dialog is already open as a modal dialog, and therefore cannot be opened as a non-modal dialog.","InvalidStateError");this.open=!0}showModal(){if(this.open&&!this._openedAsModal)throw new DOMException("Failed to execute 'showModal' on 'Dialog': The dialog is already open as a non-modal dialog, and therefore cannot be opened as a modal dialog.","InvalidStateError");this._openedAsModal=!0,this.open=!0}#s(){this.#e.close()}#l(){this._openedAsModal?this.#e.showModal():this.#e.show()}connectedCallback(){super.connectedCallback(),this.open&&this.#l(),this.#e.addEventListener("mousedown",this.#i),this.#e.addEventListener("submit",this.#a)}disconnectedCallback(){super.disconnectedCallback(),this.open&&this.#s(),this.#e.removeEventListener("mousedown",this.#i),this.#e.removeEventListener("submit",this.#a)}}l([t.attr({mode:"boolean"})],a.prototype,"open");l([t.attr],a.prototype,"icon");l([t.attr({attribute:"icon-placement"})],a.prototype,"iconPlacement");l([t.attr],a.prototype,"subtitle");l([t.attr],a.prototype,"headline");l([t.attr({attribute:"full-width-body",mode:"boolean"})],a.prototype,"fullWidthBody");l([t.attr({attribute:"dismiss-button-aria-label"})],a.prototype,"dismissButtonAriaLabel");l([t.attr({attribute:"no-light-dismiss",mode:"boolean"})],a.prototype,"noLightDismiss");l([t.attr({attribute:"no-dismiss-on-esc",mode:"boolean"})],a.prototype,"noDismissOnEsc");l([t.attr({attribute:"no-dismiss-button",mode:"boolean"})],a.prototype,"noDismissButton");l([t.attr({attribute:"non-dismissible",mode:"boolean"})],a.prototype,"nonDismissible");l([t.attr({mode:"boolean"})],a.prototype,"modal");l([t.attr({mode:"boolean",attribute:"scrollable-body"})],a.prototype,"scrollableBody");l([t.observable],a.prototype,"_openedAsModal");l([t.observable],a.prototype,"bodySlottedContent");l([t.observable],a.prototype,"footerSlottedContent");l([t.observable],a.prototype,"actionItemsSlottedContent");const $=({iconPlacement:i,bodySlottedContent:o,footerSlottedContent:s,actionItemsSlottedContent:r,_openedAsModal:e,scrollableBody:n})=>x.classNames("base",[`icon-placement-${i}`,!!i],["hide-body",!o?.length],["hide-footer",!(s?.length||r?.length)],["modal",e],["scrollable-body",!!n]);function D(i){return t.html`
|
|
1
|
+
"use strict";const h=require("../bundled/definition2.cjs"),p=require("../bundled/definition3.cjs"),u=require("../bundled/definition4.cjs"),t=require("../bundled/vivid-element.cjs"),v=require("../bundled/index.cjs"),m=require("../bundled/delegates-aria.cjs"),y=require("../bundled/localized.cjs"),d=require("../bundled/when.cjs"),c=require("../bundled/slotted.cjs"),x=require("../bundled/class-names.cjs"),w='.base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-block-size:none;max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-block-size:fit-content;min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:"";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}';var k=Object.defineProperty,l=(i,o,s,r)=>{for(var e=void 0,n=i.length-1,b;n>=0;n--)(b=i[n])&&(e=b(o,s,e)||e);return e&&k(o,s,e),e};class a extends y.Localized(m.DelegatesAria(t.VividElement)){constructor(){super(...arguments),this.open=!1,this.fullWidthBody=!1,this.dismissButtonAriaLabel=null,this.noLightDismiss=!1,this.noDismissOnEsc=!1,this.noDismissButton=!1,this.nonDismissible=!1,this.modal=!1,this.scrollableBody=!1,this._openedAsModal=!1,this.#i=o=>{if(o.target!==this.#e||!this.#t("light-dismiss"))return;const s=this.#e.getBoundingClientRect();s.top<=o.clientY&&o.clientY<=s.top+s.height&&s.left<=o.clientX&&o.clientX<=s.left+s.width||this._handleCloseRequest()},this.#a=o=>{o.target.method==="dialog"&&(this.open=!1)}}modalChanged(o,s){this.open&&(this._openedAsModal=s,this.$fastController.isConnected&&(this.#s(),this.#l()))}set returnValue(o){this.#e&&(this.#e.returnValue=o)}get returnValue(){return this.#e?.returnValue}#o;get#e(){return this.#o||(this.#o=this.shadowRoot.querySelector("dialog")),this.#o}openChanged(o,s){o!==void 0&&(s?(this._openedAsModal=this._openedAsModal||this.modal,this.$fastController.isConnected&&this.#l(),this.$emit("open",void 0,{bubbles:!1})):(this._openedAsModal=!1,this.$fastController.isConnected&&this.#s(),this.$emit("close",this.returnValue,{bubbles:!1})))}get _showDismissButton(){return this.#t("dismiss-button")}#t(o){if(this.nonDismissible)return!1;switch(o){case"escape":return!this.noDismissOnEsc;case"dismiss-button":return!this.noDismissButton;case"light-dismiss":return!this.noLightDismiss}}#i;#a;_onKeyDown(o){return v.handleEscapeKeyAndStopPropogation(o)&&this._openedAsModal?(this.#t("escape")&&this._handleCloseRequest(),!1):!0}_handleCloseRequest(){this.$emit("cancel",void 0,{bubbles:!1,cancelable:!0})&&(this.open=!1)}close(){this.open=!1}show(){if(this._openedAsModal&&!this.modal)throw new DOMException("Failed to execute 'show' on 'Dialog': The dialog is already open as a modal dialog, and therefore cannot be opened as a non-modal dialog.","InvalidStateError");this.open=!0}showModal(){if(this.open&&!this._openedAsModal)throw new DOMException("Failed to execute 'showModal' on 'Dialog': The dialog is already open as a non-modal dialog, and therefore cannot be opened as a modal dialog.","InvalidStateError");this._openedAsModal=!0,this.open=!0}#s(){this.#e.close()}#l(){this._openedAsModal?this.#e.showModal():this.#e.show()}connectedCallback(){super.connectedCallback(),this.open&&this.#l(),this.#e.addEventListener("mousedown",this.#i),this.#e.addEventListener("submit",this.#a)}disconnectedCallback(){super.disconnectedCallback(),this.open&&this.#s(),this.#e.removeEventListener("mousedown",this.#i),this.#e.removeEventListener("submit",this.#a)}}l([t.attr({mode:"boolean"})],a.prototype,"open");l([t.attr],a.prototype,"icon");l([t.attr({attribute:"icon-placement"})],a.prototype,"iconPlacement");l([t.attr],a.prototype,"subtitle");l([t.attr],a.prototype,"headline");l([t.attr({attribute:"full-width-body",mode:"boolean"})],a.prototype,"fullWidthBody");l([t.attr({attribute:"dismiss-button-aria-label"})],a.prototype,"dismissButtonAriaLabel");l([t.attr({attribute:"no-light-dismiss",mode:"boolean"})],a.prototype,"noLightDismiss");l([t.attr({attribute:"no-dismiss-on-esc",mode:"boolean"})],a.prototype,"noDismissOnEsc");l([t.attr({attribute:"no-dismiss-button",mode:"boolean"})],a.prototype,"noDismissButton");l([t.attr({attribute:"non-dismissible",mode:"boolean"})],a.prototype,"nonDismissible");l([t.attr({mode:"boolean"})],a.prototype,"modal");l([t.attr({mode:"boolean",attribute:"scrollable-body"})],a.prototype,"scrollableBody");l([t.observable],a.prototype,"_openedAsModal");l([t.observable],a.prototype,"bodySlottedContent");l([t.observable],a.prototype,"footerSlottedContent");l([t.observable],a.prototype,"actionItemsSlottedContent");const $=({iconPlacement:i,bodySlottedContent:o,footerSlottedContent:s,actionItemsSlottedContent:r,_openedAsModal:e,scrollableBody:n})=>x.classNames("base",[`icon-placement-${i}`,!!i],["hide-body",!o?.length],["hide-footer",!(s?.length||r?.length)],["modal",e],["scrollable-body",!!n]);function D(i){return t.html`
|
|
2
2
|
<${i} class="icon" name="${o=>o.icon}"></${i}>
|
|
3
3
|
`}function g(){return t.html`
|
|
4
4
|
<h2 class="headline" id="dialog-headline">${i=>i.headline}</h2>
|
|
5
|
-
`}function f(){return t.html` <h3 class="subtitle">${i=>i.subtitle}</h3> `}function
|
|
5
|
+
`}function f(){return t.html` <h3 class="subtitle">${i=>i.subtitle}</h3> `}function z(){return t.html`
|
|
6
6
|
<div class="header-text">${g()} ${f()}</div>
|
|
7
|
-
`}function
|
|
7
|
+
`}function C(i){return t.html`
|
|
8
8
|
<${i}
|
|
9
9
|
aria-label="${o=>o.dismissButtonAriaLabel||o.locale.dialog.dismissButtonLabel}"
|
|
10
10
|
size="condensed"
|
|
11
11
|
class="dismiss-button"
|
|
12
12
|
icon="close-line"
|
|
13
13
|
@click="${o=>o._handleCloseRequest()}"
|
|
14
|
-
></${i}>`}const
|
|
14
|
+
></${i}>`}const _=i=>{const o=i.tagFor(u.Elevation),s=i.tagFor(h.Icon),r=i.tagFor(p.Button);return t.html`
|
|
15
15
|
<${o} dp="8" not-relative>
|
|
16
16
|
<dialog class="${$}"
|
|
17
17
|
@keydown="${(e,n)=>e._onKeyDown(n.event)}"
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
<slot name="graphic">
|
|
26
26
|
${d.when(e=>e.icon,D(s))}
|
|
27
27
|
</slot>
|
|
28
|
-
${d.when(e=>e.headline&&e.subtitle,
|
|
28
|
+
${d.when(e=>e.headline&&e.subtitle,z())}
|
|
29
29
|
${d.when(e=>e.headline&&!e.subtitle,g())}
|
|
30
30
|
${d.when(e=>e.subtitle&&!e.headline,f())}
|
|
31
|
-
${d.when(e=>e._showDismissButton,
|
|
31
|
+
${d.when(e=>e._showDismissButton,C(r))}
|
|
32
32
|
</div>
|
|
33
33
|
<div class="body ${e=>e.fullWidthBody?"full-width":""}" >
|
|
34
34
|
<slot name="body" ${c.slotted("bodySlottedContent")}></slot>
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
</slot>
|
|
46
46
|
</dialog>
|
|
47
|
-
</${o}>`},A=t.defineVividComponent("dialog",a,
|
|
47
|
+
</${o}>`},A=t.defineVividComponent("dialog",a,_,[h.iconDefinition,p.buttonDefinition,u.elevationDefinition],{styles:w}),B=t.createRegisterFunction(A);B();
|
package/dialog/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import { I as f, i as g } from "../bundled/definition2.js";
|
|
|
2
2
|
import { B as v, b as y } from "../bundled/definition3.js";
|
|
3
3
|
import { E as x, e as w } from "../bundled/definition4.js";
|
|
4
4
|
import { V as k, a as l, o as b, h as r, c as D, d as $ } from "../bundled/vivid-element.js";
|
|
5
|
-
import { h as
|
|
6
|
-
import { D as
|
|
5
|
+
import { h as z } from "../bundled/index.js";
|
|
6
|
+
import { D as C, d as _ } from "../bundled/delegates-aria.js";
|
|
7
7
|
import { L as B } from "../bundled/localized.js";
|
|
8
8
|
import { w as c } from "../bundled/when.js";
|
|
9
9
|
import { s as h } from "../bundled/slotted.js";
|
|
10
10
|
import { c as A } from "../bundled/class-names.js";
|
|
11
|
-
const M = '.base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:"";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}';
|
|
11
|
+
const M = '.base{white-space:initial;box-sizing:border-box;padding:0;border:none;border-radius:8px;background-color:transparent;color:var(--vvd-color-canvas-text);max-block-size:none;max-inline-size:var(--dialog-max-inline-size, var(--_dialog-default-max-inline-size));min-block-size:fit-content;min-inline-size:var(--dialog-min-inline-size, 280px)}@media not all and (width >= 600px){.base{--_dialog-default-max-inline-size: 90vw}}@media (width >= 600px){.base{--_dialog-default-max-inline-size: 560px}}.base:not(.scrollable-body){max-block-size:var(--dialog-max-block-size, calc(100vh - 64px) )}.base:not(.modal){z-index:var(--dialog-z-index, 1);inset-block:var(--dialog-inset-block, auto);inset-inline:var(--dialog-inset-inline, 0)}.base.modal{box-shadow:0 4px 20px #00000059}.base.modal::backdrop{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5}.base:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.main-wrapper{display:flex;box-sizing:border-box;flex-direction:column;gap:24px;padding-block:24px}.main-wrapper>*{box-sizing:border-box}.header{display:grid;align-items:flex-start;justify-content:space-between;inline-size:100%;padding-inline:24px}.base:not(.icon-placement-side) .header{grid-template-columns:1fr auto;grid-template-rows:auto auto auto}.base:not(.icon-placement-side) .header .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2)));grid-column:1/2;grid-row:1/2;line-height:1;margin-block-end:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header{grid-template-columns:auto 1fr auto;grid-template-rows:auto auto}.base.icon-placement-side .header .icon{font-size:calc(1px*(28 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.icon-placement-side .header ::slotted(*),.base.icon-placement-side .header .icon{grid-column:1/2;grid-row:1/-1;margin-inline-end:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}.header.border{position:relative}.header.border:after{position:absolute;bottom:-24px;left:0;background-color:var(--vvd-color-neutral-200);block-size:1px;content:"";inline-size:100%}.base.hide-body .header.border:after{content:none}.body:not(.full-width){padding-inline:24px}.hide-body .body{display:none}.scrollable-body .body{overflow:hidden auto;max-block-size:var(--dialog-body-max-block-size, 300px);--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.scrollable-body .body{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.scrollable-body .body ::-webkit-scrollbar{width:4px}.scrollable-body .body ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.scrollable-body .body ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:24px}.hide-footer .footer{display:none}.footer .actions{display:flex;align-self:flex-end;gap:8px}.dismiss-button{flex-shrink:0;grid-column:-2/-1;grid-row:1/-1;margin-block-start:-8px;margin-inline:4px -8px}.headline{margin:0;font:var(--vvd-typography-heading-4)}.subtitle{margin:0;font:var(--vvd-typography-base)}slot[name=main]{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}slot[name=main]{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}slot[name=main] ::-webkit-scrollbar{width:4px}slot[name=main] ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}slot[name=main] ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}slot[name=main]{display:block;overflow:hidden auto;max-width:inherit;max-height:inherit;border-radius:inherit}';
|
|
12
12
|
var E = Object.defineProperty, s = (t, o, a, d) => {
|
|
13
13
|
for (var e = void 0, n = t.length - 1, p; n >= 0; n--)
|
|
14
14
|
(p = t[n]) && (e = p(o, a, e) || e);
|
|
15
15
|
return e && E(o, a, e), e;
|
|
16
16
|
};
|
|
17
|
-
class i extends B(
|
|
17
|
+
class i extends B(C(k)) {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments), this.open = !1, this.fullWidthBody = !1, this.dismissButtonAriaLabel = null, this.noLightDismiss = !1, this.noDismissOnEsc = !1, this.noDismissButton = !1, this.nonDismissible = !1, this.modal = !1, this.scrollableBody = !1, this._openedAsModal = !1, this.#i = (o) => {
|
|
20
20
|
if (o.target !== this.#e || !this.#t("light-dismiss"))
|
|
@@ -70,7 +70,7 @@ class i extends B(_(k)) {
|
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
72
|
_onKeyDown(o) {
|
|
73
|
-
return
|
|
73
|
+
return z(o) && this._openedAsModal ? (this.#t("escape") && this._handleCloseRequest(), !1) : !0;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @internal
|
|
@@ -217,7 +217,7 @@ const F = (t) => {
|
|
|
217
217
|
<dialog class="${L}"
|
|
218
218
|
@keydown="${(e, n) => e._onKeyDown(n.event)}"
|
|
219
219
|
@cancel="${(e, n) => n.event.preventDefault()}"
|
|
220
|
-
${
|
|
220
|
+
${_({
|
|
221
221
|
ariaModal: (e) => String(e._openedAsModal)
|
|
222
222
|
})}
|
|
223
223
|
aria-labelledby="${(e) => e.headline ? "dialog-headline" : null}"
|
package/elevation/definition.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
require('../unbundled/vivid-element.cjs');
|
|
6
|
-
const elevation_definition = require('../unbundled/
|
|
6
|
+
const elevation_definition = require('../unbundled/definition6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/elevation/definition.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../unbundled/vivid-element.js';
|
|
2
|
-
export { e as elevationDefinition, r as registerElevation } from '../unbundled/
|
|
2
|
+
export { e as elevationDefinition, r as registerElevation } from '../unbundled/definition6.js';
|
package/fab/definition.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iconDefinition } from '../icon/definition.js';
|
|
2
2
|
import { d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
3
3
|
import { attr, ref, html } from '@microsoft/fast-element';
|
|
4
|
-
import {
|
|
4
|
+
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from '../unbundled/affix.js';
|
|
5
5
|
import { V as VividFoundationButton } from '../unbundled/button.js';
|
|
6
6
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
7
7
|
import { d as delegateAria } from '../unbundled/delegates-aria.js';
|
package/header/definition.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const elevation_definition = require('../unbundled/
|
|
5
|
+
const elevation_definition = require('../unbundled/definition6.cjs');
|
|
6
6
|
const vividElement = require('../unbundled/vivid-element.cjs');
|
|
7
7
|
const fastElement = require('@microsoft/fast-element');
|
|
8
8
|
const delegatesAria = require('../unbundled/delegates-aria.cjs');
|
package/header/definition.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Elevation, e as elevationDefinition } from '../unbundled/
|
|
1
|
+
import { E as Elevation, e as elevationDefinition } from '../unbundled/definition6.js';
|
|
2
2
|
import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
3
3
|
import { attr, html } from '@microsoft/fast-element';
|
|
4
4
|
import { D as DelegatesAria, d as delegateAria } from '../unbundled/delegates-aria.js';
|
package/index.cjs
CHANGED
|
@@ -44,8 +44,7 @@ const navItem_definition = require('./nav-item/definition.cjs');
|
|
|
44
44
|
const nav_definition = require('./nav/definition.cjs');
|
|
45
45
|
const note_definition = require('./note/definition.cjs');
|
|
46
46
|
const numberField_definition = require('./number-field/definition.cjs');
|
|
47
|
-
const option_definition = require('./
|
|
48
|
-
const option = require('./unbundled/option.cjs');
|
|
47
|
+
const option_definition = require('./unbundled/definition3.cjs');
|
|
49
48
|
const pagination_definition = require('./pagination/definition.cjs');
|
|
50
49
|
const progressRing_definition = require('./progress-ring/definition.cjs');
|
|
51
50
|
const progress_definition = require('./progress/definition.cjs');
|
|
@@ -72,7 +71,7 @@ const timePicker_definition = require('./time-picker/definition.cjs');
|
|
|
72
71
|
const timeSelectionPicker_template = require('./unbundled/time-selection-picker.template.cjs');
|
|
73
72
|
const toggletip_definition = require('./toggletip/definition.cjs');
|
|
74
73
|
const tooltip_definition = require('./tooltip/definition.cjs');
|
|
75
|
-
const treeItem_definition = require('./unbundled/
|
|
74
|
+
const treeItem_definition = require('./unbundled/definition4.cjs');
|
|
76
75
|
const treeView_definition = require('./tree-view/definition.cjs');
|
|
77
76
|
const videoPlayer_definition = require('./video-player/definition.cjs');
|
|
78
77
|
|
|
@@ -208,9 +207,9 @@ exports.registerNote = note_definition.registerNote;
|
|
|
208
207
|
exports.VwcNumberFieldElement = numberField_definition.VwcNumberFieldElement;
|
|
209
208
|
exports.numberFieldDefinition = numberField_definition.numberFieldDefinition;
|
|
210
209
|
exports.registerNumberField = numberField_definition.registerNumberField;
|
|
210
|
+
exports.VwcOptionElement = option_definition.ListboxOption;
|
|
211
211
|
exports.listboxOptionDefinition = option_definition.listboxOptionDefinition;
|
|
212
212
|
exports.registerOption = option_definition.registerOption;
|
|
213
|
-
exports.VwcOptionElement = option.ListboxOption;
|
|
214
213
|
exports.VwcPaginationElement = pagination_definition.VwcPaginationElement;
|
|
215
214
|
exports.paginationDefinition = pagination_definition.paginationDefinition;
|
|
216
215
|
exports.registerPagination = pagination_definition.registerPagination;
|
package/index.js
CHANGED
|
@@ -40,8 +40,7 @@ export { VwcNavItemElement, navItemDefinition, registerNavItem } from './nav-ite
|
|
|
40
40
|
export { VwcNavElement, navDefinition, registerNav } from './nav/definition.js';
|
|
41
41
|
export { VwcNoteElement, noteDefinition, registerNote } from './note/definition.js';
|
|
42
42
|
export { VwcNumberFieldElement, numberFieldDefinition, registerNumberField } from './number-field/definition.js';
|
|
43
|
-
export { listboxOptionDefinition, registerOption } from './
|
|
44
|
-
export { L as VwcOptionElement } from './unbundled/option.js';
|
|
43
|
+
export { L as VwcOptionElement, l as listboxOptionDefinition, r as registerOption } from './unbundled/definition3.js';
|
|
45
44
|
export { VwcPaginationElement, paginationDefinition, registerPagination } from './pagination/definition.js';
|
|
46
45
|
export { VwcProgressRingElement, progressRingDefinition, registerProgressRing } from './progress-ring/definition.js';
|
|
47
46
|
export { VwcProgressElement, progressDefinition, registerProgress } from './progress/definition.js';
|
|
@@ -68,6 +67,6 @@ export { registerTimePicker, timePickerDefinition } from './time-picker/definiti
|
|
|
68
67
|
export { T as VwcTimePickerElement } from './unbundled/time-selection-picker.template.js';
|
|
69
68
|
export { VwcToggletipElement, registerToggletip, toggletipDefinition } from './toggletip/definition.js';
|
|
70
69
|
export { VwcTooltipElement, registerTooltip, tooltipDefinition } from './tooltip/definition.js';
|
|
71
|
-
export { T as VwcTreeItemElement, r as registerTreeItem, t as treeItemDefinition } from './unbundled/
|
|
70
|
+
export { T as VwcTreeItemElement, r as registerTreeItem, t as treeItemDefinition } from './unbundled/definition4.js';
|
|
72
71
|
export { VwcTreeViewElement, registerTreeView, treeViewDefinition } from './tree-view/definition.js';
|
|
73
72
|
export { VwcVideoPlayerElement, registerVideoPlayer, videoPlayerDefinition } from './video-player/definition.js';
|
|
@@ -3,7 +3,7 @@ export declare const AccordionExpandMode: {
|
|
|
3
3
|
readonly single: "single";
|
|
4
4
|
readonly multi: "multi";
|
|
5
5
|
};
|
|
6
|
-
export type AccordionExpandMode = typeof AccordionExpandMode[keyof typeof AccordionExpandMode];
|
|
6
|
+
export type AccordionExpandMode = (typeof AccordionExpandMode)[keyof typeof AccordionExpandMode];
|
|
7
7
|
export declare class Accordion extends VividElement {
|
|
8
8
|
expandmode: AccordionExpandMode;
|
|
9
9
|
activeid: string | null;
|
|
@@ -3,6 +3,6 @@ export declare const AccordionExpandMode: {
|
|
|
3
3
|
readonly single: "single";
|
|
4
4
|
readonly multi: "multi";
|
|
5
5
|
};
|
|
6
|
-
export type AccordionExpandMode = typeof AccordionExpandMode[keyof typeof AccordionExpandMode];
|
|
6
|
+
export type AccordionExpandMode = (typeof AccordionExpandMode)[keyof typeof AccordionExpandMode];
|
|
7
7
|
export declare const registerAccordion: (prefix?: string) => void;
|
|
8
8
|
export { Accordion as VwcAccordionElement };
|
|
@@ -8,7 +8,7 @@ export declare const SKIP_DIRECTIONS: {
|
|
|
8
8
|
FORWARD: number;
|
|
9
9
|
BACKWARD: number;
|
|
10
10
|
};
|
|
11
|
-
export type SKIP_DIRECTIONS_TYPE = typeof SKIP_DIRECTIONS[keyof typeof SKIP_DIRECTIONS];
|
|
11
|
+
export type SKIP_DIRECTIONS_TYPE = (typeof SKIP_DIRECTIONS)[keyof typeof SKIP_DIRECTIONS];
|
|
12
12
|
export declare function formatTime(time: number): string;
|
|
13
13
|
declare const AudioPlayer_base: {
|
|
14
14
|
new (...args: any[]): {
|
|
@@ -4,4 +4,4 @@ export declare const ComboboxAutocomplete: {
|
|
|
4
4
|
readonly both: "both";
|
|
5
5
|
readonly none: "none";
|
|
6
6
|
};
|
|
7
|
-
export type ComboboxAutocomplete = typeof ComboboxAutocomplete[keyof typeof ComboboxAutocomplete];
|
|
7
|
+
export type ComboboxAutocomplete = (typeof ComboboxAutocomplete)[keyof typeof ComboboxAutocomplete];
|
package/lib/divider/divider.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const DividerRole: {
|
|
|
7
7
|
readonly separator: "separator";
|
|
8
8
|
readonly presentation: "presentation";
|
|
9
9
|
};
|
|
10
|
-
type DividerRole = typeof DividerRole[keyof typeof DividerRole];
|
|
10
|
+
type DividerRole = (typeof DividerRole)[keyof typeof DividerRole];
|
|
11
11
|
declare const Divider_base: {
|
|
12
12
|
new (...args: any[]): {
|
|
13
13
|
_vividAriaBehaviour: "host";
|
|
@@ -4,4 +4,4 @@ export declare const MenuItemRole: {
|
|
|
4
4
|
readonly menuitemradio: "menuitemradio";
|
|
5
5
|
readonly presentation: "presentation";
|
|
6
6
|
};
|
|
7
|
-
export type MenuItemRole = typeof MenuItemRole[keyof typeof MenuItemRole];
|
|
7
|
+
export type MenuItemRole = (typeof MenuItemRole)[keyof typeof MenuItemRole];
|
package/lib/popup/popup.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const PlacementStrategy: {
|
|
|
5
5
|
readonly AutoPlacementHorizontal: "auto-placement-horizontal";
|
|
6
6
|
readonly AutoPlacementVertical: "auto-placement-vertical";
|
|
7
7
|
};
|
|
8
|
-
type PlacementStrategyId = typeof PlacementStrategy[keyof typeof PlacementStrategy];
|
|
8
|
+
type PlacementStrategyId = (typeof PlacementStrategy)[keyof typeof PlacementStrategy];
|
|
9
9
|
export declare class Popup extends VividElement {
|
|
10
10
|
#private;
|
|
11
11
|
popupEl: HTMLElement;
|
|
@@ -3,6 +3,10 @@ export interface SearchableSelectLocale {
|
|
|
3
3
|
noOptionsMessage: string;
|
|
4
4
|
noMatchesMessage: string;
|
|
5
5
|
loadingOptionsMessage: string;
|
|
6
|
+
selectAllLabel: string;
|
|
7
|
+
deselectAllLabel: string;
|
|
8
|
+
selectedAllMessage: string;
|
|
9
|
+
deselectedAllMessage: string;
|
|
6
10
|
removeTagButtonLabel: (label: string) => string;
|
|
7
11
|
optionSelectedMessage: (name: string) => string;
|
|
8
12
|
optionDeselectedMessage: (name: string) => string;
|
|
@@ -3581,6 +3581,9 @@ export declare class SearchableSelect extends SearchableSelect_base {
|
|
|
3581
3581
|
loading: boolean;
|
|
3582
3582
|
clearable: boolean;
|
|
3583
3583
|
maxSelected: number | null;
|
|
3584
|
+
enableSelectAll: boolean;
|
|
3585
|
+
selectAllText: string | undefined;
|
|
3586
|
+
deselectAllText: string | undefined;
|
|
3584
3587
|
setFormValue: (value: File | string | FormData | null, state?: File | string | FormData | null) => void;
|
|
3585
3588
|
connectedCallback(): void;
|
|
3586
3589
|
disconnectedCallback(): void;
|
package/lib/select/select.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Appearance, Shape, Size } from '../enums';
|
|
2
|
+
import type { ListboxOption } from '../option/option';
|
|
2
3
|
import { Listbox } from '../../shared/foundation/listbox/listbox';
|
|
3
4
|
import type { ExtractFromEnum } from '../../shared/utils/enums';
|
|
4
5
|
export type SelectAppearance = ExtractFromEnum<Appearance, Appearance.Fieldset | Appearance.Ghost>;
|
|
@@ -3198,7 +3199,8 @@ export declare class Select extends Select_base {
|
|
|
3198
3199
|
fixedDropdown: boolean;
|
|
3199
3200
|
placeholder: string | undefined;
|
|
3200
3201
|
get displayValue(): string;
|
|
3201
|
-
|
|
3202
|
+
_newDefaultSelectedIndex(prev: ListboxOption[], next: ListboxOption[], currentSelectIndex: number): number | null;
|
|
3203
|
+
_isDefaultSelected(option: ListboxOption): boolean;
|
|
3202
3204
|
formResetCallback(): void;
|
|
3203
3205
|
}
|
|
3204
3206
|
export {};
|
package/lib/slider/slider.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type SliderConnotation = Connotation.Accent | Connotation.CTA;
|
|
|
5
5
|
export declare const SliderMode: {
|
|
6
6
|
readonly singleValue: "single-value";
|
|
7
7
|
};
|
|
8
|
-
export type SliderMode = typeof SliderMode[keyof typeof SliderMode];
|
|
8
|
+
export type SliderMode = (typeof SliderMode)[keyof typeof SliderMode];
|
|
9
9
|
declare const Slider_base: {
|
|
10
10
|
new (...args: any[]): {
|
|
11
11
|
readonly locale: import("../../shared/localization/Locale").Locale;
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ export declare const TabsGutters: {
|
|
|
7
7
|
readonly None: "none";
|
|
8
8
|
readonly Small: "small";
|
|
9
9
|
};
|
|
10
|
-
export type TabsGutters = typeof TabsGutters[keyof typeof TabsGutters];
|
|
10
|
+
export type TabsGutters = (typeof TabsGutters)[keyof typeof TabsGutters];
|
|
11
11
|
export declare const TabsOrientation: {
|
|
12
12
|
readonly vertical: "vertical";
|
|
13
13
|
readonly horizontal: "horizontal";
|
|
14
14
|
};
|
|
15
|
-
export type TabsOrientation = typeof TabsOrientation[keyof typeof TabsOrientation];
|
|
15
|
+
export type TabsOrientation = (typeof TabsOrientation)[keyof typeof TabsOrientation];
|
|
16
16
|
export declare class Tabs extends VividElement {
|
|
17
17
|
#private;
|
|
18
18
|
orientation: TabsOrientation;
|
|
@@ -7,7 +7,7 @@ export declare const TextAreaResize: {
|
|
|
7
7
|
readonly horizontal: "horizontal";
|
|
8
8
|
readonly vertical: "vertical";
|
|
9
9
|
};
|
|
10
|
-
export type TextAreaResize = typeof TextAreaResize[keyof typeof TextAreaResize];
|
|
10
|
+
export type TextAreaResize = (typeof TextAreaResize)[keyof typeof TextAreaResize];
|
|
11
11
|
declare const TextArea_base: {
|
|
12
12
|
new (...args: any[]): {
|
|
13
13
|
_contextualHelpSlottedContent?: HTMLElement[] | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const TextFieldType: {
|
|
|
12
12
|
readonly text: "text";
|
|
13
13
|
readonly url: "url";
|
|
14
14
|
};
|
|
15
|
-
export type TextFieldType = typeof TextFieldType[keyof typeof TextFieldType];
|
|
15
|
+
export type TextFieldType = (typeof TextFieldType)[keyof typeof TextFieldType];
|
|
16
16
|
declare const TextField_base: {
|
|
17
17
|
new (...args: any[]): {
|
|
18
18
|
_contextualHelpSlottedContent?: HTMLElement[] | undefined;
|
package/locales/de-DE.cjs
CHANGED
|
@@ -379,6 +379,10 @@ const deDE = {
|
|
|
379
379
|
clearButtonLabel: "Auswahl löschen",
|
|
380
380
|
noOptionsMessage: "Keine Optionen",
|
|
381
381
|
noMatchesMessage: "Keine Optionen gefunden",
|
|
382
|
+
selectAllLabel: "Alles auswählen",
|
|
383
|
+
deselectAllLabel: "Auswahl aufheben",
|
|
384
|
+
selectedAllMessage: "Alle Optionen ausgewählt",
|
|
385
|
+
deselectedAllMessage: "Alle Optionen abgewählt",
|
|
382
386
|
loadingOptionsMessage: "Laden...",
|
|
383
387
|
removeTagButtonLabel: (
|
|
384
388
|
/* istanbul ignore next */
|
package/locales/de-DE.js
CHANGED
|
@@ -377,6 +377,10 @@ const deDE = {
|
|
|
377
377
|
clearButtonLabel: "Auswahl löschen",
|
|
378
378
|
noOptionsMessage: "Keine Optionen",
|
|
379
379
|
noMatchesMessage: "Keine Optionen gefunden",
|
|
380
|
+
selectAllLabel: "Alles auswählen",
|
|
381
|
+
deselectAllLabel: "Auswahl aufheben",
|
|
382
|
+
selectedAllMessage: "Alle Optionen ausgewählt",
|
|
383
|
+
deselectedAllMessage: "Alle Optionen abgewählt",
|
|
380
384
|
loadingOptionsMessage: "Laden...",
|
|
381
385
|
removeTagButtonLabel: (
|
|
382
386
|
/* istanbul ignore next */
|
package/locales/en-GB.cjs
CHANGED
|
@@ -211,6 +211,10 @@ const enGB = {
|
|
|
211
211
|
clearButtonLabel: "Clear selection",
|
|
212
212
|
noOptionsMessage: "No options",
|
|
213
213
|
noMatchesMessage: "No options found",
|
|
214
|
+
selectAllLabel: "Select All",
|
|
215
|
+
deselectAllLabel: "Deselect All",
|
|
216
|
+
selectedAllMessage: "All options selected",
|
|
217
|
+
deselectedAllMessage: "All options deselected",
|
|
214
218
|
loadingOptionsMessage: "Loading...",
|
|
215
219
|
removeTagButtonLabel: (
|
|
216
220
|
/* istanbul ignore next */
|
package/locales/en-GB.js
CHANGED
|
@@ -209,6 +209,10 @@ const enGB = {
|
|
|
209
209
|
clearButtonLabel: "Clear selection",
|
|
210
210
|
noOptionsMessage: "No options",
|
|
211
211
|
noMatchesMessage: "No options found",
|
|
212
|
+
selectAllLabel: "Select All",
|
|
213
|
+
deselectAllLabel: "Deselect All",
|
|
214
|
+
selectedAllMessage: "All options selected",
|
|
215
|
+
deselectedAllMessage: "All options deselected",
|
|
212
216
|
loadingOptionsMessage: "Loading...",
|
|
213
217
|
removeTagButtonLabel: (
|
|
214
218
|
/* istanbul ignore next */
|
package/locales/en-US.cjs
CHANGED
|
@@ -379,6 +379,10 @@ const enUS = {
|
|
|
379
379
|
clearButtonLabel: "Clear selection",
|
|
380
380
|
noOptionsMessage: "No options",
|
|
381
381
|
noMatchesMessage: "No options found",
|
|
382
|
+
selectAllLabel: "Select All",
|
|
383
|
+
deselectAllLabel: "Deselect All",
|
|
384
|
+
selectedAllMessage: "All options selected",
|
|
385
|
+
deselectedAllMessage: "All options deselected",
|
|
382
386
|
loadingOptionsMessage: "Loading...",
|
|
383
387
|
removeTagButtonLabel: (
|
|
384
388
|
/* istanbul ignore next */
|
package/locales/en-US.js
CHANGED
|
@@ -377,6 +377,10 @@ const enUS = {
|
|
|
377
377
|
clearButtonLabel: "Clear selection",
|
|
378
378
|
noOptionsMessage: "No options",
|
|
379
379
|
noMatchesMessage: "No options found",
|
|
380
|
+
selectAllLabel: "Select All",
|
|
381
|
+
deselectAllLabel: "Deselect All",
|
|
382
|
+
selectedAllMessage: "All options selected",
|
|
383
|
+
deselectedAllMessage: "All options deselected",
|
|
380
384
|
loadingOptionsMessage: "Loading...",
|
|
381
385
|
removeTagButtonLabel: (
|
|
382
386
|
/* istanbul ignore next */
|
package/locales/ja-JP.cjs
CHANGED
|
@@ -378,7 +378,11 @@ const jaJP = {
|
|
|
378
378
|
clearButtonLabel: "選択をクリア",
|
|
379
379
|
noOptionsMessage: "オプションがありません",
|
|
380
380
|
noMatchesMessage: "オプションが見つかりません",
|
|
381
|
+
selectAllLabel: "すべて選択",
|
|
382
|
+
deselectAllLabel: "すべて選択解除",
|
|
381
383
|
loadingOptionsMessage: "読み込み中...",
|
|
384
|
+
selectedAllMessage: "すべてのオプションが選択されました",
|
|
385
|
+
deselectedAllMessage: "すべてのオプションの選択を解除",
|
|
382
386
|
removeTagButtonLabel: (
|
|
383
387
|
/* istanbul ignore next */
|
|
384
388
|
(label) => `${label}を削除`
|
package/locales/ja-JP.js
CHANGED
|
@@ -376,7 +376,11 @@ const jaJP = {
|
|
|
376
376
|
clearButtonLabel: "選択をクリア",
|
|
377
377
|
noOptionsMessage: "オプションがありません",
|
|
378
378
|
noMatchesMessage: "オプションが見つかりません",
|
|
379
|
+
selectAllLabel: "すべて選択",
|
|
380
|
+
deselectAllLabel: "すべて選択解除",
|
|
379
381
|
loadingOptionsMessage: "読み込み中...",
|
|
382
|
+
selectedAllMessage: "すべてのオプションが選択されました",
|
|
383
|
+
deselectedAllMessage: "すべてのオプションの選択を解除",
|
|
380
384
|
removeTagButtonLabel: (
|
|
381
385
|
/* istanbul ignore next */
|
|
382
386
|
(label) => `${label}を削除`
|
package/locales/zh-CN.cjs
CHANGED
|
@@ -380,7 +380,11 @@ const zhCN = {
|
|
|
380
380
|
clearButtonLabel: "清除选择",
|
|
381
381
|
noOptionsMessage: "没有选项",
|
|
382
382
|
noMatchesMessage: "未找到选项",
|
|
383
|
+
selectAllLabel: "选择全部",
|
|
384
|
+
deselectAllLabel: "取消全选",
|
|
383
385
|
loadingOptionsMessage: "加载中...",
|
|
386
|
+
selectedAllMessage: "已选择所有选项",
|
|
387
|
+
deselectedAllMessage: "取消选择所有选项",
|
|
384
388
|
removeTagButtonLabel: (
|
|
385
389
|
/* istanbul ignore next */
|
|
386
390
|
(label) => `${label} 删除`
|
package/locales/zh-CN.js
CHANGED
|
@@ -378,7 +378,11 @@ const zhCN = {
|
|
|
378
378
|
clearButtonLabel: "清除选择",
|
|
379
379
|
noOptionsMessage: "没有选项",
|
|
380
380
|
noMatchesMessage: "未找到选项",
|
|
381
|
+
selectAllLabel: "选择全部",
|
|
382
|
+
deselectAllLabel: "取消全选",
|
|
381
383
|
loadingOptionsMessage: "加载中...",
|
|
384
|
+
selectedAllMessage: "已选择所有选项",
|
|
385
|
+
deselectedAllMessage: "取消选择所有选项",
|
|
382
386
|
removeTagButtonLabel: (
|
|
383
387
|
/* istanbul ignore next */
|
|
384
388
|
(label) => `${label} 删除`
|