@vonage/vivid 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -0
- package/accordion/definition.cjs +5 -0
- package/accordion/definition.js +5 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +14 -3
- package/alert/definition.cjs +4 -12
- package/alert/definition.js +5 -13
- package/alert/index.cjs +11 -11
- package/alert/index.js +33 -37
- package/audio-player/definition.cjs +4 -0
- package/audio-player/definition.js +4 -0
- package/audio-player/index.cjs +1 -1
- package/audio-player/index.js +8 -2
- package/banner/definition.cjs +2 -4
- package/banner/definition.js +2 -4
- package/banner/index.cjs +2 -2
- package/banner/index.js +1 -1
- package/breadcrumb/definition.cjs +1 -0
- package/breadcrumb/definition.js +1 -0
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +1 -0
- package/bundled/affix.js +1 -1
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +3 -1
- package/bundled/base-color-picker.cjs +18 -13
- package/bundled/base-color-picker.js +107 -84
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +3 -0
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +14 -10
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +4 -2
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/definition10.cjs +7 -7
- package/bundled/definition10.js +29 -19
- package/bundled/definition11.cjs +12 -19
- package/bundled/definition11.js +73 -204
- package/bundled/definition12.cjs +19 -10
- package/bundled/definition12.js +218 -36
- package/bundled/definition13.cjs +10 -1
- package/bundled/definition13.js +38 -14
- package/bundled/definition14.cjs +1 -5
- package/bundled/definition14.js +15 -24
- package/bundled/definition15.cjs +5 -30
- package/bundled/definition15.js +22 -73
- package/bundled/definition16.cjs +30 -19
- package/bundled/definition16.js +74 -97
- package/bundled/definition17.cjs +19 -13
- package/bundled/definition17.js +86 -117
- package/bundled/definition18.cjs +13 -12
- package/bundled/definition18.js +125 -71
- package/bundled/definition19.cjs +16 -16
- package/bundled/definition19.js +132 -94
- package/bundled/definition2.cjs +8 -9
- package/bundled/definition2.js +89 -142
- package/bundled/definition22.cjs +1 -1
- package/bundled/definition22.js +1 -0
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +2 -1
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +9 -3
- package/bundled/definition6.cjs +1 -1
- package/bundled/definition6.js +1 -0
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +7 -4
- package/bundled/definition8.cjs +1 -1
- package/bundled/definition8.js +1 -0
- package/bundled/definition9.cjs +6 -6
- package/bundled/definition9.js +545 -488
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +3 -1
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +11 -3
- package/bundled/host-semantics.js +4 -4
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +22 -4
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +149 -66
- package/bundled/mixins.cjs +4 -4
- package/bundled/mixins.js +11 -8
- package/bundled/picker-field.template.cjs +14 -14
- package/bundled/picker-field.template.js +36 -56
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +4 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +12 -12
- package/bundled/time-selection-picker.template.js +16 -12
- package/bundled/trapped-focus.cjs +1 -0
- package/bundled/trapped-focus.js +26 -0
- package/bundled/vivid-element.cjs +4 -4
- package/bundled/vivid-element.js +529 -492
- package/calendar/definition.cjs +2 -0
- package/calendar/definition.js +2 -0
- package/calendar/index.cjs +13 -13
- package/calendar/index.js +174 -144
- package/checkbox/definition.cjs +1 -0
- package/checkbox/definition.js +1 -0
- package/color-picker/definition.cjs +213 -112
- package/color-picker/definition.js +213 -112
- package/color-picker/index.cjs +104 -75
- package/color-picker/index.js +417 -326
- package/combobox/definition.cjs +17 -6
- package/combobox/definition.js +17 -6
- package/combobox/index.cjs +14 -9
- package/combobox/index.js +54 -42
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +6976 -484
- package/data-grid/definition.cjs +105 -7
- package/data-grid/definition.js +105 -7
- package/data-grid/index.cjs +52 -38
- package/data-grid/index.js +313 -242
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +2 -0
- package/date-range-picker/definition.js +2 -0
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +7 -3
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +148 -0
- package/dial-pad/definition.js +148 -0
- package/dial-pad/index.cjs +27 -20
- package/dial-pad/index.js +202 -101
- package/dialog/definition.cjs +1 -0
- package/dialog/definition.js +1 -0
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -0
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/fab/definition.cjs +1 -0
- package/fab/definition.js +1 -0
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -0
- package/file-picker/definition.cjs +7 -2
- package/file-picker/definition.js +7 -2
- package/file-picker/index.cjs +6 -6
- package/file-picker/index.js +82 -73
- package/icon/definition.cjs +66 -41
- package/icon/definition.js +67 -42
- package/index.cjs +21 -0
- package/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +390 -12
- package/lib/color-picker/locale.d.ts +4 -0
- package/lib/data-grid/locale.d.ts +5 -0
- package/lib/date-picker/date-picker.d.ts +38 -38
- package/lib/date-range-picker/date-range-picker.d.ts +20 -20
- package/lib/date-time-picker/date-time-picker.d.ts +40 -40
- package/lib/dial-pad/dial-pad.d.ts +1 -0
- package/lib/icon/icon.d.ts +1 -1
- package/lib/menu/menu.d.ts +4 -4
- package/lib/rich-text-editor/definition.d.ts +3 -2
- package/lib/rich-text-editor/locale.d.ts +29 -3
- package/lib/rich-text-editor/popover.d.ts +19 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +16 -45
- package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
- package/lib/rich-text-editor/rte/config.d.ts +18 -0
- package/lib/rich-text-editor/rte/document.d.ts +28 -0
- package/lib/rich-text-editor/rte/exports.d.ts +23 -0
- package/lib/rich-text-editor/rte/feature.d.ts +46 -0
- package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +33 -0
- package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +11 -0
- package/lib/rich-text-editor/rte/features/internal/history.d.ts +10 -0
- package/lib/rich-text-editor/rte/features/internal/text-style.d.ts +18 -0
- package/lib/rich-text-editor/rte/html-parser.d.ts +24 -0
- package/lib/rich-text-editor/rte/html-serializer.d.ts +30 -0
- package/lib/rich-text-editor/rte/instance.d.ts +57 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -0
- package/lib/rich-text-editor/rte/utils/impl.d.ts +1 -0
- package/lib/rich-text-editor/rte/utils/textblock-attrs.d.ts +29 -0
- package/lib/rich-text-editor/rte/utils/textblock-marks.d.ts +10 -0
- package/lib/rich-text-editor/rte/utils/ui.d.ts +109 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +6 -5
- package/lib/text-area/text-area.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -1
- package/lib/time-picker/time-picker.d.ts +20 -20
- package/lib/toggletip/toggletip.d.ts +4 -4
- package/lib/tooltip/tooltip.d.ts +4 -4
- package/locales/de-DE.cjs +58 -7
- package/locales/de-DE.js +58 -7
- package/locales/en-GB.cjs +60 -9
- package/locales/en-GB.js +60 -9
- package/locales/en-US.cjs +60 -9
- package/locales/en-US.js +60 -9
- package/locales/ja-JP.cjs +59 -8
- package/locales/ja-JP.js +59 -8
- package/locales/zh-CN.cjs +58 -7
- package/locales/zh-CN.js +58 -7
- package/menu/definition.cjs +1 -0
- package/menu/definition.js +1 -0
- package/number-field/definition.cjs +5 -3
- package/number-field/definition.js +5 -3
- package/number-field/index.cjs +5 -3
- package/number-field/index.js +34 -32
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +76 -62
- package/pagination/definition.cjs +2 -0
- package/pagination/definition.js +2 -0
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +2 -0
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/definition.cjs +4 -0
- package/radio/definition.js +4 -0
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +1 -1
- package/range-slider/definition.cjs +2 -1
- package/range-slider/definition.js +2 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +3 -1
- package/rich-text-editor/definition.cjs +17942 -1074
- package/rich-text-editor/definition.js +17926 -1079
- package/rich-text-editor/index.cjs +29 -130
- package/rich-text-editor/index.js +5565 -2474
- package/searchable-select/definition.cjs +6 -2
- package/searchable-select/definition.js +6 -2
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +14 -10
- package/select/definition.cjs +22 -4
- package/select/definition.js +22 -4
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/color-picker/base-color-picker.d.ts +2 -1
- package/shared/patterns/anchored.d.ts +8 -8
- package/shared/patterns/char-count/char-count.d.ts +1 -1
- package/shared/patterns/localized.d.ts +386 -0
- package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
- package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
- package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
- package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
- package/shared/utils/promise.d.ts +7 -0
- package/simple-color-picker/definition.cjs +11 -6
- package/simple-color-picker/definition.js +11 -6
- package/simple-color-picker/index.cjs +6 -6
- package/simple-color-picker/index.js +44 -39
- package/slider/definition.cjs +7 -1
- package/slider/definition.js +7 -1
- package/styles/core/all.css +5 -1
- package/styles/core/theme.css +5 -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/switch/definition.cjs +1 -0
- package/switch/definition.js +1 -0
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -0
- package/tabs/definition.cjs +2 -0
- package/tabs/definition.js +2 -0
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +2 -0
- package/tag/definition.cjs +34 -14
- package/tag/definition.js +34 -14
- package/tag/index.cjs +25 -12
- package/tag/index.js +64 -47
- package/tag-group/definition.cjs +1 -2
- package/tag-group/definition.js +1 -2
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +11 -12
- package/text-area/definition.cjs +13 -7
- package/text-area/definition.js +13 -7
- package/text-area/index.cjs +6 -6
- package/text-area/index.js +20 -14
- package/text-field/definition.cjs +16 -6
- package/text-field/definition.js +16 -6
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/toggletip/definition.cjs +5 -1
- package/toggletip/definition.js +5 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/definition.cjs +6 -3
- package/tooltip/definition.js +6 -3
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-view/definition.cjs +28 -6
- package/tree-view/definition.js +28 -6
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +28 -6
- package/unbundled/_commonjsHelpers.cjs +0 -26
- package/unbundled/_commonjsHelpers.js +1 -26
- package/unbundled/attribute-binding-behaviour.cjs +1 -0
- package/unbundled/attribute-binding-behaviour.js +1 -0
- package/unbundled/base-color-picker.cjs +45 -21
- package/unbundled/base-color-picker.js +45 -21
- package/unbundled/base-progress.cjs +3 -0
- package/unbundled/base-progress.js +3 -0
- package/unbundled/button.cjs +14 -10
- package/unbundled/button.js +14 -10
- package/unbundled/calendar-picker.template.cjs +3 -1
- package/unbundled/calendar-picker.template.js +3 -1
- package/unbundled/definition.cjs +1 -0
- package/unbundled/definition.js +1 -0
- package/unbundled/definition2.cjs +4 -1
- package/unbundled/definition2.js +4 -1
- package/unbundled/definition3.cjs +1 -0
- package/unbundled/definition3.js +1 -0
- package/unbundled/definition4.cjs +1 -0
- package/unbundled/definition4.js +1 -0
- package/unbundled/definition5.cjs +3 -2
- package/unbundled/definition5.js +4 -3
- package/unbundled/delegates-aria.cjs +1 -0
- package/unbundled/delegates-aria.js +1 -0
- package/unbundled/form-associated.cjs +4 -0
- package/unbundled/form-associated.js +4 -0
- package/unbundled/listbox.cjs +16 -1
- package/unbundled/listbox.js +16 -1
- package/unbundled/localized.cjs +36 -0
- package/unbundled/localized.js +37 -2
- package/unbundled/mixins.cjs +2 -0
- package/unbundled/mixins.js +2 -0
- package/unbundled/picker-field.template.cjs +3 -35
- package/unbundled/picker-field.template.js +3 -34
- package/unbundled/scrollIntoView.cjs +1 -0
- package/unbundled/scrollIntoView.js +1 -0
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +5 -1
- package/unbundled/time-selection-picker.template.js +5 -1
- package/unbundled/trapped-focus.cjs +37 -0
- package/unbundled/trapped-focus.js +34 -0
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/video-player/definition.cjs +54 -44
- package/video-player/definition.js +50 -40
- package/video-player/index.cjs +28 -28
- package/video-player/index.js +1448 -1442
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +6463 -6099
- package/bundled/_has.cjs +0 -1
- package/bundled/_has.js +0 -34
- package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +0 -4
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +0 -18
- package/lib/rich-text-editor/image-placeholder/definition.d.ts +0 -2
- package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +0 -7
- package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +0 -4
- package/lib/rich-text-editor/menubar/consts.d.ts +0 -18
- package/lib/rich-text-editor/menubar/definition.d.ts +0 -2
- package/lib/rich-text-editor/menubar/menubar.d.ts +0 -386
- package/lib/rich-text-editor/menubar/menubar.template.d.ts +0 -4
package/bundled/definition12.js
CHANGED
|
@@ -1,44 +1,226 @@
|
|
|
1
|
-
import { I as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { I as b, i as f } from "./definition2.js";
|
|
2
|
+
import { V as m, a as c, o as d, v as h, h as l, c as x, d as _ } from "./vivid-element.js";
|
|
3
|
+
import { A as y, a as u, I as g } from "./affix.js";
|
|
4
|
+
import { H as S, a as k } from "./host-semantics.js";
|
|
5
|
+
import { i as w } from "./dom.js";
|
|
6
|
+
import { w as s } from "./when.js";
|
|
7
|
+
import { c as z } from "./class-names.js";
|
|
8
|
+
var T = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, r = (e, a, n, t) => {
|
|
9
|
+
for (var i = t > 1 ? void 0 : t ? $(a, n) : a, p = e.length - 1, v; p >= 0; p--)
|
|
10
|
+
(v = e[p]) && (i = (t ? v(a, n, i) : v(i)) || i);
|
|
11
|
+
return t && i && T(a, n, i), i;
|
|
9
12
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
function V(e) {
|
|
14
|
+
return w(e) && (e.getAttribute("role") === "option" || e instanceof HTMLOptionElement || e instanceof o);
|
|
15
|
+
}
|
|
16
|
+
class o extends S(
|
|
17
|
+
y(m)
|
|
18
|
+
) {
|
|
19
|
+
constructor(a, n, t, i) {
|
|
20
|
+
super(), this.defaultSelected = !1, this.dirtySelected = !1, this.value = "", this._highlighted = !1, this._displayCheckmark = !1, this._vvdSearchText = "", this._isNotMatching = !1, a && (this.text = a), n && (this.value = n), t && (this.defaultSelected = t), i && (this.selected = i), this.proxy = new Option(
|
|
21
|
+
this.text,
|
|
22
|
+
this.value,
|
|
23
|
+
this.defaultSelected,
|
|
24
|
+
this.selected
|
|
25
|
+
), this.proxy.disabled = this.disabled;
|
|
26
|
+
}
|
|
27
|
+
defaultSelectedChanged() {
|
|
28
|
+
this.dirtySelected || (this.selected = this.defaultSelected, this.proxy instanceof HTMLOptionElement && (this.proxy.selected = this.defaultSelected)), this.proxy instanceof HTMLOptionElement && (this.proxy.defaultSelected = this.defaultSelected);
|
|
29
|
+
}
|
|
30
|
+
disabledChanged() {
|
|
31
|
+
/* v8 ignore if -- @preserve */
|
|
32
|
+
this.proxy instanceof HTMLOptionElement && (this.proxy.disabled = this.disabled);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `defaultSelected` instead.
|
|
36
|
+
*/
|
|
37
|
+
get selectedAttribute() {
|
|
38
|
+
return this.defaultSelected;
|
|
39
|
+
}
|
|
40
|
+
set selectedAttribute(a) {
|
|
41
|
+
this.defaultSelected = a;
|
|
42
|
+
}
|
|
43
|
+
selectedChanged() {
|
|
44
|
+
this.dirtySelected || (this.dirtySelected = !0), this.proxy instanceof HTMLOptionElement && (this.proxy.selected = this.selected);
|
|
45
|
+
}
|
|
46
|
+
valueChanged() {
|
|
47
|
+
if (typeof this.value != "string") {
|
|
48
|
+
this.value = "";
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.proxy instanceof HTMLOptionElement && (this.proxy.value = this.value);
|
|
52
|
+
}
|
|
53
|
+
get label() {
|
|
54
|
+
return this._label ?? this.text;
|
|
55
|
+
}
|
|
56
|
+
set label(a) {
|
|
57
|
+
this._label = a;
|
|
58
|
+
}
|
|
59
|
+
set text(a) {
|
|
60
|
+
this._text = a;
|
|
13
61
|
}
|
|
62
|
+
get text() {
|
|
63
|
+
return this._text ?? "";
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Provides an accessible name for use by parent components.
|
|
67
|
+
* Note: Does not implement full accessible name computation, e.g. slotted content is missed.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
_getAccessibleName() {
|
|
71
|
+
return this.ariaLabel || `${this.text}${this.textSecondary ? ` ${this.textSecondary}` : ""}`;
|
|
72
|
+
}
|
|
73
|
+
get form() {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
get _hasMatchedText() {
|
|
77
|
+
return !!(this.matchedText ?? this._vvdSearchText);
|
|
78
|
+
}
|
|
79
|
+
get _matchedRange() {
|
|
80
|
+
const a = this.matchedText ?? this._vvdSearchText;
|
|
81
|
+
if (a) {
|
|
82
|
+
const n = this.text.toLowerCase().indexOf(a.toLowerCase());
|
|
83
|
+
return n === -1 ? { from: 0, to: 0 } : {
|
|
84
|
+
from: n,
|
|
85
|
+
to: n + a.length
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return { from: 0, to: 0 };
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
connectedCallback() {
|
|
94
|
+
super.connectedCallback(), this.dirtySelected || (this.selected = this.defaultSelected, this.dirtySelected = !1);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
r([
|
|
98
|
+
c({
|
|
99
|
+
converter: {
|
|
100
|
+
fromView: (e) => {
|
|
101
|
+
if (e === !0 || e === "true")
|
|
102
|
+
return !0;
|
|
103
|
+
if (e === !1 || e === "false")
|
|
104
|
+
return !1;
|
|
105
|
+
},
|
|
106
|
+
toView: (e) => e
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
], o.prototype, "checked", 2);
|
|
110
|
+
r([
|
|
111
|
+
c({ attribute: "selected", mode: "boolean" })
|
|
112
|
+
], o.prototype, "defaultSelected", 2);
|
|
113
|
+
r([
|
|
114
|
+
c({ mode: "boolean" })
|
|
115
|
+
], o.prototype, "disabled", 2);
|
|
116
|
+
r([
|
|
117
|
+
c({ attribute: "current-selected", mode: "boolean" })
|
|
118
|
+
], o.prototype, "selected", 2);
|
|
119
|
+
r([
|
|
120
|
+
c({ attribute: "value" })
|
|
121
|
+
], o.prototype, "value", 2);
|
|
122
|
+
r([
|
|
123
|
+
c({
|
|
124
|
+
attribute: "label"
|
|
125
|
+
})
|
|
126
|
+
], o.prototype, "_label", 2);
|
|
127
|
+
r([
|
|
128
|
+
c({
|
|
129
|
+
attribute: "text"
|
|
130
|
+
})
|
|
131
|
+
], o.prototype, "_text", 2);
|
|
132
|
+
r([
|
|
133
|
+
c({ attribute: "text-secondary" })
|
|
134
|
+
], o.prototype, "textSecondary", 2);
|
|
135
|
+
r([
|
|
136
|
+
d
|
|
137
|
+
], o.prototype, "_highlighted", 2);
|
|
138
|
+
r([
|
|
139
|
+
d
|
|
140
|
+
], o.prototype, "_displayCheckmark", 2);
|
|
141
|
+
r([
|
|
142
|
+
c({ attribute: "matched-text" })
|
|
143
|
+
], o.prototype, "matchedText", 2);
|
|
144
|
+
r([
|
|
145
|
+
d
|
|
146
|
+
], o.prototype, "_vvdSearchText", 2);
|
|
147
|
+
r([
|
|
148
|
+
h
|
|
149
|
+
], o.prototype, "_hasMatchedText", 1);
|
|
150
|
+
r([
|
|
151
|
+
d
|
|
152
|
+
], o.prototype, "_isNotMatching", 2);
|
|
153
|
+
r([
|
|
154
|
+
h
|
|
155
|
+
], o.prototype, "_matchedRange", 1);
|
|
156
|
+
r([
|
|
157
|
+
c({ attribute: "tag-connotation" })
|
|
158
|
+
], o.prototype, "tagConnotation", 2);
|
|
159
|
+
const C = (e) => z(
|
|
160
|
+
"base",
|
|
161
|
+
["disabled", e.disabled],
|
|
162
|
+
["selected", !!e.selected],
|
|
163
|
+
["hover", !!e._highlighted],
|
|
164
|
+
["active", !!e.checked],
|
|
165
|
+
["icon", !!e.icon],
|
|
166
|
+
["two-lines", !!e.text?.length && !!e.textSecondary?.length]
|
|
167
|
+
);
|
|
168
|
+
function O() {
|
|
169
|
+
return l`${s(
|
|
170
|
+
(e) => e.text || e.textSecondary,
|
|
171
|
+
l`<span class="text">
|
|
172
|
+
${s(
|
|
173
|
+
(e) => e.text,
|
|
174
|
+
l`<span class="text-primary">
|
|
175
|
+
${s(
|
|
176
|
+
(e) => e._hasMatchedText,
|
|
177
|
+
l`${(e) => e.text.slice(0, e._matchedRange.from)}<span class="match"
|
|
178
|
+
>${(e) => e.text.slice(e._matchedRange.from, e._matchedRange.to)}</span
|
|
179
|
+
>`
|
|
180
|
+
)}${(e) => e.text.slice(e._matchedRange.to)}
|
|
181
|
+
</span>`
|
|
182
|
+
)}
|
|
183
|
+
${s(
|
|
184
|
+
(e) => e.textSecondary,
|
|
185
|
+
l`<span class="text-secondary">${(e) => e.textSecondary}</span>`
|
|
186
|
+
)}
|
|
187
|
+
</span>`
|
|
188
|
+
)}`;
|
|
14
189
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
190
|
+
const L = (e) => {
|
|
191
|
+
const a = u(e), n = e.tagFor(b);
|
|
192
|
+
return l`
|
|
193
|
+
<template
|
|
194
|
+
${k({
|
|
195
|
+
role: "option",
|
|
196
|
+
ariaChecked: (t) => t.checked,
|
|
197
|
+
ariaSelected: (t) => t.selected,
|
|
198
|
+
ariaDisabled: (t) => t.disabled
|
|
199
|
+
})}
|
|
200
|
+
style="${(t) => t._isNotMatching ? "display: none" : ""}"
|
|
201
|
+
>
|
|
202
|
+
<div class="${C}">
|
|
203
|
+
${(t) => a(t.icon, g.Slot)} ${O()}
|
|
204
|
+
<slot name="trailing-meta"></slot>
|
|
205
|
+
${s(
|
|
206
|
+
(t) => t._displayCheckmark && t.selected,
|
|
207
|
+
l`<${n} class="checkmark" name="check-line"></${n}>`
|
|
208
|
+
)}
|
|
209
|
+
</div>
|
|
210
|
+
</template>
|
|
29
211
|
`;
|
|
30
|
-
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
[
|
|
212
|
+
}, M = ":host([disabled]){cursor:not-allowed}.base{--_connotation-color-primary: var(--vvd-option-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-option-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-option-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-option-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-option-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-option-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-option-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-option-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:flex;box-sizing:border-box;align-items:center;border-radius:8px;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_option-appearance-color-text, var(--_appearance-color-text));font:var(--vvd-typography-base);gap:var(--_option-gap);hyphens:auto;inline-size:100%;min-block-size:var(--_option-min-block-size);padding-inline:var(--_option-padding-inline);vertical-align:middle;word-break:break-word}.base{--_option-min-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_option-padding-inline: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_option-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) }.base:not(.two-lines){--_option-gap: calc( calc(1px*(36 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) / 3);padding-block:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/4)}.base.two-lines{gap:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.4);padding-block:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2)}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){cursor:pointer}.base.disabled{pointer-events:none}:host([scale=condensed]) .base{--_option-min-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_option-padding-inline: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_option-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) }:host([scale=condensed]) .base:not(.two-lines){--_option-gap: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/5) ;padding-block:calc(calc(1px*(36 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 6)}:host([scale=condensed]) .base.two-lines{gap:calc(calc(1px*(36 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 3);padding-block:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/4)}.base.active{--focus-stroke-color: var(--vvd-color-cta-500);--focus-stroke-gap-color: transparent;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))}.base.hidden{display:none}.text{display:flex;flex-direction:column;font:var(--vvd-typography-base);gap:4px;margin-inline-end:auto}.text-primary,.text-secondary{display:block;font:var(--vvd-typography-base)}.text-primary{font:var(--vvd-typography-base)}.base:not(.disabled) .text-primary{color:var(--vvd-color-canvas-text)}.base.disabled .text-primary{color:var(--_appearance-color-text)}.base.two-lines .text-primary{font:var(--vvd-typography-base-bold)}.text-secondary{color:var(--vvd-color-neutral-800);font:var(--vvd-typography-base-condensed)}.base.two-lines .text-secondary{color:var(--vvd-color-neutral-600)}.base.disabled .text-secondary{color:var(--_appearance-color-text)}.base.selected:not(.disabled) .text-secondary{color:var(--vvd-color-neutral-800)}.match{color:var(--vvd-color-cta-600);font:var(--vvd-typography-base-bold)}slot[name=icon]{font-size:var(--_option-icon-size);line-height:1}.base:not(.disabled,.selected) slot[name=icon]{color:var(--vvd-color-neutral-600)}.checkmark{font-size:var(--_option-icon-size)}", H = _(
|
|
213
|
+
"option",
|
|
214
|
+
o,
|
|
215
|
+
L,
|
|
216
|
+
[f],
|
|
35
217
|
{
|
|
36
|
-
styles:
|
|
218
|
+
styles: M
|
|
37
219
|
}
|
|
38
|
-
),
|
|
39
|
-
k
|
|
40
|
-
);
|
|
220
|
+
), P = x(H);
|
|
41
221
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
222
|
+
o as L,
|
|
223
|
+
V as i,
|
|
224
|
+
H as l,
|
|
225
|
+
P as r
|
|
44
226
|
};
|
package/bundled/definition13.cjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
"use strict";const i=require("./vivid-element.cjs"),
|
|
1
|
+
"use strict";const l=require("./definition2.cjs"),i=require("./definition17.cjs"),n=require("./vivid-element.cjs"),v=require("./class-names.cjs");var d=Object.defineProperty,u=(o,r,a,x)=>{for(var t=void 0,e=o.length-1,c;e>=0;e--)(c=o[e])&&(t=c(r,a,t)||t);return t&&d(r,a,t),t};class s extends n.VividElement{constructor(){super(...arguments),this.placement="right"}}u([n.attr({mode:"fromView"})],s.prototype,"placement");const f=o=>v.classNames("control"),_=o=>{const r=o.tagFor(i.Toggletip),a=o.tagFor(l.Icon);return n.html`
|
|
2
|
+
<${r} class="base" exportparts="vvd-theme-alternate">
|
|
3
|
+
<button class="${f}" slot="anchor">
|
|
4
|
+
<slot name="icon" slot="icon">
|
|
5
|
+
<${a} name="help-solid"></${a}>
|
|
6
|
+
</slot>
|
|
7
|
+
</button>
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</${r}>
|
|
10
|
+
`},b=".control{--_connotation-color-primary: var(--vvd-button-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-button-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-button-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-contrast: var(--vvd-button-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-button-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm: var(--vvd-button-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-button-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-button-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-fierce-primary: var(--vvd-button-accent-fierce-primary, var(--vvd-color-canvas-text))}.control{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control{--focus-stroke-gap-color: transparent;display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border:0 none;border-radius:50%;margin:0;background-color:var(--_appearance-color-fill);block-size:var(--_button-block-size, 24px);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);cursor:pointer;padding-inline:calc(var(--_button-block-size, 24px) / 6);vertical-align:middle}@supports (aspect-ratio: auto){.control{padding:0;aspect-ratio:1/1}}.control: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))}slot[name=icon]{font-size:var(--_button-icon-size, 16px);line-height:1}",p=n.defineVividComponent("contextual-help",s,_,[l.iconDefinition,i.toggletipDefinition],{styles:b}),m=n.createRegisterFunction(p);exports.contextualHelpDefinition=p;exports.registerContextualHelp=m;
|
package/bundled/definition13.js
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { I as l, i } from "./definition2.js";
|
|
2
|
+
import { T as s, t as p } from "./definition17.js";
|
|
3
|
+
import { V as v, a as d, h as u, c as f, d as _ } from "./vivid-element.js";
|
|
4
|
+
import { c as m } from "./class-names.js";
|
|
5
|
+
var b = Object.defineProperty, x = (o, r, t, w) => {
|
|
6
|
+
for (var a = void 0, n = o.length - 1, e; n >= 0; n--)
|
|
7
|
+
(e = o[n]) && (a = e(r, t, a) || a);
|
|
8
|
+
return a && b(r, t, a), a;
|
|
9
|
+
};
|
|
10
|
+
class c extends v {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.placement = "right";
|
|
13
|
+
}
|
|
4
14
|
}
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
x([
|
|
16
|
+
d({ mode: "fromView" })
|
|
17
|
+
], c.prototype, "placement");
|
|
18
|
+
const g = (o) => m("control"), h = (o) => {
|
|
19
|
+
const r = o.tagFor(s), t = o.tagFor(l);
|
|
20
|
+
return u`
|
|
21
|
+
<${r} class="base" exportparts="vvd-theme-alternate">
|
|
22
|
+
<button class="${g}" slot="anchor">
|
|
23
|
+
<slot name="icon" slot="icon">
|
|
24
|
+
<${t} name="help-solid"></${t}>
|
|
25
|
+
</slot>
|
|
26
|
+
</button>
|
|
27
|
+
<slot></slot>
|
|
28
|
+
</${r}>
|
|
29
|
+
`;
|
|
30
|
+
}, y = ".control{--_connotation-color-primary: var(--vvd-button-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-button-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-button-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-contrast: var(--vvd-button-accent-contrast, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-button-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-firm: var(--vvd-button-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-button-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-button-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-fierce-primary: var(--vvd-button-accent-fierce-primary, var(--vvd-color-canvas-text))}.control{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control{--focus-stroke-gap-color: transparent;display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border:0 none;border-radius:50%;margin:0;background-color:var(--_appearance-color-fill);block-size:var(--_button-block-size, 24px);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);cursor:pointer;padding-inline:calc(var(--_button-block-size, 24px) / 6);vertical-align:middle}@supports (aspect-ratio: auto){.control{padding:0;aspect-ratio:1/1}}.control: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))}slot[name=icon]{font-size:var(--_button-icon-size, 16px);line-height:1}", k = _(
|
|
31
|
+
"contextual-help",
|
|
32
|
+
c,
|
|
33
|
+
h,
|
|
34
|
+
[i, p],
|
|
10
35
|
{
|
|
11
|
-
styles:
|
|
36
|
+
styles: y
|
|
12
37
|
}
|
|
13
|
-
),
|
|
14
|
-
|
|
38
|
+
), H = f(
|
|
39
|
+
k
|
|
15
40
|
);
|
|
16
41
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
a as v
|
|
42
|
+
k as c,
|
|
43
|
+
H as r
|
|
20
44
|
};
|
package/bundled/definition14.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
${r.applyHostSemantics({role:e=>e.role||t.DividerRole.separator,ariaHidden:!0,ariaOrientation:l})}
|
|
3
|
-
>
|
|
4
|
-
<span class="${c}"></span
|
|
5
|
-
></template>`,a=o.defineVividComponent("divider",t.Divider,d,[],{styles:s}),v=o.createRegisterFunction(a);exports.dividerDefinition=a;exports.registerDivider=v;
|
|
1
|
+
"use strict";const i=require("./vivid-element.cjs"),n=":host{display:contents}slot:not(:focus-within){position:absolute;display:inline;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";class e extends i.VividElement{}const s=()=>i.html`<slot></slot>`,t=i.defineVividComponent("visually-hidden",e,s,[],{styles:n}),l=i.createRegisterFunction(t);exports.VisuallyHidden=e;exports.registerVisuallyHidden=l;exports.visuallyHiddenDefinition=t;
|
package/bundled/definition14.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
), v = ({ role: o, orientation: a }) => o === e.presentation ? null : a, p = i`<template
|
|
10
|
-
${n({
|
|
11
|
-
role: (o) => o.role || e.separator,
|
|
12
|
-
ariaHidden: !0,
|
|
13
|
-
ariaOrientation: v
|
|
14
|
-
})}
|
|
15
|
-
>
|
|
16
|
-
<span class="${d}"></span
|
|
17
|
-
></template>`, m = r(
|
|
18
|
-
"divider",
|
|
19
|
-
s,
|
|
20
|
-
p,
|
|
1
|
+
import { V as i, h as s, c as e, d as t } from "./vivid-element.js";
|
|
2
|
+
const n = ":host{display:contents}slot:not(:focus-within){position:absolute;display:inline;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";
|
|
3
|
+
class l extends i {
|
|
4
|
+
}
|
|
5
|
+
const o = () => s`<slot></slot>`, a = t(
|
|
6
|
+
"visually-hidden",
|
|
7
|
+
l,
|
|
8
|
+
o,
|
|
21
9
|
[],
|
|
22
10
|
{
|
|
23
|
-
styles:
|
|
11
|
+
styles: n
|
|
24
12
|
}
|
|
25
|
-
),
|
|
13
|
+
), p = e(
|
|
14
|
+
a
|
|
15
|
+
);
|
|
26
16
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
l as V,
|
|
18
|
+
p as r,
|
|
19
|
+
a as v
|
|
29
20
|
};
|
package/bundled/definition15.cjs
CHANGED
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
${c.when(r=>typeof r.value=="number",e.html`
|
|
7
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
8
|
-
<circle class="background" cx="8px" cy="8px" r="7px"></circle>
|
|
9
|
-
<circle
|
|
10
|
-
class="determinate"
|
|
11
|
-
style="stroke-dasharray: ${r=>p*r.percentComplete/100}px ${p}px"
|
|
12
|
-
cx="8px"
|
|
13
|
-
cy="8px"
|
|
14
|
-
r="7px"
|
|
15
|
-
></circle>
|
|
16
|
-
</svg>
|
|
17
|
-
`)}
|
|
18
|
-
${c.when(r=>typeof r.value!="number",e.html`
|
|
19
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
20
|
-
<circle class="background" cx="8px" cy="8px" r="7px"></circle>
|
|
21
|
-
<circle
|
|
22
|
-
class="indeterminate-indicator-1"
|
|
23
|
-
cx="8px"
|
|
24
|
-
cy="8px"
|
|
25
|
-
r="7px"
|
|
26
|
-
></circle>
|
|
27
|
-
</svg>
|
|
28
|
-
`)}
|
|
29
|
-
</div>
|
|
30
|
-
</template>`,d=e.defineVividComponent("progress-ring",n,u,[],{styles:f}),_=e.createRegisterFunction(d);exports.ProgressRing=n;exports.progressRingDefinition=d;exports.registerProgressRing=_;
|
|
1
|
+
"use strict";const o=require("./vivid-element.cjs"),t=require("./divider.cjs"),r=require("./host-semantics.cjs"),n=require("./class-names.cjs"),s=":host{display:block}.base{--_connotation-color-soft: var(--vvd-divider-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-divider-accent-dim, var(--vvd-color-neutral-200))}.base{display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}",c=({orientation:e,appearance:i})=>n.classNames("base",[`${e}`,!!e],[`appearance-${i}`,!!i]),l=({role:e,orientation:i})=>e===t.DividerRole.presentation?null:i,d=o.html`<template
|
|
2
|
+
${r.applyHostSemantics({role:e=>e.role||t.DividerRole.separator,ariaHidden:!0,ariaOrientation:l})}
|
|
3
|
+
>
|
|
4
|
+
<span class="${c}"></span
|
|
5
|
+
></template>`,a=o.defineVividComponent("divider",t.Divider,d,[],{styles:s}),v=o.createRegisterFunction(a);exports.dividerDefinition=a;exports.registerDivider=v;
|
package/bundled/definition15.js
CHANGED
|
@@ -1,80 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const _ = ":host{--_vvd-progress-ring-accent-firm-wrapper: var( --vvd-progress-ring-accent-firm );--_vvd-progress-ring-cta-firm-wrapper: var( --vvd-progress-ring-cta-firm );--_vvd-progress-ring-alert-firm-wrapper: var( --vvd-progress-ring-alert-firm );--_vvd-progress-ring-success-firm-wrapper: var( --vvd-progress-ring-success-firm )}.base{--vvd-progress-ring-accent-firm: var( --_vvd-progress-ring-accent-firm-wrapper, var(--vvd-progress-ring-accent-primary) );--vvd-progress-ring-cta-firm: var( --_vvd-progress-ring-cta-firm-wrapper, var(--vvd-progress-ring-cta-primary) );--vvd-progress-ring-alert-firm: var( --_vvd-progress-ring-alert-firm-wrapper, var(--vvd-progress-ring-alert-primary) );--vvd-progress-ring-success-firm: var( --_vvd-progress-ring-success-firm-wrapper, var(--vvd-progress-ring-success-primary) )}.base.connotation-cta{--_connotation-color-firm: var(--vvd-progress-ring-cta-firm, var(--vvd-color-cta-600))}.base.connotation-alert{--_connotation-color-firm: var(--vvd-progress-ring-alert-firm, var(--vvd-color-alert-600))}.base.connotation-success{--_connotation-color-firm: var(--vvd-progress-ring-success-firm, var(--vvd-color-success-600))}.base:not(.connotation-cta,.connotation-alert,.connotation-success){--_connotation-color-firm: var(--vvd-progress-ring-accent-firm, var(--vvd-color-canvas-text))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base.size--6{--_size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) - (1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))) }.base.size--5{--_size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size--4{--_size: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size--3{--_size: calc(1px*(28 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size--2{--_size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size--1{--_size: calc(1px*(36 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-1{--_size: calc(1px*(44 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-2{--_size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-3{--_size: calc(1px*(52 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-4{--_size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-5{--_size: calc(1px*(60 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-1,.size-2,.size-3,.size-4,.size-5){--_size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base{align-items:center;block-size:var(--_size);color:var(--_appearance-color-text);inline-size:var(--_size);outline:none}.progress{width:100%;height:100%}.background{fill:none;stroke:transparent;stroke-width:1px}.determinate{fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1px;transform:rotate(-90deg);transform-origin:50% 50%;transition:all .2s ease-in-out}.indeterminate-indicator-1{animation:spin-infinite 2s linear infinite;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1px;transform:rotate(-90deg);transform-origin:50% 50%;transition:all .2s ease-in-out}.base.paused .indeterminate-indicator-1{animation-play-state:paused}@keyframes spin-infinite{0%{stroke-dasharray:.01px 43.97px;transform:rotate(0)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}to{stroke-dasharray:.01px 43.97px;transform:rotate(1080deg)}}";
|
|
7
|
-
var u = Object.defineProperty, l = (r, a, s, w) => {
|
|
8
|
-
for (var e = void 0, i = r.length - 1, t; i >= 0; i--)
|
|
9
|
-
(t = r[i]) && (e = t(a, s, e) || e);
|
|
10
|
-
return e && u(a, s, e), e;
|
|
11
|
-
};
|
|
12
|
-
class n extends f(m) {
|
|
13
|
-
}
|
|
14
|
-
l([
|
|
15
|
-
v
|
|
16
|
-
], n.prototype, "connotation");
|
|
17
|
-
l([
|
|
18
|
-
v
|
|
19
|
-
], n.prototype, "size");
|
|
20
|
-
const b = ({ connotation: r, size: a, paused: s }) => x(
|
|
1
|
+
import { h as i, c as t, d as r } from "./vivid-element.js";
|
|
2
|
+
import { a as e, D as s } from "./divider.js";
|
|
3
|
+
import { a as n } from "./host-semantics.js";
|
|
4
|
+
import { c } from "./class-names.js";
|
|
5
|
+
const l = ":host{display:block}.base{--_connotation-color-soft: var(--vvd-divider-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-divider-accent-dim, var(--vvd-color-neutral-200))}.base{display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}", d = ({ orientation: o, appearance: a }) => c(
|
|
21
6
|
"base",
|
|
22
|
-
[
|
|
23
|
-
[`
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
role: "progressbar",
|
|
30
|
-
ariaValueNow: (r) => r.value,
|
|
31
|
-
ariaValueMin: (r) => r.min,
|
|
32
|
-
ariaValueMax: (r) => r.max
|
|
7
|
+
[`${o}`, !!o],
|
|
8
|
+
[`appearance-${a}`, !!a]
|
|
9
|
+
), v = ({ role: o, orientation: a }) => o === e.presentation ? null : a, p = i`<template
|
|
10
|
+
${n({
|
|
11
|
+
role: (o) => o.role || e.separator,
|
|
12
|
+
ariaHidden: !0,
|
|
13
|
+
ariaOrientation: v
|
|
33
14
|
})}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<circle
|
|
41
|
-
class="determinate"
|
|
42
|
-
style="stroke-dasharray: ${(r) => p * r.percentComplete / 100}px ${p}px"
|
|
43
|
-
cx="8px"
|
|
44
|
-
cy="8px"
|
|
45
|
-
r="7px"
|
|
46
|
-
></circle>
|
|
47
|
-
</svg>
|
|
48
|
-
`
|
|
49
|
-
)}
|
|
50
|
-
${c(
|
|
51
|
-
(r) => typeof r.value != "number",
|
|
52
|
-
o`
|
|
53
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
-
<circle class="background" cx="8px" cy="8px" r="7px"></circle>
|
|
55
|
-
<circle
|
|
56
|
-
class="indeterminate-indicator-1"
|
|
57
|
-
cx="8px"
|
|
58
|
-
cy="8px"
|
|
59
|
-
r="7px"
|
|
60
|
-
></circle>
|
|
61
|
-
</svg>
|
|
62
|
-
`
|
|
63
|
-
)}
|
|
64
|
-
</div>
|
|
65
|
-
</template>`, k = g(
|
|
66
|
-
"progress-ring",
|
|
67
|
-
n,
|
|
68
|
-
y,
|
|
15
|
+
>
|
|
16
|
+
<span class="${d}"></span
|
|
17
|
+
></template>`, m = r(
|
|
18
|
+
"divider",
|
|
19
|
+
s,
|
|
20
|
+
p,
|
|
69
21
|
[],
|
|
70
22
|
{
|
|
71
|
-
styles:
|
|
23
|
+
styles: l
|
|
72
24
|
}
|
|
73
|
-
),
|
|
74
|
-
k
|
|
75
|
-
);
|
|
25
|
+
), k = t(m);
|
|
76
26
|
export {
|
|
77
|
-
|
|
78
|
-
k as
|
|
79
|
-
B as r
|
|
27
|
+
m as d,
|
|
28
|
+
k as r
|
|
80
29
|
};
|