react-asc 25.0.0 → 25.0.1
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/components/LoadingIndicator/loading-indicator.service.d.ts +1 -0
- package/index.es.js +39 -37
- package/index.js +38 -36
- package/package.json +1 -1
package/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState, useMemo, createContext, useContext, Fragment, Component, createRef, cloneElement } from 'react';
|
|
2
|
-
import reactDom, { createPortal
|
|
2
|
+
import reactDom, { createPortal } from 'react-dom';
|
|
3
3
|
import { createPopper } from '@popperjs/core';
|
|
4
4
|
|
|
5
5
|
/******************************************************************************
|
|
@@ -1793,6 +1793,39 @@ const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
|
1793
1793
|
return (React.createElement("div", { className: getCssClasses() }, children));
|
|
1794
1794
|
};
|
|
1795
1795
|
|
|
1796
|
+
function createCommonjsModule(fn, module) {
|
|
1797
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
var client = createCommonjsModule(function (module, exports) {
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1804
|
+
exports.createRoot = reactDom.createRoot;
|
|
1805
|
+
exports.hydrateRoot = reactDom.hydrateRoot;
|
|
1806
|
+
} else {
|
|
1807
|
+
var i = reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1808
|
+
exports.createRoot = function(c, o) {
|
|
1809
|
+
i.usingClientEntryPoint = true;
|
|
1810
|
+
try {
|
|
1811
|
+
return reactDom.createRoot(c, o);
|
|
1812
|
+
} finally {
|
|
1813
|
+
i.usingClientEntryPoint = false;
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
exports.hydrateRoot = function(c, h, o) {
|
|
1817
|
+
i.usingClientEntryPoint = true;
|
|
1818
|
+
try {
|
|
1819
|
+
return reactDom.hydrateRoot(c, h, o);
|
|
1820
|
+
} finally {
|
|
1821
|
+
i.usingClientEntryPoint = false;
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
var client_1 = client.createRoot;
|
|
1827
|
+
client.hydrateRoot;
|
|
1828
|
+
|
|
1796
1829
|
class LoadingIndicatorService {
|
|
1797
1830
|
show() {
|
|
1798
1831
|
if (this.container) {
|
|
@@ -1801,12 +1834,14 @@ class LoadingIndicatorService {
|
|
|
1801
1834
|
this.container = document.createElement('div');
|
|
1802
1835
|
this.container.classList.add('snackbar-container');
|
|
1803
1836
|
document.body.appendChild(this.container);
|
|
1804
|
-
|
|
1805
|
-
|
|
1837
|
+
this.root = client_1(this.container);
|
|
1838
|
+
this.root.render(React.createElement(LoadingIndicatorContainer, { isFixed: true },
|
|
1839
|
+
React.createElement(LoadingIndicator, null)));
|
|
1806
1840
|
}
|
|
1807
1841
|
hide() {
|
|
1842
|
+
var _a;
|
|
1808
1843
|
if (this.container) {
|
|
1809
|
-
|
|
1844
|
+
(_a = this.root) === null || _a === void 0 ? void 0 : _a.unmount();
|
|
1810
1845
|
document.body.removeChild(this.container);
|
|
1811
1846
|
this.container = undefined;
|
|
1812
1847
|
this.handler && clearTimeout(this.handler);
|
|
@@ -1879,39 +1914,6 @@ const Modal = (props) => {
|
|
|
1879
1914
|
React.createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
1880
1915
|
};
|
|
1881
1916
|
|
|
1882
|
-
function createCommonjsModule(fn, module) {
|
|
1883
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
var client = createCommonjsModule(function (module, exports) {
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1890
|
-
exports.createRoot = reactDom.createRoot;
|
|
1891
|
-
exports.hydrateRoot = reactDom.hydrateRoot;
|
|
1892
|
-
} else {
|
|
1893
|
-
var i = reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1894
|
-
exports.createRoot = function(c, o) {
|
|
1895
|
-
i.usingClientEntryPoint = true;
|
|
1896
|
-
try {
|
|
1897
|
-
return reactDom.createRoot(c, o);
|
|
1898
|
-
} finally {
|
|
1899
|
-
i.usingClientEntryPoint = false;
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
|
-
exports.hydrateRoot = function(c, h, o) {
|
|
1903
|
-
i.usingClientEntryPoint = true;
|
|
1904
|
-
try {
|
|
1905
|
-
return reactDom.hydrateRoot(c, h, o);
|
|
1906
|
-
} finally {
|
|
1907
|
-
i.usingClientEntryPoint = false;
|
|
1908
|
-
}
|
|
1909
|
-
};
|
|
1910
|
-
}
|
|
1911
|
-
});
|
|
1912
|
-
var client_1 = client.createRoot;
|
|
1913
|
-
client.hydrateRoot;
|
|
1914
|
-
|
|
1915
1917
|
var MODALTYPE;
|
|
1916
1918
|
(function (MODALTYPE) {
|
|
1917
1919
|
MODALTYPE["BASIC"] = "BASIC";
|
package/index.js
CHANGED
|
@@ -1802,6 +1802,39 @@ const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
|
1802
1802
|
return (React__default["default"].createElement("div", { className: getCssClasses() }, children));
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
+
function createCommonjsModule(fn, module) {
|
|
1806
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
var client = createCommonjsModule(function (module, exports) {
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1813
|
+
exports.createRoot = reactDom__default["default"].createRoot;
|
|
1814
|
+
exports.hydrateRoot = reactDom__default["default"].hydrateRoot;
|
|
1815
|
+
} else {
|
|
1816
|
+
var i = reactDom__default["default"].__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1817
|
+
exports.createRoot = function(c, o) {
|
|
1818
|
+
i.usingClientEntryPoint = true;
|
|
1819
|
+
try {
|
|
1820
|
+
return reactDom__default["default"].createRoot(c, o);
|
|
1821
|
+
} finally {
|
|
1822
|
+
i.usingClientEntryPoint = false;
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
exports.hydrateRoot = function(c, h, o) {
|
|
1826
|
+
i.usingClientEntryPoint = true;
|
|
1827
|
+
try {
|
|
1828
|
+
return reactDom__default["default"].hydrateRoot(c, h, o);
|
|
1829
|
+
} finally {
|
|
1830
|
+
i.usingClientEntryPoint = false;
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
});
|
|
1835
|
+
var client_1 = client.createRoot;
|
|
1836
|
+
client.hydrateRoot;
|
|
1837
|
+
|
|
1805
1838
|
class LoadingIndicatorService {
|
|
1806
1839
|
show() {
|
|
1807
1840
|
if (this.container) {
|
|
@@ -1810,12 +1843,14 @@ class LoadingIndicatorService {
|
|
|
1810
1843
|
this.container = document.createElement('div');
|
|
1811
1844
|
this.container.classList.add('snackbar-container');
|
|
1812
1845
|
document.body.appendChild(this.container);
|
|
1813
|
-
|
|
1814
|
-
|
|
1846
|
+
this.root = client_1(this.container);
|
|
1847
|
+
this.root.render(React__default["default"].createElement(LoadingIndicatorContainer, { isFixed: true },
|
|
1848
|
+
React__default["default"].createElement(LoadingIndicator, null)));
|
|
1815
1849
|
}
|
|
1816
1850
|
hide() {
|
|
1851
|
+
var _a;
|
|
1817
1852
|
if (this.container) {
|
|
1818
|
-
|
|
1853
|
+
(_a = this.root) === null || _a === void 0 ? void 0 : _a.unmount();
|
|
1819
1854
|
document.body.removeChild(this.container);
|
|
1820
1855
|
this.container = undefined;
|
|
1821
1856
|
this.handler && clearTimeout(this.handler);
|
|
@@ -1888,39 +1923,6 @@ const Modal = (props) => {
|
|
|
1888
1923
|
React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
1889
1924
|
};
|
|
1890
1925
|
|
|
1891
|
-
function createCommonjsModule(fn, module) {
|
|
1892
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
var client = createCommonjsModule(function (module, exports) {
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1899
|
-
exports.createRoot = reactDom__default["default"].createRoot;
|
|
1900
|
-
exports.hydrateRoot = reactDom__default["default"].hydrateRoot;
|
|
1901
|
-
} else {
|
|
1902
|
-
var i = reactDom__default["default"].__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1903
|
-
exports.createRoot = function(c, o) {
|
|
1904
|
-
i.usingClientEntryPoint = true;
|
|
1905
|
-
try {
|
|
1906
|
-
return reactDom__default["default"].createRoot(c, o);
|
|
1907
|
-
} finally {
|
|
1908
|
-
i.usingClientEntryPoint = false;
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1911
|
-
exports.hydrateRoot = function(c, h, o) {
|
|
1912
|
-
i.usingClientEntryPoint = true;
|
|
1913
|
-
try {
|
|
1914
|
-
return reactDom__default["default"].hydrateRoot(c, h, o);
|
|
1915
|
-
} finally {
|
|
1916
|
-
i.usingClientEntryPoint = false;
|
|
1917
|
-
}
|
|
1918
|
-
};
|
|
1919
|
-
}
|
|
1920
|
-
});
|
|
1921
|
-
var client_1 = client.createRoot;
|
|
1922
|
-
client.hydrateRoot;
|
|
1923
|
-
|
|
1924
1926
|
exports.MODALTYPE = void 0;
|
|
1925
1927
|
(function (MODALTYPE) {
|
|
1926
1928
|
MODALTYPE["BASIC"] = "BASIC";
|