fleetcor-lwc 3.9.8 → 3.10.0
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/README.md
CHANGED
|
@@ -672,6 +672,37 @@ This component fully extends from `Input Text`
|
|
|
672
672
|
|
|
673
673
|
---
|
|
674
674
|
|
|
675
|
+
### Collapsible Section
|
|
676
|
+
|
|
677
|
+
```html
|
|
678
|
+
<flt-collapsible-section>
|
|
679
|
+
<div slot="title">Collapsible Section Title</div>
|
|
680
|
+
<div>
|
|
681
|
+
<div>Any Content...</div>
|
|
682
|
+
</div>
|
|
683
|
+
</flt-collapsible-section>
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
<details>
|
|
687
|
+
<summary>Details</summary>
|
|
688
|
+
|
|
689
|
+
#### Collapsible Section variables
|
|
690
|
+
|
|
691
|
+
| @api variables | type | values | required | description |
|
|
692
|
+
| ------------------ | ------ | ------------ | -------- | ----------- |
|
|
693
|
+
| closed | bool | | - | To control section status `closed/opened` (default - false) |
|
|
694
|
+
| styleOff | bool | | - | To be able to turn off default styles for named slot `title` (default - false) |
|
|
695
|
+
|
|
696
|
+
#### Collapsible Section slots
|
|
697
|
+
|
|
698
|
+
| slot | description |
|
|
699
|
+
| --------- | ---------------------------------------------- |
|
|
700
|
+
| default | any html element can be there |
|
|
701
|
+
| title | any html element can be there |
|
|
702
|
+
</details>
|
|
703
|
+
|
|
704
|
+
---
|
|
705
|
+
|
|
675
706
|
|
|
676
707
|
## Interfaces
|
|
677
708
|
|
|
@@ -836,6 +867,18 @@ You can override them as you wish by global css variables as priority.
|
|
|
836
867
|
<details>
|
|
837
868
|
<summary>Click to expand/collapse</summary>
|
|
838
869
|
|
|
870
|
+
v.3.10.0
|
|
871
|
+
|
|
872
|
+
- Added expose for component `flt-collapsible-section`
|
|
873
|
+
|
|
874
|
+
---
|
|
875
|
+
|
|
876
|
+
v.3.9.9
|
|
877
|
+
|
|
878
|
+
- Added component `flt-collapsible-section`
|
|
879
|
+
|
|
880
|
+
---
|
|
881
|
+
|
|
839
882
|
v.3.9.8
|
|
840
883
|
|
|
841
884
|
- Updates for `Readme.md`
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { api } from 'lwc';
|
|
2
2
|
import { BaseElement } from 'fleetcor-lwc'
|
|
3
|
-
import { UTILS } from 'c/utils';
|
|
4
3
|
import './collapsibleSection.scss';
|
|
5
4
|
|
|
6
5
|
export default class CollapsibleSection extends BaseElement {
|
|
7
6
|
titleSlotNonEmpty;
|
|
8
7
|
|
|
9
|
-
@api
|
|
10
|
-
@api
|
|
8
|
+
@api closed = false;
|
|
9
|
+
@api styleOff = false;
|
|
11
10
|
|
|
12
11
|
get containerWrapperClass() {
|
|
13
12
|
return this.generateClassNameList({
|
|
14
|
-
'
|
|
15
|
-
'
|
|
13
|
+
'collapsible-section__container-wrapper': true,
|
|
14
|
+
'collapsible-section__container-wrapper_expanded': !this.closed
|
|
16
15
|
})
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
get titleClass() {
|
|
20
|
-
if (this.
|
|
19
|
+
if (this.styleOff) {
|
|
21
20
|
return '';
|
|
22
21
|
}
|
|
23
|
-
return
|
|
24
|
-
'
|
|
25
|
-
'
|
|
22
|
+
return this.generateClassNameList({
|
|
23
|
+
'collapsible-section_title': this.titleSlotNonEmpty,
|
|
24
|
+
'collapsible-section_title-active': !this.closed && this.titleSlotNonEmpty
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -38,7 +37,7 @@ export default class CollapsibleSection extends BaseElement {
|
|
|
38
37
|
|
|
39
38
|
toggleWrapper() {
|
|
40
39
|
if (this.titleSlotNonEmpty) {
|
|
41
|
-
this.
|
|
40
|
+
this.closed = !this.closed;
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetcor-lwc",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "LWC framework by Fleetcor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"flt/inputText",
|
|
34
34
|
"flt/inputEmail",
|
|
35
35
|
"flt/inputPhone",
|
|
36
|
+
"flt/collapsibleSection",
|
|
36
37
|
"flt/inputWithPicklist",
|
|
37
38
|
"flt/picklist",
|
|
38
39
|
"flt/modal",
|