@smartbit4all/ng-client 1.1.38 → 1.1.39
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 +20 -6
- package/esm2020/lib/smart-ng-client.module.mjs +6 -2
- package/fesm2015/smartbit4all-ng-client.mjs +224 -59
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +218 -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.39.tgz +0 -0
- package/smartbit4all-ng-client-1.1.38.tgz +0 -0
|
@@ -27,8 +27,10 @@ import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-b
|
|
|
27
27
|
import { Validators } from '@angular/forms';
|
|
28
28
|
import * as i1$2 from '@smartbit4all/form';
|
|
29
29
|
import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i3$2 from '@smartbit4all/grid';
|
|
31
31
|
import { SmartLayoutDef, GridUiActionType, SmartGridModule, SmartGridComponent } from '@smartbit4all/grid';
|
|
32
|
+
import * as i2$2 from '@smartbit4all/expandable-section';
|
|
33
|
+
import { SmartExpandableSectionModule } from '@smartbit4all/expandable-section';
|
|
32
34
|
import { __decorate, __param } from 'tslib';
|
|
33
35
|
import { SmarttreeGenericService } from '@smartbit4all/tree';
|
|
34
36
|
|
|
@@ -36,7 +38,7 @@ import { SmarttreeGenericService } from '@smartbit4all/tree';
|
|
|
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) {
|
|
@@ -951,7 +953,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
951
953
|
* Custom HttpParameterCodec
|
|
952
954
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
953
955
|
*/
|
|
954
|
-
class CustomHttpParameterCodec {
|
|
956
|
+
class CustomHttpParameterCodec$1 {
|
|
955
957
|
encodeKey(k) {
|
|
956
958
|
return encodeURIComponent(k);
|
|
957
959
|
}
|
|
@@ -1094,7 +1096,7 @@ class ViewService {
|
|
|
1094
1096
|
}
|
|
1095
1097
|
this.configuration.basePath = basePath;
|
|
1096
1098
|
}
|
|
1097
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1099
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec$1();
|
|
1098
1100
|
}
|
|
1099
1101
|
/**
|
|
1100
1102
|
* @param consumes string[] mime-types
|
|
@@ -1914,7 +1916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1914
1916
|
type: Optional
|
|
1915
1917
|
}] }]; } });
|
|
1916
1918
|
|
|
1917
|
-
const APIS = [ViewService];
|
|
1919
|
+
const APIS$1 = [ViewService];
|
|
1918
1920
|
|
|
1919
1921
|
/**
|
|
1920
1922
|
* View API
|
|
@@ -4467,52 +4469,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4467
4469
|
}] } });
|
|
4468
4470
|
|
|
4469
4471
|
/**
|
|
4470
|
-
*
|
|
4471
|
-
*
|
|
4472
|
-
*
|
|
4473
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4474
|
-
* Contact: info@it4all.hu
|
|
4475
|
-
*
|
|
4476
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4477
|
-
* https://openapi-generator.tech
|
|
4478
|
-
* Do not edit the class manually.
|
|
4479
|
-
*/
|
|
4480
|
-
const ComponentType = {
|
|
4481
|
-
Container: 'container',
|
|
4482
|
-
Form: 'form',
|
|
4483
|
-
Widget: 'widget'
|
|
4484
|
-
};
|
|
4485
|
-
|
|
4486
|
-
/**
|
|
4487
|
-
* Form layout definition
|
|
4488
|
-
* Contains form layout definition objects.
|
|
4489
|
-
*
|
|
4490
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4491
|
-
* Contact: info@it4all.hu
|
|
4492
|
-
*
|
|
4493
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4494
|
-
* https://openapi-generator.tech
|
|
4495
|
-
* Do not edit the class manually.
|
|
4496
|
-
*/
|
|
4497
|
-
const ComponentWidgetType = {
|
|
4498
|
-
Grid: 'grid'
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
/**
|
|
4502
|
-
* Form layout definition
|
|
4503
|
-
* Contains form layout definition objects.
|
|
4504
|
-
*
|
|
4505
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4506
|
-
* Contact: info@it4all.hu
|
|
4507
|
-
*
|
|
4508
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4509
|
-
* https://openapi-generator.tech
|
|
4510
|
-
* Do not edit the class manually.
|
|
4472
|
+
* Custom HttpParameterCodec
|
|
4473
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
4511
4474
|
*/
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
}
|
|
4475
|
+
class CustomHttpParameterCodec {
|
|
4476
|
+
encodeKey(k) {
|
|
4477
|
+
return encodeURIComponent(k);
|
|
4478
|
+
}
|
|
4479
|
+
encodeValue(v) {
|
|
4480
|
+
return encodeURIComponent(v);
|
|
4481
|
+
}
|
|
4482
|
+
decodeKey(k) {
|
|
4483
|
+
return decodeURIComponent(k);
|
|
4484
|
+
}
|
|
4485
|
+
decodeValue(v) {
|
|
4486
|
+
return decodeURIComponent(v);
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
4516
4489
|
|
|
4517
4490
|
const BASE_PATH = new InjectionToken('basePath');
|
|
4518
4491
|
const COLLECTION_FORMATS = {
|
|
@@ -4613,6 +4586,179 @@ class Configuration {
|
|
|
4613
4586
|
}
|
|
4614
4587
|
}
|
|
4615
4588
|
|
|
4589
|
+
/**
|
|
4590
|
+
* Form layout definition
|
|
4591
|
+
* Contains form layout definition objects.
|
|
4592
|
+
*
|
|
4593
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4594
|
+
* Contact: info@it4all.hu
|
|
4595
|
+
*
|
|
4596
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4597
|
+
* https://openapi-generator.tech
|
|
4598
|
+
* Do not edit the class manually.
|
|
4599
|
+
*/
|
|
4600
|
+
class DefaultService {
|
|
4601
|
+
constructor(httpClient, basePath, configuration) {
|
|
4602
|
+
this.httpClient = httpClient;
|
|
4603
|
+
this.basePath = 'http://localhost';
|
|
4604
|
+
this.defaultHeaders = new HttpHeaders();
|
|
4605
|
+
this.configuration = new Configuration();
|
|
4606
|
+
if (configuration) {
|
|
4607
|
+
this.configuration = configuration;
|
|
4608
|
+
}
|
|
4609
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
4610
|
+
if (Array.isArray(basePath) && basePath.length > 0) {
|
|
4611
|
+
basePath = basePath[0];
|
|
4612
|
+
}
|
|
4613
|
+
if (typeof basePath !== 'string') {
|
|
4614
|
+
basePath = this.basePath;
|
|
4615
|
+
}
|
|
4616
|
+
this.configuration.basePath = basePath;
|
|
4617
|
+
}
|
|
4618
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
4619
|
+
}
|
|
4620
|
+
// @ts-ignore
|
|
4621
|
+
addToHttpParams(httpParams, value, key) {
|
|
4622
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
4623
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
4624
|
+
}
|
|
4625
|
+
else {
|
|
4626
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
4627
|
+
}
|
|
4628
|
+
return httpParams;
|
|
4629
|
+
}
|
|
4630
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
4631
|
+
if (value == null) {
|
|
4632
|
+
return httpParams;
|
|
4633
|
+
}
|
|
4634
|
+
if (typeof value === "object") {
|
|
4635
|
+
if (Array.isArray(value)) {
|
|
4636
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
4637
|
+
}
|
|
4638
|
+
else if (value instanceof Date) {
|
|
4639
|
+
if (key != null) {
|
|
4640
|
+
httpParams = httpParams.append(key, value.toISOString().substr(0, 10));
|
|
4641
|
+
}
|
|
4642
|
+
else {
|
|
4643
|
+
throw Error("key may not be null if value is Date");
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
else {
|
|
4647
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
4648
|
+
}
|
|
4649
|
+
}
|
|
4650
|
+
else if (key != null) {
|
|
4651
|
+
httpParams = httpParams.append(key, value);
|
|
4652
|
+
}
|
|
4653
|
+
else {
|
|
4654
|
+
throw Error("key may not be null if value is not object or array");
|
|
4655
|
+
}
|
|
4656
|
+
return httpParams;
|
|
4657
|
+
}
|
|
4658
|
+
nopePost(observe = 'body', reportProgress = false, options) {
|
|
4659
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4660
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
4661
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
4662
|
+
// to determine the Accept header
|
|
4663
|
+
const httpHeaderAccepts = [];
|
|
4664
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4665
|
+
}
|
|
4666
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4667
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
4668
|
+
}
|
|
4669
|
+
let localVarHttpContext = options && options.context;
|
|
4670
|
+
if (localVarHttpContext === undefined) {
|
|
4671
|
+
localVarHttpContext = new HttpContext();
|
|
4672
|
+
}
|
|
4673
|
+
let responseType_ = 'json';
|
|
4674
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4675
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
4676
|
+
responseType_ = 'text';
|
|
4677
|
+
}
|
|
4678
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4679
|
+
responseType_ = 'json';
|
|
4680
|
+
}
|
|
4681
|
+
else {
|
|
4682
|
+
responseType_ = 'blob';
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
let localVarPath = `/nope`;
|
|
4686
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
4687
|
+
context: localVarHttpContext,
|
|
4688
|
+
responseType: responseType_,
|
|
4689
|
+
withCredentials: this.configuration.withCredentials,
|
|
4690
|
+
headers: localVarHeaders,
|
|
4691
|
+
observe: observe,
|
|
4692
|
+
reportProgress: reportProgress
|
|
4693
|
+
});
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
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 });
|
|
4697
|
+
DefaultService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, providedIn: 'root' });
|
|
4698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DefaultService, decorators: [{
|
|
4699
|
+
type: Injectable,
|
|
4700
|
+
args: [{
|
|
4701
|
+
providedIn: 'root'
|
|
4702
|
+
}]
|
|
4703
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
4704
|
+
type: Optional
|
|
4705
|
+
}, {
|
|
4706
|
+
type: Inject,
|
|
4707
|
+
args: [BASE_PATH]
|
|
4708
|
+
}] }, { type: Configuration, decorators: [{
|
|
4709
|
+
type: Optional
|
|
4710
|
+
}] }]; } });
|
|
4711
|
+
|
|
4712
|
+
const APIS = [DefaultService];
|
|
4713
|
+
|
|
4714
|
+
/**
|
|
4715
|
+
* Form layout definition
|
|
4716
|
+
* Contains form layout definition objects.
|
|
4717
|
+
*
|
|
4718
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4719
|
+
* Contact: info@it4all.hu
|
|
4720
|
+
*
|
|
4721
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4722
|
+
* https://openapi-generator.tech
|
|
4723
|
+
* Do not edit the class manually.
|
|
4724
|
+
*/
|
|
4725
|
+
const ComponentType = {
|
|
4726
|
+
Container: 'container',
|
|
4727
|
+
Form: 'form',
|
|
4728
|
+
Widget: 'widget'
|
|
4729
|
+
};
|
|
4730
|
+
|
|
4731
|
+
/**
|
|
4732
|
+
* Form layout definition
|
|
4733
|
+
* Contains form layout definition objects.
|
|
4734
|
+
*
|
|
4735
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4736
|
+
* Contact: info@it4all.hu
|
|
4737
|
+
*
|
|
4738
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4739
|
+
* https://openapi-generator.tech
|
|
4740
|
+
* Do not edit the class manually.
|
|
4741
|
+
*/
|
|
4742
|
+
const ComponentWidgetType = {
|
|
4743
|
+
Grid: 'grid'
|
|
4744
|
+
};
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* Form layout definition
|
|
4748
|
+
* Contains form layout definition objects.
|
|
4749
|
+
*
|
|
4750
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4751
|
+
* Contact: info@it4all.hu
|
|
4752
|
+
*
|
|
4753
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4754
|
+
* https://openapi-generator.tech
|
|
4755
|
+
* Do not edit the class manually.
|
|
4756
|
+
*/
|
|
4757
|
+
const LayoutDirection = {
|
|
4758
|
+
Horizontal: 'horizontal',
|
|
4759
|
+
Vertical: 'vertical'
|
|
4760
|
+
};
|
|
4761
|
+
|
|
4616
4762
|
class ApiModule {
|
|
4617
4763
|
constructor(parentModule, http) {
|
|
4618
4764
|
if (parentModule) {
|
|
@@ -4656,7 +4802,11 @@ class SmartComponentLayoutComponent {
|
|
|
4656
4802
|
ngOnChanges(changes) {
|
|
4657
4803
|
this.smartComponentLayout = changes['smartComponentLayout'].currentValue;
|
|
4658
4804
|
this.uuid = this.smartComponentLayout?.parentComponent.uuid;
|
|
4659
|
-
if (this.smartComponentLayout?.type === ComponentType.
|
|
4805
|
+
if (this.smartComponentLayout?.type === ComponentType.Container &&
|
|
4806
|
+
this.smartComponentLayout.expandable) {
|
|
4807
|
+
this.constructExpandableSection();
|
|
4808
|
+
}
|
|
4809
|
+
else if (this.smartComponentLayout?.type === ComponentType.Form) {
|
|
4660
4810
|
this.constructForm();
|
|
4661
4811
|
}
|
|
4662
4812
|
else if (this.smartComponentLayout?.type === ComponentType.Widget) {
|
|
@@ -4668,6 +4818,15 @@ class SmartComponentLayoutComponent {
|
|
|
4668
4818
|
type() {
|
|
4669
4819
|
return ComponentType;
|
|
4670
4820
|
}
|
|
4821
|
+
constructExpandableSection() {
|
|
4822
|
+
let data = { ...this.smartComponentLayout };
|
|
4823
|
+
data.expandable = false;
|
|
4824
|
+
this.expandableSection = {
|
|
4825
|
+
title: this.smartComponentLayout?.expandableSectionLabel ?? '',
|
|
4826
|
+
data,
|
|
4827
|
+
inputName: 'smartComponentLayout',
|
|
4828
|
+
};
|
|
4829
|
+
}
|
|
4671
4830
|
constructForm() {
|
|
4672
4831
|
const widgets = this.layoutService.render({
|
|
4673
4832
|
layoutDefinitions: this.smartComponentLayout?.form,
|
|
@@ -4707,10 +4866,10 @@ class SmartComponentLayoutComponent {
|
|
|
4707
4866
|
}
|
|
4708
4867
|
}
|
|
4709
4868
|
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 });
|
|
4710
|
-
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
|
|
4869
|
+
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"] }] });
|
|
4711
4870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartComponentLayoutComponent, decorators: [{
|
|
4712
4871
|
type: Component,
|
|
4713
|
-
args: [{ selector: 'smart-component-layout', template: "<div\n *ngIf=\"smartComponentLayout?.type === type().Container\"\n [ngClass]=\"smartComponentLayout?.direction ?? 'vertical'\"\n>\n
|
|
4872
|
+
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"] }]
|
|
4714
4873
|
}], ctorParameters: function () { return [{ type: i1$2.SmartformLayoutDefinitionService }]; }, propDecorators: { smartComponentLayout: [{
|
|
4715
4874
|
type: Input
|
|
4716
4875
|
}], formChild: [{
|
|
@@ -4729,7 +4888,8 @@ SmartNgClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
4729
4888
|
SmartSessionModule,
|
|
4730
4889
|
SmartViewContextModule,
|
|
4731
4890
|
SmartformModule,
|
|
4732
|
-
SmartGridModule
|
|
4891
|
+
SmartGridModule,
|
|
4892
|
+
SmartExpandableSectionModule], exports: [SmartSessionModule,
|
|
4733
4893
|
SmartViewContextModule,
|
|
4734
4894
|
SmartFileUploaderComponent,
|
|
4735
4895
|
SmartComponentLayoutComponent] });
|
|
@@ -4740,6 +4900,7 @@ SmartNgClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
4740
4900
|
SmartViewContextModule,
|
|
4741
4901
|
SmartformModule,
|
|
4742
4902
|
SmartGridModule,
|
|
4903
|
+
SmartExpandableSectionModule,
|
|
4743
4904
|
], SmartSessionModule,
|
|
4744
4905
|
SmartViewContextModule] });
|
|
4745
4906
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SmartNgClientModule, decorators: [{
|
|
@@ -4753,6 +4914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4753
4914
|
SmartViewContextModule,
|
|
4754
4915
|
SmartformModule,
|
|
4755
4916
|
SmartGridModule,
|
|
4917
|
+
SmartExpandableSectionModule,
|
|
4756
4918
|
],
|
|
4757
4919
|
exports: [
|
|
4758
4920
|
SmartSessionModule,
|
|
@@ -5211,5 +5373,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5211
5373
|
* Generated bundle index. Do not edit.
|
|
5212
5374
|
*/
|
|
5213
5375
|
|
|
5214
|
-
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 };
|
|
5376
|
+
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 };
|
|
5215
5377
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|