@smartsoft001/angular 1.1.678 → 1.1.683
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-angular.umd.js +352 -300
- package/bundles/smartsoft001-angular.umd.js.map +1 -1
- package/esm2015/lib/components/base/base.component.js +5 -11
- package/esm2015/lib/components/button/button.component.js +10 -3
- package/esm2015/lib/components/components.module.js +3 -1
- package/esm2015/lib/components/details/details.component.js +7 -3
- package/esm2015/lib/components/form/form.component.js +7 -3
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/list/base/base.component.js +9 -5
- package/esm2015/lib/components/list/desktop/desktop.component.js +2 -2
- package/esm2015/lib/components/list/list.component.js +7 -3
- package/esm2015/lib/components/list/masonry-grid/masonry-grid.component.js +2 -2
- package/esm2015/lib/components/list/mobile/mobile.component.js +2 -2
- package/esm2015/lib/components/page/page.component.js +7 -3
- package/esm2015/lib/components/paging/index.js +2 -0
- package/esm2015/lib/components/paging/paging.component.js +24 -0
- package/esm2015/lib/models/interfaces.js +6 -1
- package/esm2015/smartsoft001-angular.js +105 -104
- package/fesm2015/smartsoft001-angular.js +192 -147
- package/fesm2015/smartsoft001-angular.js.map +1 -1
- package/lib/components/base/base.component.d.ts +4 -1
- package/lib/components/button/button.component.d.ts +4 -0
- package/lib/components/components.module.d.ts +2 -1
- package/lib/components/details/details.component.d.ts +4 -1
- package/lib/components/form/form.component.d.ts +4 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/list/base/base.component.d.ts +4 -3
- package/lib/components/list/list.component.d.ts +4 -1
- package/lib/components/page/page.component.d.ts +4 -1
- package/lib/components/paging/index.d.ts +1 -0
- package/lib/components/paging/paging.component.d.ts +7 -0
- package/lib/models/interfaces.d.ts +5 -0
- package/package.json +5 -5
- package/smartsoft001-angular.d.ts +104 -103
- package/smartsoft001-angular.metadata.json +1 -1
|
@@ -2815,154 +2815,6 @@
|
|
|
2815
2815
|
return DynamicComponentStorageService;
|
|
2816
2816
|
}());
|
|
2817
2817
|
|
|
2818
|
-
var DetailsDirective = /** @class */ (function () {
|
|
2819
|
-
function DetailsDirective(modalService, hardwareService) {
|
|
2820
|
-
this.modalService = modalService;
|
|
2821
|
-
this.hardwareService = hardwareService;
|
|
2822
|
-
this.smartDetailsShowed = new i0.EventEmitter();
|
|
2823
|
-
this.smartDetailsDismissed = new i0.EventEmitter();
|
|
2824
|
-
}
|
|
2825
|
-
DetailsDirective.prototype.click = function () {
|
|
2826
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2827
|
-
var modal, handler;
|
|
2828
|
-
var _this = this;
|
|
2829
|
-
return __generator(this, function (_a) {
|
|
2830
|
-
switch (_a.label) {
|
|
2831
|
-
case 0:
|
|
2832
|
-
if (!this.options || !this.options.component)
|
|
2833
|
-
return [2 /*return*/];
|
|
2834
|
-
return [4 /*yield*/, this.modalService.show({
|
|
2835
|
-
component: this.options.component,
|
|
2836
|
-
props: {
|
|
2837
|
-
value: this.options.params
|
|
2838
|
-
},
|
|
2839
|
-
mode: this.options.mode ? this.options.mode : "bottom"
|
|
2840
|
-
})];
|
|
2841
|
-
case 1:
|
|
2842
|
-
modal = _a.sent();
|
|
2843
|
-
this.smartDetailsShowed.emit();
|
|
2844
|
-
handler = this.hardwareService.onBackButtonClick(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2845
|
-
return __generator(this, function (_a) {
|
|
2846
|
-
switch (_a.label) {
|
|
2847
|
-
case 0:
|
|
2848
|
-
if (!modal) return [3 /*break*/, 2];
|
|
2849
|
-
return [4 /*yield*/, modal.dismiss()];
|
|
2850
|
-
case 1:
|
|
2851
|
-
_a.sent();
|
|
2852
|
-
_a.label = 2;
|
|
2853
|
-
case 2: return [2 /*return*/];
|
|
2854
|
-
}
|
|
2855
|
-
});
|
|
2856
|
-
}); });
|
|
2857
|
-
return [4 /*yield*/, modal.onDidDismiss()];
|
|
2858
|
-
case 2:
|
|
2859
|
-
_a.sent();
|
|
2860
|
-
handler.remove();
|
|
2861
|
-
modal = null;
|
|
2862
|
-
this.smartDetailsDismissed.emit();
|
|
2863
|
-
return [2 /*return*/];
|
|
2864
|
-
}
|
|
2865
|
-
});
|
|
2866
|
-
});
|
|
2867
|
-
};
|
|
2868
|
-
return DetailsDirective;
|
|
2869
|
-
}());
|
|
2870
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2871
|
-
DetailsDirective.decorators = [
|
|
2872
|
-
{ type: i0.Directive, args: [{
|
|
2873
|
-
selector: "[smartDetails]"
|
|
2874
|
-
},] }
|
|
2875
|
-
];
|
|
2876
|
-
/**
|
|
2877
|
-
* @type {function(): !Array<(null|{
|
|
2878
|
-
* type: ?,
|
|
2879
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
2880
|
-
* })>}
|
|
2881
|
-
* @nocollapse
|
|
2882
|
-
*/
|
|
2883
|
-
DetailsDirective.ctorParameters = function () { return [
|
|
2884
|
-
{ type: ModalService },
|
|
2885
|
-
{ type: HardwareService }
|
|
2886
|
-
]; };
|
|
2887
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
2888
|
-
DetailsDirective.propDecorators = {
|
|
2889
|
-
options: [{ type: i0.Input, args: ["smartDetails",] }],
|
|
2890
|
-
smartDetailsShowed: [{ type: i0.Output }],
|
|
2891
|
-
smartDetailsDismissed: [{ type: i0.Output }],
|
|
2892
|
-
click: [{ type: i0.HostListener, args: ["click",] }]
|
|
2893
|
-
};
|
|
2894
|
-
|
|
2895
|
-
var DATE_VALIDATOR = {
|
|
2896
|
-
provide: forms.NG_VALIDATORS,
|
|
2897
|
-
useExisting: i0.forwardRef(function () { return DateValidator; }),
|
|
2898
|
-
multi: true
|
|
2899
|
-
};
|
|
2900
|
-
var DateValidator = /** @class */ (function () {
|
|
2901
|
-
function DateValidator() {
|
|
2902
|
-
}
|
|
2903
|
-
DateValidator.prototype.validate = function (c) {
|
|
2904
|
-
if (!moment__namespace(c.value).isValid()) {
|
|
2905
|
-
return {
|
|
2906
|
-
date: true
|
|
2907
|
-
};
|
|
2908
|
-
}
|
|
2909
|
-
return null;
|
|
2910
|
-
};
|
|
2911
|
-
return DateValidator;
|
|
2912
|
-
}());
|
|
2913
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2914
|
-
DateValidator.decorators = [
|
|
2915
|
-
{ type: i0.Directive, args: [{
|
|
2916
|
-
selector: '[smartDateValidator][formControlName],[smartDateValidator][formControl],[smartDateValidator][ngModel]',
|
|
2917
|
-
providers: [DATE_VALIDATOR]
|
|
2918
|
-
},] }
|
|
2919
|
-
];
|
|
2920
|
-
|
|
2921
|
-
var DynamicContentDirective = /** @class */ (function () {
|
|
2922
|
-
function DynamicContentDirective(container) {
|
|
2923
|
-
this.container = container;
|
|
2924
|
-
}
|
|
2925
|
-
return DynamicContentDirective;
|
|
2926
|
-
}());
|
|
2927
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2928
|
-
DynamicContentDirective.decorators = [
|
|
2929
|
-
{ type: i0.Directive, args: [{
|
|
2930
|
-
// tslint:disable-next-line:directive-selector
|
|
2931
|
-
selector: ".dynamic-content"
|
|
2932
|
-
},] }
|
|
2933
|
-
];
|
|
2934
|
-
/**
|
|
2935
|
-
* @type {function(): !Array<(null|{
|
|
2936
|
-
* type: ?,
|
|
2937
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
2938
|
-
* })>}
|
|
2939
|
-
* @nocollapse
|
|
2940
|
-
*/
|
|
2941
|
-
DynamicContentDirective.ctorParameters = function () { return [
|
|
2942
|
-
{ type: i0.ViewContainerRef }
|
|
2943
|
-
]; };
|
|
2944
|
-
|
|
2945
|
-
var DIRECTIVES = [
|
|
2946
|
-
DetailsDirective,
|
|
2947
|
-
DateValidator,
|
|
2948
|
-
DynamicContentDirective
|
|
2949
|
-
];
|
|
2950
|
-
var SharedDirectivesModule = /** @class */ (function () {
|
|
2951
|
-
function SharedDirectivesModule() {
|
|
2952
|
-
}
|
|
2953
|
-
return SharedDirectivesModule;
|
|
2954
|
-
}());
|
|
2955
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2956
|
-
SharedDirectivesModule.decorators = [
|
|
2957
|
-
{ type: i0.NgModule, args: [{
|
|
2958
|
-
imports: [
|
|
2959
|
-
SharedServicesModule
|
|
2960
|
-
],
|
|
2961
|
-
declarations: __spreadArray([], __read(DIRECTIVES)),
|
|
2962
|
-
exports: __spreadArray([], __read(DIRECTIVES))
|
|
2963
|
-
},] }
|
|
2964
|
-
];
|
|
2965
|
-
|
|
2966
2818
|
var BaseComponent = /** @class */ (function () {
|
|
2967
2819
|
function BaseComponent() {
|
|
2968
2820
|
this.destroy$ = new rxjs.Subject();
|
|
@@ -3014,16 +2866,16 @@
|
|
|
3014
2866
|
this.init();
|
|
3015
2867
|
};
|
|
3016
2868
|
Component.prototype.init = function () {
|
|
3017
|
-
var _a;
|
|
2869
|
+
var _a, _b;
|
|
3018
2870
|
var component = DynamicComponentStorageService.get(this.dynamicType, this.moduleRef)[0];
|
|
3019
2871
|
this.template = component ? "custom" : "default";
|
|
3020
2872
|
if (component && !this._renderCustom) {
|
|
3021
2873
|
var factory = this.componentFactoryResolver.resolveComponentFactory(component);
|
|
3022
|
-
if (this.dynamicContents.first) {
|
|
2874
|
+
if ((_a = this.dynamicContents) === null || _a === void 0 ? void 0 : _a.first) {
|
|
3023
2875
|
this._renderCustom = true;
|
|
3024
2876
|
this.baseInstance = this.dynamicContents.first.container.createComponent(factory).instance;
|
|
3025
2877
|
this.refreshDynamicInstance();
|
|
3026
|
-
(
|
|
2878
|
+
(_b = this.baseInstance.contentTpl) === null || _b === void 0 ? void 0 : _b.createEmbeddedView(this.contentTpl);
|
|
3027
2879
|
}
|
|
3028
2880
|
}
|
|
3029
2881
|
if (this.cd)
|
|
@@ -3047,18 +2899,39 @@
|
|
|
3047
2899
|
{ type: i0.NgModuleRef },
|
|
3048
2900
|
{ type: i0.ComponentFactoryResolver }
|
|
3049
2901
|
]; };
|
|
3050
|
-
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
3051
|
-
Component.propDecorators = {
|
|
3052
|
-
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
3053
|
-
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
3054
|
-
};
|
|
3055
2902
|
return Component;
|
|
3056
2903
|
}
|
|
3057
2904
|
|
|
2905
|
+
var DynamicContentDirective = /** @class */ (function () {
|
|
2906
|
+
function DynamicContentDirective(container) {
|
|
2907
|
+
this.container = container;
|
|
2908
|
+
}
|
|
2909
|
+
return DynamicContentDirective;
|
|
2910
|
+
}());
|
|
2911
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2912
|
+
DynamicContentDirective.decorators = [
|
|
2913
|
+
{ type: i0.Directive, args: [{
|
|
2914
|
+
// tslint:disable-next-line:directive-selector
|
|
2915
|
+
selector: ".dynamic-content"
|
|
2916
|
+
},] }
|
|
2917
|
+
];
|
|
2918
|
+
/**
|
|
2919
|
+
* @type {function(): !Array<(null|{
|
|
2920
|
+
* type: ?,
|
|
2921
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
2922
|
+
* })>}
|
|
2923
|
+
* @nocollapse
|
|
2924
|
+
*/
|
|
2925
|
+
DynamicContentDirective.ctorParameters = function () { return [
|
|
2926
|
+
{ type: i0.ViewContainerRef }
|
|
2927
|
+
]; };
|
|
2928
|
+
|
|
3058
2929
|
var ButtonComponent = /** @class */ (function (_super) {
|
|
3059
2930
|
__extends(ButtonComponent, _super);
|
|
3060
2931
|
function ButtonComponent() {
|
|
3061
|
-
|
|
2932
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2933
|
+
_this.dynamicContents = new i0.QueryList();
|
|
2934
|
+
return _this;
|
|
3062
2935
|
}
|
|
3063
2936
|
Object.defineProperty(ButtonComponent.prototype, "options", {
|
|
3064
2937
|
get: function () { return this._options; },
|
|
@@ -3096,7 +2969,9 @@
|
|
|
3096
2969
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
3097
2970
|
ButtonComponent.propDecorators = {
|
|
3098
2971
|
options: [{ type: i0.Input }],
|
|
3099
|
-
disabled: [{ type: i0.Input }]
|
|
2972
|
+
disabled: [{ type: i0.Input }],
|
|
2973
|
+
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
2974
|
+
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
3100
2975
|
};
|
|
3101
2976
|
|
|
3102
2977
|
var CardComponent = /** @class */ (function () {
|
|
@@ -3466,6 +3341,7 @@
|
|
|
3466
3341
|
function DetailsComponent() {
|
|
3467
3342
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3468
3343
|
_this._subscription = new rxjs.Subscription();
|
|
3344
|
+
_this.dynamicContents = new i0.QueryList();
|
|
3469
3345
|
return _this;
|
|
3470
3346
|
}
|
|
3471
3347
|
Object.defineProperty(DetailsComponent.prototype, "options", {
|
|
@@ -3503,7 +3379,9 @@
|
|
|
3503
3379
|
];
|
|
3504
3380
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
3505
3381
|
DetailsComponent.propDecorators = {
|
|
3506
|
-
options: [{ type: i0.Input }]
|
|
3382
|
+
options: [{ type: i0.Input }],
|
|
3383
|
+
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
3384
|
+
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
3507
3385
|
};
|
|
3508
3386
|
|
|
3509
3387
|
var DetailsBaseComponent = /** @class */ (function () {
|
|
@@ -3662,6 +3540,7 @@
|
|
|
3662
3540
|
_this.valueChange = new i0.EventEmitter();
|
|
3663
3541
|
_this.valuePartialChange = new i0.EventEmitter();
|
|
3664
3542
|
_this.validChange = new i0.EventEmitter();
|
|
3543
|
+
_this.dynamicContents = new i0.QueryList();
|
|
3665
3544
|
return _this;
|
|
3666
3545
|
}
|
|
3667
3546
|
Object.defineProperty(FormComponent.prototype, "options", {
|
|
@@ -3846,7 +3725,9 @@
|
|
|
3846
3725
|
invokeSubmit: [{ type: i0.Output }],
|
|
3847
3726
|
valueChange: [{ type: i0.Output }],
|
|
3848
3727
|
valuePartialChange: [{ type: i0.Output }],
|
|
3849
|
-
validChange: [{ type: i0.Output }]
|
|
3728
|
+
validChange: [{ type: i0.Output }],
|
|
3729
|
+
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
3730
|
+
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
3850
3731
|
};
|
|
3851
3732
|
|
|
3852
3733
|
var FormBaseComponent = /** @class */ (function (_super) {
|
|
@@ -4807,6 +4688,11 @@
|
|
|
4807
4688
|
{ type: i0.ChangeDetectorRef }
|
|
4808
4689
|
]; };
|
|
4809
4690
|
|
|
4691
|
+
exports.PaginationMode = void 0;
|
|
4692
|
+
(function (PaginationMode) {
|
|
4693
|
+
PaginationMode["infiniteScroll"] = "infiniteScroll";
|
|
4694
|
+
PaginationMode["singlePage"] = "singlePage";
|
|
4695
|
+
})(exports.PaginationMode || (exports.PaginationMode = {}));
|
|
4810
4696
|
exports.ListMode = void 0;
|
|
4811
4697
|
(function (ListMode) {
|
|
4812
4698
|
ListMode["mobile"] = "mobile";
|
|
@@ -4823,6 +4709,7 @@
|
|
|
4823
4709
|
_this.moduleRef = moduleRef;
|
|
4824
4710
|
_this.componentFactoryResolver = componentFactoryResolver;
|
|
4825
4711
|
_this.ListMode = exports.ListMode;
|
|
4712
|
+
_this.dynamicContents = new i0.QueryList();
|
|
4826
4713
|
return _this;
|
|
4827
4714
|
}
|
|
4828
4715
|
Object.defineProperty(ListComponent.prototype, "options", {
|
|
@@ -4885,7 +4772,9 @@
|
|
|
4885
4772
|
]; };
|
|
4886
4773
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
4887
4774
|
ListComponent.propDecorators = {
|
|
4888
|
-
options: [{ type: i0.Input }]
|
|
4775
|
+
options: [{ type: i0.Input }],
|
|
4776
|
+
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
4777
|
+
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
4889
4778
|
};
|
|
4890
4779
|
|
|
4891
4780
|
var ListBaseComponent = /** @class */ (function () {
|
|
@@ -4898,6 +4787,7 @@
|
|
|
4898
4787
|
this.translateService = translateService;
|
|
4899
4788
|
this.removed = new Set();
|
|
4900
4789
|
this.FieldType = models.FieldType;
|
|
4790
|
+
this.PaginationMode = exports.PaginationMode;
|
|
4901
4791
|
this.detailsButtonOptions = {
|
|
4902
4792
|
loading$: this.loading$,
|
|
4903
4793
|
click: function () {
|
|
@@ -4975,34 +4865,42 @@
|
|
|
4975
4865
|
this.unselect = val.details["provider"].clearData;
|
|
4976
4866
|
}
|
|
4977
4867
|
if (val.pagination) {
|
|
4978
|
-
this.loadNextPage = function (event) {
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4868
|
+
this.loadNextPage = function (event) {
|
|
4869
|
+
if (event === void 0) { event = null; }
|
|
4870
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4871
|
+
return __generator(this, function (_a) {
|
|
4872
|
+
switch (_a.label) {
|
|
4873
|
+
case 0: return [4 /*yield*/, val.pagination.loadNextPage()];
|
|
4874
|
+
case 1:
|
|
4875
|
+
_a.sent();
|
|
4876
|
+
if (event)
|
|
4877
|
+
event.target.complete();
|
|
4878
|
+
setTimeout(function () {
|
|
4879
|
+
window.scrollTo(0, 0);
|
|
4880
|
+
});
|
|
4881
|
+
return [2 /*return*/];
|
|
4882
|
+
}
|
|
4883
|
+
});
|
|
4990
4884
|
});
|
|
4991
|
-
}
|
|
4992
|
-
this.loadPrevPage = function (event) {
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
4885
|
+
};
|
|
4886
|
+
this.loadPrevPage = function (event) {
|
|
4887
|
+
if (event === void 0) { event = null; }
|
|
4888
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4889
|
+
return __generator(this, function (_a) {
|
|
4890
|
+
switch (_a.label) {
|
|
4891
|
+
case 0: return [4 /*yield*/, val.pagination.loadPrevPage()];
|
|
4892
|
+
case 1:
|
|
4893
|
+
_a.sent();
|
|
4894
|
+
if (event)
|
|
4895
|
+
event.target.complete();
|
|
4896
|
+
setTimeout(function () {
|
|
4897
|
+
window.scrollTo(0, 10000);
|
|
4898
|
+
});
|
|
4899
|
+
return [2 /*return*/];
|
|
4900
|
+
}
|
|
4901
|
+
});
|
|
5004
4902
|
});
|
|
5005
|
-
}
|
|
4903
|
+
};
|
|
5006
4904
|
this.page$ = val.pagination.page$;
|
|
5007
4905
|
this.totalPages$ = val.pagination.totalPages$;
|
|
5008
4906
|
}
|
|
@@ -5161,7 +5059,7 @@
|
|
|
5161
5059
|
ListDesktopComponent.decorators = [
|
|
5162
5060
|
{ type: i0.Component, args: [{
|
|
5163
5061
|
selector: "smart-list-desktop",
|
|
5164
|
-
template: "<div #topTpl></div>\n\n<table mat-table matSort [dataSource]=\"list$ | async\" style=\"width: 100%\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td mat-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td mat-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n</table>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n",
|
|
5062
|
+
template: "<div #topTpl></div>\n\n<table mat-table matSort [dataSource]=\"list$ | async\" style=\"width: 100%\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th mat-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td mat-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td mat-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n</table>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n",
|
|
5165
5063
|
styles: [".cell-details{width:20px}\n", ""]
|
|
5166
5064
|
},] }
|
|
5167
5065
|
];
|
|
@@ -5213,7 +5111,7 @@
|
|
|
5213
5111
|
ListMobileComponent.decorators = [
|
|
5214
5112
|
{ type: i0.Component, args: [{
|
|
5215
5113
|
selector: "smart-list-mobile",
|
|
5216
|
-
template: "<div #topTpl></div>\n\n<ion-list>\n <ion-item-sliding *ngFor=\"let item of list$ | async\">\n <ion-item-options side=\"start\" (ionSwipe)=\"removeHandler && removeHandler(item)\" *ngIf=\"removeHandler\">\n <ion-item-option color=\"danger\" expandable (click)=\"removeHandler && removeHandler(item)\">\n {{ 'delete' | translate }}\n </ion-item-option>\n </ion-item-options>\n\n <ion-item (click)='itemHandler ? itemHandler(item.id) : unselect && unselect()'>\n <ion-label>\n <ng-container *ngFor=\"let key of keys; let first = first\">\n <ng-container *ngIf=\"item | smartListCell : key : cellPipe : type; let cell\">\n <ng-container [ngSwitch]=\"cell.type\">\n <img [attr.smart-item-key]=\"key\" *ngSwitchCase=\"FieldType.image\" height=\"100\" [lazyLoad]=\"cell.value | smartFileUrl\"> \n <ng-container *ngSwitchDefault>\n <h2 [attr.smart-item-key]=\"key\" *ngIf='first' [innerHTML]=\"cell.value\"></h2>\n <p [attr.smart-item-key]=\"key\" *ngIf='!first' [innerHTML]=\"cell.value\"></p>\n </ng-container> \n </ng-container>\n </ng-container>\n </ng-container>\n </ion-label>\n </ion-item>\n </ion-item-sliding>\n</ion-list>\n\n<ion-infinite-scroll threshold=\"100px\"
|
|
5114
|
+
template: "<div #topTpl></div>\n\n<ion-list>\n <ion-item-sliding *ngFor=\"let item of list$ | async\">\n <ion-item-options side=\"start\" (ionSwipe)=\"removeHandler && removeHandler(item)\" *ngIf=\"removeHandler\">\n <ion-item-option color=\"danger\" expandable (click)=\"removeHandler && removeHandler(item)\">\n {{ 'delete' | translate }}\n </ion-item-option>\n </ion-item-options>\n\n <ion-item (click)='itemHandler ? itemHandler(item.id) : unselect && unselect()'>\n <ion-label>\n <ng-container *ngFor=\"let key of keys; let first = first\">\n <ng-container *ngIf=\"item | smartListCell : key : cellPipe : type; let cell\">\n <ng-container [ngSwitch]=\"cell.type\">\n <img [attr.smart-item-key]=\"key\" *ngSwitchCase=\"FieldType.image\" height=\"100\" [lazyLoad]=\"cell.value | smartFileUrl\"> \n <ng-container *ngSwitchDefault>\n <h2 [attr.smart-item-key]=\"key\" *ngIf='first' [innerHTML]=\"cell.value\"></h2>\n <p [attr.smart-item-key]=\"key\" *ngIf='!first' [innerHTML]=\"cell.value\"></p>\n </ng-container> \n </ng-container>\n </ng-container>\n </ng-container>\n </ion-label>\n </ion-item>\n </ion-item-sliding>\n</ion-list>\n\n<ion-infinite-scroll threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>",
|
|
5217
5115
|
styles: [":root{--smart-color-primary: #0f4c81;--smart-color-primary-rgb: 15, 76, 129;--smart-color-primary-contrast: #ffffff;--smart-color-primary-contrast-rgb: 255, 255, 255;--smart-color-primary-shade: #0d4372;--smart-color-primary-tint: #275e8e;--smart-color-secondary: #1568b0;--smart-color-secondary-rgb: 21, 104, 176;--smart-color-secondary-contrast: #ffffff;--smart-color-secondary-contrast-rgb: 255, 255, 255;--smart-color-secondary-shade: #125c9b;--smart-color-secondary-tint: #2c77b8;--smart-color-tertiary: #0c2949;--smart-color-tertiary-rgb: 12, 41, 73;--smart-color-tertiary-contrast: #ffffff;--smart-color-tertiary-contrast-rgb: 255, 255, 255;--smart-color-tertiary-shade: #0b2440;--smart-color-tertiary-tint: #243e5b;--smart-color-success: #2dd36f;--smart-color-success-rgb: 45, 211, 111;--smart-color-success-contrast: #ffffff;--smart-color-success-contrast-rgb: 255, 255, 255;--smart-color-success-shade: #28ba62;--smart-color-success-tint: #42d77d;--smart-color-warning: #ffc409;--smart-color-warning-rgb: 255, 196, 9;--smart-color-warning-contrast: #000000;--smart-color-warning-contrast-rgb: 0, 0, 0;--smart-color-warning-shade: #e0ac08;--smart-color-warning-tint: #ffca22;--smart-color-danger: #eb445a;--smart-color-danger-rgb: 235, 68, 90;--smart-color-danger-contrast: #ffffff;--smart-color-danger-contrast-rgb: 255, 255, 255;--smart-color-danger-shade: #cf3c4f;--smart-color-danger-tint: #ed576b;--smart-color-dark: #222428;--smart-color-dark-rgb: 34, 36, 40;--smart-color-dark-contrast: #ffffff;--smart-color-dark-contrast-rgb: 255, 255, 255;--smart-color-dark-shade: #1e2023;--smart-color-dark-tint: #383a3e;--smart-color-medium: #92949c;--smart-color-medium-rgb: 146, 148, 156;--smart-color-medium-contrast: #ffffff;--smart-color-medium-contrast-rgb: 255, 255, 255;--smart-color-medium-shade: #808289;--smart-color-medium-tint: #9d9fa6;--smart-color-light: #f4f5f8;--smart-color-light-rgb: 244, 245, 248;--smart-color-light-contrast: #000000;--smart-color-light-contrast-rgb: 0, 0, 0;--smart-color-light-shade: #d7d8da;--smart-color-light-tint: #f5f6f9}:root{--smart-button-height: 3.6rem;--smart-button-min-width: 3.6rem;--smart-button-padding-right: 1.6rem;--smart-button-padding-left: 1.6rem;--smart-button-padding-top: .9rem;--smart-button-padding-bottom: .9rem;--smart-button-icon-size: 1.8rem}@font-face{font-family:\"SF Display\";font-weight:900;src:url(https://sf.abarba.me/SF-UI-Display-Black.otf)}@font-face{font-family:\"SF Display\";font-weight:700;src:url(https://sf.abarba.me/SF-UI-Display-Bold.otf)}@font-face{font-family:\"SF Display\";font-weight:800;src:url(https://sf.abarba.me/SF-UI-Display-Heavy.otf)}@font-face{font-family:\"SF Display\";font-weight:200;src:url(https://sf.abarba.me/SF-UI-Display-Light.otf)}@font-face{font-family:\"SF Display\";font-weight:500;src:url(https://sf.abarba.me/SF-UI-Display-Medium.otf)}@font-face{font-family:\"SF Display\";font-weight:400;src:url(https://sf.abarba.me/SF-UI-Display-Regular.otf)}@font-face{font-family:\"SF Display\";font-weight:600;src:url(https://sf.abarba.me/SF-UI-Display-Semibold.otf)}@font-face{font-family:\"SF Display\";font-weight:300;src:url(https://sf.abarba.me/SF-UI-Display-Thin.otf)}@font-face{font-family:\"SF Display\";font-weight:100;src:url(https://sf.abarba.me/SF-UI-Display-Ultralight.otf)}@font-face{font-family:\"SF Text\";font-weight:700;src:url(https://sf.abarba.me/SF-UI-Text-Bold.otf)}@font-face{font-family:\"SF Text\";font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-BoldItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:800;src:url(https://sf.abarba.me/SF-UI-Text-Heavy.otf)}@font-face{font-family:\"SF Text\";font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-HeavyItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:200;src:url(https://sf.abarba.me/SF-UI-Text-Light.otf)}@font-face{font-family:\"SF Text\";font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-LightItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:500;src:url(https://sf.abarba.me/SF-UI-Text-Medium.otf)}@font-face{font-family:\"SF Text\";font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-MediumItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:400;src:url(https://sf.abarba.me/SF-UI-Text-Regular.otf)}@font-face{font-family:\"SF Text\";font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-RegularItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:600;src:url(https://sf.abarba.me/SF-UI-Text-Semibold.otf)}@font-face{font-family:\"SF Text\";font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-SemiboldItalic.otf)}@font-face{font-family:\"SF Text\";font-weight:100;src:url(https://sf.abarba.me/SF-UI-Text-Ultrathin.otf)}@font-face{font-family:\"SF Text\";font-weight:100;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-UltrathinItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:700;src:url(https://sf.abarba.me/SFMono-Bold.otf)}@font-face{font-family:\"SF Mono\";font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SFMono-BoldItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:800;src:url(https://sf.abarba.me/SFMono-Heavy.otf)}@font-face{font-family:\"SF Mono\";font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SFMono-HeavyItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:200;src:url(https://sf.abarba.me/SFMono-Light.otf)}@font-face{font-family:\"SF Mono\";font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SFMono-LightItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:500;src:url(https://sf.abarba.me/SFMono-Medium.otf)}@font-face{font-family:\"SF Mono\";font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SFMono-MediumItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:400;src:url(https://sf.abarba.me/SFMono-Regular.otf)}@font-face{font-family:\"SF Mono\";font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SFMono-RegularItalic.otf)}@font-face{font-family:\"SF Mono\";font-weight:600;src:url(https://sf.abarba.me/SFMono-Semibold.otf)}@font-face{font-family:\"SF Mono\";font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SFMono-SemiboldItalic.otf)}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=biUEjW7P-lfzIZFXrcy-wQ) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=7KXg6nyyqN8gyMoNwQ7aOQ) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=daIfzbEw-lbjMyv4rMUUTj8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=iE8HhaRzdhPxC93dOdA05z8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=jB4HYzUnEmLtjz-UHQe60fesZW2xOQ-xsNqO47m55DA) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=vxNK-E6B13CyehuDCmvQvw) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=1_sFLBJZ_MiiGcnkjN_Mgg) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=MMDEOSa6i6T9gBocjYCJkQ) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=owYYXKukxFDFjr0ZO8NXhz8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:italic;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=b9PWBSMHrT2zM5FgUdtu0T8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=d-QWLnp4didxos_6urzFtg) format(\"woff\")}@font-face{font-family:\"Roboto\";font-style:normal;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=grlryt2bdKIyfMSOhzd1eA) format(\"woff\")}:root{--default-smart-font: \"Roboto\";--default-smart-font-size: 2.4rem;--default-smart-font-weight: 200;--default-smart-font-style: italic;--default-md-smart-font: \"Roboto\";--default-md-smart-font-size: 2.4rem;--default-md-smart-font-weight: bold;--default-md-smart-font-style: normal;--default-ios-smart-font: \"SF Text\";--default-ios-smart-font-size: 2.4rem;--default-ios-smart-font-weight: thin;--default-ios-smart-font-style: italic;--default-font-size: 14px;--small-font-size: 12px}:root{--smart-phone-breakpoint: 420px;--smart-tablet-breakpoint: 860px}.smart-bg-container{background:url(../assets/smart-bg.png) no-repeat center center}:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint);--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style);font-size:14px;font-size:var(--default-font-size);--ion-statusbar-padding: 0;--ion-safe-area-top: 0;--ion-safe-area-right: 0;--ion-safe-area-bottom: 0;--ion-safe-area-left: 0;--phone-breakpoint: var(--smart-phone-breakpoint);--tablet-breakpoint: var(--smart-tablet-breakpoint)}@media (prefers-color-scheme: dark){:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint)}.ios body{--ion-background-color: #ffffff;--ion-background-color-rgb: 255, 255, 255;--ion-text-color: #000000;--ion-text-color-rgb: 0, 0, 0;--ion-color-step-50: #f2f2f2;--ion-color-step-100: #e6e6e6;--ion-color-step-150: #d9d9d9;--ion-color-step-200: #cccccc;--ion-color-step-250: #bfbfbf;--ion-color-step-300: #b3b3b3;--ion-color-step-350: #a6a6a6;--ion-color-step-400: #999999;--ion-color-step-450: #8c8c8c;--ion-color-step-500: #808080;--ion-color-step-550: #737373;--ion-color-step-600: #666666;--ion-color-step-650: #595959;--ion-color-step-700: #4d4d4d;--ion-color-step-750: #404040;--ion-color-step-800: #333333;--ion-color-step-850: #262626;--ion-color-step-900: #191919;--ion-color-step-950: #0d0d0d;--ion-toolbar-background: inherit;--ion-item-background: #FFF;--ion-card-background: #FFF}.md body{--ion-background-color: #ffffff;--ion-background-color-rgb: 255, 255, 255;--ion-text-color: #000000;--ion-text-color-rgb: 0, 0, 0;--ion-color-step-50: #f2f2f2;--ion-color-step-100: #e6e6e6;--ion-color-step-150: #d9d9d9;--ion-color-step-200: #cccccc;--ion-color-step-250: #bfbfbf;--ion-color-step-300: #b3b3b3;--ion-color-step-350: #a6a6a6;--ion-color-step-400: #999999;--ion-color-step-450: #8c8c8c;--ion-color-step-500: #808080;--ion-color-step-550: #737373;--ion-color-step-600: #666666;--ion-color-step-650: #595959;--ion-color-step-700: #4d4d4d;--ion-color-step-750: #404040;--ion-color-step-800: #333333;--ion-color-step-850: #262626;--ion-color-step-900: #191919;--ion-color-step-950: #0d0d0d;--ion-toolbar-background: inherit;--ion-item-background: #FFF;--ion-card-background: #FFF}}:root[mode=md]{--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style)}:root[mode=ios]{--ion-font-family: var(--default-ios-smart-font);--default-font-weight: var(--default-ios-smart-font-weight);--default-font-style: var(--$default-ios-smart-font-style)}*{box-sizing:border-box}html{font-family:\"Roboto\";font-family:var(--ion-font-family);font-weight:bold;font-weight:var(--default-font-weight);font-style:normal;font-style:var(--default-font-style);font-size:62.5%!important}body{font-size:14px;font-size:var(--default-font-size)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#1568b0;background-color:var(--smart-color-secondary)}.mat-stepper-next{background-color:#0f4c81;background-color:var(--smart-color-primary);border:.1rem solid #0f4c81;border:.1rem solid var(--smart-color-primary);color:#f4f5f8;color:var(--smart-color-light);height:3.6rem;padding:0 .9rem;vertical-align:middle}.mat-stepper-previous{height:3.6rem;border:.1rem solid #dedede;color:#777;margin-right:.6rem;padding:0 .9rem;vertical-align:middle}ion-alert .alert-checkbox-group .alert-tappable{height:7rem!important;border:.1rem solid #efefef}ion-alert .alert-checkbox-group .alert-tappable .alert-checkbox-label{padding:.6rem 2.4rem .6rem 5.2rem!important;font-size:1.5rem!important}ion-alert .alert-checkbox-group .alert-checkbox-label{white-space:normal!important;word-wrap:break-word!important}tr.mat-row:nth-child(even){background-color:#fdfdfd}tr.mat-row:hover{background-color:#0f4c810d!important;background-color:rgba(var(--smart-color-primary-rgb),.05)!important}td.mat-cell{padding-left:.6rem!important;border-right:.1rem solid #f6f6f6;border-bottom:.1rem solid #e6e6e6;text-overflow:unset}td.mat-cell:last-child{border-right:0}td.mat-cell:first-child{padding-left:1.2rem!important}th{background-color:#f4f5f8;background-color:var(--smart-color-light);padding-left:.6rem!important}th.mat-header-cell{color:#1568b0!important;color:var(--smart-color-secondary)!important}th:first-child{padding-left:1.2rem!important}th .mat-sort-header-button{color:#1568b0;color:var(--smart-color-secondary)}ion-item{padding-left:1.2rem}\n"]
|
|
5218
5116
|
},] }
|
|
5219
5117
|
];
|
|
@@ -5263,6 +5161,7 @@
|
|
|
5263
5161
|
_this.renderer = renderer;
|
|
5264
5162
|
_this.moduleRef = moduleRef;
|
|
5265
5163
|
_this.componentFactoryResolver = componentFactoryResolver;
|
|
5164
|
+
_this.dynamicContents = new i0.QueryList();
|
|
5266
5165
|
return _this;
|
|
5267
5166
|
}
|
|
5268
5167
|
Object.defineProperty(PageComponent.prototype, "options", {
|
|
@@ -5308,7 +5207,9 @@
|
|
|
5308
5207
|
]; };
|
|
5309
5208
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
5310
5209
|
PageComponent.propDecorators = {
|
|
5311
|
-
options: [{ type: i0.Input }]
|
|
5210
|
+
options: [{ type: i0.Input }],
|
|
5211
|
+
contentTpl: [{ type: i0.ViewChild, args: ["contentTpl", { read: i0.TemplateRef, static: false },] }],
|
|
5212
|
+
dynamicContents: [{ type: i0.ViewChildren, args: [DynamicContentDirective, { read: DynamicContentDirective },] }]
|
|
5312
5213
|
};
|
|
5313
5214
|
|
|
5314
5215
|
var PageBaseComponent = /** @class */ (function () {
|
|
@@ -5499,6 +5400,130 @@
|
|
|
5499
5400
|
searchEl: [{ type: i0.ViewChild, args: ["searchbar", { static: true, read: i1.IonSearchbar },] }]
|
|
5500
5401
|
};
|
|
5501
5402
|
|
|
5403
|
+
var DetailsDirective = /** @class */ (function () {
|
|
5404
|
+
function DetailsDirective(modalService, hardwareService) {
|
|
5405
|
+
this.modalService = modalService;
|
|
5406
|
+
this.hardwareService = hardwareService;
|
|
5407
|
+
this.smartDetailsShowed = new i0.EventEmitter();
|
|
5408
|
+
this.smartDetailsDismissed = new i0.EventEmitter();
|
|
5409
|
+
}
|
|
5410
|
+
DetailsDirective.prototype.click = function () {
|
|
5411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5412
|
+
var modal, handler;
|
|
5413
|
+
var _this = this;
|
|
5414
|
+
return __generator(this, function (_a) {
|
|
5415
|
+
switch (_a.label) {
|
|
5416
|
+
case 0:
|
|
5417
|
+
if (!this.options || !this.options.component)
|
|
5418
|
+
return [2 /*return*/];
|
|
5419
|
+
return [4 /*yield*/, this.modalService.show({
|
|
5420
|
+
component: this.options.component,
|
|
5421
|
+
props: {
|
|
5422
|
+
value: this.options.params
|
|
5423
|
+
},
|
|
5424
|
+
mode: this.options.mode ? this.options.mode : "bottom"
|
|
5425
|
+
})];
|
|
5426
|
+
case 1:
|
|
5427
|
+
modal = _a.sent();
|
|
5428
|
+
this.smartDetailsShowed.emit();
|
|
5429
|
+
handler = this.hardwareService.onBackButtonClick(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5430
|
+
return __generator(this, function (_a) {
|
|
5431
|
+
switch (_a.label) {
|
|
5432
|
+
case 0:
|
|
5433
|
+
if (!modal) return [3 /*break*/, 2];
|
|
5434
|
+
return [4 /*yield*/, modal.dismiss()];
|
|
5435
|
+
case 1:
|
|
5436
|
+
_a.sent();
|
|
5437
|
+
_a.label = 2;
|
|
5438
|
+
case 2: return [2 /*return*/];
|
|
5439
|
+
}
|
|
5440
|
+
});
|
|
5441
|
+
}); });
|
|
5442
|
+
return [4 /*yield*/, modal.onDidDismiss()];
|
|
5443
|
+
case 2:
|
|
5444
|
+
_a.sent();
|
|
5445
|
+
handler.remove();
|
|
5446
|
+
modal = null;
|
|
5447
|
+
this.smartDetailsDismissed.emit();
|
|
5448
|
+
return [2 /*return*/];
|
|
5449
|
+
}
|
|
5450
|
+
});
|
|
5451
|
+
});
|
|
5452
|
+
};
|
|
5453
|
+
return DetailsDirective;
|
|
5454
|
+
}());
|
|
5455
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
5456
|
+
DetailsDirective.decorators = [
|
|
5457
|
+
{ type: i0.Directive, args: [{
|
|
5458
|
+
selector: "[smartDetails]"
|
|
5459
|
+
},] }
|
|
5460
|
+
];
|
|
5461
|
+
/**
|
|
5462
|
+
* @type {function(): !Array<(null|{
|
|
5463
|
+
* type: ?,
|
|
5464
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
5465
|
+
* })>}
|
|
5466
|
+
* @nocollapse
|
|
5467
|
+
*/
|
|
5468
|
+
DetailsDirective.ctorParameters = function () { return [
|
|
5469
|
+
{ type: ModalService },
|
|
5470
|
+
{ type: HardwareService }
|
|
5471
|
+
]; };
|
|
5472
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
5473
|
+
DetailsDirective.propDecorators = {
|
|
5474
|
+
options: [{ type: i0.Input, args: ["smartDetails",] }],
|
|
5475
|
+
smartDetailsShowed: [{ type: i0.Output }],
|
|
5476
|
+
smartDetailsDismissed: [{ type: i0.Output }],
|
|
5477
|
+
click: [{ type: i0.HostListener, args: ["click",] }]
|
|
5478
|
+
};
|
|
5479
|
+
|
|
5480
|
+
var DATE_VALIDATOR = {
|
|
5481
|
+
provide: forms.NG_VALIDATORS,
|
|
5482
|
+
useExisting: i0.forwardRef(function () { return DateValidator; }),
|
|
5483
|
+
multi: true
|
|
5484
|
+
};
|
|
5485
|
+
var DateValidator = /** @class */ (function () {
|
|
5486
|
+
function DateValidator() {
|
|
5487
|
+
}
|
|
5488
|
+
DateValidator.prototype.validate = function (c) {
|
|
5489
|
+
if (!moment__namespace(c.value).isValid()) {
|
|
5490
|
+
return {
|
|
5491
|
+
date: true
|
|
5492
|
+
};
|
|
5493
|
+
}
|
|
5494
|
+
return null;
|
|
5495
|
+
};
|
|
5496
|
+
return DateValidator;
|
|
5497
|
+
}());
|
|
5498
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
5499
|
+
DateValidator.decorators = [
|
|
5500
|
+
{ type: i0.Directive, args: [{
|
|
5501
|
+
selector: '[smartDateValidator][formControlName],[smartDateValidator][formControl],[smartDateValidator][ngModel]',
|
|
5502
|
+
providers: [DATE_VALIDATOR]
|
|
5503
|
+
},] }
|
|
5504
|
+
];
|
|
5505
|
+
|
|
5506
|
+
var DIRECTIVES = [
|
|
5507
|
+
DetailsDirective,
|
|
5508
|
+
DateValidator,
|
|
5509
|
+
DynamicContentDirective
|
|
5510
|
+
];
|
|
5511
|
+
var SharedDirectivesModule = /** @class */ (function () {
|
|
5512
|
+
function SharedDirectivesModule() {
|
|
5513
|
+
}
|
|
5514
|
+
return SharedDirectivesModule;
|
|
5515
|
+
}());
|
|
5516
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
5517
|
+
SharedDirectivesModule.decorators = [
|
|
5518
|
+
{ type: i0.NgModule, args: [{
|
|
5519
|
+
imports: [
|
|
5520
|
+
SharedServicesModule
|
|
5521
|
+
],
|
|
5522
|
+
declarations: __spreadArray([], __read(DIRECTIVES)),
|
|
5523
|
+
exports: __spreadArray([], __read(DIRECTIVES))
|
|
5524
|
+
},] }
|
|
5525
|
+
];
|
|
5526
|
+
|
|
5502
5527
|
var TabComponent = /** @class */ (function () {
|
|
5503
5528
|
function TabComponent(container) {
|
|
5504
5529
|
this.container = container;
|
|
@@ -7556,7 +7581,7 @@
|
|
|
7556
7581
|
ListMasonryGridComponent.decorators = [
|
|
7557
7582
|
{ type: i0.Component, args: [{
|
|
7558
7583
|
selector: "smart-list-masonry-grid",
|
|
7559
|
-
template: "<div #topTpl></div>\n\n<div class=\"ion-padding\">\n <div id=\"container\">\n <ion-card *ngFor=\"let item of listWithImages$ | async\" (click)='unselect && unselect()'>\n <img *ngIf=\"item.image\" [src]=\"item.image | smartFileUrl\">\n\n <ion-card-content>\n <ng-container *ngFor=\"let key of keys; let index = index\">\n <ng-container *ngIf=\"item.data | smartListCell : key : cellPipe : type; let cell\">\n <ng-container *ngIf=\"cell.value != item.image\">\n <h3 [attr.smart-item-key]=\"key\" *ngIf='index < 2' [innerHTML]=\"cell.value\"></h3>\n <p [attr.smart-item-key]=\"key\" *ngIf='index >= 2' [innerHTML]=\"cell.value\"></p>\n </ng-container>\n </ng-container>\n </ng-container>\n </ion-card-content>\n\n <ion-row>\n <ion-col size=\"auto\" *ngIf=\"removeHandler\">\n <ion-button (click)=\"removeHandler && removeHandler(item.data)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col>\n\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"itemHandler\">\n <ion-button (click)=\"itemHandler && itemHandler(item.data.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-card>\n </div>\n</div>\n\n<ion-infinite-scroll threshold=\"100px\"
|
|
7584
|
+
template: "<div #topTpl></div>\n\n<div class=\"ion-padding\">\n <div id=\"container\">\n <ion-card *ngFor=\"let item of listWithImages$ | async\" (click)='unselect && unselect()'>\n <img *ngIf=\"item.image\" [src]=\"item.image | smartFileUrl\">\n\n <ion-card-content>\n <ng-container *ngFor=\"let key of keys; let index = index\">\n <ng-container *ngIf=\"item.data | smartListCell : key : cellPipe : type; let cell\">\n <ng-container *ngIf=\"cell.value != item.image\">\n <h3 [attr.smart-item-key]=\"key\" *ngIf='index < 2' [innerHTML]=\"cell.value\"></h3>\n <p [attr.smart-item-key]=\"key\" *ngIf='index >= 2' [innerHTML]=\"cell.value\"></p>\n </ng-container>\n </ng-container>\n </ng-container>\n </ion-card-content>\n\n <ion-row>\n <ion-col size=\"auto\" *ngIf=\"removeHandler\">\n <ion-button (click)=\"removeHandler && removeHandler(item.data)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col>\n\n </ion-col>\n <ion-col size=\"auto\" *ngIf=\"itemHandler\">\n <ion-button (click)=\"itemHandler && itemHandler(item.data.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-card>\n </div>\n</div>\n\n<ion-infinite-scroll threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>",
|
|
7560
7585
|
styles: ["#container{grid-row-gap:12px;row-gap:12px;grid-column-gap:12px;-moz-column-gap:12px;column-gap:12px}#container ion-card{width:100%;margin:.6rem 0;page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid;border:.1rem solid #f4f4f4}#container ion-card h3{color:#333}#container ion-card p{color:#666}#container ion-card ion-card-content{max-height:48rem;overflow:hidden}#container ion-card ion-card-content:after{content:\"\";display:block;width:100%;height:3.2rem;background-image:linear-gradient(90deg,transparent,#FFF);position:absolute;bottom:0}@media screen and (max-width: 480px){#container{-moz-columns:1;columns:1}}@media screen and (min-width: 481px) and (max-width: 768px){#container{-moz-columns:2;columns:2}}@media screen and (min-width: 769px) and (max-width: 1023px){#container{-moz-columns:3;columns:3}}@media screen and (min-width: 1024px) and (max-width: 1599px){#container{-moz-columns:4;columns:4}}@media screen and (min-width: 1600px){#container{-moz-columns:6;columns:6}}\n"]
|
|
7561
7586
|
},] }
|
|
7562
7587
|
];
|
|
@@ -7942,6 +7967,30 @@
|
|
|
7942
7967
|
},] }
|
|
7943
7968
|
];
|
|
7944
7969
|
|
|
7970
|
+
var PagingComponent = /** @class */ (function () {
|
|
7971
|
+
function PagingComponent() {
|
|
7972
|
+
this.nextPage = new i0.EventEmitter();
|
|
7973
|
+
this.prevPage = new i0.EventEmitter();
|
|
7974
|
+
}
|
|
7975
|
+
return PagingComponent;
|
|
7976
|
+
}());
|
|
7977
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
7978
|
+
PagingComponent.decorators = [
|
|
7979
|
+
{ type: i0.Component, args: [{
|
|
7980
|
+
selector: "smart-paging",
|
|
7981
|
+
template: "<ion-grid>\n <ion-row>\n <ion-col>\n <ion-button [disabled]=\"page <= 1\" (click)=\"prevPage.emit()\">{{ 'prev' | translate }}</ion-button>\n </ion-col>\n <ion-col>\n {{ 'page' | translate }} {{ page }} / {{ totalPages }}\n </ion-col>\n <ion-col>\n <ion-button [disabled]=\"page >= totalPages\" (click)=\"nextPage.emit()\">{{ 'next' | translate }}</ion-button>\n </ion-col>\n </ion-row>\n</ion-grid>",
|
|
7982
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7983
|
+
styles: [":host{width:100%}\n"]
|
|
7984
|
+
},] }
|
|
7985
|
+
];
|
|
7986
|
+
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
7987
|
+
PagingComponent.propDecorators = {
|
|
7988
|
+
page: [{ type: i0.Input }],
|
|
7989
|
+
totalPages: [{ type: i0.Input }],
|
|
7990
|
+
nextPage: [{ type: i0.Output }],
|
|
7991
|
+
prevPage: [{ type: i0.Output }]
|
|
7992
|
+
};
|
|
7993
|
+
|
|
7945
7994
|
var APP_COMPONENTS = [AppSplitPanelComponent];
|
|
7946
7995
|
var ACCORDION_COMPONENTS = [
|
|
7947
7996
|
AccordionComponent,
|
|
@@ -8031,6 +8080,7 @@
|
|
|
8031
8080
|
]), __read(INFO_COMPONENTS)), __read(DATE_RANGE_COMPONENTS)), __read(DATE_EDIT_COMPONENTS)), [
|
|
8032
8081
|
ErrorContextComponent,
|
|
8033
8082
|
ExportComponent,
|
|
8083
|
+
PagingComponent,
|
|
8034
8084
|
ImportComponent
|
|
8035
8085
|
]);
|
|
8036
8086
|
var IMPORTS = [
|
|
@@ -8532,6 +8582,7 @@
|
|
|
8532
8582
|
exports.PageBaseComponent = PageBaseComponent;
|
|
8533
8583
|
exports.PageComponent = PageComponent;
|
|
8534
8584
|
exports.PageStandardComponent = PageStandardComponent;
|
|
8585
|
+
exports.PagingComponent = PagingComponent;
|
|
8535
8586
|
exports.PasswordStrengthComponent = PasswordStrengthComponent;
|
|
8536
8587
|
exports.PopoverService = PopoverService;
|
|
8537
8588
|
exports.ReduxAction = ReduxAction;
|
|
@@ -8592,119 +8643,120 @@
|
|
|
8592
8643
|
exports["ɵcc"] = BaseComponent;
|
|
8593
8644
|
exports["ɵcd"] = FormStepperComponent;
|
|
8594
8645
|
exports["ɵce"] = FormComponent;
|
|
8595
|
-
exports["ɵcf"] =
|
|
8596
|
-
exports["ɵcg"] =
|
|
8597
|
-
exports["ɵch"] =
|
|
8598
|
-
exports["ɵci"] =
|
|
8599
|
-
exports["ɵcj"] =
|
|
8600
|
-
exports["ɵck"] =
|
|
8601
|
-
exports["ɵcl"] =
|
|
8602
|
-
exports["ɵcm"] =
|
|
8603
|
-
exports["ɵcn"] =
|
|
8604
|
-
exports["ɵco"] =
|
|
8605
|
-
exports["ɵcp"] =
|
|
8606
|
-
exports["ɵcq"] =
|
|
8607
|
-
exports["ɵcr"] =
|
|
8608
|
-
exports["ɵcs"] =
|
|
8609
|
-
exports["ɵct"] =
|
|
8610
|
-
exports["ɵcu"] =
|
|
8611
|
-
exports["ɵcv"] =
|
|
8612
|
-
exports["ɵcw"] =
|
|
8613
|
-
exports["ɵcx"] =
|
|
8614
|
-
exports["ɵcy"] =
|
|
8615
|
-
exports["ɵcz"] =
|
|
8646
|
+
exports["ɵcf"] = DynamicContentDirective;
|
|
8647
|
+
exports["ɵcg"] = IModelExportProvider;
|
|
8648
|
+
exports["ɵch"] = MODEL_EXPORT_PROVIDER;
|
|
8649
|
+
exports["ɵci"] = IModelImportProvider;
|
|
8650
|
+
exports["ɵcj"] = MODEL_IMPORT_PROVIDER;
|
|
8651
|
+
exports["ɵck"] = AppSplitPanelComponent;
|
|
8652
|
+
exports["ɵcl"] = AppBaseComponent;
|
|
8653
|
+
exports["ɵcm"] = MenuService;
|
|
8654
|
+
exports["ɵcn"] = PageStandardComponent;
|
|
8655
|
+
exports["ɵco"] = PageBaseComponent;
|
|
8656
|
+
exports["ɵcp"] = AppService;
|
|
8657
|
+
exports["ɵcq"] = PageComponent;
|
|
8658
|
+
exports["ɵcr"] = InputComponent;
|
|
8659
|
+
exports["ɵcs"] = InputIntComponent;
|
|
8660
|
+
exports["ɵct"] = InputBaseComponent;
|
|
8661
|
+
exports["ɵcu"] = BaseComponent;
|
|
8662
|
+
exports["ɵcv"] = InputErrorComponent;
|
|
8663
|
+
exports["ɵcw"] = InputTextComponent;
|
|
8664
|
+
exports["ɵcx"] = InputPasswordComponent;
|
|
8665
|
+
exports["ɵcy"] = InputFlagComponent;
|
|
8666
|
+
exports["ɵcz"] = InputEnumComponent;
|
|
8616
8667
|
exports["ɵd"] = MODEL_VALIDATORS_PROVIDER;
|
|
8617
|
-
exports["ɵda"] =
|
|
8618
|
-
exports["ɵdb"] =
|
|
8619
|
-
exports["ɵdc"] =
|
|
8620
|
-
exports["ɵdd"] =
|
|
8621
|
-
exports["ɵde"] =
|
|
8622
|
-
exports["ɵdf"] =
|
|
8623
|
-
exports["ɵdg"] =
|
|
8624
|
-
exports["ɵdh"] =
|
|
8625
|
-
exports["ɵdi"] =
|
|
8626
|
-
exports["ɵdj"] =
|
|
8627
|
-
exports["ɵdk"] =
|
|
8628
|
-
exports["ɵdl"] =
|
|
8629
|
-
exports["ɵdm"] =
|
|
8630
|
-
exports["ɵdn"] =
|
|
8631
|
-
exports["ɵdo"] =
|
|
8632
|
-
exports["ɵdp"] =
|
|
8633
|
-
exports["ɵdq"] =
|
|
8634
|
-
exports["ɵdr"] =
|
|
8635
|
-
exports["ɵds"] =
|
|
8636
|
-
exports["ɵdt"] =
|
|
8637
|
-
exports["ɵdu"] =
|
|
8638
|
-
exports["ɵdv"] =
|
|
8639
|
-
exports["ɵdw"] =
|
|
8640
|
-
exports["ɵdx"] =
|
|
8641
|
-
exports["ɵdy"] =
|
|
8642
|
-
exports["ɵdz"] =
|
|
8668
|
+
exports["ɵda"] = InputEmailComponent;
|
|
8669
|
+
exports["ɵdb"] = InputCurrencyComponent;
|
|
8670
|
+
exports["ɵdc"] = MY_FORMATS;
|
|
8671
|
+
exports["ɵdd"] = InputDateComponent;
|
|
8672
|
+
exports["ɵde"] = InputDateWithEditComponent;
|
|
8673
|
+
exports["ɵdf"] = InputFileComponent;
|
|
8674
|
+
exports["ɵdg"] = InputRadioComponent;
|
|
8675
|
+
exports["ɵdh"] = InputPossibilitiesBaseComponent;
|
|
8676
|
+
exports["ɵdi"] = IModelPossibilitiesProvider;
|
|
8677
|
+
exports["ɵdj"] = MODEL_POSSIBILITIES_PROVIDER;
|
|
8678
|
+
exports["ɵdk"] = InputNipComponent;
|
|
8679
|
+
exports["ɵdl"] = InputStringsComponent;
|
|
8680
|
+
exports["ɵdm"] = InputLongTextComponent;
|
|
8681
|
+
exports["ɵdn"] = InputAddressComponent;
|
|
8682
|
+
exports["ɵdo"] = InputObjectComponent;
|
|
8683
|
+
exports["ɵdp"] = InputColorComponent;
|
|
8684
|
+
exports["ɵdq"] = InputLogoComponent;
|
|
8685
|
+
exports["ɵdr"] = InputCheckComponent;
|
|
8686
|
+
exports["ɵds"] = InputIntsComponent;
|
|
8687
|
+
exports["ɵdt"] = InputPhoneNumberComponent;
|
|
8688
|
+
exports["ɵdu"] = InputPeselComponent;
|
|
8689
|
+
exports["ɵdv"] = InputArrayComponent;
|
|
8690
|
+
exports["ɵdw"] = InputPdfComponent;
|
|
8691
|
+
exports["ɵdx"] = InputFileBaseComponent;
|
|
8692
|
+
exports["ɵdy"] = InputVideoComponent;
|
|
8693
|
+
exports["ɵdz"] = InputAttachmentComponent;
|
|
8643
8694
|
exports["ɵe"] = AuthService;
|
|
8644
|
-
exports["ɵea"] =
|
|
8645
|
-
exports["ɵeb"] =
|
|
8646
|
-
exports["ɵec"] =
|
|
8647
|
-
exports["ɵed"] =
|
|
8648
|
-
exports["ɵee"] =
|
|
8649
|
-
exports["ɵef"] =
|
|
8650
|
-
exports["ɵeg"] =
|
|
8651
|
-
exports["ɵeh"] =
|
|
8652
|
-
exports["ɵei"] =
|
|
8653
|
-
exports["ɵej"] =
|
|
8654
|
-
exports["ɵek"] =
|
|
8655
|
-
exports["ɵel"] =
|
|
8656
|
-
exports["ɵem"] =
|
|
8657
|
-
exports["ɵen"] =
|
|
8658
|
-
exports["ɵeo"] =
|
|
8659
|
-
exports["ɵep"] =
|
|
8660
|
-
exports["ɵeq"] =
|
|
8661
|
-
exports["ɵer"] =
|
|
8662
|
-
exports["ɵes"] =
|
|
8663
|
-
exports["ɵet"] =
|
|
8664
|
-
exports["ɵeu"] =
|
|
8665
|
-
exports["ɵev"] =
|
|
8666
|
-
exports["ɵew"] =
|
|
8667
|
-
exports["ɵex"] =
|
|
8668
|
-
exports["ɵey"] =
|
|
8669
|
-
exports["ɵez"] =
|
|
8695
|
+
exports["ɵea"] = InputDateRangeComponent;
|
|
8696
|
+
exports["ɵeb"] = InputImageComponent;
|
|
8697
|
+
exports["ɵec"] = InputFloatComponent;
|
|
8698
|
+
exports["ɵed"] = ButtonComponent;
|
|
8699
|
+
exports["ɵee"] = ButtonStandardComponent;
|
|
8700
|
+
exports["ɵef"] = ButtonBaseComponent;
|
|
8701
|
+
exports["ɵeg"] = CardComponent;
|
|
8702
|
+
exports["ɵeh"] = ListComponent;
|
|
8703
|
+
exports["ɵei"] = ListMobileComponent;
|
|
8704
|
+
exports["ɵej"] = ListBaseComponent;
|
|
8705
|
+
exports["ɵek"] = ListDesktopComponent;
|
|
8706
|
+
exports["ɵel"] = ListMasonryGridComponent;
|
|
8707
|
+
exports["ɵem"] = LoaderComponent;
|
|
8708
|
+
exports["ɵen"] = DetailComponent;
|
|
8709
|
+
exports["ɵeo"] = DetailTextComponent;
|
|
8710
|
+
exports["ɵep"] = DetailBaseComponent;
|
|
8711
|
+
exports["ɵeq"] = DetailFlagComponent;
|
|
8712
|
+
exports["ɵer"] = DetailEnumComponent;
|
|
8713
|
+
exports["ɵes"] = DetailEmailComponent;
|
|
8714
|
+
exports["ɵet"] = DetailAddressComponent;
|
|
8715
|
+
exports["ɵeu"] = DetailObjectComponent;
|
|
8716
|
+
exports["ɵev"] = DetailColorComponent;
|
|
8717
|
+
exports["ɵew"] = DetailLogoComponent;
|
|
8718
|
+
exports["ɵex"] = DetailArrayComponent;
|
|
8719
|
+
exports["ɵey"] = DetailPdfComponent;
|
|
8720
|
+
exports["ɵez"] = DetailVideoComponent;
|
|
8670
8721
|
exports["ɵf"] = StorageService;
|
|
8671
|
-
exports["ɵfa"] =
|
|
8672
|
-
exports["ɵfb"] =
|
|
8673
|
-
exports["ɵfc"] =
|
|
8674
|
-
exports["ɵfd"] =
|
|
8675
|
-
exports["ɵfe"] =
|
|
8676
|
-
exports["ɵff"] =
|
|
8677
|
-
exports["ɵfg"] =
|
|
8678
|
-
exports["ɵfh"] =
|
|
8679
|
-
exports["ɵfi"] =
|
|
8680
|
-
exports["ɵfj"] =
|
|
8681
|
-
exports["ɵfk"] =
|
|
8682
|
-
exports["ɵfl"] =
|
|
8683
|
-
exports["ɵfm"] =
|
|
8684
|
-
exports["ɵfn"] =
|
|
8685
|
-
exports["ɵfo"] =
|
|
8686
|
-
exports["ɵfp"] =
|
|
8687
|
-
exports["ɵfq"] =
|
|
8688
|
-
exports["ɵfr"] =
|
|
8689
|
-
exports["ɵfs"] =
|
|
8690
|
-
exports["ɵft"] =
|
|
8691
|
-
exports["ɵfu"] =
|
|
8692
|
-
exports["ɵfv"] =
|
|
8693
|
-
exports["ɵfw"] =
|
|
8694
|
-
exports["ɵfx"] =
|
|
8695
|
-
exports["ɵfy"] =
|
|
8696
|
-
exports["ɵfz"] =
|
|
8722
|
+
exports["ɵfa"] = DetailAttachmentComponent;
|
|
8723
|
+
exports["ɵfb"] = DetailDateRangeComponent;
|
|
8724
|
+
exports["ɵfc"] = DetailImageComponent;
|
|
8725
|
+
exports["ɵfd"] = DetailsComponent;
|
|
8726
|
+
exports["ɵfe"] = DetailsStandardComponent;
|
|
8727
|
+
exports["ɵff"] = DetailsBaseComponent;
|
|
8728
|
+
exports["ɵfg"] = SearchbarComponent;
|
|
8729
|
+
exports["ɵfh"] = TabsComponent;
|
|
8730
|
+
exports["ɵfi"] = TabComponent;
|
|
8731
|
+
exports["ɵfj"] = AccordionComponent;
|
|
8732
|
+
exports["ɵfk"] = AccordionHeaderComponent;
|
|
8733
|
+
exports["ɵfl"] = AccordionBodyComponent;
|
|
8734
|
+
exports["ɵfm"] = ChartComponent;
|
|
8735
|
+
exports["ɵfn"] = ChartLineComponent;
|
|
8736
|
+
exports["ɵfo"] = ChartBaseComponent;
|
|
8737
|
+
exports["ɵfp"] = ChartBarComponent;
|
|
8738
|
+
exports["ɵfq"] = GridComponent;
|
|
8739
|
+
exports["ɵfr"] = GridRowComponent;
|
|
8740
|
+
exports["ɵfs"] = GridColumnComponent;
|
|
8741
|
+
exports["ɵft"] = DynamicComponent;
|
|
8742
|
+
exports["ɵfu"] = PasswordStrengthComponent;
|
|
8743
|
+
exports["ɵfv"] = InfoComponent;
|
|
8744
|
+
exports["ɵfw"] = InfoModalComponent;
|
|
8745
|
+
exports["ɵfx"] = DateRangeComponent;
|
|
8746
|
+
exports["ɵfy"] = DateRangeModalComponent;
|
|
8747
|
+
exports["ɵfz"] = DateEditComponent;
|
|
8697
8748
|
exports["ɵg"] = SharedServicesModule;
|
|
8698
|
-
exports["ɵga"] =
|
|
8699
|
-
exports["ɵgb"] =
|
|
8700
|
-
exports["ɵgc"] =
|
|
8701
|
-
exports["ɵgd"] =
|
|
8702
|
-
exports["ɵge"] =
|
|
8703
|
-
exports["ɵgf"] =
|
|
8704
|
-
exports["ɵgg"] =
|
|
8705
|
-
exports["ɵgh"] =
|
|
8706
|
-
exports["ɵgi"] =
|
|
8707
|
-
exports["ɵgj"] =
|
|
8749
|
+
exports["ɵga"] = ErrorContextComponent;
|
|
8750
|
+
exports["ɵgb"] = ExportComponent;
|
|
8751
|
+
exports["ɵgc"] = PagingComponent;
|
|
8752
|
+
exports["ɵgd"] = ImportComponent;
|
|
8753
|
+
exports["ɵge"] = SharedDirectivesModule;
|
|
8754
|
+
exports["ɵgf"] = DetailsDirective;
|
|
8755
|
+
exports["ɵgg"] = DateValidator;
|
|
8756
|
+
exports["ɵgh"] = SharedPagesModule;
|
|
8757
|
+
exports["ɵgi"] = DetailsPage;
|
|
8758
|
+
exports["ɵgj"] = NgrxStoreService;
|
|
8759
|
+
exports["ɵgk"] = ErrorEffects;
|
|
8708
8760
|
exports["ɵh"] = ToastService;
|
|
8709
8761
|
exports["ɵi"] = ErrorService;
|
|
8710
8762
|
exports["ɵj"] = HardwareService;
|