@sd-angular/core 1.0.2 → 1.0.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.
- package/bundles/sd-angular-core-grid.umd.js +4 -123
- package/bundles/sd-angular-core-grid.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
- package/esm2015/grid/src/lib/grid.module.js +1 -3
- package/esm2015/grid/src/public-api.js +1 -2
- package/fesm2015/sd-angular-core-grid.js +1 -113
- package/fesm2015/sd-angular-core-grid.js.map +1 -1
- package/grid/sd-angular-core-grid.metadata.json +1 -1
- package/grid/src/public-api.d.ts +0 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.0.2.tgz → sd-angular-core-1.0.3.tgz} +0 -0
- package/esm2015/grid/src/lib/components/grid-date-picker-control/grid-date-picker-control.component.js +0 -114
- package/grid/src/lib/components/grid-date-picker-control/grid-date-picker-control.component.d.ts +0 -23
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/paginator'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/material/menu'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('ngx-device-detector'), require('jquery'), require('@sd-angular/core/api'), require('@sd-angular/core/excel'), require('@sd-angular/core/notify'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('rxjs'), require('rxjs/operators'), require('@sd-angular/core/setting'), require('object-hash'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/paginator', '@angular/material/table', '@angular/material/progress-spinner', '@angular/material/menu', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/chips', '@angular/material/radio', '@angular/material/slide-toggle', 'ngx-device-detector', 'jquery', '@sd-angular/core/api', '@sd-angular/core/excel', '@sd-angular/core/notify', '@sd-angular/core/loading', '@sd-angular/core/translate', 'rxjs', 'rxjs/operators', '@sd-angular/core/setting', 'object-hash', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.grid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.paginator, global.ng.material.table, global.ng.material.progressSpinner, global.ng.material.menu, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.chips, global.ng.material.radio, global.ng.material.slideToggle, global['ngx-device-detector'], global.jquery, global['sd-angular'].core.api, global['sd-angular'].core.excel, global['sd-angular'].core.notify, global['sd-angular'].core.loading, global['sd-angular'].core.translate, global.rxjs, global.rxjs.operators, global['sd-angular'].core.setting, global['object-hash'],
|
|
5
|
-
}(this, (function (exports, core, common, forms, formField, icon, input, paginator, table, progressSpinner, menu, button, service, tooltip, chips, radio, slideToggle, ngxDeviceDetector, $, api, excel, notify, loading, translate, rxjs, operators, setting, hash,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/paginator'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/material/menu'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('ngx-device-detector'), require('jquery'), require('@sd-angular/core/api'), require('@sd-angular/core/excel'), require('@sd-angular/core/notify'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('rxjs'), require('rxjs/operators'), require('@sd-angular/core/setting'), require('object-hash'), require('@angular/material/select'), require('@angular/material/checkbox'), require('@sd-angular/core/utility'), require('@sd-angular/core/upload-excel'), require('@sd-angular/core/form')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/paginator', '@angular/material/table', '@angular/material/progress-spinner', '@angular/material/menu', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/chips', '@angular/material/radio', '@angular/material/slide-toggle', 'ngx-device-detector', 'jquery', '@sd-angular/core/api', '@sd-angular/core/excel', '@sd-angular/core/notify', '@sd-angular/core/loading', '@sd-angular/core/translate', 'rxjs', 'rxjs/operators', '@sd-angular/core/setting', 'object-hash', '@angular/material/select', '@angular/material/checkbox', '@sd-angular/core/utility', '@sd-angular/core/upload-excel', '@sd-angular/core/form'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.grid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.paginator, global.ng.material.table, global.ng.material.progressSpinner, global.ng.material.menu, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.chips, global.ng.material.radio, global.ng.material.slideToggle, global['ngx-device-detector'], global.jquery, global['sd-angular'].core.api, global['sd-angular'].core.excel, global['sd-angular'].core.notify, global['sd-angular'].core.loading, global['sd-angular'].core.translate, global.rxjs, global.rxjs.operators, global['sd-angular'].core.setting, global['object-hash'], global.ng.material.select, global.ng.material.checkbox, global['sd-angular'].core.utility, global['sd-angular'].core['upload-excel'], global['sd-angular'].core.form));
|
|
5
|
+
}(this, (function (exports, core, common, forms, formField, icon, input, paginator, table, progressSpinner, menu, button, service, tooltip, chips, radio, slideToggle, ngxDeviceDetector, $, api, excel, notify, loading, translate, rxjs, operators, setting, hash, select, checkbox, utility, uploadExcel, form) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -3878,123 +3878,6 @@
|
|
|
3878
3878
|
subItems: [{ type: core.Input }]
|
|
3879
3879
|
};
|
|
3880
3880
|
|
|
3881
|
-
// Document: https://xdsoft.net/jqplugins/datetimepicker/
|
|
3882
|
-
var GridDatePickerControlComponent = /** @class */ (function () {
|
|
3883
|
-
function GridDatePickerControlComponent(ref, deviceService) {
|
|
3884
|
-
var _this = this;
|
|
3885
|
-
this.ref = ref;
|
|
3886
|
-
this.initialized = false;
|
|
3887
|
-
this.type = 'datetime';
|
|
3888
|
-
this.sdChange = new core.EventEmitter();
|
|
3889
|
-
this.modelChange = new core.EventEmitter();
|
|
3890
|
-
this.onFocus = function () {
|
|
3891
|
-
if (_this.isMobileOrTablet) {
|
|
3892
|
-
$__default['default'](_this.control.nativeElement).trigger('blur');
|
|
3893
|
-
}
|
|
3894
|
-
};
|
|
3895
|
-
this.onChanges = function () {
|
|
3896
|
-
_this.date = _this.pDate;
|
|
3897
|
-
};
|
|
3898
|
-
this.isMobileOrTablet = !deviceService.isDesktop();
|
|
3899
|
-
}
|
|
3900
|
-
Object.defineProperty(GridDatePickerControlComponent.prototype, "model", {
|
|
3901
|
-
set: function (val) {
|
|
3902
|
-
if (!Date.isDate(val)) {
|
|
3903
|
-
this.pDate = null;
|
|
3904
|
-
}
|
|
3905
|
-
else {
|
|
3906
|
-
if (this.type === 'datetime') {
|
|
3907
|
-
this.pDate = Date.toFormat(val, 'dd/MM/yyyy HH:mm');
|
|
3908
|
-
}
|
|
3909
|
-
else if (this.type === 'date') {
|
|
3910
|
-
this.pDate = Date.toFormat(val, 'dd/MM/yyyy');
|
|
3911
|
-
}
|
|
3912
|
-
else {
|
|
3913
|
-
this.pDate = Date.toFormat(val, 'HH:mm');
|
|
3914
|
-
}
|
|
3915
|
-
}
|
|
3916
|
-
if (this.initialized) {
|
|
3917
|
-
this.onChanges();
|
|
3918
|
-
}
|
|
3919
|
-
this.ref.detectChanges();
|
|
3920
|
-
},
|
|
3921
|
-
enumerable: false,
|
|
3922
|
-
configurable: true
|
|
3923
|
-
});
|
|
3924
|
-
GridDatePickerControlComponent.prototype.ngOnInit = function () {
|
|
3925
|
-
};
|
|
3926
|
-
GridDatePickerControlComponent.prototype.ngAfterViewInit = function () {
|
|
3927
|
-
this.onChanges();
|
|
3928
|
-
this.initialized = true;
|
|
3929
|
-
this.setOption();
|
|
3930
|
-
};
|
|
3931
|
-
GridDatePickerControlComponent.prototype.setOption = function () {
|
|
3932
|
-
var _this = this;
|
|
3933
|
-
if (this.initialized) {
|
|
3934
|
-
$__default['default'](this.control.nativeElement).datetimepicker({
|
|
3935
|
-
datepicker: this.type === 'datetime' || this.type === 'date',
|
|
3936
|
-
timepicker: this.type === 'datetime' || this.type === 'time',
|
|
3937
|
-
format: this.type === 'datetime' ? 'd/m/Y H:i' : (this.type === 'date' ? 'd/m/Y' : 'H:i'),
|
|
3938
|
-
step: 15,
|
|
3939
|
-
scrollMonth: false,
|
|
3940
|
-
scrollTime: false,
|
|
3941
|
-
scrollInput: false,
|
|
3942
|
-
onChangeDateTime: function (date) {
|
|
3943
|
-
if (!date && !_this.date) {
|
|
3944
|
-
return;
|
|
3945
|
-
}
|
|
3946
|
-
if (_this.type === 'datetime') {
|
|
3947
|
-
date = Date.toFormat(date, 'dd/MM/yyyy HH:mm');
|
|
3948
|
-
}
|
|
3949
|
-
else if (_this.type === 'time') {
|
|
3950
|
-
date = Date.toFormat(date, 'HH:mm');
|
|
3951
|
-
}
|
|
3952
|
-
else {
|
|
3953
|
-
date = Date.toFormat(date, 'dd/MM/yyyy');
|
|
3954
|
-
}
|
|
3955
|
-
if (!_this.equal(date, _this.date)) {
|
|
3956
|
-
_this.model = _this.parse(date);
|
|
3957
|
-
_this.modelChange.emit(_this.parse(date));
|
|
3958
|
-
_this.sdChange.emit(_this.parse(date));
|
|
3959
|
-
}
|
|
3960
|
-
_this.ref.detectChanges();
|
|
3961
|
-
}
|
|
3962
|
-
});
|
|
3963
|
-
}
|
|
3964
|
-
};
|
|
3965
|
-
GridDatePickerControlComponent.prototype.parse = function (date) {
|
|
3966
|
-
if (this.type === 'date') {
|
|
3967
|
-
return Date.parseFrom(date, 'dd/MM/yyyy');
|
|
3968
|
-
}
|
|
3969
|
-
else if (this.type === 'time') {
|
|
3970
|
-
return Date.parseFrom(date, 'HH:mm');
|
|
3971
|
-
}
|
|
3972
|
-
return Date.parseFrom(date, 'dd/MM/yyyy HH:mm');
|
|
3973
|
-
};
|
|
3974
|
-
GridDatePickerControlComponent.prototype.equal = function (date1, date2) {
|
|
3975
|
-
return Date.equal(this.parse(date1), this.parse(date2));
|
|
3976
|
-
};
|
|
3977
|
-
return GridDatePickerControlComponent;
|
|
3978
|
-
}());
|
|
3979
|
-
GridDatePickerControlComponent.decorators = [
|
|
3980
|
-
{ type: core.Component, args: [{
|
|
3981
|
-
selector: 'sd-grid-date-picker-control',
|
|
3982
|
-
template: "<div class=\"w-100 c-container\">\r\n <input #control class=\"form-control form-control-sm\" [ngModel]=\"date\" (focus)=\"onFocus()\">\r\n <i class=\"fa c-icon\" [ngClass]=\"{'fa-clock-o':type === 'time', 'fa-calendar':type !== 'time'}\"></i>\r\n</div>",
|
|
3983
|
-
styles: [".c-container{position:relative}.c-icon{font-size:13px!important;position:absolute;right:7px;top:calc(50% - 6px)}"]
|
|
3984
|
-
},] }
|
|
3985
|
-
];
|
|
3986
|
-
GridDatePickerControlComponent.ctorParameters = function () { return [
|
|
3987
|
-
{ type: core.ChangeDetectorRef },
|
|
3988
|
-
{ type: ngxDeviceDetector.DeviceDetectorService }
|
|
3989
|
-
]; };
|
|
3990
|
-
GridDatePickerControlComponent.propDecorators = {
|
|
3991
|
-
type: [{ type: core.Input }],
|
|
3992
|
-
sdChange: [{ type: core.Output }],
|
|
3993
|
-
model: [{ type: core.Input }],
|
|
3994
|
-
modelChange: [{ type: core.Output }],
|
|
3995
|
-
control: [{ type: core.ViewChild, args: ['control',] }]
|
|
3996
|
-
};
|
|
3997
|
-
|
|
3998
3881
|
var GridDesktopColumnChildrenViewComponent = /** @class */ (function () {
|
|
3999
3882
|
function GridDesktopColumnChildrenViewComponent() {
|
|
4000
3883
|
}
|
|
@@ -5139,7 +5022,6 @@
|
|
|
5139
5022
|
SdGridPopupQuickFilterDetail,
|
|
5140
5023
|
SdGridSubInformation,
|
|
5141
5024
|
SdGridImportExcel,
|
|
5142
|
-
GridDatePickerControlComponent,
|
|
5143
5025
|
GridDesktopColumnChildrenViewComponent,
|
|
5144
5026
|
CellDesktopClassNamePipe,
|
|
5145
5027
|
CellMobileClassNamePipe,
|
|
@@ -5210,7 +5092,6 @@
|
|
|
5210
5092
|
exports.EditorValidatePipe = EditorValidatePipe;
|
|
5211
5093
|
exports.FilterMobilePipe = FilterMobilePipe;
|
|
5212
5094
|
exports.GRID_CONFIG = GRID_CONFIG;
|
|
5213
|
-
exports.GridDatePickerControlComponent = GridDatePickerControlComponent;
|
|
5214
5095
|
exports.GridDesktopColumnChildrenViewComponent = GridDesktopColumnChildrenViewComponent;
|
|
5215
5096
|
exports.HandlerDotnet = HandlerDotnet;
|
|
5216
5097
|
exports.HandlerLocal = HandlerLocal;
|