@gnwebsoft/ui 4.0.3 → 4.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/dist/{chunk-DKD73ADK.cjs → chunk-2QTXS736.cjs} +28 -77
- package/dist/{chunk-DS524L7W.cjs → chunk-3RZ4JNO3.cjs} +5 -5
- package/dist/chunk-HKO2FXDM.js +2232 -0
- package/dist/{chunk-M3NVOZ7L.cjs → chunk-IKHMJW5A.cjs} +1 -1
- package/dist/chunk-LUW7V5GI.cjs +1 -1
- package/dist/chunk-MVPLBJRK.cjs +1 -1
- package/dist/chunk-NMJ5V7FQ.js +2512 -0
- package/dist/chunk-XN3KVY4J.js +467 -0
- package/dist/chunk-XTPFOURJ.cjs +72 -0
- package/dist/chunk-Y3QTSDLJ.cjs +1 -1
- package/dist/core/api/ApiClient.d.ts +329 -0
- package/dist/core/api/ApiClient.d.ts.map +1 -0
- package/dist/core/api/CorrelationIdGenerator.d.ts +52 -0
- package/dist/core/api/CorrelationIdGenerator.d.ts.map +1 -0
- package/dist/core/api/Errors/ErrorNormalizer.d.ts +106 -0
- package/dist/core/api/Errors/ErrorNormalizer.d.ts.map +1 -0
- package/dist/core/api/Interceptors/InterceptorManager.d.ts +236 -0
- package/dist/core/api/Interceptors/InterceptorManager.d.ts.map +1 -0
- package/dist/core/api/Models/FilterModel.d.ts +22 -0
- package/dist/core/api/Models/FilterModel.d.ts.map +1 -0
- package/dist/core/api/Models/QueryParams.d.ts +13 -0
- package/dist/core/api/Models/QueryParams.d.ts.map +1 -0
- package/dist/core/api/Models/index.d.ts +3 -0
- package/dist/core/api/Models/index.d.ts.map +1 -0
- package/dist/core/api/RequestManager.d.ts +142 -0
- package/dist/core/api/RequestManager.d.ts.map +1 -0
- package/dist/core/api/Retry/RetryHandler.d.ts +100 -0
- package/dist/core/api/Retry/RetryHandler.d.ts.map +1 -0
- package/dist/core/api/Signals/SignalManager.d.ts +153 -0
- package/dist/core/api/Signals/SignalManager.d.ts.map +1 -0
- package/dist/core/api/Utils/ResponseParser.d.ts +105 -0
- package/dist/core/api/Utils/ResponseParser.d.ts.map +1 -0
- package/dist/core/api/Utils/UrlBuilder.d.ts +111 -0
- package/dist/core/api/Utils/UrlBuilder.d.ts.map +1 -0
- package/dist/core/api/createApiClient.d.ts +243 -0
- package/dist/core/api/createApiClient.d.ts.map +1 -0
- package/dist/core/api/index.d.ts +7 -0
- package/dist/core/api/index.d.ts.map +1 -0
- package/dist/core/api/types/ApiError.d.ts +17 -0
- package/dist/core/api/types/ApiError.d.ts.map +1 -0
- package/dist/core/api/types/ApiResponse.d.ts +76 -0
- package/dist/core/api/types/ApiResponse.d.ts.map +1 -0
- package/dist/core/api/types/CancelToken.d.ts +15 -0
- package/dist/core/api/types/CancelToken.d.ts.map +1 -0
- package/dist/core/api/types/ErrorInterceptor.d.ts +3 -0
- package/dist/core/api/types/ErrorInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ErrorResponseData.d.ts +68 -0
- package/dist/core/api/types/ErrorResponseData.d.ts.map +1 -0
- package/dist/core/api/types/RequestConfig.d.ts +21 -0
- package/dist/core/api/types/RequestConfig.d.ts.map +1 -0
- package/dist/core/api/types/RequestInterceptor.d.ts +3 -0
- package/dist/core/api/types/RequestInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ResponseInterceptor.d.ts +3 -0
- package/dist/core/api/types/ResponseInterceptor.d.ts.map +1 -0
- package/dist/core/api/types/ValidationErrors.d.ts +7 -0
- package/dist/core/api/types/ValidationErrors.d.ts.map +1 -0
- package/dist/core/api/types/index.d.ts +10 -0
- package/dist/core/api/types/index.d.ts.map +1 -0
- package/dist/core/api/useValidationErrors.d.ts +11 -0
- package/dist/core/api/useValidationErrors.d.ts.map +1 -0
- package/dist/core/components/AuthorizedView/AuthorizedView.d.ts +7 -0
- package/dist/core/components/AuthorizedView/AuthorizedView.d.ts.map +1 -0
- package/dist/core/components/AuthorizedView/index.d.ts +2 -0
- package/dist/core/components/AuthorizedView/index.d.ts.map +1 -0
- package/dist/core/components/CancelButton/CancelButton.d.ts +4 -0
- package/dist/core/components/CancelButton/CancelButton.d.ts.map +1 -0
- package/dist/core/components/CancelButton/index.d.ts +2 -0
- package/dist/core/components/CancelButton/index.d.ts.map +1 -0
- package/dist/core/components/ClearButton/ClearButton.d.ts +63 -0
- package/dist/core/components/ClearButton/ClearButton.d.ts.map +1 -0
- package/dist/core/components/ClearButton/index.d.ts +2 -0
- package/dist/core/components/ClearButton/index.d.ts.map +1 -0
- package/dist/core/components/Containers/SimpleContainer.d.ts +10 -0
- package/dist/core/components/Containers/SimpleContainer.d.ts.map +1 -0
- package/dist/core/components/Containers/index.d.ts +2 -0
- package/dist/core/components/Containers/index.d.ts.map +1 -0
- package/dist/core/components/FilterButton/FilterButton.d.ts +86 -0
- package/dist/core/components/FilterButton/FilterButton.d.ts.map +1 -0
- package/dist/core/components/FilterButton/index.d.ts +2 -0
- package/dist/core/components/FilterButton/index.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/FilterChip.d.ts +9 -0
- package/dist/core/components/FilterDisplay/FilterChip.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/FilterDisplay.d.ts +10 -0
- package/dist/core/components/FilterDisplay/FilterDisplay.d.ts.map +1 -0
- package/dist/core/components/FilterDisplay/index.d.ts +3 -0
- package/dist/core/components/FilterDisplay/index.d.ts.map +1 -0
- package/dist/core/components/FilterWrapper/FilterWrapper.d.ts +99 -0
- package/dist/core/components/FilterWrapper/FilterWrapper.d.ts.map +1 -0
- package/dist/core/components/FilterWrapper/index.d.ts +2 -0
- package/dist/core/components/FilterWrapper/index.d.ts.map +1 -0
- package/dist/core/components/Footer/Footer.d.ts +3 -0
- package/dist/core/components/Footer/Footer.d.ts.map +1 -0
- package/dist/core/components/Footer/index.d.ts +2 -0
- package/dist/core/components/Footer/index.d.ts.map +1 -0
- package/dist/core/components/LabelText/LabelText.d.ts +103 -0
- package/dist/core/components/LabelText/LabelText.d.ts.map +1 -0
- package/dist/core/components/LabelText/index.d.ts +2 -0
- package/dist/core/components/LabelText/index.d.ts.map +1 -0
- package/dist/core/components/RenderIf/RenderIf.d.ts +7 -0
- package/dist/core/components/RenderIf/RenderIf.d.ts.map +1 -0
- package/dist/core/components/RenderIf/index.d.ts +2 -0
- package/dist/core/components/RenderIf/index.d.ts.map +1 -0
- package/dist/core/components/SectionBox/SectionBox.d.ts +15 -0
- package/dist/core/components/SectionBox/SectionBox.d.ts.map +1 -0
- package/dist/core/components/SectionBox/index.d.ts +2 -0
- package/dist/core/components/SectionBox/index.d.ts.map +1 -0
- package/dist/core/components/SimpleTabs/SimpleTabs.d.ts +17 -0
- package/dist/core/components/SimpleTabs/SimpleTabs.d.ts.map +1 -0
- package/dist/core/components/SimpleTabs/index.d.ts +2 -0
- package/dist/core/components/SimpleTabs/index.d.ts.map +1 -0
- package/dist/core/components/SubmitButton/SubmitButton.d.ts +6 -0
- package/dist/core/components/SubmitButton/SubmitButton.d.ts.map +1 -0
- package/dist/core/components/SubmitButton/index.d.ts +2 -0
- package/dist/core/components/SubmitButton/index.d.ts.map +1 -0
- package/dist/core/components/WithRef/WithRef.d.ts +14 -0
- package/dist/core/components/WithRef/WithRef.d.ts.map +1 -0
- package/dist/core/components/WithRef/index.d.ts +2 -0
- package/dist/core/components/WithRef/index.d.ts.map +1 -0
- package/dist/core/components/index.d.ts +15 -0
- package/dist/core/components/index.d.ts.map +1 -0
- package/dist/core/config.d.ts +24 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/hooks/index.d.ts +3 -0
- package/dist/core/hooks/index.d.ts.map +1 -0
- package/dist/core/hooks/makeQuery.d.ts +12 -0
- package/dist/core/hooks/makeQuery.d.ts.map +1 -0
- package/dist/core/hooks/useApiClient.d.ts +3 -0
- package/dist/core/hooks/useApiClient.d.ts.map +1 -0
- package/dist/core/hooks/useFormErrorHandler.d.ts +35 -0
- package/dist/core/hooks/useFormErrorHandler.d.ts.map +1 -0
- package/dist/core/hooks/useListView.d.ts +20 -0
- package/dist/core/hooks/useListView.d.ts.map +1 -0
- package/dist/core/index.cjs +3 -3
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +1 -1
- package/dist/core/models.d.ts +5 -0
- package/dist/core/models.d.ts.map +1 -0
- package/dist/core/types/FilterLabel.d.ts +6 -0
- package/dist/core/types/FilterLabel.d.ts.map +1 -0
- package/dist/core/types/ListModels.d.ts +18 -0
- package/dist/core/types/ListModels.d.ts.map +1 -0
- package/dist/core/types/OptionsRequest.d.ts +4 -0
- package/dist/core/types/OptionsRequest.d.ts.map +1 -0
- package/dist/core/types/index.d.ts +4 -0
- package/dist/core/types/index.d.ts.map +1 -0
- package/dist/core/utils/CacheUtility/index.d.ts +15 -0
- package/dist/core/utils/CacheUtility/index.d.ts.map +1 -0
- package/dist/core/utils/calculateFilterCount.d.ts +2 -0
- package/dist/core/utils/calculateFilterCount.d.ts.map +1 -0
- package/dist/core/utils/format-time.d.ts +79 -0
- package/dist/core/utils/format-time.d.ts.map +1 -0
- package/dist/core/utils/getEmptyObject.d.ts +7 -0
- package/dist/core/utils/getEmptyObject.d.ts.map +1 -0
- package/dist/core/utils/index.d.ts +7 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/useStableRowCount.d.ts +9 -0
- package/dist/core/utils/useStableRowCount.d.ts.map +1 -0
- package/dist/core/utils/watch/core.d.ts +22 -0
- package/dist/core/utils/watch/core.d.ts.map +1 -0
- package/dist/core/utils/watch/index.d.ts +49 -0
- package/dist/core/utils/watch/index.d.ts.map +1 -0
- package/dist/core/utils/watch/utilities.d.ts +34 -0
- package/dist/core/utils/watch/utilities.d.ts.map +1 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useTransform/enhanced.d.ts +133 -0
- package/dist/hooks/useTransform/enhanced.d.ts.map +1 -0
- package/dist/hooks/useTransform/index.d.ts +93 -0
- package/dist/hooks/useTransform/index.d.ts.map +1 -0
- package/dist/index.cjs +6 -24
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -22
- package/dist/types/AsyncSelectPayload.d.ts +9 -0
- package/dist/types/AsyncSelectPayload.d.ts.map +1 -0
- package/dist/types/OperationResponse.d.ts +5 -0
- package/dist/types/OperationResponse.d.ts.map +1 -0
- package/dist/types/OptionItem.d.ts +75 -0
- package/dist/types/OptionItem.d.ts.map +1 -0
- package/dist/types/api.d.ts +127 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/events.d.ts +74 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -1
- package/dist/types/utilities.d.ts +458 -0
- package/dist/types/utilities.d.ts.map +1 -0
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api2.d.ts +14 -0
- package/dist/utils/api2.d.ts.map +1 -0
- package/dist/utils/flattenObjectKeys.d.ts +63 -0
- package/dist/utils/flattenObjectKeys.d.ts.map +1 -0
- package/dist/utils/getTimezone.d.ts +4 -0
- package/dist/utils/getTimezone.d.ts.map +1 -0
- package/dist/utils/handleServerErrors.d.ts +70 -0
- package/dist/utils/handleServerErrors.d.ts.map +1 -0
- package/dist/utils/index.cjs +3 -3
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/propertyExists.d.ts +35 -0
- package/dist/utils/propertyExists.d.ts.map +1 -0
- package/dist/utils/readValueAsDate.d.ts +4 -0
- package/dist/utils/readValueAsDate.d.ts.map +1 -0
- package/dist/utils/removeLeadingTrailingSlashes.d.ts +2 -0
- package/dist/utils/removeLeadingTrailingSlashes.d.ts.map +1 -0
- package/dist/utils/schemaTools.d.ts +82 -0
- package/dist/utils/schemaTools.d.ts.map +1 -0
- package/dist/utils/typeGuards.d.ts +316 -0
- package/dist/utils/typeGuards.d.ts.map +1 -0
- package/dist/utils/watch/core.d.ts +22 -0
- package/dist/utils/watch/core.d.ts.map +1 -0
- package/dist/utils/watch/index.d.ts +49 -0
- package/dist/utils/watch/index.d.ts.map +1 -0
- package/dist/utils/watch/utilities.d.ts +34 -0
- package/dist/utils/watch/utilities.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/AsyncMultiSelect.d.ts +9 -0
- package/dist/wrappers/AsyncMultiSelect/AsyncMultiSelect.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/index.d.ts +3 -0
- package/dist/wrappers/AsyncMultiSelect/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect/types.d.ts +19 -0
- package/dist/wrappers/AsyncMultiSelect/types.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/AsyncMultiSelect2.d.ts +8 -0
- package/dist/wrappers/AsyncMultiSelect2/AsyncMultiSelect2.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/index.d.ts +3 -0
- package/dist/wrappers/AsyncMultiSelect2/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncMultiSelect2/types.d.ts +29 -0
- package/dist/wrappers/AsyncMultiSelect2/types.d.ts.map +1 -0
- package/dist/wrappers/AsyncSelect/index.d.ts +9 -0
- package/dist/wrappers/AsyncSelect/index.d.ts.map +1 -0
- package/dist/wrappers/AsyncSelect/types.d.ts +19 -0
- package/dist/wrappers/AsyncSelect/types.d.ts.map +1 -0
- package/dist/wrappers/Button.d.ts +49 -0
- package/dist/wrappers/Button.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/CheckboxElement.d.ts +102 -0
- package/dist/wrappers/CheckboxElement/CheckboxElement.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/index.d.ts +3 -0
- package/dist/wrappers/CheckboxElement/index.d.ts.map +1 -0
- package/dist/wrappers/CheckboxElement/types.d.ts +76 -0
- package/dist/wrappers/CheckboxElement/types.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/CheckboxGroup.d.ts +96 -0
- package/dist/wrappers/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/EnhancedCheckboxGroup.d.ts +49 -0
- package/dist/wrappers/CheckboxGroup/EnhancedCheckboxGroup.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/enhanced-types.d.ts +171 -0
- package/dist/wrappers/CheckboxGroup/enhanced-types.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/index.d.ts +3 -0
- package/dist/wrappers/CheckboxGroup/index.d.ts.map +1 -0
- package/dist/wrappers/CheckboxGroup/types.d.ts +106 -0
- package/dist/wrappers/CheckboxGroup/types.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/DatePickerElement.d.ts +131 -0
- package/dist/wrappers/DatePickerElement/DatePickerElement.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/DatePickerElementCore.d.ts +57 -0
- package/dist/wrappers/DatePickerElement/DatePickerElementCore.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/index.d.ts +24 -0
- package/dist/wrappers/DatePickerElement/hooks/index.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerStyles.d.ts +63 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerStyles.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValidation.d.ts +79 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValidation.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValue.d.ts +73 -0
- package/dist/wrappers/DatePickerElement/hooks/useDatePickerValue.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/index.d.ts +47 -0
- package/dist/wrappers/DatePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/types.d.ts +183 -0
- package/dist/wrappers/DatePickerElement/types.d.ts.map +1 -0
- package/dist/wrappers/DatePickerElement/utils.d.ts +89 -0
- package/dist/wrappers/DatePickerElement/utils.d.ts.map +1 -0
- package/dist/wrappers/DateTimePickerElement/index.d.ts +1 -0
- package/dist/wrappers/DateTimePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/DateTimePickerElement/types.d.ts +1 -0
- package/dist/wrappers/DateTimePickerElement/types.d.ts.map +1 -0
- package/dist/wrappers/Field/index.d.ts +42 -0
- package/dist/wrappers/Field/index.d.ts.map +1 -0
- package/dist/wrappers/NumberFieldElement/NumberFieldElement.d.ts +176 -0
- package/dist/wrappers/NumberFieldElement/NumberFieldElement.d.ts.map +1 -0
- package/dist/wrappers/NumberFieldElement/index.d.ts +3 -0
- package/dist/wrappers/NumberFieldElement/index.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/HelperText.d.ts +8 -0
- package/dist/wrappers/OTPInputElement/HelperText.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/OTPInputElement.d.ts +32 -0
- package/dist/wrappers/OTPInputElement/OTPInputElement.d.ts.map +1 -0
- package/dist/wrappers/OTPInputElement/index.d.ts +3 -0
- package/dist/wrappers/OTPInputElement/index.d.ts.map +1 -0
- package/dist/wrappers/PasswordElement/PasswordElement.d.ts +104 -0
- package/dist/wrappers/PasswordElement/PasswordElement.d.ts.map +1 -0
- package/dist/wrappers/PasswordElement/index.d.ts +2 -0
- package/dist/wrappers/PasswordElement/index.d.ts.map +1 -0
- package/dist/wrappers/RadioButtonGroup/RadioButtonGroup.d.ts +38 -0
- package/dist/wrappers/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
- package/dist/wrappers/RadioButtonGroup/index.d.ts +2 -0
- package/dist/wrappers/RadioButtonGroup/index.d.ts.map +1 -0
- package/dist/wrappers/SelectCascadeElement/SelectCascadeElement.d.ts +22 -0
- package/dist/wrappers/SelectCascadeElement/SelectCascadeElement.d.ts.map +1 -0
- package/dist/wrappers/SelectCascadeElement/index.d.ts +2 -0
- package/dist/wrappers/SelectCascadeElement/index.d.ts.map +1 -0
- package/dist/wrappers/SelectElement/SelectElement.d.ts +152 -0
- package/dist/wrappers/SelectElement/SelectElement.d.ts.map +1 -0
- package/dist/wrappers/SelectElement/index.d.ts +2 -0
- package/dist/wrappers/SelectElement/index.d.ts.map +1 -0
- package/dist/wrappers/SelectMultiElement/SelectMultiElement.d.ts +21 -0
- package/dist/wrappers/SelectMultiElement/SelectMultiElement.d.ts.map +1 -0
- package/dist/wrappers/SelectMultiElement/index.d.ts +2 -0
- package/dist/wrappers/SelectMultiElement/index.d.ts.map +1 -0
- package/dist/wrappers/TextFieldElement/TextFieldElement.d.ts +179 -0
- package/dist/wrappers/TextFieldElement/TextFieldElement.d.ts.map +1 -0
- package/dist/wrappers/TextFieldElement/index.d.ts +3 -0
- package/dist/wrappers/TextFieldElement/index.d.ts.map +1 -0
- package/dist/wrappers/TimePickerElement/TimePickerElement.d.ts +30 -0
- package/dist/wrappers/TimePickerElement/TimePickerElement.d.ts.map +1 -0
- package/dist/wrappers/TimePickerElement/index.d.ts +2 -0
- package/dist/wrappers/TimePickerElement/index.d.ts.map +1 -0
- package/dist/wrappers/index.cjs +3 -4
- package/dist/wrappers/index.d.ts +14 -0
- package/dist/wrappers/index.d.ts.map +1 -0
- package/dist/wrappers/index.js +1 -2
- package/dist/wrappers/types/common.d.ts +87 -0
- package/dist/wrappers/types/common.d.ts.map +1 -0
- package/dist/wrappers/types/index.d.ts +8 -0
- package/dist/wrappers/types/index.d.ts.map +1 -0
- package/package.json +4 -8
- package/dist/chunk-BXWPG6VW.js +0 -108
- package/dist/chunk-EOUSOGZ6.js +0 -2281
- package/dist/chunk-EYXPJMEF.cjs +0 -108
- package/dist/chunk-GHW77WIM.cjs +0 -72
- package/dist/chunk-PUQIPRL2.js +0 -467
- package/dist/chunk-YAYXHYKC.js +0 -2512
- package/dist/i18n/index.cjs +0 -21
- package/dist/i18n/index.js +0 -21
- /package/dist/{chunk-MULSVYFT.js → chunk-6GKAC3KH.js} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ApiError } from './ApiError';
|
|
2
|
+
/**
|
|
3
|
+
* Standardized API response structure for server communications.
|
|
4
|
+
*
|
|
5
|
+
* This type defines the common structure for API responses throughout the application,
|
|
6
|
+
* providing a consistent interface for handling server responses, errors, and data.
|
|
7
|
+
* It follows a standard error response format with optional success data.
|
|
8
|
+
*
|
|
9
|
+
* @template TModel - The type of data contained in the apiData field
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* Success response with data:
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const userResponse: ApiResponse<User> = {
|
|
15
|
+
* status: 200,
|
|
16
|
+
* apiData: {
|
|
17
|
+
* id: 1,
|
|
18
|
+
* name: 'John Doe',
|
|
19
|
+
* email: 'john@example.com'
|
|
20
|
+
* }
|
|
21
|
+
* };
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* Error response with validation errors:
|
|
26
|
+
* ```tsx
|
|
27
|
+
* const errorResponse: ApiResponse<null> = {
|
|
28
|
+
* type: 'validation_error',
|
|
29
|
+
* title: 'Validation failed',
|
|
30
|
+
* status: 400,
|
|
31
|
+
* traceId: 'abc123',
|
|
32
|
+
* errors: {
|
|
33
|
+
* email: 'Email is required',
|
|
34
|
+
* password: ['Too short', 'Must contain numbers']
|
|
35
|
+
* },
|
|
36
|
+
* modelErrors: true
|
|
37
|
+
* };
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export interface ApiResponse<TData = unknown, TError = ApiError> {
|
|
43
|
+
/**
|
|
44
|
+
* The type or category of the response/error
|
|
45
|
+
* @example "validation_error" | "server_error" | "success"
|
|
46
|
+
*/
|
|
47
|
+
type?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Human-readable title or summary of the response
|
|
50
|
+
* @example "Validation Failed" | "User Created Successfully"
|
|
51
|
+
*/
|
|
52
|
+
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* HTTP status code of the response
|
|
55
|
+
* @example 200 | 400 | 500
|
|
56
|
+
*/
|
|
57
|
+
status?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Unique identifier for tracing/debugging the request
|
|
60
|
+
* @example "abc123-def456-ghi789"
|
|
61
|
+
*/
|
|
62
|
+
traceId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Field-specific validation errors
|
|
65
|
+
*/
|
|
66
|
+
errors?: TError;
|
|
67
|
+
/**
|
|
68
|
+
* Flag indicating if there are model validation errors
|
|
69
|
+
*/
|
|
70
|
+
modelErrors?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The actual response data/payload
|
|
73
|
+
*/
|
|
74
|
+
data?: TData;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=ApiResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiResponse.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/ApiResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,WAAW,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,QAAQ;IAC7D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class CancelToken {
|
|
2
|
+
private abortController;
|
|
3
|
+
private cancelPromise;
|
|
4
|
+
private cancelResolve?;
|
|
5
|
+
constructor();
|
|
6
|
+
get signal(): AbortSignal;
|
|
7
|
+
cancel(reason?: string): void;
|
|
8
|
+
get isCancelled(): boolean;
|
|
9
|
+
throwIfCancelled(): void;
|
|
10
|
+
static source(): {
|
|
11
|
+
token: CancelToken;
|
|
12
|
+
cancel: (reason?: string) => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CancelToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelToken.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/CancelToken.ts"],"names":[],"mappings":"AACA,qBAAa,WAAW;IACtB,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAC,CAAa;;IASnC,IAAI,MAAM,IAAI,WAAW,CAExB;IAED,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAK7B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,gBAAgB,IAAI,IAAI;IAMxB,MAAM,CAAC,MAAM,IAAI;QAAE,KAAK,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE;CAQ3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorInterceptor.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/ErrorInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,CAC7B,KAAK,EAAE,QAAQ,KACZ,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ApiErrorType } from './ApiError';
|
|
2
|
+
import type { ValidationErrors } from './ValidationErrors';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the structured error response from the backend API.
|
|
5
|
+
*
|
|
6
|
+
* This interface matches the error response format sent by the C# backend,
|
|
7
|
+
* particularly from GlobalExceptionHandler and ApiController.Problem() methods.
|
|
8
|
+
*
|
|
9
|
+
* @example Backend validation error response:
|
|
10
|
+
* ```json
|
|
11
|
+
* {
|
|
12
|
+
* "modelErrors": true,
|
|
13
|
+
* "title": "One or more validation errors occurred",
|
|
14
|
+
* "errors": { "email": ["Invalid email format"] },
|
|
15
|
+
* "status": 400,
|
|
16
|
+
* "type": "validation_error"
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example Backend problem details response:
|
|
21
|
+
* ```json
|
|
22
|
+
* {
|
|
23
|
+
* "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
|
|
24
|
+
* "title": "Not Found",
|
|
25
|
+
* "status": 404,
|
|
26
|
+
* "traceId": "00-abc123-def456-00"
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export interface ErrorResponseData {
|
|
31
|
+
/**
|
|
32
|
+
* Flag indicating validation errors are present.
|
|
33
|
+
* Set to `true` by GlobalExceptionHandler for ValidationException.
|
|
34
|
+
*/
|
|
35
|
+
modelErrors?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Human-readable error title/summary.
|
|
38
|
+
* @example "One or more validation errors occurred"
|
|
39
|
+
* @example "Not Found"
|
|
40
|
+
*/
|
|
41
|
+
title?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Error type category matching backend ErrorType enum.
|
|
44
|
+
* @example "validation_error" | "server_error" | "client_error"
|
|
45
|
+
*/
|
|
46
|
+
type?: ApiErrorType;
|
|
47
|
+
/**
|
|
48
|
+
* HTTP status code from the response.
|
|
49
|
+
*/
|
|
50
|
+
status?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Trace ID for distributed tracing/debugging.
|
|
53
|
+
* Matches ASP.NET Core's ProblemDetails.Extensions["traceId"].
|
|
54
|
+
*/
|
|
55
|
+
traceId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Field-specific validation errors.
|
|
58
|
+
* Keys are field names, values are error message arrays.
|
|
59
|
+
* @example { "email": ["Invalid email format"], "password": ["Too short"] }
|
|
60
|
+
*/
|
|
61
|
+
errors?: ValidationErrors;
|
|
62
|
+
/**
|
|
63
|
+
* Additional error details or description.
|
|
64
|
+
* Used by ProblemDetails.Detail property.
|
|
65
|
+
*/
|
|
66
|
+
detail?: string;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=ErrorResponseData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorResponseData.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/ErrorResponseData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CancelToken } from './CancelToken';
|
|
2
|
+
export interface RequestConfig extends Omit<RequestInit, 'signal' | 'body'> {
|
|
3
|
+
url?: string;
|
|
4
|
+
params?: Record<string, string | number | boolean | null | undefined>;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
retries?: number;
|
|
7
|
+
retryDelay?: number;
|
|
8
|
+
skipAuthRefresh?: boolean;
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
cancelToken?: CancelToken;
|
|
11
|
+
correlationId?: string;
|
|
12
|
+
skipCorrelationId?: boolean;
|
|
13
|
+
throwErrors?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Request body. Can be:
|
|
16
|
+
* - Native BodyInit types (string, Blob, FormData, etc.)
|
|
17
|
+
* - Plain objects (will be JSON.stringified automatically)
|
|
18
|
+
*/
|
|
19
|
+
body?: BodyInit | Record<string, unknown> | null;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=RequestConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestConfig.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/RequestConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestInterceptor.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/RequestInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,CAC/B,MAAM,EAAE,aAAa,KAClB,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseInterceptor.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/ResponseInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAClC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,KACrB,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationErrors.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/ValidationErrors.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,CAAC,KAAK,EAAE,MAAM,GACV,MAAM,GACN,MAAM,EAAE,GACR,OAAO,GACP;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './ApiError';
|
|
2
|
+
export * from './ApiResponse';
|
|
3
|
+
export * from './ErrorResponseData';
|
|
4
|
+
export * from './CancelToken';
|
|
5
|
+
export * from './ErrorInterceptor';
|
|
6
|
+
export * from './RequestConfig';
|
|
7
|
+
export * from './RequestInterceptor';
|
|
8
|
+
export * from './ResponseInterceptor';
|
|
9
|
+
export * from './ValidationErrors';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/api/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,cAAc,eAAe,CAAC;AAE9B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAE9B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,sBAAsB,CAAC;AAErC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiError } from './types';
|
|
2
|
+
export { createApiClient, getGlobalApiClient, setGlobalApiClient, resetGlobalApiClient, } from './createApiClient';
|
|
3
|
+
export type { ApiClientConfig } from './createApiClient';
|
|
4
|
+
export { ApiClient } from './ApiClient';
|
|
5
|
+
export declare function useValidationErrors(error: ApiError | null): {
|
|
6
|
+
getFieldError: (field: string) => string | null;
|
|
7
|
+
hasFieldError: (field: string) => boolean;
|
|
8
|
+
getAllErrors: () => Record<string, string>;
|
|
9
|
+
hasErrors: import("./types").ValidationErrors | undefined;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useValidationErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useValidationErrors.d.ts","sourceRoot":"","sources":["../../../src/core/api/useValidationErrors.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;2BAE9C,MAAM,KAAG,MAAM,GAAG,IAAI;2BAiBtB,MAAM,KAAG,OAAO;wBAMW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;EAwB5D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
type AuthorizedViewProps = PropsWithChildren & {
|
|
3
|
+
show: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const AuthorizedView: ({ children, show }: AuthorizedViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=AuthorizedView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizedView.d.ts","sourceRoot":"","sources":["../../../../src/core/components/AuthorizedView/AuthorizedView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,KAAK,mBAAmB,GAAG,iBAAiB,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,oBAAoB,mBAAmB,4CAIrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/AuthorizedView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelButton.d.ts","sourceRoot":"","sources":["../../../../src/core/components/CancelButton/CancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAS9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/CancelButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ClearButton component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
interface ClearButtonProps {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if a form or operation is currently being submitted.
|
|
10
|
+
* When true, the button is disabled to prevent multiple clear actions.
|
|
11
|
+
*/
|
|
12
|
+
isSubmitting: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Callback function executed when the clear button is clicked.
|
|
15
|
+
* Should handle the clearing logic (e.g., form reset, data clearing).
|
|
16
|
+
*/
|
|
17
|
+
handleClear: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Optional MUI sx prop for custom styling.
|
|
20
|
+
* @example { mt: 2, color: 'warning.main' }
|
|
21
|
+
*/
|
|
22
|
+
sx?: SxProps;
|
|
23
|
+
/**
|
|
24
|
+
* Optional localStorage key to remove when clearing.
|
|
25
|
+
* If provided, the corresponding localStorage item will be removed on click.
|
|
26
|
+
* @example "user-preferences" or "form-data"
|
|
27
|
+
*/
|
|
28
|
+
storeKey?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Standardized clear button component with localStorage integration.
|
|
32
|
+
*
|
|
33
|
+
* This component provides a consistent clear button implementation that handles
|
|
34
|
+
* both callback execution and optional localStorage cleanup. It automatically
|
|
35
|
+
* disables during form submissions and can clear stored data when needed.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* Basic usage:
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <ClearButton
|
|
41
|
+
* isSubmitting={isLoading}
|
|
42
|
+
* handleClear={() => form.reset()}
|
|
43
|
+
* />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* With localStorage cleanup:
|
|
48
|
+
* ```tsx
|
|
49
|
+
* <ClearButton
|
|
50
|
+
* isSubmitting={form.formState.isSubmitting}
|
|
51
|
+
* handleClear={() => setFilters({})}
|
|
52
|
+
* storeKey="user-filters"
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param props - Component props for clear button configuration
|
|
57
|
+
* @returns MUI Button component configured as a clear button
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare const ClearButton: ({ isSubmitting, handleClear, sx, storeKey, }: ClearButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=ClearButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearButton.d.ts","sourceRoot":"","sources":["../../../../src/core/components/ClearButton/ClearButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C;;;;GAIG;AACH,UAAU,gBAAgB;IACxB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,WAAW,GAAI,8CAKzB,gBAAgB,4CAkBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/ClearButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SxProps } from '@mui/material';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
interface SimpleContainerProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
sx?: SxProps;
|
|
7
|
+
}
|
|
8
|
+
export declare const SimpleContainer: ({ children, className, sx, }: SimpleContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SimpleContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleContainer.d.ts","sourceRoot":"","sources":["../../../../src/core/components/Containers/SimpleContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;AAED,eAAO,MAAM,eAAe,GAAI,8BAI7B,oBAAoB,4CAItB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/Containers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the FilterButton component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
interface FilterButtonProps {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if a filter operation is currently being processed.
|
|
10
|
+
* When true, shows loading spinner and disables the button.
|
|
11
|
+
*/
|
|
12
|
+
isSubmitting: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Controls button visibility and enabled state.
|
|
15
|
+
* When false, the button is disabled.
|
|
16
|
+
* @defaultValue true
|
|
17
|
+
*/
|
|
18
|
+
show?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Custom text to display on the button.
|
|
21
|
+
* @defaultValue "Filter"
|
|
22
|
+
* @example "Apply Filters" or "Search"
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Custom icon to display instead of the default filter icon.
|
|
27
|
+
* @example <SearchIcon />
|
|
28
|
+
*/
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Optional MUI sx prop for custom button styling.
|
|
32
|
+
* @example { mt: 2, minWidth: 120 }
|
|
33
|
+
*/
|
|
34
|
+
sx?: SxProps;
|
|
35
|
+
/**
|
|
36
|
+
* Optional MUI sx prop for custom icon styling.
|
|
37
|
+
* @example { color: 'primary.main', fontSize: 18 }
|
|
38
|
+
*/
|
|
39
|
+
iconSx?: SxProps;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Filter button component with loading states and customizable appearance.
|
|
43
|
+
*
|
|
44
|
+
* This component provides a standardized filter/submit button with integrated loading
|
|
45
|
+
* states, icon support, and badge styling. It's designed for use in filter forms
|
|
46
|
+
* and search interfaces where users need to apply filtering criteria.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* Basic usage:
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <FilterButton
|
|
52
|
+
* isSubmitting={isLoading}
|
|
53
|
+
* show={hasFilters}
|
|
54
|
+
* />
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* Custom title and icon:
|
|
59
|
+
* ```tsx
|
|
60
|
+
* <FilterButton
|
|
61
|
+
* isSubmitting={form.formState.isSubmitting}
|
|
62
|
+
* title="Apply Search"
|
|
63
|
+
* icon={<SearchIcon />}
|
|
64
|
+
* show={true}
|
|
65
|
+
* />
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* With custom styling:
|
|
70
|
+
* ```tsx
|
|
71
|
+
* <FilterButton
|
|
72
|
+
* isSubmitting={isProcessing}
|
|
73
|
+
* title="Filter Results"
|
|
74
|
+
* sx={{ minWidth: 150, mt: 2 }}
|
|
75
|
+
* iconSx={{ fontSize: 20 }}
|
|
76
|
+
* />
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param props - Component props for filter button configuration
|
|
80
|
+
* @returns MUI LoadingButton component configured as a filter button
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=FilterButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterButton.d.ts","sourceRoot":"","sources":["../../../../src/core/components/FilterButton/FilterButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C;;;;GAIG;AACH,UAAU,iBAAiB;IACzB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,YAAY,GAAI,kDAO1B,iBAAiB,4CAuBnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/FilterButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FilterChip: import("react").MemoExoticComponent<({ fieldKey, filter, onDelete, }: {
|
|
2
|
+
fieldKey: string;
|
|
3
|
+
filter: {
|
|
4
|
+
Label: string;
|
|
5
|
+
Value: unknown;
|
|
6
|
+
};
|
|
7
|
+
onDelete?: () => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
//# sourceMappingURL=FilterChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterChip.d.ts","sourceRoot":"","sources":["../../../../src/core/components/FilterDisplay/FilterChip.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,wEAKlB;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,6CAiBF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface FilterDisplayProps<TFilterModel> {
|
|
2
|
+
friendlyFilter: Record<string, {
|
|
3
|
+
Label: string;
|
|
4
|
+
Value: unknown;
|
|
5
|
+
}>;
|
|
6
|
+
onFriendlyFilterChange?: (fieldKey: keyof TFilterModel) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ProgramsFilterDisplay: import("react").MemoExoticComponent<(<TFilterModel extends Record<string, unknown>>(props: FilterDisplayProps<TFilterModel>) => import("react/jsx-runtime").JSX.Element)>;
|
|
9
|
+
export type { FilterDisplayProps };
|
|
10
|
+
//# sourceMappingURL=FilterDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterDisplay.d.ts","sourceRoot":"","sources":["../../../../src/core/components/FilterDisplay/FilterDisplay.tsx"],"names":[],"mappings":"AAKA,UAAU,kBAAkB,CAAC,YAAY;IACvC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAClE,sBAAsB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,YAAY,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,qBAAqB,wCAC/B,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,SACpC,kBAAkB,CAAC,YAAY,CAAC,8CA0C1C,CAAC;AAIF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/components/FilterDisplay/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the FilterWrapper component.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
type FilterWrapperProps = PropsWithChildren<{
|
|
9
|
+
/**
|
|
10
|
+
* Title text displayed in the card header.
|
|
11
|
+
* @defaultValue "Filter"
|
|
12
|
+
* @example "Search Criteria" or "Advanced Filters"
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Number of active filters to display in the header.
|
|
17
|
+
* Only shown when showCount is true.
|
|
18
|
+
* @example 3 for "Filter (3)"
|
|
19
|
+
*/
|
|
20
|
+
filterCount?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Optional MUI sx prop for custom card styling.
|
|
23
|
+
* @example { mt: 2, boxShadow: 2 }
|
|
24
|
+
*/
|
|
25
|
+
cardSx?: SxProps;
|
|
26
|
+
/**
|
|
27
|
+
* Optional MUI sx prop for custom title text styling.
|
|
28
|
+
* @example { fontSize: 18, fontWeight: 'bold' }
|
|
29
|
+
*/
|
|
30
|
+
textSx?: SxProps;
|
|
31
|
+
/**
|
|
32
|
+
* Custom icon to display instead of the default search icon.
|
|
33
|
+
* @example <FilterListIcon />
|
|
34
|
+
*/
|
|
35
|
+
icon?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Optional MUI sx prop for custom icon styling.
|
|
38
|
+
* @example { color: 'secondary.main', fontSize: 24 }
|
|
39
|
+
*/
|
|
40
|
+
iconSx?: SxProps;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to display the filter count in the header.
|
|
43
|
+
* @defaultValue false
|
|
44
|
+
*/
|
|
45
|
+
showCount?: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Card-based wrapper component for organizing filter controls and form elements.
|
|
49
|
+
*
|
|
50
|
+
* This component provides a consistent layout for filter interfaces with a header,
|
|
51
|
+
* optional filter count display, and a grid-based content area. It's designed to
|
|
52
|
+
* contain form controls and filter elements in a visually organized manner.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* Basic usage:
|
|
56
|
+
* ```tsx
|
|
57
|
+
* <FilterWrapper>
|
|
58
|
+
* <Grid item xs={12} md={6}>
|
|
59
|
+
* <TextField label="Search" />
|
|
60
|
+
* </Grid>
|
|
61
|
+
* <Grid item xs={12} md={6}>
|
|
62
|
+
* <Select label="Category" />
|
|
63
|
+
* </Grid>
|
|
64
|
+
* </FilterWrapper>
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* With custom title and count:
|
|
69
|
+
* ```tsx
|
|
70
|
+
* <FilterWrapper
|
|
71
|
+
* title="Advanced Search"
|
|
72
|
+
* filterCount={activeFilters.length}
|
|
73
|
+
* showCount={true}
|
|
74
|
+
* >
|
|
75
|
+
* {filterControls}
|
|
76
|
+
* </FilterWrapper>
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* With custom styling:
|
|
81
|
+
* ```tsx
|
|
82
|
+
* <FilterWrapper
|
|
83
|
+
* title="Product Filters"
|
|
84
|
+
* icon={<FilterListIcon />}
|
|
85
|
+
* cardSx={{ mt: 3, borderRadius: 2 }}
|
|
86
|
+
* textSx={{ color: 'secondary.main' }}
|
|
87
|
+
* >
|
|
88
|
+
* {children}
|
|
89
|
+
* </FilterWrapper>
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param props - Component props including children and styling options
|
|
93
|
+
* @returns MUI Card component with structured filter layout
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=FilterWrapper.d.ts.map
|