Skip to content

Commit 04fdf8d

Browse files
committed
Merge branch 'release/V4.0.2.4'
2 parents 646e057 + 30a7a14 commit 04fdf8d

File tree

10 files changed

+541
-7
lines changed

10 files changed

+541
-7
lines changed

docs/30-BIAToolKit/10-ConfigureTheBIAToolKit.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ This document explains how to configure the BIA tool kit, to be ready to apply t
88
![BIAToolKitConfig](../Images/BIAToolKit/Config.PNG)
99

1010
## Get the BIAToolKit
11-
Take the last version of the BIAToolKit from [release](https://github.com/BIATeam/BIAToolKit/releases) or from your company folder if you have one.
11+
Take the last version of the "BIAToolKit.zip" from [last release](https://github.com/BIATeam/BIAToolKit/releases).
12+
Unzip it and launch the BIA.ToolKit.exe
13+
![BIAToolKitConfig](../Images/BIAToolKit/Launch.PNG)
1214

15+
If you have the Windows defender smart screen warning click on "More Info" then click "Run anyway"":
16+
![BIAToolKitConfig](../Images/BIAToolKit/WindowsDefender.png)
17+
![BIAToolKitConfig](../Images/BIAToolKit/WindowsDefender2.jpg)
1318
## Configure your BIA Template repository
1419
In the first tab, in the upper left corner, chose if you want to use a local folder to synchronize it.
1520
* It is not required so if you don't have clone the BIATemplate locally select the first radio button "Use the BIAtemplate GitHub repository" the local folder will be : C:\Users\YourLogin\AppData\Local\BIA.ToolKit\BIA.ToolKit\1.0.0\BIATemplate\Repo

docs/50-BestPractices/10-GitBranchingBestPractices.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ The strategy depend on the size of the project:
2121
- Standard usage : work on Develop Branch
2222
- For huge feature you can create a dedicated branch.
2323

24-
## Project more the 2 developers:
24+
## Project with more the 2 developers:
2525
- Standard usage : Develop all your Features on dedicated Branch
2626
- For very small change you can work directly on Develop Branch
2727

28+
## Project with support (including feature) on last delivery
29+
- The notion of "hot feature" is introduce to be able to deliver small feature (less than 1 month) before the delivery of the next version (every 6 month).
30+
![GitFlow](../Images/GitFlow.jpg)
31+
2832
## Initialize gitflow extension
2933
- Just install the gitflow extension for VS Code.
3034
![GitFlowExtension](../Images/GitFlowVSExtension.png)

docs/60-Migration/33-4.0.0 TO 4.1.0.md

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ sidebar_position: 1
4545
```json
4646
"eqeqeq": "off"
4747
```
48+
3. Moving advanced filters to the right :
49+
1. Move advanced filter html after table in index.component
50+
2. Move from table-header to table-controller html :
51+
```ts
52+
[showBtnFilter]="true"
53+
[showFilter]="showAdvancedFilter"
54+
[hasFilter]="hasAdvancedFilter"
55+
(openFilter)="onOpenFilter()"
56+
```
4857

4958
### BACK
5059
1.

docs/60-Migration/Scripts/V4.0.0_to_V4.1.0_Replacement.ps1

+1-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ function RemoveWebApiRepositoryFunctionsThirdParameter ($contenuFichier, $MatchB
219219
}
220220
}
221221

222-
223-
222+
ReplaceInProject -Source $SourceFrontEnd -OldRegexp "((templateUrl|styleUrls?):\s*\[*\s*['""])(\.\.\/)+(shared\/.+?)['""]" -NewRegexp '$1/src/app/$4' -Include *.ts
224223

225224
# Set-Location $Source/DotNet
226225
dotnet restore --no-cache

docs/Images/BIAToolKit/Launch.PNG

12 KB
Loading
17.8 KB
Loading
21.8 KB
Loading

docs/Images/GitFlow.jpg

50.9 KB
Loading

docs/Pres/GitFlow.drawio

+477
Large diffs are not rendered by default.

versioned_docs/version-older/60-Migration/31-3.7.4 TO 3.8.0.md

+43-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,48 @@ Warning : major change
111111
- .header h1
112112

113113
3. in the .ts the variable fxFlexValue can be remove (and in CRUD index html where the component in call = action 6.)
114+
9. In every index.component that use advanced filters and views and does not extends CrudIndexComponent, you'll need to adapt the mechanism as follow :
115+
1. Delete the advancedFilter property :
116+
```ts
117+
advancedFilter: MyFeatureAdvancedFilter;
118+
```
119+
2. Replace all references to this deleted advancedFilter by this.tableConfiguration.advancedFilter.
120+
3. Change onFilter function as follow :
121+
```ts
122+
onFilter(advancedFilter: MyFeatureAdvancedFilter) {
123+
this.tableConfiguration.advancedFilter = advancedFilter;
124+
this.myFeatureListComponent.table.saveState();
125+
this.hasFilter = this.checkHaveFilter();
126+
this.onLoadLazy(this.lastLazyLoadEvent);
127+
}
128+
```
129+
4. Change the updateAdvancedFilterByView function as follow :
130+
```ts
131+
private updateAdvancedFilterByView(viewPreference: string) {
132+
if (viewPreference) {
133+
const state = JSON.parse(viewPreference);
134+
if (state) {
135+
this.tableConfiguration.advancedFilter = state.advancedFilter;
136+
this.hasFilter = this.checkHaveFilter();
137+
}
138+
} else {
139+
this.tableConfiguration.advancedFilter = {};
140+
this.hasFilter = this.checkHaveFilter();
141+
}
142+
}
143+
```
144+
5. In function checkHaveFilter, if you use this.tableConfiguration.advancedFilter in the if equality values, replace it like that :
145+
```ts
146+
if (this.tableConfiguration.advancedFilter && ...)
147+
```
148+
becomes
149+
```ts
150+
if (!!this.tableConfiguration.advancedFilter && ...)
151+
```
152+
This is due to the any type not being falsy even when undefined.
153+
6. in your personalized advanced filter component, make sure to reset the advanced filter form when the advancedFilter input changes in ngChanges even when undefined or the values of advanced filter won't be reset when you select a view that has no advanced filters.
114154

115-
9. Search fxLayoutGap in replace by a class equivalent ex:
155+
10. Search fxLayoutGap in replace by a class equivalent ex:
116156
fxLayoutGap="32px" ... fxLayoutGap="24px" => class="gap-4" (1.5rem)
117157
fxLayoutGap="20px" ... fxLayoutGap="16px" => class="gap-3" (1rem)
118158
fxLayoutGap="15px" ... fxLayoutGap="8px" => class="gap-2" (0.5rem)
@@ -121,7 +161,7 @@ Warning : major change
121161

122162
ref : https://primefaces.org/primeflex/gap and https://nekocalc.com/fr/px-a-rem-convertisseur
123163

124-
10. If you used badges with numbers inside, add this css class in **_app-custom-theme.scss**
164+
11. If you used badges with numbers inside, add this css class in **_app-custom-theme.scss**
125165

126166
```css
127167
.bia-badge-with-number > .p-badge {
@@ -136,7 +176,7 @@ Warning : major change
136176
<i class="bia-badge-with-number" pBadge"></i>
137177
```
138178

139-
11. In src\app\shared\bia-shared\features\view\views\view-list\view-list.component.html
179+
12. In src\app\shared\bia-shared\features\view\views\view-list\view-list.component.html
140180

141181
Replace
142182
```html

0 commit comments

Comments
 (0)