@vonage/vivid 3.0.0-next.3 → 3.0.0-next.32
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 +49 -4
- package/accordion/index.js +61 -0
- package/accordion-item/index.js +133 -0
- package/action-group/index.js +49 -0
- package/badge/index.js +27 -22
- package/banner/index.js +148 -0
- package/breadcrumb/index.js +41 -150
- package/breadcrumb-item/index.js +18 -8
- package/button/index.js +40 -663
- package/calendar/index.js +1550 -0
- package/calendar-event/index.js +117 -0
- package/card/index.js +134 -0
- package/checkbox/index.js +176 -0
- package/dialog/index.js +277 -0
- package/divider/index.js +88 -0
- package/elevation/index.js +4 -38
- package/fab/index.js +101 -0
- package/focus/index.js +20 -3
- package/header/index.js +68 -0
- package/icon/index.js +40 -5
- package/index.d.ts +1 -0
- package/index.js +50 -14
- package/layout/index.js +5 -5
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +4 -0
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/badge/badge.d.ts +8 -8
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +2 -0
- package/lib/button/button.d.ts +9 -8
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +23 -5
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +2 -1
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +14 -7
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -5
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +17 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +7 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/sidenav/index.d.ts +2 -0
- package/lib/sidenav/sidenav.d.ts +3 -0
- package/lib/sidenav/sidenav.template.d.ts +4 -0
- package/lib/sidenav-item/index.d.ts +1 -0
- package/lib/sidenav-item/sidenav-item.d.ts +4 -5
- package/lib/text/index.d.ts +2 -0
- package/lib/text/text.d.ts +10 -0
- package/lib/text/text.template.d.ts +4 -0
- package/lib/text-anchor/text-anchor.d.ts +4 -1
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +23 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/note/index.js +68 -0
- package/package.json +39 -6
- package/popup/index.js +2118 -0
- package/progress/index.js +107 -0
- package/progress-ring/index.js +82 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +10 -25
- package/shared/anchor.js +10 -3
- package/shared/aria-global.js +20 -20
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +2 -2
- package/shared/button.js +195 -0
- package/shared/calendar-event.js +26 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/export.js +972 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +548 -0
- package/shared/icon.js +1389 -0
- package/shared/index.js +4940 -1426
- package/shared/index2.js +27 -4901
- package/shared/iterators.js +61 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +3 -4
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/slotted.js +119 -0
- package/shared/text-anchor.js +12 -0
- package/shared/text-anchor.template.js +16 -6
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +46 -1059
- package/shared/when.js +15 -0
- package/side-drawer/index.js +82 -0
- package/sidenav/index.js +17 -0
- package/sidenav-item/index.js +24 -61
- package/styles/themes/dark.css +16 -4
- package/styles/themes/light.css +16 -4
- package/text/index.js +48 -0
- package/text-anchor/index.js +13 -13
- package/text-field/index.js +411 -0
- package/tooltip/index.js +70 -0
- package/shared/index3.js +0 -21
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { i as isCallable$1, f as functionUncurryThis, j as anObject$1, o as objectDefineProperty, w as wellKnownSymbol$1, p as hasOwnProperty_1, a as getBuiltIn$1 } from './export.js';
|
|
2
|
+
|
|
3
|
+
var isCallable = isCallable$1;
|
|
4
|
+
|
|
5
|
+
var $String = String;
|
|
6
|
+
var $TypeError = TypeError;
|
|
7
|
+
|
|
8
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
9
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
10
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/* eslint-disable no-proto -- safe */
|
|
14
|
+
|
|
15
|
+
var uncurryThis = functionUncurryThis;
|
|
16
|
+
var anObject = anObject$1;
|
|
17
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
18
|
+
|
|
19
|
+
// `Object.setPrototypeOf` method
|
|
20
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
21
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
24
|
+
var CORRECT_SETTER = false;
|
|
25
|
+
var test = {};
|
|
26
|
+
var setter;
|
|
27
|
+
try {
|
|
28
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
29
|
+
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
30
|
+
setter(test, []);
|
|
31
|
+
CORRECT_SETTER = test instanceof Array;
|
|
32
|
+
} catch (error) { /* empty */ }
|
|
33
|
+
return function setPrototypeOf(O, proto) {
|
|
34
|
+
anObject(O);
|
|
35
|
+
aPossiblePrototype(proto);
|
|
36
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
37
|
+
else O.__proto__ = proto;
|
|
38
|
+
return O;
|
|
39
|
+
};
|
|
40
|
+
}() : undefined);
|
|
41
|
+
|
|
42
|
+
var defineProperty = objectDefineProperty.f;
|
|
43
|
+
var hasOwn = hasOwnProperty_1;
|
|
44
|
+
var wellKnownSymbol = wellKnownSymbol$1;
|
|
45
|
+
|
|
46
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
47
|
+
|
|
48
|
+
var setToStringTag = function (target, TAG, STATIC) {
|
|
49
|
+
if (target && !STATIC) target = target.prototype;
|
|
50
|
+
if (target && !hasOwn(target, TO_STRING_TAG)) {
|
|
51
|
+
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var getBuiltIn = getBuiltIn$1;
|
|
56
|
+
|
|
57
|
+
var html = getBuiltIn('document', 'documentElement');
|
|
58
|
+
|
|
59
|
+
var iterators = {};
|
|
60
|
+
|
|
61
|
+
export { html as h, iterators as i, objectSetPrototypeOf as o, setToStringTag as s };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { L as objectKeysInternal, H as enumBugKeys$1 } from './export.js';
|
|
2
|
+
|
|
3
|
+
var internalObjectKeys = objectKeysInternal;
|
|
4
|
+
var enumBugKeys = enumBugKeys$1;
|
|
5
|
+
|
|
6
|
+
// `Object.keys` method
|
|
7
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
8
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
9
|
+
var objectKeys = Object.keys || function keys(O) {
|
|
10
|
+
return internalObjectKeys(O, enumBugKeys);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { objectKeys as o };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class AffixIcon {
|
|
4
4
|
icon?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class AffixIconWithTrailing extends AffixIcon {
|
|
7
7
|
iconTrailing: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const prefixOrSuffixTemplate: (context: ElementDefinitionContext) => ViewTemplate<PrefixOrSuffix>;
|
|
9
|
+
export declare const affixIconTemplateFactory: (context: ElementDefinitionContext) => (icon?: string) => ViewTemplate<AffixIcon> | null;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { O as Observable, e as emptyArray, A as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates a function that can be used to filter a Node array, selecting only elements.
|
|
5
|
+
* @param selector - An optional selector to restrict the filter to.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
function elements(selector) {
|
|
9
|
+
if (selector) {
|
|
10
|
+
return function (value, index, array) {
|
|
11
|
+
return value.nodeType === 1 && value.matches(selector);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return function (value, index, array) {
|
|
15
|
+
return value.nodeType === 1;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A base class for node observation.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
class NodeObservationBehavior {
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of NodeObservationBehavior.
|
|
25
|
+
* @param target - The target to assign the nodes property on.
|
|
26
|
+
* @param options - The options to use in configuring node observation.
|
|
27
|
+
*/
|
|
28
|
+
constructor(target, options) {
|
|
29
|
+
this.target = target;
|
|
30
|
+
this.options = options;
|
|
31
|
+
this.source = null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Bind this behavior to the source.
|
|
35
|
+
* @param source - The source to bind to.
|
|
36
|
+
* @param context - The execution context that the binding is operating within.
|
|
37
|
+
*/
|
|
38
|
+
bind(source) {
|
|
39
|
+
const name = this.options.property;
|
|
40
|
+
this.shouldUpdate = Observable.getAccessors(source).some((x) => x.name === name);
|
|
41
|
+
this.source = source;
|
|
42
|
+
this.updateTarget(this.computeNodes());
|
|
43
|
+
if (this.shouldUpdate) {
|
|
44
|
+
this.observe();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Unbinds this behavior from the source.
|
|
49
|
+
* @param source - The source to unbind from.
|
|
50
|
+
*/
|
|
51
|
+
unbind() {
|
|
52
|
+
this.updateTarget(emptyArray);
|
|
53
|
+
this.source = null;
|
|
54
|
+
if (this.shouldUpdate) {
|
|
55
|
+
this.disconnect();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
handleEvent() {
|
|
60
|
+
this.updateTarget(this.computeNodes());
|
|
61
|
+
}
|
|
62
|
+
computeNodes() {
|
|
63
|
+
let nodes = this.getNodes();
|
|
64
|
+
if (this.options.filter !== void 0) {
|
|
65
|
+
nodes = nodes.filter(this.options.filter);
|
|
66
|
+
}
|
|
67
|
+
return nodes;
|
|
68
|
+
}
|
|
69
|
+
updateTarget(value) {
|
|
70
|
+
this.source[this.options.property] = value;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The runtime behavior for slotted node observation.
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
class SlottedBehavior extends NodeObservationBehavior {
|
|
79
|
+
/**
|
|
80
|
+
* Creates an instance of SlottedBehavior.
|
|
81
|
+
* @param target - The slot element target to observe.
|
|
82
|
+
* @param options - The options to use when observing the slot.
|
|
83
|
+
*/
|
|
84
|
+
constructor(target, options) {
|
|
85
|
+
super(target, options);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Begins observation of the nodes.
|
|
89
|
+
*/
|
|
90
|
+
observe() {
|
|
91
|
+
this.target.addEventListener("slotchange", this);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Disconnects observation of the nodes.
|
|
95
|
+
*/
|
|
96
|
+
disconnect() {
|
|
97
|
+
this.target.removeEventListener("slotchange", this);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves the nodes that should be assigned to the target.
|
|
101
|
+
*/
|
|
102
|
+
getNodes() {
|
|
103
|
+
return this.target.assignedNodes(this.options);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A directive that observes the `assignedNodes()` of a slot and updates a property
|
|
108
|
+
* whenever they change.
|
|
109
|
+
* @param propertyOrOptions - The options used to configure slotted node observation.
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
function slotted(propertyOrOptions) {
|
|
113
|
+
if (typeof propertyOrOptions === "string") {
|
|
114
|
+
propertyOrOptions = { property: propertyOrOptions };
|
|
115
|
+
}
|
|
116
|
+
return new AttachedBehaviorHTMLDirective("fast-slotted", SlottedBehavior, propertyOrOptions);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { elements as e, slotted as s };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata } from './index.js';
|
|
2
|
+
import { b as AffixIcon } from './affix.js';
|
|
3
|
+
import { A as Anchor } from './anchor.js';
|
|
4
|
+
import { a as applyMixins } from './apply-mixins.js';
|
|
5
|
+
|
|
6
|
+
class TextAnchor extends Anchor {}
|
|
7
|
+
|
|
8
|
+
__decorate([attr, __metadata("design:type", String)], TextAnchor.prototype, "text", void 0);
|
|
9
|
+
|
|
10
|
+
applyMixins(TextAnchor, AffixIcon);
|
|
11
|
+
|
|
12
|
+
export { TextAnchor as T };
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as affixIconTemplateFactory } from './affix.js';
|
|
2
|
+
import { f as focusTemplateFactory } from './focus2.js';
|
|
3
|
+
import { h as html } from './index.js';
|
|
2
4
|
import { r as ref } from './aria-global.js';
|
|
3
5
|
import { c as classNames } from './class-names.js';
|
|
4
6
|
|
|
5
|
-
let
|
|
7
|
+
let _ = t => t,
|
|
6
8
|
_t;
|
|
7
9
|
|
|
8
|
-
const getClasses =
|
|
10
|
+
const getClasses = ({
|
|
11
|
+
text,
|
|
12
|
+
icon
|
|
13
|
+
}) => classNames('control', ['icon-only', !text && !!icon]);
|
|
9
14
|
|
|
10
|
-
const textAnchorTemplate =
|
|
11
|
-
|
|
15
|
+
const textAnchorTemplate = context => {
|
|
16
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
17
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
18
|
+
return html(_t || (_t = _`<a
|
|
12
19
|
class="${0}"
|
|
13
20
|
download="${0}"
|
|
14
21
|
href="${0}"
|
|
@@ -41,7 +48,10 @@ const textAnchorTemplate = () => html(_t || (_t = _2`
|
|
|
41
48
|
${0}
|
|
42
49
|
>
|
|
43
50
|
${0}
|
|
51
|
+
${0}
|
|
52
|
+
${0}
|
|
44
53
|
</a>
|
|
45
|
-
`), getClasses, x => x.download, x => x.href, x => x.hreflang, x => x.ping, x => x.referrerpolicy, x => x.rel, x => x.target, 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.ariaExpanded, 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'), x => x.text);
|
|
54
|
+
`), getClasses, x => x.download, x => x.href, x => x.hreflang, x => x.ping, x => x.referrerpolicy, x => x.rel, x => x.target, 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.ariaExpanded, 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, x => affixIconTemplate(x.icon), x => x.text);
|
|
55
|
+
};
|
|
46
56
|
|
|
47
57
|
export { textAnchorTemplate as t };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { w as wellKnownSymbol$2, c 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 };
|