@stackcraftmx/calcita 0.32.1 → 0.47.0
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/README.md +263 -2
- package/cli/packageVersions.js +12 -3
- package/cli/projectFiles.js +5 -2
- package/cli/templates/module/__Name__Page.test.jsx.tpl +24 -0
- package/cli/templates/project/README.md.tpl +14 -1
- package/cli/templates/project/src/app/appRouter.jsx.tpl +5 -2
- package/cli/templates/project/src/core/accountConnector.js.tpl +4 -2
- package/cli/templates/project/src/modules/auth/SignInPage.test.jsx.tpl +20 -0
- package/cli/templates/project/src/modules/home/HomePage.test.jsx.tpl +16 -0
- package/cli/templates/project/src/testing/browserGaps.js.tpl +70 -0
- package/cli/templates/project/src/testing/openScreen.jsx.tpl +58 -0
- package/cli/templates/project/src/testing/setup.js.tpl +25 -0
- package/cli/templates/project/vite.config.js.tpl +12 -0
- package/dist/DataTable/GoToPage.js +69 -13
- package/dist/DataTable/GoToPage.js.map +1 -1
- package/dist/DataTable/ServerTable.js +2 -0
- package/dist/DataTable/ServerTable.js.map +1 -1
- package/dist/DataTable/ServerTableFilterDrawer.js +52 -0
- package/dist/DataTable/ServerTableFilterDrawer.js.map +1 -0
- package/dist/DataTable/filterContext.js.map +1 -1
- package/dist/DataTable/goToPageOptions.js +17 -0
- package/dist/DataTable/goToPageOptions.js.map +1 -0
- package/dist/date-pickers.js +28 -2
- package/dist/date-pickers.js.map +1 -1
- package/dist/datePickers/DateInput.js +15 -34
- package/dist/datePickers/DateInput.js.map +1 -1
- package/dist/datePickers/DateTimeInput.js +75 -0
- package/dist/datePickers/DateTimeInput.js.map +1 -0
- package/dist/datePickers/FormDateTimeField.js +12 -0
- package/dist/datePickers/FormDateTimeField.js.map +1 -0
- package/dist/datePickers/FormMonthField.js +12 -0
- package/dist/datePickers/FormMonthField.js.map +1 -0
- package/dist/datePickers/FormTimeField.js +12 -0
- package/dist/datePickers/FormTimeField.js.map +1 -0
- package/dist/datePickers/MonthInput.js +58 -0
- package/dist/datePickers/MonthInput.js.map +1 -0
- package/dist/datePickers/PickerFrame.js +27 -0
- package/dist/datePickers/PickerFrame.js.map +1 -0
- package/dist/datePickers/TimeInput.js +55 -0
- package/dist/datePickers/TimeInput.js.map +1 -0
- package/dist/datePickers/dateTimeRules.js +24 -0
- package/dist/datePickers/dateTimeRules.js.map +1 -0
- package/dist/datePickers/pickerValues.js +106 -0
- package/dist/datePickers/pickerValues.js.map +1 -0
- package/dist/datePickers/useCurrentMinute.js +28 -0
- package/dist/datePickers/useCurrentMinute.js.map +1 -0
- package/dist/datePickers/usePickerField.js +22 -0
- package/dist/datePickers/usePickerField.js.map +1 -0
- package/dist/dictionaries/dictionaries.js +3 -1
- package/dist/dictionaries/dictionaries.js.map +1 -1
- package/dist/forms/FormAttachmentsField.js +12 -0
- package/dist/forms/FormAttachmentsField.js.map +1 -0
- package/dist/forms/FormCheckboxGroupField.js +12 -0
- package/dist/forms/FormCheckboxGroupField.js.map +1 -0
- package/dist/forms/FormFileField.js +12 -0
- package/dist/forms/FormFileField.js.map +1 -0
- package/dist/forms/FormFileUploadField.js +12 -0
- package/dist/forms/FormFileUploadField.js.map +1 -0
- package/dist/forms/FormImageField.js +12 -0
- package/dist/forms/FormImageField.js.map +1 -0
- package/dist/forms/FormMaskedField.js +12 -0
- package/dist/forms/FormMaskedField.js.map +1 -0
- package/dist/forms/FormRepeatingFields.js +54 -0
- package/dist/forms/FormRepeatingFields.js.map +1 -0
- package/dist/forms/FormTransferListField.js +12 -0
- package/dist/forms/FormTransferListField.js.map +1 -0
- package/dist/forms/applyServerProblem.js +10 -3
- package/dist/forms/applyServerProblem.js.map +1 -1
- package/dist/forms/listRules.js +111 -0
- package/dist/forms/listRules.js.map +1 -0
- package/dist/forms/serverProblemFields.js +17 -0
- package/dist/forms/serverProblemFields.js.map +1 -1
- package/dist/forms.js +51 -29
- package/dist/forms.js.map +1 -1
- package/dist/hookForm/FormAttachmentsField.js +12 -0
- package/dist/hookForm/FormAttachmentsField.js.map +1 -0
- package/dist/hookForm/FormCheckboxGroupField.js +12 -0
- package/dist/hookForm/FormCheckboxGroupField.js.map +1 -0
- package/dist/hookForm/FormFileField.js +12 -0
- package/dist/hookForm/FormFileField.js.map +1 -0
- package/dist/hookForm/FormFileUploadField.js +12 -0
- package/dist/hookForm/FormFileUploadField.js.map +1 -0
- package/dist/hookForm/FormImageField.js +12 -0
- package/dist/hookForm/FormImageField.js.map +1 -0
- package/dist/hookForm/FormMaskedField.js +12 -0
- package/dist/hookForm/FormMaskedField.js.map +1 -0
- package/dist/hookForm/FormRepeatingFields.js +44 -0
- package/dist/hookForm/FormRepeatingFields.js.map +1 -0
- package/dist/hookForm/FormTransferListField.js +12 -0
- package/dist/hookForm/FormTransferListField.js.map +1 -0
- package/dist/hookForm/applyServerProblem.js +8 -3
- package/dist/hookForm/applyServerProblem.js.map +1 -1
- package/dist/index.js +188 -100
- package/dist/index.js.map +1 -1
- package/dist/inputs/CatalogInput.js +74 -7
- package/dist/inputs/CatalogInput.js.map +1 -1
- package/dist/inputs/CheckboxGroupInput.js +100 -0
- package/dist/inputs/CheckboxGroupInput.js.map +1 -0
- package/dist/inputs/MaskedInput.js +86 -0
- package/dist/inputs/MaskedInput.js.map +1 -0
- package/dist/inputs/NumberInput.js +12 -1
- package/dist/inputs/NumberInput.js.map +1 -1
- package/dist/inputs/RepeatingFields.js +177 -0
- package/dist/inputs/RepeatingFields.js.map +1 -0
- package/dist/inputs/SelectInput.js +43 -5
- package/dist/inputs/SelectInput.js.map +1 -1
- package/dist/inputs/TransferListInput.js +215 -0
- package/dist/inputs/TransferListInput.js.map +1 -0
- package/dist/inputs/inputMasks.js +84 -0
- package/dist/inputs/inputMasks.js.map +1 -0
- package/dist/inputs/selectAllState.js +20 -0
- package/dist/inputs/selectAllState.js.map +1 -0
- package/dist/inputs/useRowKeys.js +26 -0
- package/dist/inputs/useRowKeys.js.map +1 -0
- package/dist/legal/CookieNotice.js +79 -0
- package/dist/legal/CookieNotice.js.map +1 -0
- package/dist/legal/TermsAcceptanceDialog.js +129 -0
- package/dist/legal/TermsAcceptanceDialog.js.map +1 -0
- package/dist/legal/consentStorage.js +18 -0
- package/dist/legal/consentStorage.js.map +1 -0
- package/dist/legal/useCookieConsent.js +17 -0
- package/dist/legal/useCookieConsent.js.map +1 -0
- package/dist/locales/en.js +233 -1
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +233 -1
- package/dist/locales/es.js.map +1 -1
- package/dist/mexico/CfdiSummary.js +81 -0
- package/dist/mexico/CfdiSummary.js.map +1 -0
- package/dist/mexico/EfirmaFields.js +167 -0
- package/dist/mexico/EfirmaFields.js.map +1 -0
- package/dist/mexico/certificateReader.js +79 -0
- package/dist/mexico/certificateReader.js.map +1 -0
- package/dist/mexico/cfdiReader.js +81 -0
- package/dist/mexico/cfdiReader.js.map +1 -0
- package/dist/mexico/derReader.js +81 -0
- package/dist/mexico/derReader.js.map +1 -0
- package/dist/mexico/efirmaKey.js +51 -0
- package/dist/mexico/efirmaKey.js.map +1 -0
- package/dist/mexico/mexicoIdentifiers.js +86 -0
- package/dist/mexico/mexicoIdentifiers.js.map +1 -0
- package/dist/mexico/mexicoRules.js +16 -0
- package/dist/mexico/mexicoRules.js.map +1 -0
- package/dist/mexico.js +32 -0
- package/dist/mexico.js.map +1 -0
- package/dist/react-hook-form.js +40 -17
- package/dist/react-hook-form.js.map +1 -1
- package/dist/rich-text.js +19 -0
- package/dist/rich-text.js.map +1 -0
- package/dist/richText/FormRichTextField.js +12 -0
- package/dist/richText/FormRichTextField.js.map +1 -0
- package/dist/richText/RichTextEditor.js +108 -0
- package/dist/richText/RichTextEditor.js.map +1 -0
- package/dist/richText/RichTextLinkPopover.js +57 -0
- package/dist/richText/RichTextLinkPopover.js.map +1 -0
- package/dist/richText/RichTextToolbar.js +189 -0
- package/dist/richText/RichTextToolbar.js.map +1 -0
- package/dist/richText/RichTextView.js +26 -0
- package/dist/richText/RichTextView.js.map +1 -0
- package/dist/richText/richTextContentSx.js +42 -0
- package/dist/richText/richTextContentSx.js.map +1 -0
- package/dist/richText/richTextExtensions.js +44 -0
- package/dist/richText/richTextExtensions.js.map +1 -0
- package/dist/richText/richTextRules.js +46 -0
- package/dist/richText/richTextRules.js.map +1 -0
- package/dist/security/SessionsCard.js +11 -7
- package/dist/security/SessionsCard.js.map +1 -1
- package/dist/table.js +2 -0
- package/dist/table.js.map +1 -1
- package/dist/theme/components/glassComponents.js +27 -0
- package/dist/theme/components/glassComponents.js.map +1 -1
- package/dist/theme/components/minimalComponents.js +12 -0
- package/dist/theme/components/minimalComponents.js.map +1 -1
- package/dist/types/DataTable/ServerTableFilterDrawer.d.ts +21 -0
- package/dist/types/DataTable/filterContext.d.ts +2 -1
- package/dist/types/DataTable/goToPageOptions.d.ts +15 -0
- package/dist/types/DataTable/index.d.ts +1 -0
- package/dist/types/date-pickers.d.ts +10 -1
- package/dist/types/datePickers/DateInput.d.ts +6 -4
- package/dist/types/datePickers/DateTimeInput.d.ts +50 -0
- package/dist/types/datePickers/FormDateTimeField.d.ts +7 -0
- package/dist/types/datePickers/FormMonthField.d.ts +7 -0
- package/dist/types/datePickers/FormTimeField.d.ts +7 -0
- package/dist/types/datePickers/MonthInput.d.ts +39 -0
- package/dist/types/datePickers/PickerFrame.d.ts +22 -0
- package/dist/types/datePickers/TimeInput.d.ts +38 -0
- package/dist/types/datePickers/dateTimeRules.d.ts +31 -0
- package/dist/types/datePickers/pickerValues.d.ts +114 -0
- package/dist/types/datePickers/useCurrentMinute.d.ts +5 -0
- package/dist/types/datePickers/usePickerField.d.ts +24 -0
- package/dist/types/dictionaries/dictionaries.d.ts +6 -3
- package/dist/types/forms/FormAttachmentsField.d.ts +7 -0
- package/dist/types/forms/FormCheckboxGroupField.d.ts +7 -0
- package/dist/types/forms/FormFileField.d.ts +7 -0
- package/dist/types/forms/FormFileUploadField.d.ts +7 -0
- package/dist/types/forms/FormImageField.d.ts +7 -0
- package/dist/types/forms/FormMaskedField.d.ts +7 -0
- package/dist/types/forms/FormRepeatingFields.d.ts +25 -0
- package/dist/types/forms/FormTransferListField.d.ts +7 -0
- package/dist/types/forms/index.d.ts +10 -1
- package/dist/types/forms/listRules.d.ts +48 -0
- package/dist/types/forms/serverProblemFields.d.ts +13 -0
- package/dist/types/forms.d.ts +1 -1
- package/dist/types/hookForm/FormAttachmentsField.d.ts +8 -0
- package/dist/types/hookForm/FormCheckboxGroupField.d.ts +8 -0
- package/dist/types/hookForm/FormFileField.d.ts +8 -0
- package/dist/types/hookForm/FormFileUploadField.d.ts +8 -0
- package/dist/types/hookForm/FormImageField.d.ts +8 -0
- package/dist/types/hookForm/FormMaskedField.d.ts +9 -0
- package/dist/types/hookForm/FormRepeatingFields.d.ts +27 -0
- package/dist/types/hookForm/FormTransferListField.d.ts +8 -0
- package/dist/types/index.d.ts +25 -3
- package/dist/types/inputs/CatalogInput.d.ts +7 -1
- package/dist/types/inputs/CheckboxGroupInput.d.ts +39 -0
- package/dist/types/inputs/MaskedInput.d.ts +35 -0
- package/dist/types/inputs/RepeatingFields.d.ts +52 -0
- package/dist/types/inputs/SelectInput.d.ts +6 -1
- package/dist/types/inputs/TransferListInput.d.ts +43 -0
- package/dist/types/inputs/inputMasks.d.ts +52 -0
- package/dist/types/inputs/selectAllState.d.ts +11 -0
- package/dist/types/inputs/useRowKeys.d.ts +11 -0
- package/dist/types/legal/CookieNotice.d.ts +30 -0
- package/dist/types/legal/TermsAcceptanceDialog.d.ts +32 -0
- package/dist/types/legal/consentStorage.d.ts +16 -0
- package/dist/types/legal/useCookieConsent.d.ts +13 -0
- package/dist/types/locales/en.d.ts +232 -0
- package/dist/types/locales/es.d.ts +232 -0
- package/dist/types/mexico/CfdiSummary.d.ts +17 -0
- package/dist/types/mexico/EfirmaFields.d.ts +38 -0
- package/dist/types/mexico/certificateReader.d.ts +37 -0
- package/dist/types/mexico/cfdiReader.d.ts +95 -0
- package/dist/types/mexico/derReader.d.ts +54 -0
- package/dist/types/mexico/efirmaKey.d.ts +26 -0
- package/dist/types/mexico/mexicoIdentifiers.d.ts +61 -0
- package/dist/types/mexico/mexicoRules.d.ts +29 -0
- package/dist/types/mexico.d.ts +11 -0
- package/dist/types/react-hook-form.d.ts +10 -1
- package/dist/types/rich-text.d.ts +5 -0
- package/dist/types/richText/FormRichTextField.d.ts +7 -0
- package/dist/types/richText/RichTextEditor.d.ts +42 -0
- package/dist/types/richText/RichTextLinkPopover.d.ts +17 -0
- package/dist/types/richText/RichTextToolbar.d.ts +15 -0
- package/dist/types/richText/RichTextView.d.ts +13 -0
- package/dist/types/richText/richTextContentSx.d.ts +7 -0
- package/dist/types/richText/richTextExtensions.d.ts +15 -0
- package/dist/types/richText/richTextRules.d.ts +41 -0
- package/dist/types/table.d.ts +1 -1
- package/dist/types/ui/actions/ActionsMenu.d.ts +18 -3
- package/dist/types/ui/actions/CopyButton.d.ts +7 -4
- package/dist/types/ui/actions/tableRowText.d.ts +6 -0
- package/dist/types/ui/cards/RecordCard.d.ts +65 -0
- package/dist/types/ui/cards/RecordCardSkeleton.d.ts +17 -0
- package/dist/types/ui/countdown/Countdown.d.ts +31 -0
- package/dist/types/ui/countdown/countdownParts.d.ts +39 -0
- package/dist/types/ui/countdown/useCountdown.d.ts +14 -0
- package/dist/types/ui/documents/PdfViewerDialog.d.ts +21 -0
- package/dist/types/ui/filters/FilterDrawer.d.ts +34 -0
- package/dist/types/ui/filters/filterDrawerFields.d.ts +139 -0
- package/dist/types/ui/help/HelpButton.d.ts +15 -0
- package/dist/types/ui/help/HelpCarouselDialog.d.ts +35 -0
- package/dist/types/ui/help/useHelpCarousel.d.ts +21 -0
- package/dist/types/ui/index.d.ts +10 -0
- package/dist/types/ui/labels/IconBadge.d.ts +34 -0
- package/dist/types/ui/navigation/RouteTabs.d.ts +44 -0
- package/dist/types/ui/navigation/routeTabMatching.d.ts +27 -0
- package/dist/types/upload/AttachmentsInput.d.ts +62 -0
- package/dist/types/upload/FileChip.d.ts +18 -0
- package/dist/types/upload/FileDropzone.d.ts +3 -0
- package/dist/types/upload/FileInput.d.ts +48 -0
- package/dist/types/upload/FileUploadInput.d.ts +80 -0
- package/dist/types/upload/ImageInput.d.ts +53 -0
- package/dist/types/upload/TemplateDownloadButton.d.ts +39 -0
- package/dist/types/upload/fileAppearance.d.ts +8 -0
- package/dist/types/upload/fileRules.d.ts +38 -0
- package/dist/types/upload/transferProgress.d.ts +18 -0
- package/dist/types/upload/uploadMachine.d.ts +6 -2
- package/dist/types/upload/uploadWithProgress.d.ts +6 -2
- package/dist/types/upload/useFilePicker.d.ts +39 -0
- package/dist/ui/actions/ActionsMenu.js +98 -15
- package/dist/ui/actions/ActionsMenu.js.map +1 -1
- package/dist/ui/actions/CopyButton.js +31 -11
- package/dist/ui/actions/CopyButton.js.map +1 -1
- package/dist/ui/actions/tableRowText.js +7 -0
- package/dist/ui/actions/tableRowText.js.map +1 -0
- package/dist/ui/cards/RecordCard.js +145 -0
- package/dist/ui/cards/RecordCard.js.map +1 -0
- package/dist/ui/cards/RecordCardSkeleton.js +33 -0
- package/dist/ui/cards/RecordCardSkeleton.js.map +1 -0
- package/dist/ui/countdown/Countdown.js +38 -0
- package/dist/ui/countdown/Countdown.js.map +1 -0
- package/dist/ui/countdown/countdownParts.js +34 -0
- package/dist/ui/countdown/countdownParts.js.map +1 -0
- package/dist/ui/countdown/useCountdown.js +35 -0
- package/dist/ui/countdown/useCountdown.js.map +1 -0
- package/dist/ui/documents/PdfViewerDialog.js +81 -0
- package/dist/ui/documents/PdfViewerDialog.js.map +1 -0
- package/dist/ui/filters/FilterDrawer.js +211 -0
- package/dist/ui/filters/FilterDrawer.js.map +1 -0
- package/dist/ui/filters/filterDrawerFields.js +119 -0
- package/dist/ui/filters/filterDrawerFields.js.map +1 -0
- package/dist/ui/help/HelpButton.js +17 -0
- package/dist/ui/help/HelpButton.js.map +1 -0
- package/dist/ui/help/HelpCarouselDialog.js +154 -0
- package/dist/ui/help/HelpCarouselDialog.js.map +1 -0
- package/dist/ui/help/useHelpCarousel.js +25 -0
- package/dist/ui/help/useHelpCarousel.js.map +1 -0
- package/dist/ui/labels/IconBadge.js +82 -0
- package/dist/ui/labels/IconBadge.js.map +1 -0
- package/dist/ui/navigation/RouteTabs.js +75 -0
- package/dist/ui/navigation/RouteTabs.js.map +1 -0
- package/dist/ui/navigation/routeTabMatching.js +23 -0
- package/dist/ui/navigation/routeTabMatching.js.map +1 -0
- package/dist/upload/AttachmentsInput.js +127 -0
- package/dist/upload/AttachmentsInput.js.map +1 -0
- package/dist/upload/FileChip.js +27 -0
- package/dist/upload/FileChip.js.map +1 -0
- package/dist/upload/FileDropzone.js +19 -84
- package/dist/upload/FileDropzone.js.map +1 -1
- package/dist/upload/FileInput.js +112 -0
- package/dist/upload/FileInput.js.map +1 -0
- package/dist/upload/FileUploadInput.js +285 -0
- package/dist/upload/FileUploadInput.js.map +1 -0
- package/dist/upload/ImageInput.js +125 -0
- package/dist/upload/ImageInput.js.map +1 -0
- package/dist/upload/TemplateDownloadButton.js +67 -0
- package/dist/upload/TemplateDownloadButton.js.map +1 -0
- package/dist/upload/fileAppearance.js +21 -0
- package/dist/upload/fileAppearance.js.map +1 -0
- package/dist/upload/fileRules.js +27 -1
- package/dist/upload/fileRules.js.map +1 -1
- package/dist/upload/transferProgress.js +23 -0
- package/dist/upload/transferProgress.js.map +1 -0
- package/dist/upload/uploadMachine.js +8 -8
- package/dist/upload/uploadMachine.js.map +1 -1
- package/dist/upload/uploadWithProgress.js +1 -1
- package/dist/upload/uploadWithProgress.js.map +1 -1
- package/dist/upload/useFilePicker.js +101 -0
- package/dist/upload/useFilePicker.js.map +1 -0
- package/package.json +44 -1
|
@@ -117,18 +117,95 @@ declare const _default: Readonly<{
|
|
|
117
117
|
selectPlaceholder: string;
|
|
118
118
|
copy: string;
|
|
119
119
|
copied: string;
|
|
120
|
+
copyFailed: string;
|
|
120
121
|
noOptions: string;
|
|
121
122
|
loadingOptions: string;
|
|
122
123
|
pickColor: string;
|
|
123
124
|
colorContrast: string;
|
|
124
125
|
colorLowContrast: string;
|
|
125
126
|
colorUseSuggestion: string;
|
|
127
|
+
selectAll: string;
|
|
128
|
+
unselectAll: string;
|
|
129
|
+
selectMatching: string;
|
|
130
|
+
unselectMatching: string;
|
|
131
|
+
moreSelected: string;
|
|
126
132
|
};
|
|
127
133
|
selection: {
|
|
128
134
|
clear: string;
|
|
129
135
|
actionsLabel: string;
|
|
130
136
|
summaryLabel: string;
|
|
131
137
|
};
|
|
138
|
+
repeating: {
|
|
139
|
+
row: string;
|
|
140
|
+
add: string;
|
|
141
|
+
removeShort: string;
|
|
142
|
+
clearShort: string;
|
|
143
|
+
remove: string;
|
|
144
|
+
clear: string;
|
|
145
|
+
maxRows_one: string;
|
|
146
|
+
maxRows_other: string;
|
|
147
|
+
confirmTitle: string;
|
|
148
|
+
confirmText: string;
|
|
149
|
+
blockedTitle: string;
|
|
150
|
+
understood: string;
|
|
151
|
+
};
|
|
152
|
+
transfer: {
|
|
153
|
+
available: string;
|
|
154
|
+
chosen: string;
|
|
155
|
+
search: string;
|
|
156
|
+
markVisible: string;
|
|
157
|
+
markedOf: string;
|
|
158
|
+
moveMarked: string;
|
|
159
|
+
moveAll: string;
|
|
160
|
+
returnMarked: string;
|
|
161
|
+
returnAll: string;
|
|
162
|
+
emptyAvailable: string;
|
|
163
|
+
noMatches: string;
|
|
164
|
+
emptyChosen: string;
|
|
165
|
+
};
|
|
166
|
+
help: {
|
|
167
|
+
button: string;
|
|
168
|
+
close: string;
|
|
169
|
+
next: string;
|
|
170
|
+
back: string;
|
|
171
|
+
done: string;
|
|
172
|
+
stepOf: string;
|
|
173
|
+
goToStep: string;
|
|
174
|
+
dontShowAgain: string;
|
|
175
|
+
};
|
|
176
|
+
filterDrawer: {
|
|
177
|
+
open: string;
|
|
178
|
+
openWithCount: string;
|
|
179
|
+
title: string;
|
|
180
|
+
close: string;
|
|
181
|
+
apply: string;
|
|
182
|
+
clear: string;
|
|
183
|
+
any: string;
|
|
184
|
+
from: string;
|
|
185
|
+
to: string;
|
|
186
|
+
operator: string;
|
|
187
|
+
value: string;
|
|
188
|
+
operators: {
|
|
189
|
+
eq: string;
|
|
190
|
+
gt: string;
|
|
191
|
+
gte: string;
|
|
192
|
+
lt: string;
|
|
193
|
+
lte: string;
|
|
194
|
+
};
|
|
195
|
+
rangeBackwards: string;
|
|
196
|
+
chipFrom: string;
|
|
197
|
+
chipTo: string;
|
|
198
|
+
};
|
|
199
|
+
recordCard: {
|
|
200
|
+
open: string;
|
|
201
|
+
actions: string;
|
|
202
|
+
showDetails: string;
|
|
203
|
+
hideDetails: string;
|
|
204
|
+
loading: string;
|
|
205
|
+
};
|
|
206
|
+
actionsMenu: {
|
|
207
|
+
back: string;
|
|
208
|
+
};
|
|
132
209
|
wizard: {
|
|
133
210
|
next: string;
|
|
134
211
|
back: string;
|
|
@@ -195,16 +272,48 @@ declare const _default: Readonly<{
|
|
|
195
272
|
step3: string;
|
|
196
273
|
};
|
|
197
274
|
};
|
|
275
|
+
countdown: {
|
|
276
|
+
done: string;
|
|
277
|
+
daysShort: string;
|
|
278
|
+
};
|
|
279
|
+
pdfViewer: {
|
|
280
|
+
openInTab: string;
|
|
281
|
+
download: string;
|
|
282
|
+
};
|
|
283
|
+
legal: {
|
|
284
|
+
cookies: {
|
|
285
|
+
region: string;
|
|
286
|
+
text: string;
|
|
287
|
+
policy: string;
|
|
288
|
+
accept: string;
|
|
289
|
+
};
|
|
290
|
+
terms: {
|
|
291
|
+
title: string;
|
|
292
|
+
version: string;
|
|
293
|
+
checkbox: string;
|
|
294
|
+
readToEnd: string;
|
|
295
|
+
accept: string;
|
|
296
|
+
decline: string;
|
|
297
|
+
saveFailed: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
198
300
|
upload: {
|
|
199
301
|
hint: string;
|
|
200
302
|
hintMultiple: string;
|
|
201
303
|
choose: string;
|
|
304
|
+
attach: string;
|
|
305
|
+
empty: string;
|
|
306
|
+
chooseImage: string;
|
|
307
|
+
changeImage: string;
|
|
308
|
+
removeImage: string;
|
|
309
|
+
template: string;
|
|
202
310
|
chooseMultiple: string;
|
|
203
311
|
remove: string;
|
|
204
312
|
invalidTitle: string;
|
|
205
313
|
invalidType: string;
|
|
206
314
|
tooLarge: string;
|
|
207
315
|
tooLargeShort: string;
|
|
316
|
+
totalTooLarge: string;
|
|
208
317
|
totalTooLargeShort: string;
|
|
209
318
|
tooManyFiles_one: string;
|
|
210
319
|
tooManyFiles_other: string;
|
|
@@ -216,6 +325,25 @@ declare const _default: Readonly<{
|
|
|
216
325
|
summary_other: string;
|
|
217
326
|
summaryOf_one: string;
|
|
218
327
|
summaryOf_other: string;
|
|
328
|
+
upload: string;
|
|
329
|
+
replace: string;
|
|
330
|
+
cancel: string;
|
|
331
|
+
download: string;
|
|
332
|
+
failed: string;
|
|
333
|
+
starting: string;
|
|
334
|
+
processing: string;
|
|
335
|
+
cancelled: string;
|
|
336
|
+
amount: string;
|
|
337
|
+
speed: string;
|
|
338
|
+
remaining_one: string;
|
|
339
|
+
remaining_other: string;
|
|
340
|
+
status: {
|
|
341
|
+
pending: string;
|
|
342
|
+
uploading: string;
|
|
343
|
+
processing: string;
|
|
344
|
+
uploaded: string;
|
|
345
|
+
failed: string;
|
|
346
|
+
};
|
|
219
347
|
pond: {
|
|
220
348
|
loading: string;
|
|
221
349
|
loadError: string;
|
|
@@ -462,7 +590,111 @@ declare const _default: Readonly<{
|
|
|
462
590
|
detail: string;
|
|
463
591
|
};
|
|
464
592
|
};
|
|
593
|
+
richText: {
|
|
594
|
+
toolbar: {
|
|
595
|
+
label: string;
|
|
596
|
+
textStyle: string;
|
|
597
|
+
paragraph: string;
|
|
598
|
+
heading2: string;
|
|
599
|
+
heading3: string;
|
|
600
|
+
bold: string;
|
|
601
|
+
italic: string;
|
|
602
|
+
underline: string;
|
|
603
|
+
strike: string;
|
|
604
|
+
bulletList: string;
|
|
605
|
+
orderedList: string;
|
|
606
|
+
blockquote: string;
|
|
607
|
+
codeBlock: string;
|
|
608
|
+
link: string;
|
|
609
|
+
align: {
|
|
610
|
+
left: string;
|
|
611
|
+
center: string;
|
|
612
|
+
right: string;
|
|
613
|
+
};
|
|
614
|
+
clear: string;
|
|
615
|
+
undo: string;
|
|
616
|
+
redo: string;
|
|
617
|
+
};
|
|
618
|
+
linkDialog: {
|
|
619
|
+
url: string;
|
|
620
|
+
save: string;
|
|
621
|
+
remove: string;
|
|
622
|
+
invalid: string;
|
|
623
|
+
};
|
|
624
|
+
counter: string;
|
|
625
|
+
};
|
|
626
|
+
mexico: {
|
|
627
|
+
efirma: {
|
|
628
|
+
certificate: string;
|
|
629
|
+
certificateHelp: string;
|
|
630
|
+
privateKey: string;
|
|
631
|
+
privateKeyHelp: string;
|
|
632
|
+
password: string;
|
|
633
|
+
passwordHelp: string;
|
|
634
|
+
notCertificate: string;
|
|
635
|
+
otherRfc: string;
|
|
636
|
+
rfc: string;
|
|
637
|
+
curp: string;
|
|
638
|
+
representative: string;
|
|
639
|
+
certificateNumber: string;
|
|
640
|
+
validity: string;
|
|
641
|
+
validityRange: string;
|
|
642
|
+
branch: string;
|
|
643
|
+
verify: string;
|
|
644
|
+
verified: string;
|
|
645
|
+
verifyFailed: string;
|
|
646
|
+
problems: {
|
|
647
|
+
notKey: string;
|
|
648
|
+
wrongPassword: string;
|
|
649
|
+
otherCertificate: string;
|
|
650
|
+
};
|
|
651
|
+
status: {
|
|
652
|
+
valid: string;
|
|
653
|
+
expired: string;
|
|
654
|
+
notYetValid: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
cfdi: {
|
|
658
|
+
withoutFolio: string;
|
|
659
|
+
version: string;
|
|
660
|
+
issuer: string;
|
|
661
|
+
receiver: string;
|
|
662
|
+
issuedAt: string;
|
|
663
|
+
uuid: string;
|
|
664
|
+
copyUuid: string;
|
|
665
|
+
subtotal: string;
|
|
666
|
+
taxes: string;
|
|
667
|
+
total: string;
|
|
668
|
+
concepts: string;
|
|
669
|
+
description: string;
|
|
670
|
+
quantity: string;
|
|
671
|
+
amount: string;
|
|
672
|
+
otherReceiver: string;
|
|
673
|
+
notStamped: string;
|
|
674
|
+
voucherTypes: {
|
|
675
|
+
I: string;
|
|
676
|
+
E: string;
|
|
677
|
+
T: string;
|
|
678
|
+
N: string;
|
|
679
|
+
P: string;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
465
683
|
validation: {
|
|
684
|
+
rfc: string;
|
|
685
|
+
curp: string;
|
|
686
|
+
clabe: string;
|
|
687
|
+
listDuplicate: string;
|
|
688
|
+
listOrderBetween: string;
|
|
689
|
+
listOrderAbovePrevious: string;
|
|
690
|
+
listOrderBelowPrevious: string;
|
|
691
|
+
listOrderBelowNext: string;
|
|
692
|
+
listOrderAboveNext: string;
|
|
693
|
+
listTotalMax: string;
|
|
694
|
+
minutesFromNow_one: string;
|
|
695
|
+
minutesFromNow_other: string;
|
|
696
|
+
minutesAfter_one: string;
|
|
697
|
+
minutesAfter_other: string;
|
|
466
698
|
default: string;
|
|
467
699
|
required: string;
|
|
468
700
|
notType: string;
|
|
@@ -117,18 +117,95 @@ declare const _default: Readonly<{
|
|
|
117
117
|
selectPlaceholder: string;
|
|
118
118
|
copy: string;
|
|
119
119
|
copied: string;
|
|
120
|
+
copyFailed: string;
|
|
120
121
|
noOptions: string;
|
|
121
122
|
loadingOptions: string;
|
|
122
123
|
pickColor: string;
|
|
123
124
|
colorContrast: string;
|
|
124
125
|
colorLowContrast: string;
|
|
125
126
|
colorUseSuggestion: string;
|
|
127
|
+
selectAll: string;
|
|
128
|
+
unselectAll: string;
|
|
129
|
+
selectMatching: string;
|
|
130
|
+
unselectMatching: string;
|
|
131
|
+
moreSelected: string;
|
|
126
132
|
};
|
|
127
133
|
selection: {
|
|
128
134
|
clear: string;
|
|
129
135
|
actionsLabel: string;
|
|
130
136
|
summaryLabel: string;
|
|
131
137
|
};
|
|
138
|
+
repeating: {
|
|
139
|
+
row: string;
|
|
140
|
+
add: string;
|
|
141
|
+
removeShort: string;
|
|
142
|
+
clearShort: string;
|
|
143
|
+
remove: string;
|
|
144
|
+
clear: string;
|
|
145
|
+
maxRows_one: string;
|
|
146
|
+
maxRows_other: string;
|
|
147
|
+
confirmTitle: string;
|
|
148
|
+
confirmText: string;
|
|
149
|
+
blockedTitle: string;
|
|
150
|
+
understood: string;
|
|
151
|
+
};
|
|
152
|
+
transfer: {
|
|
153
|
+
available: string;
|
|
154
|
+
chosen: string;
|
|
155
|
+
search: string;
|
|
156
|
+
markVisible: string;
|
|
157
|
+
markedOf: string;
|
|
158
|
+
moveMarked: string;
|
|
159
|
+
moveAll: string;
|
|
160
|
+
returnMarked: string;
|
|
161
|
+
returnAll: string;
|
|
162
|
+
emptyAvailable: string;
|
|
163
|
+
noMatches: string;
|
|
164
|
+
emptyChosen: string;
|
|
165
|
+
};
|
|
166
|
+
help: {
|
|
167
|
+
button: string;
|
|
168
|
+
close: string;
|
|
169
|
+
next: string;
|
|
170
|
+
back: string;
|
|
171
|
+
done: string;
|
|
172
|
+
stepOf: string;
|
|
173
|
+
goToStep: string;
|
|
174
|
+
dontShowAgain: string;
|
|
175
|
+
};
|
|
176
|
+
filterDrawer: {
|
|
177
|
+
open: string;
|
|
178
|
+
openWithCount: string;
|
|
179
|
+
title: string;
|
|
180
|
+
close: string;
|
|
181
|
+
apply: string;
|
|
182
|
+
clear: string;
|
|
183
|
+
any: string;
|
|
184
|
+
from: string;
|
|
185
|
+
to: string;
|
|
186
|
+
operator: string;
|
|
187
|
+
value: string;
|
|
188
|
+
operators: {
|
|
189
|
+
eq: string;
|
|
190
|
+
gt: string;
|
|
191
|
+
gte: string;
|
|
192
|
+
lt: string;
|
|
193
|
+
lte: string;
|
|
194
|
+
};
|
|
195
|
+
rangeBackwards: string;
|
|
196
|
+
chipFrom: string;
|
|
197
|
+
chipTo: string;
|
|
198
|
+
};
|
|
199
|
+
recordCard: {
|
|
200
|
+
open: string;
|
|
201
|
+
actions: string;
|
|
202
|
+
showDetails: string;
|
|
203
|
+
hideDetails: string;
|
|
204
|
+
loading: string;
|
|
205
|
+
};
|
|
206
|
+
actionsMenu: {
|
|
207
|
+
back: string;
|
|
208
|
+
};
|
|
132
209
|
wizard: {
|
|
133
210
|
next: string;
|
|
134
211
|
back: string;
|
|
@@ -195,16 +272,48 @@ declare const _default: Readonly<{
|
|
|
195
272
|
step3: string;
|
|
196
273
|
};
|
|
197
274
|
};
|
|
275
|
+
countdown: {
|
|
276
|
+
done: string;
|
|
277
|
+
daysShort: string;
|
|
278
|
+
};
|
|
279
|
+
pdfViewer: {
|
|
280
|
+
openInTab: string;
|
|
281
|
+
download: string;
|
|
282
|
+
};
|
|
283
|
+
legal: {
|
|
284
|
+
cookies: {
|
|
285
|
+
region: string;
|
|
286
|
+
text: string;
|
|
287
|
+
policy: string;
|
|
288
|
+
accept: string;
|
|
289
|
+
};
|
|
290
|
+
terms: {
|
|
291
|
+
title: string;
|
|
292
|
+
version: string;
|
|
293
|
+
checkbox: string;
|
|
294
|
+
readToEnd: string;
|
|
295
|
+
accept: string;
|
|
296
|
+
decline: string;
|
|
297
|
+
saveFailed: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
198
300
|
upload: {
|
|
199
301
|
hint: string;
|
|
200
302
|
hintMultiple: string;
|
|
201
303
|
choose: string;
|
|
304
|
+
attach: string;
|
|
305
|
+
empty: string;
|
|
306
|
+
chooseImage: string;
|
|
307
|
+
changeImage: string;
|
|
308
|
+
removeImage: string;
|
|
309
|
+
template: string;
|
|
202
310
|
chooseMultiple: string;
|
|
203
311
|
remove: string;
|
|
204
312
|
invalidTitle: string;
|
|
205
313
|
invalidType: string;
|
|
206
314
|
tooLarge: string;
|
|
207
315
|
tooLargeShort: string;
|
|
316
|
+
totalTooLarge: string;
|
|
208
317
|
totalTooLargeShort: string;
|
|
209
318
|
tooManyFiles_one: string;
|
|
210
319
|
tooManyFiles_other: string;
|
|
@@ -216,6 +325,25 @@ declare const _default: Readonly<{
|
|
|
216
325
|
summary_other: string;
|
|
217
326
|
summaryOf_one: string;
|
|
218
327
|
summaryOf_other: string;
|
|
328
|
+
upload: string;
|
|
329
|
+
replace: string;
|
|
330
|
+
cancel: string;
|
|
331
|
+
download: string;
|
|
332
|
+
failed: string;
|
|
333
|
+
starting: string;
|
|
334
|
+
processing: string;
|
|
335
|
+
cancelled: string;
|
|
336
|
+
amount: string;
|
|
337
|
+
speed: string;
|
|
338
|
+
remaining_one: string;
|
|
339
|
+
remaining_other: string;
|
|
340
|
+
status: {
|
|
341
|
+
pending: string;
|
|
342
|
+
uploading: string;
|
|
343
|
+
processing: string;
|
|
344
|
+
uploaded: string;
|
|
345
|
+
failed: string;
|
|
346
|
+
};
|
|
219
347
|
pond: {
|
|
220
348
|
loading: string;
|
|
221
349
|
loadError: string;
|
|
@@ -462,7 +590,111 @@ declare const _default: Readonly<{
|
|
|
462
590
|
detail: string;
|
|
463
591
|
};
|
|
464
592
|
};
|
|
593
|
+
richText: {
|
|
594
|
+
toolbar: {
|
|
595
|
+
label: string;
|
|
596
|
+
textStyle: string;
|
|
597
|
+
paragraph: string;
|
|
598
|
+
heading2: string;
|
|
599
|
+
heading3: string;
|
|
600
|
+
bold: string;
|
|
601
|
+
italic: string;
|
|
602
|
+
underline: string;
|
|
603
|
+
strike: string;
|
|
604
|
+
bulletList: string;
|
|
605
|
+
orderedList: string;
|
|
606
|
+
blockquote: string;
|
|
607
|
+
codeBlock: string;
|
|
608
|
+
link: string;
|
|
609
|
+
align: {
|
|
610
|
+
left: string;
|
|
611
|
+
center: string;
|
|
612
|
+
right: string;
|
|
613
|
+
};
|
|
614
|
+
clear: string;
|
|
615
|
+
undo: string;
|
|
616
|
+
redo: string;
|
|
617
|
+
};
|
|
618
|
+
linkDialog: {
|
|
619
|
+
url: string;
|
|
620
|
+
save: string;
|
|
621
|
+
remove: string;
|
|
622
|
+
invalid: string;
|
|
623
|
+
};
|
|
624
|
+
counter: string;
|
|
625
|
+
};
|
|
626
|
+
mexico: {
|
|
627
|
+
efirma: {
|
|
628
|
+
certificate: string;
|
|
629
|
+
certificateHelp: string;
|
|
630
|
+
privateKey: string;
|
|
631
|
+
privateKeyHelp: string;
|
|
632
|
+
password: string;
|
|
633
|
+
passwordHelp: string;
|
|
634
|
+
notCertificate: string;
|
|
635
|
+
otherRfc: string;
|
|
636
|
+
rfc: string;
|
|
637
|
+
curp: string;
|
|
638
|
+
representative: string;
|
|
639
|
+
certificateNumber: string;
|
|
640
|
+
validity: string;
|
|
641
|
+
validityRange: string;
|
|
642
|
+
branch: string;
|
|
643
|
+
verify: string;
|
|
644
|
+
verified: string;
|
|
645
|
+
verifyFailed: string;
|
|
646
|
+
problems: {
|
|
647
|
+
notKey: string;
|
|
648
|
+
wrongPassword: string;
|
|
649
|
+
otherCertificate: string;
|
|
650
|
+
};
|
|
651
|
+
status: {
|
|
652
|
+
valid: string;
|
|
653
|
+
expired: string;
|
|
654
|
+
notYetValid: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
cfdi: {
|
|
658
|
+
withoutFolio: string;
|
|
659
|
+
version: string;
|
|
660
|
+
issuer: string;
|
|
661
|
+
receiver: string;
|
|
662
|
+
issuedAt: string;
|
|
663
|
+
uuid: string;
|
|
664
|
+
copyUuid: string;
|
|
665
|
+
subtotal: string;
|
|
666
|
+
taxes: string;
|
|
667
|
+
total: string;
|
|
668
|
+
concepts: string;
|
|
669
|
+
description: string;
|
|
670
|
+
quantity: string;
|
|
671
|
+
amount: string;
|
|
672
|
+
otherReceiver: string;
|
|
673
|
+
notStamped: string;
|
|
674
|
+
voucherTypes: {
|
|
675
|
+
I: string;
|
|
676
|
+
E: string;
|
|
677
|
+
T: string;
|
|
678
|
+
N: string;
|
|
679
|
+
P: string;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
465
683
|
validation: {
|
|
684
|
+
rfc: string;
|
|
685
|
+
curp: string;
|
|
686
|
+
clabe: string;
|
|
687
|
+
listDuplicate: string;
|
|
688
|
+
listOrderBetween: string;
|
|
689
|
+
listOrderAbovePrevious: string;
|
|
690
|
+
listOrderBelowPrevious: string;
|
|
691
|
+
listOrderBelowNext: string;
|
|
692
|
+
listOrderAboveNext: string;
|
|
693
|
+
listTotalMax: string;
|
|
694
|
+
minutesFromNow_one: string;
|
|
695
|
+
minutesFromNow_other: string;
|
|
696
|
+
minutesAfter_one: string;
|
|
697
|
+
minutesAfter_other: string;
|
|
466
698
|
default: string;
|
|
467
699
|
required: string;
|
|
468
700
|
notType: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} props
|
|
3
|
+
* @param {import('./cfdiReader.js').Cfdi} props.cfdi lo que regresa readCfdi
|
|
4
|
+
* @param {string} [props.expectedReceiverRfc] el RFC que debe recibirla (el de la empresa); si es otro, se avisa
|
|
5
|
+
* @param {boolean} [props.showConcepts] por omisión, sí
|
|
6
|
+
* @param {import('react').ReactNode} [props.actions] botones suyos abajo («Cargar la factura»)
|
|
7
|
+
* @param {object} [props.sx]
|
|
8
|
+
* @param {object} [props.texts] los textos que cambian, con la forma de `mexico` en los textos del paquete
|
|
9
|
+
*/
|
|
10
|
+
export default function CfdiSummary(props: {
|
|
11
|
+
cfdi: import('./cfdiReader.js').Cfdi;
|
|
12
|
+
expectedReceiverRfc?: string;
|
|
13
|
+
showConcepts?: boolean;
|
|
14
|
+
actions?: import('react').ReactNode;
|
|
15
|
+
sx?: object;
|
|
16
|
+
texts?: object;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} props
|
|
3
|
+
* @param {{certificateFile: File|null, keyFile: File|null, password: string}} [props.value]
|
|
4
|
+
* @param {(value: {certificateFile: File|null, keyFile: File|null, password: string}) => void} props.onChange el valor completo
|
|
5
|
+
* @param {string} [props.expectedRfc] el RFC que debe traer el certificado (el de la empresa); si es otro, se avisa
|
|
6
|
+
* @param {(certificate: ReturnType<typeof import('./certificateReader.js').readCertificate>|null) => void} [props.onCertificateRead] lo que dice el certificado al elegirlo (null al quitarlo
|
|
7
|
+
* o si no se pudo leer)
|
|
8
|
+
* @param {(input: {certificateFile: File, keyFile: File, password: string, certificate: ReturnType<typeof import('./certificateReader.js').readCertificate>}) => Promise<void>} [props.onVerifyKey]
|
|
9
|
+
* la revisión del proyecto (su API); si truena, su mensaje se enseña. Sin él, se abre en el navegador con jsrsasign
|
|
10
|
+
* @param {string} [props.verifyLabel] ya traducido; por omisión «Revisar la e.firma»
|
|
11
|
+
* @param {boolean} [props.disabled]
|
|
12
|
+
* @param {object} [props.sx]
|
|
13
|
+
* @param {object} [props.texts] los textos que cambian, con la forma de `mexico` en los textos del paquete
|
|
14
|
+
*/
|
|
15
|
+
export default function EfirmaFields(props: {
|
|
16
|
+
value?: {
|
|
17
|
+
certificateFile: File | null;
|
|
18
|
+
keyFile: File | null;
|
|
19
|
+
password: string;
|
|
20
|
+
};
|
|
21
|
+
onChange: (value: {
|
|
22
|
+
certificateFile: File | null;
|
|
23
|
+
keyFile: File | null;
|
|
24
|
+
password: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
expectedRfc?: string;
|
|
27
|
+
onCertificateRead?: (certificate: ReturnType<typeof import('./certificateReader.js').readCertificate> | null) => void;
|
|
28
|
+
onVerifyKey?: (input: {
|
|
29
|
+
certificateFile: File;
|
|
30
|
+
keyFile: File;
|
|
31
|
+
password: string;
|
|
32
|
+
certificate: ReturnType<typeof import('./certificateReader.js').readCertificate>;
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
verifyLabel?: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
sx?: object;
|
|
37
|
+
texts?: object;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lee un certificado .cer (DER).
|
|
3
|
+
*
|
|
4
|
+
* @param {ArrayBuffer|Uint8Array} certificateBytes
|
|
5
|
+
* @returns {{rfc: string|null, representativeRfc: string|null, curp: string|null, representativeCurp: string|null, name: string|null, organization: string|null, branch: string|null, email: string|null, certificateNumber: string, validFrom: string, validTo: string, issuer: string|null}}
|
|
6
|
+
*/
|
|
7
|
+
export declare function readCertificate(certificateBytes: ArrayBuffer | Uint8Array): {
|
|
8
|
+
rfc: string | null;
|
|
9
|
+
representativeRfc: string | null;
|
|
10
|
+
curp: string | null;
|
|
11
|
+
representativeCurp: string | null;
|
|
12
|
+
name: string | null;
|
|
13
|
+
organization: string | null;
|
|
14
|
+
branch: string | null;
|
|
15
|
+
email: string | null;
|
|
16
|
+
certificateNumber: string;
|
|
17
|
+
validFrom: string;
|
|
18
|
+
validTo: string;
|
|
19
|
+
issuer: string | null;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* ¿En qué está el certificado en este momento?
|
|
23
|
+
*
|
|
24
|
+
* @param {{validFrom: string, validTo: string}} certificate
|
|
25
|
+
* @param {number} [now] milisegundos (Date.now())
|
|
26
|
+
* @returns {'notYetValid'|'valid'|'expired'}
|
|
27
|
+
*/
|
|
28
|
+
export declare function certificateStatusOf({ validFrom, validTo }: {
|
|
29
|
+
validFrom: string;
|
|
30
|
+
validTo: string;
|
|
31
|
+
}, now?: number): 'notYetValid' | 'valid' | 'expired';
|
|
32
|
+
/** En qué está un certificado: aún no vale, vale o ya venció. */
|
|
33
|
+
export declare const CERTIFICATE_STATUS: Readonly<{
|
|
34
|
+
notYetValid: "notYetValid";
|
|
35
|
+
valid: "valid";
|
|
36
|
+
expired: "expired";
|
|
37
|
+
}>;
|