Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

feat: add property for auto confirm selections #339

Merged
merged 8 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/filterpane-dev-mashup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@nebula.js/sn-filter-pane": "0.9.1",
"@nebula.js/sn-table": "2.2.3",
"@nebula.js/stardust": "4.0.0-alpha.10",
"@nebula.js/stardust": "4.4.0",
"enigma.js": "2.9.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sn-filter-pane/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"module": "esm/index.js",
"peerDependencies": {
"@nebula.js/stardust": "4.3.0",
"@nebula.js/stardust": "4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sn-filter-pane/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"typescript": "5.1.6"
},
"peerDependencies": {
"@nebula.js/stardust": ">=4.1.0"
"@nebula.js/stardust": ">=4.4.0"
},
"dependencies": {
"@mui/icons-material": "5.14.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,27 @@ export default function getDataPanelItems(env: IEnv) {
},
},
},
searchGroup: {
showSearch: {
ref: 'searchEnabled',
type: 'boolean',
component: 'switch',
translation: 'properties.filterpane.searchField',
options: [
{
value: true,
translation: 'properties.show',
},
{
value: false,
translation: 'properties.hide',
},
],
defaultValue: true,
},
wildCardSearchGroup: {
type: 'items',
translation: 'properties.filterpane.searchMode',
grouped: false,
grouped: env?.flags?.isEnabled('IM_4072_FILTERPANE_SETTINGS'), // show a bottom border only if the below option (autoConfirm) is visible
items: {
showSearch: {
ref: 'searchEnabled',
type: 'boolean',
component: 'switch',
translation: 'properties.filterpane.searchField',
options: [
{
value: true,
translation: 'properties.show',
},
{
value: false,
translation: 'properties.hide',
},
],
defaultValue: true,
},
wildCardSearch: {
translation: 'properties.filterpane.searchMode',
ref: 'wildCardSearch',
Expand All @@ -115,6 +114,15 @@ export default function getDataPanelItems(env: IEnv) {
},
},
},
autoConfirm: {
ref: 'autoConfirm',
component: 'checkbox',
translation: 'properties.filterpane.autoConfirm',
defaultValue: false,
show() {
return env?.flags?.isEnabled('IM_4072_FILTERPANE_SETTINGS');
},
},
otherSettings: {
translation: 'Accordion',
component: 'expandable-items',
Expand Down
2 changes: 1 addition & 1 deletion packages/sn-listbox/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"module": "esm/index.js",
"peerDependencies": {
"@nebula.js/stardust": "^3.1.0-alpha.0 || ^4.0.0",
"@nebula.js/stardust": ">=4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sn-listbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@
"typescript": "5.1.6"
},
"peerDependencies": {
"@nebula.js/stardust": ">=4.1.0"
"@nebula.js/stardust": ">=4.4.0"
}
}
Loading