@fluxhub/fluxhub-lib 1.0.585 → 1.0.587

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.
@@ -39,6 +39,7 @@ import { NgForage } from 'ngforage';
39
39
  import { TranslateModule } from '@ngx-translate/core';
40
40
  import { DragulaService, DragulaModule } from 'ng2-dragula';
41
41
  import { DomSanitizer } from '@angular/platform-browser';
42
+ import { Socket } from 'ngx-socket-io';
42
43
  import { Http } from '@angular/http';
43
44
 
44
45
  /**
@@ -20275,6 +20276,78 @@ var FHHelpButton = /** @class */ (function () {
20275
20276
  return FHHelpButton;
20276
20277
  }());
20277
20278
 
20279
+ /**
20280
+ * @fileoverview added by tsickle
20281
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
20282
+ */
20283
+ var PushNotificationService = /** @class */ (function () {
20284
+ function PushNotificationService(socket) {
20285
+ this.socket = socket;
20286
+ this.currentnoty = this.socket.fromEvent('noty');
20287
+ this.notys = this.socket.fromEvent('notys');
20288
+ }
20289
+ /**
20290
+ * @param {?} id
20291
+ * @return {?}
20292
+ */
20293
+ PushNotificationService.prototype.getnoty = /**
20294
+ * @param {?} id
20295
+ * @return {?}
20296
+ */
20297
+ function (id) {
20298
+ this.socket.emit('getDoc', id);
20299
+ };
20300
+ /**
20301
+ * @return {?}
20302
+ */
20303
+ PushNotificationService.prototype.newnoty = /**
20304
+ * @return {?}
20305
+ */
20306
+ function () {
20307
+ this.socket.emit('addDoc', { id: this.docId(), doc: '' });
20308
+ };
20309
+ /**
20310
+ * @param {?} noty
20311
+ * @return {?}
20312
+ */
20313
+ PushNotificationService.prototype.editnoty = /**
20314
+ * @param {?} noty
20315
+ * @return {?}
20316
+ */
20317
+ function (noty) {
20318
+ this.socket.emit('editDoc', noty);
20319
+ };
20320
+ /**
20321
+ * @private
20322
+ * @return {?}
20323
+ */
20324
+ PushNotificationService.prototype.docId = /**
20325
+ * @private
20326
+ * @return {?}
20327
+ */
20328
+ function () {
20329
+ /** @type {?} */
20330
+ var text = '';
20331
+ /** @type {?} */
20332
+ var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
20333
+ for (var i = 0; i < 5; i++) {
20334
+ text += possible.charAt(Math.floor(Math.random() * possible.length));
20335
+ }
20336
+ return text;
20337
+ };
20338
+ PushNotificationService.decorators = [
20339
+ { type: Injectable, args: [{
20340
+ providedIn: 'root'
20341
+ },] }
20342
+ ];
20343
+ /** @nocollapse */
20344
+ PushNotificationService.ctorParameters = function () { return [
20345
+ { type: Socket }
20346
+ ]; };
20347
+ /** @nocollapse */ PushNotificationService.ngInjectableDef = defineInjectable({ factory: function PushNotificationService_Factory() { return new PushNotificationService(inject(Socket)); }, token: PushNotificationService, providedIn: "root" });
20348
+ return PushNotificationService;
20349
+ }());
20350
+
20278
20351
  /**
20279
20352
  * @fileoverview added by tsickle
20280
20353
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -20291,7 +20364,7 @@ var FluxhubLibModule = /** @class */ (function () {
20291
20364
  function () {
20292
20365
  return {
20293
20366
  ngModule: FluxhubLibModule,
20294
- providers: [AppService, NgForage, QueryService, AppMakerService, FileService, OdbcService, WkfService, GridService, AuthenticationService, UtilityService, LocalDBService, OfficeAutomatorService]
20367
+ providers: [PushNotificationService, AppService, NgForage, QueryService, AppMakerService, FileService, OdbcService, WkfService, GridService, AuthenticationService, UtilityService, LocalDBService, OfficeAutomatorService]
20295
20368
  };
20296
20369
  };
20297
20370
  /**
@@ -20588,5 +20661,5 @@ var dt = /** @class */ (function () {
20588
20661
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
20589
20662
  */
20590
20663
 
20591
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, win_riassegna_select_user as ɵba, win_commento_sel_notif as ɵbb, win_manage_values as ɵbc, win_manage_roles as ɵbd, FHComboboxComponentFilter as ɵbe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
20664
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, DateComponent, DtPick, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, PushNotificationService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, win_riassegna_select_user as ɵba, win_commento_sel_notif as ɵbb, win_manage_values as ɵbc, win_manage_roles as ɵbd, FHComboboxComponentFilter as ɵbe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
20592
20665
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map