@vonage/vivid 3.0.0-next.57 → 3.0.0-next.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -22
- package/accordion/index.js +1 -1
- package/accordion-item/index.js +1 -1
- package/action-group/index.js +1 -1
- package/avatar/index.js +1 -1
- package/badge/index.js +1 -1
- package/banner/index.js +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +31 -16
- package/calendar-event/index.js +6 -6
- package/card/index.js +1 -1
- package/checkbox/index.js +10 -1
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -1
- package/fab/index.js +1 -1
- package/focus/index.js +1 -1
- package/header/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/package.json +4 -4
- package/progress/index.js +3 -3
- package/progress-ring/index.js +1 -1
- package/shared/button.js +4 -0
- package/shared/es.object.assign.js +1 -1
- package/shared/export.js +53 -30
- package/shared/form-associated.js +3 -6
- package/shared/form-elements.js +4 -0
- package/shared/icon.js +52 -35
- package/shared/index3.js +25 -19
- package/shared/iterators.js +1 -1
- package/shared/object-keys.js +1 -1
- package/shared/patterns/form-elements.d.ts +1 -1
- package/shared/web.dom-collections.iterator.js +18 -10
- package/side-drawer/index.js +2 -3
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/{themes/dark.css → tokens/theme-dark.css} +25 -14
- package/styles/{themes/light.css → tokens/theme-light.css} +25 -14
- package/text-area/index.js +5 -1
- package/text-field/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/styles/typography/desktop.css +0 -104
package/note/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import '../shared/to-string.js';
|
|
|
14
14
|
import '../shared/_has.js';
|
|
15
15
|
import '../shared/object-keys.js';
|
|
16
16
|
|
|
17
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
17
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 15 Sep 2022 08:34:53 GMT\n */\n.base {\n display: flex;\n align-items: stretch;\n padding: 20px;\n border-left: 8px solid var(--_connotation-color-primary);\n background-color: var(--vvd-color-canvas);\n border-radius: 6px;\n box-shadow: inset 0 1px 0 0 var(--vvd-color-neutral-300), inset -1px 0 0 0 var(--vvd-color-neutral-300), inset 0 -1px 0 0 var(--vvd-color-neutral-300);\n color: var(--vvd-color-canvas-text);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base.connotation-information {\n --_connotation-color-primary: var(--vvd-color-information-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-500);\n}\n.base:not(.connotation-success, .connotation-information, .connotation-alert, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n}\n@supports (contain: content) {\n .base {\n contain: content;\n }\n}\n@supports not (contain: content) {\n .base {\n overflow: hidden;\n }\n}\n\n.icon {\n align-self: flex-start;\n font-size: 24px;\n margin-inline-end: 16px;\n}\n\n.text {\n display: flex;\n min-height: 24px;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n gap: 4px;\n text-align: start;\n}\n.text .headline {\n font: var(--vvd-font-base-bold);\n}\n.text .message {\n font: var(--vvd-font-base);\n}";
|
|
18
18
|
|
|
19
19
|
class Note extends FoundationElement {}
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"typings": "./index.d.ts",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@microsoft/fast-element": "^1.10.
|
|
53
|
-
"@microsoft/fast-foundation": "^2.46.
|
|
52
|
+
"@microsoft/fast-element": "^1.10.5",
|
|
53
|
+
"@microsoft/fast-foundation": "^2.46.14",
|
|
54
54
|
"@microsoft/fast-web-utilities": "^5.4.1",
|
|
55
55
|
"ramda": "^0.27.2",
|
|
56
56
|
"dialog-polyfill": "^0.5.6",
|
|
57
|
-
"@floating-ui/dom": "^0.5.
|
|
57
|
+
"@floating-ui/dom": "^0.5.4"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {}
|
|
60
60
|
}
|
package/progress/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { c as classNames } from '../shared/class-names.js';
|
|
|
7
7
|
import '../shared/object-keys.js';
|
|
8
8
|
import '../shared/iterators.js';
|
|
9
9
|
|
|
10
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
10
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 15 Sep 2022 08:34:53 GMT\n */\n.base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-information-200), var(--vvd-color-cta-600));\n}\n\n.progress {\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n inline-size: 100%;\n /* Shape */\n}\n.base:not(.shape-sharp) .progress {\n border-radius: 3px;\n}\n\n.indeterminate {\n display: flex;\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n inline-size: 100%;\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n.paused .determinate {\n background-color: var(--vvd-color-neutral-300);\n}\n\n.indicator-1 {\n animation: indeterminate-1 2s infinite;\n inline-size: 30%;\n}\n\n.indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.indicator-1,\n.indicator-2 {\n position: absolute;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n opacity: 0;\n}\n.connotation-pacific .indicator-1,\n.connotation-pacific .indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n.paused .indicator-1,\n.paused .indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n.reverse .indicator-1,\n.reverse .indicator-2 {\n animation-direction: reverse;\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
|
|
11
11
|
|
|
12
12
|
var classof = classofRaw;
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ var $ = _export;
|
|
|
22
22
|
var uncurryThis = functionUncurryThis;
|
|
23
23
|
var isArray = isArray$1;
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var nativeReverse = uncurryThis([].reverse);
|
|
26
26
|
var test = [1, 2];
|
|
27
27
|
|
|
28
28
|
// `Array.prototype.reverse` method
|
|
@@ -33,7 +33,7 @@ $({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()
|
|
|
33
33
|
reverse: function reverse() {
|
|
34
34
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
35
35
|
if (isArray(this)) this.length = this.length;
|
|
36
|
-
return
|
|
36
|
+
return nativeReverse(this);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
package/progress-ring/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { B as BaseProgress } from '../shared/base-progress.js';
|
|
|
3
3
|
import { w as when } from '../shared/when.js';
|
|
4
4
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
5
|
|
|
6
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 15 Sep 2022 08:34:53 GMT\n */\n.base {\n align-items: center;\n block-size: var(--_density);\n color: var(--_appearance-color-text);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base.density-5 {\n --_density: calc(5 * 4px);\n}\n.base.density-6 {\n --_density: calc(6 * 4px);\n}\n.base.density-7 {\n --_density: calc(7 * 4px);\n}\n.base.density-8 {\n --_density: calc(8 * 4px);\n}\n.base.density-9 {\n --_density: calc(9 * 4px);\n}\n.base.density-11 {\n --_density: calc(11 * 4px);\n}\n.base.density-12 {\n --_density: calc(12 * 4px);\n}\n.base.density-13 {\n --_density: calc(13 * 4px);\n}\n.base:not(.density-5, .density-6, .density-7, .density-8, .density-9, .density-11, .density-12, .density-13) {\n --_density: calc(10 * 4px);\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
|
|
7
7
|
|
|
8
8
|
class ProgressRing extends BaseProgress {}
|
|
9
9
|
|
package/shared/button.js
CHANGED
|
@@ -120,6 +120,10 @@ class Button extends FormAssociatedButton {
|
|
|
120
120
|
next === "reset" && this.addEventListener("click", this.handleFormReset);
|
|
121
121
|
previous === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
122
122
|
}
|
|
123
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
124
|
+
validate() {
|
|
125
|
+
super.validate(this.control);
|
|
126
|
+
}
|
|
123
127
|
/**
|
|
124
128
|
* @internal
|
|
125
129
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as descriptors, f as functionUncurryThis,
|
|
1
|
+
import { d as descriptors, f as functionUncurryThis, x as functionCall, e as fails$1, J as toObject$1, N as indexedObject, O as objectGetOwnPropertySymbols, P as objectPropertyIsEnumerable, _ as _export } from './export.js';
|
|
2
2
|
import { o as objectKeys$1 } from './object-keys.js';
|
|
3
3
|
|
|
4
4
|
var DESCRIPTORS = descriptors;
|
package/shared/export.js
CHANGED
|
@@ -115,12 +115,20 @@ var indexedObject = fails$5(function () {
|
|
|
115
115
|
return classof(it) == 'String' ? split(it, '') : $Object$2(it);
|
|
116
116
|
} : $Object$2;
|
|
117
117
|
|
|
118
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
119
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
120
|
+
var isNullOrUndefined$2 = function (it) {
|
|
121
|
+
return it === null || it === undefined;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
125
|
+
|
|
118
126
|
var $TypeError$5 = TypeError;
|
|
119
127
|
|
|
120
128
|
// `RequireObjectCoercible` abstract operation
|
|
121
129
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
122
130
|
var requireObjectCoercible$2 = function (it) {
|
|
123
|
-
if (it
|
|
131
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
|
|
124
132
|
return it;
|
|
125
133
|
};
|
|
126
134
|
|
|
@@ -140,7 +148,14 @@ var isCallable$a = function (argument) {
|
|
|
140
148
|
|
|
141
149
|
var isCallable$9 = isCallable$a;
|
|
142
150
|
|
|
143
|
-
var
|
|
151
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
152
|
+
|
|
153
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
154
|
+
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
155
|
+
|
|
156
|
+
var isObject$5 = SPECIAL_DOCUMENT_ALL ? function (it) {
|
|
157
|
+
return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
|
|
158
|
+
} : function (it) {
|
|
144
159
|
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
|
145
160
|
};
|
|
146
161
|
|
|
@@ -197,7 +212,7 @@ var V8_VERSION = engineV8Version;
|
|
|
197
212
|
var fails$4 = fails$8;
|
|
198
213
|
|
|
199
214
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
200
|
-
var
|
|
215
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$4(function () {
|
|
201
216
|
var symbol = Symbol();
|
|
202
217
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
203
218
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -208,7 +223,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
|
|
|
208
223
|
|
|
209
224
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
210
225
|
|
|
211
|
-
var NATIVE_SYMBOL$1 =
|
|
226
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
212
227
|
|
|
213
228
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
214
229
|
&& !Symbol.sham
|
|
@@ -250,12 +265,13 @@ var aCallable$1 = function (argument) {
|
|
|
250
265
|
};
|
|
251
266
|
|
|
252
267
|
var aCallable = aCallable$1;
|
|
268
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
253
269
|
|
|
254
270
|
// `GetMethod` abstract operation
|
|
255
271
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
256
272
|
var getMethod$1 = function (V, P) {
|
|
257
273
|
var func = V[P];
|
|
258
|
-
return func
|
|
274
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
259
275
|
};
|
|
260
276
|
|
|
261
277
|
var call$2 = functionCall;
|
|
@@ -302,10 +318,10 @@ var store$2 = sharedStore;
|
|
|
302
318
|
(shared$3.exports = function (key, value) {
|
|
303
319
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
304
320
|
})('versions', []).push({
|
|
305
|
-
version: '3.
|
|
321
|
+
version: '3.25.1',
|
|
306
322
|
mode: 'global',
|
|
307
323
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
308
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
324
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE',
|
|
309
325
|
source: 'https://github.com/zloirock/core-js'
|
|
310
326
|
});
|
|
311
327
|
|
|
@@ -345,7 +361,7 @@ var global$5 = global$a;
|
|
|
345
361
|
var shared$2 = shared$3.exports;
|
|
346
362
|
var hasOwn$6 = hasOwnProperty_1;
|
|
347
363
|
var uid$1 = uid$2;
|
|
348
|
-
var NATIVE_SYMBOL =
|
|
364
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
349
365
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
350
366
|
|
|
351
367
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
@@ -405,12 +421,12 @@ var toPropertyKey$2 = function (argument) {
|
|
|
405
421
|
var global$4 = global$a;
|
|
406
422
|
var isObject$2 = isObject$5;
|
|
407
423
|
|
|
408
|
-
var document = global$4.document;
|
|
424
|
+
var document$1 = global$4.document;
|
|
409
425
|
// typeof document.createElement is 'object' in old IE
|
|
410
|
-
var EXISTS$1 = isObject$2(document) && isObject$2(document.createElement);
|
|
426
|
+
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
|
411
427
|
|
|
412
428
|
var documentCreateElement = function (it) {
|
|
413
|
-
return EXISTS$1 ? document.createElement(it) : {};
|
|
429
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
414
430
|
};
|
|
415
431
|
|
|
416
432
|
var DESCRIPTORS$6 = descriptors;
|
|
@@ -519,11 +535,11 @@ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
519
535
|
};
|
|
520
536
|
|
|
521
537
|
var DESCRIPTORS$2 = descriptors;
|
|
522
|
-
var definePropertyModule$
|
|
538
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
523
539
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
524
540
|
|
|
525
|
-
var createNonEnumerableProperty$
|
|
526
|
-
return definePropertyModule$
|
|
541
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
542
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
|
|
527
543
|
} : function (object, key, value) {
|
|
528
544
|
object[key] = value;
|
|
529
545
|
return object;
|
|
@@ -562,15 +578,14 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
562
578
|
};
|
|
563
579
|
}
|
|
564
580
|
|
|
565
|
-
var inspectSource$
|
|
581
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
566
582
|
|
|
567
583
|
var global$3 = global$a;
|
|
568
584
|
var isCallable$3 = isCallable$a;
|
|
569
|
-
var inspectSource$1 = inspectSource$2;
|
|
570
585
|
|
|
571
586
|
var WeakMap$1 = global$3.WeakMap;
|
|
572
587
|
|
|
573
|
-
var
|
|
588
|
+
var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
574
589
|
|
|
575
590
|
var shared$1 = shared$3.exports;
|
|
576
591
|
var uid = uid$2;
|
|
@@ -583,11 +598,11 @@ var sharedKey$1 = function (key) {
|
|
|
583
598
|
|
|
584
599
|
var hiddenKeys$3 = {};
|
|
585
600
|
|
|
586
|
-
var NATIVE_WEAK_MAP =
|
|
601
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
587
602
|
var global$2 = global$a;
|
|
588
603
|
var uncurryThis$2 = functionUncurryThis;
|
|
589
604
|
var isObject = isObject$5;
|
|
590
|
-
var createNonEnumerableProperty$
|
|
605
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
591
606
|
var hasOwn$3 = hasOwnProperty_1;
|
|
592
607
|
var shared = sharedStore;
|
|
593
608
|
var sharedKey = sharedKey$1;
|
|
@@ -617,7 +632,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
617
632
|
var wmhas = uncurryThis$2(store.has);
|
|
618
633
|
var wmset = uncurryThis$2(store.set);
|
|
619
634
|
set = function (it, metadata) {
|
|
620
|
-
if (wmhas(store, it)) throw
|
|
635
|
+
if (wmhas(store, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
621
636
|
metadata.facade = it;
|
|
622
637
|
wmset(store, it, metadata);
|
|
623
638
|
return metadata;
|
|
@@ -632,9 +647,9 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
632
647
|
var STATE = sharedKey('state');
|
|
633
648
|
hiddenKeys$2[STATE] = true;
|
|
634
649
|
set = function (it, metadata) {
|
|
635
|
-
if (hasOwn$3(it, STATE)) throw
|
|
650
|
+
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
636
651
|
metadata.facade = it;
|
|
637
|
-
createNonEnumerableProperty$
|
|
652
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
638
653
|
return metadata;
|
|
639
654
|
};
|
|
640
655
|
get = function (it) {
|
|
@@ -658,7 +673,7 @@ var isCallable$2 = isCallable$a;
|
|
|
658
673
|
var hasOwn$2 = hasOwnProperty_1;
|
|
659
674
|
var DESCRIPTORS = descriptors;
|
|
660
675
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
661
|
-
var inspectSource = inspectSource$
|
|
676
|
+
var inspectSource = inspectSource$1;
|
|
662
677
|
var InternalStateModule = internalState;
|
|
663
678
|
|
|
664
679
|
var enforceInternalState = InternalStateModule.enforce;
|
|
@@ -679,7 +694,8 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
679
694
|
if (options && options.getter) name = 'get ' + name;
|
|
680
695
|
if (options && options.setter) name = 'set ' + name;
|
|
681
696
|
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
682
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
|
697
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
698
|
+
else value.name = name;
|
|
683
699
|
}
|
|
684
700
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
685
701
|
defineProperty(value, 'length', { value: options.arity });
|
|
@@ -703,7 +719,7 @@ Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
|
703
719
|
}, 'toString');
|
|
704
720
|
|
|
705
721
|
var isCallable$1 = isCallable$a;
|
|
706
|
-
var
|
|
722
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
707
723
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
708
724
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
709
725
|
|
|
@@ -716,10 +732,17 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
716
732
|
if (simple) O[key] = value;
|
|
717
733
|
else defineGlobalProperty$1(key, value);
|
|
718
734
|
} else {
|
|
719
|
-
|
|
720
|
-
|
|
735
|
+
try {
|
|
736
|
+
if (!options.unsafe) delete O[key];
|
|
737
|
+
else if (O[key]) simple = true;
|
|
738
|
+
} catch (error) { /* empty */ }
|
|
721
739
|
if (simple) O[key] = value;
|
|
722
|
-
else
|
|
740
|
+
else definePropertyModule$1.f(O, key, {
|
|
741
|
+
value: value,
|
|
742
|
+
enumerable: false,
|
|
743
|
+
configurable: !options.nonConfigurable,
|
|
744
|
+
writable: !options.nonWritable
|
|
745
|
+
});
|
|
723
746
|
} return O;
|
|
724
747
|
};
|
|
725
748
|
|
|
@@ -916,7 +939,7 @@ var isForced_1 = isForced$1;
|
|
|
916
939
|
|
|
917
940
|
var global$1 = global$a;
|
|
918
941
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
919
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
942
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
920
943
|
var defineBuiltIn = defineBuiltIn$1;
|
|
921
944
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
922
945
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
@@ -969,4 +992,4 @@ var _export = function (options, source) {
|
|
|
969
992
|
}
|
|
970
993
|
};
|
|
971
994
|
|
|
972
|
-
export {
|
|
995
|
+
export { getMethod$1 as A, lengthOfArrayLike$1 as B, requireObjectCoercible$2 as C, functionName as D, v8PrototypeDefineBug as E, toIndexedObject$3 as F, hiddenKeys$3 as G, sharedKey$1 as H, enumBugKeys$1 as I, toObject$1 as J, createPropertyDescriptor$2 as K, createNonEnumerableProperty$2 as L, objectKeysInternal as M, indexedObject as N, objectGetOwnPropertySymbols as O, objectPropertyIsEnumerable as P, copyConstructorProperties$1 as Q, shared$3 as R, toIntegerOrInfinity$2 as S, toPropertyKey$2 as T, toAbsoluteIndex$1 as U, toLength$1 as V, _export as _, getBuiltIn$3 as a, objectIsPrototypeOf as b, classofRaw as c, descriptors as d, fails$8 as e, functionUncurryThis as f, global$a as g, inspectSource$1 as h, isCallable$a as i, anObject$2 as j, isNullOrUndefined$2 as k, functionBindNative as l, aCallable$1 as m, engineUserAgent as n, objectDefineProperty as o, documentCreateElement as p, hasOwnProperty_1 as q, objectGetOwnPropertyDescriptor as r, isForced_1 as s, tryToString$1 as t, engineV8Version as u, defineBuiltIn$1 as v, wellKnownSymbol$1 as w, functionCall as x, isObject$5 as y, internalState as z };
|
|
@@ -421,13 +421,10 @@ function FormAssociated(BaseCtor) {
|
|
|
421
421
|
this.removeChild(this.proxy);
|
|
422
422
|
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeChild(this.proxySlot);
|
|
423
423
|
}
|
|
424
|
-
/**
|
|
425
|
-
|
|
426
|
-
* validity, but this can be extended or replaced in implementation.
|
|
427
|
-
*/
|
|
428
|
-
validate() {
|
|
424
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
425
|
+
validate(anchor) {
|
|
429
426
|
if (this.proxy instanceof HTMLElement) {
|
|
430
|
-
this.setValidity(this.proxy.validity, this.proxy.validationMessage);
|
|
427
|
+
this.setValidity(this.proxy.validity, this.proxy.validationMessage, anchor);
|
|
431
428
|
}
|
|
432
429
|
}
|
|
433
430
|
/**
|
package/shared/form-elements.js
CHANGED
|
@@ -174,6 +174,10 @@ class TextField extends FormAssociatedTextField {
|
|
|
174
174
|
handleChange() {
|
|
175
175
|
this.$emit("change");
|
|
176
176
|
}
|
|
177
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
178
|
+
validate() {
|
|
179
|
+
super.validate(this.control);
|
|
180
|
+
}
|
|
177
181
|
}
|
|
178
182
|
__decorate([
|
|
179
183
|
attr({ attribute: "readonly", mode: "boolean" })
|
package/shared/icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as classofRaw, g as global$8, w as wellKnownSymbol$6, a as getBuiltIn$5, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, e as fails$4, i as isCallable$6, h as inspectSource$2, t as tryToString$3, j as anObject$5, k as
|
|
1
|
+
import { c as classofRaw, g as global$8, w as wellKnownSymbol$6, a as getBuiltIn$5, o as objectDefineProperty, d as descriptors, b as objectIsPrototypeOf, f as functionUncurryThis, e as fails$4, i as isCallable$6, h as inspectSource$2, t as tryToString$3, j as anObject$5, k as isNullOrUndefined$2, l as functionBindNative, m as aCallable$6, n as engineUserAgent, p as documentCreateElement, q as hasOwnProperty_1, r as objectGetOwnPropertyDescriptor, s as isForced_1, u as engineV8Version, _ as _export, v as defineBuiltIn$3, x as functionCall, y as isObject$2, z as internalState, A as getMethod$2, B as lengthOfArrayLike$1, C as requireObjectCoercible$1, D as functionName } from './export.js';
|
|
2
2
|
import { h as html$1, o as objectSetPrototypeOf, s as setToStringTag$1, i as iterators } from './iterators.js';
|
|
3
3
|
import { c as classof$3, t as toString$1 } from './to-string.js';
|
|
4
4
|
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable } from './index.js';
|
|
@@ -30,11 +30,11 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
30
30
|
|
|
31
31
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
32
32
|
|
|
33
|
-
var $TypeError$
|
|
33
|
+
var $TypeError$5 = TypeError;
|
|
34
34
|
|
|
35
35
|
var anInstance$1 = function (it, Prototype) {
|
|
36
36
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
37
|
-
throw $TypeError$
|
|
37
|
+
throw $TypeError$5('Incorrect invocation');
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
var uncurryThis$3 = functionUncurryThis;
|
|
@@ -93,16 +93,17 @@ var isConstructor$1 = !construct || fails$3(function () {
|
|
|
93
93
|
var isConstructor = isConstructor$1;
|
|
94
94
|
var tryToString$2 = tryToString$3;
|
|
95
95
|
|
|
96
|
-
var $TypeError$
|
|
96
|
+
var $TypeError$4 = TypeError;
|
|
97
97
|
|
|
98
98
|
// `Assert: IsConstructor(argument) is true`
|
|
99
99
|
var aConstructor$1 = function (argument) {
|
|
100
100
|
if (isConstructor(argument)) return argument;
|
|
101
|
-
throw $TypeError$
|
|
101
|
+
throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
var anObject$4 = anObject$5;
|
|
105
105
|
var aConstructor = aConstructor$1;
|
|
106
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
106
107
|
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
107
108
|
|
|
108
109
|
var SPECIES$1 = wellKnownSymbol$4('species');
|
|
@@ -112,7 +113,7 @@ var SPECIES$1 = wellKnownSymbol$4('species');
|
|
|
112
113
|
var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
113
114
|
var C = anObject$4(O).constructor;
|
|
114
115
|
var S;
|
|
115
|
-
return C === undefined || (S = anObject$4(C)[SPECIES$1])
|
|
116
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
var NATIVE_BIND$1 = functionBindNative;
|
|
@@ -144,10 +145,10 @@ var uncurryThis$1 = functionUncurryThis;
|
|
|
144
145
|
|
|
145
146
|
var arraySlice$1 = uncurryThis$1([].slice);
|
|
146
147
|
|
|
147
|
-
var $TypeError$
|
|
148
|
+
var $TypeError$3 = TypeError;
|
|
148
149
|
|
|
149
150
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
150
|
-
if (passed < required) throw $TypeError$
|
|
151
|
+
if (passed < required) throw $TypeError$3('Not enough arguments');
|
|
151
152
|
return passed;
|
|
152
153
|
};
|
|
153
154
|
|
|
@@ -166,7 +167,7 @@ var arraySlice = arraySlice$1;
|
|
|
166
167
|
var createElement = documentCreateElement;
|
|
167
168
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
168
169
|
var IS_IOS$1 = engineIsIos;
|
|
169
|
-
var IS_NODE$
|
|
170
|
+
var IS_NODE$3 = engineIsNode;
|
|
170
171
|
|
|
171
172
|
var set = global$6.setImmediate;
|
|
172
173
|
var clear = global$6.clearImmediate;
|
|
@@ -224,7 +225,7 @@ if (!set || !clear) {
|
|
|
224
225
|
delete queue$1[id];
|
|
225
226
|
};
|
|
226
227
|
// Node.js 0.8-
|
|
227
|
-
if (IS_NODE$
|
|
228
|
+
if (IS_NODE$3) {
|
|
228
229
|
defer = function (id) {
|
|
229
230
|
process$2.nextTick(runner(id));
|
|
230
231
|
};
|
|
@@ -288,10 +289,10 @@ var macrotask = task$1.set;
|
|
|
288
289
|
var IS_IOS = engineIsIos;
|
|
289
290
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
290
291
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
291
|
-
var IS_NODE$
|
|
292
|
+
var IS_NODE$2 = engineIsNode;
|
|
292
293
|
|
|
293
294
|
var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
|
|
294
|
-
var document$
|
|
295
|
+
var document$2 = global$4.document;
|
|
295
296
|
var process$1 = global$4.process;
|
|
296
297
|
var Promise$1 = global$4.Promise;
|
|
297
298
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
@@ -304,7 +305,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
304
305
|
if (!queueMicrotask) {
|
|
305
306
|
flush = function () {
|
|
306
307
|
var parent, fn;
|
|
307
|
-
if (IS_NODE$
|
|
308
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
308
309
|
while (head) {
|
|
309
310
|
fn = head.fn;
|
|
310
311
|
head = head.next;
|
|
@@ -321,9 +322,9 @@ if (!queueMicrotask) {
|
|
|
321
322
|
|
|
322
323
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
323
324
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
324
|
-
if (!IS_IOS && !IS_NODE$
|
|
325
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
325
326
|
toggle = true;
|
|
326
|
-
node = document$
|
|
327
|
+
node = document$2.createTextNode('');
|
|
327
328
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
328
329
|
notify$1 = function () {
|
|
329
330
|
node.data = toggle = !toggle;
|
|
@@ -339,7 +340,7 @@ if (!queueMicrotask) {
|
|
|
339
340
|
then(flush);
|
|
340
341
|
};
|
|
341
342
|
// Node.js without promises
|
|
342
|
-
} else if (IS_NODE$
|
|
343
|
+
} else if (IS_NODE$2) {
|
|
343
344
|
notify$1 = function () {
|
|
344
345
|
process$1.nextTick(flush);
|
|
345
346
|
};
|
|
@@ -412,7 +413,16 @@ var global$2 = global$8;
|
|
|
412
413
|
|
|
413
414
|
var promiseNativeConstructor = global$2.Promise;
|
|
414
415
|
|
|
415
|
-
|
|
416
|
+
/* global Deno -- Deno case */
|
|
417
|
+
|
|
418
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
419
|
+
|
|
420
|
+
var IS_DENO$1 = engineIsDeno;
|
|
421
|
+
var IS_NODE$1 = engineIsNode;
|
|
422
|
+
|
|
423
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
424
|
+
&& typeof window == 'object'
|
|
425
|
+
&& typeof document == 'object';
|
|
416
426
|
|
|
417
427
|
var global$1 = global$8;
|
|
418
428
|
var NativePromiseConstructor$4 = promiseNativeConstructor;
|
|
@@ -421,6 +431,7 @@ var isForced = isForced_1;
|
|
|
421
431
|
var inspectSource = inspectSource$2;
|
|
422
432
|
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
423
433
|
var IS_BROWSER = engineIsBrowser;
|
|
434
|
+
var IS_DENO = engineIsDeno;
|
|
424
435
|
var V8_VERSION = engineV8Version;
|
|
425
436
|
|
|
426
437
|
NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
|
|
@@ -438,18 +449,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
438
449
|
// We can't use @@species feature detection in V8 since it causes
|
|
439
450
|
// deoptimization and performance degradation
|
|
440
451
|
// https://github.com/zloirock/core-js/issues/679
|
|
441
|
-
if (V8_VERSION
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
452
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
453
|
+
// Detect correctness of subclassing with @@species support
|
|
454
|
+
var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
|
|
455
|
+
var FakePromise = function (exec) {
|
|
456
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
457
|
+
};
|
|
458
|
+
var constructor = promise.constructor = {};
|
|
459
|
+
constructor[SPECIES] = FakePromise;
|
|
460
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
461
|
+
if (!SUBCLASSING) return true;
|
|
451
462
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
452
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
463
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
453
464
|
});
|
|
454
465
|
|
|
455
466
|
var promiseConstructorDetection = {
|
|
@@ -462,10 +473,12 @@ var newPromiseCapability$2 = {};
|
|
|
462
473
|
|
|
463
474
|
var aCallable$4 = aCallable$6;
|
|
464
475
|
|
|
476
|
+
var $TypeError$2 = TypeError;
|
|
477
|
+
|
|
465
478
|
var PromiseCapability = function (C) {
|
|
466
479
|
var resolve, reject;
|
|
467
480
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
468
|
-
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
481
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
|
|
469
482
|
resolve = $$resolve;
|
|
470
483
|
reject = $$reject;
|
|
471
484
|
});
|
|
@@ -512,12 +525,12 @@ var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstr
|
|
|
512
525
|
var PromiseConstructor = NativePromiseConstructor$3;
|
|
513
526
|
var PromisePrototype = NativePromisePrototype$2;
|
|
514
527
|
var TypeError$1 = global.TypeError;
|
|
515
|
-
var document = global.document;
|
|
528
|
+
var document$1 = global.document;
|
|
516
529
|
var process = global.process;
|
|
517
530
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
518
531
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
519
532
|
|
|
520
|
-
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
533
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global.dispatchEvent);
|
|
521
534
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
522
535
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
523
536
|
var PENDING = 0;
|
|
@@ -586,7 +599,7 @@ var notify = function (state, isReject) {
|
|
|
586
599
|
var dispatchEvent = function (name, promise, reason) {
|
|
587
600
|
var event, handler;
|
|
588
601
|
if (DISPATCH_EVENT) {
|
|
589
|
-
event = document.createEvent('Event');
|
|
602
|
+
event = document$1.createEvent('Event');
|
|
590
603
|
event.promise = promise;
|
|
591
604
|
event.reason = reason;
|
|
592
605
|
event.initEvent(name, false, true);
|
|
@@ -779,13 +792,14 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
779
792
|
|
|
780
793
|
var classof = classof$3;
|
|
781
794
|
var getMethod$1 = getMethod$2;
|
|
795
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
782
796
|
var Iterators = iterators;
|
|
783
797
|
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
784
798
|
|
|
785
799
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
786
800
|
|
|
787
801
|
var getIteratorMethod$2 = function (it) {
|
|
788
|
-
if (it
|
|
802
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
789
803
|
|| getMethod$1(it, '@@iterator')
|
|
790
804
|
|| Iterators[classof(it)];
|
|
791
805
|
};
|
|
@@ -851,6 +865,7 @@ var ResultPrototype = Result.prototype;
|
|
|
851
865
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
852
866
|
var that = options && options.that;
|
|
853
867
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
868
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
854
869
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
855
870
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
856
871
|
var fn = bind(unboundFunction, that);
|
|
@@ -868,7 +883,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
868
883
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
869
884
|
};
|
|
870
885
|
|
|
871
|
-
if (
|
|
886
|
+
if (IS_RECORD) {
|
|
887
|
+
iterator = iterable.iterator;
|
|
888
|
+
} else if (IS_ITERATOR) {
|
|
872
889
|
iterator = iterable;
|
|
873
890
|
} else {
|
|
874
891
|
iterFn = getIteratorMethod(iterable);
|
|
@@ -883,7 +900,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
883
900
|
iterator = getIterator(iterable, iterFn);
|
|
884
901
|
}
|
|
885
902
|
|
|
886
|
-
next = iterator.next;
|
|
903
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
887
904
|
while (!(step = call$3(next, iterator)).done) {
|
|
888
905
|
try {
|
|
889
906
|
result = callFn(step.value);
|