@next-core/brick-kit 2.200.3 → 2.201.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/dist/index.bundle.js +30 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +30 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/ModalStack.d.ts +6 -0
- package/dist/types/ModalStack.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.bundle.js
CHANGED
|
@@ -15234,6 +15234,35 @@
|
|
|
15234
15234
|
});
|
|
15235
15235
|
}
|
|
15236
15236
|
|
|
15237
|
+
var stack = [];
|
|
15238
|
+
function instantiateModalStack() {
|
|
15239
|
+
var initialIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1000;
|
|
15240
|
+
var index = -1;
|
|
15241
|
+
var pull = () => {
|
|
15242
|
+
if (index > -1) {
|
|
15243
|
+
var found = stack.indexOf(index);
|
|
15244
|
+
// Assert: found should always be greater than -1
|
|
15245
|
+
// istanbul ignore else
|
|
15246
|
+
if (found > -1) {
|
|
15247
|
+
stack.splice(found, 1);
|
|
15248
|
+
}
|
|
15249
|
+
}
|
|
15250
|
+
};
|
|
15251
|
+
var push = () => {
|
|
15252
|
+
var _stack;
|
|
15253
|
+
// Handle pushes without pull
|
|
15254
|
+
pull();
|
|
15255
|
+
// Find the next available index
|
|
15256
|
+
index = ((_stack = stack[stack.length - 1]) !== null && _stack !== void 0 ? _stack : -1) + 1;
|
|
15257
|
+
stack.push(index);
|
|
15258
|
+
return index + initialIndex;
|
|
15259
|
+
};
|
|
15260
|
+
return {
|
|
15261
|
+
push,
|
|
15262
|
+
pull
|
|
15263
|
+
};
|
|
15264
|
+
}
|
|
15265
|
+
|
|
15237
15266
|
/**
|
|
15238
15267
|
* returns true if the given object is a promise
|
|
15239
15268
|
*/
|
|
@@ -16872,6 +16901,7 @@
|
|
|
16872
16901
|
exports.httpErrorToString = httpErrorToString;
|
|
16873
16902
|
exports.i18nText = i18nText;
|
|
16874
16903
|
exports.initI18n = initI18n;
|
|
16904
|
+
exports.instantiateModalStack = instantiateModalStack;
|
|
16875
16905
|
exports.isLoggedIn = isLoggedIn;
|
|
16876
16906
|
exports.logout = logout;
|
|
16877
16907
|
exports.looseCheckIf = looseCheckIf$1;
|