@vonage/vivid 3.27.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/accordion/index.js +0 -2
- package/accordion-item/index.js +0 -2
- package/alert/index.js +0 -2
- package/avatar/index.js +0 -2
- package/badge/index.js +0 -2
- package/banner/index.js +0 -2
- package/breadcrumb-item/index.js +0 -2
- package/button/index.js +0 -2
- package/calendar/index.js +0 -1
- package/calendar-event/index.js +0 -2
- package/card/index.js +0 -2
- package/checkbox/index.js +0 -2
- package/combobox/index.js +0 -3
- package/custom-elements.json +173 -52
- package/data-grid/index.js +1 -5
- package/dialog/index.js +0 -2
- package/empty-state/index.js +0 -2
- package/fab/index.js +0 -2
- package/file-picker/index.js +0 -2
- package/icon/index.js +0 -2
- package/index.d.ts +3 -3
- package/index.js +1 -6
- package/lib/accordion/accordion.d.ts +5 -5
- package/lib/accordion/accordion.template.d.ts +3 -3
- package/lib/accordion/definition.d.ts +2 -2
- package/lib/accordion/index.d.ts +1 -1
- package/lib/accordion-item/accordion-item.d.ts +12 -12
- package/lib/accordion-item/accordion-item.template.d.ts +4 -4
- package/lib/accordion-item/definition.d.ts +1 -1
- package/lib/accordion-item/index.d.ts +1 -1
- package/lib/action-group/action-group.d.ts +11 -11
- package/lib/action-group/action-group.template.d.ts +4 -4
- package/lib/action-group/definition.d.ts +2 -2
- package/lib/action-group/index.d.ts +1 -1
- package/lib/alert/alert.d.ts +22 -22
- package/lib/alert/alert.template.d.ts +4 -4
- package/lib/alert/definition.d.ts +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/avatar/avatar.d.ts +14 -14
- package/lib/avatar/avatar.template.d.ts +4 -4
- package/lib/avatar/definition.d.ts +2 -2
- package/lib/avatar/index.d.ts +1 -1
- package/lib/badge/badge.d.ts +14 -14
- package/lib/badge/badge.template.d.ts +4 -4
- package/lib/badge/definition.d.ts +4 -4
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -20
- package/lib/banner/banner.template.d.ts +4 -4
- package/lib/banner/definition.d.ts +2 -2
- package/lib/banner/index.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +3 -3
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -4
- package/lib/breadcrumb/definition.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -5
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -4
- package/lib/breadcrumb-item/definition.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -1
- package/lib/button/button.d.ts +18 -18
- package/lib/button/button.template.d.ts +4 -4
- package/lib/button/definition.d.ts +2 -2
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/calendar.d.ts +13 -13
- package/lib/calendar/calendar.template.d.ts +4 -4
- package/lib/calendar/definition.d.ts +1 -1
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -2
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -6
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -9
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +13 -13
- package/lib/calendar-event/calendar-event.template.d.ts +4 -4
- package/lib/calendar-event/definition.d.ts +2 -2
- package/lib/calendar-event/index.d.ts +1 -1
- package/lib/card/card.d.ts +10 -10
- package/lib/card/card.template.d.ts +4 -4
- package/lib/card/definition.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +10 -11
- package/lib/checkbox/checkbox.template.d.ts +4 -4
- package/lib/checkbox/definition.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/combobox/combobox.d.ts +12 -13
- package/lib/combobox/combobox.template.d.ts +4 -4
- package/lib/combobox/definition.d.ts +3 -4
- package/lib/combobox/index.d.ts +1 -1
- package/lib/components.d.ts +52 -52
- package/lib/data-grid/data-grid-cell.d.ts +22 -22
- package/lib/data-grid/data-grid-cell.template.d.ts +4 -4
- package/lib/data-grid/data-grid-row.d.ts +4 -4
- package/lib/data-grid/data-grid-row.template.d.ts +3 -3
- package/lib/data-grid/data-grid.d.ts +20 -20
- package/lib/data-grid/data-grid.options.d.ts +38 -38
- package/lib/data-grid/data-grid.template.d.ts +3 -3
- package/lib/data-grid/definition.d.ts +6 -6
- package/lib/data-grid/index.d.ts +1 -1
- package/lib/dialog/definition.d.ts +2 -2
- package/lib/dialog/dialog.d.ts +26 -26
- package/lib/dialog/dialog.template.d.ts +4 -4
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/definition.d.ts +1 -1
- package/lib/divider/divider.d.ts +3 -3
- package/lib/divider/divider.template.d.ts +4 -4
- package/lib/divider/index.d.ts +1 -1
- package/lib/elevation/definition.d.ts +1 -1
- package/lib/elevation/elevation.d.ts +5 -5
- package/lib/elevation/elevation.template.d.ts +4 -4
- package/lib/elevation/index.d.ts +1 -1
- package/lib/empty-state/definition.d.ts +3 -3
- package/lib/empty-state/empty-state.d.ts +5 -5
- package/lib/empty-state/empty-state.template.d.ts +4 -4
- package/lib/empty-state/index.d.ts +1 -1
- package/lib/enums.d.ts +60 -60
- package/lib/fab/definition.d.ts +4 -4
- package/lib/fab/fab.d.ts +12 -12
- package/lib/fab/fab.template.d.ts +4 -4
- package/lib/fab/index.d.ts +1 -1
- package/lib/file-picker/definition.d.ts +3 -3
- package/lib/file-picker/file-picker.d.ts +22 -22
- package/lib/file-picker/file-picker.template.d.ts +4 -4
- package/lib/file-picker/index.d.ts +1 -1
- package/lib/focus/definition.d.ts +3 -3
- package/lib/focus/focus.d.ts +3 -3
- package/lib/focus/focus.template.d.ts +4 -4
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/definition.d.ts +3 -3
- package/lib/header/header.d.ts +5 -5
- package/lib/header/header.template.d.ts +4 -4
- package/lib/header/index.d.ts +1 -1
- package/lib/icon/definition.d.ts +4 -4
- package/lib/icon/icon.d.ts +12 -12
- package/lib/icon/icon.placeholder.d.ts +1 -1
- package/lib/icon/icon.template.d.ts +4 -4
- package/lib/icon/index.d.ts +1 -1
- package/lib/layout/definition.d.ts +4 -4
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +17 -17
- package/lib/layout/layout.template.d.ts +4 -4
- package/lib/listbox/definition.d.ts +4 -4
- package/lib/listbox/index.d.ts +1 -1
- package/lib/listbox/listbox.d.ts +6 -6
- package/lib/listbox/listbox.template.d.ts +4 -4
- package/lib/menu/definition.d.ts +12 -12
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/menu.d.ts +16 -15
- package/lib/menu/menu.template.d.ts +3 -3
- package/lib/menu-item/definition.d.ts +3 -3
- package/lib/menu-item/index.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +14 -14
- package/lib/menu-item/menu-item.template.d.ts +4 -4
- package/lib/nav/definition.d.ts +3 -3
- package/lib/nav/index.d.ts +1 -1
- package/lib/nav/nav.d.ts +3 -3
- package/lib/nav/nav.template.d.ts +4 -4
- package/lib/nav-disclosure/definition.d.ts +3 -3
- package/lib/nav-disclosure/index.d.ts +1 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -10
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -4
- package/lib/nav-item/definition.d.ts +3 -3
- package/lib/nav-item/index.d.ts +1 -1
- package/lib/nav-item/nav-item.d.ts +7 -7
- package/lib/nav-item/nav-item.template.d.ts +4 -4
- package/lib/note/definition.d.ts +4 -4
- package/lib/note/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -10
- package/lib/note/note.template.d.ts +4 -4
- package/lib/number-field/definition.d.ts +5 -5
- package/lib/number-field/index.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +13 -13
- package/lib/number-field/number-field.template.d.ts +4 -4
- package/lib/option/definition.d.ts +3 -3
- package/lib/option/index.d.ts +1 -1
- package/lib/option/option.d.ts +12 -12
- package/lib/option/option.template.d.ts +4 -4
- package/lib/pagination/definition.d.ts +3 -3
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/pagination.d.ts +18 -18
- package/lib/pagination/pagination.template.d.ts +4 -4
- package/lib/popup/definition.d.ts +5 -5
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +21 -21
- package/lib/popup/popup.template.d.ts +4 -4
- package/lib/progress/definition.d.ts +4 -4
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/progress.d.ts +9 -9
- package/lib/progress/progress.template.d.ts +5 -5
- package/lib/progress-ring/definition.d.ts +4 -4
- package/lib/progress-ring/index.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +7 -7
- package/lib/progress-ring/progress-ring.template.d.ts +4 -4
- package/lib/radio/definition.d.ts +3 -3
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.template.d.ts +4 -4
- package/lib/radio-group/definition.d.ts +11 -11
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-group/radio-group.d.ts +4 -4
- package/lib/radio-group/radio-group.template.d.ts +4 -4
- package/lib/select/definition.d.ts +4 -4
- package/lib/select/index.d.ts +1 -1
- package/lib/select/select.d.ts +17 -18
- package/lib/select/select.template.d.ts +4 -4
- package/lib/side-drawer/definition.d.ts +3 -3
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +9 -9
- package/lib/side-drawer/side-drawer.template.d.ts +4 -4
- package/lib/slider/definition.d.ts +3 -3
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.template.d.ts +4 -4
- package/lib/switch/definition.d.ts +4 -4
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/switch.d.ts +7 -7
- package/lib/switch/switch.template.d.ts +4 -4
- package/lib/tab/definition.d.ts +4 -4
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab.d.ts +14 -14
- package/lib/tab/tab.template.d.ts +3 -3
- package/lib/tab-panel/definition.d.ts +3 -3
- package/lib/tab-panel/index.d.ts +1 -1
- package/lib/tab-panel/tab-panel.d.ts +3 -3
- package/lib/tab-panel/tab-panel.template.d.ts +2 -2
- package/lib/tabs/definition.d.ts +3 -3
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +15 -15
- package/lib/tabs/tabs.template.d.ts +2 -2
- package/lib/tag/definition.d.ts +4 -4
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/tag.d.ts +22 -22
- package/lib/tag/tag.template.d.ts +4 -4
- package/lib/tag-group/definition.d.ts +3 -3
- package/lib/tag-group/index.d.ts +1 -1
- package/lib/tag-group/tag-group.d.ts +3 -3
- package/lib/tag-group/tag-group.template.d.ts +4 -4
- package/lib/text-anchor/definition.d.ts +3 -3
- package/lib/text-anchor/index.d.ts +1 -1
- package/lib/text-anchor/text-anchor.d.ts +7 -7
- package/lib/text-anchor/text-anchor.template.d.ts +4 -4
- package/lib/text-area/definition.d.ts +4 -4
- package/lib/text-area/index.d.ts +1 -1
- package/lib/text-area/text-area.d.ts +8 -9
- package/lib/text-area/text-area.template.d.ts +4 -4
- package/lib/text-field/definition.d.ts +4 -4
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +13 -14
- package/lib/text-field/text-field.template.d.ts +4 -4
- package/lib/toggletip/definition.d.ts +3 -3
- package/lib/toggletip/index.d.ts +1 -1
- package/lib/toggletip/toggletip.d.ts +15 -15
- package/lib/toggletip/toggletip.template.d.ts +4 -4
- package/lib/tooltip/definition.d.ts +3 -3
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +14 -14
- package/lib/tooltip/tooltip.template.d.ts +4 -4
- package/lib/tree-item/definition.d.ts +3 -3
- package/lib/tree-item/index.d.ts +1 -1
- package/lib/tree-item/tree-item.d.ts +7 -7
- package/lib/tree-item/tree-item.template.d.ts +4 -4
- package/lib/tree-view/definition.d.ts +3 -3
- package/lib/tree-view/index.d.ts +1 -1
- package/lib/tree-view/tree-view.d.ts +3 -3
- package/lib/tree-view/tree-view.template.d.ts +2 -2
- package/listbox/index.js +17 -21
- package/menu/index.js +0 -3
- package/menu-item/index.js +0 -3
- package/nav-disclosure/index.js +0 -2
- package/nav-item/index.js +0 -2
- package/note/index.js +0 -2
- package/number-field/index.js +0 -3
- package/option/index.js +0 -2
- package/package.json +9 -8
- package/pagination/index.js +1 -5
- package/popup/index.js +0 -3
- package/radio-group/index.js +2 -2
- package/select/index.js +0 -3
- package/shared/affix.js +2 -5
- package/shared/anchor.js +2 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/definition.js +7 -9
- package/shared/definition10.js +13 -17
- package/shared/definition11.js +6 -9
- package/shared/definition12.js +16 -18
- package/shared/definition13.js +6 -8
- package/shared/definition14.js +7 -12
- package/shared/definition15.js +43 -52
- package/shared/definition16.js +8 -71
- package/shared/definition17.js +36 -45
- package/shared/definition18.js +19 -24
- package/shared/definition19.js +45 -49
- package/shared/definition2.js +24 -28
- package/shared/definition20.js +389 -280
- package/shared/definition21.js +12 -16
- package/shared/definition22.js +82 -168
- package/shared/definition23.js +35 -41
- package/shared/definition24.js +6 -8
- package/shared/definition25.js +10 -14
- package/shared/definition26.js +40 -42
- package/shared/definition27.js +24 -27
- package/shared/definition28.js +6 -8
- package/shared/definition29.js +3 -5
- package/shared/definition3.js +5 -9
- package/shared/definition30.js +88 -45
- package/shared/definition31.js +33 -43
- package/shared/definition32.js +2 -4
- package/shared/definition33.js +11 -15
- package/shared/definition34.js +5 -9
- package/shared/definition35.js +7 -11
- package/shared/definition36.js +66 -71
- package/shared/definition37.js +60 -101
- package/shared/definition38.js +14 -46
- package/shared/definition39.js +11 -14
- package/shared/definition4.js +3 -5
- package/shared/definition40.js +17 -20
- package/shared/definition41.js +56 -62
- package/shared/definition42.js +8 -11
- package/shared/definition43.js +20 -58
- package/shared/definition44.js +14 -17
- package/shared/definition45.js +8 -10
- package/shared/definition46.js +2 -4
- package/shared/definition47.js +12 -15
- package/shared/definition48.js +19 -24
- package/shared/definition49.js +3 -5
- package/shared/definition5.js +7 -8
- package/shared/definition50.js +51 -55
- package/shared/definition51.js +56 -60
- package/shared/definition52.js +12 -520
- package/shared/definition53.js +9 -11
- package/shared/definition54.js +27 -31
- package/shared/definition55.js +12 -14
- package/shared/definition6.js +17 -23
- package/shared/definition7.js +43 -47
- package/shared/definition8.js +3 -5
- package/shared/definition9.js +13 -17
- package/shared/design-system/index.d.ts +3 -3
- package/shared/focus2.js +1 -3
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.js +16 -20
- package/shared/icon.js +2 -1171
- package/shared/index.js +41 -1549
- package/shared/listbox.js +1 -1
- package/shared/patterns/affix.d.ts +9 -9
- package/shared/patterns/focus.d.ts +3 -3
- package/shared/patterns/form-elements/form-elements.d.ts +57 -57
- package/shared/patterns/form-elements/index.d.ts +1 -1
- package/shared/patterns/index.d.ts +3 -3
- package/shared/repeat.js +1 -1
- package/shared/text-anchor.template.js +38 -40
- package/shared/text-field.js +1 -1
- package/shared/text-field2.js +1 -1
- package/shared/when.js +19 -5
- package/slider/index.js +0 -3
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +17 -17
- package/styles/tokens/theme-light.css +17 -17
- package/switch/index.js +0 -2
- package/tab/index.js +0 -2
- package/tabs/index.js +0 -2
- package/tag/index.js +0 -2
- package/text-anchor/index.js +0 -2
- package/text-area/index.js +0 -2
- package/text-field/index.js +0 -2
- package/toggletip/index.js +0 -4
- package/tooltip/index.js +0 -3
- package/tree-item/index.js +1 -3
- package/vivid.api.json +48 -84
- package/shared/es.object.assign.js +0 -68
- package/shared/es.regexp.to-string.js +0 -61
- package/shared/es.string.includes.js +0 -83
- package/shared/string-trim.js +0 -40
- package/shared/to-string.js +0 -51
package/shared/definition52.js
CHANGED
|
@@ -1,514 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as FoundationElement, f as __classPrivateFieldSet, d as __classPrivateFieldGet, D as DOM, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { P as Popup, p as popupRegistries } from './definition20.js';
|
|
3
|
-
import { r as regexpFlags$1 } from './es.regexp.to-string.js';
|
|
4
|
-
import { t as toString$3 } from './to-string.js';
|
|
5
|
-
import { f as functionUncurryThisClause, a as functionApply } from './icon.js';
|
|
6
3
|
import { w as when } from './when.js';
|
|
7
4
|
import { c as classNames } from './class-names.js';
|
|
8
5
|
|
|
9
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
10
|
-
|
|
11
|
-
var fails$4 = fails$5;
|
|
12
|
-
var global$2 = global$3;
|
|
13
|
-
|
|
14
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
15
|
-
var $RegExp$2 = global$2.RegExp;
|
|
16
|
-
|
|
17
|
-
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
18
|
-
var re = $RegExp$2('a', 'y');
|
|
19
|
-
re.lastIndex = 2;
|
|
20
|
-
return re.exec('abcd') != null;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// UC Browser bug
|
|
24
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
25
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
26
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
30
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
31
|
-
var re = $RegExp$2('^r', 'gy');
|
|
32
|
-
re.lastIndex = 2;
|
|
33
|
-
return re.exec('str') != null;
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
var regexpStickyHelpers = {
|
|
37
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
38
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
39
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
var fails$3 = fails$5;
|
|
43
|
-
var global$1 = global$3;
|
|
44
|
-
|
|
45
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
46
|
-
var $RegExp$1 = global$1.RegExp;
|
|
47
|
-
|
|
48
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
49
|
-
var re = $RegExp$1('.', 's');
|
|
50
|
-
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
var fails$2 = fails$5;
|
|
54
|
-
var global = global$3;
|
|
55
|
-
|
|
56
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
57
|
-
var $RegExp = global.RegExp;
|
|
58
|
-
|
|
59
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
60
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
61
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
62
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
66
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
67
|
-
var call$2 = functionCall;
|
|
68
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
69
|
-
var toString$2 = toString$3;
|
|
70
|
-
var regexpFlags = regexpFlags$1;
|
|
71
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
72
|
-
var shared = shared$1.exports;
|
|
73
|
-
var create = objectCreate;
|
|
74
|
-
var getInternalState = internalState.get;
|
|
75
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
76
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
77
|
-
|
|
78
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
79
|
-
var nativeExec = RegExp.prototype.exec;
|
|
80
|
-
var patchedExec = nativeExec;
|
|
81
|
-
var charAt$3 = uncurryThis$4(''.charAt);
|
|
82
|
-
var indexOf = uncurryThis$4(''.indexOf);
|
|
83
|
-
var replace$1 = uncurryThis$4(''.replace);
|
|
84
|
-
var stringSlice$3 = uncurryThis$4(''.slice);
|
|
85
|
-
|
|
86
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
87
|
-
var re1 = /a/;
|
|
88
|
-
var re2 = /b*/g;
|
|
89
|
-
call$2(nativeExec, re1, 'a');
|
|
90
|
-
call$2(nativeExec, re2, 'a');
|
|
91
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
92
|
-
})();
|
|
93
|
-
|
|
94
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
95
|
-
|
|
96
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
97
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
98
|
-
|
|
99
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
100
|
-
|
|
101
|
-
if (PATCH) {
|
|
102
|
-
patchedExec = function exec(string) {
|
|
103
|
-
var re = this;
|
|
104
|
-
var state = getInternalState(re);
|
|
105
|
-
var str = toString$2(string);
|
|
106
|
-
var raw = state.raw;
|
|
107
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
108
|
-
|
|
109
|
-
if (raw) {
|
|
110
|
-
raw.lastIndex = re.lastIndex;
|
|
111
|
-
result = call$2(patchedExec, raw, str);
|
|
112
|
-
re.lastIndex = raw.lastIndex;
|
|
113
|
-
return result;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
var groups = state.groups;
|
|
117
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
118
|
-
var flags = call$2(regexpFlags, re);
|
|
119
|
-
var source = re.source;
|
|
120
|
-
var charsAdded = 0;
|
|
121
|
-
var strCopy = str;
|
|
122
|
-
|
|
123
|
-
if (sticky) {
|
|
124
|
-
flags = replace$1(flags, 'y', '');
|
|
125
|
-
if (indexOf(flags, 'g') === -1) {
|
|
126
|
-
flags += 'g';
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
strCopy = stringSlice$3(str, re.lastIndex);
|
|
130
|
-
// Support anchored sticky behavior.
|
|
131
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
132
|
-
source = '(?: ' + source + ')';
|
|
133
|
-
strCopy = ' ' + strCopy;
|
|
134
|
-
charsAdded++;
|
|
135
|
-
}
|
|
136
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
137
|
-
// simulate the 'y' flag.
|
|
138
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (NPCG_INCLUDED) {
|
|
142
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
143
|
-
}
|
|
144
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
145
|
-
|
|
146
|
-
match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
|
|
147
|
-
|
|
148
|
-
if (sticky) {
|
|
149
|
-
if (match) {
|
|
150
|
-
match.input = stringSlice$3(match.input, charsAdded);
|
|
151
|
-
match[0] = stringSlice$3(match[0], charsAdded);
|
|
152
|
-
match.index = re.lastIndex;
|
|
153
|
-
re.lastIndex += match[0].length;
|
|
154
|
-
} else re.lastIndex = 0;
|
|
155
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
156
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
157
|
-
}
|
|
158
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
159
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
160
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
161
|
-
call$2(nativeReplace, match[0], reCopy, function () {
|
|
162
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
163
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (match && groups) {
|
|
169
|
-
match.groups = object = create(null);
|
|
170
|
-
for (i = 0; i < groups.length; i++) {
|
|
171
|
-
group = groups[i];
|
|
172
|
-
object[group[0]] = match[group[1]];
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return match;
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
var regexpExec$2 = patchedExec;
|
|
181
|
-
|
|
182
|
-
var $ = _export;
|
|
183
|
-
var exec = regexpExec$2;
|
|
184
|
-
|
|
185
|
-
// `RegExp.prototype.exec` method
|
|
186
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
187
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
188
|
-
exec: exec
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
192
|
-
|
|
193
|
-
var uncurryThis$3 = functionUncurryThisClause;
|
|
194
|
-
var defineBuiltIn = defineBuiltIn$1;
|
|
195
|
-
var regexpExec$1 = regexpExec$2;
|
|
196
|
-
var fails$1 = fails$5;
|
|
197
|
-
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
198
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$1;
|
|
199
|
-
|
|
200
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
201
|
-
var RegExpPrototype = RegExp.prototype;
|
|
202
|
-
|
|
203
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
204
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
205
|
-
|
|
206
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
207
|
-
// String methods call symbol-named RegEp methods
|
|
208
|
-
var O = {};
|
|
209
|
-
O[SYMBOL] = function () { return 7; };
|
|
210
|
-
return ''[KEY](O) != 7;
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
214
|
-
// Symbol-named RegExp methods call .exec
|
|
215
|
-
var execCalled = false;
|
|
216
|
-
var re = /a/;
|
|
217
|
-
|
|
218
|
-
if (KEY === 'split') {
|
|
219
|
-
// We can't use real regex here since it causes deoptimization
|
|
220
|
-
// and serious performance degradation in V8
|
|
221
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
222
|
-
re = {};
|
|
223
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
224
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
225
|
-
re.constructor = {};
|
|
226
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
227
|
-
re.flags = '';
|
|
228
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
re.exec = function () { execCalled = true; return null; };
|
|
232
|
-
|
|
233
|
-
re[SYMBOL]('');
|
|
234
|
-
return !execCalled;
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
if (
|
|
238
|
-
!DELEGATES_TO_SYMBOL ||
|
|
239
|
-
!DELEGATES_TO_EXEC ||
|
|
240
|
-
FORCED
|
|
241
|
-
) {
|
|
242
|
-
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
243
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
244
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
245
|
-
var $exec = regexp.exec;
|
|
246
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
247
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
248
|
-
// The native String method already delegates to @@method (this
|
|
249
|
-
// polyfilled function), leasing to infinite recursion.
|
|
250
|
-
// We avoid it by directly calling the native @@method method.
|
|
251
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
252
|
-
}
|
|
253
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
254
|
-
}
|
|
255
|
-
return { done: false };
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
259
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
266
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
267
|
-
var toString$1 = toString$3;
|
|
268
|
-
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
269
|
-
|
|
270
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
271
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
272
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
273
|
-
|
|
274
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
275
|
-
return function ($this, pos) {
|
|
276
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
277
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
278
|
-
var size = S.length;
|
|
279
|
-
var first, second;
|
|
280
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
281
|
-
first = charCodeAt(S, position);
|
|
282
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
283
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
284
|
-
? CONVERT_TO_STRING
|
|
285
|
-
? charAt$2(S, position)
|
|
286
|
-
: first
|
|
287
|
-
: CONVERT_TO_STRING
|
|
288
|
-
? stringSlice$2(S, position, position + 2)
|
|
289
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
var stringMultibyte = {
|
|
294
|
-
// `String.prototype.codePointAt` method
|
|
295
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
296
|
-
codeAt: createMethod(false),
|
|
297
|
-
// `String.prototype.at` method
|
|
298
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
299
|
-
charAt: createMethod(true)
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
303
|
-
|
|
304
|
-
// `AdvanceStringIndex` abstract operation
|
|
305
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
306
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
307
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
311
|
-
var toObject = toObject$1;
|
|
312
|
-
|
|
313
|
-
var floor = Math.floor;
|
|
314
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
315
|
-
var replace = uncurryThis$1(''.replace);
|
|
316
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
317
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
318
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
319
|
-
|
|
320
|
-
// `GetSubstitution` abstract operation
|
|
321
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
322
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
323
|
-
var tailPos = position + matched.length;
|
|
324
|
-
var m = captures.length;
|
|
325
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
326
|
-
if (namedCaptures !== undefined) {
|
|
327
|
-
namedCaptures = toObject(namedCaptures);
|
|
328
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
329
|
-
}
|
|
330
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
331
|
-
var capture;
|
|
332
|
-
switch (charAt(ch, 0)) {
|
|
333
|
-
case '$': return '$';
|
|
334
|
-
case '&': return matched;
|
|
335
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
336
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
337
|
-
case '<':
|
|
338
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
339
|
-
break;
|
|
340
|
-
default: // \d\d?
|
|
341
|
-
var n = +ch;
|
|
342
|
-
if (n === 0) return match;
|
|
343
|
-
if (n > m) {
|
|
344
|
-
var f = floor(n / 10);
|
|
345
|
-
if (f === 0) return match;
|
|
346
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
347
|
-
return match;
|
|
348
|
-
}
|
|
349
|
-
capture = captures[n - 1];
|
|
350
|
-
}
|
|
351
|
-
return capture === undefined ? '' : capture;
|
|
352
|
-
});
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
var call$1 = functionCall;
|
|
356
|
-
var anObject$1 = anObject$2;
|
|
357
|
-
var isCallable$1 = isCallable$2;
|
|
358
|
-
var classof = classofRaw;
|
|
359
|
-
var regexpExec = regexpExec$2;
|
|
360
|
-
|
|
361
|
-
var $TypeError = TypeError;
|
|
362
|
-
|
|
363
|
-
// `RegExpExec` abstract operation
|
|
364
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
365
|
-
var regexpExecAbstract = function (R, S) {
|
|
366
|
-
var exec = R.exec;
|
|
367
|
-
if (isCallable$1(exec)) {
|
|
368
|
-
var result = call$1(exec, R, S);
|
|
369
|
-
if (result !== null) anObject$1(result);
|
|
370
|
-
return result;
|
|
371
|
-
}
|
|
372
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
373
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
var apply = functionApply;
|
|
377
|
-
var call = functionCall;
|
|
378
|
-
var uncurryThis = functionUncurryThis;
|
|
379
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
380
|
-
var fails = fails$5;
|
|
381
|
-
var anObject = anObject$2;
|
|
382
|
-
var isCallable = isCallable$2;
|
|
383
|
-
var isNullOrUndefined = isNullOrUndefined$1;
|
|
384
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
385
|
-
var toLength = toLength$1;
|
|
386
|
-
var toString = toString$3;
|
|
387
|
-
var requireObjectCoercible = requireObjectCoercible$2;
|
|
388
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
389
|
-
var getMethod = getMethod$1;
|
|
390
|
-
var getSubstitution = getSubstitution$1;
|
|
391
|
-
var regExpExec = regexpExecAbstract;
|
|
392
|
-
var wellKnownSymbol = wellKnownSymbol$2;
|
|
393
|
-
|
|
394
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
395
|
-
var max = Math.max;
|
|
396
|
-
var min = Math.min;
|
|
397
|
-
var concat = uncurryThis([].concat);
|
|
398
|
-
var push = uncurryThis([].push);
|
|
399
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
400
|
-
var stringSlice = uncurryThis(''.slice);
|
|
401
|
-
|
|
402
|
-
var maybeToString = function (it) {
|
|
403
|
-
return it === undefined ? it : String(it);
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
407
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
408
|
-
var REPLACE_KEEPS_$0 = (function () {
|
|
409
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
410
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
411
|
-
})();
|
|
412
|
-
|
|
413
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
414
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
415
|
-
if (/./[REPLACE]) {
|
|
416
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
417
|
-
}
|
|
418
|
-
return false;
|
|
419
|
-
})();
|
|
420
|
-
|
|
421
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
422
|
-
var re = /./;
|
|
423
|
-
re.exec = function () {
|
|
424
|
-
var result = [];
|
|
425
|
-
result.groups = { a: '7' };
|
|
426
|
-
return result;
|
|
427
|
-
};
|
|
428
|
-
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
429
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
// @@replace logic
|
|
433
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
434
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
435
|
-
|
|
436
|
-
return [
|
|
437
|
-
// `String.prototype.replace` method
|
|
438
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
439
|
-
function replace(searchValue, replaceValue) {
|
|
440
|
-
var O = requireObjectCoercible(this);
|
|
441
|
-
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
442
|
-
return replacer
|
|
443
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
444
|
-
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
445
|
-
},
|
|
446
|
-
// `RegExp.prototype[@@replace]` method
|
|
447
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
448
|
-
function (string, replaceValue) {
|
|
449
|
-
var rx = anObject(this);
|
|
450
|
-
var S = toString(string);
|
|
451
|
-
|
|
452
|
-
if (
|
|
453
|
-
typeof replaceValue == 'string' &&
|
|
454
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
455
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
456
|
-
) {
|
|
457
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
458
|
-
if (res.done) return res.value;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
var functionalReplace = isCallable(replaceValue);
|
|
462
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
463
|
-
|
|
464
|
-
var global = rx.global;
|
|
465
|
-
if (global) {
|
|
466
|
-
var fullUnicode = rx.unicode;
|
|
467
|
-
rx.lastIndex = 0;
|
|
468
|
-
}
|
|
469
|
-
var results = [];
|
|
470
|
-
while (true) {
|
|
471
|
-
var result = regExpExec(rx, S);
|
|
472
|
-
if (result === null) break;
|
|
473
|
-
|
|
474
|
-
push(results, result);
|
|
475
|
-
if (!global) break;
|
|
476
|
-
|
|
477
|
-
var matchStr = toString(result[0]);
|
|
478
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
var accumulatedResult = '';
|
|
482
|
-
var nextSourcePosition = 0;
|
|
483
|
-
for (var i = 0; i < results.length; i++) {
|
|
484
|
-
result = results[i];
|
|
485
|
-
|
|
486
|
-
var matched = toString(result[0]);
|
|
487
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
488
|
-
var captures = [];
|
|
489
|
-
// NOTE: This is equivalent to
|
|
490
|
-
// captures = result.slice(1).map(maybeToString)
|
|
491
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
492
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
493
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
494
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
495
|
-
var namedCaptures = result.groups;
|
|
496
|
-
if (functionalReplace) {
|
|
497
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
498
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
499
|
-
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
500
|
-
} else {
|
|
501
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
502
|
-
}
|
|
503
|
-
if (position >= nextSourcePosition) {
|
|
504
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
505
|
-
nextSourcePosition = position + matched.length;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
509
|
-
}
|
|
510
|
-
];
|
|
511
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 09 Aug 2023 13:23:44 GMT\n */\n.control {\n display: inline-block;\n}\n\n.content-wrapper {\n width: var(--toggletip-inline-size, auto);\n padding: 16px;\n}\n\n.headline {\n font: var(--vvd-typography-base-bold);\n}\n\n.action-items {\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n}\n\n::slotted([slot=action-items]) {\n margin-block-start: 16px;\n}";
|
|
512
7
|
|
|
513
8
|
var _Toggletip_instances, _Toggletip_observer, _Toggletip_anchorEl, _Toggletip_observeMissingAnchor, _Toggletip_ANCHOR_ARIA_LABEL_SUFFIX, _Toggletip_setupAnchor, _Toggletip_cleanupAnchor, _Toggletip_openIfClosed, _Toggletip_closeOnClickOutside, _Toggletip_closeOnEscape;
|
|
514
9
|
class Toggletip extends FoundationElement {
|
|
@@ -603,29 +98,26 @@ __decorate([attr({
|
|
|
603
98
|
mode: 'boolean'
|
|
604
99
|
}), __metadata("design:type", Object)], Toggletip.prototype, "open", void 0);
|
|
605
100
|
|
|
606
|
-
let _2 = t => t,
|
|
607
|
-
_t,
|
|
608
|
-
_t2;
|
|
609
101
|
const getClasses = _ => classNames('control');
|
|
610
102
|
const ToggletipTemplate = context => {
|
|
611
103
|
const popup = context.tagFor(Popup);
|
|
612
|
-
return html
|
|
613
|
-
<${
|
|
614
|
-
class="${
|
|
104
|
+
return html`
|
|
105
|
+
<${popup}
|
|
106
|
+
class="${getClasses}"
|
|
615
107
|
arrow
|
|
616
|
-
:anchor="${
|
|
617
|
-
:open="${
|
|
618
|
-
?alternate="${
|
|
619
|
-
placement="${
|
|
108
|
+
:anchor="${x => x.anchor}"
|
|
109
|
+
:open="${x => x.open}"
|
|
110
|
+
?alternate="${x => !x.alternate}"
|
|
111
|
+
placement="${x => x.placement}"
|
|
620
112
|
exportparts="vvd-theme-alternate"
|
|
621
113
|
>
|
|
622
114
|
<div class="content-wrapper">
|
|
623
|
-
${
|
|
115
|
+
${when(x => x.headline, html`<header class="headline">${x => x.headline}</header>`)}
|
|
624
116
|
<slot></slot>
|
|
625
117
|
<footer class="action-items"><slot name="action-items"></slot></footer>
|
|
626
118
|
</div>
|
|
627
|
-
</${
|
|
628
|
-
|
|
119
|
+
</${popup}>
|
|
120
|
+
`;
|
|
629
121
|
};
|
|
630
122
|
|
|
631
123
|
const toggletipDefinition = Toggletip.compose({
|
package/shared/definition53.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as FoundationElement,
|
|
1
|
+
import { F as FoundationElement, f as __classPrivateFieldSet, d as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { P as Popup, p as popupRegistries } from './definition20.js';
|
|
3
3
|
import { c as classNames } from './class-names.js';
|
|
4
4
|
|
|
5
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
5
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Wed, 09 Aug 2023 13:23:44 GMT\n */\n.control {\n pointer-events: none;\n}\n\n.tooltip {\n width: var(--tooltip-inline-size, auto);\n}\n.tooltip-text {\n padding: 8px 12px;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-typography-base-bold);\n}";
|
|
6
6
|
|
|
7
7
|
var _Tooltip_instances, _Tooltip_anchorEl, _Tooltip_observer, _Tooltip_observeMissingAnchor, _Tooltip_anchorUpdated, _Tooltip_addEventListener, _Tooltip_removeEventListener, _Tooltip_show, _Tooltip_hide, _Tooltip_closeOnEscape;
|
|
8
8
|
class Tooltip extends FoundationElement {
|
|
@@ -92,25 +92,23 @@ __decorate([attr({
|
|
|
92
92
|
mode: 'fromView'
|
|
93
93
|
}), __metadata("design:type", Object)], Tooltip.prototype, "anchor", void 0);
|
|
94
94
|
|
|
95
|
-
let _ = t => t,
|
|
96
|
-
_t;
|
|
97
95
|
const getClasses = ({
|
|
98
96
|
open
|
|
99
97
|
}) => classNames('control', ['open', Boolean(open)]);
|
|
100
98
|
const TooltipTemplate = context => {
|
|
101
99
|
const popupTag = context.tagFor(Popup);
|
|
102
|
-
return html
|
|
103
|
-
<${
|
|
104
|
-
:placement=${
|
|
105
|
-
:anchor="${
|
|
106
|
-
:open=${
|
|
100
|
+
return html`
|
|
101
|
+
<${popupTag} class="${getClasses}" arrow alternate
|
|
102
|
+
:placement=${x => x.placement}
|
|
103
|
+
:anchor="${x => x.anchor}"
|
|
104
|
+
:open=${x => x.open}
|
|
107
105
|
exportparts="vvd-theme-alternate">
|
|
108
106
|
<div class="tooltip" role="tooltip">
|
|
109
107
|
<header part="vvd-theme-alternate" class="tooltip-header">
|
|
110
|
-
<div class="tooltip-text">${
|
|
108
|
+
<div class="tooltip-text">${x => x.text}</div>
|
|
111
109
|
</header>
|
|
112
110
|
</div>
|
|
113
|
-
</${
|
|
111
|
+
</${popupTag}>`;
|
|
114
112
|
};
|
|
115
113
|
|
|
116
114
|
const tooltipDefinition = Tooltip.compose({
|