@campxdev/campx-web-utils 2.0.8 → 2.0.9

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.
@@ -0,0 +1,2 @@
1
+ import { MultiSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const DepartmentMongoMultiSelector: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MultiSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const DepartmentSqlMultiSelector: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SingleSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const ResearchExpertDesignationSelector: (props: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MultiSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const DepartmentMongoMultiSelector: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MultiSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const DepartmentSqlMultiSelector: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SingleSelectProps } from '@campxdev/react-blueprint';
2
+ export declare const ResearchExpertDesignationSelector: (props: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/campx-web-utils",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "author": "CampX",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -0,0 +1,21 @@
1
+ import { MultiSelect, MultiSelectProps } from '@campxdev/react-blueprint';
2
+ import { nonWorkspaceAxios } from '../config';
3
+
4
+ export const DepartmentMongoMultiSelector = (props: MultiSelectProps) => {
5
+ return (
6
+ <MultiSelect
7
+ dbLabelProps={{
8
+ labelKey: 'name',
9
+ subLabelKey: 'type',
10
+ useSubLabelStartCase: true,
11
+ }}
12
+ dbValueProps={{
13
+ valueKey: '_id',
14
+ isObjectId: true,
15
+ }}
16
+ {...props}
17
+ externalAxios={nonWorkspaceAxios}
18
+ optionsApiEndPoint="/dropdowns/departments"
19
+ />
20
+ );
21
+ };
@@ -0,0 +1,21 @@
1
+ import { MultiSelect, MultiSelectProps } from '@campxdev/react-blueprint';
2
+ import { nonWorkspaceAxios } from '../config';
3
+
4
+ export const DepartmentSqlMultiSelector = (props: MultiSelectProps) => {
5
+ return (
6
+ <MultiSelect
7
+ dbLabelProps={{
8
+ labelKey: 'name',
9
+ subLabelKey: 'type',
10
+ useSubLabelStartCase: true,
11
+ }}
12
+ dbValueProps={{
13
+ valueKey: 'id',
14
+ isInt: true,
15
+ }}
16
+ {...props}
17
+ externalAxios={nonWorkspaceAxios}
18
+ optionsApiEndPoint="/dropdowns/departments-sql"
19
+ />
20
+ );
21
+ };
@@ -0,0 +1,19 @@
1
+ import { SingleSelect, SingleSelectProps } from '@campxdev/react-blueprint';
2
+ import { nonWorkspaceAxios } from '../config';
3
+
4
+ export const ResearchExpertDesignationSelector = (props: SingleSelectProps) => {
5
+ return (
6
+ <SingleSelect
7
+ dbLabelProps={{
8
+ labelKey: 'name',
9
+ }}
10
+ dbValueProps={{
11
+ valueKey: 'id',
12
+ isInt: true,
13
+ }}
14
+ {...props}
15
+ externalAxios={nonWorkspaceAxios}
16
+ optionsApiEndPoint="/dropdowns/research-expert-designations"
17
+ />
18
+ );
19
+ };