@propriety/court-calendar 0.0.3 → 0.0.4
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.
- package/.editorconfig +26 -0
- package/biome.json +302 -0
- package/dev/App.tsx +51 -0
- package/dev/main.tsx +10 -0
- package/dist/_components/List/CalendarList.d.ts +1 -2
- package/dist/_components/Modal/Modal.d.ts +1 -2
- package/dist/_components/Modal/ModalActions.d.ts +1 -2
- package/dist/_components/Shared/FirstSecondChairIcons.d.ts +1 -2
- package/dist/_components/Toolbar/Toolbar.d.ts +1 -2
- package/dist/helpers/people.d.ts +0 -1
- package/dist/index.mjs +29578 -29353
- package/index.html +12 -0
- package/package.json +5 -9
- package/public/vite.svg +1 -0
- package/src/_components/CCalendar.css +464 -0
- package/src/_components/CCalendar.tsx +726 -0
- package/src/_components/List/CalendarList.tsx +288 -0
- package/src/_components/Modal/CaseDetails/CaseDetails.tsx +413 -0
- package/src/_components/Modal/CaseDetails/EvidenceRow.tsx +82 -0
- package/src/_components/Modal/CaseDetails/EvidenceSection.tsx +94 -0
- package/src/_components/Modal/CreateEdit/CreateEditCase.tsx +241 -0
- package/src/_components/Modal/CreateEdit/DateSelector.tsx +42 -0
- package/src/_components/Modal/CreateEdit/EditUserFieldDropdown.tsx +54 -0
- package/src/_components/Modal/CreateEdit/EnumDropdown.tsx +54 -0
- package/src/_components/Modal/CreateEdit/HearingOfficerDropdown.tsx +48 -0
- package/src/_components/Modal/CreateEdit/TextFieldList.tsx +186 -0
- package/src/_components/Modal/CreateEdit/ToggleableTextField.tsx +90 -0
- package/src/_components/Modal/Modal.css +15 -0
- package/src/_components/Modal/Modal.tsx +324 -0
- package/src/_components/Modal/ModalActions.tsx +99 -0
- package/src/_components/Modal/View/CaseToolbar.tsx +81 -0
- package/src/_components/Modal/View/CaseViewer.tsx +237 -0
- package/src/_components/Modal/View/DateDetails.tsx +137 -0
- package/src/_components/Modal/View/InfoBox.tsx +22 -0
- package/src/_components/Modal/View/InfoBoxBtn.css +39 -0
- package/src/_components/Modal/View/InfoBoxBtn.tsx +29 -0
- package/src/_components/Modal/View/NoticeFileLink.tsx +44 -0
- package/src/_components/Shared/FirstSecondChairIcons.tsx +247 -0
- package/src/_components/Shared/FormRow.tsx +37 -0
- package/src/_components/Shared/MuniDropdown.tsx +96 -0
- package/src/_components/Shared/SearchBar.tsx +87 -0
- package/src/_components/Toolbar/CaseFilter.tsx +77 -0
- package/src/_components/Toolbar/DateTypeFilter.tsx +63 -0
- package/src/_components/Toolbar/HearingTypeFilter.tsx +63 -0
- package/src/_components/Toolbar/Toolbar.tsx +159 -0
- package/src/_components/Toolbar/UserFilter.tsx +105 -0
- package/src/_components/Toolbar/ViewFilter.tsx +48 -0
- package/src/helpers/cache.ts +89 -0
- package/src/helpers/cases.ts +79 -0
- package/src/helpers/courtDates.ts +139 -0
- package/src/helpers/formatter.ts +17 -0
- package/src/helpers/munis.ts +44 -0
- package/src/helpers/people.ts +46 -0
- package/src/index.ts +2 -0
- package/src/types.ts +129 -0
- package/tsconfig.app.json +32 -0
- package/tsconfig.json +4 -0
- package/tsconfig.node.json +30 -0
- package/vite.config.ts +36 -0
- package/dist/court-calendar.css +0 -1
package/.editorconfig
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
+
|
|
3
|
+
# top-most EditorConfig file
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
# Unix-style newlines with a newline ending every file
|
|
7
|
+
[*]
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
|
|
13
|
+
# Indentation for JavaScript/TypeScript files
|
|
14
|
+
[*.{js,jsx,ts,tsx}]
|
|
15
|
+
indent_style = space
|
|
16
|
+
indent_size = 4
|
|
17
|
+
|
|
18
|
+
# Indentation for JSON files
|
|
19
|
+
[*.json]
|
|
20
|
+
indent_style = space
|
|
21
|
+
indent_size = 2
|
|
22
|
+
|
|
23
|
+
# Indentation for CSS files
|
|
24
|
+
[*.css]
|
|
25
|
+
indent_style = space
|
|
26
|
+
indent_size = 4
|
package/biome.json
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
|
|
3
|
+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
|
4
|
+
"files": { "ignoreUnknown": false },
|
|
5
|
+
"formatter": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"indentStyle": "space",
|
|
8
|
+
"indentWidth": 4,
|
|
9
|
+
"lineWidth": 120
|
|
10
|
+
},
|
|
11
|
+
"linter": {
|
|
12
|
+
"enabled": true,
|
|
13
|
+
"rules": { "recommended": false },
|
|
14
|
+
"includes": ["**", "!dist"]
|
|
15
|
+
},
|
|
16
|
+
"javascript": {
|
|
17
|
+
"formatter": { "quoteStyle": "single", "jsxQuoteStyle": "single" }
|
|
18
|
+
},
|
|
19
|
+
"overrides": [
|
|
20
|
+
{
|
|
21
|
+
"includes": ["**/*.{ts,tsx}"],
|
|
22
|
+
"linter": {
|
|
23
|
+
"rules": {
|
|
24
|
+
"complexity": {
|
|
25
|
+
"noAdjacentSpacesInRegex": "error",
|
|
26
|
+
"noExtraBooleanCast": "error",
|
|
27
|
+
"noUselessCatch": "error",
|
|
28
|
+
"noUselessEscapeInRegex": "error"
|
|
29
|
+
},
|
|
30
|
+
"correctness": {
|
|
31
|
+
"noConstAssign": "error",
|
|
32
|
+
"noConstantCondition": "error",
|
|
33
|
+
"noEmptyCharacterClassInRegex": "error",
|
|
34
|
+
"noEmptyPattern": "error",
|
|
35
|
+
"noGlobalObjectCalls": "error",
|
|
36
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
37
|
+
"noInvalidConstructorSuper": "error",
|
|
38
|
+
"noNonoctalDecimalEscape": "error",
|
|
39
|
+
"noPrecisionLoss": "error",
|
|
40
|
+
"noSelfAssign": "error",
|
|
41
|
+
"noSetterReturn": "error",
|
|
42
|
+
"noSwitchDeclarations": "error",
|
|
43
|
+
"noUndeclaredVariables": "error",
|
|
44
|
+
"noUnreachable": "error",
|
|
45
|
+
"noUnreachableSuper": "error",
|
|
46
|
+
"noUnsafeFinally": "error",
|
|
47
|
+
"noUnsafeOptionalChaining": "error",
|
|
48
|
+
"noUnusedLabels": "error",
|
|
49
|
+
"noUnusedPrivateClassMembers": "error",
|
|
50
|
+
"noUnusedVariables": "error",
|
|
51
|
+
"useIsNan": "error",
|
|
52
|
+
"useValidForDirection": "error",
|
|
53
|
+
"useValidTypeof": "error",
|
|
54
|
+
"useYield": "error"
|
|
55
|
+
},
|
|
56
|
+
"suspicious": {
|
|
57
|
+
"noAsyncPromiseExecutor": "error",
|
|
58
|
+
"noCatchAssign": "error",
|
|
59
|
+
"noClassAssign": "error",
|
|
60
|
+
"noCompareNegZero": "error",
|
|
61
|
+
"noConstantBinaryExpressions": "error",
|
|
62
|
+
"noControlCharactersInRegex": "error",
|
|
63
|
+
"noDebugger": "error",
|
|
64
|
+
"noDuplicateCase": "error",
|
|
65
|
+
"noDuplicateClassMembers": "error",
|
|
66
|
+
"noDuplicateElseIf": "error",
|
|
67
|
+
"noDuplicateObjectKeys": "error",
|
|
68
|
+
"noDuplicateParameters": "error",
|
|
69
|
+
"noEmptyBlockStatements": "error",
|
|
70
|
+
"noFallthroughSwitchClause": "error",
|
|
71
|
+
"noFunctionAssign": "error",
|
|
72
|
+
"noGlobalAssign": "error",
|
|
73
|
+
"noImportAssign": "error",
|
|
74
|
+
"noIrregularWhitespace": "error",
|
|
75
|
+
"noMisleadingCharacterClass": "error",
|
|
76
|
+
"noPrototypeBuiltins": "error",
|
|
77
|
+
"noRedeclare": "error",
|
|
78
|
+
"noShadowRestrictedNames": "error",
|
|
79
|
+
"noSparseArray": "error",
|
|
80
|
+
"noUnsafeNegation": "error",
|
|
81
|
+
"noUselessRegexBackrefs": "error",
|
|
82
|
+
"noWith": "error",
|
|
83
|
+
"useGetterReturn": "error"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{ "includes": ["**/*.{ts,tsx}"], "javascript": { "globals": [] } },
|
|
89
|
+
{
|
|
90
|
+
"includes": [
|
|
91
|
+
"**/*.{ts,tsx}",
|
|
92
|
+
"**/*.ts",
|
|
93
|
+
"**/*.{ts,tsx}",
|
|
94
|
+
"**/*.tsx",
|
|
95
|
+
"**/*.{ts,tsx}",
|
|
96
|
+
"**/*.mts",
|
|
97
|
+
"**/*.{ts,tsx}",
|
|
98
|
+
"**/*.cts"
|
|
99
|
+
],
|
|
100
|
+
"linter": {
|
|
101
|
+
"rules": {
|
|
102
|
+
"complexity": { "noArguments": "error" },
|
|
103
|
+
"correctness": {
|
|
104
|
+
"noConstAssign": "off",
|
|
105
|
+
"noGlobalObjectCalls": "off",
|
|
106
|
+
"noInvalidBuiltinInstantiation": "off",
|
|
107
|
+
"noInvalidConstructorSuper": "off",
|
|
108
|
+
"noSetterReturn": "off",
|
|
109
|
+
"noUndeclaredVariables": "off",
|
|
110
|
+
"noUnreachable": "off",
|
|
111
|
+
"noUnreachableSuper": "off"
|
|
112
|
+
},
|
|
113
|
+
"style": { "useConst": "error" },
|
|
114
|
+
"suspicious": {
|
|
115
|
+
"noClassAssign": "off",
|
|
116
|
+
"noDuplicateClassMembers": "off",
|
|
117
|
+
"noDuplicateObjectKeys": "off",
|
|
118
|
+
"noDuplicateParameters": "off",
|
|
119
|
+
"noFunctionAssign": "off",
|
|
120
|
+
"noImportAssign": "off",
|
|
121
|
+
"noRedeclare": "off",
|
|
122
|
+
"noUnsafeNegation": "off",
|
|
123
|
+
"noVar": "error",
|
|
124
|
+
"noWith": "off",
|
|
125
|
+
"useGetterReturn": "off"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"includes": ["**/*.{ts,tsx}"],
|
|
132
|
+
"linter": {
|
|
133
|
+
"rules": {
|
|
134
|
+
"complexity": { "noUselessTypeConstraint": "error" },
|
|
135
|
+
"correctness": { "noUnusedVariables": "error" },
|
|
136
|
+
"style": {
|
|
137
|
+
"noCommonJs": "error",
|
|
138
|
+
"noNamespace": "off",
|
|
139
|
+
"useArrayLiterals": "error",
|
|
140
|
+
"useAsConstAssertion": "error"
|
|
141
|
+
},
|
|
142
|
+
"suspicious": {
|
|
143
|
+
"noExplicitAny": "error",
|
|
144
|
+
"noExtraNonNullAssertion": "error",
|
|
145
|
+
"noMisleadingInstantiator": "error",
|
|
146
|
+
"noNonNullAssertedOptionalChain": "error",
|
|
147
|
+
"noUnsafeDeclarationMerging": "error",
|
|
148
|
+
"useNamespaceKeyword": "error"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"includes": ["**/*.{ts,tsx}"],
|
|
155
|
+
"linter": {
|
|
156
|
+
"rules": {
|
|
157
|
+
"correctness": {
|
|
158
|
+
"useExhaustiveDependencies": "info",
|
|
159
|
+
"useHookAtTopLevel": "error"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{ "includes": ["**/*.{ts,tsx}"], "linter": { "rules": {} } },
|
|
165
|
+
{
|
|
166
|
+
"includes": ["**/*.{ts,tsx}"],
|
|
167
|
+
"javascript": {
|
|
168
|
+
"globals": [
|
|
169
|
+
"onanimationend",
|
|
170
|
+
"ongamepadconnected",
|
|
171
|
+
"onlostpointercapture",
|
|
172
|
+
"onanimationiteration",
|
|
173
|
+
"onkeyup",
|
|
174
|
+
"onmousedown",
|
|
175
|
+
"onanimationstart",
|
|
176
|
+
"onslotchange",
|
|
177
|
+
"onprogress",
|
|
178
|
+
"ontransitionstart",
|
|
179
|
+
"onpause",
|
|
180
|
+
"onended",
|
|
181
|
+
"onpointerover",
|
|
182
|
+
"onscrollend",
|
|
183
|
+
"onformdata",
|
|
184
|
+
"ontransitionrun",
|
|
185
|
+
"onanimationcancel",
|
|
186
|
+
"ondrag",
|
|
187
|
+
"onchange",
|
|
188
|
+
"onbeforeinstallprompt",
|
|
189
|
+
"onbeforexrselect",
|
|
190
|
+
"onmessage",
|
|
191
|
+
"ontransitioncancel",
|
|
192
|
+
"onpointerdown",
|
|
193
|
+
"onabort",
|
|
194
|
+
"onpointerout",
|
|
195
|
+
"oncuechange",
|
|
196
|
+
"ongotpointercapture",
|
|
197
|
+
"onscrollsnapchanging",
|
|
198
|
+
"onsearch",
|
|
199
|
+
"onsubmit",
|
|
200
|
+
"onstalled",
|
|
201
|
+
"onsuspend",
|
|
202
|
+
"onreset",
|
|
203
|
+
"onerror",
|
|
204
|
+
"onmouseenter",
|
|
205
|
+
"ongamepaddisconnected",
|
|
206
|
+
"onresize",
|
|
207
|
+
"ondragover",
|
|
208
|
+
"onbeforetoggle",
|
|
209
|
+
"onmouseover",
|
|
210
|
+
"onpagehide",
|
|
211
|
+
"onmousemove",
|
|
212
|
+
"onratechange",
|
|
213
|
+
"oncommand",
|
|
214
|
+
"onmessageerror",
|
|
215
|
+
"onwheel",
|
|
216
|
+
"ondevicemotion",
|
|
217
|
+
"onauxclick",
|
|
218
|
+
"ontransitionend",
|
|
219
|
+
"onpaste",
|
|
220
|
+
"onpageswap",
|
|
221
|
+
"ononline",
|
|
222
|
+
"ondeviceorientationabsolute",
|
|
223
|
+
"onkeydown",
|
|
224
|
+
"onclose",
|
|
225
|
+
"onselect",
|
|
226
|
+
"onpageshow",
|
|
227
|
+
"onpointercancel",
|
|
228
|
+
"onbeforematch",
|
|
229
|
+
"onpointerrawupdate",
|
|
230
|
+
"ondragleave",
|
|
231
|
+
"onscrollsnapchange",
|
|
232
|
+
"onseeked",
|
|
233
|
+
"onwaiting",
|
|
234
|
+
"onbeforeunload",
|
|
235
|
+
"onplaying",
|
|
236
|
+
"onvolumechange",
|
|
237
|
+
"ondragend",
|
|
238
|
+
"onstorage",
|
|
239
|
+
"onloadeddata",
|
|
240
|
+
"onfocus",
|
|
241
|
+
"onoffline",
|
|
242
|
+
"onplay",
|
|
243
|
+
"onafterprint",
|
|
244
|
+
"onclick",
|
|
245
|
+
"oncut",
|
|
246
|
+
"onmouseout",
|
|
247
|
+
"ondblclick",
|
|
248
|
+
"oncanplay",
|
|
249
|
+
"onloadstart",
|
|
250
|
+
"onappinstalled",
|
|
251
|
+
"onpointermove",
|
|
252
|
+
"ontoggle",
|
|
253
|
+
"oncontextmenu",
|
|
254
|
+
"onblur",
|
|
255
|
+
"oncancel",
|
|
256
|
+
"onbeforeprint",
|
|
257
|
+
"oncontextrestored",
|
|
258
|
+
"onloadedmetadata",
|
|
259
|
+
"onpointerup",
|
|
260
|
+
"onlanguagechange",
|
|
261
|
+
"oncopy",
|
|
262
|
+
"onselectstart",
|
|
263
|
+
"onscroll",
|
|
264
|
+
"onload",
|
|
265
|
+
"ondragstart",
|
|
266
|
+
"onbeforeinput",
|
|
267
|
+
"oncanplaythrough",
|
|
268
|
+
"oninput",
|
|
269
|
+
"oninvalid",
|
|
270
|
+
"ontimeupdate",
|
|
271
|
+
"ondurationchange",
|
|
272
|
+
"onselectionchange",
|
|
273
|
+
"onmouseup",
|
|
274
|
+
"location",
|
|
275
|
+
"onkeypress",
|
|
276
|
+
"onpointerleave",
|
|
277
|
+
"oncontextlost",
|
|
278
|
+
"ondrop",
|
|
279
|
+
"onsecuritypolicyviolation",
|
|
280
|
+
"oncontentvisibilityautostatechange",
|
|
281
|
+
"ondeviceorientation",
|
|
282
|
+
"onseeking",
|
|
283
|
+
"onrejectionhandled",
|
|
284
|
+
"onunload",
|
|
285
|
+
"onmouseleave",
|
|
286
|
+
"onhashchange",
|
|
287
|
+
"onpointerenter",
|
|
288
|
+
"onmousewheel",
|
|
289
|
+
"onunhandledrejection",
|
|
290
|
+
"ondragenter",
|
|
291
|
+
"onpopstate",
|
|
292
|
+
"onpagereveal",
|
|
293
|
+
"onemptied"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"assist": {
|
|
299
|
+
"enabled": true,
|
|
300
|
+
"actions": { "source": { "organizeImports": "off" } }
|
|
301
|
+
}
|
|
302
|
+
}
|
package/dev/App.tsx
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { CCalendar } from '../src/';
|
|
3
|
+
|
|
4
|
+
function App() {
|
|
5
|
+
function toggleTheme() {
|
|
6
|
+
setCurrentTheme(currentTheme === 'light' ? 'dark' : 'light');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const [currentTheme, setCurrentTheme] = useState('dark');
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
document.body.setAttribute('data-theme', currentTheme);
|
|
13
|
+
}, [currentTheme]);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
style={{
|
|
18
|
+
padding: '2rem',
|
|
19
|
+
backgroundColor: 'var(--bg)',
|
|
20
|
+
color: 'var(--text)',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<h1>Court Calendar Demo</h1>
|
|
24
|
+
<div
|
|
25
|
+
style={{
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
display: 'flex',
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
<button
|
|
31
|
+
onClick={toggleTheme}
|
|
32
|
+
style={{
|
|
33
|
+
marginBottom: '1rem',
|
|
34
|
+
height: '2rem',
|
|
35
|
+
backgroundColor: 'var(--bg)',
|
|
36
|
+
color: 'var(--text)',
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
Theme toggle
|
|
40
|
+
</button>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<CCalendar
|
|
44
|
+
apiKey={import.meta.env.VITE_CALENDAR_API_KEY || ''}
|
|
45
|
+
activeUser={27}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default App;
|
package/dev/main.tsx
ADDED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Case, CourtDate } from '../../types';
|
|
2
|
-
export default function CalendarList({ filteredDates, setSelectedDate, currentDate, onUpdateChair, allCases,
|
|
2
|
+
export default function CalendarList({ filteredDates, setSelectedDate, currentDate, onUpdateChair, allCases, }: {
|
|
3
3
|
filteredDates: CourtDate[];
|
|
4
4
|
setSelectedDate: (date: CourtDate) => void;
|
|
5
5
|
currentDate: Date;
|
|
6
6
|
onUpdateChair?: (courtDateId: number, position: 'first' | 'second', userId: number | null) => void;
|
|
7
7
|
allCases: Record<string, Case[]>;
|
|
8
|
-
isAdmin: boolean;
|
|
9
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalMode, CalendarFilterCtx, Case, CourtDate } from '../../types';
|
|
2
|
-
export default function CCModal({ modalIsOpen, modalMode, setModalMode, setIsOpen, selectedCourtDate, updateCourtDateInMemory, filterCtx, setFilterCtx, selectedCases, updateCases, deleteCases, isFetchingCases, apiKey,
|
|
2
|
+
export default function CCModal({ modalIsOpen, modalMode, setModalMode, setIsOpen, selectedCourtDate, updateCourtDateInMemory, filterCtx, setFilterCtx, selectedCases, updateCases, deleteCases, isFetchingCases, apiKey, }: {
|
|
3
3
|
modalIsOpen: boolean;
|
|
4
4
|
modalMode: ModalMode;
|
|
5
5
|
setModalMode: (mode: ModalMode) => void;
|
|
@@ -13,5 +13,4 @@ export default function CCModal({ modalIsOpen, modalMode, setModalMode, setIsOpe
|
|
|
13
13
|
deleteCases: (courtDateId: string) => void;
|
|
14
14
|
isFetchingCases: boolean;
|
|
15
15
|
apiKey: string;
|
|
16
|
-
isAdmin: boolean;
|
|
17
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ModalMode } from '../../types';
|
|
2
|
-
export default function ModalActions({ modalMode, onDelete, onSave, setModalMode, setIsOpen,
|
|
2
|
+
export default function ModalActions({ modalMode, onDelete, onSave, setModalMode, setIsOpen, }: {
|
|
3
3
|
modalMode: ModalMode;
|
|
4
4
|
onDelete: () => void;
|
|
5
5
|
onSave: () => void;
|
|
6
6
|
setModalMode: (mode: ModalMode) => void;
|
|
7
7
|
setIsOpen: (isOpen: boolean) => void;
|
|
8
|
-
isAdmin: boolean;
|
|
9
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
type ChairPosition = 'first' | 'second';
|
|
2
|
-
export default function FirstSecondChairIcons({ user1ID, user2ID, onUpdateChair,
|
|
2
|
+
export default function FirstSecondChairIcons({ user1ID, user2ID, onUpdateChair, }: {
|
|
3
3
|
user1ID: number | null;
|
|
4
4
|
user2ID: number | null;
|
|
5
5
|
onUpdateChair?: (position: ChairPosition, userId: number | null) => void;
|
|
6
|
-
isAdmin: boolean;
|
|
7
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Calendar } from '@fullcalendar/core/index.js';
|
|
2
2
|
import { CalendarFilterCtx } from '../../types';
|
|
3
|
-
export default function Toolbar({ calendarApi, filterCtx, setFilterCtx, handleCreateClick, currentView, setCurrentView, setCurrentDate, activeUser, isFetchingCases,
|
|
3
|
+
export default function Toolbar({ calendarApi, filterCtx, setFilterCtx, handleCreateClick, currentView, setCurrentView, setCurrentDate, activeUser, isFetchingCases, }: {
|
|
4
4
|
calendarApi: Calendar | null;
|
|
5
5
|
filterCtx: CalendarFilterCtx;
|
|
6
6
|
setFilterCtx: (ctx: CalendarFilterCtx) => void;
|
|
@@ -11,5 +11,4 @@ export default function Toolbar({ calendarApi, filterCtx, setFilterCtx, handleCr
|
|
|
11
11
|
setCurrentDate: (date: Date) => void;
|
|
12
12
|
activeUser: number | null;
|
|
13
13
|
isFetchingCases: boolean;
|
|
14
|
-
isAdmin: boolean;
|
|
15
14
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/helpers/people.d.ts
CHANGED