@smartsoft001/crud-shell-angular 1.1.651 → 1.1.662
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/smartsoft001-crud-shell-angular.umd.js +144 -29
- package/bundles/smartsoft001-crud-shell-angular.umd.js.map +1 -1
- package/esm2015/lib/+state/crud.selectors.js +1 -1
- package/esm2015/lib/components/components.module.js +7 -6
- package/esm2015/lib/components/filter/base/base.component.js +35 -9
- package/esm2015/lib/components/filter/date/date.component.js +21 -1
- package/esm2015/lib/components/filter/date-with-edit/date-with-edit.component.js +3 -2
- package/esm2015/lib/components/filter/filter.component.js +2 -2
- package/esm2015/lib/components/filter/index.js +2 -1
- package/esm2015/lib/components/filter/int/int.component.js +31 -0
- package/esm2015/lib/components/filters/filters.component.js +4 -3
- package/esm2015/lib/crud-full.module.js +4 -4
- package/esm2015/lib/pages/list/list.component.js +2 -2
- package/esm2015/smartsoft001-crud-shell-angular.js +11 -11
- package/fesm2015/smartsoft001-crud-shell-angular.js +97 -20
- package/fesm2015/smartsoft001-crud-shell-angular.js.map +1 -1
- package/lib/+state/crud.selectors.d.ts +9 -9
- package/lib/+state/crud.selectors.d.ts.map +1 -1
- package/lib/components/components.module.d.ts.map +1 -1
- package/lib/components/components.module.ngfactory.d.ts.map +1 -1
- package/lib/components/filter/base/base.component.d.ts +5 -1
- package/lib/components/filter/base/base.component.d.ts.map +1 -1
- package/lib/components/filter/date/date.component.d.ts +5 -0
- package/lib/components/filter/date/date.component.d.ts.map +1 -1
- package/lib/components/filter/date-with-edit/date-with-edit.component.d.ts +1 -0
- package/lib/components/filter/date-with-edit/date-with-edit.component.d.ts.map +1 -1
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/filter/index.d.ts.map +1 -1
- package/lib/components/filter/int/int.component.d.ts +11 -0
- package/lib/components/filter/int/int.component.d.ts.map +1 -0
- package/lib/components/filter/int/int.component.ngfactory.d.ts.map +1 -0
- package/lib/components/filter/int/int.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/components/filters/filters.component.d.ts.map +1 -1
- package/lib/crud-full.module.ngfactory.d.ts.map +1 -1
- package/lib/crud.module.ngfactory.d.ts.map +1 -1
- package/package.json +8 -7
- package/smartsoft001-crud-shell-angular.d.ts +10 -10
- package/smartsoft001-crud-shell-angular.d.ts.map +1 -1
- package/smartsoft001-crud-shell-angular.metadata.json +1 -1
|
@@ -262,10 +262,16 @@
|
|
|
262
262
|
r[k] = a[j];
|
|
263
263
|
return r;
|
|
264
264
|
}
|
|
265
|
-
function __spreadArray(to, from) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
function __spreadArray(to, from, pack) {
|
|
266
|
+
if (pack || arguments.length === 2)
|
|
267
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
+
if (ar || !(i in from)) {
|
|
269
|
+
if (!ar)
|
|
270
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
271
|
+
ar[i] = from[i];
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
269
275
|
}
|
|
270
276
|
function __await(v) {
|
|
271
277
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -744,7 +750,7 @@
|
|
|
744
750
|
FilterComponent.decorators = [
|
|
745
751
|
{ type: i0.Component, args: [{
|
|
746
752
|
selector: "smart-crud-filter",
|
|
747
|
-
template: "<ion-item [ngSwitch]=\"item.fieldType\">\n <smart-crud-filter-date\n *ngSwitchCase=\"FieldType.date\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-date>\n\n <smart-crud-filter-date-with-edit\n *ngSwitchCase=\"FieldType.dateWithEdit\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-date-with-edit>\n\n <smart-crud-filter-radio\n *ngSwitchCase=\"FieldType.radio\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-radio>\n\n <smart-crud-filter-check\n *ngSwitchCase=\"FieldType.check\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-check>\n\n <smart-crud-filter-flag\n *ngSwitchCase=\"FieldType.flag\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-flag>\n\n <smart-crud-filter-text\n *ngSwitchDefault\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-text>\n</ion-item>\n",
|
|
753
|
+
template: "<ion-item [ngSwitch]=\"item.fieldType\">\n <smart-crud-filter-date\n *ngSwitchCase=\"FieldType.date\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-date>\n\n <smart-crud-filter-date-with-edit\n *ngSwitchCase=\"FieldType.dateWithEdit\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-date-with-edit>\n\n <smart-crud-filter-radio\n *ngSwitchCase=\"FieldType.radio\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-radio>\n\n <smart-crud-filter-check\n *ngSwitchCase=\"FieldType.check\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-check>\n\n <smart-crud-filter-flag\n *ngSwitchCase=\"FieldType.flag\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-flag>\n\n <smart-crud-filter-int\n *ngSwitchCase=\"FieldType.int\"\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-int>\n\n <smart-crud-filter-text\n *ngSwitchDefault\n [item]=\"item\"\n [filter]=\"filter\"\n ></smart-crud-filter-text>\n</ion-item>\n",
|
|
748
754
|
styles: [""]
|
|
749
755
|
},] }
|
|
750
756
|
];
|
|
@@ -798,13 +804,50 @@
|
|
|
798
804
|
enumerable: false,
|
|
799
805
|
configurable: true
|
|
800
806
|
});
|
|
801
|
-
BaseComponent.prototype
|
|
807
|
+
Object.defineProperty(BaseComponent.prototype, "minValue", {
|
|
808
|
+
get: function () {
|
|
809
|
+
var _this = this;
|
|
810
|
+
if (this.isArrayType()) {
|
|
811
|
+
return this.filter.query
|
|
812
|
+
.filter(function (q) { return q.key === _this.item.key && q.type === "<="; })
|
|
813
|
+
.map(function (q) { return q.value; });
|
|
814
|
+
}
|
|
815
|
+
var query = this.filter.query.find(function (q) { return q.key === _this.item.key && q.type === "<="; });
|
|
816
|
+
return query === null || query === void 0 ? void 0 : query.value;
|
|
817
|
+
},
|
|
818
|
+
set: function (val) {
|
|
819
|
+
this.refresh(val, "<=");
|
|
820
|
+
},
|
|
821
|
+
enumerable: false,
|
|
822
|
+
configurable: true
|
|
823
|
+
});
|
|
824
|
+
Object.defineProperty(BaseComponent.prototype, "maxValue", {
|
|
825
|
+
get: function () {
|
|
826
|
+
var _this = this;
|
|
827
|
+
if (this.isArrayType()) {
|
|
828
|
+
return this.filter.query
|
|
829
|
+
.filter(function (q) { return q.key === _this.item.key && q.type === ">="; })
|
|
830
|
+
.map(function (q) { return q.value; });
|
|
831
|
+
}
|
|
832
|
+
var query = this.filter.query.find(function (q) { return q.key === _this.item.key && q.type === ">="; });
|
|
833
|
+
return query === null || query === void 0 ? void 0 : query.value;
|
|
834
|
+
},
|
|
835
|
+
set: function (val) {
|
|
836
|
+
this.refresh(val, ">=");
|
|
837
|
+
},
|
|
838
|
+
enumerable: false,
|
|
839
|
+
configurable: true
|
|
840
|
+
});
|
|
841
|
+
BaseComponent.prototype.refresh = function (val, type) {
|
|
802
842
|
var _this = this;
|
|
843
|
+
if (type === void 0) { type = null; }
|
|
844
|
+
if (!type)
|
|
845
|
+
type = this.item.type;
|
|
803
846
|
if (this.isArrayType()) {
|
|
804
|
-
this.refreshForArray(val);
|
|
847
|
+
this.refreshForArray(val, type);
|
|
805
848
|
return;
|
|
806
849
|
}
|
|
807
|
-
var query = this.filter.query.find(function (q) { return q.key === _this.item.key && q.type ===
|
|
850
|
+
var query = this.filter.query.find(function (q) { return q.key === _this.item.key && q.type === type; });
|
|
808
851
|
if (val === null || val === undefined || val === '') {
|
|
809
852
|
var index = this.filter.query.indexOf(query);
|
|
810
853
|
if (index > -1) {
|
|
@@ -816,7 +859,7 @@
|
|
|
816
859
|
if (!query) {
|
|
817
860
|
query = {
|
|
818
861
|
key: this.item.key,
|
|
819
|
-
type:
|
|
862
|
+
type: type,
|
|
820
863
|
value: null,
|
|
821
864
|
};
|
|
822
865
|
this.filter.query.push(query);
|
|
@@ -841,9 +884,9 @@
|
|
|
841
884
|
var _a;
|
|
842
885
|
return (((_a = this.item) === null || _a === void 0 ? void 0 : _a.fieldType) === models.FieldType.check);
|
|
843
886
|
};
|
|
844
|
-
BaseComponent.prototype.refreshForArray = function (vals) {
|
|
887
|
+
BaseComponent.prototype.refreshForArray = function (vals, type) {
|
|
845
888
|
var _this = this;
|
|
846
|
-
var queries = this.filter.query.filter(function (q) { return q.key === _this.item.key && q.type ===
|
|
889
|
+
var queries = this.filter.query.filter(function (q) { return q.key === _this.item.key && q.type === type; });
|
|
847
890
|
queries.forEach(function (query) {
|
|
848
891
|
var index = _this.filter.query.indexOf(query);
|
|
849
892
|
if (index > -1) {
|
|
@@ -857,7 +900,7 @@
|
|
|
857
900
|
vals.forEach(function (val) {
|
|
858
901
|
var query = {
|
|
859
902
|
key: _this.item.key,
|
|
860
|
-
type:
|
|
903
|
+
type: type,
|
|
861
904
|
value: val,
|
|
862
905
|
};
|
|
863
906
|
_this.filter.query.push(query);
|
|
@@ -890,7 +933,7 @@
|
|
|
890
933
|
__decorate([
|
|
891
934
|
lodashDecorators.Debounce(500),
|
|
892
935
|
__metadata("design:type", Function),
|
|
893
|
-
__metadata("design:paramtypes", [Object]),
|
|
936
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
894
937
|
__metadata("design:returntype", void 0)
|
|
895
938
|
], BaseComponent.prototype, "refresh", null);
|
|
896
939
|
|
|
@@ -899,6 +942,14 @@
|
|
|
899
942
|
function FilterDateComponent() {
|
|
900
943
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
901
944
|
}
|
|
945
|
+
Object.defineProperty(FilterDateComponent.prototype, "allowAdvanced", {
|
|
946
|
+
get: function () {
|
|
947
|
+
var _a;
|
|
948
|
+
return ((_a = this.item) === null || _a === void 0 ? void 0 : _a.type) === '=';
|
|
949
|
+
},
|
|
950
|
+
enumerable: false,
|
|
951
|
+
configurable: true
|
|
952
|
+
});
|
|
902
953
|
Object.defineProperty(FilterDateComponent.prototype, "customValue", {
|
|
903
954
|
get: function () {
|
|
904
955
|
return this.value;
|
|
@@ -911,6 +962,30 @@
|
|
|
911
962
|
enumerable: false,
|
|
912
963
|
configurable: true
|
|
913
964
|
});
|
|
965
|
+
Object.defineProperty(FilterDateComponent.prototype, "customMinValue", {
|
|
966
|
+
get: function () {
|
|
967
|
+
return this.minValue;
|
|
968
|
+
},
|
|
969
|
+
set: function (val) {
|
|
970
|
+
var _a;
|
|
971
|
+
var momentDate = moment__namespace(val);
|
|
972
|
+
this.minValue = ((_a = val) === null || _a === void 0 ? void 0 : _a.length) >= 10 && momentDate.isValid() ? momentDate.format('YYYY-MM-DD') : val;
|
|
973
|
+
},
|
|
974
|
+
enumerable: false,
|
|
975
|
+
configurable: true
|
|
976
|
+
});
|
|
977
|
+
Object.defineProperty(FilterDateComponent.prototype, "customMaxValue", {
|
|
978
|
+
get: function () {
|
|
979
|
+
return this.maxValue;
|
|
980
|
+
},
|
|
981
|
+
set: function (val) {
|
|
982
|
+
var _a;
|
|
983
|
+
var momentDate = moment__namespace(val);
|
|
984
|
+
this.maxValue = ((_a = val) === null || _a === void 0 ? void 0 : _a.length) >= 10 && momentDate.isValid() ? momentDate.format('YYYY-MM-DD') : val;
|
|
985
|
+
},
|
|
986
|
+
enumerable: false,
|
|
987
|
+
configurable: true
|
|
988
|
+
});
|
|
914
989
|
return FilterDateComponent;
|
|
915
990
|
}(BaseComponent));
|
|
916
991
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
@@ -927,6 +1002,7 @@
|
|
|
927
1002
|
function FilterDateWithEditComponent() {
|
|
928
1003
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
929
1004
|
_this._subscriptions = new rxjs.Subscription();
|
|
1005
|
+
_this.advanced = false;
|
|
930
1006
|
return _this;
|
|
931
1007
|
}
|
|
932
1008
|
FilterDateWithEditComponent.prototype.open = function () {
|
|
@@ -955,7 +1031,7 @@
|
|
|
955
1031
|
FilterDateWithEditComponent.decorators = [
|
|
956
1032
|
{ type: i0.Component, args: [{
|
|
957
1033
|
selector: 'smart-crud-filter-date-with-edit',
|
|
958
|
-
template: "<ion-row>\n <ion-col>\n <ion-label
|
|
1034
|
+
template: "<ion-row>\n <ion-col>\n <ion-label>\n {{ item.label | translate }}\n </ion-label>\n\n <ion-input placeholder=\"YYYY-MM-DD\"\n [(ngModel)]=\"customValue\"\n [pattern]=\"'([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))'\"\n ></ion-input>\n <ion-datetime [hidden]=\"true\"\n displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"\n [(ngModel)]=\"customValue\"></ion-datetime>\n </ion-col>\n <ion-col size=\"auto\">\n <ion-button (click)=\"open()\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"calendar-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"allowAdvanced\">\n <ion-button (click)=\"advanced = !advanced\" class=\"squere-button\" [disabled]=\"minValue || maxValue\">\n <ion-icon *ngIf=\"!advanced\" slot=\"icon-only\" name=\"settings-outline\"></ion-icon>\n <ion-icon *ngIf=\"advanced\" slot=\"icon-only\" name=\"settings\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>\n<ion-row *ngIf=\"(advanced || minValue || maxValue) && allowAdvanced\">\n <ion-col>\n <ion-item>\n <ion-label>\n {{ 'from' | translate }}\n </ion-label>\n <ion-input placeholder=\"YYYY-MM-DD\"\n [(ngModel)]=\"customMinValue\"\n [pattern]=\"'([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))'\"\n ></ion-input>\n <ion-datetime [hidden]=\"true\"\n [(ngModel)]=\"customMinValue\"\n displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"></ion-datetime>\n </ion-item>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"customMinValue\">\n <ion-button color=\"danger\" (click)=\"refresh(null, '<=')\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col>\n <ion-item>\n <ion-label>\n {{ 'to' | translate }}\n </ion-label>\n <ion-input placeholder=\"YYYY-MM-DD\"\n [(ngModel)]=\"customMaxValue\"\n [pattern]=\"'([12]\\\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01]))'\"\n ></ion-input>\n <ion-datetime [hidden]=\"true\"\n displayFormat=\"YYYY-MM-DD\"\n pickerFormat=\"YYYY-MM-DD\"\n [(ngModel)]=\"customMaxValue\"></ion-datetime>\n </ion-item>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"customMaxValue\">\n <ion-button color=\"danger\" (click)=\"refresh(null, '>=')\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>",
|
|
959
1035
|
styles: [":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}\n"]
|
|
960
1036
|
},] }
|
|
961
1037
|
];
|
|
@@ -1048,6 +1124,41 @@
|
|
|
1048
1124
|
},] }
|
|
1049
1125
|
];
|
|
1050
1126
|
|
|
1127
|
+
var FilterIntComponent = /** @class */ (function (_super) {
|
|
1128
|
+
__extends(FilterIntComponent, _super);
|
|
1129
|
+
function FilterIntComponent() {
|
|
1130
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
1131
|
+
_this._subscriptions = new rxjs.Subscription();
|
|
1132
|
+
_this.advanced = false;
|
|
1133
|
+
return _this;
|
|
1134
|
+
}
|
|
1135
|
+
Object.defineProperty(FilterIntComponent.prototype, "allowAdvanced", {
|
|
1136
|
+
get: function () {
|
|
1137
|
+
var _a;
|
|
1138
|
+
return ((_a = this.item) === null || _a === void 0 ? void 0 : _a.type) === '=';
|
|
1139
|
+
},
|
|
1140
|
+
enumerable: false,
|
|
1141
|
+
configurable: true
|
|
1142
|
+
});
|
|
1143
|
+
FilterIntComponent.prototype.ngOnInit = function () {
|
|
1144
|
+
_super.prototype.ngOnInit.call(this);
|
|
1145
|
+
};
|
|
1146
|
+
FilterIntComponent.prototype.ngOnDestroy = function () {
|
|
1147
|
+
if (this._subscriptions) {
|
|
1148
|
+
this._subscriptions.unsubscribe();
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
return FilterIntComponent;
|
|
1152
|
+
}(BaseComponent));
|
|
1153
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1154
|
+
FilterIntComponent.decorators = [
|
|
1155
|
+
{ type: i0.Component, args: [{
|
|
1156
|
+
selector: 'smart-crud-filter-int',
|
|
1157
|
+
template: "<ion-row>\n <ion-col>\n <ion-label>\n {{ item.label | translate }}\n </ion-label>\n <ion-input [(ngModel)]=\"value\" type=\"number\" step=\"1\"></ion-input>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"allowAdvanced\">\n <ion-button (click)=\"advanced = !advanced\" class=\"squere-button\" [disabled]=\"minValue || maxValue\">\n <ion-icon *ngIf=\"!advanced\" slot=\"icon-only\" name=\"settings-outline\"></ion-icon>\n <ion-icon *ngIf=\"advanced\" slot=\"icon-only\" name=\"settings\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"value\">\n <ion-button color=\"danger\" (click)=\"refresh(null)\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>\n<ion-row *ngIf=\"(advanced || minValue || maxValue) && allowAdvanced\">\n <ion-col>\n <ion-item>\n <ion-label>\n {{ 'from' | translate }}\n </ion-label>\n <ion-input [(ngModel)]=\"minValue\" type=\"number\" step=\"1\"></ion-input>\n </ion-item>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"minValue\">\n <ion-button color=\"danger\" (click)=\"refresh(null, '<=')\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col>\n <ion-item>\n <ion-label>\n {{ 'to' | translate }}\n </ion-label>\n <ion-input [(ngModel)]=\"maxValue\" type=\"number\" step=\"1\"></ion-input>\n </ion-item>\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"maxValue\">\n <ion-button color=\"danger\" (click)=\"refresh(null, '>=')\" class=\"squere-button\">\n <ion-icon slot=\"icon-only\" name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n</ion-row>",
|
|
1158
|
+
styles: [":host{width:100%}:host .squere-button{height:var(--smart-button-height)!important;margin:.8rem}\n"]
|
|
1159
|
+
},] }
|
|
1160
|
+
];
|
|
1161
|
+
|
|
1051
1162
|
/**
|
|
1052
1163
|
* This component is only to use in crud module
|
|
1053
1164
|
* @requires CrudModule
|
|
@@ -1135,7 +1246,8 @@
|
|
|
1135
1246
|
.filter(function (item) { var _a, _b; return (_b = (_a = item.options) === null || _a === void 0 ? void 0 : _a.list) === null || _b === void 0 ? void 0 : _b.filter; })
|
|
1136
1247
|
.map(function (item) { return ({
|
|
1137
1248
|
key: item.key,
|
|
1138
|
-
type:
|
|
1249
|
+
type: item.options.type === models.FieldType.text || item.options.type === models.FieldType.longText
|
|
1250
|
+
? '~=' : '=',
|
|
1139
1251
|
label: 'MODEL.' + item.key,
|
|
1140
1252
|
fieldType: item.options.type
|
|
1141
1253
|
}); })));
|
|
@@ -1843,6 +1955,7 @@
|
|
|
1843
1955
|
FiltersComponent,
|
|
1844
1956
|
FilterFlagComponent,
|
|
1845
1957
|
FilterCheckComponent,
|
|
1958
|
+
FilterIntComponent,
|
|
1846
1959
|
MultiselectComponent,
|
|
1847
1960
|
GroupComponent
|
|
1848
1961
|
];
|
|
@@ -1855,7 +1968,6 @@
|
|
|
1855
1968
|
CrudComponentsModule.decorators = [
|
|
1856
1969
|
{ type: i0.NgModule, args: [{
|
|
1857
1970
|
declarations: __spreadArray([], __read(COMPONENTS)),
|
|
1858
|
-
entryComponents: __spreadArray([], __read(COMPONENTS)),
|
|
1859
1971
|
imports: [
|
|
1860
1972
|
//AuthSharedModule,
|
|
1861
1973
|
store.StoreModule,
|
|
@@ -1867,13 +1979,14 @@
|
|
|
1867
1979
|
exports: __spreadArray([
|
|
1868
1980
|
CrudPipesModule
|
|
1869
1981
|
], __read(COMPONENTS)),
|
|
1982
|
+
entryComponents: __spreadArray([], __read(COMPONENTS)),
|
|
1870
1983
|
providers: [
|
|
1871
1984
|
CrudService,
|
|
1872
1985
|
CrudEffects,
|
|
1873
1986
|
CrudFacade,
|
|
1874
1987
|
SocketService,
|
|
1875
1988
|
CrudListPaginationFactory,
|
|
1876
|
-
]
|
|
1989
|
+
]
|
|
1877
1990
|
},] }
|
|
1878
1991
|
];
|
|
1879
1992
|
|
|
@@ -2098,7 +2211,7 @@
|
|
|
2098
2211
|
case 1:
|
|
2099
2212
|
_h.sent();
|
|
2100
2213
|
if (((_a = this.config.list) === null || _a === void 0 ? void 0 : _a.resetQuery) === 'beforeInit') {
|
|
2101
|
-
this.facade.read(Object.assign({ query: __spreadArray([], __read(this.config.baseQuery)), paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter));
|
|
2214
|
+
this.facade.read(Object.assign({ query: this.config.baseQuery ? __spreadArray([], __read(this.config.baseQuery)) : [], paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter));
|
|
2102
2215
|
}
|
|
2103
2216
|
else {
|
|
2104
2217
|
this.facade.read(Object.assign({ paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter));
|
|
@@ -2854,7 +2967,6 @@
|
|
|
2854
2967
|
CrudFullModule.decorators = [
|
|
2855
2968
|
{ type: i0.NgModule, args: [{
|
|
2856
2969
|
declarations: __spreadArray([], __read(PAGES)),
|
|
2857
|
-
entryComponents: __spreadArray([], __read(PAGES)),
|
|
2858
2970
|
imports: [
|
|
2859
2971
|
store.StoreModule,
|
|
2860
2972
|
angular.SharedModule,
|
|
@@ -2871,6 +2983,7 @@
|
|
|
2871
2983
|
exports: __spreadArray(__spreadArray([], __read(PAGES)), [
|
|
2872
2984
|
CrudComponentsModule
|
|
2873
2985
|
]),
|
|
2986
|
+
entryComponents: __spreadArray([], __read(PAGES)),
|
|
2874
2987
|
providers: [
|
|
2875
2988
|
CrudService,
|
|
2876
2989
|
PageService,
|
|
@@ -2987,6 +3100,7 @@
|
|
|
2987
3100
|
exports.FilterDateComponent = FilterDateComponent;
|
|
2988
3101
|
exports.FilterDateWithEditComponent = FilterDateWithEditComponent;
|
|
2989
3102
|
exports.FilterFlagComponent = FilterFlagComponent;
|
|
3103
|
+
exports.FilterIntComponent = FilterIntComponent;
|
|
2990
3104
|
exports.FilterRadioComponent = FilterRadioComponent;
|
|
2991
3105
|
exports.FilterTextComponent = FilterTextComponent;
|
|
2992
3106
|
exports.FiltersComponent = FiltersComponent;
|
|
@@ -3050,16 +3164,17 @@
|
|
|
3050
3164
|
exports["ɵk"] = FiltersComponent;
|
|
3051
3165
|
exports["ɵl"] = FilterFlagComponent;
|
|
3052
3166
|
exports["ɵm"] = FilterCheckComponent;
|
|
3053
|
-
exports["ɵn"] =
|
|
3054
|
-
exports["ɵo"] =
|
|
3055
|
-
exports["ɵp"] =
|
|
3056
|
-
exports["ɵq"] =
|
|
3057
|
-
exports["ɵr"] =
|
|
3058
|
-
exports["ɵs"] =
|
|
3059
|
-
exports["ɵt"] =
|
|
3060
|
-
exports["ɵu"] =
|
|
3061
|
-
exports["ɵv"] =
|
|
3062
|
-
exports["ɵw"] =
|
|
3167
|
+
exports["ɵn"] = FilterIntComponent;
|
|
3168
|
+
exports["ɵo"] = MultiselectComponent;
|
|
3169
|
+
exports["ɵp"] = GroupComponent;
|
|
3170
|
+
exports["ɵq"] = SocketService;
|
|
3171
|
+
exports["ɵr"] = NotSocketService;
|
|
3172
|
+
exports["ɵs"] = ItemComponent;
|
|
3173
|
+
exports["ɵt"] = ItemStandardComponent;
|
|
3174
|
+
exports["ɵu"] = CrudItemPageBaseComponent;
|
|
3175
|
+
exports["ɵv"] = ListComponent;
|
|
3176
|
+
exports["ɵw"] = ListStandardComponent;
|
|
3177
|
+
exports["ɵx"] = CrudListPageBaseComponent;
|
|
3063
3178
|
|
|
3064
3179
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3065
3180
|
|