@ukpc-lib/react 0.13.1-dev.25 → 0.13.1-dev.27

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.
Files changed (26) hide show
  1. package/dist/components/StyledDateRangePicker/index.d.ts +0 -1
  2. package/dist/components/index.cjs +2 -2
  3. package/dist/components/index.js +584 -586
  4. package/dist/{index.esm2017-DiJ5f9ER.js → index.esm2017-hAdqPAqn.js} +5550 -5539
  5. package/dist/{index.esm2017-BRdyW06b.cjs → index.esm2017-xBWZcO2U.cjs} +94 -94
  6. package/dist/share/index.cjs +1 -1
  7. package/dist/share/index.js +12 -12
  8. package/package.json +1 -1
  9. package/web-components-bundle/{SaasThemeProvider-8W2MaSUF.js → SaasThemeProvider-A_eMJWqw.js} +9 -9
  10. package/web-components-bundle/access-denied/index.js +2 -3
  11. package/web-components-bundle/base-breadcrumbs/index.js +3 -3
  12. package/web-components-bundle/favorite-menu/index.js +7 -7
  13. package/web-components-bundle/global-menu/index.js +6 -6
  14. package/web-components-bundle/global-topbar/index.js +7 -7
  15. package/web-components-bundle/has-permission/index.js +2 -2
  16. package/web-components-bundle/{index-CHcaOev7.js → index-CE4KNS10.js} +946 -946
  17. package/web-components-bundle/{index-Bu7DHdEJ.js → index-DFUmn1bB.js} +18 -20
  18. package/web-components-bundle/index-DQQeBZzF.js +3527 -0
  19. package/web-components-bundle/{index-CDpevgH4.js → index-fssXU5ga.js} +7265 -7253
  20. package/web-components-bundle/page-not-found/index.js +4 -5
  21. package/web-components-bundle/{react-to-web-component-CXwKHjZr.js → react-to-web-component-BOygDorD.js} +1535 -1527
  22. package/web-components-bundle/{react-toastify.esm-CrTD7cpE.js → react-toastify.esm-DnABvuky.js} +21 -21
  23. package/web-components-bundle/toast-config/index.js +2 -2
  24. package/web-components-bundle/toast-config-notification/index.js +2 -2
  25. package/web-components-bundle/index-Bk42Mf7H.js +0 -3206
  26. package/web-components-bundle/useTranslation-Xt9Mgi4Q.js +0 -337
@@ -1,337 +0,0 @@
1
- import { r as d } from "./react-to-web-component-CXwKHjZr.js";
2
- function h(n) {
3
- "@babel/helpers - typeof";
4
- return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, h(n);
9
- }
10
- function $(n, e) {
11
- if (!(n instanceof e))
12
- throw new TypeError("Cannot call a class as a function");
13
- }
14
- function q(n, e) {
15
- if (h(n) != "object" || !n)
16
- return n;
17
- var t = n[Symbol.toPrimitive];
18
- if (t !== void 0) {
19
- var r = t.call(n, e);
20
- if (h(r) != "object")
21
- return r;
22
- throw new TypeError("@@toPrimitive must return a primitive value.");
23
- }
24
- return (e === "string" ? String : Number)(n);
25
- }
26
- function R(n) {
27
- var e = q(n, "string");
28
- return h(e) == "symbol" ? e : e + "";
29
- }
30
- function A(n, e) {
31
- for (var t = 0; t < e.length; t++) {
32
- var r = e[t];
33
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, R(r.key), r);
34
- }
35
- }
36
- function J(n, e, t) {
37
- return e && A(n.prototype, e), t && A(n, t), Object.defineProperty(n, "prototype", {
38
- writable: !1
39
- }), n;
40
- }
41
- function B(n, e, t) {
42
- return (e = R(e)) in n ? Object.defineProperty(n, e, {
43
- value: t,
44
- enumerable: !0,
45
- configurable: !0,
46
- writable: !0
47
- }) : n[e] = t, n;
48
- }
49
- function Y(n) {
50
- if (Array.isArray(n))
51
- return n;
52
- }
53
- function k(n, e) {
54
- (e == null || e > n.length) && (e = n.length);
55
- for (var t = 0, r = Array(e); t < e; t++)
56
- r[t] = n[t];
57
- return r;
58
- }
59
- function G(n, e) {
60
- if (n) {
61
- if (typeof n == "string")
62
- return k(n, e);
63
- var t = {}.toString.call(n).slice(8, -1);
64
- return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? k(n, e) : void 0;
65
- }
66
- }
67
- function Q() {
68
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
70
- }
71
- function X() {
72
- if (console && console.warn) {
73
- for (var n, e = arguments.length, t = new Array(e), r = 0; r < e; r++)
74
- t[r] = arguments[r];
75
- typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (n = console).warn.apply(n, t);
76
- }
77
- }
78
- var _ = {};
79
- function N() {
80
- for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
81
- e[t] = arguments[t];
82
- typeof e[0] == "string" && _[e[0]] || (typeof e[0] == "string" && (_[e[0]] = /* @__PURE__ */ new Date()), X.apply(void 0, e));
83
- }
84
- var K = function(e, t) {
85
- return function() {
86
- if (e.isInitialized)
87
- t();
88
- else {
89
- var r = function o() {
90
- setTimeout(function() {
91
- e.off("initialized", o);
92
- }, 0), t();
93
- };
94
- e.on("initialized", r);
95
- }
96
- };
97
- };
98
- function F(n, e, t) {
99
- n.loadNamespaces(e, K(n, t));
100
- }
101
- function H(n, e, t, r) {
102
- typeof t == "string" && (t = [t]), t.forEach(function(o) {
103
- n.options.ns.indexOf(o) < 0 && n.options.ns.push(o);
104
- }), n.loadLanguages(e, K(n, r));
105
- }
106
- function Z(n, e) {
107
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = e.languages[0], o = e.options ? e.options.fallbackLng : !1, c = e.languages[e.languages.length - 1];
108
- if (r.toLowerCase() === "cimode")
109
- return !0;
110
- var a = function(f, u) {
111
- var m = e.services.backendConnector.state["".concat(f, "|").concat(u)];
112
- return m === -1 || m === 2;
113
- };
114
- return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !a(e.isLanguageChangingTo, n) ? !1 : !!(e.hasResourceBundle(r, n) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || a(r, n) && (!o || a(c, n)));
115
- }
116
- function V(n, e) {
117
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
118
- if (!e.languages || !e.languages.length)
119
- return N("i18n.languages were undefined or empty", e.languages), !0;
120
- var r = e.options.ignoreJSONStructure !== void 0;
121
- return r ? e.hasLoadedNamespace(n, {
122
- lng: t.lng,
123
- precheck: function(c, a) {
124
- if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && c.services.backendConnector.backend && c.isLanguageChangingTo && !a(c.isLanguageChangingTo, n))
125
- return !1;
126
- }
127
- }) : Z(n, e, t);
128
- }
129
- var ee = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ne = {
130
- "&amp;": "&",
131
- "&#38;": "&",
132
- "&lt;": "<",
133
- "&#60;": "<",
134
- "&gt;": ">",
135
- "&#62;": ">",
136
- "&apos;": "'",
137
- "&#39;": "'",
138
- "&quot;": '"',
139
- "&#34;": '"',
140
- "&nbsp;": " ",
141
- "&#160;": " ",
142
- "&copy;": "©",
143
- "&#169;": "©",
144
- "&reg;": "®",
145
- "&#174;": "®",
146
- "&hellip;": "…",
147
- "&#8230;": "…",
148
- "&#x2F;": "/",
149
- "&#47;": "/"
150
- }, te = function(e) {
151
- return ne[e];
152
- }, re = function(e) {
153
- return e.replace(ee, te);
154
- };
155
- function U(n, e) {
156
- var t = Object.keys(n);
157
- if (Object.getOwnPropertySymbols) {
158
- var r = Object.getOwnPropertySymbols(n);
159
- e && (r = r.filter(function(o) {
160
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
161
- })), t.push.apply(t, r);
162
- }
163
- return t;
164
- }
165
- function z(n) {
166
- for (var e = 1; e < arguments.length; e++) {
167
- var t = arguments[e] != null ? arguments[e] : {};
168
- e % 2 ? U(Object(t), !0).forEach(function(r) {
169
- B(n, r, t[r]);
170
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : U(Object(t)).forEach(function(r) {
171
- Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
172
- });
173
- }
174
- return n;
175
- }
176
- var I = {
177
- bindI18n: "languageChanged",
178
- bindI18nStore: "",
179
- transEmptyNodeValue: "",
180
- transSupportBasicHtmlNodes: !0,
181
- transWrapTextNodes: "",
182
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
183
- useSuspense: !0,
184
- unescape: re
185
- };
186
- function pe() {
187
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
188
- I = z(z({}, I), n);
189
- }
190
- function ae() {
191
- return I;
192
- }
193
- var M;
194
- function de(n) {
195
- M = n;
196
- }
197
- function oe() {
198
- return M;
199
- }
200
- var ie = d.createContext(), ue = function() {
201
- function n() {
202
- $(this, n), this.usedNamespaces = {};
203
- }
204
- return J(n, [{
205
- key: "addUsedNamespaces",
206
- value: function(t) {
207
- var r = this;
208
- t.forEach(function(o) {
209
- r.usedNamespaces[o] || (r.usedNamespaces[o] = !0);
210
- });
211
- }
212
- }, {
213
- key: "getUsedNamespaces",
214
- value: function() {
215
- return Object.keys(this.usedNamespaces);
216
- }
217
- }]), n;
218
- }();
219
- function se(n, e) {
220
- var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
221
- if (t != null) {
222
- var r, o, c, a, g = [], f = !0, u = !1;
223
- try {
224
- if (c = (t = t.call(n)).next, e !== 0)
225
- for (; !(f = (r = c.call(t)).done) && (g.push(r.value), g.length !== e); f = !0)
226
- ;
227
- } catch (m) {
228
- u = !0, o = m;
229
- } finally {
230
- try {
231
- if (!f && t.return != null && (a = t.return(), Object(a) !== a))
232
- return;
233
- } finally {
234
- if (u)
235
- throw o;
236
- }
237
- }
238
- return g;
239
- }
240
- }
241
- function ce(n, e) {
242
- return Y(n) || se(n, e) || G(n, e) || Q();
243
- }
244
- function D(n, e) {
245
- var t = Object.keys(n);
246
- if (Object.getOwnPropertySymbols) {
247
- var r = Object.getOwnPropertySymbols(n);
248
- e && (r = r.filter(function(o) {
249
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
250
- })), t.push.apply(t, r);
251
- }
252
- return t;
253
- }
254
- function j(n) {
255
- for (var e = 1; e < arguments.length; e++) {
256
- var t = arguments[e] != null ? arguments[e] : {};
257
- e % 2 ? D(Object(t), !0).forEach(function(r) {
258
- B(n, r, t[r]);
259
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : D(Object(t)).forEach(function(r) {
260
- Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
261
- });
262
- }
263
- return n;
264
- }
265
- var fe = function(e, t) {
266
- var r = d.useRef();
267
- return d.useEffect(function() {
268
- r.current = e;
269
- }, [e, t]), r.current;
270
- };
271
- function ge(n) {
272
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, r = d.useContext(ie) || {}, o = r.i18n, c = r.defaultNS, a = t || o || oe();
273
- if (a && !a.reportNamespaces && (a.reportNamespaces = new ue()), !a) {
274
- N("You will need to pass in an i18next instance by using initReactI18next");
275
- var g = function(p, s) {
276
- return typeof s == "string" ? s : s && h(s) === "object" && typeof s.defaultValue == "string" ? s.defaultValue : Array.isArray(p) ? p[p.length - 1] : p;
277
- }, f = [g, {}, !1];
278
- return f.t = g, f.i18n = {}, f.ready = !1, f;
279
- }
280
- a.options.react && a.options.react.wait !== void 0 && N("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
281
- var u = j(j(j({}, ae()), a.options.react), e), m = u.useSuspense, C = u.keyPrefix, i = c || a.options && a.options.defaultNS;
282
- i = typeof i == "string" ? [i] : i || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(i);
283
- var b = (a.isInitialized || a.initializedStoreOnce) && i.every(function(l) {
284
- return V(l, a, u);
285
- });
286
- function v() {
287
- return a.getFixedT(e.lng || null, u.nsMode === "fallback" ? i : i[0], C);
288
- }
289
- var W = d.useState(v), x = ce(W, 2), E = x[0], O = x[1], w = i.join();
290
- e.lng && (w = "".concat(e.lng).concat(w));
291
- var T = fe(w), y = d.useRef(!0);
292
- d.useEffect(function() {
293
- var l = u.bindI18n, p = u.bindI18nStore;
294
- y.current = !0, !b && !m && (e.lng ? H(a, e.lng, i, function() {
295
- y.current && O(v);
296
- }) : F(a, i, function() {
297
- y.current && O(v);
298
- })), b && T && T !== w && y.current && O(v);
299
- function s() {
300
- y.current && O(v);
301
- }
302
- return l && a && a.on(l, s), p && a && a.store.on(p, s), function() {
303
- y.current = !1, l && a && l.split(" ").forEach(function(P) {
304
- return a.off(P, s);
305
- }), p && a && p.split(" ").forEach(function(P) {
306
- return a.store.off(P, s);
307
- });
308
- };
309
- }, [a, w]);
310
- var L = d.useRef(!0);
311
- d.useEffect(function() {
312
- y.current && !L.current && O(v), L.current = !1;
313
- }, [a, C]);
314
- var S = [E, a, b];
315
- if (S.t = E, S.i18n = a, S.ready = b, b || !b && !m)
316
- return S;
317
- throw new Promise(function(l) {
318
- e.lng ? H(a, e.lng, i, function() {
319
- return l();
320
- }) : F(a, i, function() {
321
- return l();
322
- });
323
- });
324
- }
325
- export {
326
- ie as I,
327
- h as _,
328
- Y as a,
329
- G as b,
330
- Q as c,
331
- J as d,
332
- B as e,
333
- $ as f,
334
- de as g,
335
- pe as s,
336
- ge as u
337
- };