@sumaris-net/ngx-components 1.22.2 → 1.22.3

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.
@@ -24981,22 +24981,20 @@
24981
24981
  var UserEventServiceToken = new i0.InjectionToken('UserEventService');
24982
24982
  var AbstractUserEventService = /** @class */ (function (_super) {
24983
24983
  __extends(AbstractUserEventService, _super);
24984
- function AbstractUserEventService(graphql, accountService, network, translate, queries, mutations, subscriptions, environment) {
24985
- var _this = _super.call(this, graphql, environment) || this;
24984
+ function AbstractUserEventService(graphql, accountService, network, translate, options) {
24985
+ var _this = _super.call(this, graphql, options) || this;
24986
24986
  _this.graphql = graphql;
24987
24987
  _this.accountService = accountService;
24988
24988
  _this.network = network;
24989
24989
  _this.translate = translate;
24990
- _this.queries = queries;
24991
- _this.mutations = mutations;
24992
- _this.subscriptions = subscriptions;
24993
- _this.environment = environment;
24990
+ _this.options = options;
24994
24991
  _this.count$ = new rxjs.BehaviorSubject(0);
24995
24992
  _this.listeners = [];
24996
24993
  _this._subscriptions = new rxjs.Subscription();
24994
+ _this.queries = options.queries;
24995
+ _this.mutations = options.mutations || {};
24996
+ _this.subscriptions = options.subscriptions || {};
24997
24997
  _this._logPrefix = '[user-event-service] ';
24998
- // For DEV only
24999
- _this._debug = !(environment === null || environment === void 0 ? void 0 : environment.production);
25000
24998
  return _this;
25001
24999
  }
25002
25000
  Object.defineProperty(AbstractUserEventService.prototype, "userEventCount", {
@@ -25556,10 +25554,7 @@
25556
25554
  { type: AccountService },
25557
25555
  { type: NetworkService },
25558
25556
  { type: i1$2.TranslateService },
25559
- { type: undefined },
25560
- { type: undefined },
25561
- { type: undefined },
25562
- { type: Environment, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [ENVIRONMENT,] }] }
25557
+ { type: undefined }
25563
25558
  ]; };
25564
25559
  var userEventQueries = {
25565
25560
  loadAll: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n "], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n "])), UserEventFragments.lightUserEvent),
@@ -25572,7 +25567,11 @@
25572
25567
  var UserEventService = /** @class */ (function (_super) {
25573
25568
  __extends(UserEventService, _super);
25574
25569
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
25575
- var _this = _super.call(this, graphql, accountService, network, translate, userEventQueries, userEventMutations, undefined, environment) || this;
25570
+ var _this = _super.call(this, graphql, accountService, network, translate, {
25571
+ queries: userEventQueries,
25572
+ mutations: userEventMutations,
25573
+ production: environment === null || environment === void 0 ? void 0 : environment.production
25574
+ }) || this;
25576
25575
  _this.graphql = graphql;
25577
25576
  _this.accountService = accountService;
25578
25577
  _this.network = network;
@@ -28420,7 +28419,13 @@
28420
28419
  var UserEventTestService = /** @class */ (function (_super) {
28421
28420
  __extends(UserEventTestService, _super);
28422
28421
  function UserEventTestService(graphql, accountService, network, translate, environment) {
28423
- var _this = _super.call(this, graphql, accountService, network, translate, undefined, undefined, undefined, environment) || this;
28422
+ var _this = _super.call(this, graphql, accountService, network, translate, {
28423
+ queries: {
28424
+ loadAll: null,
28425
+ loadAllWithContent: null
28426
+ },
28427
+ production: environment === null || environment === void 0 ? void 0 : environment.production
28428
+ }) || this;
28424
28429
  _this.graphql = graphql;
28425
28430
  _this.accountService = accountService;
28426
28431
  _this.network = network;
@@ -34327,6 +34332,8 @@
34327
34332
  exports.AppGestureConfig = AppGestureConfig;
34328
34333
  exports.AppGraphQLModule = AppGraphQLModule;
34329
34334
  exports.AppHelpModal = AppHelpModal;
34335
+ exports.AppIconComponent = AppIconComponent;
34336
+ exports.AppIconModule = AppIconModule;
34330
34337
  exports.AppInMemoryTable = AppInMemoryTable;
34331
34338
  exports.AppInstallUpgradeCard = AppInstallUpgradeCard;
34332
34339
  exports.AppListForm = AppListForm;
@@ -34735,22 +34742,20 @@
34735
34742
  exports.ɵa = CustomReuseStrategy;
34736
34743
  exports.ɵb = MatNumpadDomService;
34737
34744
  exports.ɵc = isFocusableElement;
34738
- exports.ɵd = AppIconModule;
34739
- exports.ɵe = AppIconComponent;
34740
- exports.ɵf = UserEventNotificationList;
34741
- exports.ɵg = UserEventTestService;
34742
- exports.ɵh = RegisterForm;
34743
- exports.ɵi = AccountValidatorService;
34744
- exports.ɵj = RegisterModal;
34745
- exports.ɵk = UserSettingsValidatorService;
34746
- exports.ɵl = LocalSettingsValidatorService;
34747
- exports.ɵm = AppUpdateOfflineModeCard;
34748
- exports.ɵn = JobProgressionList;
34749
- exports.ɵo = DateTestPage;
34750
- exports.ɵp = NumpadTestPage;
34751
- exports.ɵq = MatBadgeIconTestPage;
34752
- exports.ɵr = ToastTestingModule;
34753
- exports.ɵs = ToastTestingPage;
34745
+ exports.ɵd = UserEventNotificationList;
34746
+ exports.ɵe = UserEventTestService;
34747
+ exports.ɵf = RegisterForm;
34748
+ exports.ɵg = AccountValidatorService;
34749
+ exports.ɵh = RegisterModal;
34750
+ exports.ɵi = UserSettingsValidatorService;
34751
+ exports.ɵj = LocalSettingsValidatorService;
34752
+ exports.ɵk = AppUpdateOfflineModeCard;
34753
+ exports.ɵl = JobProgressionList;
34754
+ exports.ɵm = DateTestPage;
34755
+ exports.ɵn = NumpadTestPage;
34756
+ exports.ɵo = MatBadgeIconTestPage;
34757
+ exports.ɵp = ToastTestingModule;
34758
+ exports.ɵq = ToastTestingPage;
34754
34759
 
34755
34760
  Object.defineProperty(exports, '__esModule', { value: true });
34756
34761