Skip to content

Commit ac301a0

Browse files
initial commit
0 parents  commit ac301a0

32 files changed

+13054
-0
lines changed

.eslintignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
**/lwc/**/*.css
2+
**/lwc/**/*.html
3+
**/lwc/**/*.json
4+
**/lwc/**/*.svg
5+
**/lwc/**/*.xml
6+
**/aura/**/*.auradoc
7+
**/aura/**/*.cmp
8+
**/aura/**/*.css
9+
**/aura/**/*.design
10+
**/aura/**/*.evt
11+
**/aura/**/*.json
12+
**/aura/**/*.svg
13+
**/aura/**/*.tokens
14+
**/aura/**/*.xml
15+
**/aura/**/*.app
16+
.sfdx

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["@salesforce/eslint-config-lwc/recommended"],
3+
"rules": {
4+
"@lwc/lwc/no-api-reassignments": "off"
5+
}
6+
}

.forceignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2+
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3+
#
4+
5+
package.xml
6+
7+
# LWC configuration files
8+
**/jsconfig.json
9+
**/.eslintrc.json
10+
11+
# LWC Jest
12+
**/__tests__/**

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
2+
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
3+
# For useful gitignore templates see: https://github.com/github/gitignore
4+
5+
# Salesforce cache
6+
.sf/
7+
.sfdx/
8+
.localdevserver/
9+
deploy-options.json
10+
11+
# VS Code project settings
12+
.vscode/
13+
14+
# History
15+
.history/
16+
17+
# LWC VSCode autocomplete
18+
**/lwc/jsconfig.json
19+
20+
# LWC Jest coverage reports
21+
coverage/
22+
23+
# Logs
24+
logs
25+
*.log
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
# Dependency directories
31+
node_modules/
32+
33+
# Eslint cache
34+
.eslintcache
35+
36+
# MacOS system files
37+
.DS_Store
38+
39+
# Windows system files
40+
Thumbs.db
41+
ehthumbs.db
42+
[Dd]esktop.ini
43+
$RECYCLE.BIN/
44+
45+
# Local environment variables
46+
.env

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run precommit

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# List files or directories below to ignore them when running prettier
2+
# More information: https://prettier.io/docs/en/ignore.html
3+
#
4+
5+
**/staticresources/**
6+
.localdevserver
7+
.sfdx
8+
.vscode
9+
10+
coverage/

.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"printWidth": 120,
5+
"apexInsertFinalNewline": false,
6+
"trailingComma": "all",
7+
"overrides": [
8+
{
9+
"files": "**/lwc/**/*.html",
10+
"options": { "parser": "lwc" }
11+
},
12+
{
13+
"files": "*.{cmp,page,component}",
14+
"options": { "parser": "html" }
15+
}
16+
]
17+
}

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 On Duty Software Solutions
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# OnDuty Flow Tabs
2+
3+
Lightning Web Component to use in a Flow Screen that allows to display tabs.
4+
The component outputs the active tab so this can be used in the Component Visibility to set what to display in each tab.
5+
6+
## Where can I use it?
7+
8+
You can use this component in Flow screens.
9+
10+
## Properties
11+
12+
It has a custom editor that allows you to specify the title (tooltip) for the tabs and the variant (Standard or Scoped).
13+
14+
You can create the tabs with the following properties
15+
16+
- Label
17+
- Title (tooltip)
18+
- Left Icon Name (only supports utility icons) in the format utility:add e.g.
19+
- Right Icon Name (only supports utility icons) in the format utility:add e.g.
20+
- Variable error: a constant/variable/formula that specifies that the tab has an error, it will display an icon on the right side of the label.
21+
- Default Active?: a radio button to specify which tab should be active by default
22+
- Order: the Order of the tab to display in the component
23+
24+
## Live Demo
25+
26+
Live Demo on a Scratch Org: <a href="https://hosted-scratch.herokuapp.com/launch?template=https://github.com/ondutysoftwaresolutions/odFlowTabs">CLICK HERE</a>
27+
28+
## Installation
29+
30+
<a href="https://githubsfdeploy.herokuapp.com?owner=ondutysoftwaresolutions&repo=odFlowTabs&ref=master">
31+
<img alt="Deploy to Salesforce"
32+
src="https://raw.githubusercontent.com/afawcett/githubsfdeploy/master/deploy.png">
33+
</a>
34+
35+
## Screenshots
36+
37+
### Configuration screens
38+
39+
#### Generic Properties
40+
41+
<img src="./images/Properties.png" width="300">
42+
43+
#### Tabs Configuration
44+
45+
![Tabs Configuration](./images/Tabs.png)
46+
47+
#### Other Component Visibility
48+
49+
![Component Visibility](./images/ComponentVisibility.png)
50+
51+
### Tabs In Use
52+
53+
![Standard](./images/Standard.png)
54+
55+
![Scoped](./images/Scoped.png)

config/project-scratch-def.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"orgName": "pablomartinez company",
3+
"edition": "Developer",
4+
"features": []
5+
}

0 commit comments

Comments
 (0)