@vonage/vivid 3.0.0-next.19 → 3.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion-item/index.js +3 -0
- package/action-group/index.js +1 -1
- package/badge/index.js +4 -1
- package/banner/index.js +4 -1
- package/breadcrumb/index.js +2 -0
- package/breadcrumb-item/index.js +3 -0
- package/button/index.js +4 -1
- package/calendar/index.js +6 -0
- package/calendar-event/index.js +130 -0
- package/card/index.js +3 -0
- package/fab/index.js +4 -1
- package/icon/index.js +3 -1
- package/index.js +4 -0
- package/lib/badge/badge.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +12 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/components.d.ts +1 -0
- package/lib/enums.d.ts +1 -2
- package/lib/fab/fab.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/text/text.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -0
- package/note/index.js +4 -1
- package/package.json +6 -5
- package/popup/index.js +24 -24
- package/progress/index.js +5 -3
- package/progress-ring/index.js +4 -3
- package/shared/anchor.js +8 -1
- package/shared/base-progress.js +5 -0
- package/shared/button.js +8 -1
- package/shared/enums.js +1 -2
- package/shared/es.object.assign.js +7 -7
- package/shared/export.js +972 -0
- package/shared/icon.js +499 -498
- package/shared/index.js +55 -54
- package/shared/object-keys.js +13 -0
- package/shared/object-set-prototype-of.js +12 -960
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +25 -32
- package/side-drawer/index.js +2 -0
- package/sidenav-item/index.js +3 -0
- package/text/index.js +3 -1
- package/text-anchor/index.js +3 -0
- package/text-field/index.js +40 -11
- package/tooltip/index.js +3 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { w as wellKnownSymbol$2, r as classofRaw$1, i as isCallable$1 } from './export.js';
|
|
2
|
+
|
|
3
|
+
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
4
|
+
|
|
5
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
|
6
|
+
var test = {};
|
|
7
|
+
|
|
8
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
9
|
+
|
|
10
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
11
|
+
|
|
12
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
13
|
+
var isCallable = isCallable$1;
|
|
14
|
+
var classofRaw = classofRaw$1;
|
|
15
|
+
var wellKnownSymbol = wellKnownSymbol$2;
|
|
16
|
+
|
|
17
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
18
|
+
var $Object = Object;
|
|
19
|
+
|
|
20
|
+
// ES3 wrong here
|
|
21
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
22
|
+
|
|
23
|
+
// fallback for IE11 Script Access Denied error
|
|
24
|
+
var tryGet = function (it, key) {
|
|
25
|
+
try {
|
|
26
|
+
return it[key];
|
|
27
|
+
} catch (error) { /* empty */ }
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
31
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
32
|
+
var O, tag, result;
|
|
33
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
34
|
+
// @@toStringTag case
|
|
35
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
36
|
+
// builtinTag case
|
|
37
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
38
|
+
// ES3 arguments fallback
|
|
39
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var classof = classof$1;
|
|
43
|
+
|
|
44
|
+
var $String = String;
|
|
45
|
+
|
|
46
|
+
var toString = function (argument) {
|
|
47
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
48
|
+
return $String(argument);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { classof$1 as c, toString as t };
|
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as descriptors, v as v8PrototypeDefineBug, o as objectDefineProperty, a as anObject$2, t as toIndexedObject$2, h as hiddenKeys$1, s as sharedKey$2, e as enumBugKeys$1, b as documentCreateElement$2, w as wellKnownSymbol$4, f as fails$2, c as hasOwnProperty_1, i as isCallable$3, g as toObject$1, j as defineBuiltIn$2, k as createPropertyDescriptor$1, _ as _export, l as createNonEnumerableProperty$2, m as functionCall, n as functionName, p as internalState, q as global$1 } from './export.js';
|
|
2
|
+
import { o as objectKeys$1 } from './object-keys.js';
|
|
3
|
+
import { h as html$1, s as setToStringTag$2, i as iterators, o as objectSetPrototypeOf } from './object-set-prototype-of.js';
|
|
2
4
|
|
|
3
5
|
var objectDefineProperties = {};
|
|
4
6
|
|
|
5
|
-
var internalObjectKeys = objectKeysInternal;
|
|
6
|
-
var enumBugKeys$1 = enumBugKeys$2;
|
|
7
|
-
|
|
8
|
-
// `Object.keys` method
|
|
9
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
10
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
11
|
-
var objectKeys$1 = Object.keys || function keys(O) {
|
|
12
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
7
|
var DESCRIPTORS$1 = descriptors;
|
|
16
8
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
17
|
-
var definePropertyModule
|
|
9
|
+
var definePropertyModule = objectDefineProperty;
|
|
18
10
|
var anObject$1 = anObject$2;
|
|
19
11
|
var toIndexedObject$1 = toIndexedObject$2;
|
|
20
12
|
var objectKeys = objectKeys$1;
|
|
21
13
|
|
|
22
14
|
// `Object.defineProperties` method
|
|
23
15
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
24
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
16
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
25
17
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
26
18
|
anObject$1(O);
|
|
27
19
|
var props = toIndexedObject$1(Properties);
|
|
@@ -29,7 +21,7 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
29
21
|
var length = keys.length;
|
|
30
22
|
var index = 0;
|
|
31
23
|
var key;
|
|
32
|
-
while (length > index) definePropertyModule
|
|
24
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
33
25
|
return O;
|
|
34
26
|
};
|
|
35
27
|
|
|
@@ -37,7 +29,7 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
37
29
|
|
|
38
30
|
var anObject = anObject$2;
|
|
39
31
|
var definePropertiesModule = objectDefineProperties;
|
|
40
|
-
var enumBugKeys = enumBugKeys$
|
|
32
|
+
var enumBugKeys = enumBugKeys$1;
|
|
41
33
|
var hiddenKeys = hiddenKeys$1;
|
|
42
34
|
var html = html$1;
|
|
43
35
|
var documentCreateElement$1 = documentCreateElement$2;
|
|
@@ -105,6 +97,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
105
97
|
|
|
106
98
|
// `Object.create` method
|
|
107
99
|
// https://tc39.es/ecma262/#sec-object.create
|
|
100
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
108
101
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
109
102
|
var result;
|
|
110
103
|
if (O !== null) {
|
|
@@ -119,7 +112,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
119
112
|
|
|
120
113
|
var wellKnownSymbol$3 = wellKnownSymbol$4;
|
|
121
114
|
var create$1 = objectCreate;
|
|
122
|
-
var
|
|
115
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
123
116
|
|
|
124
117
|
var UNSCOPABLES = wellKnownSymbol$3('unscopables');
|
|
125
118
|
var ArrayPrototype = Array.prototype;
|
|
@@ -127,7 +120,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
127
120
|
// Array.prototype[@@unscopables]
|
|
128
121
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
129
122
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
130
|
-
|
|
123
|
+
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
131
124
|
configurable: true,
|
|
132
125
|
value: create$1(null)
|
|
133
126
|
});
|
|
@@ -143,11 +136,10 @@ var fails$1 = fails$2;
|
|
|
143
136
|
var correctPrototypeGetter = !fails$1(function () {
|
|
144
137
|
function F() { /* empty */ }
|
|
145
138
|
F.prototype.constructor = null;
|
|
146
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
139
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
147
140
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
148
141
|
});
|
|
149
142
|
|
|
150
|
-
var global$1 = global$2;
|
|
151
143
|
var hasOwn = hasOwnProperty_1;
|
|
152
144
|
var isCallable$2 = isCallable$3;
|
|
153
145
|
var toObject = toObject$1;
|
|
@@ -155,24 +147,25 @@ var sharedKey = sharedKey$2;
|
|
|
155
147
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
156
148
|
|
|
157
149
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
158
|
-
var Object
|
|
159
|
-
var ObjectPrototype = Object
|
|
150
|
+
var $Object = Object;
|
|
151
|
+
var ObjectPrototype = $Object.prototype;
|
|
160
152
|
|
|
161
153
|
// `Object.getPrototypeOf` method
|
|
162
154
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
163
|
-
|
|
155
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
156
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
164
157
|
var object = toObject(O);
|
|
165
158
|
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
166
159
|
var constructor = object.constructor;
|
|
167
160
|
if (isCallable$2(constructor) && object instanceof constructor) {
|
|
168
161
|
return constructor.prototype;
|
|
169
|
-
} return object instanceof Object
|
|
162
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
170
163
|
};
|
|
171
164
|
|
|
172
165
|
var fails = fails$2;
|
|
173
166
|
var isCallable$1 = isCallable$3;
|
|
174
167
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
175
|
-
var
|
|
168
|
+
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
176
169
|
var wellKnownSymbol$2 = wellKnownSymbol$4;
|
|
177
170
|
|
|
178
171
|
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
@@ -182,7 +175,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
|
182
175
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
183
176
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
184
177
|
|
|
185
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
178
|
+
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
|
186
179
|
if ([].keys) {
|
|
187
180
|
arrayIterator = [].keys();
|
|
188
181
|
// Safari 8 has buggy iterators w/o `next`
|
|
@@ -204,7 +197,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
204
197
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
205
198
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
206
199
|
if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
|
|
207
|
-
|
|
200
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
208
201
|
return this;
|
|
209
202
|
});
|
|
210
203
|
}
|
|
@@ -239,7 +232,7 @@ var getPrototypeOf = objectGetPrototypeOf;
|
|
|
239
232
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
240
233
|
var setToStringTag = setToStringTag$2;
|
|
241
234
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
242
|
-
var
|
|
235
|
+
var defineBuiltIn = defineBuiltIn$2;
|
|
243
236
|
var wellKnownSymbol$1 = wellKnownSymbol$4;
|
|
244
237
|
var Iterators$1 = iterators;
|
|
245
238
|
var IteratorsCore = iteratorsCore;
|
|
@@ -286,7 +279,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
286
279
|
if (setPrototypeOf) {
|
|
287
280
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
288
281
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
289
|
-
|
|
282
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
290
283
|
}
|
|
291
284
|
}
|
|
292
285
|
// Set @@toStringTag to native iterators
|
|
@@ -313,14 +306,14 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
313
306
|
};
|
|
314
307
|
if (FORCED) for (KEY in methods) {
|
|
315
308
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
316
|
-
|
|
309
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
317
310
|
}
|
|
318
311
|
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
319
312
|
}
|
|
320
313
|
|
|
321
314
|
// define iterator
|
|
322
315
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
323
|
-
|
|
316
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
324
317
|
}
|
|
325
318
|
Iterators$1[NAME] = defaultIterator;
|
|
326
319
|
|
|
@@ -431,7 +424,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
431
424
|
|
|
432
425
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
433
426
|
|
|
434
|
-
var global = global$
|
|
427
|
+
var global = global$1;
|
|
435
428
|
var DOMIterables = domIterables;
|
|
436
429
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
437
430
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -470,4 +463,4 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
470
463
|
|
|
471
464
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
472
465
|
|
|
473
|
-
export { objectCreate as
|
|
466
|
+
export { objectCreate as o };
|
package/side-drawer/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import { s as styleInject } from '../shared/style-inject.es.js';
|
|
|
4
4
|
import { w as when } from '../shared/when.js';
|
|
5
5
|
import { s as slotted } from '../shared/slotted.js';
|
|
6
6
|
import { c as classNames } from '../shared/class-names.js';
|
|
7
|
+
import '../shared/export.js';
|
|
8
|
+
import '../shared/object-keys.js';
|
|
7
9
|
import '../shared/object-set-prototype-of.js';
|
|
8
10
|
|
|
9
11
|
class SideDrawer extends FoundationElement {
|
package/sidenav-item/index.js
CHANGED
|
@@ -6,11 +6,14 @@ import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
|
6
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
7
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
|
+
import '../shared/export.js';
|
|
9
10
|
import '../shared/object-set-prototype-of.js';
|
|
11
|
+
import '../shared/to-string.js';
|
|
10
12
|
import '../shared/_has.js';
|
|
11
13
|
import '../shared/when.js';
|
|
12
14
|
import '../shared/class-names.js';
|
|
13
15
|
import '../shared/web.dom-collections.iterator.js';
|
|
16
|
+
import '../shared/object-keys.js';
|
|
14
17
|
import '../shared/anchor.js';
|
|
15
18
|
import '../shared/aria-global.js';
|
|
16
19
|
|
package/text/index.js
CHANGED
|
@@ -2,9 +2,11 @@ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h
|
|
|
2
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import '../shared/web.dom-collections.iterator.js';
|
|
4
4
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
import '../shared/export.js';
|
|
6
|
+
import '../shared/object-keys.js';
|
|
5
7
|
import '../shared/object-set-prototype-of.js';
|
|
6
8
|
|
|
7
|
-
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control:not(.tight):not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1:not(.tight), .control.font-face-body-1-bold:not(.tight), .control.font-face-body-1-code:not(.tight), .control.font-face-body-1-link:not(.tight), .control.font-face-body-2:not(.tight), .control.font-face-body-2-bold:not(.tight), .control.font-face-body-2-code:not(.tight), .control.font-face-body-2-link:not(.tight), .control.font-face-subtitle-1:not(.tight), .control.font-face-subtitle-2:not(.tight), .control.font-face-title-1:not(.tight), .control.font-face-title-2:not(.tight), .control.font-face-headline-1:not(.tight), .control.font-face-headline-2:not(.tight) {\n display: block;\n margin: var(--font-face-margin, 0);\n}\n\n.control {\n color: var(--
|
|
9
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control:not(.tight):not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1:not(.tight), .control.font-face-body-1-bold:not(.tight), .control.font-face-body-1-code:not(.tight), .control.font-face-body-1-link:not(.tight), .control.font-face-body-2:not(.tight), .control.font-face-body-2-bold:not(.tight), .control.font-face-body-2-code:not(.tight), .control.font-face-body-2-link:not(.tight), .control.font-face-subtitle-1:not(.tight), .control.font-face-subtitle-2:not(.tight), .control.font-face-title-1:not(.tight), .control.font-face-title-2:not(.tight), .control.font-face-headline-1:not(.tight), .control.font-face-headline-2:not(.tight) {\n display: block;\n margin: var(--font-face-margin, 0);\n}\n\n.control {\n color: var(--_connotation-color-primary);\n}\n.control.font-face-body-1 {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-bold {\n font: 600 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-code {\n font: 400 ultra-condensed 16px / 24px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-1-link {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-body-2 {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-bold {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-code {\n font: 400 ultra-condensed 14px / 20px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-body-2-link {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-button {\n font: 600 ultra-condensed 14px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-dense {\n font: 600 ultra-condensed 12px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-button-enlarge {\n font: 600 ultra-condensed 16px / 100% SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-bold {\n font: 600 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-code {\n font: 400 ultra-condensed 12px / 16px SpeziaMonoWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-caption-link {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: underline;\n text-transform: none;\n}\n.control.font-face-headline-1 {\n font: 500 condensed 66px / 88px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-headline-2 {\n font: 500 condensed 52px / 68px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-1 {\n font: 500 condensed 26px / 36px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-subtitle-2 {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-1 {\n font: 500 condensed 40px / 52px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.font-face-title-2 {\n font: 500 condensed 32px / 44px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2) {\n font: 400 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n.control.font-face-headline-1, .control.font-face-headline-2 {\n --font-face-margin: 2.5rem 0;\n}\n.control.font-face-title-1, .control.font-face-title-2 {\n --font-face-margin: 2rem 0;\n}\n.control.font-face-subtitle-1, .control.font-face-subtitle-2 {\n --font-face-margin: 1.5rem 0;\n}\n.control:not(.font-face-body-1, .font-face-body-1-bold, .font-face-body-1-code, .font-face-body-1-link, .font-face-body-2, .font-face-body-2-bold, .font-face-body-2-code, .font-face-body-2-link, .font-face-button, .font-face-button-dense, .font-face-button-enlarge, .font-face-caption, .font-face-caption-bold, .font-face-caption-code, .font-face-caption-link, .font-face-headline-1, .font-face-headline-2, .font-face-subtitle-1, .font-face-subtitle-2, .font-face-title-1, .font-face-title-2), .control.font-face-body-1, .control.font-face-body-1-bold, .control.font-face-body-1-code, .control.font-face-body-1-link, .control.font-face-body-2, .control.font-face-body-2-bold, .control.font-face-body-2-code, .control.font-face-body-2-link {\n --font-face-margin: 1rem 0;\n}\n\n::slotted(:where(h1, h2, h3, h4, h5, h6, p)) {\n margin: initial;\n}\n\n::slotted(*) {\n color: inherit;\n font: inherit;\n}";
|
|
8
10
|
styleInject(css_248z);
|
|
9
11
|
|
|
10
12
|
class Text extends FoundationElement {
|
package/text-anchor/index.js
CHANGED
|
@@ -3,8 +3,11 @@ import { T as TextAnchor } from '../shared/text-anchor.js';
|
|
|
3
3
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
4
4
|
import '../shared/affix.js';
|
|
5
5
|
import '../shared/web.dom-collections.iterator.js';
|
|
6
|
+
import '../shared/export.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
6
8
|
import '../shared/object-set-prototype-of.js';
|
|
7
9
|
import '../shared/icon.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
8
11
|
import '../shared/_has.js';
|
|
9
12
|
import '../shared/anchor.js';
|
|
10
13
|
import '../shared/apply-mixins.js';
|
package/text-field/index.js
CHANGED
|
@@ -11,8 +11,11 @@ import { s as styleInject } from '../shared/style-inject.es.js';
|
|
|
11
11
|
import { w as when } from '../shared/when.js';
|
|
12
12
|
import { c as classNames } from '../shared/class-names.js';
|
|
13
13
|
import '../shared/icon.js';
|
|
14
|
+
import '../shared/export.js';
|
|
14
15
|
import '../shared/object-set-prototype-of.js';
|
|
16
|
+
import '../shared/to-string.js';
|
|
15
17
|
import '../shared/_has.js';
|
|
18
|
+
import '../shared/object-keys.js';
|
|
16
19
|
|
|
17
20
|
class _TextField extends FoundationElement {
|
|
18
21
|
}
|
|
@@ -32,34 +35,41 @@ class FormAssociatedTextField extends FormAssociated(_TextField) {
|
|
|
32
35
|
* Text field sub-types
|
|
33
36
|
* @public
|
|
34
37
|
*/
|
|
35
|
-
|
|
36
|
-
(function (TextFieldType) {
|
|
38
|
+
const TextFieldType = {
|
|
37
39
|
/**
|
|
38
40
|
* An email TextField
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
email: "email",
|
|
41
43
|
/**
|
|
42
44
|
* A password TextField
|
|
43
45
|
*/
|
|
44
|
-
|
|
46
|
+
password: "password",
|
|
45
47
|
/**
|
|
46
48
|
* A telephone TextField
|
|
47
49
|
*/
|
|
48
|
-
|
|
50
|
+
tel: "tel",
|
|
49
51
|
/**
|
|
50
52
|
* A text TextField
|
|
51
53
|
*/
|
|
52
|
-
|
|
54
|
+
text: "text",
|
|
53
55
|
/**
|
|
54
56
|
* A URL TextField
|
|
55
57
|
*/
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
+
url: "url",
|
|
59
|
+
};
|
|
58
60
|
|
|
59
61
|
/**
|
|
60
62
|
* A Text Field Custom HTML Element.
|
|
61
63
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | <input type="text" /> element }.
|
|
62
64
|
*
|
|
65
|
+
* @slot start - Content which can be provided before the number field input
|
|
66
|
+
* @slot end - Content which can be provided after the number field input
|
|
67
|
+
* @slot - The default slot for the label
|
|
68
|
+
* @csspart label - The label
|
|
69
|
+
* @csspart root - The element wrapping the control, including start and end slots
|
|
70
|
+
* @csspart control - The text field element
|
|
71
|
+
* @fires change - Fires a custom 'change' event when the value has changed
|
|
72
|
+
*
|
|
63
73
|
* @public
|
|
64
74
|
*/
|
|
65
75
|
class TextField$1 extends FormAssociatedTextField {
|
|
@@ -143,6 +153,21 @@ class TextField$1 extends FormAssociatedTextField {
|
|
|
143
153
|
});
|
|
144
154
|
}
|
|
145
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Selects all the text in the text field
|
|
158
|
+
*
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
select() {
|
|
162
|
+
this.control.select();
|
|
163
|
+
/**
|
|
164
|
+
* The select event does not permeate the shadow DOM boundary.
|
|
165
|
+
* This fn effectively proxies the select event,
|
|
166
|
+
* emitting a `select` event whenever the internal
|
|
167
|
+
* control emits a `select` event
|
|
168
|
+
*/
|
|
169
|
+
this.$emit("select");
|
|
170
|
+
}
|
|
146
171
|
/**
|
|
147
172
|
* Handles the internal control's `input` event
|
|
148
173
|
* @internal
|
|
@@ -246,11 +271,13 @@ __decorate([attr, __metadata("design:type", String)], TextField.prototype, "shap
|
|
|
246
271
|
|
|
247
272
|
__decorate([observable, __metadata("design:type", Object)], TextField.prototype, "userValid", void 0);
|
|
248
273
|
|
|
274
|
+
__decorate([attr, __metadata("design:type", String)], TextField.prototype, "autoComplete", void 0);
|
|
275
|
+
|
|
249
276
|
__decorate([volatile, __metadata("design:type", Object), __metadata("design:paramtypes", [])], TextField.prototype, "errorValidationMessage", null);
|
|
250
277
|
|
|
251
278
|
applyMixins(TextField, AffixIcon);
|
|
252
279
|
|
|
253
|
-
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.base {\n display: grid;\n gap: 4px;\n grid-template-columns: min-content 1fr max-content;\n}\n.base {\n --
|
|
280
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.base {\n display: grid;\n gap: 4px;\n grid-template-columns: min-content 1fr max-content;\n}\n.base {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base.appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-canvas);\n --_appearance-color-outline: var(--vvd-color-on-canvas);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-20);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base:where(:disabled, .disabled).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:readonly, .readonly):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)) {\n --_appearance-color-text: var(--vvd-color-on-canvas);\n --_appearance-color-fill: var(--vvd-color-neutral-20);\n --_appearance-color-outline: var(--vvd-color-neutral-50);\n}\n.base:where(:readonly, .readonly):where(:not(:disabled, .disabled, :hover, .hover, :active, .active)).appearance-ghost {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(.error):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-alert);\n --_appearance-color-fill: var(--vvd-color-alert-20);\n --_appearance-color-outline: var(--vvd-color-alert);\n}\n.base:where(.error):where(:not(:disabled, .disabled)).appearance-ghost {\n --_appearance-color-text: transparent;\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:not(.disabled) {\n --_low-ink-color: var(--vvd-color-neutral-70);\n}\n.base.disabled {\n --_low-ink-color: var(--vvd-color-neutral-50);\n}\n\n.label {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n grid-column: 1/4;\n grid-row: 1;\n}\n.char-count + .label {\n grid-column: 1/3;\n}\n.base:not(.disabled) .label {\n color: var(--vvd-color-on-canvas);\n}\n.base.disabled .label {\n color: var(--vvd-color-neutral-50);\n}\n\n.char-count {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n color: var(--_low-ink-color);\n grid-column: 3/4;\n}\n\n.fieldset {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n contain: strict;\n grid-column: 1/4;\n padding-inline: 16px;\n transition: color 0.2s, box-shadow 0.2s, background-color 0.2s;\n /* Size */\n /* Shape */\n}\n.base:not(.density-extended) > .fieldset {\n block-size: 40px;\n}\n.base.density-extended > .fieldset {\n block-size: 48px;\n}\n.base:not(.shape-pill) .fieldset {\n border-radius: 6px;\n}\n.base.shape-pill .fieldset {\n border-radius: 24px;\n}\n\n.control {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n position: absolute;\n padding: 1px;\n border: 0 none;\n background-color: unset;\n border-radius: inherit;\n color: inherit;\n inset: 0;\n outline: 0 none;\n padding-inline-start: 16px;\n}\n.control::placeholder {\n color: var(--_low-ink-color);\n}\n\n.icon {\n position: relative;\n z-index: 1;\n color: var(--_low-ink-color);\n}\n.icon + .control {\n padding-inline-start: 44px;\n}\n\n.helper-text {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n color: var(--_low-ink-color);\n grid-column: 1/4;\n margin-inline-start: 16px;\n}\n\n.error-message {\n font: 400 ultra-condensed 12px / 16px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n display: flex;\n color: var(--vvd-color-on-canvas);\n grid-column: 2/4;\n}\n.error-message-icon {\n color: var(--vvd-color-alert);\n font-size: 16px;\n grid-column: 1/2;\n}\n\n.focus-indicator {\n --focus-stroke-gap-color: transparent;\n pointer-events: none;\n}\n.fieldset:not(:focus-within) > .focus-indicator {\n display: none;\n}";
|
|
254
281
|
styleInject(css_248z);
|
|
255
282
|
|
|
256
283
|
let _ = t => t,
|
|
@@ -318,7 +345,9 @@ const TextfieldTemplate = context => {
|
|
|
318
345
|
placeholder="${0}"
|
|
319
346
|
?readonly="${0}"
|
|
320
347
|
?required="${0}"
|
|
321
|
-
size="${0}"
|
|
348
|
+
size="${0}"
|
|
349
|
+
autocomplete="${0}"
|
|
350
|
+
name="${0}"
|
|
322
351
|
?spellcheck="${0}"
|
|
323
352
|
:value="${0}"
|
|
324
353
|
type="${0}"
|
|
@@ -347,7 +376,7 @@ const TextfieldTemplate = context => {
|
|
|
347
376
|
</div>
|
|
348
377
|
${0}
|
|
349
378
|
${0}
|
|
350
|
-
</div>`), getStateClasses, when(x => x.charCount && x.maxlength, renderCharCount()), when(x => x.label, renderLabel()), x => affixIconTemplate(x.icon), x => x.handleTextInput(), x => x.handleChange(), x => x.autofocus, x => x.disabled, x => x.list, x => x.maxlength, x => x.minlength, x => x.pattern, x => x.placeholder, x => x.readOnly, x => x.required, x => x.size, x => x.spellcheck, x => x.value, x => x.type, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, when(x => {
|
|
379
|
+
</div>`), getStateClasses, when(x => x.charCount && x.maxlength, renderCharCount()), when(x => x.label, renderLabel()), x => affixIconTemplate(x.icon), x => x.handleTextInput(), x => x.handleChange(), x => x.autofocus, x => x.disabled, x => x.list, x => x.maxlength, x => x.minlength, x => x.pattern, x => x.placeholder, x => x.readOnly, x => x.required, x => x.size, x => x.autoComplete, x => x.name, x => x.spellcheck, x => x.value, x => x.type, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, when(x => {
|
|
351
380
|
var _a;
|
|
352
381
|
|
|
353
382
|
return !x.errorValidationMessage && ((_a = x.helperText) === null || _a === void 0 ? void 0 : _a.length);
|
package/tooltip/index.js
CHANGED
|
@@ -7,7 +7,9 @@ import '../elevation/index.js';
|
|
|
7
7
|
import '../button/index.js';
|
|
8
8
|
import '../icon/index.js';
|
|
9
9
|
import '../shared/icon.js';
|
|
10
|
+
import '../shared/export.js';
|
|
10
11
|
import '../shared/object-set-prototype-of.js';
|
|
12
|
+
import '../shared/to-string.js';
|
|
11
13
|
import '../shared/_has.js';
|
|
12
14
|
import '../shared/when.js';
|
|
13
15
|
import '../focus/index.js';
|
|
@@ -17,6 +19,7 @@ import '../shared/button.js';
|
|
|
17
19
|
import '../shared/apply-mixins.js';
|
|
18
20
|
import '../shared/focus2.js';
|
|
19
21
|
import '../shared/aria-global.js';
|
|
22
|
+
import '../shared/object-keys.js';
|
|
20
23
|
import '../shared/es.object.assign.js';
|
|
21
24
|
|
|
22
25
|
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n pointer-events: none;\n}\n\n.tooltip {\n width: var(--tooltip-inline-size, 240px);\n}\n.tooltip-text {\n font: 600 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n padding: 8px 12px;\n color: var(--vvd-color-on-canvas);\n}";
|