monkey-front-core 0.0.297 → 0.0.299
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/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +6 -1
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs +36 -26
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +36 -26
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.299.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/monkey-front-core-0.0.297.tgz +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { featureKey } from './monkeyecx-storage.reducer';
|
|
1
2
|
export const seederReducer = (reducer) => {
|
|
2
3
|
return (state, action) => {
|
|
3
4
|
/* if (action.type === INIT || action.type === UPDATE) {
|
|
@@ -11,8 +12,12 @@ export const seederReducer = (reducer) => {
|
|
|
11
12
|
}
|
|
12
13
|
} */
|
|
13
14
|
const nextState = reducer(state, action);
|
|
15
|
+
const data = nextState?.[featureKey];
|
|
16
|
+
console.log('@#@@@@@');
|
|
17
|
+
console.log(data);
|
|
18
|
+
console.log('@#@@@@@');
|
|
14
19
|
localStorage.setItem('state', JSON.stringify(nextState));
|
|
15
20
|
return nextState;
|
|
16
21
|
};
|
|
17
22
|
};
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LXNlZWRlci5yZWR1Y2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9zdG9yZS9yZWR1Y2Vycy9tb25rZXllY3gtc2VlZGVyLnJlZHVjZXIudHMiXSwibmFtZXMiOltdL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rpb24udHlwZSA9PT0gSU5JVCB8fCBhY3Rpb24udHlwZSA9PT0gVVBEQVRFKSB7XG4gICAgICBjb25zdCBzdG9yYWdlVmFsdWUgPSBsb2NhbFN0b3JhZ2UuZ2V0SXRlbSgnc3RhdGUnKTtcbiAgICAgIGlmIChzdG9yYWdlVmFsdWUpIHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICByZXR1cm4gSlNPTi5wYXJzZShzdG9yYWdlVmFsdWUpO1xuICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICBsb2NhbFN0b3JhZ2UucmVtb3ZlSXRlbSgnc3RhdGUnKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gKi9cbiAgICBjb25zdCBuZXh0U3RhdGUgPSByZWR1Y2VyKHN0YXRlLCBhY3Rpb24pO1xuICAgIGNvbnN0IGRhdGEgPSBuZXh0U3RhdGU/LltmZWF0dXJlS2V5XTtcbiAgICBjb25zb2xlLmxvZygnQCNAQEBAQCcpO1xuICAgIGNvbnNvbGUubG9nKGRhdGEpO1xuICAgIGNvbnNvbGUubG9nKCdAI0BAQEBAJyk7XG4gICAgbG9jYWxTdG9yYWdlLnNldEl0ZW0oJ3N0YXRlJywgSlNPTi5zdHJpbmdpZnkobmV4dFN0YXRlKSk7XG4gICAgcmV0dXJuIG5leHRTdGF0ZTtcbiAgfTtcbn07XG4iXX0=
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
export * from './lib/components';
|
|
5
5
|
export * from './lib/core';
|
|
6
6
|
export * from './lib/monkey-front-core.module';
|
|
7
|
-
export * from './lib/store';
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
export * as store from './lib/store';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLE9BQU8sS0FBSyxLQUFLLE1BQU0sYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBtb25rZXktZnJvbnQtY29yZVxuICovXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9ua2V5LWZyb250LWNvcmUubW9kdWxlJztcbmV4cG9ydCAqIGFzIHN0b3JlIGZyb20gJy4vbGliL3N0b3JlJztcblxuIl19
|
|
@@ -5384,34 +5384,11 @@ var monkeyecxStorage_actions = /*#__PURE__*/Object.freeze({
|
|
|
5384
5384
|
deleteOne: deleteOne
|
|
5385
5385
|
});
|
|
5386
5386
|
|
|
5387
|
-
var index$
|
|
5387
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
5388
5388
|
__proto__: null,
|
|
5389
5389
|
monkeyecxStorage: monkeyecxStorage_actions
|
|
5390
5390
|
});
|
|
5391
5391
|
|
|
5392
|
-
const seederReducer = (reducer) => {
|
|
5393
|
-
return (state, action) => {
|
|
5394
|
-
/* if (action.type === INIT || action.type === UPDATE) {
|
|
5395
|
-
const storageValue = localStorage.getItem('state');
|
|
5396
|
-
if (storageValue) {
|
|
5397
|
-
try {
|
|
5398
|
-
return JSON.parse(storageValue);
|
|
5399
|
-
} catch {
|
|
5400
|
-
localStorage.removeItem('state');
|
|
5401
|
-
}
|
|
5402
|
-
}
|
|
5403
|
-
} */
|
|
5404
|
-
const nextState = reducer(state, action);
|
|
5405
|
-
localStorage.setItem('state', JSON.stringify(nextState));
|
|
5406
|
-
return nextState;
|
|
5407
|
-
};
|
|
5408
|
-
};
|
|
5409
|
-
|
|
5410
|
-
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5411
|
-
__proto__: null,
|
|
5412
|
-
seederReducer: seederReducer
|
|
5413
|
-
});
|
|
5414
|
-
|
|
5415
5392
|
const featureKey = 'mecx-core-storage';
|
|
5416
5393
|
const adapter = createEntityAdapter({
|
|
5417
5394
|
selectId: (item) => {
|
|
@@ -5451,12 +5428,45 @@ var monkeyecxStorage_reducer = /*#__PURE__*/Object.freeze({
|
|
|
5451
5428
|
selectTotal: selectTotal
|
|
5452
5429
|
});
|
|
5453
5430
|
|
|
5454
|
-
|
|
5431
|
+
const seederReducer = (reducer) => {
|
|
5432
|
+
return (state, action) => {
|
|
5433
|
+
/* if (action.type === INIT || action.type === UPDATE) {
|
|
5434
|
+
const storageValue = localStorage.getItem('state');
|
|
5435
|
+
if (storageValue) {
|
|
5436
|
+
try {
|
|
5437
|
+
return JSON.parse(storageValue);
|
|
5438
|
+
} catch {
|
|
5439
|
+
localStorage.removeItem('state');
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
} */
|
|
5443
|
+
const nextState = reducer(state, action);
|
|
5444
|
+
const data = nextState === null || nextState === void 0 ? void 0 : nextState[featureKey];
|
|
5445
|
+
console.log('@#@@@@@');
|
|
5446
|
+
console.log(data);
|
|
5447
|
+
console.log('@#@@@@@');
|
|
5448
|
+
localStorage.setItem('state', JSON.stringify(nextState));
|
|
5449
|
+
return nextState;
|
|
5450
|
+
};
|
|
5451
|
+
};
|
|
5452
|
+
|
|
5453
|
+
var monkeyecxSeeder_reducer = /*#__PURE__*/Object.freeze({
|
|
5454
|
+
__proto__: null,
|
|
5455
|
+
seederReducer: seederReducer
|
|
5456
|
+
});
|
|
5457
|
+
|
|
5458
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5455
5459
|
__proto__: null,
|
|
5456
5460
|
fromMonkeyecxSeeder: monkeyecxSeeder_reducer,
|
|
5457
5461
|
fromMonkeyecxStorage: monkeyecxStorage_reducer
|
|
5458
5462
|
});
|
|
5459
5463
|
|
|
5464
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
5465
|
+
__proto__: null,
|
|
5466
|
+
actions: index$2,
|
|
5467
|
+
reducers: index$1
|
|
5468
|
+
});
|
|
5469
|
+
|
|
5460
5470
|
/*
|
|
5461
5471
|
* Public API Surface of monkey-front-core
|
|
5462
5472
|
*/
|
|
@@ -5465,5 +5475,5 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
5465
5475
|
* Generated bundle index. Do not edit.
|
|
5466
5476
|
*/
|
|
5467
5477
|
|
|
5468
|
-
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule,
|
|
5478
|
+
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, index as store, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
5469
5479
|
//# sourceMappingURL=monkey-front-core.mjs.map
|