@fluxhub/fluxhub-lib 1.0.586 → 1.0.588
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/bundles/fluxhub-fluxhub-lib.umd.js +79 -6
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +2 -2
- package/esm2015/lib/fluxhub-lib.module.js +3 -2
- package/esm2015/lib/services/push_notification.service.js +74 -0
- package/esm2015/lib/services/push_notification.service.noty.js +13 -0
- package/esm2015/lib/wkf_engine/win_conferma.js +3 -3
- package/esm2015/public_api.js +2 -1
- package/esm5/fluxhub-fluxhub-lib.js +2 -2
- package/esm5/lib/fluxhub-lib.module.js +3 -2
- package/esm5/lib/services/push_notification.service.js +88 -0
- package/esm5/lib/services/push_notification.service.noty.js +17 -0
- package/esm5/lib/wkf_engine/win_conferma.js +2 -2
- package/esm5/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +64 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +76 -3
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/push_notification.service.d.ts +12 -0
- package/lib/services/push_notification.service.noty.d.ts +4 -0
- package/package.json +2 -1
- package/public_api.d.ts +1 -0
|
@@ -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
|
/**
|
|
@@ -12668,7 +12669,7 @@ var win_conferma = /** @class */ (function () {
|
|
|
12668
12669
|
};
|
|
12669
12670
|
win_conferma.decorators = [
|
|
12670
12671
|
{ type: Component, args: [{
|
|
12671
|
-
template: "\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\">\n <div *ngIf=\"mobile\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired==1\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
|
|
12672
|
+
template: "\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\">\n <div *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired==1\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
|
|
12672
12673
|
}] }
|
|
12673
12674
|
];
|
|
12674
12675
|
/** @nocollapse */
|
|
@@ -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
|