@campxdev/campx-web-utils 2.0.10 → 2.0.13

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
+ export * from './DepartmentMongoMultiSelector';
2
+ export * from './DepartmentSqlMultiSelector';
@@ -12,6 +12,7 @@ export * from './MonthYearSelector';
12
12
  export * from './PrintFormatSelector';
13
13
  export * from './ProgramSelector';
14
14
  export * from './RegulationSelector';
15
+ export * from './ResearchExpertDesignationSelector';
15
16
  export * from './ResearchExpertSelector';
16
17
  export * from './ResearchStageSelector';
17
18
  export * from './SemesterSelector';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _axios from 'axios';
2
- import { Severity, ConfirmDialogType, SingleSelectProps } from '@campxdev/react-blueprint';
2
+ import { Severity, ConfirmDialogType, MultiSelectProps, SingleSelectProps } from '@campxdev/react-blueprint';
3
3
  import { Store } from 'pullstate';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode } from 'react';
@@ -140,6 +140,10 @@ declare const useConfirm: () => ({ title, message, confirmButtonText, cancelButt
140
140
  type?: ConfirmDialogType;
141
141
  }) => Promise<boolean>;
142
142
 
143
+ declare const DepartmentMongoMultiSelector: (props: MultiSelectProps) => react_jsx_runtime.JSX.Element;
144
+
145
+ declare const DepartmentSqlMultiSelector: (props: MultiSelectProps) => react_jsx_runtime.JSX.Element;
146
+
143
147
  declare const BatchSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
144
148
 
145
149
  declare const CourseSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
@@ -168,6 +172,8 @@ declare const ProgramSelector: (props: SingleSelectProps) => react_jsx_runtime.J
168
172
 
169
173
  declare const RegulationSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
170
174
 
175
+ declare const ResearchExpertDesignationSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
176
+
171
177
  declare const ResearchExpertSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
172
178
 
173
179
  declare const ResearchStageSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
@@ -192,5 +198,5 @@ declare const workspaceApiMapping: Record<string, string>;
192
198
 
193
199
  declare const openInNewTab: (pathAfterBase: string, excludeInstitution?: boolean, excludeWorkspace?: boolean) => void;
194
200
 
195
- export { ApplicationStore, BatchSelector, ConfirmDialogProvider, CourseSelector, DepartmentSelector, EmployeesSelector, ErrorBoundary, ExamTypeSelector, ExamsRegulationSelector, FeeTypeSelector, HostelBlockSelector, HostelFloorSelector, HostelRoomSelector, MonthYearSelector, PrintFormatSelector, ProgramSelector, Providers, RegulationSelector, ResearchExpertSelector, ResearchStageSelector, SemesterSelector, SnackbarProvider, StudentSelector, StudentServicesSelector, YearRangeSelector, axios, createRsbuildSharedConfig, initialApplicationState, institutionCode, isDevelopment, nonWorkspaceAxios, openInNewTab, tenantCode, useConfirm, workspace, workspaceApiMapping };
201
+ export { ApplicationStore, BatchSelector, ConfirmDialogProvider, CourseSelector, DepartmentMongoMultiSelector, DepartmentSelector, DepartmentSqlMultiSelector, EmployeesSelector, ErrorBoundary, ExamTypeSelector, ExamsRegulationSelector, FeeTypeSelector, HostelBlockSelector, HostelFloorSelector, HostelRoomSelector, MonthYearSelector, PrintFormatSelector, ProgramSelector, Providers, RegulationSelector, ResearchExpertDesignationSelector, ResearchExpertSelector, ResearchStageSelector, SemesterSelector, SnackbarProvider, StudentSelector, StudentServicesSelector, YearRangeSelector, axios, createRsbuildSharedConfig, initialApplicationState, institutionCode, isDevelopment, nonWorkspaceAxios, openInNewTab, tenantCode, useConfirm, workspace, workspaceApiMapping };
196
202
  export type { ApplicationStoreType, ErrorBoundaryProps, InstitutionInfo };
package/export.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './src/config';
2
2
  export * from './src/context/export';
3
3
  export * from './src/hooks/export';
4
+ export * from './src/multi-selectors/export';
4
5
  export * from './src/selectors/export';
5
6
  export * from './src/utils/constants';
6
7
  export * from './src/utils/openInNewTab';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/campx-web-utils",
3
- "version": "2.0.10",
3
+ "version": "2.0.13",
4
4
  "author": "CampX",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -27,7 +27,7 @@
27
27
  "react-router-dom": "^6.24.0"
28
28
  },
29
29
  "dependencies": {
30
- "@campxdev/react-blueprint": "3.0.3",
30
+ "@campxdev/react-blueprint": "3.0.4",
31
31
  "@hookform/resolvers": "^2.9.10",
32
32
  "axios": "^1.7.2",
33
33
  "cookie-js": "^0.0.1",
@@ -0,0 +1,2 @@
1
+ export * from './DepartmentMongoMultiSelector';
2
+ export * from './DepartmentSqlMultiSelector';
@@ -1,18 +1,20 @@
1
1
  import { SingleSelect, SingleSelectProps } from '@campxdev/react-blueprint';
2
- import { nonWorkspaceAxios as axios } from '../config';
2
+ import { nonWorkspaceAxios } from '../config';
3
3
 
4
4
  export const DepartmentSelector = (props: SingleSelectProps) => {
5
5
  return (
6
6
  <SingleSelect
7
7
  dbLabelProps={{
8
8
  labelKey: 'name',
9
+ subLabelKey: 'type',
10
+ useSubLabelStartCase: true,
9
11
  }}
10
12
  dbValueProps={{
11
13
  valueKey: '_id',
12
14
  isObjectId: true,
13
15
  }}
14
16
  {...props}
15
- externalAxios={axios}
17
+ externalAxios={nonWorkspaceAxios}
16
18
  optionsApiEndPoint="/dropdowns/departments"
17
19
  />
18
20
  );
@@ -6,7 +6,7 @@ export const ResearchStageSelector = (props: SingleSelectProps) => {
6
6
  return (
7
7
  <SingleSelect
8
8
  dbValueProps={{
9
- valueKey: '`order`',
9
+ valueKey: 'id',
10
10
  }}
11
11
  dbLabelProps={{
12
12
  labelKey: 'name',
@@ -12,6 +12,7 @@ export * from './MonthYearSelector';
12
12
  export * from './PrintFormatSelector';
13
13
  export * from './ProgramSelector';
14
14
  export * from './RegulationSelector';
15
+ export * from './ResearchExpertDesignationSelector';
15
16
  export * from './ResearchExpertSelector';
16
17
  export * from './ResearchStageSelector';
17
18
  export * from './SemesterSelector';