@smartbit4all/ng-client 1.1.38 → 1.1.40
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/esm2020/lib/smart-client/api/api/api.mjs +4 -0
- package/esm2020/lib/smart-client/api/api/default.service.mjs +133 -0
- package/esm2020/lib/smart-client/api/encoder.mjs +19 -0
- package/esm2020/lib/smart-client/api/index.mjs +2 -1
- package/esm2020/lib/smart-client/api/model/smartComponentLayoutDefinition.mjs +1 -1
- package/esm2020/lib/smart-client/smart-component-layout/smart-component-layout.component.mjs +21 -6
- package/esm2020/lib/smart-ng-client.module.mjs +6 -2
- package/fesm2015/smartbit4all-ng-client.mjs +225 -59
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +219 -56
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/api/api/api.d.ts +3 -0
- package/lib/smart-client/api/api/default.service.d.ts +33 -0
- package/lib/smart-client/api/encoder.d.ts +11 -0
- package/lib/smart-client/api/index.d.ts +1 -0
- package/lib/smart-client/api/model/smartComponentLayoutDefinition.d.ts +1 -0
- package/lib/smart-client/smart-component-layout/smart-component-layout.component.d.ts +3 -0
- package/lib/smart-ng-client.module.d.ts +2 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.40.tgz +0 -0
- package/smartbit4all-ng-client-1.1.38.tgz +0 -0
|
@@ -28,15 +28,17 @@ import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-b
|
|
|
28
28
|
import { Validators } from '@angular/forms';
|
|
29
29
|
import * as i1$2 from '@smartbit4all/form';
|
|
30
30
|
import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
|
|
31
|
-
import * as
|
|
31
|
+
import * as i3$2 from '@smartbit4all/grid';
|
|
32
32
|
import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
|
|
33
|
+
import * as i2$2 from '@smartbit4all/expandable-section';
|
|
34
|
+
import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
|
|
33
35
|
import { SmarttreeGenericService } from '@smartbit4all/tree';
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
* Custom HttpParameterCodec
|
|
37
39
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
38
40
|
*/
|
|
39
|
-
class CustomHttpParameterCodec$
|
|
41
|
+
class CustomHttpParameterCodec$2 {
|
|
40
42
|
encodeKey(k) {
|
|
41
43
|
return encodeURIComponent(k);
|
|
42
44
|
}
|
|
@@ -179,7 +181,7 @@ class SessionService {
|
|
|
179
181
|
}
|
|
180
182
|
this.configuration.basePath = basePath;
|
|
181
183
|
}
|
|
182
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$
|
|
184
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$2();
|
|
183
185
|
}
|
|
184
186
|
// @ts-ignore
|
|
185
187
|
addToHttpParams(httpParams, value, key) {
|
|
@@ -914,7 +916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
914
916
|
* Custom HttpParameterCodec
|
|
915
917
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
916
918
|
*/
|
|
917
|
-
class CustomHttpParameterCodec {
|
|
919
|
+
class CustomHttpParameterCodec$1 {
|
|
918
920
|
encodeKey(k) {
|
|
919
921
|
return encodeURIComponent(k);
|
|
920
922
|
}
|
|
@@ -1057,7 +1059,7 @@ class ViewService {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
this.configuration.basePath = basePath;
|
|
1059
1061
|
}
|
|
1060
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1062
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
|
|
1061
1063
|
}
|
|
1062
1064
|
/**
|
|
1063
1065
|
* @param consumes string[] mime-types
|
|
@@ -1879,7 +1881,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1879
1881
|
}] }];
|
|
1880
1882
|
} });
|
|
1881
1883
|
|
|
1882
|
-
const APIS = [ViewService];
|
|
1884
|
+
const APIS$1 = [ViewService];
|
|
1883
1885
|
|
|
1884
1886
|
/**
|
|
1885
1887
|
* View API
|
|
@@ -4457,52 +4459,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4457
4459
|
}] } });
|
|
4458
4460
|
|
|
4459
4461
|
/**
|
|
4460
|
-
*
|
|
4461
|
-
*
|
|
4462
|
-
*
|
|
4463
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4464
|
-
* Contact: info@it4all.hu
|
|
4465
|
-
*
|
|
4466
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4467
|
-
* https://openapi-generator.tech
|
|
4468
|
-
* Do not edit the class manually.
|
|
4469
|
-
*/
|
|
4470
|
-
const ComponentType = {
|
|
4471
|
-
Container: 'container',
|
|
4472
|
-
Form: 'form',
|
|
4473
|
-
Widget: 'widget'
|
|
4474
|
-
};
|
|
4475
|
-
|
|
4476
|
-
/**
|
|
4477
|
-
* Form layout definition
|
|
4478
|
-
* Contains form layout definition objects.
|
|
4479
|
-
*
|
|
4480
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4481
|
-
* Contact: info@it4all.hu
|
|
4482
|
-
*
|
|
4483
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4484
|
-
* https://openapi-generator.tech
|
|
4485
|
-
* Do not edit the class manually.
|
|
4486
|
-
*/
|
|
4487
|
-
const ComponentWidgetType = {
|
|
4488
|
-
Grid: 'grid'
|
|
4489
|
-
};
|
|
4490
|
-
|
|
4491
|
-
/**
|
|
4492
|
-
* Form layout definition
|
|
4493
|
-
* Contains form layout definition objects.
|
|
4494
|
-
*
|
|
4495
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4496
|
-
* Contact: info@it4all.hu
|
|
4497
|
-
*
|
|
4498
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4499
|
-
* https://openapi-generator.tech
|
|
4500
|
-
* Do not edit the class manually.
|
|
4462
|
+
* Custom HttpParameterCodec
|
|
4463
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
4501
4464
|
*/
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
}
|
|
4465
|
+
class CustomHttpParameterCodec {
|
|
4466
|
+
encodeKey(k) {
|
|
4467
|
+
return encodeURIComponent(k);
|
|
4468
|
+
}
|
|
4469
|
+
encodeValue(v) {
|
|
4470
|
+
return encodeURIComponent(v);
|
|
4471
|
+
}
|
|
4472
|
+
decodeKey(k) {
|
|
4473
|
+
return decodeURIComponent(k);
|
|
4474
|
+
}
|
|
4475
|
+
decodeValue(v) {
|
|
4476
|
+
return decodeURIComponent(v);
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4506
4479
|
|
|
4507
4480
|
const BASE_PATH = new InjectionToken('basePath');
|
|
4508
4481
|
const COLLECTION_FORMATS = {
|
|
@@ -4603,6 +4576,181 @@ class Configuration {
|
|
|
4603
4576
|
}
|
|
4604
4577
|
}
|
|
4605
4578
|
|
|
4579
|
+
/**
|
|
4580
|
+
* Form layout definition
|
|
4581
|
+
* Contains form layout definition objects.
|
|
4582
|
+
*
|
|
4583
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4584
|
+
* Contact: info@it4all.hu
|
|
4585
|
+
*
|
|
4586
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4587
|
+
* https://openapi-generator.tech
|
|
4588
|
+
* Do not edit the class manually.
|
|
4589
|
+
*/
|
|
4590
|
+
class DefaultService {
|
|
4591
|
+
constructor(httpClient, basePath, configuration) {
|
|
4592
|
+
this.httpClient = httpClient;
|
|
4593
|
+
this.basePath = 'http://localhost';
|
|
4594
|
+
this.defaultHeaders = new HttpHeaders();
|
|
4595
|
+
this.configuration = new Configuration();
|
|
4596
|
+
if (configuration) {
|
|
4597
|
+
this.configuration = configuration;
|
|
4598
|
+
}
|
|
4599
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
4600
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
4601
|
+
basePath = basePath[0];
|
|
4602
|
+
}
|
|
4603
|
+
if (typeof basePath !== 'string') {
|
|
4604
|
+
basePath = this.basePath;
|
|
4605
|
+
}
|
|
4606
|
+
this.configuration.basePath = basePath;
|
|
4607
|
+
}
|
|
4608
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
4609
|
+
}
|
|
4610
|
+
// @ts-ignore
|
|
4611
|
+
addToHttpParams(httpParams, value, key) {
|
|
4612
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
4613
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
4614
|
+
}
|
|
4615
|
+
else {
|
|
4616
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
4617
|
+
}
|
|
4618
|
+
return httpParams;
|
|
4619
|
+
}
|
|
4620
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
4621
|
+
if (value == null) {
|
|
4622
|
+
return httpParams;
|
|
4623
|
+
}
|
|
4624
|
+
if (typeof value === "object") {
|
|
4625
|
+
if (Array.isArray(value)) {
|
|
4626
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
4627
|
+
}
|
|
4628
|
+
else if (value instanceof Date) {
|
|
4629
|
+
if (key != null) {
|
|
4630
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
4631
|
+
}
|
|
4632
|
+
else {
|
|
4633
|
+
throw Error("key may not be null if value is Date");
|
|
4634
|
+
}
|
|
4635
|
+
}
|
|
4636
|
+
else {
|
|
4637
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
4638
|
+
}
|
|
4639
|
+
}
|
|
4640
|
+
else if (key != null) {
|
|
4641
|
+
httpParams = httpParams.append(key, value);
|
|
4642
|
+
}
|
|
4643
|
+
else {
|
|
4644
|
+
throw Error("key may not be null if value is not object or array");
|
|
4645
|
+
}
|
|
4646
|
+
return httpParams;
|
|
4647
|
+
}
|
|
4648
|
+
nopePost(observe = 'body', reportProgress = false, options) {
|
|
4649
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4650
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
4651
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
4652
|
+
// to determine the Accept header
|
|
4653
|
+
const httpHeaderAccepts = [];
|
|
4654
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4655
|
+
}
|
|
4656
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4657
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
4658
|
+
}
|
|
4659
|
+
let localVarHttpContext = options && options.context;
|
|
4660
|
+
if (localVarHttpContext === undefined) {
|
|
4661
|
+
localVarHttpContext = new HttpContext();
|
|
4662
|
+
}
|
|
4663
|
+
let responseType_ = 'json';
|
|
4664
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4665
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
4666
|
+
responseType_ = 'text';
|
|
4667
|
+
}
|
|
4668
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4669
|
+
responseType_ = 'json';
|
|
4670
|
+
}
|
|
4671
|
+
else {
|
|
4672
|
+
responseType_ = 'blob';
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
let localVarPath = `/nope`;
|
|
4676
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
4677
|
+
context: localVarHttpContext,
|
|
4678
|
+
responseType: responseType_,
|
|
4679
|
+
withCredentials: this.configuration.withCredentials,
|
|
4680
|
+
headers: localVarHeaders,
|
|
4681
|
+
observe: observe,
|
|
4682
|
+
reportProgress: reportProgress
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
DefaultService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4687
|
+
DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
|
|
4688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
|
|
4689
|
+
type: Injectable,
|
|
4690
|
+
args: [{
|
|
4691
|
+
providedIn: 'root'
|
|
4692
|
+
}]
|
|
4693
|
+
}], ctorParameters: function () {
|
|
4694
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
4695
|
+
type: Optional
|
|
4696
|
+
}, {
|
|
4697
|
+
type: Inject,
|
|
4698
|
+
args: [BASE_PATH]
|
|
4699
|
+
}] }, { type: Configuration, decorators: [{
|
|
4700
|
+
type: Optional
|
|
4701
|
+
}] }];
|
|
4702
|
+
} });
|
|
4703
|
+
|
|
4704
|
+
const APIS = [DefaultService];
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Form layout definition
|
|
4708
|
+
* Contains form layout definition objects.
|
|
4709
|
+
*
|
|
4710
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4711
|
+
* Contact: info@it4all.hu
|
|
4712
|
+
*
|
|
4713
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4714
|
+
* https://openapi-generator.tech
|
|
4715
|
+
* Do not edit the class manually.
|
|
4716
|
+
*/
|
|
4717
|
+
const ComponentType = {
|
|
4718
|
+
Container: 'container',
|
|
4719
|
+
Form: 'form',
|
|
4720
|
+
Widget: 'widget'
|
|
4721
|
+
};
|
|
4722
|
+
|
|
4723
|
+
/**
|
|
4724
|
+
* Form layout definition
|
|
4725
|
+
* Contains form layout definition objects.
|
|
4726
|
+
*
|
|
4727
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4728
|
+
* Contact: info@it4all.hu
|
|
4729
|
+
*
|
|
4730
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4731
|
+
* https://openapi-generator.tech
|
|
4732
|
+
* Do not edit the class manually.
|
|
4733
|
+
*/
|
|
4734
|
+
const ComponentWidgetType = {
|
|
4735
|
+
Grid: 'grid'
|
|
4736
|
+
};
|
|
4737
|
+
|
|
4738
|
+
/**
|
|
4739
|
+
* Form layout definition
|
|
4740
|
+
* Contains form layout definition objects.
|
|
4741
|
+
*
|
|
4742
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4743
|
+
* Contact: info@it4all.hu
|
|
4744
|
+
*
|
|
4745
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4746
|
+
* https://openapi-generator.tech
|
|
4747
|
+
* Do not edit the class manually.
|
|
4748
|
+
*/
|
|
4749
|
+
const LayoutDirection = {
|
|
4750
|
+
Horizontal: 'horizontal',
|
|
4751
|
+
Vertical: 'vertical'
|
|
4752
|
+
};
|
|
4753
|
+
|
|
4606
4754
|
class ApiModule {
|
|
4607
4755
|
constructor(parentModule, http) {
|
|
4608
4756
|
if (parentModule) {
|
|
@@ -4646,14 +4794,18 @@ class SmartComponentLayoutComponent {
|
|
|
4646
4794
|
this.layoutService = layoutService;
|
|
4647
4795
|
}
|
|
4648
4796
|
ngOnChanges(changes) {
|
|
4649
|
-
var _a, _b, _c, _d;
|
|
4797
|
+
var _a, _b, _c, _d, _e;
|
|
4650
4798
|
this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
|
|
4651
4799
|
this.uuid = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.parentComponent.uuid;
|
|
4652
|
-
if (((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.type) === ComponentType.
|
|
4800
|
+
if (((_b = this.smartComponentLayout) === null || _b === void 0 ? void 0 : _b.type) === ComponentType.Container &&
|
|
4801
|
+
this.smartComponentLayout.expandable) {
|
|
4802
|
+
this.constructExpandableSection();
|
|
4803
|
+
}
|
|
4804
|
+
else if (((_c = this.smartComponentLayout) === null || _c === void 0 ? void 0 : _c.type) === ComponentType.Form) {
|
|
4653
4805
|
this.constructForm();
|
|
4654
4806
|
}
|
|
4655
|
-
else if (((
|
|
4656
|
-
if (((
|
|
4807
|
+
else if (((_d = this.smartComponentLayout) === null || _d === void 0 ? void 0 : _d.type) === ComponentType.Widget) {
|
|
4808
|
+
if (((_e = this.smartComponentLayout.widget) === null || _e === void 0 ? void 0 : _e.type) === ComponentWidgetType.Grid) {
|
|
4657
4809
|
this.constructGrid();
|
|
4658
4810
|
}
|
|
4659
4811
|
}
|
|
@@ -4661,6 +4813,17 @@ class SmartComponentLayoutComponent {
|
|
|
4661
4813
|
type() {
|
|
4662
4814
|
return ComponentType;
|
|
4663
4815
|
}
|
|
4816
|
+
constructExpandableSection() {
|
|
4817
|
+
var _a, _b;
|
|
4818
|
+
let data = Object.assign({}, this.smartComponentLayout);
|
|
4819
|
+
data.expandable = false;
|
|
4820
|
+
this.expandableSection = {
|
|
4821
|
+
title: (_b = (_a = this.smartComponentLayout) === null || _a === void 0 ? void 0 : _a.expandableSectionLabel) !== null && _b !== void 0 ? _b : '',
|
|
4822
|
+
data,
|
|
4823
|
+
inputName: 'smartComponentLayout',
|
|
4824
|
+
customComponent: SmartComponentLayoutComponent,
|
|
4825
|
+
};
|
|
4826
|
+
}
|
|
4664
4827
|
constructForm() {
|
|
4665
4828
|
var _a, _b, _c, _d, _e;
|
|
4666
4829
|
const widgets = this.layoutService.render({
|
|
@@ -4702,10 +4865,10 @@ class SmartComponentLayoutComponent {
|
|
|
4702
4865
|
}
|
|
4703
4866
|
}
|
|
4704
4867
|
SmartComponentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, deps: [{ token: i1$2.SmartformLayoutDefinitionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4705
|
-
SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "formChild", first: true, predicate: ["form"], descendants: true }, { propertyName: "gridChild", first: true, predicate: ["grid"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n>\n
|
|
4868
|
+
SmartComponentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: { smartComponentLayout: "smartComponentLayout" }, viewQueries: [{ propertyName: "formChild", first: true, predicate: ["form"], descendants: true }, { propertyName: "gridChild", first: true, predicate: ["grid"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n *ngIf=\"\n smartComponentLayout?.type === type().Container && smartComponentLayout?.expandable;\n then expandable;\n else normal\n \"\n>\n</div>\n\n<ng-template #expandable>\n <smart-expandable-section\n *ngIf=\"expandableSection\"\n [data]=\"expandableSection\"\n ></smart-expandable-section>\n</ng-template>\n\n<ng-template #normal>\n <div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n >\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n </div>\n <smartform #form [smartForm]=\"smartForm\"></smartform>\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\n</ng-template>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"], components: [{ type: i2$2.ExpandableSectionComponent, selector: "smart-expandable-section", inputs: ["data", "index"] }, { type: SmartComponentLayoutComponent, selector: "smart-component-layout", inputs: ["smartComponentLayout"] }, { type: i1$2.SmartformComponent, selector: "smartform", inputs: ["smartForm"] }, { type: i3$2.SmartGridComponent, selector: "smart-grid", inputs: ["smartGrid", "uuid", "dev"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
4706
4869
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
4707
4870
|
type: Component,
|
|
4708
|
-
args: [{ selector: 'smart-component-layout', template: "<div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n>\n
|
|
4871
|
+
args: [{ selector: 'smart-component-layout', template: "<div\n *ngIf=\"\n smartComponentLayout?.type === type().Container && smartComponentLayout?.expandable;\n then expandable;\n else normal\n \"\n>\n</div>\n\n<ng-template #expandable>\n <smart-expandable-section\n *ngIf=\"expandableSection\"\n [data]=\"expandableSection\"\n ></smart-expandable-section>\n</ng-template>\n\n<ng-template #normal>\n <div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n >\n <smart-component-layout\n [smartComponentLayout]=\"layout\"\n *ngFor=\"let layout of smartComponentLayout?.components\"\n ></smart-component-layout>\n </div>\n <smartform #form [smartForm]=\"smartForm\"></smartform>\n <smart-grid #grid [smartGrid]=\"smartGrid\" [uuid]=\"uuid!\"></smart-grid>\n</ng-template>\n", styles: [".horizontal{display:flex;flex-direction:row}.vertical{display:flex;flex-direction:column}\n"] }]
|
|
4709
4872
|
}], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
4710
4873
|
type: Input
|
|
4711
4874
|
}], formChild: [{
|
|
@@ -4724,7 +4887,8 @@ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
4724
4887
|
SmartSessionModule,
|
|
4725
4888
|
SmartViewContextModule,
|
|
4726
4889
|
SmartformModule,
|
|
4727
|
-
SmartGridModule
|
|
4890
|
+
SmartGridModule,
|
|
4891
|
+
SmartExpandableSectionModule], exports: [SmartSessionModule,
|
|
4728
4892
|
SmartViewContextModule,
|
|
4729
4893
|
SmartFileUploaderComponent,
|
|
4730
4894
|
SmartComponentLayoutComponent] });
|
|
@@ -4735,6 +4899,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
4735
4899
|
SmartViewContextModule,
|
|
4736
4900
|
SmartformModule,
|
|
4737
4901
|
SmartGridModule,
|
|
4902
|
+
SmartExpandableSectionModule,
|
|
4738
4903
|
], SmartSessionModule,
|
|
4739
4904
|
SmartViewContextModule] });
|
|
4740
4905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
|
|
@@ -4748,6 +4913,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4748
4913
|
SmartViewContextModule,
|
|
4749
4914
|
SmartformModule,
|
|
4750
4915
|
SmartGridModule,
|
|
4916
|
+
SmartExpandableSectionModule,
|
|
4751
4917
|
],
|
|
4752
4918
|
exports: [
|
|
4753
4919
|
SmartSessionModule,
|
|
@@ -5219,5 +5385,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5219
5385
|
* Generated bundle index. Do not edit.
|
|
5220
5386
|
*/
|
|
5221
5387
|
|
|
5222
|
-
export { APIS, ApiModule$1 as ApiModule, ApiQueueService, BASE_PATH$1 as BASE_PATH, COLLECTION_FORMATS$1 as COLLECTION_FORMATS, CloseResult, ComponentType, ComponentWidgetType, Configuration$1 as Configuration, DataChangeKind, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartFileUploaderComponent, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
5388
|
+
export { APIS$1 as APIS, ApiModule$1 as ApiModule, ApiQueueService, BASE_PATH$1 as BASE_PATH, COLLECTION_FORMATS$1 as COLLECTION_FORMATS, CloseResult, ComponentType, ComponentWidgetType, Configuration$1 as Configuration, DataChangeKind, IS_ASYNC_PARAM_NAME, LayoutDirection, MessageOptionType, MessageType, SessionAPIS, SessionErrorBehaviour, SessionService, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartDevToolDatePipe, SmartDevToolFloatingButtonComponent, SmartDevToolService, SmartFileUploaderComponent, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, UiActionButtonIconPos, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, ViewEventHandler, ViewService, ViewState, ViewType, WidgetMap };
|
|
5223
5389
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|