@fluxhub/fluxhub-lib 1.0.302 → 1.0.304
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 +434 -26
- 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/docs/classes/MomentDateAdapter.html +1989 -0
- package/docs/components/FHDatePickerComponent.html +3 -2
- package/docs/components/FHGridComponent.html +1 -1
- package/docs/components/FHWinComboSelect.html +86 -2
- package/docs/coverage.html +49 -1
- package/docs/js/menu-wc.js +3 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +97 -0
- package/docs/overview.html +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +18 -17
- package/esm2015/lib/controls/fhdatepicker.js +20 -6
- package/esm2015/lib/controls/fhgrid.js +2 -1
- package/esm2015/lib/controls/utils/MomentDateAdapter.js +285 -0
- package/esm2015/lib/controls/win_combo_select.js +15 -2
- package/esm5/fluxhub-fluxhub-lib.js +18 -17
- package/esm5/lib/controls/fhdatepicker.js +20 -6
- package/esm5/lib/controls/fhgrid.js +2 -1
- package/esm5/lib/controls/utils/MomentDateAdapter.js +405 -0
- package/esm5/lib/controls/win_combo_select.js +14 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +302 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +417 -10
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +18 -17
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +1 -1
- package/lib/controls/utils/MomentDateAdapter.d.ts +33 -0
- package/lib/controls/win_combo_select.d.ts +3 -1
- package/package.json +3 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
2
2
|
import { AES, enc } from 'crypto-js';
|
|
3
|
+
import * as momentNs from 'moment';
|
|
4
|
+
import { isMoment } from 'moment';
|
|
3
5
|
import 'clipboard';
|
|
4
6
|
import 'prismjs';
|
|
5
7
|
import 'prismjs/plugins/toolbar/prism-toolbar';
|
|
@@ -30,12 +32,12 @@ import { CdkTableModule } from '@angular/cdk/table';
|
|
|
30
32
|
import { NgForage } from 'ngforage';
|
|
31
33
|
import { TranslateModule } from '@ngx-translate/core';
|
|
32
34
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
33
|
-
import { __read,
|
|
35
|
+
import { __read, __extends, __assign } from 'tslib';
|
|
34
36
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
35
37
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
36
|
-
import { MatDialogRef, MatDialog, DateAdapter,
|
|
38
|
+
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
37
39
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
38
|
-
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input,
|
|
40
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
39
41
|
import { Http } from '@angular/http';
|
|
40
42
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
41
43
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -6136,6 +6138,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6136
6138
|
}
|
|
6137
6139
|
p.system_dest = _this.system_dest;
|
|
6138
6140
|
p.field = _this.fields;
|
|
6141
|
+
console.log('filterModel ', params.filterModel);
|
|
6139
6142
|
if (_this.filters != null)
|
|
6140
6143
|
p.filter = _this.filters;
|
|
6141
6144
|
if (_this.fix_flt != "") {
|
|
@@ -8351,6 +8354,392 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
|
|
|
8351
8354
|
* @fileoverview added by tsickle
|
|
8352
8355
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8353
8356
|
*/
|
|
8357
|
+
/** @type {?} */
|
|
8358
|
+
var moment = momentNs;
|
|
8359
|
+
/** @type {?} */
|
|
8360
|
+
var MOMENT_DATE_FORMATS = {
|
|
8361
|
+
parse: {
|
|
8362
|
+
dateInput: 'D/MM/YYYY'
|
|
8363
|
+
},
|
|
8364
|
+
display: {
|
|
8365
|
+
dateInput: 'DD/MM/YYYY',
|
|
8366
|
+
monthYearLabel: 'MMMM Y',
|
|
8367
|
+
dateA11yLabel: 'LL',
|
|
8368
|
+
monthYearA11yLabel: 'MMMM Y'
|
|
8369
|
+
}
|
|
8370
|
+
};
|
|
8371
|
+
/** @type {?} */
|
|
8372
|
+
var dateNames = [];
|
|
8373
|
+
for (var date = 1; date <= 31; date++) {
|
|
8374
|
+
dateNames.push(String(date));
|
|
8375
|
+
}
|
|
8376
|
+
var MomentDateAdapter = /** @class */ (function (_super) {
|
|
8377
|
+
__extends(MomentDateAdapter, _super);
|
|
8378
|
+
function MomentDateAdapter() {
|
|
8379
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8380
|
+
_this.localeData = moment.localeData();
|
|
8381
|
+
return _this;
|
|
8382
|
+
}
|
|
8383
|
+
/**
|
|
8384
|
+
* @param {?} date
|
|
8385
|
+
* @return {?}
|
|
8386
|
+
*/
|
|
8387
|
+
MomentDateAdapter.prototype.getYear = /**
|
|
8388
|
+
* @param {?} date
|
|
8389
|
+
* @return {?}
|
|
8390
|
+
*/
|
|
8391
|
+
function (date) {
|
|
8392
|
+
return date.year();
|
|
8393
|
+
};
|
|
8394
|
+
/**
|
|
8395
|
+
* @param {?} date
|
|
8396
|
+
* @return {?}
|
|
8397
|
+
*/
|
|
8398
|
+
MomentDateAdapter.prototype.getMonth = /**
|
|
8399
|
+
* @param {?} date
|
|
8400
|
+
* @return {?}
|
|
8401
|
+
*/
|
|
8402
|
+
function (date) {
|
|
8403
|
+
return date.month();
|
|
8404
|
+
};
|
|
8405
|
+
/**
|
|
8406
|
+
* @param {?} date
|
|
8407
|
+
* @return {?}
|
|
8408
|
+
*/
|
|
8409
|
+
MomentDateAdapter.prototype.getDate = /**
|
|
8410
|
+
* @param {?} date
|
|
8411
|
+
* @return {?}
|
|
8412
|
+
*/
|
|
8413
|
+
function (date) {
|
|
8414
|
+
return date.date();
|
|
8415
|
+
};
|
|
8416
|
+
/**
|
|
8417
|
+
* @param {?} date
|
|
8418
|
+
* @return {?}
|
|
8419
|
+
*/
|
|
8420
|
+
MomentDateAdapter.prototype.getDayOfWeek = /**
|
|
8421
|
+
* @param {?} date
|
|
8422
|
+
* @return {?}
|
|
8423
|
+
*/
|
|
8424
|
+
function (date) {
|
|
8425
|
+
return date.day();
|
|
8426
|
+
};
|
|
8427
|
+
/**
|
|
8428
|
+
* @param {?} style
|
|
8429
|
+
* @return {?}
|
|
8430
|
+
*/
|
|
8431
|
+
MomentDateAdapter.prototype.getMonthNames = /**
|
|
8432
|
+
* @param {?} style
|
|
8433
|
+
* @return {?}
|
|
8434
|
+
*/
|
|
8435
|
+
function (style) {
|
|
8436
|
+
switch (style) {
|
|
8437
|
+
case 'long':
|
|
8438
|
+
return this.localeData.months();
|
|
8439
|
+
case 'short':
|
|
8440
|
+
return this.localeData.monthsShort();
|
|
8441
|
+
case 'narrow':
|
|
8442
|
+
return this.localeData.monthsShort().map((/**
|
|
8443
|
+
* @param {?} month
|
|
8444
|
+
* @return {?}
|
|
8445
|
+
*/
|
|
8446
|
+
function (month) { return month[0]; }));
|
|
8447
|
+
}
|
|
8448
|
+
};
|
|
8449
|
+
/**
|
|
8450
|
+
* @return {?}
|
|
8451
|
+
*/
|
|
8452
|
+
MomentDateAdapter.prototype.getDateNames = /**
|
|
8453
|
+
* @return {?}
|
|
8454
|
+
*/
|
|
8455
|
+
function () {
|
|
8456
|
+
return dateNames;
|
|
8457
|
+
};
|
|
8458
|
+
/**
|
|
8459
|
+
* @param {?} style
|
|
8460
|
+
* @return {?}
|
|
8461
|
+
*/
|
|
8462
|
+
MomentDateAdapter.prototype.getDayOfWeekNames = /**
|
|
8463
|
+
* @param {?} style
|
|
8464
|
+
* @return {?}
|
|
8465
|
+
*/
|
|
8466
|
+
function (style) {
|
|
8467
|
+
switch (style) {
|
|
8468
|
+
case 'long':
|
|
8469
|
+
return this.localeData.weekdays();
|
|
8470
|
+
case 'short':
|
|
8471
|
+
return this.localeData.weekdaysShort();
|
|
8472
|
+
case 'narrow':
|
|
8473
|
+
return this.localeData.weekdaysShort();
|
|
8474
|
+
}
|
|
8475
|
+
};
|
|
8476
|
+
/**
|
|
8477
|
+
* @param {?} date
|
|
8478
|
+
* @return {?}
|
|
8479
|
+
*/
|
|
8480
|
+
MomentDateAdapter.prototype.getYearName = /**
|
|
8481
|
+
* @param {?} date
|
|
8482
|
+
* @return {?}
|
|
8483
|
+
*/
|
|
8484
|
+
function (date) {
|
|
8485
|
+
return String(date.year());
|
|
8486
|
+
};
|
|
8487
|
+
/**
|
|
8488
|
+
* @return {?}
|
|
8489
|
+
*/
|
|
8490
|
+
MomentDateAdapter.prototype.getFirstDayOfWeek = /**
|
|
8491
|
+
* @return {?}
|
|
8492
|
+
*/
|
|
8493
|
+
function () {
|
|
8494
|
+
return this.localeData.firstDayOfWeek();
|
|
8495
|
+
};
|
|
8496
|
+
/**
|
|
8497
|
+
* @param {?} date
|
|
8498
|
+
* @return {?}
|
|
8499
|
+
*/
|
|
8500
|
+
MomentDateAdapter.prototype.getNumDaysInMonth = /**
|
|
8501
|
+
* @param {?} date
|
|
8502
|
+
* @return {?}
|
|
8503
|
+
*/
|
|
8504
|
+
function (date) {
|
|
8505
|
+
return date.daysInMonth();
|
|
8506
|
+
};
|
|
8507
|
+
/**
|
|
8508
|
+
* @param {?} date
|
|
8509
|
+
* @return {?}
|
|
8510
|
+
*/
|
|
8511
|
+
MomentDateAdapter.prototype.clone = /**
|
|
8512
|
+
* @param {?} date
|
|
8513
|
+
* @return {?}
|
|
8514
|
+
*/
|
|
8515
|
+
function (date) {
|
|
8516
|
+
return date.clone();
|
|
8517
|
+
};
|
|
8518
|
+
/**
|
|
8519
|
+
* @param {?} year
|
|
8520
|
+
* @param {?} month
|
|
8521
|
+
* @param {?} date
|
|
8522
|
+
* @return {?}
|
|
8523
|
+
*/
|
|
8524
|
+
MomentDateAdapter.prototype.createDate = /**
|
|
8525
|
+
* @param {?} year
|
|
8526
|
+
* @param {?} month
|
|
8527
|
+
* @param {?} date
|
|
8528
|
+
* @return {?}
|
|
8529
|
+
*/
|
|
8530
|
+
function (year, month, date) {
|
|
8531
|
+
return moment([year, month, date]);
|
|
8532
|
+
};
|
|
8533
|
+
/**
|
|
8534
|
+
* @return {?}
|
|
8535
|
+
*/
|
|
8536
|
+
MomentDateAdapter.prototype.today = /**
|
|
8537
|
+
* @return {?}
|
|
8538
|
+
*/
|
|
8539
|
+
function () {
|
|
8540
|
+
return moment();
|
|
8541
|
+
};
|
|
8542
|
+
/**
|
|
8543
|
+
* @param {?} value
|
|
8544
|
+
* @param {?} parseFormat
|
|
8545
|
+
* @return {?}
|
|
8546
|
+
*/
|
|
8547
|
+
MomentDateAdapter.prototype.parse = /**
|
|
8548
|
+
* @param {?} value
|
|
8549
|
+
* @param {?} parseFormat
|
|
8550
|
+
* @return {?}
|
|
8551
|
+
*/
|
|
8552
|
+
function (value, parseFormat) {
|
|
8553
|
+
/** @type {?} */
|
|
8554
|
+
var m = moment(value, parseFormat, true);
|
|
8555
|
+
if (!m.isValid()) {
|
|
8556
|
+
m = moment(value);
|
|
8557
|
+
}
|
|
8558
|
+
if (m.isValid()) {
|
|
8559
|
+
return m;
|
|
8560
|
+
}
|
|
8561
|
+
return null;
|
|
8562
|
+
};
|
|
8563
|
+
/**
|
|
8564
|
+
* @param {?} date
|
|
8565
|
+
* @param {?} displayFormat
|
|
8566
|
+
* @return {?}
|
|
8567
|
+
*/
|
|
8568
|
+
MomentDateAdapter.prototype.format = /**
|
|
8569
|
+
* @param {?} date
|
|
8570
|
+
* @param {?} displayFormat
|
|
8571
|
+
* @return {?}
|
|
8572
|
+
*/
|
|
8573
|
+
function (date, displayFormat) {
|
|
8574
|
+
if (date) {
|
|
8575
|
+
return date.format(displayFormat);
|
|
8576
|
+
}
|
|
8577
|
+
return '';
|
|
8578
|
+
};
|
|
8579
|
+
/**
|
|
8580
|
+
* @param {?} date
|
|
8581
|
+
* @param {?} years
|
|
8582
|
+
* @return {?}
|
|
8583
|
+
*/
|
|
8584
|
+
MomentDateAdapter.prototype.addCalendarYears = /**
|
|
8585
|
+
* @param {?} date
|
|
8586
|
+
* @param {?} years
|
|
8587
|
+
* @return {?}
|
|
8588
|
+
*/
|
|
8589
|
+
function (date, years) {
|
|
8590
|
+
return date.clone().add(years, 'y');
|
|
8591
|
+
};
|
|
8592
|
+
/**
|
|
8593
|
+
* @param {?} date
|
|
8594
|
+
* @param {?} months
|
|
8595
|
+
* @return {?}
|
|
8596
|
+
*/
|
|
8597
|
+
MomentDateAdapter.prototype.addCalendarMonths = /**
|
|
8598
|
+
* @param {?} date
|
|
8599
|
+
* @param {?} months
|
|
8600
|
+
* @return {?}
|
|
8601
|
+
*/
|
|
8602
|
+
function (date, months) {
|
|
8603
|
+
return date.clone().add(months, 'M');
|
|
8604
|
+
};
|
|
8605
|
+
/**
|
|
8606
|
+
* @param {?} date
|
|
8607
|
+
* @param {?} days
|
|
8608
|
+
* @return {?}
|
|
8609
|
+
*/
|
|
8610
|
+
MomentDateAdapter.prototype.addCalendarDays = /**
|
|
8611
|
+
* @param {?} date
|
|
8612
|
+
* @param {?} days
|
|
8613
|
+
* @return {?}
|
|
8614
|
+
*/
|
|
8615
|
+
function (date, days) {
|
|
8616
|
+
return date.clone().add(days, 'd');
|
|
8617
|
+
};
|
|
8618
|
+
/**
|
|
8619
|
+
* @param {?} locale
|
|
8620
|
+
* @return {?}
|
|
8621
|
+
*/
|
|
8622
|
+
MomentDateAdapter.prototype.setLocale = /**
|
|
8623
|
+
* @param {?} locale
|
|
8624
|
+
* @return {?}
|
|
8625
|
+
*/
|
|
8626
|
+
function (locale) {
|
|
8627
|
+
this.localeData = moment.localeData(locale);
|
|
8628
|
+
};
|
|
8629
|
+
/**
|
|
8630
|
+
* @param {?} first
|
|
8631
|
+
* @param {?} second
|
|
8632
|
+
* @return {?}
|
|
8633
|
+
*/
|
|
8634
|
+
MomentDateAdapter.prototype.compareDate = /**
|
|
8635
|
+
* @param {?} first
|
|
8636
|
+
* @param {?} second
|
|
8637
|
+
* @return {?}
|
|
8638
|
+
*/
|
|
8639
|
+
function (first, second) {
|
|
8640
|
+
return first.diff(second, 'seconds', true);
|
|
8641
|
+
};
|
|
8642
|
+
/**
|
|
8643
|
+
* @param {?} first
|
|
8644
|
+
* @param {?} second
|
|
8645
|
+
* @return {?}
|
|
8646
|
+
*/
|
|
8647
|
+
MomentDateAdapter.prototype.sameDate = /**
|
|
8648
|
+
* @param {?} first
|
|
8649
|
+
* @param {?} second
|
|
8650
|
+
* @return {?}
|
|
8651
|
+
*/
|
|
8652
|
+
function (first, second) {
|
|
8653
|
+
if (first == null) {
|
|
8654
|
+
return second == null;
|
|
8655
|
+
}
|
|
8656
|
+
else if (isMoment(first)) {
|
|
8657
|
+
return first.isSame(second);
|
|
8658
|
+
}
|
|
8659
|
+
return _super.prototype.sameDate.call(this, first, second);
|
|
8660
|
+
};
|
|
8661
|
+
/**
|
|
8662
|
+
* @param {?} date
|
|
8663
|
+
* @param {?=} min
|
|
8664
|
+
* @param {?=} max
|
|
8665
|
+
* @return {?}
|
|
8666
|
+
*/
|
|
8667
|
+
MomentDateAdapter.prototype.clampDate = /**
|
|
8668
|
+
* @param {?} date
|
|
8669
|
+
* @param {?=} min
|
|
8670
|
+
* @param {?=} max
|
|
8671
|
+
* @return {?}
|
|
8672
|
+
*/
|
|
8673
|
+
function (date, min, max) {
|
|
8674
|
+
if (min && date.isBefore(min)) {
|
|
8675
|
+
return min;
|
|
8676
|
+
}
|
|
8677
|
+
else if (max && date.isAfter(max)) {
|
|
8678
|
+
return max;
|
|
8679
|
+
}
|
|
8680
|
+
return date;
|
|
8681
|
+
};
|
|
8682
|
+
/**
|
|
8683
|
+
* @param {?} date
|
|
8684
|
+
* @return {?}
|
|
8685
|
+
*/
|
|
8686
|
+
MomentDateAdapter.prototype.isValid = /**
|
|
8687
|
+
* @param {?} date
|
|
8688
|
+
* @return {?}
|
|
8689
|
+
*/
|
|
8690
|
+
function (date) {
|
|
8691
|
+
return date.isValid();
|
|
8692
|
+
};
|
|
8693
|
+
/**
|
|
8694
|
+
* @param {?} obj
|
|
8695
|
+
* @return {?}
|
|
8696
|
+
*/
|
|
8697
|
+
MomentDateAdapter.prototype.isDateInstance = /**
|
|
8698
|
+
* @param {?} obj
|
|
8699
|
+
* @return {?}
|
|
8700
|
+
*/
|
|
8701
|
+
function (obj) {
|
|
8702
|
+
return moment.isMoment(obj);
|
|
8703
|
+
};
|
|
8704
|
+
/**
|
|
8705
|
+
* @param {?} date
|
|
8706
|
+
* @return {?}
|
|
8707
|
+
*/
|
|
8708
|
+
MomentDateAdapter.prototype.toIso8601 = /**
|
|
8709
|
+
* @param {?} date
|
|
8710
|
+
* @return {?}
|
|
8711
|
+
*/
|
|
8712
|
+
function (date) {
|
|
8713
|
+
return date.format();
|
|
8714
|
+
};
|
|
8715
|
+
/**
|
|
8716
|
+
* @param {?} iso8601String
|
|
8717
|
+
* @return {?}
|
|
8718
|
+
*/
|
|
8719
|
+
MomentDateAdapter.prototype.fromIso8601 = /**
|
|
8720
|
+
* @param {?} iso8601String
|
|
8721
|
+
* @return {?}
|
|
8722
|
+
*/
|
|
8723
|
+
function (iso8601String) {
|
|
8724
|
+
return moment(iso8601String);
|
|
8725
|
+
};
|
|
8726
|
+
/**
|
|
8727
|
+
* @return {?}
|
|
8728
|
+
*/
|
|
8729
|
+
MomentDateAdapter.prototype.invalid = /**
|
|
8730
|
+
* @return {?}
|
|
8731
|
+
*/
|
|
8732
|
+
function () {
|
|
8733
|
+
return undefined;
|
|
8734
|
+
};
|
|
8735
|
+
return MomentDateAdapter;
|
|
8736
|
+
}(DateAdapter));
|
|
8737
|
+
|
|
8738
|
+
/**
|
|
8739
|
+
* @fileoverview added by tsickle
|
|
8740
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8741
|
+
*/
|
|
8742
|
+
var ɵ0 = MOMENT_DATE_FORMATS;
|
|
8354
8743
|
var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
8355
8744
|
__extends(FHDatePickerComponent, _super);
|
|
8356
8745
|
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
@@ -8379,13 +8768,23 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8379
8768
|
* @return {?}
|
|
8380
8769
|
*/
|
|
8381
8770
|
function (s) {
|
|
8382
|
-
|
|
8771
|
+
console.log('s ', s);
|
|
8772
|
+
console.log('this.date_sel prima ', this.date_sel);
|
|
8383
8773
|
/** @type {?} */
|
|
8384
8774
|
var arr = s.split('/');
|
|
8385
8775
|
if (arr.length == 3) {
|
|
8386
|
-
|
|
8387
|
-
|
|
8776
|
+
console.log('arr[2]) < 3000 ', (parseInt(arr[2]) < 3000));
|
|
8777
|
+
console.log('parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 ', (parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31));
|
|
8778
|
+
console.log('parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12 ', (parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12));
|
|
8779
|
+
if (parseInt(arr[2]) < 3000 && parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 && parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12) {
|
|
8780
|
+
console.log('data ', arr);
|
|
8781
|
+
/** @type {?} */
|
|
8782
|
+
var dtp = new MomentDateAdapter();
|
|
8783
|
+
this.date_sel = dtp.createDate(parseInt(arr[2]), parseInt(arr[1]) - 1, parseInt(arr[0]));
|
|
8784
|
+
console.log('this.date_sel dopo ', this.date_sel);
|
|
8388
8785
|
}
|
|
8786
|
+
else
|
|
8787
|
+
console.log('data non valida! ', arr);
|
|
8389
8788
|
}
|
|
8390
8789
|
};
|
|
8391
8790
|
/**
|
|
@@ -8561,7 +8960,8 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8561
8960
|
{ type: Component, args: [{
|
|
8562
8961
|
selector: 'FHDatePicker',
|
|
8563
8962
|
providers: [
|
|
8564
|
-
{ provide:
|
|
8963
|
+
{ provide: MAT_DATE_FORMATS, useValue: ɵ0 },
|
|
8964
|
+
{ provide: DateAdapter, useClass: MomentDateAdapter },
|
|
8565
8965
|
{ provide: NG_VALUE_ACCESSOR, useExisting: FHDatePickerComponent, multi: true },
|
|
8566
8966
|
],
|
|
8567
8967
|
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-raised-button (click)=\"add_year()\">+1 Anno</button>\n <button mat-raised-button (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-raised-button (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\">\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch( $event)\" (focusout)=\"dt_chg($event.target.value)\"\n (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" placeholder=\"{{label}}\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
@@ -9164,18 +9564,24 @@ var FHWinComboSelect = /** @class */ (function () {
|
|
|
9164
9564
|
this.m_appService = m_appService;
|
|
9165
9565
|
this.label = "";
|
|
9166
9566
|
this.width = "";
|
|
9567
|
+
this.nota = false;
|
|
9568
|
+
this.nota_val = "";
|
|
9167
9569
|
}
|
|
9168
9570
|
/**
|
|
9169
9571
|
* @param {?} lab
|
|
9170
9572
|
* @param {?} myD
|
|
9573
|
+
* @param {?=} nota
|
|
9171
9574
|
* @return {?}
|
|
9172
9575
|
*/
|
|
9173
9576
|
FHWinComboSelect.prototype.set_selection = /**
|
|
9174
9577
|
* @param {?} lab
|
|
9175
9578
|
* @param {?} myD
|
|
9579
|
+
* @param {?=} nota
|
|
9176
9580
|
* @return {?}
|
|
9177
9581
|
*/
|
|
9178
|
-
function (lab, myD) {
|
|
9582
|
+
function (lab, myD, nota) {
|
|
9583
|
+
if (nota === void 0) { nota = false; }
|
|
9584
|
+
this.nota = nota;
|
|
9179
9585
|
this.label = lab;
|
|
9180
9586
|
for (var i = 0; i < myD.length; i++)
|
|
9181
9587
|
this.cmb_sel.add_option(myD[i]);
|
|
@@ -9191,6 +9597,7 @@ var FHWinComboSelect = /** @class */ (function () {
|
|
|
9191
9597
|
this.toastr.error('Selezionare un valore');
|
|
9192
9598
|
return;
|
|
9193
9599
|
}
|
|
9600
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
9194
9601
|
this.dialogRef.close(this.cmb_sel.getObj());
|
|
9195
9602
|
};
|
|
9196
9603
|
/**
|
|
@@ -9204,7 +9611,7 @@ var FHWinComboSelect = /** @class */ (function () {
|
|
|
9204
9611
|
FHWinComboSelect.decorators = [
|
|
9205
9612
|
{ type: Component, args: [{
|
|
9206
9613
|
selector: 'fhwincomboselect',
|
|
9207
|
-
template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
|
|
9614
|
+
template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n <mat-form-field *ngIf=\"nota\" >\n <textarea matInput placeholder=\"Nota\"[(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
|
|
9208
9615
|
}] }
|
|
9209
9616
|
];
|
|
9210
9617
|
/** @nocollapse */
|
|
@@ -18258,6 +18665,6 @@ var dt = /** @class */ (function () {
|
|
|
18258
18665
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18259
18666
|
*/
|
|
18260
18667
|
|
|
18261
|
-
export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHFieldPickListComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, win_show_image, fhimagepreview, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, FHGridToolBarComponent as
|
|
18668
|
+
export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHFieldPickListComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, win_show_image, fhimagepreview, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, FHGridToolBarComponent as ɵo, win_grid_help as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, FHViewerComponent as ɵm, SafePipe as ɵf, DecimalMask as ɵg, MOMENT_DATE_FORMATS as ɵi, MomentDateAdapter as ɵj, FHValueAccessor as ɵh, HighlightService as ɵl, win_assegna as ɵp, win_commenti as ɵu, win_commento_sel_notif as ɵba, win_conferma as ɵq, win_info_doc as ɵv, win_log as ɵw, win_recupera_doc as ɵx, win_riassegna_select_level as ɵy, win_riassegna_select_user as ɵz, win_select_canale as ɵr, win_select_level as ɵs, win_uploads as ɵt };
|
|
18262
18669
|
|
|
18263
18670
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|