@egovernments/digit-ui-libraries 1.3.4 → 1.3.8
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/README.md +32 -32
- package/dist/index.js +245 -50
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +245 -50
- package/dist/index.modern.js.map +1 -1
- package/package.json +42 -42
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# digit-ui-libraries
|
|
2
|
-
|
|
3
|
-
> Made with @egovernments/create-ui-library
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install --save @egovernments/digit-ui-libraries
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
import React from "react";
|
|
15
|
-
import initLibraries from "@egovernments/digit-ui-libraries";
|
|
16
|
-
|
|
17
|
-
import defaultConfig from "./config";
|
|
18
|
-
|
|
19
|
-
const App = ({ deltaConfig, stateCode, cityCode, moduleCode }) => {
|
|
20
|
-
initLibraries();
|
|
21
|
-
|
|
22
|
-
const store = eGov.Services.useStore(defaultConfig, { deltaConfig, stateCode, cityCode, moduleCode });
|
|
23
|
-
|
|
24
|
-
return <p>Create React Library Example 😄</p>;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default App;
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## License
|
|
31
|
-
|
|
32
|
-
MIT © [](https://github.com/)
|
|
1
|
+
# digit-ui-libraries
|
|
2
|
+
|
|
3
|
+
> Made with @egovernments/create-ui-library
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @egovernments/digit-ui-libraries
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import React from "react";
|
|
15
|
+
import initLibraries from "@egovernments/digit-ui-libraries";
|
|
16
|
+
|
|
17
|
+
import defaultConfig from "./config";
|
|
18
|
+
|
|
19
|
+
const App = ({ deltaConfig, stateCode, cityCode, moduleCode }) => {
|
|
20
|
+
initLibraries();
|
|
21
|
+
|
|
22
|
+
const store = eGov.Services.useStore(defaultConfig, { deltaConfig, stateCode, cityCode, moduleCode });
|
|
23
|
+
|
|
24
|
+
return <p>Create React Library Example 😄</p>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default App;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT © [](https://github.com/)
|
package/dist/index.js
CHANGED
|
@@ -64,24 +64,28 @@ function _arrayLikeToArray(arr, len) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
67
|
-
var it
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
var it;
|
|
68
|
+
|
|
69
|
+
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
70
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
71
|
+
if (it) o = it;
|
|
72
|
+
var i = 0;
|
|
73
|
+
return function () {
|
|
74
|
+
if (i >= o.length) return {
|
|
75
|
+
done: true
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
done: false,
|
|
79
|
+
value: o[i++]
|
|
80
|
+
};
|
|
80
81
|
};
|
|
81
|
-
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
82
85
|
}
|
|
83
86
|
|
|
84
|
-
|
|
87
|
+
it = o[Symbol.iterator]();
|
|
88
|
+
return it.next.bind(it);
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
var Pages = Object.freeze({
|
|
@@ -220,7 +224,6 @@ var actionHandler = function actionHandler(action, id, fieldList) {
|
|
|
220
224
|
var index = getIndex(id, fieldList);
|
|
221
225
|
|
|
222
226
|
if (!action) {
|
|
223
|
-
console.log("no action found");
|
|
224
227
|
return;
|
|
225
228
|
}
|
|
226
229
|
|
|
@@ -2555,7 +2558,6 @@ var StoreService = {
|
|
|
2555
2558
|
},
|
|
2556
2559
|
defaultData: function (stateCode, moduleCode, language) {
|
|
2557
2560
|
try {
|
|
2558
|
-
console.log(moduleCode, stateCode);
|
|
2559
2561
|
var LocalePromise = LocalizationService.getLocale({
|
|
2560
2562
|
modules: ["rainmaker-" + moduleCode.toLowerCase()],
|
|
2561
2563
|
locale: language,
|
|
@@ -3626,7 +3628,7 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3626
3628
|
(function () {
|
|
3627
3629
|
|
|
3628
3630
|
var enableSchedulerDebugging = false;
|
|
3629
|
-
var enableProfiling =
|
|
3631
|
+
var enableProfiling = true;
|
|
3630
3632
|
|
|
3631
3633
|
var _requestHostCallback;
|
|
3632
3634
|
|
|
@@ -3865,13 +3867,167 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3865
3867
|
return diff !== 0 ? diff : a.id - b.id;
|
|
3866
3868
|
}
|
|
3867
3869
|
|
|
3870
|
+
var NoPriority = 0;
|
|
3868
3871
|
var ImmediatePriority = 1;
|
|
3869
3872
|
var UserBlockingPriority = 2;
|
|
3870
3873
|
var NormalPriority = 3;
|
|
3871
3874
|
var LowPriority = 4;
|
|
3872
3875
|
var IdlePriority = 5;
|
|
3876
|
+
var runIdCounter = 0;
|
|
3877
|
+
var mainThreadIdCounter = 0;
|
|
3878
|
+
var profilingStateSize = 4;
|
|
3879
|
+
var sharedProfilingBuffer = typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null;
|
|
3880
|
+
var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : [];
|
|
3881
|
+
var PRIORITY = 0;
|
|
3882
|
+
var CURRENT_TASK_ID = 1;
|
|
3883
|
+
var CURRENT_RUN_ID = 2;
|
|
3884
|
+
var QUEUE_SIZE = 3;
|
|
3885
|
+
{
|
|
3886
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3887
|
+
profilingState[QUEUE_SIZE] = 0;
|
|
3888
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3889
|
+
}
|
|
3890
|
+
var INITIAL_EVENT_LOG_SIZE = 131072;
|
|
3891
|
+
var MAX_EVENT_LOG_SIZE = 524288;
|
|
3892
|
+
var eventLogSize = 0;
|
|
3893
|
+
var eventLogBuffer = null;
|
|
3894
|
+
var eventLog = null;
|
|
3895
|
+
var eventLogIndex = 0;
|
|
3896
|
+
var TaskStartEvent = 1;
|
|
3897
|
+
var TaskCompleteEvent = 2;
|
|
3898
|
+
var TaskErrorEvent = 3;
|
|
3899
|
+
var TaskCancelEvent = 4;
|
|
3900
|
+
var TaskRunEvent = 5;
|
|
3901
|
+
var TaskYieldEvent = 6;
|
|
3902
|
+
var SchedulerSuspendEvent = 7;
|
|
3903
|
+
var SchedulerResumeEvent = 8;
|
|
3904
|
+
|
|
3905
|
+
function logEvent(entries) {
|
|
3906
|
+
if (eventLog !== null) {
|
|
3907
|
+
var offset = eventLogIndex;
|
|
3908
|
+
eventLogIndex += entries.length;
|
|
3909
|
+
|
|
3910
|
+
if (eventLogIndex + 1 > eventLogSize) {
|
|
3911
|
+
eventLogSize *= 2;
|
|
3912
|
+
|
|
3913
|
+
if (eventLogSize > MAX_EVENT_LOG_SIZE) {
|
|
3914
|
+
console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
|
|
3915
|
+
stopLoggingProfilingEvents();
|
|
3916
|
+
return;
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3919
|
+
var newEventLog = new Int32Array(eventLogSize * 4);
|
|
3920
|
+
newEventLog.set(eventLog);
|
|
3921
|
+
eventLogBuffer = newEventLog.buffer;
|
|
3922
|
+
eventLog = newEventLog;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
eventLog.set(entries, offset);
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
function startLoggingProfilingEvents() {
|
|
3930
|
+
eventLogSize = INITIAL_EVENT_LOG_SIZE;
|
|
3931
|
+
eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
|
|
3932
|
+
eventLog = new Int32Array(eventLogBuffer);
|
|
3933
|
+
eventLogIndex = 0;
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
function stopLoggingProfilingEvents() {
|
|
3937
|
+
var buffer = eventLogBuffer;
|
|
3938
|
+
eventLogSize = 0;
|
|
3939
|
+
eventLogBuffer = null;
|
|
3940
|
+
eventLog = null;
|
|
3941
|
+
eventLogIndex = 0;
|
|
3942
|
+
return buffer;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
function markTaskStart(task, ms) {
|
|
3946
|
+
{
|
|
3947
|
+
profilingState[QUEUE_SIZE]++;
|
|
3948
|
+
|
|
3949
|
+
if (eventLog !== null) {
|
|
3950
|
+
logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3873
3954
|
|
|
3874
|
-
function
|
|
3955
|
+
function markTaskCompleted(task, ms) {
|
|
3956
|
+
{
|
|
3957
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3958
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3959
|
+
profilingState[QUEUE_SIZE]--;
|
|
3960
|
+
|
|
3961
|
+
if (eventLog !== null) {
|
|
3962
|
+
logEvent([TaskCompleteEvent, ms * 1000, task.id]);
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
function markTaskCanceled(task, ms) {
|
|
3968
|
+
{
|
|
3969
|
+
profilingState[QUEUE_SIZE]--;
|
|
3970
|
+
|
|
3971
|
+
if (eventLog !== null) {
|
|
3972
|
+
logEvent([TaskCancelEvent, ms * 1000, task.id]);
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
function markTaskErrored(task, ms) {
|
|
3978
|
+
{
|
|
3979
|
+
profilingState[PRIORITY] = NoPriority;
|
|
3980
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
3981
|
+
profilingState[QUEUE_SIZE]--;
|
|
3982
|
+
|
|
3983
|
+
if (eventLog !== null) {
|
|
3984
|
+
logEvent([TaskErrorEvent, ms * 1000, task.id]);
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
function markTaskRun(task, ms) {
|
|
3990
|
+
{
|
|
3991
|
+
runIdCounter++;
|
|
3992
|
+
profilingState[PRIORITY] = task.priorityLevel;
|
|
3993
|
+
profilingState[CURRENT_TASK_ID] = task.id;
|
|
3994
|
+
profilingState[CURRENT_RUN_ID] = runIdCounter;
|
|
3995
|
+
|
|
3996
|
+
if (eventLog !== null) {
|
|
3997
|
+
logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
}
|
|
4001
|
+
|
|
4002
|
+
function markTaskYield(task, ms) {
|
|
4003
|
+
{
|
|
4004
|
+
profilingState[PRIORITY] = NoPriority;
|
|
4005
|
+
profilingState[CURRENT_TASK_ID] = 0;
|
|
4006
|
+
profilingState[CURRENT_RUN_ID] = 0;
|
|
4007
|
+
|
|
4008
|
+
if (eventLog !== null) {
|
|
4009
|
+
logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
function markSchedulerSuspended(ms) {
|
|
4015
|
+
{
|
|
4016
|
+
mainThreadIdCounter++;
|
|
4017
|
+
|
|
4018
|
+
if (eventLog !== null) {
|
|
4019
|
+
logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
function markSchedulerUnsuspended(ms) {
|
|
4025
|
+
{
|
|
4026
|
+
if (eventLog !== null) {
|
|
4027
|
+
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
3875
4031
|
|
|
3876
4032
|
var maxSigned31BitInt = 1073741823;
|
|
3877
4033
|
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
|
@@ -3898,6 +4054,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3898
4054
|
pop(timerQueue);
|
|
3899
4055
|
timer.sortIndex = timer.expirationTime;
|
|
3900
4056
|
push(taskQueue, timer);
|
|
4057
|
+
{
|
|
4058
|
+
markTaskStart(timer, currentTime);
|
|
4059
|
+
timer.isQueued = true;
|
|
4060
|
+
}
|
|
3901
4061
|
} else {
|
|
3902
4062
|
return;
|
|
3903
4063
|
}
|
|
@@ -3926,6 +4086,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3926
4086
|
}
|
|
3927
4087
|
|
|
3928
4088
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
4089
|
+
{
|
|
4090
|
+
markSchedulerUnsuspended(initialTime);
|
|
4091
|
+
}
|
|
3929
4092
|
isHostCallbackScheduled = false;
|
|
3930
4093
|
|
|
3931
4094
|
if (isHostTimeoutScheduled) {
|
|
@@ -3956,6 +4119,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3956
4119
|
currentTask = null;
|
|
3957
4120
|
currentPriorityLevel = previousPriorityLevel;
|
|
3958
4121
|
isPerformingWork = false;
|
|
4122
|
+
{
|
|
4123
|
+
var _currentTime = exports.unstable_now();
|
|
4124
|
+
|
|
4125
|
+
markSchedulerSuspended(_currentTime);
|
|
4126
|
+
}
|
|
3959
4127
|
}
|
|
3960
4128
|
}
|
|
3961
4129
|
|
|
@@ -3975,12 +4143,19 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
3975
4143
|
currentTask.callback = null;
|
|
3976
4144
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
3977
4145
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
4146
|
+
markTaskRun(currentTask, currentTime);
|
|
3978
4147
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
3979
4148
|
currentTime = exports.unstable_now();
|
|
3980
4149
|
|
|
3981
4150
|
if (typeof continuationCallback === 'function') {
|
|
3982
4151
|
currentTask.callback = continuationCallback;
|
|
4152
|
+
markTaskYield(currentTask, currentTime);
|
|
3983
4153
|
} else {
|
|
4154
|
+
{
|
|
4155
|
+
markTaskCompleted(currentTask, currentTime);
|
|
4156
|
+
currentTask.isQueued = false;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
3984
4159
|
if (currentTask === peek(taskQueue)) {
|
|
3985
4160
|
pop(taskQueue);
|
|
3986
4161
|
}
|
|
@@ -4119,6 +4294,9 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4119
4294
|
expirationTime: expirationTime,
|
|
4120
4295
|
sortIndex: -1
|
|
4121
4296
|
};
|
|
4297
|
+
{
|
|
4298
|
+
newTask.isQueued = false;
|
|
4299
|
+
}
|
|
4122
4300
|
|
|
4123
4301
|
if (startTime > currentTime) {
|
|
4124
4302
|
newTask.sortIndex = startTime;
|
|
@@ -4136,6 +4314,10 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4136
4314
|
} else {
|
|
4137
4315
|
newTask.sortIndex = expirationTime;
|
|
4138
4316
|
push(taskQueue, newTask);
|
|
4317
|
+
{
|
|
4318
|
+
markTaskStart(newTask, currentTime);
|
|
4319
|
+
newTask.isQueued = true;
|
|
4320
|
+
}
|
|
4139
4321
|
|
|
4140
4322
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
4141
4323
|
isHostCallbackScheduled = true;
|
|
@@ -4162,6 +4344,13 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4162
4344
|
}
|
|
4163
4345
|
|
|
4164
4346
|
function unstable_cancelCallback(task) {
|
|
4347
|
+
{
|
|
4348
|
+
if (task.isQueued) {
|
|
4349
|
+
var currentTime = exports.unstable_now();
|
|
4350
|
+
markTaskCanceled(task, currentTime);
|
|
4351
|
+
task.isQueued = false;
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4165
4354
|
task.callback = null;
|
|
4166
4355
|
}
|
|
4167
4356
|
|
|
@@ -4170,7 +4359,11 @@ var scheduler_development = createCommonjsModule(function (module, exports) {
|
|
|
4170
4359
|
}
|
|
4171
4360
|
|
|
4172
4361
|
var unstable_requestPaint = requestPaint;
|
|
4173
|
-
var unstable_Profiling =
|
|
4362
|
+
var unstable_Profiling = {
|
|
4363
|
+
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
4364
|
+
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
4365
|
+
sharedProfilingBuffer: sharedProfilingBuffer
|
|
4366
|
+
};
|
|
4174
4367
|
exports.unstable_IdlePriority = IdlePriority;
|
|
4175
4368
|
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
4176
4369
|
exports.unstable_LowPriority = LowPriority;
|
|
@@ -11775,7 +11968,7 @@ var vk = {
|
|
|
11775
11968
|
wk = {
|
|
11776
11969
|
findFiberByHostInstance: wc,
|
|
11777
11970
|
bundleType: 0,
|
|
11778
|
-
version: "17.0.
|
|
11971
|
+
version: "17.0.1",
|
|
11779
11972
|
rendererPackageName: "react-dom"
|
|
11780
11973
|
};
|
|
11781
11974
|
var xk = {
|
|
@@ -11873,7 +12066,7 @@ var unstable_renderSubtreeIntoContainer = function unstable_renderSubtreeIntoCon
|
|
|
11873
12066
|
return tk(a, b, c, !1, d);
|
|
11874
12067
|
};
|
|
11875
12068
|
|
|
11876
|
-
var version = "17.0.
|
|
12069
|
+
var version = "17.0.1";
|
|
11877
12070
|
var reactDom_production_min = {
|
|
11878
12071
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
11879
12072
|
createPortal: createPortal,
|
|
@@ -21340,7 +21533,7 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
21340
21533
|
}
|
|
21341
21534
|
}
|
|
21342
21535
|
|
|
21343
|
-
var ReactVersion = '17.0.
|
|
21536
|
+
var ReactVersion = '17.0.1';
|
|
21344
21537
|
var NoMode = 0;
|
|
21345
21538
|
var StrictMode = 1;
|
|
21346
21539
|
var BlockingMode = 2;
|
|
@@ -28397,14 +28590,14 @@ var reactDom_development = createCommonjsModule(function (module, exports) {
|
|
|
28397
28590
|
cutOffTailIfNeeded(renderState, true);
|
|
28398
28591
|
|
|
28399
28592
|
if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating()) {
|
|
28400
|
-
|
|
28593
|
+
var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
|
|
28401
28594
|
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
|
|
28595
|
+
if (lastEffect !== null) {
|
|
28596
|
+
lastEffect.nextEffect = null;
|
|
28597
|
+
}
|
|
28405
28598
|
|
|
28406
|
-
|
|
28407
|
-
|
|
28599
|
+
return null;
|
|
28600
|
+
}
|
|
28408
28601
|
} else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
|
|
28409
28602
|
workInProgress.flags |= DidCapture;
|
|
28410
28603
|
didSuspendAlready = true;
|
|
@@ -36253,9 +36446,7 @@ var useSessionStorage = function useSessionStorage(key, initialValue) {
|
|
|
36253
36446
|
var valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
36254
36447
|
setStoredValue(valueToStore);
|
|
36255
36448
|
Digit.SessionStorage.set(key, valueToStore);
|
|
36256
|
-
} catch (err) {
|
|
36257
|
-
console.log(err);
|
|
36258
|
-
}
|
|
36449
|
+
} catch (err) {}
|
|
36259
36450
|
};
|
|
36260
36451
|
|
|
36261
36452
|
var clearValue = function clearValue() {
|
|
@@ -36298,14 +36489,11 @@ var useOnClickOutside = function useOnClickOutside(ref, handler, isActive) {
|
|
|
36298
36489
|
};
|
|
36299
36490
|
};
|
|
36300
36491
|
|
|
36301
|
-
var _excluded = ["businessService"],
|
|
36302
|
-
_excluded2 = ["tenantId", "businessService"],
|
|
36303
|
-
_excluded3 = ["tenantId", "businessService"];
|
|
36304
36492
|
var useFetchCitizenBillsForBuissnessService = function useFetchCitizenBillsForBuissnessService(_ref, config) {
|
|
36305
36493
|
var _Digit$UserService$ge;
|
|
36306
36494
|
|
|
36307
36495
|
var businessService = _ref.businessService,
|
|
36308
|
-
filters = _objectWithoutPropertiesLoose(_ref,
|
|
36496
|
+
filters = _objectWithoutPropertiesLoose(_ref, ["businessService"]);
|
|
36309
36497
|
|
|
36310
36498
|
if (config === void 0) {
|
|
36311
36499
|
config = {};
|
|
@@ -36352,7 +36540,7 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36352
36540
|
|
|
36353
36541
|
var tenantId = _ref3.tenantId,
|
|
36354
36542
|
businessService = _ref3.businessService,
|
|
36355
|
-
filters = _objectWithoutPropertiesLoose(_ref3,
|
|
36543
|
+
filters = _objectWithoutPropertiesLoose(_ref3, ["tenantId", "businessService"]);
|
|
36356
36544
|
|
|
36357
36545
|
if (config === void 0) {
|
|
36358
36546
|
config = {};
|
|
@@ -36371,7 +36559,6 @@ var useFetchBillsForBuissnessService = function useFetchBillsForBuissnessService
|
|
|
36371
36559
|
return Digit.PaymentService.fetchBill(_tenantId, params);
|
|
36372
36560
|
}, _extends({
|
|
36373
36561
|
retry: function retry(count, err) {
|
|
36374
|
-
console.log(err, "inside the payment hook");
|
|
36375
36562
|
return false;
|
|
36376
36563
|
}
|
|
36377
36564
|
}, config)),
|
|
@@ -36483,7 +36670,7 @@ var useDemandSearch = function useDemandSearch(_ref6, config) {
|
|
|
36483
36670
|
var useRecieptSearch = function useRecieptSearch(_ref7, config) {
|
|
36484
36671
|
var tenantId = _ref7.tenantId,
|
|
36485
36672
|
businessService = _ref7.businessService,
|
|
36486
|
-
params = _objectWithoutPropertiesLoose(_ref7,
|
|
36673
|
+
params = _objectWithoutPropertiesLoose(_ref7, ["tenantId", "businessService"]);
|
|
36487
36674
|
|
|
36488
36675
|
if (config === void 0) {
|
|
36489
36676
|
config = {};
|
|
@@ -36956,9 +37143,6 @@ var getSearchFields = function getSearchFields(isInbox) {
|
|
|
36956
37143
|
return isInbox ? inboxSearchFields : searchFieldsForSearch;
|
|
36957
37144
|
};
|
|
36958
37145
|
|
|
36959
|
-
var _excluded$1 = ["totalCount"],
|
|
36960
|
-
_excluded2$1 = ["totalCount"];
|
|
36961
|
-
|
|
36962
37146
|
var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
36963
37147
|
return {
|
|
36964
37148
|
PT: {
|
|
@@ -36999,7 +37183,7 @@ var inboxConfig = function inboxConfig(tenantId, filters) {
|
|
|
36999
37183
|
|
|
37000
37184
|
var defaultCombineResponse = function defaultCombineResponse(_ref, wf) {
|
|
37001
37185
|
var totalCount = _ref.totalCount,
|
|
37002
|
-
d = _objectWithoutPropertiesLoose(_ref,
|
|
37186
|
+
d = _objectWithoutPropertiesLoose(_ref, ["totalCount"]);
|
|
37003
37187
|
|
|
37004
37188
|
return {
|
|
37005
37189
|
totalCount: totalCount,
|
|
@@ -37012,7 +37196,7 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37012
37196
|
var _ref3;
|
|
37013
37197
|
|
|
37014
37198
|
var totalCount = _ref2.totalCount,
|
|
37015
|
-
data = _objectWithoutPropertiesLoose(_ref2,
|
|
37199
|
+
data = _objectWithoutPropertiesLoose(_ref2, ["totalCount"]);
|
|
37016
37200
|
|
|
37017
37201
|
return _ref3 = {}, _ref3[searchKey] = data[searchKey].map(function (e) {
|
|
37018
37202
|
return _extends({
|
|
@@ -37022,12 +37206,11 @@ var defaultRawSearchHandler = function defaultRawSearchHandler(_ref2, searchKey,
|
|
|
37022
37206
|
};
|
|
37023
37207
|
|
|
37024
37208
|
var defaultCatchSearch = function defaultCatchSearch(Err) {
|
|
37025
|
-
var _Err$response, _Err$response$data, _Err$response$data$Er
|
|
37209
|
+
var _Err$response, _Err$response$data, _Err$response$data$Er;
|
|
37026
37210
|
|
|
37027
37211
|
if (Err !== null && Err !== void 0 && (_Err$response = Err.response) !== null && _Err$response !== void 0 && (_Err$response$data = _Err$response.data) !== null && _Err$response$data !== void 0 && (_Err$response$data$Er = _Err$response$data.Errors) !== null && _Err$response$data$Er !== void 0 && _Err$response$data$Er.some(function (e) {
|
|
37028
37212
|
return e.code === "EG_PT_INVALID_SEARCH" && e.message === " Search is not allowed on empty Criteria, Atleast one criteria should be provided with tenantId for EMPLOYEE";
|
|
37029
37213
|
})) return [];
|
|
37030
|
-
console.log(Err === null || Err === void 0 ? void 0 : (_Err$response2 = Err.response) === null || _Err$response2 === void 0 ? void 0 : _Err$response2.data, " this is error");
|
|
37031
37214
|
throw Err;
|
|
37032
37215
|
};
|
|
37033
37216
|
|
|
@@ -37611,7 +37794,6 @@ var fetchComplaintDetails = function fetchComplaintDetails(tenantId, id) {
|
|
|
37611
37794
|
}) : null;
|
|
37612
37795
|
return ids ? Promise.resolve(getThumbnails(ids, service.tenantId)).then(_temp2) : _temp2(null);
|
|
37613
37796
|
} else {
|
|
37614
|
-
console.log("error fetching complaint details or service defs");
|
|
37615
37797
|
return {};
|
|
37616
37798
|
}
|
|
37617
37799
|
});
|
|
@@ -38312,6 +38494,9 @@ var useMDMS$1 = function useMDMS(tenantId, moduleCode, type, config, payload) {
|
|
|
38312
38494
|
|
|
38313
38495
|
case "PostFieldsConfig":
|
|
38314
38496
|
return usePostFieldsConfig();
|
|
38497
|
+
|
|
38498
|
+
default:
|
|
38499
|
+
return null;
|
|
38315
38500
|
}
|
|
38316
38501
|
};
|
|
38317
38502
|
|
|
@@ -39631,6 +39816,9 @@ var usePTGenderMDMS = function usePTGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
39631
39816
|
switch (type) {
|
|
39632
39817
|
case "GenderType":
|
|
39633
39818
|
return usePTGenders();
|
|
39819
|
+
|
|
39820
|
+
default:
|
|
39821
|
+
return null;
|
|
39634
39822
|
}
|
|
39635
39823
|
};
|
|
39636
39824
|
|
|
@@ -39743,6 +39931,9 @@ var useMCollectMDMS = function useMCollectMDMS(tenantId, moduleCode, type, filte
|
|
|
39743
39931
|
|
|
39744
39932
|
case "applicationStatus":
|
|
39745
39933
|
return useMCollectApplcationStatus();
|
|
39934
|
+
|
|
39935
|
+
default:
|
|
39936
|
+
return null;
|
|
39746
39937
|
}
|
|
39747
39938
|
};
|
|
39748
39939
|
|
|
@@ -40486,6 +40677,9 @@ var useTLGenderMDMS = function useTLGenderMDMS(tenantId, moduleCode, type, confi
|
|
|
40486
40677
|
switch (type) {
|
|
40487
40678
|
case "GenderType":
|
|
40488
40679
|
return useTLGenders();
|
|
40680
|
+
|
|
40681
|
+
default:
|
|
40682
|
+
return null;
|
|
40489
40683
|
}
|
|
40490
40684
|
};
|
|
40491
40685
|
|
|
@@ -40793,7 +40987,6 @@ var ReceiptsService = {
|
|
|
40793
40987
|
}
|
|
40794
40988
|
};
|
|
40795
40989
|
|
|
40796
|
-
var _excluded$2 = ["isLoading", "error", "data"];
|
|
40797
40990
|
var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filters, isupdated, config) {
|
|
40798
40991
|
if (config === void 0) {
|
|
40799
40992
|
config = {};
|
|
@@ -40808,7 +41001,7 @@ var useReceiptsSearch = function useReceiptsSearch(searchparams, tenantId, filte
|
|
|
40808
41001
|
isLoading = _useQuery.isLoading,
|
|
40809
41002
|
error = _useQuery.error,
|
|
40810
41003
|
data = _useQuery.data,
|
|
40811
|
-
rest = _objectWithoutPropertiesLoose(_useQuery,
|
|
41004
|
+
rest = _objectWithoutPropertiesLoose(_useQuery, ["isLoading", "error", "data"]);
|
|
40812
41005
|
|
|
40813
41006
|
return _extends({
|
|
40814
41007
|
isLoading: isLoading,
|
|
@@ -40979,6 +41172,9 @@ var useReceiptsMDMS = function useReceiptsMDMS(tenantId, type, config) {
|
|
|
40979
41172
|
|
|
40980
41173
|
case "CancelReceiptReasonAndStatus":
|
|
40981
41174
|
return useCancelReceiptReasonAndStatus();
|
|
41175
|
+
|
|
41176
|
+
default:
|
|
41177
|
+
return null;
|
|
40982
41178
|
}
|
|
40983
41179
|
};
|
|
40984
41180
|
|
|
@@ -41138,7 +41334,6 @@ var mobileCheck = function mobileCheck() {
|
|
|
41138
41334
|
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true;
|
|
41139
41335
|
})(navigator.userAgent || navigator.vendor || window.opera);
|
|
41140
41336
|
|
|
41141
|
-
console.log("check", check);
|
|
41142
41337
|
return check;
|
|
41143
41338
|
};
|
|
41144
41339
|
|