@vonage/vivid 3.53.0 → 3.55.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/index.cjs +0 -14
- package/accordion/index.js +0 -14
- package/accordion-item/index.cjs +0 -11
- package/accordion-item/index.js +0 -11
- package/action-group/index.cjs +0 -2
- package/action-group/index.js +0 -2
- package/alert/index.cjs +0 -23
- package/alert/index.js +0 -23
- package/appearance-ui/index.cjs +11 -12
- package/appearance-ui/index.js +11 -12
- package/audio-player/index.cjs +0 -28
- package/audio-player/index.js +0 -28
- package/avatar/index.cjs +0 -6
- package/avatar/index.js +0 -6
- package/badge/index.cjs +0 -9
- package/badge/index.js +0 -9
- package/banner/index.cjs +0 -22
- package/banner/index.js +0 -22
- package/breadcrumb/index.cjs +0 -8
- package/breadcrumb/index.js +0 -8
- package/breadcrumb-item/index.cjs +0 -15
- package/breadcrumb-item/index.js +0 -15
- package/button/index.cjs +0 -18
- package/button/index.js +0 -18
- package/calendar/index.cjs +0 -4
- package/calendar/index.js +0 -4
- package/calendar-event/index.cjs +0 -4
- package/calendar-event/index.js +0 -4
- package/card/index.cjs +0 -9
- package/card/index.js +0 -9
- package/checkbox/index.cjs +0 -14
- package/checkbox/index.js +0 -14
- package/combobox/index.cjs +0 -31
- package/combobox/index.js +0 -31
- package/custom-elements.json +396 -55
- package/data-grid/index.cjs +0 -11
- package/data-grid/index.js +0 -11
- package/date-picker/index.cjs +0 -34
- package/date-picker/index.js +0 -34
- package/date-range-picker/index.cjs +0 -34
- package/date-range-picker/index.js +0 -34
- package/dial-pad/index.cjs +0 -28
- package/dial-pad/index.js +0 -28
- package/dialog/index.cjs +0 -23
- package/dialog/index.js +0 -23
- package/divider/index.cjs +0 -3
- package/divider/index.js +0 -3
- package/elevation/index.cjs +0 -2
- package/elevation/index.js +0 -2
- package/empty-state/index.cjs +0 -7
- package/empty-state/index.js +0 -7
- package/fab/index.cjs +0 -15
- package/fab/index.js +0 -15
- package/file-picker/index.cjs +0 -23
- package/file-picker/index.js +0 -23
- package/header/index.cjs +0 -3
- package/header/index.js +0 -3
- package/icon/index.cjs +0 -5
- package/icon/index.js +0 -5
- package/index.cjs +0 -44
- package/index.js +0 -44
- package/layout/index.cjs +0 -2
- package/layout/index.js +0 -2
- package/lib/appearance-ui/appearance-ui.d.ts +1 -1
- package/lib/audio-player/audio-player.d.ts +4 -0
- package/lib/audio-player/locale.d.ts +2 -0
- package/lib/combobox/combobox.d.ts +1 -0
- package/lib/dial-pad/dial-pad.d.ts +4 -0
- package/lib/enums.d.ts +1 -0
- package/lib/menu/menu.d.ts +2 -3
- package/lib/nav-disclosure/nav-disclosure.d.ts +5 -0
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/video-player/vivid-video-svg.d.ts +1 -0
- package/listbox/index.cjs +1 -15
- package/listbox/index.js +1 -15
- package/locales/en-GB.cjs +3 -1
- package/locales/en-GB.js +3 -1
- package/locales/en-US.cjs +3 -1
- package/locales/en-US.js +3 -1
- package/locales/ja-JP.cjs +3 -1
- package/locales/ja-JP.js +3 -1
- package/locales/zh-CN.cjs +3 -1
- package/locales/zh-CN.js +3 -1
- package/menu/index.cjs +0 -25
- package/menu/index.js +0 -25
- package/menu-item/index.cjs +0 -15
- package/menu-item/index.js +0 -15
- package/nav/index.cjs +0 -1
- package/nav/index.js +0 -1
- package/nav-disclosure/index.cjs +0 -10
- package/nav-disclosure/index.js +0 -10
- package/nav-item/index.cjs +0 -15
- package/nav-item/index.js +0 -15
- package/note/index.cjs +0 -11
- package/note/index.js +0 -11
- package/number-field/index.cjs +0 -26
- package/number-field/index.js +0 -26
- package/option/index.cjs +0 -13
- package/option/index.js +0 -13
- package/package.json +1 -1
- package/pagination/index.cjs +0 -21
- package/pagination/index.js +0 -21
- package/popup/index.cjs +0 -20
- package/popup/index.js +0 -20
- package/progress/index.cjs +0 -4
- package/progress/index.js +0 -4
- package/progress-ring/index.cjs +0 -4
- package/progress-ring/index.js +0 -4
- package/radio/index.cjs +0 -6
- package/radio/index.js +0 -6
- package/radio-group/index.cjs +0 -9
- package/radio-group/index.js +0 -9
- package/range-slider/index.cjs +0 -17
- package/range-slider/index.js +0 -17
- package/select/index.cjs +0 -31
- package/select/index.js +0 -31
- package/selectable-box/index.cjs +0 -18
- package/selectable-box/index.js +0 -18
- package/shared/affix.cjs +6 -7
- package/shared/affix.js +6 -7
- package/shared/anchored.cjs +39 -46
- package/shared/anchored.js +39 -46
- package/shared/calendar-event.cjs +10 -11
- package/shared/calendar-event.js +10 -11
- package/shared/definition.cjs +8 -9
- package/shared/definition.js +8 -9
- package/shared/definition10.cjs +1 -1
- package/shared/definition10.js +1 -1
- package/shared/definition11.cjs +20 -21
- package/shared/definition11.js +20 -21
- package/shared/definition12.cjs +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.cjs +9 -14
- package/shared/definition13.js +9 -14
- package/shared/definition14.cjs +13 -14
- package/shared/definition14.js +13 -14
- package/shared/definition15.cjs +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.cjs +16 -3
- package/shared/definition16.js +16 -3
- package/shared/definition17.cjs +155 -166
- package/shared/definition17.js +155 -166
- package/shared/definition19.cjs +2 -2
- package/shared/definition19.js +2 -2
- package/shared/definition2.cjs +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.cjs +34 -18
- package/shared/definition20.js +34 -18
- package/shared/definition21.cjs +17 -18
- package/shared/definition21.js +17 -18
- package/shared/definition22.cjs +2 -2
- package/shared/definition22.js +2 -2
- package/shared/definition23.cjs +7 -8
- package/shared/definition23.js +7 -8
- package/shared/definition24.cjs +7 -8
- package/shared/definition24.js +7 -8
- package/shared/definition25.cjs +2 -2
- package/shared/definition25.js +2 -2
- package/shared/definition26.cjs +6 -7
- package/shared/definition26.js +6 -7
- package/shared/definition27.cjs +3 -3
- package/shared/definition27.js +3 -3
- package/shared/definition28.cjs +9 -10
- package/shared/definition28.js +9 -10
- package/shared/definition29.cjs +60 -57
- package/shared/definition29.js +60 -57
- package/shared/definition3.cjs +9 -10
- package/shared/definition3.js +9 -10
- package/shared/definition30.cjs +4 -2
- package/shared/definition30.js +4 -2
- package/shared/definition31.cjs +20 -9
- package/shared/definition31.js +20 -9
- package/shared/definition32.cjs +1 -1
- package/shared/definition32.js +1 -1
- package/shared/definition33.cjs +1 -1
- package/shared/definition33.js +1 -1
- package/shared/definition34.cjs +6 -7
- package/shared/definition34.js +6 -7
- package/shared/definition35.cjs +1 -1
- package/shared/definition35.js +1 -1
- package/shared/definition36.cjs +6 -7
- package/shared/definition36.js +6 -7
- package/shared/definition37.cjs +1 -1
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +7 -8
- package/shared/definition38.js +7 -8
- package/shared/definition39.cjs +8 -9
- package/shared/definition39.js +8 -9
- package/shared/definition4.cjs +14 -15
- package/shared/definition4.js +14 -15
- package/shared/definition40.cjs +7 -8
- package/shared/definition40.js +7 -8
- package/shared/definition41.cjs +1 -1
- package/shared/definition41.js +1 -1
- package/shared/definition42.cjs +3 -3
- package/shared/definition42.js +3 -3
- package/shared/definition43.cjs +1 -1
- package/shared/definition43.js +1 -1
- package/shared/definition44.cjs +11 -12
- package/shared/definition44.js +11 -12
- package/shared/definition45.cjs +8 -9
- package/shared/definition45.js +8 -9
- package/shared/definition46.cjs +9 -10
- package/shared/definition46.js +9 -10
- package/shared/definition47.cjs +15 -16
- package/shared/definition47.js +15 -16
- package/shared/definition48.cjs +6 -7
- package/shared/definition48.js +6 -7
- package/shared/definition5.cjs +113 -33
- package/shared/definition5.js +113 -33
- package/shared/definition50.cjs +9 -10
- package/shared/definition50.js +9 -10
- package/shared/definition51.cjs +8 -9
- package/shared/definition51.js +8 -9
- package/shared/definition52.cjs +5 -6
- package/shared/definition52.js +5 -6
- package/shared/definition53.cjs +12 -13
- package/shared/definition53.js +12 -13
- package/shared/definition54.cjs +2 -2
- package/shared/definition54.js +2 -2
- package/shared/definition55.cjs +121 -63
- package/shared/definition55.js +121 -63
- package/shared/definition56.cjs +1 -1
- package/shared/definition56.js +1 -1
- package/shared/definition57.cjs +1 -1
- package/shared/definition57.js +1 -1
- package/shared/definition58.cjs +1 -1
- package/shared/definition58.js +1 -1
- package/shared/definition59.cjs +5 -6
- package/shared/definition59.js +5 -6
- package/shared/definition6.cjs +10 -11
- package/shared/definition6.js +10 -11
- package/shared/definition60.cjs +1 -1
- package/shared/definition60.js +1 -1
- package/shared/definition61.cjs +317 -15
- package/shared/definition61.js +317 -15
- package/shared/definition62.cjs +6 -7
- package/shared/definition62.js +6 -7
- package/shared/definition63.cjs +11 -15
- package/shared/definition63.js +11 -15
- package/shared/definition7.cjs +8 -9
- package/shared/definition7.js +8 -9
- package/shared/definition8.cjs +13 -14
- package/shared/definition8.js +13 -14
- package/shared/definition9.cjs +5 -6
- package/shared/definition9.js +5 -6
- package/shared/enums.cjs +1 -0
- package/shared/enums.js +1 -0
- package/shared/icon.cjs +23 -9
- package/shared/icon.js +24 -10
- package/shared/index.cjs +38 -19
- package/shared/index.js +38 -19
- package/shared/index2.cjs +30 -26
- package/shared/index2.js +30 -26
- package/shared/listbox.cjs +6 -7
- package/shared/listbox.js +6 -7
- package/shared/presentationDate.cjs +40 -50
- package/shared/presentationDate.js +40 -50
- package/shared/radio.cjs +6 -7
- package/shared/radio.js +6 -7
- package/shared/slider.template.cjs +1 -1
- package/shared/slider.template.js +1 -1
- package/shared/text-anchor.cjs +6 -7
- package/shared/text-anchor.js +6 -7
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/shared/utils/numberConverter.d.ts +2 -0
- package/side-drawer/index.cjs +0 -3
- package/side-drawer/index.js +0 -3
- package/slider/index.cjs +0 -10
- package/slider/index.js +0 -10
- package/split-button/index.cjs +0 -13
- package/split-button/index.js +0 -13
- 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/switch/index.cjs +0 -8
- package/switch/index.js +0 -8
- package/tab/index.cjs +0 -9
- package/tab/index.js +0 -9
- package/tab-panel/index.cjs +0 -1
- package/tab-panel/index.js +0 -1
- package/tabs/index.cjs +0 -16
- package/tabs/index.js +0 -16
- package/tag/index.cjs +0 -9
- package/tag/index.js +0 -9
- package/tag-group/index.cjs +0 -2
- package/tag-group/index.js +0 -2
- package/text-anchor/index.cjs +0 -10
- package/text-anchor/index.js +0 -10
- package/text-area/index.cjs +0 -19
- package/text-area/index.js +0 -19
- package/text-field/index.cjs +0 -20
- package/text-field/index.js +0 -20
- package/time-picker/index.cjs +0 -31
- package/time-picker/index.js +0 -31
- package/toggletip/index.cjs +0 -22
- package/toggletip/index.js +0 -22
- package/tooltip/index.cjs +0 -22
- package/tooltip/index.js +0 -22
- package/tree-item/index.cjs +0 -14
- package/tree-item/index.js +0 -14
- package/tree-view/index.cjs +0 -9
- package/tree-view/index.js +0 -9
- package/video-player/index.cjs +0 -12
- package/video-player/index.js +0 -12
- package/vivid.api.json +21 -0
- package/style.css +0 -1
package/shared/definition55.js
CHANGED
|
@@ -63,16 +63,6 @@ function v4(options, buf, offset) {
|
|
|
63
63
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
64
64
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
65
65
|
|
|
66
|
-
if (buf) {
|
|
67
|
-
offset = offset || 0;
|
|
68
|
-
|
|
69
|
-
for (let i = 0; i < 16; ++i) {
|
|
70
|
-
buf[offset + i] = rnds[i];
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return buf;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
66
|
return unsafeStringify(rnds);
|
|
77
67
|
}
|
|
78
68
|
|
|
@@ -104,14 +94,14 @@ var __privateAdd = (obj, member, value) => {
|
|
|
104
94
|
};
|
|
105
95
|
var __privateSet = (obj, member, value, setter) => {
|
|
106
96
|
__accessCheck(obj, member, "write to private field");
|
|
107
|
-
|
|
97
|
+
member.set(obj, value);
|
|
108
98
|
return value;
|
|
109
99
|
};
|
|
110
100
|
var __privateMethod = (obj, member, method) => {
|
|
111
101
|
__accessCheck(obj, member, "access private method");
|
|
112
102
|
return method;
|
|
113
103
|
};
|
|
114
|
-
var _handleLabelChange, handleLabelChange_fn, _reflectToInput;
|
|
104
|
+
var _handleLabelChange, handleLabelChange_fn, _reflectToInput, _helperTextMirrorEl, _helperTextSlotMutationObserver, _updateHelperTextMutationObserver, updateHelperTextMutationObserver_fn, _updateMirroredHelperText, updateMirroredHelperText_fn;
|
|
115
105
|
const safariWorkaroundClassName = "_vvd-3-text-field-safari-workaround";
|
|
116
106
|
const getSafariWorkaroundStyleSheet = memoizeWith(
|
|
117
107
|
() => "",
|
|
@@ -146,11 +136,15 @@ let TextField = class extends TextField$1 {
|
|
|
146
136
|
constructor() {
|
|
147
137
|
super(...arguments);
|
|
148
138
|
__privateAdd(this, _handleLabelChange);
|
|
139
|
+
__privateAdd(this, _updateHelperTextMutationObserver);
|
|
140
|
+
__privateAdd(this, _updateMirroredHelperText);
|
|
149
141
|
/**
|
|
150
142
|
* @internal
|
|
151
143
|
*/
|
|
152
144
|
this._labelEl = null;
|
|
153
145
|
__privateAdd(this, _reflectToInput, void 0);
|
|
146
|
+
__privateAdd(this, _helperTextMirrorEl, void 0);
|
|
147
|
+
__privateAdd(this, _helperTextSlotMutationObserver, void 0);
|
|
154
148
|
}
|
|
155
149
|
/**
|
|
156
150
|
* @internal
|
|
@@ -165,42 +159,12 @@ let TextField = class extends TextField$1 {
|
|
|
165
159
|
if (!this.control) {
|
|
166
160
|
const uniqueId = this.id || generateRandomId();
|
|
167
161
|
const controlId = `vvd-text-field-control-${uniqueId}`;
|
|
162
|
+
const helperTextId = `vvd-text-field-helper-text-${uniqueId}`;
|
|
168
163
|
const input = document.createElement("input");
|
|
169
164
|
input.slot = "_control";
|
|
170
165
|
input.id = controlId;
|
|
171
166
|
input.className = safariWorkaroundClassName;
|
|
172
167
|
this.control = input;
|
|
173
|
-
__privateSet(this, _reflectToInput, new Reflector(this, input));
|
|
174
|
-
__privateGet(this, _reflectToInput).booleanAttribute("autofocus", "autofocus");
|
|
175
|
-
__privateGet(this, _reflectToInput).booleanAttribute("disabled", "disabled");
|
|
176
|
-
__privateGet(this, _reflectToInput).booleanAttribute("readOnly", "readonly");
|
|
177
|
-
__privateGet(this, _reflectToInput).booleanAttribute("required", "required");
|
|
178
|
-
__privateGet(this, _reflectToInput).booleanAttribute("spellcheck", "spellcheck");
|
|
179
|
-
__privateGet(this, _reflectToInput).attribute("list", "list");
|
|
180
|
-
__privateGet(this, _reflectToInput).attribute("maxlength", "maxlength");
|
|
181
|
-
__privateGet(this, _reflectToInput).attribute("minlength", "minlength");
|
|
182
|
-
__privateGet(this, _reflectToInput).attribute("pattern", "pattern");
|
|
183
|
-
__privateGet(this, _reflectToInput).attribute("placeholder", "placeholder");
|
|
184
|
-
__privateGet(this, _reflectToInput).attribute("size", "size");
|
|
185
|
-
__privateGet(this, _reflectToInput).attribute("autoComplete", "autocomplete");
|
|
186
|
-
__privateGet(this, _reflectToInput).attribute("type", "type");
|
|
187
|
-
__privateGet(this, _reflectToInput).attribute("ariaAtomic", "aria-atomic");
|
|
188
|
-
__privateGet(this, _reflectToInput).attribute("ariaBusy", "aria-busy");
|
|
189
|
-
__privateGet(this, _reflectToInput).attribute("ariaCurrent", "aria-current");
|
|
190
|
-
__privateGet(this, _reflectToInput).attribute("ariaDetails", "aria-details");
|
|
191
|
-
__privateGet(this, _reflectToInput).attribute("ariaDisabled", "aria-disabled");
|
|
192
|
-
__privateGet(this, _reflectToInput).attribute("ariaHaspopup", "aria-haspopup");
|
|
193
|
-
__privateGet(this, _reflectToInput).attribute("ariaHidden", "aria-hidden");
|
|
194
|
-
__privateGet(this, _reflectToInput).attribute("ariaInvalid", "aria-invalid");
|
|
195
|
-
__privateGet(this, _reflectToInput).attribute("ariaKeyshortcuts", "aria-keyshortcuts");
|
|
196
|
-
__privateGet(this, _reflectToInput).attribute("ariaLabel", "aria-label");
|
|
197
|
-
__privateGet(this, _reflectToInput).attribute("ariaLive", "aria-live");
|
|
198
|
-
__privateGet(this, _reflectToInput).attribute("ariaRelevant", "aria-relevant");
|
|
199
|
-
__privateGet(this, _reflectToInput).attribute(
|
|
200
|
-
"ariaRoledescription",
|
|
201
|
-
"aria-roledescription"
|
|
202
|
-
);
|
|
203
|
-
__privateGet(this, _reflectToInput).property("value", "value", true);
|
|
204
168
|
input.addEventListener("input", () => {
|
|
205
169
|
this.handleTextInput();
|
|
206
170
|
});
|
|
@@ -219,16 +183,68 @@ let TextField = class extends TextField$1 {
|
|
|
219
183
|
label.htmlFor = controlId;
|
|
220
184
|
this._labelEl = label;
|
|
221
185
|
__privateMethod(this, _handleLabelChange, handleLabelChange_fn).call(this, label);
|
|
186
|
+
__privateSet(this, _helperTextMirrorEl, document.createElement("div"));
|
|
187
|
+
__privateGet(this, _helperTextMirrorEl).id = helperTextId;
|
|
188
|
+
__privateGet(this, _helperTextMirrorEl).slot = "_mirrored-helper-text";
|
|
189
|
+
__privateMethod(this, _updateMirroredHelperText, updateMirroredHelperText_fn).call(this);
|
|
190
|
+
this.appendChild(__privateGet(this, _helperTextMirrorEl));
|
|
222
191
|
installSafariWorkaroundStyle(this);
|
|
223
192
|
}
|
|
193
|
+
__privateSet(this, _reflectToInput, new Reflector(this, this.control));
|
|
194
|
+
__privateGet(this, _reflectToInput).booleanAttribute("autofocus", "autofocus");
|
|
195
|
+
__privateGet(this, _reflectToInput).booleanAttribute("disabled", "disabled");
|
|
196
|
+
__privateGet(this, _reflectToInput).booleanAttribute("readOnly", "readonly");
|
|
197
|
+
__privateGet(this, _reflectToInput).booleanAttribute("required", "required");
|
|
198
|
+
__privateGet(this, _reflectToInput).booleanAttribute("spellcheck", "spellcheck");
|
|
199
|
+
__privateGet(this, _reflectToInput).attribute("list", "list");
|
|
200
|
+
__privateGet(this, _reflectToInput).attribute("maxlength", "maxlength");
|
|
201
|
+
__privateGet(this, _reflectToInput).attribute("minlength", "minlength");
|
|
202
|
+
__privateGet(this, _reflectToInput).attribute("pattern", "pattern");
|
|
203
|
+
__privateGet(this, _reflectToInput).attribute("placeholder", "placeholder");
|
|
204
|
+
__privateGet(this, _reflectToInput).attribute("size", "size");
|
|
205
|
+
__privateGet(this, _reflectToInput).attribute("autoComplete", "autocomplete");
|
|
206
|
+
__privateGet(this, _reflectToInput).attribute("type", "type");
|
|
207
|
+
__privateGet(this, _reflectToInput).attribute("ariaAtomic", "aria-atomic");
|
|
208
|
+
__privateGet(this, _reflectToInput).attribute("ariaBusy", "aria-busy");
|
|
209
|
+
__privateGet(this, _reflectToInput).attribute("ariaCurrent", "aria-current");
|
|
210
|
+
__privateGet(this, _reflectToInput).attribute("ariaDetails", "aria-details");
|
|
211
|
+
__privateGet(this, _reflectToInput).attribute("ariaDisabled", "aria-disabled");
|
|
212
|
+
__privateGet(this, _reflectToInput).attribute("ariaHaspopup", "aria-haspopup");
|
|
213
|
+
__privateGet(this, _reflectToInput).attribute("ariaHidden", "aria-hidden");
|
|
214
|
+
__privateGet(this, _reflectToInput).attribute("ariaInvalid", "aria-invalid");
|
|
215
|
+
__privateGet(this, _reflectToInput).attribute("ariaKeyshortcuts", "aria-keyshortcuts");
|
|
216
|
+
__privateGet(this, _reflectToInput).attribute("ariaLabel", "aria-label");
|
|
217
|
+
__privateGet(this, _reflectToInput).attribute("ariaLive", "aria-live");
|
|
218
|
+
__privateGet(this, _reflectToInput).attribute("ariaRelevant", "aria-relevant");
|
|
219
|
+
__privateGet(this, _reflectToInput).attribute(
|
|
220
|
+
"ariaRoledescription",
|
|
221
|
+
"aria-roledescription"
|
|
222
|
+
);
|
|
223
|
+
__privateGet(this, _reflectToInput).property("value", "value", true);
|
|
224
|
+
__privateMethod(this, _updateHelperTextMutationObserver, updateHelperTextMutationObserver_fn).call(this);
|
|
224
225
|
}
|
|
225
226
|
disconnectedCallback() {
|
|
226
227
|
super.disconnectedCallback();
|
|
227
228
|
__privateGet(this, _reflectToInput).destroy();
|
|
229
|
+
__privateSet(this, _reflectToInput, void 0);
|
|
230
|
+
__privateMethod(this, _updateHelperTextMutationObserver, updateHelperTextMutationObserver_fn).call(this);
|
|
228
231
|
}
|
|
229
232
|
focus() {
|
|
230
233
|
this.control?.focus();
|
|
231
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
helperTextChanged() {
|
|
239
|
+
__privateMethod(this, _updateMirroredHelperText, updateMirroredHelperText_fn).call(this);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
_helperTextSlottedContentChanged() {
|
|
245
|
+
__privateMethod(this, _updateMirroredHelperText, updateMirroredHelperText_fn).call(this);
|
|
246
|
+
__privateMethod(this, _updateHelperTextMutationObserver, updateHelperTextMutationObserver_fn).call(this);
|
|
247
|
+
}
|
|
232
248
|
};
|
|
233
249
|
_handleLabelChange = new WeakSet();
|
|
234
250
|
handleLabelChange_fn = function(labelEl) {
|
|
@@ -242,6 +258,47 @@ handleLabelChange_fn = function(labelEl) {
|
|
|
242
258
|
}
|
|
243
259
|
};
|
|
244
260
|
_reflectToInput = new WeakMap();
|
|
261
|
+
_helperTextMirrorEl = new WeakMap();
|
|
262
|
+
_helperTextSlotMutationObserver = new WeakMap();
|
|
263
|
+
_updateHelperTextMutationObserver = new WeakSet();
|
|
264
|
+
updateHelperTextMutationObserver_fn = function() {
|
|
265
|
+
const usesHelperTextSlot = this._helperTextSlottedContent.length;
|
|
266
|
+
const shouldHaveMutationObserver = usesHelperTextSlot && this.isConnected;
|
|
267
|
+
if (shouldHaveMutationObserver && !__privateGet(this, _helperTextSlotMutationObserver)) {
|
|
268
|
+
__privateSet(this, _helperTextSlotMutationObserver, new MutationObserver((records) => {
|
|
269
|
+
if (records.some((record) => record.target !== __privateGet(this, _helperTextMirrorEl))) {
|
|
270
|
+
__privateMethod(this, _updateMirroredHelperText, updateMirroredHelperText_fn).call(this);
|
|
271
|
+
}
|
|
272
|
+
}));
|
|
273
|
+
__privateGet(this, _helperTextSlotMutationObserver).observe(this, {
|
|
274
|
+
subtree: true,
|
|
275
|
+
childList: true,
|
|
276
|
+
characterData: true
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
if (!shouldHaveMutationObserver && __privateGet(this, _helperTextSlotMutationObserver)) {
|
|
280
|
+
__privateGet(this, _helperTextSlotMutationObserver).disconnect();
|
|
281
|
+
__privateSet(this, _helperTextSlotMutationObserver, void 0);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
_updateMirroredHelperText = new WeakSet();
|
|
285
|
+
updateMirroredHelperText_fn = function() {
|
|
286
|
+
let helperText = this.helperText ?? "";
|
|
287
|
+
if (this._helperTextSlottedContent?.length) {
|
|
288
|
+
helperText = this._helperTextSlottedContent.map((node) => node.innerText).join(" ");
|
|
289
|
+
}
|
|
290
|
+
if (__privateGet(this, _helperTextMirrorEl)) {
|
|
291
|
+
__privateGet(this, _helperTextMirrorEl).textContent = helperText;
|
|
292
|
+
if (helperText) {
|
|
293
|
+
this.control.setAttribute(
|
|
294
|
+
"aria-describedby",
|
|
295
|
+
__privateGet(this, _helperTextMirrorEl).id
|
|
296
|
+
);
|
|
297
|
+
} else {
|
|
298
|
+
this.control.removeAttribute("aria-describedby");
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
245
302
|
__decorateClass([
|
|
246
303
|
attr
|
|
247
304
|
], TextField.prototype, "appearance", 2);
|
|
@@ -307,29 +364,30 @@ function renderCharCount() {
|
|
|
307
364
|
const TextfieldTemplate = (context) => {
|
|
308
365
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
309
366
|
return html` <div class="base ${getStateClasses}">
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
367
|
+
${when((x) => x.charCount && x.maxlength, renderCharCount())}
|
|
368
|
+
<slot class="label" name="_label"></slot>
|
|
369
|
+
<div class="fieldset">
|
|
370
|
+
<div class="leading-items-wrapper">
|
|
371
|
+
<slot
|
|
372
|
+
name="leading-action-items"
|
|
373
|
+
${slotted("leadingActionItemsSlottedContent")}
|
|
374
|
+
></slot>
|
|
375
|
+
${(x) => affixIconTemplate(x.icon)}
|
|
376
|
+
</div>
|
|
320
377
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
378
|
+
<div class="wrapper">
|
|
379
|
+
<slot class="control" name="_control"></slot>
|
|
380
|
+
</div>
|
|
381
|
+
<div class="action-items-wrapper">
|
|
382
|
+
<slot
|
|
383
|
+
name="action-items"
|
|
384
|
+
${slotted("actionItemsSlottedContent")}
|
|
385
|
+
></slot>
|
|
386
|
+
</div>
|
|
329
387
|
</div>
|
|
388
|
+
${getFeedbackTemplate(context)}
|
|
330
389
|
</div>
|
|
331
|
-
|
|
332
|
-
</div>`;
|
|
390
|
+
<slot name="_mirrored-helper-text"></slot>`;
|
|
333
391
|
};
|
|
334
392
|
|
|
335
393
|
const textFieldDefinition = TextField.compose({
|
package/shared/definition56.cjs
CHANGED
|
@@ -16,7 +16,7 @@ const when = require('./when.cjs');
|
|
|
16
16
|
const repeat = require('./repeat.cjs');
|
|
17
17
|
const classNames = require('./class-names.cjs');
|
|
18
18
|
|
|
19
|
-
const styles = ":host{display:inline-block}.base,.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;border-top:1px solid var(--vvd-color-neutral-200);gap:8px}.time-pickers{display:flex;overflow:hidden;padding:4px;block-size:188px;gap:4px}.time-pickers .picker{position:relative;display:flex;overflow:hidden;flex-direction:column;padding:0;border-radius:4px;margin:0;gap:4px;inline-size:50px;list-style:none;scrollbar-width:thin}.time-pickers .picker:hover{overflow-y:auto}.time-pickers .picker:after{display:block;flex-shrink:0;block-size:156px;content:\"\"}.time-pickers .picker:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: -2px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.time-pickers .item{display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;background-color:var(--_appearance-color-fill);block-size:28px;color:var(--_appearance-color-text);cursor:pointer;font:var(--vvd-typography-base);inline-size:50px}.time-pickers .item{--_connotation-color-primary: var(--vvd-time-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-time-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-time-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-time-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-time-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-time-picker-accent-pale, var(--vvd-color-neutral-300))}.time-pickers .item{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.time-pickers .item:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.time-pickers .item:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}
|
|
19
|
+
const styles = ":host{display:inline-block}.base,.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;border-top:1px solid var(--vvd-color-neutral-200);gap:8px}.time-pickers{display:flex;overflow:hidden;padding:4px;block-size:188px;gap:4px}.time-pickers .picker{position:relative;display:flex;overflow:hidden;flex-direction:column;padding:0;border-radius:4px;margin:0;gap:4px;inline-size:50px;list-style:none;scrollbar-width:thin}.time-pickers .picker:hover{overflow-y:auto}.time-pickers .picker:after{display:block;flex-shrink:0;block-size:156px;content:\"\"}.time-pickers .picker:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: -2px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.time-pickers .item{display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;background-color:var(--_appearance-color-fill);block-size:28px;color:var(--_appearance-color-text);cursor:pointer;font:var(--vvd-typography-base);inline-size:50px}.time-pickers .item{--_connotation-color-primary: var(--vvd-time-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-time-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-time-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-time-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-time-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-time-picker-accent-pale, var(--vvd-color-neutral-300))}.time-pickers .item{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.time-pickers .item:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.time-pickers .item:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}";
|
|
20
20
|
|
|
21
21
|
class _TimePicker extends index.FoundationElement {
|
|
22
22
|
}
|
package/shared/definition56.js
CHANGED
|
@@ -14,7 +14,7 @@ import { w as when } from './when.js';
|
|
|
14
14
|
import { r as repeat } from './repeat.js';
|
|
15
15
|
import { c as classNames } from './class-names.js';
|
|
16
16
|
|
|
17
|
-
const styles = ":host{display:inline-block}.base,.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;border-top:1px solid var(--vvd-color-neutral-200);gap:8px}.time-pickers{display:flex;overflow:hidden;padding:4px;block-size:188px;gap:4px}.time-pickers .picker{position:relative;display:flex;overflow:hidden;flex-direction:column;padding:0;border-radius:4px;margin:0;gap:4px;inline-size:50px;list-style:none;scrollbar-width:thin}.time-pickers .picker:hover{overflow-y:auto}.time-pickers .picker:after{display:block;flex-shrink:0;block-size:156px;content:\"\"}.time-pickers .picker:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: -2px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.time-pickers .item{display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;background-color:var(--_appearance-color-fill);block-size:28px;color:var(--_appearance-color-text);cursor:pointer;font:var(--vvd-typography-base);inline-size:50px}.time-pickers .item{--_connotation-color-primary: var(--vvd-time-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-time-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-time-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-time-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-time-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-time-picker-accent-pale, var(--vvd-color-neutral-300))}.time-pickers .item{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.time-pickers .item:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.time-pickers .item:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}
|
|
17
|
+
const styles = ":host{display:inline-block}.base,.control{inline-size:100%}.dialog{display:inline-flex;flex-direction:column}.dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:8px;border-top:1px solid var(--vvd-color-neutral-200);gap:8px}.time-pickers{display:flex;overflow:hidden;padding:4px;block-size:188px;gap:4px}.time-pickers .picker{position:relative;display:flex;overflow:hidden;flex-direction:column;padding:0;border-radius:4px;margin:0;gap:4px;inline-size:50px;list-style:none;scrollbar-width:thin}.time-pickers .picker:hover{overflow-y:auto}.time-pickers .picker:after{display:block;flex-shrink:0;block-size:156px;content:\"\"}.time-pickers .picker:focus-visible{--focus-stroke-gap-color: transparent;--focus-inset: -2px;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.time-pickers .item{display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;background-color:var(--_appearance-color-fill);block-size:28px;color:var(--_appearance-color-text);cursor:pointer;font:var(--vvd-typography-base);inline-size:50px}.time-pickers .item{--_connotation-color-primary: var(--vvd-time-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-time-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-time-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-time-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-time-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-time-picker-accent-pale, var(--vvd-color-neutral-300))}.time-pickers .item{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.time-pickers .item:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.time-pickers .item:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.time-pickers .item:where(.selected):where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}";
|
|
18
18
|
|
|
19
19
|
class _TimePicker extends FoundationElement {
|
|
20
20
|
}
|
package/shared/definition57.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const anchored = require('./anchored.cjs');
|
|
|
6
6
|
const when = require('./when.cjs');
|
|
7
7
|
const classNames = require('./class-names.cjs');
|
|
8
8
|
|
|
9
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}
|
|
9
|
+
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition57.js
CHANGED
|
@@ -4,7 +4,7 @@ import { b as anchored, a as anchorSlotTemplateFactory } from './anchored.js';
|
|
|
4
4
|
import { w as when } from './when.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
6
6
|
|
|
7
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}
|
|
7
|
+
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition58.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const definition = require('./definition63.cjs');
|
|
|
5
5
|
const anchored = require('./anchored.cjs');
|
|
6
6
|
const classNames = require('./class-names.cjs');
|
|
7
7
|
|
|
8
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}
|
|
8
|
+
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition58.js
CHANGED
|
@@ -3,7 +3,7 @@ import { P as Popup, p as popupRegistries } from './definition63.js';
|
|
|
3
3
|
import { b as anchored, a as anchorSlotTemplateFactory } from './anchored.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
|
|
6
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}
|
|
6
|
+
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition59.cjs
CHANGED
|
@@ -12,16 +12,15 @@ const when = require('./when.cjs');
|
|
|
12
12
|
const classNames = require('./class-names.cjs');
|
|
13
13
|
const ref = require('./ref.cjs');
|
|
14
14
|
|
|
15
|
-
const styles = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.control{position:relative;display:inline-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(--_appearance-color-text);font:var(--vvd-typography-base);gap:12px;hyphens:auto;inline-size:100%;min-block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-inline:16px;text-decoration:none;vertical-align:middle;word-break:break-word}.control{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-tree-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-tree-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-tree-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-tree-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-tree-item-accent-soft, var(--vvd-color-neutral-100))}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}:host(:focus-visible) .control{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host(:focus-visible) .control:not(.selected){--focus-stroke-gap-color: transparent}.control .text{font:var(--vvd-typography-base)}.expandCollapseButton{display:flex;align-items:center;border-radius:8px;font-size:20px}.expandCollapseButton .expandCollapseIcon{margin:4px}.expandCollapseButton:hover{background-color:var(--vvd-color-neutral-100)}.selected .expandCollapseButton:hover{background-color:var(--vvd-color-neutral-700)}.items{display:flex;flex-direction:column;gap:4px;margin-block:4px;padding-inline-start:48px}slot[name=icon]{font-size:20px;line-height:1}.control:not(.disabled,.selected) slot[name=icon]{color:var(--vvd-color-neutral-600)}
|
|
15
|
+
const styles = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.control{position:relative;display:inline-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(--_appearance-color-text);font:var(--vvd-typography-base);gap:12px;hyphens:auto;inline-size:100%;min-block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-inline:16px;text-decoration:none;vertical-align:middle;word-break:break-word}.control{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-tree-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-tree-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-tree-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-tree-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-tree-item-accent-soft, var(--vvd-color-neutral-100))}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}:host(:focus-visible) .control{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host(:focus-visible) .control:not(.selected){--focus-stroke-gap-color: transparent}.control .text{font:var(--vvd-typography-base)}.expandCollapseButton{display:flex;align-items:center;border-radius:8px;font-size:20px}.expandCollapseButton .expandCollapseIcon{margin:4px}.expandCollapseButton:hover{background-color:var(--vvd-color-neutral-100)}.selected .expandCollapseButton:hover{background-color:var(--vvd-color-neutral-700)}.items{display:flex;flex-direction:column;gap:4px;margin-block:4px;padding-inline-start:48px}slot[name=icon]{font-size:20px;line-height:1}.control:not(.disabled,.selected) slot[name=icon]{color:var(--vvd-color-neutral-600)}";
|
|
16
16
|
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
18
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
19
18
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
-
var result =
|
|
19
|
+
var result = void 0 ;
|
|
21
20
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
21
|
if (decorator = decorators[i])
|
|
23
|
-
result = (
|
|
24
|
-
if (
|
|
22
|
+
result = (decorator(target, key, result) ) || result;
|
|
23
|
+
if (result)
|
|
25
24
|
__defProp(target, key, result);
|
|
26
25
|
return result;
|
|
27
26
|
};
|
|
@@ -29,7 +28,7 @@ class TreeItem extends treeItem.TreeItem {
|
|
|
29
28
|
}
|
|
30
29
|
__decorateClass([
|
|
31
30
|
index.attr
|
|
32
|
-
], TreeItem.prototype, "text"
|
|
31
|
+
], TreeItem.prototype, "text");
|
|
33
32
|
applyMixins.applyMixins(TreeItem, affix.AffixIcon);
|
|
34
33
|
|
|
35
34
|
const getClasses = ({ disabled, selected }) => classNames.classNames(
|
package/shared/definition59.js
CHANGED
|
@@ -10,16 +10,15 @@ import { w as when } from './when.js';
|
|
|
10
10
|
import { c as classNames } from './class-names.js';
|
|
11
11
|
import { r as ref } from './ref.js';
|
|
12
12
|
|
|
13
|
-
const styles = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.control{position:relative;display:inline-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(--_appearance-color-text);font:var(--vvd-typography-base);gap:12px;hyphens:auto;inline-size:100%;min-block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-inline:16px;text-decoration:none;vertical-align:middle;word-break:break-word}.control{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-tree-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-tree-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-tree-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-tree-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-tree-item-accent-soft, var(--vvd-color-neutral-100))}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}:host(:focus-visible) .control{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host(:focus-visible) .control:not(.selected){--focus-stroke-gap-color: transparent}.control .text{font:var(--vvd-typography-base)}.expandCollapseButton{display:flex;align-items:center;border-radius:8px;font-size:20px}.expandCollapseButton .expandCollapseIcon{margin:4px}.expandCollapseButton:hover{background-color:var(--vvd-color-neutral-100)}.selected .expandCollapseButton:hover{background-color:var(--vvd-color-neutral-700)}.items{display:flex;flex-direction:column;gap:4px;margin-block:4px;padding-inline-start:48px}slot[name=icon]{font-size:20px;line-height:1}.control:not(.disabled,.selected) slot[name=icon]{color:var(--vvd-color-neutral-600)}
|
|
13
|
+
const styles = ":host(:focus-visible){outline:none}:host([disabled]){cursor:not-allowed}.control{position:relative;display:inline-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(--_appearance-color-text);font:var(--vvd-typography-base);gap:12px;hyphens:auto;inline-size:100%;min-block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-inline:16px;text-decoration:none;vertical-align:middle;word-break:break-word}.control{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.control:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.control:where(.selected):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control:where(.selected):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-tree-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-tree-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-tree-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-faint: var(--vvd-tree-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-tree-item-accent-soft, var(--vvd-color-neutral-100))}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}:host(:focus-visible) .control{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}:host(:focus-visible) .control:not(.selected){--focus-stroke-gap-color: transparent}.control .text{font:var(--vvd-typography-base)}.expandCollapseButton{display:flex;align-items:center;border-radius:8px;font-size:20px}.expandCollapseButton .expandCollapseIcon{margin:4px}.expandCollapseButton:hover{background-color:var(--vvd-color-neutral-100)}.selected .expandCollapseButton:hover{background-color:var(--vvd-color-neutral-700)}.items{display:flex;flex-direction:column;gap:4px;margin-block:4px;padding-inline-start:48px}slot[name=icon]{font-size:20px;line-height:1}.control:not(.disabled,.selected) slot[name=icon]{color:var(--vvd-color-neutral-600)}";
|
|
14
14
|
|
|
15
15
|
var __defProp = Object.defineProperty;
|
|
16
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
17
16
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
18
|
-
var result =
|
|
17
|
+
var result = void 0 ;
|
|
19
18
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
20
19
|
if (decorator = decorators[i])
|
|
21
|
-
result = (
|
|
22
|
-
if (
|
|
20
|
+
result = (decorator(target, key, result) ) || result;
|
|
21
|
+
if (result)
|
|
23
22
|
__defProp(target, key, result);
|
|
24
23
|
return result;
|
|
25
24
|
};
|
|
@@ -27,7 +26,7 @@ class TreeItem extends TreeItem$1 {
|
|
|
27
26
|
}
|
|
28
27
|
__decorateClass([
|
|
29
28
|
attr
|
|
30
|
-
], TreeItem.prototype, "text"
|
|
29
|
+
], TreeItem.prototype, "text");
|
|
31
30
|
applyMixins(TreeItem, AffixIcon);
|
|
32
31
|
|
|
33
32
|
const getClasses = ({ disabled, selected }) => classNames(
|
package/shared/definition6.cjs
CHANGED
|
@@ -6,16 +6,15 @@ const icon = require('./icon.cjs');
|
|
|
6
6
|
const when = require('./when.cjs');
|
|
7
7
|
const classNames = require('./class-names.cjs');
|
|
8
8
|
|
|
9
|
-
const styles = ".base{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;border-radius:var(--_avatar-border-radius);background-color:var(--_appearance-color-fill);block-size:var(--_size);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:var(--_size);vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-avatar-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-avatar-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-cta-firm, var(--vvd-color-cta-600));--_connotation-color-firm-all: var(--vvd-avatar-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-avatar-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-pale: var(--vvd-avatar-cta-pale, var(--vvd-color-cta-300));--_connotation-color-soft: var(--vvd-avatar-cta-soft, var(--vvd-color-cta-100));--_connotation-color-contrast: var(--vvd-avatar-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-avatar-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-avatar-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-firm-all: var(--vvd-avatar-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-fierce: var(--vvd-avatar-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-pale: var(--vvd-avatar-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-soft: var(--vvd-avatar-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-contrast: var(--vvd-avatar-accent-contrast, var(--vvd-color-neutral-800))}.base{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.base.appearance-outlined{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm)}.base.appearance-duotone{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.base.appearance-subtle{--_appearance-color-text: var(--_connotation-color-contrast);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.size-condensed{--_size:calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base.size-condensed .initials{font:var(--vvd-typography-base-condensed-bold)}.base.size-condensed .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base.size-expanded{--_size:calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base.size-expanded .initials{font:var(--vvd-typography-heading-4)}.base.size-expanded .icon{font-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.size-condensed,.size-expanded){--_size:calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base:not(.size-condensed,.size-expanded) .initials{font:var(--vvd-typography-base-extended-bold)}.base:not(.size-condensed,.size-expanded) .icon{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.shape-pill){--_avatar-border-radius: 8px}.base:not(.shape-pill).size-condensed{--_avatar-border-radius: 4px}.base.shape-pill{--_avatar-border-radius: 50%}.base .initials{text-transform:uppercase}.base ::slotted(*){block-size:100%;inline-size:100%;object-fit:cover}
|
|
9
|
+
const styles = ".base{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;border-radius:var(--_avatar-border-radius);background-color:var(--_appearance-color-fill);block-size:var(--_size);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:var(--_size);vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-avatar-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-avatar-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-cta-firm, var(--vvd-color-cta-600));--_connotation-color-firm-all: var(--vvd-avatar-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-avatar-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-pale: var(--vvd-avatar-cta-pale, var(--vvd-color-cta-300));--_connotation-color-soft: var(--vvd-avatar-cta-soft, var(--vvd-color-cta-100));--_connotation-color-contrast: var(--vvd-avatar-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-avatar-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-avatar-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-firm-all: var(--vvd-avatar-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-fierce: var(--vvd-avatar-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-pale: var(--vvd-avatar-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-soft: var(--vvd-avatar-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-contrast: var(--vvd-avatar-accent-contrast, var(--vvd-color-neutral-800))}.base{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.base.appearance-outlined{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm)}.base.appearance-duotone{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.base.appearance-subtle{--_appearance-color-text: var(--_connotation-color-contrast);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.size-condensed{--_size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-condensed .initials{font:var(--vvd-typography-base-condensed-bold)}.base.size-condensed .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base.size-expanded{--_size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-expanded .initials{font:var(--vvd-typography-heading-4)}.base.size-expanded .icon{font-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.size-condensed,.size-expanded){--_size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base:not(.size-condensed,.size-expanded) .initials{font:var(--vvd-typography-base-extended-bold)}.base:not(.size-condensed,.size-expanded) .icon{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.shape-pill){--_avatar-border-radius: 8px}.base:not(.shape-pill).size-condensed{--_avatar-border-radius: 4px}.base.shape-pill{--_avatar-border-radius: 50%}.base .initials{text-transform:uppercase}.base ::slotted(*){block-size:100%;inline-size:100%;object-fit:cover}";
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
12
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
-
var result =
|
|
13
|
+
var result = void 0 ;
|
|
15
14
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
15
|
if (decorator = decorators[i])
|
|
17
|
-
result = (
|
|
18
|
-
if (
|
|
16
|
+
result = (decorator(target, key, result) ) || result;
|
|
17
|
+
if (result)
|
|
19
18
|
__defProp(target, key, result);
|
|
20
19
|
return result;
|
|
21
20
|
};
|
|
@@ -23,22 +22,22 @@ class Avatar extends index.FoundationElement {
|
|
|
23
22
|
}
|
|
24
23
|
__decorateClass([
|
|
25
24
|
index.attr
|
|
26
|
-
], Avatar.prototype, "connotation"
|
|
25
|
+
], Avatar.prototype, "connotation");
|
|
27
26
|
__decorateClass([
|
|
28
27
|
index.attr
|
|
29
|
-
], Avatar.prototype, "shape"
|
|
28
|
+
], Avatar.prototype, "shape");
|
|
30
29
|
__decorateClass([
|
|
31
30
|
index.attr
|
|
32
|
-
], Avatar.prototype, "appearance"
|
|
31
|
+
], Avatar.prototype, "appearance");
|
|
33
32
|
__decorateClass([
|
|
34
33
|
index.attr
|
|
35
|
-
], Avatar.prototype, "size"
|
|
34
|
+
], Avatar.prototype, "size");
|
|
36
35
|
__decorateClass([
|
|
37
36
|
index.attr
|
|
38
|
-
], Avatar.prototype, "icon"
|
|
37
|
+
], Avatar.prototype, "icon");
|
|
39
38
|
__decorateClass([
|
|
40
39
|
index.attr
|
|
41
|
-
], Avatar.prototype, "initials"
|
|
40
|
+
], Avatar.prototype, "initials");
|
|
42
41
|
|
|
43
42
|
const getClasses = ({ appearance, connotation, shape, size }) => classNames.classNames(
|
|
44
43
|
"base",
|
package/shared/definition6.js
CHANGED
|
@@ -4,16 +4,15 @@ import { I as Icon } from './icon.js';
|
|
|
4
4
|
import { w as when } from './when.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
6
6
|
|
|
7
|
-
const styles = ".base{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;border-radius:var(--_avatar-border-radius);background-color:var(--_appearance-color-fill);block-size:var(--_size);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:var(--_size);vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-avatar-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-avatar-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-cta-firm, var(--vvd-color-cta-600));--_connotation-color-firm-all: var(--vvd-avatar-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-avatar-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-pale: var(--vvd-avatar-cta-pale, var(--vvd-color-cta-300));--_connotation-color-soft: var(--vvd-avatar-cta-soft, var(--vvd-color-cta-100));--_connotation-color-contrast: var(--vvd-avatar-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-avatar-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-avatar-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-firm-all: var(--vvd-avatar-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-fierce: var(--vvd-avatar-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-pale: var(--vvd-avatar-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-soft: var(--vvd-avatar-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-contrast: var(--vvd-avatar-accent-contrast, var(--vvd-color-neutral-800))}.base{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.base.appearance-outlined{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm)}.base.appearance-duotone{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.base.appearance-subtle{--_appearance-color-text: var(--_connotation-color-contrast);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.size-condensed{--_size:calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base.size-condensed .initials{font:var(--vvd-typography-base-condensed-bold)}.base.size-condensed .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base.size-expanded{--_size:calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base.size-expanded .initials{font:var(--vvd-typography-heading-4)}.base.size-expanded .icon{font-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.size-condensed,.size-expanded){--_size:calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))}.base:not(.size-condensed,.size-expanded) .initials{font:var(--vvd-typography-base-extended-bold)}.base:not(.size-condensed,.size-expanded) .icon{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.shape-pill){--_avatar-border-radius: 8px}.base:not(.shape-pill).size-condensed{--_avatar-border-radius: 4px}.base.shape-pill{--_avatar-border-radius: 50%}.base .initials{text-transform:uppercase}.base ::slotted(*){block-size:100%;inline-size:100%;object-fit:cover}
|
|
7
|
+
const styles = ".base{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;border-radius:var(--_avatar-border-radius);background-color:var(--_appearance-color-fill);block-size:var(--_size);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:var(--_size);vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-avatar-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-avatar-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-cta-firm, var(--vvd-color-cta-600));--_connotation-color-firm-all: var(--vvd-avatar-cta-firm-all, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-avatar-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-pale: var(--vvd-avatar-cta-pale, var(--vvd-color-cta-300));--_connotation-color-soft: var(--vvd-avatar-cta-soft, var(--vvd-color-cta-100));--_connotation-color-contrast: var(--vvd-avatar-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-avatar-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-avatar-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-firm: var(--vvd-avatar-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-firm-all: var(--vvd-avatar-accent-firm-all, var(--vvd-color-neutral-600));--_connotation-color-fierce: var(--vvd-avatar-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-pale: var(--vvd-avatar-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-soft: var(--vvd-avatar-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-contrast: var(--vvd-avatar-accent-contrast, var(--vvd-color-neutral-800))}.base{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.base.appearance-outlined{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-firm)}.base.appearance-duotone{--_appearance-color-text: var(--_connotation-color-firm-all);--_appearance-color-fill: transparent;--_appearance-color-outline: var(--_connotation-color-pale)}.base.appearance-subtle{--_appearance-color-text: var(--_connotation-color-contrast);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.base.size-condensed{--_size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-condensed .initials{font:var(--vvd-typography-base-condensed-bold)}.base.size-condensed .icon{font-size:calc(1px*(32 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base.size-expanded{--_size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base.size-expanded .initials{font:var(--vvd-typography-heading-4)}.base.size-expanded .icon{font-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.size-condensed,.size-expanded){--_size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.base:not(.size-condensed,.size-expanded) .initials{font:var(--vvd-typography-base-extended-bold)}.base:not(.size-condensed,.size-expanded) .icon{font-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2))/2);line-height:1}.base:not(.shape-pill){--_avatar-border-radius: 8px}.base:not(.shape-pill).size-condensed{--_avatar-border-radius: 4px}.base.shape-pill{--_avatar-border-radius: 50%}.base .initials{text-transform:uppercase}.base ::slotted(*){block-size:100%;inline-size:100%;object-fit:cover}";
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
-
var result =
|
|
11
|
+
var result = void 0 ;
|
|
13
12
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
13
|
if (decorator = decorators[i])
|
|
15
|
-
result = (
|
|
16
|
-
if (
|
|
14
|
+
result = (decorator(target, key, result) ) || result;
|
|
15
|
+
if (result)
|
|
17
16
|
__defProp(target, key, result);
|
|
18
17
|
return result;
|
|
19
18
|
};
|
|
@@ -21,22 +20,22 @@ class Avatar extends FoundationElement {
|
|
|
21
20
|
}
|
|
22
21
|
__decorateClass([
|
|
23
22
|
attr
|
|
24
|
-
], Avatar.prototype, "connotation"
|
|
23
|
+
], Avatar.prototype, "connotation");
|
|
25
24
|
__decorateClass([
|
|
26
25
|
attr
|
|
27
|
-
], Avatar.prototype, "shape"
|
|
26
|
+
], Avatar.prototype, "shape");
|
|
28
27
|
__decorateClass([
|
|
29
28
|
attr
|
|
30
|
-
], Avatar.prototype, "appearance"
|
|
29
|
+
], Avatar.prototype, "appearance");
|
|
31
30
|
__decorateClass([
|
|
32
31
|
attr
|
|
33
|
-
], Avatar.prototype, "size"
|
|
32
|
+
], Avatar.prototype, "size");
|
|
34
33
|
__decorateClass([
|
|
35
34
|
attr
|
|
36
|
-
], Avatar.prototype, "icon"
|
|
35
|
+
], Avatar.prototype, "icon");
|
|
37
36
|
__decorateClass([
|
|
38
37
|
attr
|
|
39
|
-
], Avatar.prototype, "initials"
|
|
38
|
+
], Avatar.prototype, "initials");
|
|
40
39
|
|
|
41
40
|
const getClasses = ({ appearance, connotation, shape, size }) => classNames(
|
|
42
41
|
"base",
|
package/shared/definition60.cjs
CHANGED
|
@@ -272,7 +272,7 @@ index.__decorate([
|
|
|
272
272
|
index.observable
|
|
273
273
|
], TreeView$1.prototype, "slottedTreeItems", void 0);
|
|
274
274
|
|
|
275
|
-
const styles = ".control{position:relative;display:flex;flex-direction:column;gap:4px}
|
|
275
|
+
const styles = ".control{position:relative;display:flex;flex-direction:column;gap:4px}";
|
|
276
276
|
|
|
277
277
|
class TreeView extends TreeView$1 {
|
|
278
278
|
}
|
package/shared/definition60.js
CHANGED
|
@@ -270,7 +270,7 @@ __decorate([
|
|
|
270
270
|
observable
|
|
271
271
|
], TreeView$1.prototype, "slottedTreeItems", void 0);
|
|
272
272
|
|
|
273
|
-
const styles = ".control{position:relative;display:flex;flex-direction:column;gap:4px}
|
|
273
|
+
const styles = ".control{position:relative;display:flex;flex-direction:column;gap:4px}";
|
|
274
274
|
|
|
275
275
|
class TreeView extends TreeView$1 {
|
|
276
276
|
}
|