x25 17.1.2 → 17.1.5

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.
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { RouteType } from "./types";
3
- declare const createWrap: (route: RouteType, props: any) => JSX.Element;
4
- export default createWrap;
3
+ declare type InitModuleProps = {
4
+ route: RouteType;
5
+ props: any;
6
+ };
7
+ declare const InitModule: ({ route, props }: InitModuleProps) => JSX.Element;
8
+ export default InitModule;
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __assign = (this && this.__assign) || function () {
18
3
  __assign = Object.assign || function(t) {
19
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -45,89 +30,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
45
30
  return result;
46
31
  };
47
32
  Object.defineProperty(exports, "__esModule", { value: true });
48
- var redux_injector_1 = require("redux-injector");
49
33
  var react_redux_1 = require("react-redux");
50
34
  var React = __importStar(require("react"));
51
- var util_1 = require("../Modal/util");
52
35
  var utility_1 = require("../utility");
53
- var injectPaginator = function (_a) {
54
- var key = _a.key, itemsReducer = _a.itemsReducer, pagesReducer = _a.pagesReducer;
55
- (0, redux_injector_1.injectReducer)("entities.".concat(key), itemsReducer);
56
- (0, redux_injector_1.injectReducer)("paginations.".concat(key), pagesReducer);
57
- };
58
36
  var Loading_1 = require("../Messages/Loading");
59
37
  var module_1 = require("../reducer/module");
60
- var mapStateToProps = function (state, _a) {
61
- var module = _a.route.default.module;
62
- return ({
63
- ready: (0, module_1.getIsModuleReady)(state, module),
64
- });
65
- }, mapDispatchToProps = function (dispatch, _a) {
66
- var route = _a.route;
67
- return ({
68
- initModule: function () {
69
- var _a = route.default, reducers = _a.reducers, modals = _a.modals, paginators = _a.paginators, module = _a.module;
70
- (0, utility_1.delay)().then(function () {
71
- if (reducers) {
72
- if (Array.isArray(reducers)) {
73
- for (var _i = 0, reducers_1 = reducers; _i < reducers_1.length; _i++) {
74
- var _a = reducers_1[_i], key = _a.key, func = _a.func;
75
- (0, redux_injector_1.injectReducer)(key, func);
76
- }
77
- }
78
- else {
79
- var key = reducers.key, func = reducers.func;
80
- (0, redux_injector_1.injectReducer)(key, func);
81
- }
82
- }
83
- }).
84
- then(function () {
85
- if (modals) {
86
- (0, util_1.injectModals)(modals);
87
- }
88
- }).
89
- then(function () {
90
- if (paginators) {
91
- if (Array.isArray(paginators)) {
92
- for (var _i = 0, paginators_1 = paginators; _i < paginators_1.length; _i++) {
93
- var paginator = paginators_1[_i];
94
- injectPaginator(paginator);
95
- }
96
- }
97
- else {
98
- injectPaginator(paginators);
99
- }
100
- }
101
- }).
102
- then(function () {
38
+ var util_1 = require("./util");
39
+ var InitModule = function (_a) {
40
+ var route = _a.route, props = _a.props;
41
+ var module = route.default.module, ready = (0, react_redux_1.useSelector)(function (state) { return (0, module_1.getIsModuleReady)(state, module); }), dispatch = (0, react_redux_1.useDispatch)(), Component = route.default.Component;
42
+ React.useEffect(function () {
43
+ if (!ready) {
44
+ (0, util_1.initModule)(route.default, function () {
103
45
  dispatch((0, module_1.moduleIsReadyAction)(module));
104
46
  });
105
- },
106
- });
107
- };
108
- var InitModule = /** @class */ (function (_super) {
109
- __extends(InitModule, _super);
110
- function InitModule() {
111
- return _super !== null && _super.apply(this, arguments) || this;
112
- }
113
- InitModule.prototype.componentDidMount = function () {
114
- if (!this.props.ready) {
115
- this.props.initModule();
116
47
  }
117
- };
118
- InitModule.prototype.shouldComponentUpdate = function () {
119
- return true;
120
- };
121
- InitModule.prototype.render = function () {
122
- var _a = this.props, route = _a.route, ready = _a.ready, props = _a.props, Component = route.default.Component;
123
- if (ready) {
124
- return React.createElement(Component, __assign({}, props));
125
- }
126
- return (React.createElement("div", { className: "mt-3" },
127
- React.createElement(Loading_1.LoadingMessage, { message: utility_1.words.PleaseWait })));
128
- };
129
- return InitModule;
130
- }(React.Component));
131
- var WrapInitModule = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(InitModule), createWrap = function (route, props) { return React.createElement(WrapInitModule, { props: props, route: route }); };
132
- exports.default = createWrap;
48
+ }, [ready]);
49
+ if (ready) {
50
+ return React.createElement(Component, __assign({}, props));
51
+ }
52
+ return (React.createElement("div", { className: "mt-3" },
53
+ React.createElement(Loading_1.LoadingMessage, { message: utility_1.words.PleaseWait })));
54
+ };
55
+ exports.default = InitModule;
133
56
  //# sourceMappingURL=InitModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InitModule.js","sourceRoot":"","sources":["../../src/Async/InitModule.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,iDAA+C;AAC/C,2CAAsC;AACtC,2CAA+B;AAC/B,sCAA6C;AAC7C,sCAA0C;AAa1C,IAAM,eAAe,GAAG,UAAC,EAIT;QAHd,GAAG,SAAA,EACH,YAAY,kBAAA,EACZ,YAAY,kBAAA;IAEZ,IAAA,8BAAa,EAAC,mBAAY,GAAG,CAAE,EAAE,YAAY,CAAC,CAAC;IAC/C,IAAA,8BAAa,EAAC,sBAAe,GAAG,CAAE,EAAE,YAAY,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,+CAAqD;AACrD,4CAA0E;AAG1E,IACE,eAAe,GAAG,UAAC,KAAY,EAAE,EAMtB;QAHL,MAAM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,+CAAqD;AACrD,4CAA0E;AAE1E,+BAAoC;AAQpC,IAAM,UAAU,GAAG,UAAC,EAAkC;QAAhC,KAAK,WAAA,EAAE,KAAK,WAAA;IAEhB,IAAA,MAAM,GAAO,KAAK,eAAZ,EACpB,KAAK,GAAG,IAAA,yBAAW,EAAC,UAAC,KAAW,IAAK,OAAA,IAAA,yBAAgB,EAAC,KAAK,EAAE,MAAM,CAAC,EAA/B,CAA+B,CAAC,EACrE,QAAQ,GAAG,IAAA,yBAAW,GAAE,EACtB,SAAS,GAAK,KAAK,CAAC,OAAO,UAAlB,CAAmB;IAEhC,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,CAAC,KAAK,EAAE;YACV,IAAA,iBAAU,EAAC,KAAK,CAAC,OAAO,EAAE;gBACxB,QAAQ,CAAC,IAAA,4BAAmB,EAAC,MAAM,CAAC,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,IAAI,KAAK,EAAE;QACT,OAAO,oBAAC,SAAS,eAAK,KAAK,EAAI,CAAC;KACjC;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,MAAM;QACnB,oBAAC,wBAAc,IAAC,OAAO,EAAE,eAAK,CAAC,UAAU,GAAI,CACzC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Reducers } from "./types";
2
+ export declare const has: (obj: any, key: string) => boolean, get: (obj: any, key: string, defaultValue: any) => any, set: (obj: any, keys: any, val: any) => void;
3
+ export declare class CombineReducersError extends Error {
4
+ reducers: Reducers;
5
+ constructor(message: string, reducers: Reducers);
6
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* eslint-disable prefer-object-has-own */
3
+ /* eslint-disable no-undefined */
4
+ var __extends = (this && this.__extends) || (function () {
5
+ var extendStatics = function (d, b) {
6
+ extendStatics = Object.setPrototypeOf ||
7
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9
+ return extendStatics(d, b);
10
+ };
11
+ return function (d, b) {
12
+ if (typeof b !== "function" && b !== null)
13
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14
+ extendStatics(d, b);
15
+ function __() { this.constructor = d; }
16
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17
+ };
18
+ })();
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.CombineReducersError = exports.set = exports.get = exports.has = void 0;
21
+ var has = function (obj, key) {
22
+ var keyParts = key.split(".");
23
+ return Boolean(obj) && (keyParts.length > 1
24
+ ? (0, exports.has)(obj[key.split(".")[0]], keyParts.slice(1).join("."))
25
+ : Object.hasOwnProperty.call(obj, key));
26
+ }, get = function (obj, key, defaultValue) {
27
+ var theObject = obj;
28
+ var theKey = typeof key === "string" && String(key).includes(".") ? key.split(".") : key, getKey = function (current) {
29
+ if (typeof theObject !== "object") {
30
+ return undefined;
31
+ }
32
+ return theObject[theKey[current]];
33
+ };
34
+ for (var current = 0; current < theKey.length; current += 1) {
35
+ theObject = theObject ? getKey(current) : undefined;
36
+ }
37
+ return theObject === undefined ? defaultValue : theObject;
38
+ },
39
+ /* eslint-disable */
40
+ set = function (obj, keys, val) {
41
+ keys.split && (keys = keys.split('.'));
42
+ var i = 0, l = keys.length, t = obj, x, k;
43
+ while (i < l) {
44
+ k = keys[i++];
45
+ if (k === '__proto__' || k === 'constructor' || k === 'prototype')
46
+ break;
47
+ t = t[k] = (i === l) ? val : (typeof (x = t[k]) === typeof (keys)) ? x : (keys[i] * 0 !== 0 || !!~('' + keys[i]).indexOf('.')) ? {} : [];
48
+ }
49
+ };
50
+ exports.has = has, exports.get = get,
51
+ /* eslint-disable */
52
+ exports.set = set;
53
+ var CombineReducersError = /** @class */ (function (_super) {
54
+ __extends(CombineReducersError, _super);
55
+ function CombineReducersError(message, reducers) {
56
+ var _this = _super.call(this, message) || this;
57
+ _this.name = "CombineReducersError";
58
+ _this.reducers = reducers;
59
+ return _this;
60
+ }
61
+ return CombineReducersError;
62
+ }(Error));
63
+ exports.CombineReducersError = CombineReducersError;
64
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/Async/helpers.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,iCAAiC;;;;;;;;;;;;;;;;;;AAI1B,IACL,GAAG,GAAG,UAAC,GAAS,EAAE,GAAY;IAC5B,IAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CACrB,QAAQ,CAAC,MAAM,GAAG,CAAC;QACjB,CAAC,CAAC,IAAA,WAAG,EAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1D,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CACzC,CAAC;AACJ,CAAC,EACD,GAAG,GAAG,UAAC,GAAQ,EAAE,GAAW,EAAE,YAAiB;IAG7C,IAAI,SAAS,GAAG,GAAG,CAAC;IAEpB,IACE,MAAM,GAAG,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EACpF,MAAM,GAAG,UAAC,OAAe;QACvB,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;YACjC,OAAO,SAAS,CAAC;SAClB;QAED,OAAO,SAAS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AAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC/H;AACF,CAAC,CAAA;AAxCC,QAAA,GAAG,QASH,QAAA,GAAG;AAsBH,oBAAoB;AACpB,QAAA,GAAG,OAQJ;AAGD;IAA0C,wCAAK;IAG7C,8BAAa,OAAgB,EAAE,QAAmB;QAAlD,YACE,kBAAM,OAAO,CAAC,SAGf;QAFC,KAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC3B,CAAC;IACH,2BAAC;AAAD,CAAC,AARD,CAA0C,KAAK,GAQ9C;AARY,oDAAoB"}
package/Async/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import Loadable from "react-loadable";
2
2
  import * as React from "react";
3
3
  export declare let ErrorBoundary: () => JSX.Element;
4
- export declare const setErrorBoundary: (theError: any) => void, createAsyncRoute: (loader: any) => React.ComponentType<any> & Loadable.LoadableComponent;
4
+ export declare const setErrorBoundary: (theError: any) => void, createAsyncRoute: (loader: any) => React.ComponentType<unknown> & Loadable.LoadableComponent;
package/Async/types.d.ts CHANGED
@@ -1,24 +1,32 @@
1
1
  import type { State } from "src/types";
2
2
  import type { ModalsTypes } from "../Modal/types";
3
- declare type Reducer = (state: State, action: any) => void;
4
- declare type ReducerOptionsType = {
3
+ export declare type Reducer = (state: State, action: any) => void;
4
+ export declare type Reducers = {
5
+ [key: string]: Reducer;
6
+ };
7
+ export declare type ReducerOptionsType = {
5
8
  key: string;
6
9
  func: Reducer;
7
10
  };
8
- declare type PaginatorType = {
11
+ export declare type PaginatorType = {
9
12
  key: string;
10
13
  itemsReducer: Reducer;
11
14
  pagesReducer: Reducer;
12
15
  };
13
- declare type ReducersTypes = Array<ReducerOptionsType> | ReducerOptionsType;
14
- declare type PaginatorsTypes = Array<PaginatorType> | PaginatorType;
15
- declare type RouteType = {
16
- default: {
17
- module: string;
18
- Component: any;
19
- reducers: ReducersTypes;
20
- modals: ModalsTypes;
21
- paginators: PaginatorsTypes;
22
- };
16
+ export declare type ReducersTypes = Array<ReducerOptionsType> | ReducerOptionsType;
17
+ export declare type PaginatorsTypes = Array<PaginatorType> | PaginatorType;
18
+ export declare type ModuleParts = {
19
+ module: string;
20
+ Component: any;
21
+ reducers: ReducersTypes;
22
+ modals: ModalsTypes;
23
+ paginators: PaginatorsTypes;
24
+ };
25
+ export declare type RouteType = {
26
+ default: ModuleParts;
27
+ };
28
+ export declare type InitModule = (module: ModuleParts, moduleIsLoadedCb: () => any) => any;
29
+ export declare type InjectedStore = {
30
+ injectedReducers: any;
31
+ replaceReducer?: any;
23
32
  };
24
- export type { ReducersTypes, PaginatorsTypes, PaginatorType, RouteType };
@@ -0,0 +1,2 @@
1
+ import { InitModule, InjectedStore, Reducers } from "./types";
2
+ export declare const createInjectStore: (initialReducers: Reducers, ...args: any[]) => InjectedStore, initModule: InitModule;
package/Async/util.js ADDED
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
4
+ if (ar || !(i in from)) {
5
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6
+ ar[i] = from[i];
7
+ }
8
+ }
9
+ return to.concat(ar || Array.prototype.slice.call(from));
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.initModule = exports.createInjectStore = void 0;
13
+ /* eslint-disable no-prototype-builtins */
14
+ var redux_1 = require("redux");
15
+ var util_1 = require("../Modal/util");
16
+ var helpers_1 = require("./helpers");
17
+ var store = {
18
+ injectedReducers: {},
19
+ }, combine = redux_1.combineReducers;
20
+ var combineReducersRecurse = function (reducers) {
21
+ // If this is a leaf or already combined.
22
+ if (typeof reducers === "function") {
23
+ return reducers;
24
+ }
25
+ // If this is an object of functions, combine reducers.
26
+ if (typeof reducers === "object") {
27
+ var combinedReducers = {};
28
+ for (var _i = 0, _a = Object.keys(reducers); _i < _a.length; _i++) {
29
+ var key = _a[_i];
30
+ combinedReducers[key] = combineReducersRecurse(reducers[key]);
31
+ }
32
+ return combine(combinedReducers);
33
+ }
34
+ // If we get here we have an invalid item in the reducer path.
35
+ throw new helpers_1.CombineReducersError("Invalid item in reducer tree", reducers);
36
+ };
37
+ var createInjectStore = function (initialReducers) {
38
+ var args = [];
39
+ for (var _i = 1; _i < arguments.length; _i++) {
40
+ args[_i - 1] = arguments[_i];
41
+ }
42
+ // If last item is an object, it is overrides.
43
+ if (typeof args[args.length - 1] === "object") {
44
+ var overrides = args.pop(), overridesExists = (overrides.hasOwnProperty("combineReducers") &&
45
+ typeof overrides.combineReducers === "function");
46
+ if (overridesExists) {
47
+ combine = overrides.combineReducers;
48
+ }
49
+ }
50
+ store = redux_1.createStore.apply(void 0, __spreadArray([combineReducersRecurse(initialReducers)], args, false));
51
+ store.injectedReducers = initialReducers;
52
+ return store;
53
+ }, initModule = function (_a, moduleIsLoadedCb) {
54
+ var reducers = _a.reducers, modals = _a.modals, paginators = _a.paginators;
55
+ var injectReducer = function (key, reducer, force) {
56
+ if (force === void 0) { force = false; }
57
+ if ((0, helpers_1.has)(store.injectedReducers, key) || force) {
58
+ return;
59
+ }
60
+ (0, helpers_1.set)(store.injectedReducers, key, reducer);
61
+ store.replaceReducer(combineReducersRecurse(store.injectedReducers));
62
+ }, injectReducers = function () {
63
+ if (reducers) {
64
+ if (Array.isArray(reducers)) {
65
+ for (var _i = 0, reducers_1 = reducers; _i < reducers_1.length; _i++) {
66
+ var _a = reducers_1[_i], key = _a.key, func = _a.func;
67
+ injectReducer(key, func);
68
+ }
69
+ }
70
+ else {
71
+ var key = reducers.key, func = reducers.func;
72
+ injectReducer(key, func);
73
+ }
74
+ }
75
+ }, injectModals = function () {
76
+ if (modals) {
77
+ (0, util_1.injectModals)(modals);
78
+ }
79
+ }, injectPaginators = function () {
80
+ var injectPaginator = function (_a) {
81
+ var key = _a.key, itemsReducer = _a.itemsReducer, pagesReducer = _a.pagesReducer;
82
+ injectReducer("entities.".concat(key), itemsReducer);
83
+ injectReducer("paginations.".concat(key), pagesReducer);
84
+ };
85
+ if (paginators) {
86
+ if (Array.isArray(paginators)) {
87
+ for (var _i = 0, paginators_1 = paginators; _i < paginators_1.length; _i++) {
88
+ var paginator = paginators_1[_i];
89
+ injectPaginator(paginator);
90
+ }
91
+ }
92
+ else {
93
+ injectPaginator(paginators);
94
+ }
95
+ }
96
+ };
97
+ injectReducers();
98
+ injectModals();
99
+ injectPaginators();
100
+ moduleIsLoadedCb();
101
+ };
102
+ exports.createInjectStore = createInjectStore, exports.initModule = initModule;
103
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/Async/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA0C;AAC1C,+BAAqD;AACrD,sCAAoE;AACpE,qCAA2D;AAG3D,IACE,KAAK,GAAmB;IACtB,gBAAgB,EAAE,EAAE;CACrB,EACD,OAAO,GAAG,uBAAe,CAAC;AAE5B,IACE,sBAAsB,GAAG,UAAC,QAAc;IACxC,yCAAyC;IACvC,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAClC,OAAO,QAAQ,CAAC;KACjB;IAED,uDAAuD;IACvD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,IAAM,gBAAgB,GAAc,EAAE,CAAC;QAEvC,KAAkB,UAAqB,EAArB,KAAA,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAArB,cAAqB,EAArB,IAAqB,EAAE;YAApC,IAAM,GAAG,SAAA;YACZ,gBAAgB,CAAC,GAAG,CAAC,GAAG,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;SAC/D;QACD,OAAO,OAAO,CAAC,gBAAgB,CAAC,CAAC;KAClC;IAED,8DAA8D;IAC9D,MAAM,IAAI,8BAAoB,CAAC,8B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3
- readonly type: string;
4
3
  readonly id: string;
5
4
  readonly tabIndex?: string;
6
- readonly input: any;
7
- readonly label: string;
5
+ readonly input?: any;
6
+ readonly label?: string;
8
7
  readonly autoFocus?: boolean;
9
8
  readonly left?: string;
10
9
  readonly right?: string;
11
- readonly meta: {
10
+ readonly meta?: {
12
11
  touched: boolean;
13
12
  error?: any;
14
13
  submitting: boolean;
@@ -56,7 +56,7 @@ var InfoIcon = /** @class */ (function (_super) {
56
56
  return InfoIcon;
57
57
  }(react_1.default.Component));
58
58
  var CaptchaBox = function (props) {
59
- var autoFocus = props.autoFocus, id = props.id, input = props.input, tabIndex = props.tabIndex, label = props.label, left = props.left, right = props.right, _a = props.meta, touched = _a.touched, error = _a.error, submitting = _a.submitting, type = props.type;
59
+ var autoFocus = props.autoFocus, id = props.id, input = props.input, tabIndex = props.tabIndex, label = props.label, left = props.left, right = props.right, meta = props.meta;
60
60
  if (typeof id === "undefined" || id === "") {
61
61
  return null;
62
62
  }
@@ -69,9 +69,9 @@ var CaptchaBox = function (props) {
69
69
  react_1.default.createElement("div", { className: "text-center my-1" },
70
70
  react_1.default.createElement("img", { alt: "CaptchaBox", src: "/captcha/".concat(id, ".png") }))),
71
71
  react_1.default.createElement("input", __assign({}, input, { "aria-label": label, autoFocus: autoFocus, className: (0, classnames_1.default)("form-control", {
72
- "is-invalid": touched && error,
73
- }), disabled: submitting, id: input.name, placeholder: utility_1.words.CaptchaTypeNumbers, tabIndex: tabIndex, type: type })),
74
- react_1.default.createElement("div", { className: "invalid-feedback" }, touched && error ? (react_1.default.createElement("span", null, error)) : null))));
72
+ "is-invalid": (meta === null || meta === void 0 ? void 0 : meta.touched) && (meta === null || meta === void 0 ? void 0 : meta.error),
73
+ }), disabled: meta === null || meta === void 0 ? void 0 : meta.submitting, id: input.name, placeholder: utility_1.words.CaptchaTypeNumbers, tabIndex: tabIndex })),
74
+ react_1.default.createElement("div", { className: "invalid-feedback" }, (meta === null || meta === void 0 ? void 0 : meta.touched) && (meta === null || meta === void 0 ? void 0 : meta.error) ? (react_1.default.createElement("span", null, meta === null || meta === void 0 ? void 0 : meta.error)) : null))));
75
75
  };
76
76
  exports.CaptchaBox = CaptchaBox;
77
77
  //# sourceMappingURL=CaptchaBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaptchaBox.js","sourceRoot":"","sources":["../../src/Inputs/CaptchaBox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,gDAA0B;AAC1B,yCAAqC;AACrC,0DAAoC;AACpC,sCAAmC;AAEnC;IAAuB,4BAAwC;IAI7D,kBAAa,KAAW;QAAxB,YACE,kBAAM,KAAK,CAAC,SAUb;QATC,KAAI,CAAC,KAAK,GAAG;YACX,WAAW,EAAE,KAAK;SACnB,CAAC;QAEF,KAAI,CAAC,MAAM,GAAG;YACZ,KAAI,CAAC,QAAQ,CAAC,UAAC,SAA6B,IAAK,OAAA,CAAC;gBAChD,WAAW,EAAE,CAAC,SAAS,CAAC,WAAW;aACpC,CAAC,EAF+C,CAE/C,CAAC,CAAC;QACN,CAAC,CAAC;;IACJ,CAAC;IAED,yBAAM,GAAN;QACE,OAAO,CACL,uCAAK,SAAS,EAAC,sBAAsB;YACnC,qCAAG,SAAS,EAAC,8CAA8C,EAAC,EAAE,EAAC,gBAAgB,GAAG;YAClF,8BAAC,oBAAO,IACN,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EAC9B,SAAS,EAAC,OAAO,EACjB,MAAM,EAAC,gBAAgB,EACvB,MAAM,EAAE,IAAI,CAAC,MAAM,IAClB,eAAK,CAAC,kBAAkB,CACjB,CACN,CACP,CAAC;IACJ,CAAC;IAEH,eAAC;AAAD,CAAC,AAhCD,CAAuB,eAAK,CAAC,SAAS,GAgCrC;AAEM,IAAM,UAAU,GAAG,UAAC,KAAuB;IAE9C,IAAA,SAAS,GAaP,KAAK,UAbE,EACT,EAAE,GAYA,KAAK,GAZL,EACF,KAAK,GAWH,KAA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K,SAAS,EAAC,kBAAkB,IAC9B,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,MAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAA,CAAC,CAAC,CAAC,CAC9B,4CACG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CACP,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACF,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,UAAU,cA2CrB"}
package/actions.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { Action } from "src/types";
3
3
  declare type NotificationOptions = {
4
- title: string;
5
4
  seconds?: number;
6
5
  persistent?: boolean;
7
6
  position?: "tr" | "tl" | "tc" | "br" | "bl" | "bc";
package/actions.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sGAA6D;AAa7D,IACE,gBAAgB,GAAG,CAAC,EACpB,kBAAkB,GAAwB,UAAC,KAAK,IAAK,OAAA,UAAC,KAAK,EAAE,OAAO,IAAK,OAAA,0CAAa,CAAC,IAAI,YACzF,KAAK,OAAA,EACL,QAAQ,EAAM,IAAI,EAClB,WAAW,EAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAC5F,OAAO,GACT,KAAK,CAAC,EALgE,CAKhE,EAL4C,CAK5C,CAAC;AAEL,IAIL,kBAAkB,GAAG,UAAC,QAAgB,IAAa,OAAA,CAAC;IAClD,IAAI,EAAM,qBAAqB;IAC/B,OAAO,EAAG,QAAQ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B,CAAC,EAHiD,CAGjD;AAEF,UAAU;AAEV,WAAW,GAAG,UAAC,OAGhB,IAAa,OAAA,CAAC;IACX,IAAI,EAAE,cAAc;IACpB,OAAO,SAAA;CACR,CAAC,EAHU,CAGV,EACF,WAAW,GAAG,UAAC,OAAe,IAAa,OAAA,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,OAAO,SAAA;CACR,CAAC,EAHyC,CAGzC,CAAC;AApBH,QAAA,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC,EACtC,QAAA,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,EAC7C,QAAA,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,EACzC,QAAA,kBAAkB;AAKlB,UAAU;AAEV,QAAA,WAAW,gBAOX,QAAA,WAAW,eAGR;AAEL,kDAAgC;AAChC,oDAAkC"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.1.2",
2
+ "version": "17.1.5",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "types": "./dist/index.d.ts",
package/style/index.css CHANGED
@@ -1 +1 @@
1
- .delay-input{position:relative}.delay-input input{padding-right:27px}.delay-input .loading-spinner{position:absolute;right:4px;top:5px;transition:all .2s ease-in-out}.digits-3{width:52px !important}.text-fancy,.fancy-text,.fancy-text-sm{-webkit-user-select:none;box-sizing:border-box;color:#b1b2b3;cursor:default;font-family:"Lucida Grande","Segoe UI",Ubuntu,Cantarell,sans-serif;font-weight:bold;list-style-image:none;list-style-position:outside;list-style-type:none;opacity:1;text-align:center}.text-fancy{margin-top:5px;color:gray;font-size:20px;font-weight:500}.fancy-text{font-size:31px;line-height:34px}.fancy-text-sm{font-size:16px;line-height:23.5px}.min-height-form{min-height:20rem}.min-300{min-width:300px}.min-200{min-width:200px}.min-150{min-width:150px}.min-100{min-width:100px}.min-80{min-width:80px}.min-50{min-width:50px}.width-13rem{max-width:25rem}.navbar .nav-toggler{background:#292b2c}.main{padding:20px}.main .page-header{margin-top:0}@media (min-width: 768px){.main{padding-right:40px;padding-left:40px}}.sidework-logo .first-char{color:#ff007b;font-size:32px;font-weight:500}.sidework-logo .color{color:#ff007b}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.no-hover{text-decoration:none !important}.cursor-pointer{cursor:pointer}.no-wrap{white-space:nowrap}.content{margin-bottom:3rem;margin-top:10px;margin-left:10px}.hr-sm{margin-top:.5rem;margin-bottom:.5rem}.text-fancy,.fancy-text,.fancy-text-sm{-webkit-user-select:none;box-sizing:border-box;color:#b1b2b3;cursor:default;font-family:"Lucida Grande","Segoe UI",Ubuntu,Cantarell,sans-serif;font-weight:bold;list-style-image:none;list-style-position:outside;list-style-type:none;opacity:1;text-align:center}.fancy-text{font-size:31px;line-height:34px}.fancy-text-sm{font-size:16px;line-height:23.5px}.invalid-feedback{display:block !important}.truncate{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 1201px){.brand-wrapper{width:500px}}@media screen and (min-width: 980px) and (max-width: 1200px){.brand-wrapper{width:350px}}@media screen and (min-width: 850px) and (max-width: 979px){.brand-wrapper{width:200px}}@media screen and (min-width: 798px) and (max-width: 849px){.brand-wrapper{width:100px}}@media screen and (min-width: 765px) and (max-width: 797px){.brand-wrapper{width:200px}}@media screen and (min-width: 580px) and (max-width: 764px){.brand-wrapper{width:400px}}@media screen and (min-width: 401px) and (max-width: 579px){.brand-wrapper{width:240px}}@media screen and (min-width: 350px) and (max-width: 400px){.brand-wrapper{width:230px}}@media screen and (max-width: 349px){.brand-wrapper{width:100px}}@media only screen and (min-device-width: 770px){.search-bar{width:220px !important}}::-webkit-input-placeholder{color:#e0e0e0 !important}::-moz-placeholder{color:#e0e0e0 !important}:-ms-input-placeholder{color:#e0e0e0 !important}:-moz-placeholder{color:#e0e0e0 !important}
1
+ .delay-input{position:relative}.delay-input input{padding-right:27px}.delay-input .loading-spinner{position:absolute;right:4px;top:5px;transition:all .2s ease-in-out}.digits-3{width:52px !important}.text-fancy,.fancy-text,.fancy-text-sm{-webkit-user-select:none;box-sizing:border-box;color:#b1b2b3;cursor:default;font-family:"Lucida Grande","Segoe UI",Ubuntu,Cantarell,sans-serif;font-weight:bold;list-style-image:none;list-style-position:outside;list-style-type:none;opacity:1;text-align:center}.text-fancy{margin-top:5px;color:gray;font-size:20px;font-weight:500}.fancy-text{font-size:31px;line-height:34px}.fancy-text-sm{font-size:16px;line-height:23.5px}.navbar .nav-toggler{background:#292b2c}.main{padding:20px}.main .page-header{margin-top:0}@media (min-width: 768px){.main{padding-right:40px;padding-left:40px}}.sidework-logo .first-char{color:#ff007b;font-size:32px;font-weight:500}.sidework-logo .color{color:#ff007b}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.no-hover{text-decoration:none !important}.cursor-pointer{cursor:pointer}.no-wrap{white-space:nowrap}.content{margin-bottom:3rem;margin-top:10px;margin-left:10px}.hr-sm{margin-top:.5rem;margin-bottom:.5rem}.text-fancy,.fancy-text,.fancy-text-sm{-webkit-user-select:none;box-sizing:border-box;color:#b1b2b3;cursor:default;font-family:"Lucida Grande","Segoe UI",Ubuntu,Cantarell,sans-serif;font-weight:bold;list-style-image:none;list-style-position:outside;list-style-type:none;opacity:1;text-align:center}.fancy-text{font-size:31px;line-height:34px}.fancy-text-sm{font-size:16px;line-height:23.5px}.invalid-feedback{display:block !important}.truncate{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 1201px){.brand-wrapper{width:500px}}@media screen and (min-width: 980px) and (max-width: 1200px){.brand-wrapper{width:350px}}@media screen and (min-width: 850px) and (max-width: 979px){.brand-wrapper{width:200px}}@media screen and (min-width: 798px) and (max-width: 849px){.brand-wrapper{width:100px}}@media screen and (min-width: 765px) and (max-width: 797px){.brand-wrapper{width:200px}}@media screen and (min-width: 580px) and (max-width: 764px){.brand-wrapper{width:400px}}@media screen and (min-width: 401px) and (max-width: 579px){.brand-wrapper{width:240px}}@media screen and (min-width: 350px) and (max-width: 400px){.brand-wrapper{width:230px}}@media screen and (max-width: 349px){.brand-wrapper{width:100px}}@media only screen and (min-device-width: 770px){.search-bar{width:220px !important}}::-webkit-input-placeholder{color:#e0e0e0 !important}::-moz-placeholder{color:#e0e0e0 !important}:-ms-input-placeholder{color:#e0e0e0 !important}:-moz-placeholder{color:#e0e0e0 !important}