@ntlab/ntjs-assets 2.0.2 → 2.0.3
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/assets/js/bootstrap-icons/bootstrap-icons.svg +1 -1
- package/assets/js/bootstrap-icons/folder-plus.svg +2 -2
- package/assets/js/bootstrap-icons/font/bootstrap-icons.css +1981 -0
- package/assets/js/bootstrap-icons/font/bootstrap-icons.json +1955 -0
- package/assets/js/bootstrap-icons/font/bootstrap-icons.min.css +5 -0
- package/assets/js/bootstrap-icons/font/bootstrap-icons.scss +1993 -0
- package/assets/js/bootstrap-icons/font/fonts/bootstrap-icons.woff +0 -0
- package/assets/js/bootstrap-icons/font/fonts/bootstrap-icons.woff2 +0 -0
- package/assets/js/bootstrap-icons/postcard-heart-fill.svg +1 -1
- package/assets/js/bootstrap-icons/trash.svg +2 -2
- package/assets/js/jquery/jquery.js +840 -1045
- package/assets/js/jquery/jquery.min.js +2 -2
- package/assets/js/jquery/jquery.min.map +1 -1
- package/assets/js/jquery/jquery.slim.js +834 -1039
- package/assets/js/jquery/jquery.slim.min.js +2 -2
- package/assets/js/jquery/jquery.slim.min.map +1 -1
- package/assets/js/popper.js/cjs/enums.js +1 -1
- package/assets/js/popper.js/cjs/popper-base.js +12 -170
- package/assets/js/popper.js/cjs/popper-base.js.map +1 -1
- package/assets/js/popper.js/cjs/popper-lite.js +14 -184
- package/assets/js/popper.js/cjs/popper-lite.js.map +1 -1
- package/assets/js/popper.js/cjs/popper.js +14 -197
- package/assets/js/popper.js/cjs/popper.js.map +1 -1
- package/assets/js/popper.js/esm/createPopper.js +6 -66
- package/assets/js/popper.js/esm/modifiers/arrow.js +1 -12
- package/assets/js/popper.js/esm/modifiers/computeStyles.js +2 -14
- package/assets/js/popper.js/esm/utils/computeAutoPlacement.js +0 -4
- package/assets/js/popper.js/esm/utils/userAgent.js +1 -1
- package/assets/js/popper.js/umd/enums.js +1 -1
- package/assets/js/popper.js/umd/enums.min.js +1 -1
- package/assets/js/popper.js/umd/popper-base.js +12 -170
- package/assets/js/popper.js/umd/popper-base.js.map +1 -1
- package/assets/js/popper.js/umd/popper-base.min.js +2 -2
- package/assets/js/popper.js/umd/popper-base.min.js.map +1 -1
- package/assets/js/popper.js/umd/popper-lite.js +14 -184
- package/assets/js/popper.js/umd/popper-lite.js.map +1 -1
- package/assets/js/popper.js/umd/popper-lite.min.js +2 -2
- package/assets/js/popper.js/umd/popper-lite.min.js.map +1 -1
- package/assets/js/popper.js/umd/popper.js +14 -197
- package/assets/js/popper.js/umd/popper.js.map +1 -1
- package/assets/js/popper.js/umd/popper.min.js +2 -2
- package/assets/js/popper.js/umd/popper.min.js.map +1 -1
- package/assets/js/semantic-ui/components/accordion.css +196 -74
- package/assets/js/semantic-ui/components/accordion.js +570 -591
- package/assets/js/semantic-ui/components/accordion.min.css +4 -4
- package/assets/js/semantic-ui/components/accordion.min.js +6 -6
- package/assets/js/semantic-ui/components/ad.css +40 -51
- package/assets/js/semantic-ui/components/ad.min.css +4 -4
- package/assets/js/semantic-ui/components/api.js +1154 -1117
- package/assets/js/semantic-ui/components/api.min.js +6 -6
- package/assets/js/semantic-ui/components/breadcrumb.css +7 -7
- package/assets/js/semantic-ui/components/breadcrumb.min.css +4 -4
- package/assets/js/semantic-ui/components/button.css +895 -1227
- package/assets/js/semantic-ui/components/button.min.css +4 -4
- package/assets/js/semantic-ui/components/calendar.css +60 -33
- package/assets/js/semantic-ui/components/calendar.js +1952 -1575
- package/assets/js/semantic-ui/components/calendar.min.css +4 -4
- package/assets/js/semantic-ui/components/calendar.min.js +6 -6
- package/assets/js/semantic-ui/components/card.css +1004 -441
- package/assets/js/semantic-ui/components/card.min.css +4 -4
- package/assets/js/semantic-ui/components/checkbox.css +275 -303
- package/assets/js/semantic-ui/components/checkbox.js +863 -855
- package/assets/js/semantic-ui/components/checkbox.min.css +4 -4
- package/assets/js/semantic-ui/components/checkbox.min.js +6 -6
- package/assets/js/semantic-ui/components/comment.css +45 -63
- package/assets/js/semantic-ui/components/comment.min.css +4 -4
- package/assets/js/semantic-ui/components/container.css +98 -4
- package/assets/js/semantic-ui/components/container.min.css +4 -4
- package/assets/js/semantic-ui/components/dimmer.css +95 -196
- package/assets/js/semantic-ui/components/dimmer.js +698 -717
- package/assets/js/semantic-ui/components/dimmer.min.css +4 -4
- package/assets/js/semantic-ui/components/dimmer.min.js +6 -6
- package/assets/js/semantic-ui/components/divider.css +75 -93
- package/assets/js/semantic-ui/components/divider.min.css +4 -4
- package/assets/js/semantic-ui/components/dropdown.css +490 -413
- package/assets/js/semantic-ui/components/dropdown.js +4203 -4068
- package/assets/js/semantic-ui/components/dropdown.min.css +4 -4
- package/assets/js/semantic-ui/components/dropdown.min.js +6 -6
- package/assets/js/semantic-ui/components/embed.css +27 -38
- package/assets/js/semantic-ui/components/embed.js +647 -673
- package/assets/js/semantic-ui/components/embed.min.css +4 -4
- package/assets/js/semantic-ui/components/embed.min.js +6 -6
- package/assets/js/semantic-ui/components/emoji.css +11156 -9192
- package/assets/js/semantic-ui/components/emoji.min.css +3 -3
- package/assets/js/semantic-ui/components/feed.css +56 -78
- package/assets/js/semantic-ui/components/feed.min.css +4 -4
- package/assets/js/semantic-ui/components/flag.css +1037 -929
- package/assets/js/semantic-ui/components/flag.min.css +4 -4
- package/assets/js/semantic-ui/components/flyout.css +552 -0
- package/assets/js/semantic-ui/components/flyout.js +1567 -0
- package/assets/js/semantic-ui/components/flyout.min.css +9 -0
- package/assets/js/semantic-ui/components/flyout.min.js +11 -0
- package/assets/js/semantic-ui/components/form.css +536 -530
- package/assets/js/semantic-ui/components/form.js +2037 -1945
- package/assets/js/semantic-ui/components/form.min.css +4 -4
- package/assets/js/semantic-ui/components/form.min.js +6 -6
- package/assets/js/semantic-ui/components/grid.css +218 -345
- package/assets/js/semantic-ui/components/grid.min.css +4 -4
- package/assets/js/semantic-ui/components/header.css +137 -154
- package/assets/js/semantic-ui/components/header.min.css +4 -4
- package/assets/js/semantic-ui/components/icon.css +3000 -2750
- package/assets/js/semantic-ui/components/icon.min.css +4 -4
- package/assets/js/semantic-ui/components/image.css +54 -49
- package/assets/js/semantic-ui/components/image.min.css +4 -4
- package/assets/js/semantic-ui/components/input.css +1081 -227
- package/assets/js/semantic-ui/components/input.min.css +4 -4
- package/assets/js/semantic-ui/components/item.css +91 -138
- package/assets/js/semantic-ui/components/item.min.css +4 -4
- package/assets/js/semantic-ui/components/label.css +470 -481
- package/assets/js/semantic-ui/components/label.min.css +4 -4
- package/assets/js/semantic-ui/components/list.css +93 -114
- package/assets/js/semantic-ui/components/list.min.css +4 -4
- package/assets/js/semantic-ui/components/loader.css +452 -536
- package/assets/js/semantic-ui/components/loader.min.css +4 -4
- package/assets/js/semantic-ui/components/menu.css +408 -510
- package/assets/js/semantic-ui/components/menu.min.css +9 -1
- package/assets/js/semantic-ui/components/message.css +188 -213
- package/assets/js/semantic-ui/components/message.min.css +4 -4
- package/assets/js/semantic-ui/components/modal.css +174 -166
- package/assets/js/semantic-ui/components/modal.js +1558 -1146
- package/assets/js/semantic-ui/components/modal.min.css +4 -4
- package/assets/js/semantic-ui/components/modal.min.js +6 -6
- package/assets/js/semantic-ui/components/nag.css +183 -41
- package/assets/js/semantic-ui/components/nag.js +527 -467
- package/assets/js/semantic-ui/components/nag.min.css +4 -4
- package/assets/js/semantic-ui/components/nag.min.js +6 -6
- package/assets/js/semantic-ui/components/placeholder.css +62 -76
- package/assets/js/semantic-ui/components/placeholder.min.css +4 -4
- package/assets/js/semantic-ui/components/popup.css +681 -312
- package/assets/js/semantic-ui/components/popup.js +1470 -1463
- package/assets/js/semantic-ui/components/popup.min.css +4 -4
- package/assets/js/semantic-ui/components/popup.min.js +6 -6
- package/assets/js/semantic-ui/components/progress.css +149 -217
- package/assets/js/semantic-ui/components/progress.js +945 -1002
- package/assets/js/semantic-ui/components/progress.min.css +4 -4
- package/assets/js/semantic-ui/components/progress.min.js +6 -6
- package/assets/js/semantic-ui/components/rail.css +17 -22
- package/assets/js/semantic-ui/components/rail.min.css +3 -3
- package/assets/js/semantic-ui/components/rating.css +89 -184
- package/assets/js/semantic-ui/components/rating.js +509 -521
- package/assets/js/semantic-ui/components/rating.min.css +4 -4
- package/assets/js/semantic-ui/components/rating.min.js +6 -6
- package/assets/js/semantic-ui/components/reset.css +12 -17
- package/assets/js/semantic-ui/components/reset.min.css +4 -4
- package/assets/js/semantic-ui/components/reveal.css +46 -85
- package/assets/js/semantic-ui/components/reveal.min.css +4 -4
- package/assets/js/semantic-ui/components/search.css +157 -96
- package/assets/js/semantic-ui/components/search.js +1522 -1479
- package/assets/js/semantic-ui/components/search.min.css +4 -4
- package/assets/js/semantic-ui/components/search.min.js +6 -6
- package/assets/js/semantic-ui/components/segment.css +317 -249
- package/assets/js/semantic-ui/components/segment.min.css +4 -4
- package/assets/js/semantic-ui/components/shape.css +16 -32
- package/assets/js/semantic-ui/components/shape.js +763 -812
- package/assets/js/semantic-ui/components/shape.min.css +4 -4
- package/assets/js/semantic-ui/components/shape.min.js +6 -6
- package/assets/js/semantic-ui/components/sidebar.css +128 -216
- package/assets/js/semantic-ui/components/sidebar.js +1042 -1003
- package/assets/js/semantic-ui/components/sidebar.min.css +4 -4
- package/assets/js/semantic-ui/components/sidebar.min.js +6 -6
- package/assets/js/semantic-ui/components/site.css +123 -48
- package/assets/js/semantic-ui/components/site.js +438 -478
- package/assets/js/semantic-ui/components/site.min.css +4 -4
- package/assets/js/semantic-ui/components/site.min.js +6 -6
- package/assets/js/semantic-ui/components/slider.css +133 -141
- package/assets/js/semantic-ui/components/slider.js +1312 -1274
- package/assets/js/semantic-ui/components/slider.min.css +9 -1
- package/assets/js/semantic-ui/components/slider.min.js +6 -6
- package/assets/js/semantic-ui/components/state.js +640 -659
- package/assets/js/semantic-ui/components/state.min.js +6 -6
- package/assets/js/semantic-ui/components/statistic.css +83 -124
- package/assets/js/semantic-ui/components/statistic.min.css +4 -4
- package/assets/js/semantic-ui/components/step.css +118 -184
- package/assets/js/semantic-ui/components/step.min.css +4 -4
- package/assets/js/semantic-ui/components/sticky.css +3 -8
- package/assets/js/semantic-ui/components/sticky.js +849 -892
- package/assets/js/semantic-ui/components/sticky.min.css +4 -4
- package/assets/js/semantic-ui/components/sticky.min.js +6 -6
- package/assets/js/semantic-ui/components/tab.css +16 -20
- package/assets/js/semantic-ui/components/tab.js +896 -941
- package/assets/js/semantic-ui/components/tab.min.css +4 -4
- package/assets/js/semantic-ui/components/tab.min.js +6 -6
- package/assets/js/semantic-ui/components/table.css +2073 -884
- package/assets/js/semantic-ui/components/table.min.css +4 -4
- package/assets/js/semantic-ui/components/text.css +51 -30
- package/assets/js/semantic-ui/components/text.min.css +4 -4
- package/assets/js/semantic-ui/components/toast.css +200 -137
- package/assets/js/semantic-ui/components/toast.js +912 -832
- package/assets/js/semantic-ui/components/toast.min.css +4 -4
- package/assets/js/semantic-ui/components/toast.min.js +6 -6
- package/assets/js/semantic-ui/components/transition.css +371 -1282
- package/assets/js/semantic-ui/components/transition.js +999 -1074
- package/assets/js/semantic-ui/components/transition.min.css +4 -4
- package/assets/js/semantic-ui/components/transition.min.js +6 -6
- package/assets/js/semantic-ui/components/visibility.js +1215 -1247
- package/assets/js/semantic-ui/components/visibility.min.js +6 -6
- package/assets/js/semantic-ui/semantic.css +43777 -37429
- package/assets/js/semantic-ui/semantic.js +29152 -26694
- package/assets/js/semantic-ui/semantic.min.css +6 -399
- package/assets/js/semantic-ui/semantic.min.js +6 -6
- package/assets/js/semantic-ui/themes/basic/assets/fonts/icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/famfamfam/assets/images/flags.png +0 -0
- package/assets/js/semantic-ui/themes/github/assets/fonts/octicons.woff2 +0 -0
- package/assets/js/socket.io/socket.io.esm.min.js +3 -3
- package/assets/js/socket.io/socket.io.esm.min.js.map +1 -1
- package/assets/js/socket.io/socket.io.js +841 -333
- package/assets/js/socket.io/socket.io.js.map +1 -1
- package/assets/js/socket.io/socket.io.min.js +3 -3
- package/assets/js/socket.io/socket.io.min.js.map +1 -1
- package/assets/js/socket.io/socket.io.msgpack.min.js +3 -3
- package/assets/js/socket.io/socket.io.msgpack.min.js.map +1 -1
- package/cdn.json +19 -4
- package/package.json +1 -1
|
@@ -2,18 +2,11 @@ import getCompositeRect from "./dom-utils/getCompositeRect.js";
|
|
|
2
2
|
import getLayoutRect from "./dom-utils/getLayoutRect.js";
|
|
3
3
|
import listScrollParents from "./dom-utils/listScrollParents.js";
|
|
4
4
|
import getOffsetParent from "./dom-utils/getOffsetParent.js";
|
|
5
|
-
import getComputedStyle from "./dom-utils/getComputedStyle.js";
|
|
6
5
|
import orderModifiers from "./utils/orderModifiers.js";
|
|
7
6
|
import debounce from "./utils/debounce.js";
|
|
8
|
-
import validateModifiers from "./utils/validateModifiers.js";
|
|
9
|
-
import uniqueBy from "./utils/uniqueBy.js";
|
|
10
|
-
import getBasePlacement from "./utils/getBasePlacement.js";
|
|
11
7
|
import mergeByName from "./utils/mergeByName.js";
|
|
12
8
|
import detectOverflow from "./utils/detectOverflow.js";
|
|
13
9
|
import { isElement } from "./dom-utils/instanceOf.js";
|
|
14
|
-
import { auto } from "./enums.js";
|
|
15
|
-
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
16
|
-
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
17
10
|
var DEFAULT_OPTIONS = {
|
|
18
11
|
placement: 'bottom',
|
|
19
12
|
modifiers: [],
|
|
@@ -75,42 +68,7 @@ export function popperGenerator(generatorOptions) {
|
|
|
75
68
|
|
|
76
69
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
77
70
|
return m.enabled;
|
|
78
|
-
});
|
|
79
|
-
// if one of the modifiers is invalid for any reason
|
|
80
|
-
|
|
81
|
-
if (false) {
|
|
82
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
83
|
-
var name = _ref.name;
|
|
84
|
-
return name;
|
|
85
|
-
});
|
|
86
|
-
validateModifiers(modifiers);
|
|
87
|
-
|
|
88
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
89
|
-
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
90
|
-
var name = _ref2.name;
|
|
91
|
-
return name === 'flip';
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
if (!flipModifier) {
|
|
95
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
var _getComputedStyle = getComputedStyle(popper),
|
|
100
|
-
marginTop = _getComputedStyle.marginTop,
|
|
101
|
-
marginRight = _getComputedStyle.marginRight,
|
|
102
|
-
marginBottom = _getComputedStyle.marginBottom,
|
|
103
|
-
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
104
|
-
// cause bugs with positioning, so we'll warn the consumer
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
108
|
-
return parseFloat(margin);
|
|
109
|
-
})) {
|
|
110
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
71
|
+
});
|
|
114
72
|
runModifierEffects();
|
|
115
73
|
return instance.update();
|
|
116
74
|
},
|
|
@@ -130,10 +88,6 @@ export function popperGenerator(generatorOptions) {
|
|
|
130
88
|
// anymore
|
|
131
89
|
|
|
132
90
|
if (!areValidElements(reference, popper)) {
|
|
133
|
-
if (false) {
|
|
134
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
91
|
return;
|
|
138
92
|
} // Store the reference and popper rects to be read by modifiers
|
|
139
93
|
|
|
@@ -156,18 +110,8 @@ export function popperGenerator(generatorOptions) {
|
|
|
156
110
|
state.orderedModifiers.forEach(function (modifier) {
|
|
157
111
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
158
112
|
});
|
|
159
|
-
var __debug_loops__ = 0;
|
|
160
113
|
|
|
161
114
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
162
|
-
if (false) {
|
|
163
|
-
__debug_loops__ += 1;
|
|
164
|
-
|
|
165
|
-
if (__debug_loops__ > 100) {
|
|
166
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
115
|
if (state.reset === true) {
|
|
172
116
|
state.reset = false;
|
|
173
117
|
index = -1;
|
|
@@ -205,10 +149,6 @@ export function popperGenerator(generatorOptions) {
|
|
|
205
149
|
};
|
|
206
150
|
|
|
207
151
|
if (!areValidElements(reference, popper)) {
|
|
208
|
-
if (false) {
|
|
209
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
152
|
return instance;
|
|
213
153
|
}
|
|
214
154
|
|
|
@@ -223,11 +163,11 @@ export function popperGenerator(generatorOptions) {
|
|
|
223
163
|
// one.
|
|
224
164
|
|
|
225
165
|
function runModifierEffects() {
|
|
226
|
-
state.orderedModifiers.forEach(function (
|
|
227
|
-
var name =
|
|
228
|
-
|
|
229
|
-
options =
|
|
230
|
-
effect =
|
|
166
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
167
|
+
var name = _ref.name,
|
|
168
|
+
_ref$options = _ref.options,
|
|
169
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
170
|
+
effect = _ref.effect;
|
|
231
171
|
|
|
232
172
|
if (typeof effect === 'function') {
|
|
233
173
|
var cleanupFn = effect({
|
|
@@ -6,8 +6,7 @@ import getMainAxisFromPlacement from "../utils/getMainAxisFromPlacement.js";
|
|
|
6
6
|
import { within } from "../utils/within.js";
|
|
7
7
|
import mergePaddingObject from "../utils/mergePaddingObject.js";
|
|
8
8
|
import expandToHashMap from "../utils/expandToHashMap.js";
|
|
9
|
-
import { left, right, basePlacements, top, bottom } from "../enums.js";
|
|
10
|
-
import { isHTMLElement } from "../dom-utils/instanceOf.js"; // eslint-disable-next-line import/no-unused-modules
|
|
9
|
+
import { left, right, basePlacements, top, bottom } from "../enums.js"; // eslint-disable-next-line import/no-unused-modules
|
|
11
10
|
|
|
12
11
|
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
13
12
|
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
@@ -72,17 +71,7 @@ function effect(_ref2) {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|
|
75
|
-
if (false) {
|
|
76
|
-
if (!isHTMLElement(arrowElement)) {
|
|
77
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
74
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
82
|
-
if (false) {
|
|
83
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
75
|
return;
|
|
87
76
|
}
|
|
88
77
|
|
|
@@ -16,10 +16,9 @@ var unsetSides = {
|
|
|
16
16
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
17
17
|
// cleanly divide the values into the appropriate subpixels.
|
|
18
18
|
|
|
19
|
-
function roundOffsetsByDPR(_ref) {
|
|
19
|
+
function roundOffsetsByDPR(_ref, win) {
|
|
20
20
|
var x = _ref.x,
|
|
21
21
|
y = _ref.y;
|
|
22
|
-
var win = window;
|
|
23
22
|
var dpr = win.devicePixelRatio || 1;
|
|
24
23
|
return {
|
|
25
24
|
x: round(x * dpr) / dpr || 0,
|
|
@@ -102,7 +101,7 @@ export function mapToStyles(_ref2) {
|
|
|
102
101
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
103
102
|
x: x,
|
|
104
103
|
y: y
|
|
105
|
-
}) : {
|
|
104
|
+
}, getWindow(popper)) : {
|
|
106
105
|
x: x,
|
|
107
106
|
y: y
|
|
108
107
|
};
|
|
@@ -128,17 +127,6 @@ function computeStyles(_ref5) {
|
|
|
128
127
|
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
129
128
|
_options$roundOffsets = options.roundOffsets,
|
|
130
129
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
131
|
-
|
|
132
|
-
if (false) {
|
|
133
|
-
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
|
|
134
|
-
|
|
135
|
-
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
136
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
137
|
-
})) {
|
|
138
|
-
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
130
|
var commonStyles = {
|
|
143
131
|
placement: getBasePlacement(state.placement),
|
|
144
132
|
variation: getVariation(state.placement),
|
|
@@ -25,10 +25,6 @@ export default function computeAutoPlacement(state, options) {
|
|
|
25
25
|
|
|
26
26
|
if (allowedPlacements.length === 0) {
|
|
27
27
|
allowedPlacements = placements;
|
|
28
|
-
|
|
29
|
-
if (false) {
|
|
30
|
-
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
31
|
-
}
|
|
32
28
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
33
29
|
|
|
34
30
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default function getUAString() {
|
|
2
2
|
var uaData = navigator.userAgentData;
|
|
3
3
|
|
|
4
|
-
if (uaData != null && uaData.brands) {
|
|
4
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
5
5
|
return uaData.brands.map(function (item) {
|
|
6
6
|
return item.brand + "/" + item.version;
|
|
7
7
|
}).join(' ');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @popperjs/core v2.11.
|
|
2
|
+
* @popperjs/core v2.11.8 - MIT License
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";var t="bottom",r="right",o="left",n="auto",a=["top",t,r,o],i="start",f="end",p=a.reduce((function(e,t){return e.concat([t+"-"+i,t+"-"+f])}),[]),c=[].concat(a,[n]).reduce((function(e,t){return e.concat([t,t+"-"+i,t+"-"+f])}),[]),d="beforeRead",s="read",u="afterRead",l="beforeMain",b="main",m="afterMain",P="beforeWrite",g="write",h="afterWrite",v=[d,s,u,l,b,m,P,g,h];e.afterMain=m,e.afterRead=u,e.afterWrite=h,e.auto=n,e.basePlacements=a,e.beforeMain=l,e.beforeRead=d,e.beforeWrite=P,e.bottom=t,e.clippingParents="clippingParents",e.end=f,e.left=o,e.main=b,e.modifierPhases=v,e.placements=c,e.popper="popper",e.read=s,e.reference="reference",e.right=r,e.start=i,e.top="top",e.variationPlacements=p,e.viewport="viewport",e.write=g,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @popperjs/core v2.11.
|
|
2
|
+
* @popperjs/core v2.11.8 - MIT License
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
(function (global, factory) {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
function getUAString() {
|
|
49
49
|
var uaData = navigator.userAgentData;
|
|
50
50
|
|
|
51
|
-
if (uaData != null && uaData.brands) {
|
|
51
|
+
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
|
|
52
52
|
return uaData.brands.map(function (item) {
|
|
53
53
|
return item.brand + "/" + item.version;
|
|
54
54
|
}).join(' ');
|
|
@@ -357,7 +357,6 @@
|
|
|
357
357
|
var bottom = 'bottom';
|
|
358
358
|
var right = 'right';
|
|
359
359
|
var left = 'left';
|
|
360
|
-
var auto = 'auto';
|
|
361
360
|
var basePlacements = [top, bottom, right, left];
|
|
362
361
|
var start = 'start';
|
|
363
362
|
var end = 'end';
|
|
@@ -438,112 +437,6 @@
|
|
|
438
437
|
};
|
|
439
438
|
}
|
|
440
439
|
|
|
441
|
-
function format(str) {
|
|
442
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
443
|
-
args[_key - 1] = arguments[_key];
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
return [].concat(args).reduce(function (p, c) {
|
|
447
|
-
return p.replace(/%s/, c);
|
|
448
|
-
}, str);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
452
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
453
|
-
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
454
|
-
function validateModifiers(modifiers) {
|
|
455
|
-
modifiers.forEach(function (modifier) {
|
|
456
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
457
|
-
.filter(function (value, index, self) {
|
|
458
|
-
return self.indexOf(value) === index;
|
|
459
|
-
}).forEach(function (key) {
|
|
460
|
-
switch (key) {
|
|
461
|
-
case 'name':
|
|
462
|
-
if (typeof modifier.name !== 'string') {
|
|
463
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
break;
|
|
467
|
-
|
|
468
|
-
case 'enabled':
|
|
469
|
-
if (typeof modifier.enabled !== 'boolean') {
|
|
470
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
break;
|
|
474
|
-
|
|
475
|
-
case 'phase':
|
|
476
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
477
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
break;
|
|
481
|
-
|
|
482
|
-
case 'fn':
|
|
483
|
-
if (typeof modifier.fn !== 'function') {
|
|
484
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
break;
|
|
488
|
-
|
|
489
|
-
case 'effect':
|
|
490
|
-
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
491
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
break;
|
|
495
|
-
|
|
496
|
-
case 'requires':
|
|
497
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
498
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
break;
|
|
502
|
-
|
|
503
|
-
case 'requiresIfExists':
|
|
504
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
505
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
break;
|
|
509
|
-
|
|
510
|
-
case 'options':
|
|
511
|
-
case 'data':
|
|
512
|
-
break;
|
|
513
|
-
|
|
514
|
-
default:
|
|
515
|
-
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
516
|
-
return "\"" + s + "\"";
|
|
517
|
-
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
521
|
-
if (modifiers.find(function (mod) {
|
|
522
|
-
return mod.name === requirement;
|
|
523
|
-
}) == null) {
|
|
524
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
});
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
function uniqueBy(arr, fn) {
|
|
532
|
-
var identifiers = new Set();
|
|
533
|
-
return arr.filter(function (item) {
|
|
534
|
-
var identifier = fn(item);
|
|
535
|
-
|
|
536
|
-
if (!identifiers.has(identifier)) {
|
|
537
|
-
identifiers.add(identifier);
|
|
538
|
-
return true;
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function getBasePlacement(placement) {
|
|
544
|
-
return placement.split('-')[0];
|
|
545
|
-
}
|
|
546
|
-
|
|
547
440
|
function mergeByName(modifiers) {
|
|
548
441
|
var merged = modifiers.reduce(function (merged, current) {
|
|
549
442
|
var existing = merged[current.name];
|
|
@@ -700,6 +593,10 @@
|
|
|
700
593
|
return clippingRect;
|
|
701
594
|
}
|
|
702
595
|
|
|
596
|
+
function getBasePlacement(placement) {
|
|
597
|
+
return placement.split('-')[0];
|
|
598
|
+
}
|
|
599
|
+
|
|
703
600
|
function getVariation(placement) {
|
|
704
601
|
return placement.split('-')[1];
|
|
705
602
|
}
|
|
@@ -849,8 +746,6 @@
|
|
|
849
746
|
return overflowOffsets;
|
|
850
747
|
}
|
|
851
748
|
|
|
852
|
-
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
853
|
-
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
854
749
|
var DEFAULT_OPTIONS = {
|
|
855
750
|
placement: 'bottom',
|
|
856
751
|
modifiers: [],
|
|
@@ -912,42 +807,7 @@
|
|
|
912
807
|
|
|
913
808
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
914
809
|
return m.enabled;
|
|
915
|
-
});
|
|
916
|
-
// if one of the modifiers is invalid for any reason
|
|
917
|
-
|
|
918
|
-
{
|
|
919
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
920
|
-
var name = _ref.name;
|
|
921
|
-
return name;
|
|
922
|
-
});
|
|
923
|
-
validateModifiers(modifiers);
|
|
924
|
-
|
|
925
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
926
|
-
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
927
|
-
var name = _ref2.name;
|
|
928
|
-
return name === 'flip';
|
|
929
|
-
});
|
|
930
|
-
|
|
931
|
-
if (!flipModifier) {
|
|
932
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
var _getComputedStyle = getComputedStyle(popper),
|
|
937
|
-
marginTop = _getComputedStyle.marginTop,
|
|
938
|
-
marginRight = _getComputedStyle.marginRight,
|
|
939
|
-
marginBottom = _getComputedStyle.marginBottom,
|
|
940
|
-
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
941
|
-
// cause bugs with positioning, so we'll warn the consumer
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
945
|
-
return parseFloat(margin);
|
|
946
|
-
})) {
|
|
947
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
810
|
+
});
|
|
951
811
|
runModifierEffects();
|
|
952
812
|
return instance.update();
|
|
953
813
|
},
|
|
@@ -967,10 +827,6 @@
|
|
|
967
827
|
// anymore
|
|
968
828
|
|
|
969
829
|
if (!areValidElements(reference, popper)) {
|
|
970
|
-
{
|
|
971
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
972
|
-
}
|
|
973
|
-
|
|
974
830
|
return;
|
|
975
831
|
} // Store the reference and popper rects to be read by modifiers
|
|
976
832
|
|
|
@@ -993,18 +849,8 @@
|
|
|
993
849
|
state.orderedModifiers.forEach(function (modifier) {
|
|
994
850
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
995
851
|
});
|
|
996
|
-
var __debug_loops__ = 0;
|
|
997
852
|
|
|
998
853
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
999
|
-
{
|
|
1000
|
-
__debug_loops__ += 1;
|
|
1001
|
-
|
|
1002
|
-
if (__debug_loops__ > 100) {
|
|
1003
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
1004
|
-
break;
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
854
|
if (state.reset === true) {
|
|
1009
855
|
state.reset = false;
|
|
1010
856
|
index = -1;
|
|
@@ -1042,10 +888,6 @@
|
|
|
1042
888
|
};
|
|
1043
889
|
|
|
1044
890
|
if (!areValidElements(reference, popper)) {
|
|
1045
|
-
{
|
|
1046
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
891
|
return instance;
|
|
1050
892
|
}
|
|
1051
893
|
|
|
@@ -1060,11 +902,11 @@
|
|
|
1060
902
|
// one.
|
|
1061
903
|
|
|
1062
904
|
function runModifierEffects() {
|
|
1063
|
-
state.orderedModifiers.forEach(function (
|
|
1064
|
-
var name =
|
|
1065
|
-
|
|
1066
|
-
options =
|
|
1067
|
-
effect =
|
|
905
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
906
|
+
var name = _ref.name,
|
|
907
|
+
_ref$options = _ref.options,
|
|
908
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
909
|
+
effect = _ref.effect;
|
|
1068
910
|
|
|
1069
911
|
if (typeof effect === 'function') {
|
|
1070
912
|
var cleanupFn = effect({
|