Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@sap-devx/controls-navigator
Advanced tools
Navigator is a navigation control . It can display the groups in a way like wizard steps or tabs control
navigationType
It can be two values:
prompt-index
It is the current group index(zero based)
prompts
It is the groups array, for example:
[{name:”database”},{name:”authorization”}]
{
promptName:”group1”,
answers:[
{
"label":"prop1",
"value":"value1",
"type":"warning",
},
{
"label":"prop1",
"value":"value1"
}
]
}
{
"group1":[
{
"label":"prop1",
"value":"value1"
},
{
"label":"prop1",
"value":"value1"
}
],
"group2":[
{
"label":"prop1",
"value":"value1"
}
]
}
If writing a Vue application, simply add the following line to your <template>
tag:
<NavigatorControl
:prompt-index="promptIndex"
:prompts="prompts"
:all-answers=" allAnswers "
:prompt-answers="{}"
navigation-type="tab"
@on-goto-step="gotoStep"
/>
The properties values looks like the following:
{
promptIndex:0,
prompts:[{name: "group1"},{name:"group2"}],
allAnswers:{
group1:[
{label:"akey1", value: "aType"},
{label:"akey2", value: "a", type: "warning"}
],
group2:[
{label:"bkey1", value: "bType"},
{label:"", value: "b"}
]
},
promptAnswers:{},
navigationType:"tab"
}
Import the control:
import NavigatorControl from "@sap-devx/controls-navigator";
const naviOptions = { vuetify };
app.use(NavigatorControl, naviOptions);
Import the css file:
import "@sap-devx/controls-navigator/dist/navigator-control.css";
Override style for specific navigator type
For tab style
For stepper style
Override “group summary” styles
To get more help, support and information please open a github issue.
Contributing information can be found in the CONTRIBUTING.md file.
FAQs
Navigator control
We found that @sap-devx/controls-navigator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.