@skyworx/dynamic-ui 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dynamic-ui.css +1 -1
- package/dist/dynamic-ui.es.js +103 -83
- package/dist/dynamic-ui.umd.js +81 -78
- package/dist/{index-DDXdc0nQ.js → index-DHlB_Ref.js} +22517 -21809
- package/dist/index.d.ts +214 -0
- package/dist/types/components/base/DCodeAlertModal.vue.d.ts +2 -0
- package/dist/types/components/base/DCodeAuthOverlay.vue.d.ts +2 -0
- package/dist/types/components/base/DCodeAutoComplete.vue.d.ts +87 -0
- package/dist/types/components/base/DCodeBadge.vue.d.ts +33 -0
- package/dist/types/components/base/DCodeBarCustom.vue.d.ts +28 -0
- package/dist/types/components/base/DCodeBeforeAfter.vue.d.ts +21 -0
- package/dist/types/components/base/DCodeButton.vue.d.ts +45 -0
- package/dist/types/components/base/DCodeButtonGroup.vue.d.ts +79 -0
- package/dist/types/components/base/DCodeCard.vue.d.ts +30 -0
- package/dist/types/components/base/DCodeCardCheckboxList.vue.d.ts +64 -0
- package/dist/types/components/base/DCodeCardList.vue.d.ts +147 -0
- package/dist/types/components/base/DCodeCardSelect.vue.d.ts +39 -0
- package/dist/types/components/base/DCodeChart.vue.d.ts +46 -0
- package/dist/types/components/base/DCodeCheckbox.vue.d.ts +27 -0
- package/dist/types/components/base/DCodeClearButton.vue.d.ts +15 -0
- package/dist/types/components/base/DCodeColorPicker.vue.d.ts +50 -0
- package/dist/types/components/base/DCodeCurrencyField.vue.d.ts +34 -0
- package/dist/types/components/base/DCodeDatePicker.backup.vue.d.ts +55 -0
- package/dist/types/components/base/DCodeDatePicker.vue.d.ts +59 -0
- package/dist/types/components/base/DCodeDateTimePicker.backup.vue.d.ts +52 -0
- package/dist/types/components/base/DCodeDateTimePicker.vue.d.ts +60 -0
- package/dist/types/components/base/DCodeDialog.vue.d.ts +45 -0
- package/dist/types/components/base/DCodeDialogCloseBtn.vue.d.ts +9 -0
- package/dist/types/components/base/DCodeDrawer.vue.d.ts +31 -0
- package/dist/types/components/base/DCodeDropzone.vue.d.ts +35 -0
- package/dist/types/components/base/DCodeDynamicCollapse.vue.d.ts +190 -0
- package/dist/types/components/base/DCodeDynamicUploadList.vue.d.ts +155 -0
- package/dist/types/components/base/DCodeFieldDiff.vue.d.ts +7 -0
- package/dist/types/components/base/DCodeFileField.vue.d.ts +48 -0
- package/dist/types/components/base/DCodeFileResult.vue.d.ts +38 -0
- package/dist/types/components/base/DCodeIconDropdown.vue.d.ts +32 -0
- package/dist/types/components/base/DCodeImageCropperDialog.vue.d.ts +33 -0
- package/dist/types/components/base/DCodeImageField.vue.d.ts +71 -0
- package/dist/types/components/base/DCodeImageResult.vue.d.ts +32 -0
- package/dist/types/components/base/DCodeInfiniteAutoComplete.vue.d.ts +98 -0
- package/dist/types/components/base/DCodeLabel.vue.d.ts +11 -0
- package/dist/types/components/base/DCodeListLabels.vue.d.ts +6 -0
- package/dist/types/components/base/DCodeMapField.vue.d.ts +50 -0
- package/dist/types/components/base/DCodeMonthPicker.vue.d.ts +49 -0
- package/dist/types/components/base/DCodeMultiSelect.vue.d.ts +71 -0
- package/dist/types/components/base/DCodeOtpInput.vue.d.ts +43 -0
- package/dist/types/components/base/DCodePagination.vue.d.ts +24 -0
- package/dist/types/components/base/DCodePdfViewer.vue.d.ts +19 -0
- package/dist/types/components/base/DCodePercentField.vue.d.ts +39 -0
- package/dist/types/components/base/DCodePercentage.vue.d.ts +27 -0
- package/dist/types/components/base/DCodePermissionMenu.vue.d.ts +83 -0
- package/dist/types/components/base/DCodeProgress.vue.d.ts +33 -0
- package/dist/types/components/base/DCodeProgressBar.vue.d.ts +9 -0
- package/dist/types/components/base/DCodeRadio.vue.d.ts +47 -0
- package/dist/types/components/base/DCodeRadioCustom.vue.d.ts +56 -0
- package/dist/types/components/base/DCodeRangeField.vue.d.ts +43 -0
- package/dist/types/components/base/DCodeRiskEvaluation.vue.d.ts +12 -0
- package/dist/types/components/base/DCodeRobotList.vue.d.ts +68 -0
- package/dist/types/components/base/DCodeSearchDialog.vue.d.ts +94 -0
- package/dist/types/components/base/DCodeSegment.vue.d.ts +42 -0
- package/dist/types/components/base/DCodeSegmentGroup.vue.d.ts +36 -0
- package/dist/types/components/base/DCodeSelect.vue.d.ts +54 -0
- package/dist/types/components/base/DCodeSlider.vue.d.ts +58 -0
- package/dist/types/components/base/DCodeStaticImage.vue.d.ts +75 -0
- package/dist/types/components/base/DCodeStaticLabel.vue.d.ts +43 -0
- package/dist/types/components/base/DCodeSwitch.vue.d.ts +38 -0
- package/dist/types/components/base/DCodeTextEditor.vue.d.ts +29 -0
- package/dist/types/components/base/DCodeTextField.vue.d.ts +76 -0
- package/dist/types/components/base/DCodeTextarea.vue.d.ts +42 -0
- package/dist/types/components/base/DCodeTimePicker.vue.d.ts +51 -0
- package/dist/types/components/base/DCodeTimelineWithIcons.vue.d.ts +55 -0
- package/dist/types/components/base/DCodeTreePermissions.vue.d.ts +18 -0
- package/dist/types/components/base/DCodeUploadFile.vue.d.ts +12 -0
- package/dist/types/components/base/DCodeWizard.vue.d.ts +109 -0
- package/dist/types/components/base/DCodeWorkflowBpmn.vue.d.ts +79 -0
- package/dist/types/components/base/DCodeWorkflowDiagram.vue.d.ts +30 -0
- package/dist/types/components/base/datatable/DataTable.vue.d.ts +170 -0
- package/dist/types/components/base/datatable/DynamicFilterField.vue.d.ts +52 -0
- package/dist/types/components/dynamic/DynamicForm.vue.d.ts +41 -0
- package/dist/types/components/dynamic/DynamicFormField.vue.d.ts +36 -0
- package/dist/types/components/dynamic/DynamicWizard.vue.d.ts +42 -0
- package/dist/types/components/dynamic/NavigationBackButton.vue.d.ts +21 -0
- package/dist/types/components/dynamic/dialogs/DynamicFormDialogs.vue.d.ts +2 -0
- package/dist/types/components/dynamic/sections/DynamicFormSection.vue.d.ts +10 -0
- package/dist/types/components/dynamic/sections/DynamicTableSection.vue.d.ts +10 -0
- package/dist/types/components/dynamic/sections/DynamicWizardSection.vue.d.ts +6 -0
- package/dist/types/components/dynamic/sections/SectionSkeleton.vue.d.ts +9 -0
- package/dist/types/components/features/AutoLayoutSkeleton.vue.d.ts +2 -0
- package/dist/types/components/features/Breadcrumb.vue.d.ts +23 -0
- package/dist/types/components/features/CardSummary.vue.d.ts +15 -0
- package/dist/types/components/features/DashboardActivityCard.vue.d.ts +20 -0
- package/dist/types/components/features/DashboardFeaturesCard.vue.d.ts +19 -0
- package/dist/types/components/features/DashboardInsightsCard.vue.d.ts +21 -0
- package/dist/types/components/features/DataFilterSheet.vue.d.ts +24 -0
- package/dist/types/components/features/LanguageSwitcher.vue.d.ts +2 -0
- package/dist/types/components/features/Modal.vue.d.ts +29 -0
- package/dist/types/components/features/Pagination.vue.d.ts +12 -0
- package/dist/types/components/features/ScrollToTop.vue.d.ts +2 -0
- package/dist/types/components/features/SessionTimeoutModal.vue.d.ts +12 -0
- package/dist/types/components/features/ThemeSwitcher.vue.d.ts +2 -0
- package/dist/types/components/ui/alert/Alert.vue.d.ts +18 -0
- package/dist/types/components/ui/alert/AlertDescription.vue.d.ts +16 -0
- package/dist/types/components/ui/alert/AlertTitle.vue.d.ts +16 -0
- package/dist/types/components/ui/alert/index.d.ts +8 -0
- package/dist/types/components/ui/avatar/Avatar.vue.d.ts +22 -0
- package/dist/types/components/ui/avatar/AvatarFallback.vue.d.ts +13 -0
- package/dist/types/components/ui/avatar/AvatarImage.vue.d.ts +13 -0
- package/dist/types/components/ui/avatar/index.d.ts +9 -0
- package/dist/types/components/ui/badge/Badge.vue.d.ts +18 -0
- package/dist/types/components/ui/badge/index.d.ts +6 -0
- package/dist/types/components/ui/button/Button.vue.d.ts +22 -0
- package/dist/types/components/ui/button/index.d.ts +7 -0
- package/dist/types/components/ui/button-group/ButtonGroup.vue.d.ts +18 -0
- package/dist/types/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
- package/dist/types/components/ui/button-group/ButtonGroupText.vue.d.ts +21 -0
- package/dist/types/components/ui/button-group/index.d.ts +8 -0
- package/dist/types/components/ui/calendar/Calendar.vue.d.ts +13 -0
- package/dist/types/components/ui/calendar/CalendarCell.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarCellTrigger.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarGrid.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarGridBody.vue.d.ts +13 -0
- package/dist/types/components/ui/calendar/CalendarGridHead.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarGridRow.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarHeadCell.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarHeader.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarHeading.vue.d.ts +18 -0
- package/dist/types/components/ui/calendar/CalendarNextButton.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/CalendarPrevButton.vue.d.ts +17 -0
- package/dist/types/components/ui/calendar/index.d.ts +12 -0
- package/dist/types/components/ui/card/Card.vue.d.ts +16 -0
- package/dist/types/components/ui/card/CardContent.vue.d.ts +16 -0
- package/dist/types/components/ui/card/CardDescription.vue.d.ts +16 -0
- package/dist/types/components/ui/card/CardFooter.vue.d.ts +16 -0
- package/dist/types/components/ui/card/CardHeader.vue.d.ts +16 -0
- package/dist/types/components/ui/card/CardTitle.vue.d.ts +16 -0
- package/dist/types/components/ui/card/index.d.ts +6 -0
- package/dist/types/components/ui/checkbox/Checkbox.vue.d.ts +21 -0
- package/dist/types/components/ui/checkbox/index.d.ts +1 -0
- package/dist/types/components/ui/dialog/Dialog.vue.d.ts +17 -0
- package/dist/types/components/ui/dialog/DialogClose.vue.d.ts +13 -0
- package/dist/types/components/ui/dialog/DialogContent.vue.d.ts +34 -0
- package/dist/types/components/ui/dialog/DialogDescription.vue.d.ts +17 -0
- package/dist/types/components/ui/dialog/DialogFooter.vue.d.ts +16 -0
- package/dist/types/components/ui/dialog/DialogHeader.vue.d.ts +16 -0
- package/dist/types/components/ui/dialog/DialogScrollContent.vue.d.ts +31 -0
- package/dist/types/components/ui/dialog/DialogTitle.vue.d.ts +17 -0
- package/dist/types/components/ui/dialog/DialogTrigger.vue.d.ts +13 -0
- package/dist/types/components/ui/dialog/index.d.ts +9 -0
- package/dist/types/components/ui/input/Input.vue.d.ts +12 -0
- package/dist/types/components/ui/input/index.d.ts +1 -0
- package/dist/types/components/ui/label/Label.vue.d.ts +17 -0
- package/dist/types/components/ui/label/index.d.ts +1 -0
- package/dist/types/components/ui/pagination/Pagination.vue.d.ts +24 -0
- package/dist/types/components/ui/pagination/PaginationContent.vue.d.ts +24 -0
- package/dist/types/components/ui/pagination/PaginationEllipsis.vue.d.ts +17 -0
- package/dist/types/components/ui/pagination/PaginationFirst.vue.d.ts +21 -0
- package/dist/types/components/ui/pagination/PaginationItem.vue.d.ts +22 -0
- package/dist/types/components/ui/pagination/PaginationLast.vue.d.ts +21 -0
- package/dist/types/components/ui/pagination/PaginationNext.vue.d.ts +21 -0
- package/dist/types/components/ui/pagination/PaginationPrevious.vue.d.ts +21 -0
- package/dist/types/components/ui/pagination/index.d.ts +8 -0
- package/dist/types/components/ui/popover/Popover.vue.d.ts +17 -0
- package/dist/types/components/ui/popover/PopoverContent.vue.d.ts +34 -0
- package/dist/types/components/ui/popover/PopoverTrigger.vue.d.ts +13 -0
- package/dist/types/components/ui/popover/index.d.ts +4 -0
- package/dist/types/components/ui/range-calendar/RangeCalendar.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +13 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +13 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +18 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +17 -0
- package/dist/types/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/types/components/ui/select/Select.vue.d.ts +20 -0
- package/dist/types/components/ui/select/SelectContent.vue.d.ts +27 -0
- package/dist/types/components/ui/select/SelectGroup.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectItem.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectItemText.vue.d.ts +13 -0
- package/dist/types/components/ui/select/SelectLabel.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectScrollDownButton.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectScrollUpButton.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/types/components/ui/select/SelectTrigger.vue.d.ts +17 -0
- package/dist/types/components/ui/select/SelectValue.vue.d.ts +13 -0
- package/dist/types/components/ui/select/index.d.ts +11 -0
- package/dist/types/components/ui/separator/Separator.vue.d.ts +10 -0
- package/dist/types/components/ui/separator/index.d.ts +1 -0
- package/dist/types/components/ui/sheet/Sheet.vue.d.ts +17 -0
- package/dist/types/components/ui/sheet/SheetClose.vue.d.ts +13 -0
- package/dist/types/components/ui/sheet/SheetContent.vue.d.ts +33 -0
- package/dist/types/components/ui/sheet/SheetDescription.vue.d.ts +17 -0
- package/dist/types/components/ui/sheet/SheetFooter.vue.d.ts +16 -0
- package/dist/types/components/ui/sheet/SheetHeader.vue.d.ts +16 -0
- package/dist/types/components/ui/sheet/SheetTitle.vue.d.ts +17 -0
- package/dist/types/components/ui/sheet/SheetTrigger.vue.d.ts +13 -0
- package/dist/types/components/ui/sheet/index.d.ts +13 -0
- package/dist/types/components/ui/stepper/Stepper.vue.d.ts +33 -0
- package/dist/types/components/ui/stepper/StepperDescription.vue.d.ts +17 -0
- package/dist/types/components/ui/stepper/StepperIndicator.vue.d.ts +19 -0
- package/dist/types/components/ui/stepper/StepperItem.vue.d.ts +19 -0
- package/dist/types/components/ui/stepper/StepperSeparator.vue.d.ts +7 -0
- package/dist/types/components/ui/stepper/StepperTitle.vue.d.ts +17 -0
- package/dist/types/components/ui/stepper/StepperTrigger.vue.d.ts +17 -0
- package/dist/types/components/ui/stepper/index.d.ts +7 -0
- package/dist/types/components/ui/switch/Switch.vue.d.ts +21 -0
- package/dist/types/components/ui/switch/index.d.ts +1 -0
- package/dist/types/components/ui/tab-wizard/TabWizard.vue.d.ts +82 -0
- package/dist/types/components/ui/tab-wizard/TabWizardContent.vue.d.ts +22 -0
- package/dist/types/components/ui/tab-wizard/TabWizardForm.vue.d.ts +16 -0
- package/dist/types/components/ui/tab-wizard/index.d.ts +4 -0
- package/dist/types/components/ui/textarea/Textarea.vue.d.ts +12 -0
- package/dist/types/components/ui/textarea/index.d.ts +1 -0
- package/dist/types/components/ui/tooltip/Tooltip.vue.d.ts +17 -0
- package/dist/types/components/ui/tooltip/TooltipContent.vue.d.ts +25 -0
- package/dist/types/components/ui/tooltip/TooltipProvider.vue.d.ts +13 -0
- package/dist/types/components/ui/tooltip/TooltipTrigger.vue.d.ts +13 -0
- package/dist/types/components/ui/tooltip/index.d.ts +4 -0
- package/dist/types/composables/dynamic-form/actions/useFormActions.d.ts +10 -0
- package/dist/types/composables/dynamic-form/logic/operators.d.ts +1 -0
- package/dist/types/composables/dynamic-form/logic/useFormLogic.d.ts +28 -0
- package/dist/types/composables/dynamic-form/mapping/useFormMapping.d.ts +3 -0
- package/dist/types/composables/dynamic-form/navigation/navigation.types.d.ts +80 -0
- package/dist/types/composables/dynamic-form/navigation/useFormNavigation.d.ts +93 -0
- package/dist/types/composables/dynamic-form/state/useFormState.d.ts +2 -0
- package/dist/types/composables/dynamic-form/table/useFormTable.d.ts +43 -0
- package/dist/types/composables/dynamic-form/types/form.types.d.ts +202 -0
- package/dist/types/composables/dynamic-form/useDynamicForm.d.ts +228 -0
- package/dist/types/composables/dynamic-form/utils/form.utils.d.ts +21 -0
- package/dist/types/composables/dynamic-form/validation/useFormValidation.d.ts +3 -0
- package/dist/types/composables/dynamic-form/watcher/useFormWatcher.d.ts +4 -0
- package/dist/types/composables/useAuthOverlay.d.ts +91 -0
- package/dist/types/composables/useMenuMetadata.d.ts +7 -0
- package/dist/types/composables/useSmoothCaret.d.ts +21 -0
- package/dist/types/composables/useTemplateDownload.d.ts +40 -0
- package/dist/types/composables/useToast.d.ts +93 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/locales/en.d.ts +609 -0
- package/dist/types/locales/id.d.ts +894 -0
- package/dist/types/locales/kr.d.ts +611 -0
- package/dist/types/pages/AutoLayoutDatatable.vue.d.ts +34 -0
- package/dist/types/pages/AutoLayoutForm.vue.d.ts +31 -0
- package/dist/types/stores/ui.d.ts +26 -0
- package/dist/types/types/api-request.d.ts +5 -0
- package/dist/types/types/base-props.d.ts +12 -0
- package/dist/types/types/dynamic.types.d.ts +43 -0
- package/dist/types/types/form.d.ts +797 -0
- package/dist/types/types/index.d.ts +149 -0
- package/dist/types/utils/action.utils.d.ts +1 -0
- package/dist/types/utils/action.utils.test.d.ts +1 -0
- package/dist/types/utils/datePIckerColor.d.ts +8 -0
- package/dist/types/utils/download.utils.d.ts +30 -0
- package/dist/types/utils/download.utils.test.d.ts +1 -0
- package/dist/types/utils/formdata.utils.d.ts +32 -0
- package/dist/types/utils/formdata.utils.test.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +38 -0
- package/dist/types/utils/permission.d.ts +17 -0
- package/dist/types/utils/range.utils.d.ts +22 -0
- package/dist/types/utils/range.utils.test.d.ts +1 -0
- package/dist/{viewer-CZARhy-c.js → viewer-Dg3git-r.js} +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import "vue3-toastify/dist/index.css";
|
|
2
|
+
import { DynamicFormProps, FieldMap } from "./types/form.types";
|
|
3
|
+
import { getSectionKey } from "./utils/form.utils";
|
|
4
|
+
export declare function useDynamicForm(props: DynamicFormProps, emit: any): {
|
|
5
|
+
resolveKeyParams: (keyParams: any[], contextPath?: string, currentField?: any, localData?: any) => Record<string, any>;
|
|
6
|
+
navigation: {
|
|
7
|
+
navigationState: import("vue").Ref<{
|
|
8
|
+
currentContext: string | null;
|
|
9
|
+
history: {
|
|
10
|
+
sectionKey: string;
|
|
11
|
+
hiddenStates: Record<string, boolean>;
|
|
12
|
+
timestamp: number;
|
|
13
|
+
sourceAction?: string | undefined;
|
|
14
|
+
context?: any;
|
|
15
|
+
backButtonConfig?: {
|
|
16
|
+
labelEN?: string | undefined;
|
|
17
|
+
labelID?: string | undefined;
|
|
18
|
+
labelKR?: string | undefined;
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
variant?: string | undefined;
|
|
21
|
+
position?: "left" | "right" | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
hiddenStates: Record<string, boolean>;
|
|
25
|
+
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
26
|
+
maxHistoryDepth: number;
|
|
27
|
+
parentRowContext?: {
|
|
28
|
+
parentArrayKey: string;
|
|
29
|
+
rowIndex: number;
|
|
30
|
+
childArrayKey: string;
|
|
31
|
+
} | null | undefined;
|
|
32
|
+
}, import("./navigation/navigation.types").NavigationState | {
|
|
33
|
+
currentContext: string | null;
|
|
34
|
+
history: {
|
|
35
|
+
sectionKey: string;
|
|
36
|
+
hiddenStates: Record<string, boolean>;
|
|
37
|
+
timestamp: number;
|
|
38
|
+
sourceAction?: string | undefined;
|
|
39
|
+
context?: any;
|
|
40
|
+
backButtonConfig?: {
|
|
41
|
+
labelEN?: string | undefined;
|
|
42
|
+
labelID?: string | undefined;
|
|
43
|
+
labelKR?: string | undefined;
|
|
44
|
+
icon?: string | undefined;
|
|
45
|
+
variant?: string | undefined;
|
|
46
|
+
position?: "left" | "right" | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
}[];
|
|
49
|
+
hiddenStates: Record<string, boolean>;
|
|
50
|
+
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
51
|
+
maxHistoryDepth: number;
|
|
52
|
+
parentRowContext?: {
|
|
53
|
+
parentArrayKey: string;
|
|
54
|
+
rowIndex: number;
|
|
55
|
+
childArrayKey: string;
|
|
56
|
+
} | null | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
hasHistory: import("vue").ComputedRef<boolean>;
|
|
59
|
+
currentContext: import("vue").ComputedRef<string | null>;
|
|
60
|
+
history: import("vue").ComputedRef<{
|
|
61
|
+
sectionKey: string;
|
|
62
|
+
hiddenStates: Record<string, boolean>;
|
|
63
|
+
timestamp: number;
|
|
64
|
+
sourceAction?: string | undefined;
|
|
65
|
+
context?: any;
|
|
66
|
+
backButtonConfig?: {
|
|
67
|
+
labelEN?: string | undefined;
|
|
68
|
+
labelID?: string | undefined;
|
|
69
|
+
labelKR?: string | undefined;
|
|
70
|
+
icon?: string | undefined;
|
|
71
|
+
variant?: string | undefined;
|
|
72
|
+
position?: "left" | "right" | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
}[]>;
|
|
75
|
+
hiddenStates: import("vue").ComputedRef<{
|
|
76
|
+
[x: string]: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
parentRowContext: import("vue").ComputedRef<{
|
|
79
|
+
parentArrayKey: string;
|
|
80
|
+
rowIndex: number;
|
|
81
|
+
childArrayKey: string;
|
|
82
|
+
} | null | undefined>;
|
|
83
|
+
navigateTo: (config: import("./navigation/navigation.types").NavigationConfig, context?: any) => void;
|
|
84
|
+
navigateBack: () => void;
|
|
85
|
+
applyHiddenRules: (rules: Record<string, boolean | any>, context?: any) => void;
|
|
86
|
+
getCurrentBackButton: () => import("./navigation/navigation.types").BackButtonConfig | null;
|
|
87
|
+
isSectionHidden: (sectionKey: string) => boolean;
|
|
88
|
+
setSectionHidden: (sectionKey: string, hidden: boolean) => void;
|
|
89
|
+
clearHistory: () => void;
|
|
90
|
+
reset: () => void;
|
|
91
|
+
registerNavigationSection: (sectionKey: string) => void;
|
|
92
|
+
};
|
|
93
|
+
tableDialogOpen: import("vue").Ref<boolean, boolean>;
|
|
94
|
+
tableDialogTitle: import("vue").Ref<string, string>;
|
|
95
|
+
tableDialogIcon: import("vue").Ref<string, string>;
|
|
96
|
+
tableDialogFields: import("vue").Ref<any[], any[]>;
|
|
97
|
+
tableRowFormData: any;
|
|
98
|
+
tableRowErrors: Record<string, string>;
|
|
99
|
+
activeTableKey: import("vue").Ref<string, string>;
|
|
100
|
+
editingRowIndex: import("vue").Ref<number | null, number | null>;
|
|
101
|
+
tableDialogViewOnly: import("vue").Ref<boolean, boolean>;
|
|
102
|
+
confirmDeletePending: import("vue").Ref<{
|
|
103
|
+
propsTable: any;
|
|
104
|
+
row: any;
|
|
105
|
+
} | null, {
|
|
106
|
+
propsTable: any;
|
|
107
|
+
row: any;
|
|
108
|
+
} | {
|
|
109
|
+
propsTable: any;
|
|
110
|
+
row: any;
|
|
111
|
+
} | null>;
|
|
112
|
+
confirmDeleteOpen: import("vue").Ref<boolean, boolean>;
|
|
113
|
+
tableDialogSize: import("vue").Ref<string, string>;
|
|
114
|
+
isTemporaryTable: (pt: any) => boolean;
|
|
115
|
+
isActionViewOnly: (action: any) => any;
|
|
116
|
+
tableRows: (pt: any) => any[];
|
|
117
|
+
resolveTableFields: (pt: any) => any[];
|
|
118
|
+
confirmTableDelete: (pt: any, row: any) => void;
|
|
119
|
+
executeTableDelete: () => void;
|
|
120
|
+
handleTableRowUpdate: (model: string, value: any) => void;
|
|
121
|
+
openTableRowDialog: (pt: any, tAction: any, rowData?: any) => void;
|
|
122
|
+
handleDataTableAction: (pt: any, payload: {
|
|
123
|
+
action: string;
|
|
124
|
+
row: any;
|
|
125
|
+
selection?: any[];
|
|
126
|
+
isLocalSave?: boolean;
|
|
127
|
+
modelDatatable?: string;
|
|
128
|
+
actionType?: string;
|
|
129
|
+
originalRow?: any;
|
|
130
|
+
rowIndex?: number | null;
|
|
131
|
+
}) => void;
|
|
132
|
+
saveTableRow: () => void;
|
|
133
|
+
isActionVisible: (action: any) => boolean | undefined;
|
|
134
|
+
handleGlobalButtonClick: (action: any) => void;
|
|
135
|
+
confirmAction: () => void;
|
|
136
|
+
performAction: (action: any) => Promise<void>;
|
|
137
|
+
handleSubmit: () => Promise<void>;
|
|
138
|
+
handleCancel: () => any;
|
|
139
|
+
handleFieldUpdate: (model: string, value: any, sectionKey?: string) => void;
|
|
140
|
+
getCleanPayload: () => Record<string, any>;
|
|
141
|
+
applyFieldMapping: (data: Record<string, any>, mapping: Record<string, any>) => Record<string, any>;
|
|
142
|
+
handleResponseMapping: (res: any, mapping: Record<string, any>, basePath?: string) => void;
|
|
143
|
+
handleClearMapping: (mapping: Record<string, any>, basePath?: string) => void;
|
|
144
|
+
getFormArrayModels: () => import("./types/form.types").FormArrayModel[];
|
|
145
|
+
normalizedData: import("vue").ComputedRef<Record<string, any>>;
|
|
146
|
+
getNormalizedData: (data: Record<string, any>, contextPath?: string, debugTag?: string) => Record<string, any>;
|
|
147
|
+
evaluateLogic: (rule: any, customData?: Record<string, any>, debugTag?: string, contextPath?: string) => any;
|
|
148
|
+
resolveActiveRule: (rules: any, data: Record<string, any>, debugTag: any, contextPath?: string) => any;
|
|
149
|
+
resolveValueIdentifier: (modelName: string, value: any, fieldOverride?: any, contextObj?: any) => any;
|
|
150
|
+
getFilteredItems: (field: any, customData?: Record<string, any>, contextPath?: string) => any[];
|
|
151
|
+
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
152
|
+
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
153
|
+
isFieldDisabled: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
154
|
+
isFieldReadonly: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
155
|
+
isFieldHidden: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
156
|
+
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
157
|
+
isSectionHidden: (section: any, customData?: Record<string, any>) => boolean;
|
|
158
|
+
resolveSectionLabels: (section: any) => {
|
|
159
|
+
title: any;
|
|
160
|
+
description: any;
|
|
161
|
+
};
|
|
162
|
+
resolveFieldLabels: (field: any, customData?: Record<string, any>) => any;
|
|
163
|
+
resolveFieldLength: (field: any, customData?: Record<string, any>) => any;
|
|
164
|
+
resolveDefaultValue: (field: any, customData?: Record<string, any>, contextPath?: string) => any;
|
|
165
|
+
getWizardTabs: (section: any) => any;
|
|
166
|
+
applyCalculations: () => void;
|
|
167
|
+
isSubmitDisabled: import("vue").ComputedRef<any>;
|
|
168
|
+
resolveSectionGridClass: (layout: any) => string;
|
|
169
|
+
resolveFieldColumnClass: (field: any, parentLayout?: string) => string;
|
|
170
|
+
t: import("vue-i18n").ComposerTranslation<{
|
|
171
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
172
|
+
}, string, import("@intlify/core-base").RemoveIndexSignature<{
|
|
173
|
+
[x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
|
|
174
|
+
}>, never, never, never>;
|
|
175
|
+
locale: import("vue").ComputedRef<string>;
|
|
176
|
+
i18nLocale: import("vue").WritableComputedRef<string, string>;
|
|
177
|
+
apiUrl: any;
|
|
178
|
+
router: any;
|
|
179
|
+
isSubmitting: import("vue").Ref<boolean, boolean>;
|
|
180
|
+
internalSchema: import("vue").Ref<any, any>;
|
|
181
|
+
activeSchema: import("vue").ComputedRef<any>;
|
|
182
|
+
resolvedBaseUrl: import("vue").ComputedRef<any>;
|
|
183
|
+
permissionBase: import("vue").ComputedRef<any>;
|
|
184
|
+
checkPermission: ((permission: string) => boolean) | undefined;
|
|
185
|
+
userPermissions: any;
|
|
186
|
+
selectedTokenCore: any;
|
|
187
|
+
radioGroups: import("vue").ComputedRef<Record<string, any[]>>;
|
|
188
|
+
confirmDialog: {
|
|
189
|
+
visible: boolean;
|
|
190
|
+
title: string;
|
|
191
|
+
message: string;
|
|
192
|
+
action: any;
|
|
193
|
+
showCancel?: boolean;
|
|
194
|
+
okText?: string;
|
|
195
|
+
cancelText?: string;
|
|
196
|
+
isBlocking?: boolean;
|
|
197
|
+
redirectUrl?: string;
|
|
198
|
+
};
|
|
199
|
+
fieldMap: import("vue").ComputedRef<FieldMap>;
|
|
200
|
+
rawItemsCache: Record<string, any[]>;
|
|
201
|
+
revision: import("vue").Ref<number, number>;
|
|
202
|
+
formData: Record<string, any>;
|
|
203
|
+
originalData: Record<string, any>;
|
|
204
|
+
errors: Record<string, string>;
|
|
205
|
+
touched: Record<string, boolean>;
|
|
206
|
+
isSubmitted: import("vue").Ref<boolean, boolean>;
|
|
207
|
+
fieldErrors: Record<string, string | null>;
|
|
208
|
+
inlineState: Record<string, boolean>;
|
|
209
|
+
wizardState: Record<string, number>;
|
|
210
|
+
wizardResponses: Record<string, any>;
|
|
211
|
+
sectionLoading: Record<string, boolean>;
|
|
212
|
+
fieldLoading: Record<string, boolean>;
|
|
213
|
+
sectionPagination: Record<string, {
|
|
214
|
+
page: number;
|
|
215
|
+
perPage: number;
|
|
216
|
+
totalData?: number;
|
|
217
|
+
maxPage?: number;
|
|
218
|
+
filters?: Record<string, any>;
|
|
219
|
+
}>;
|
|
220
|
+
validation: import("./types/form.types").ValidationComposables;
|
|
221
|
+
getSectionKey: typeof getSectionKey;
|
|
222
|
+
sortedFields: (fields: any[]) => any[];
|
|
223
|
+
prefetchFieldItems: (field: any, force?: boolean, contextPath?: string, localData?: any) => Promise<void>;
|
|
224
|
+
fetchFormData: (force?: boolean) => Promise<void>;
|
|
225
|
+
fetchSectionData: (sectionKey: string, sectionObj?: any, contextPathOverride?: string) => Promise<void>;
|
|
226
|
+
getDeepValue: (obj: any, path: string) => any;
|
|
227
|
+
setDeepValue: (obj: any, path: string, val: any) => void;
|
|
228
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare function getSectionKey(s: any): string;
|
|
2
|
+
export declare const getDeepValue: (obj: any, path: string) => any;
|
|
3
|
+
export declare const setDeepValue: (obj: any, path: string, val: any) => void;
|
|
4
|
+
export declare const deepRaw: (val: any) => any;
|
|
5
|
+
export declare const extractVars: (rule: any) => string[];
|
|
6
|
+
export declare const sortedFields: (fields: any[]) => any[];
|
|
7
|
+
export declare const flattenObject: (obj: any, res?: any, prefix?: string) => any;
|
|
8
|
+
export declare const findModelValue: (obj: any, model: string) => any;
|
|
9
|
+
export declare const mergeDeep: (target: any, source: any) => void;
|
|
10
|
+
export declare const resolveEndpointUrl: (url: string, baseUrl?: any) => string;
|
|
11
|
+
export declare const isRowEmpty: (row: any) => boolean;
|
|
12
|
+
export declare const paginationStorageKey: (sectionKey: string, apiUrl: string) => string;
|
|
13
|
+
export interface PaginationStorage {
|
|
14
|
+
load(key: string): any | null;
|
|
15
|
+
save(key: string, data: any): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const setPaginationStorage: (storage: PaginationStorage | null) => void;
|
|
19
|
+
export declare const loadStoredPagination: (sectionKey: string, apiUrl: string) => any | null;
|
|
20
|
+
export declare const saveStoredPagination: (sectionKey: string, apiUrl: string, data: any) => void;
|
|
21
|
+
export declare const clearPaginationCache: () => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { UseFormValidationOptions } from "../../../types/dynamic.types";
|
|
2
|
+
import { ValidationComposables } from "../types/form.types";
|
|
3
|
+
export declare function useFormValidation({ formData, locale, errors, fieldMap, activeSchema, isSectionVisible, isSectionHidden, isFieldVisible, isFieldRequired, resolveFieldLength, }: UseFormValidationOptions): ValidationComposables;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export type LoginPhase = 'verifying' | 'success' | 'error';
|
|
2
|
+
export interface AuthOverlayState {
|
|
3
|
+
isLoggingIn: boolean;
|
|
4
|
+
isLoggingOut: boolean;
|
|
5
|
+
loginPhase: LoginPhase;
|
|
6
|
+
loginTitle: string;
|
|
7
|
+
loginMessage: string;
|
|
8
|
+
loginUserName: string;
|
|
9
|
+
logoutTitle: string;
|
|
10
|
+
logoutMessage: string;
|
|
11
|
+
duration?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const authOverlayState: import("vue").Ref<{
|
|
14
|
+
isLoggingIn: boolean;
|
|
15
|
+
isLoggingOut: boolean;
|
|
16
|
+
loginPhase: LoginPhase;
|
|
17
|
+
loginTitle: string;
|
|
18
|
+
loginMessage: string;
|
|
19
|
+
loginUserName: string;
|
|
20
|
+
logoutTitle: string;
|
|
21
|
+
logoutMessage: string;
|
|
22
|
+
duration?: number | undefined;
|
|
23
|
+
}, AuthOverlayState | {
|
|
24
|
+
isLoggingIn: boolean;
|
|
25
|
+
isLoggingOut: boolean;
|
|
26
|
+
loginPhase: LoginPhase;
|
|
27
|
+
loginTitle: string;
|
|
28
|
+
loginMessage: string;
|
|
29
|
+
loginUserName: string;
|
|
30
|
+
logoutTitle: string;
|
|
31
|
+
logoutMessage: string;
|
|
32
|
+
duration?: number | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Start login transition overlay (phase: 'verifying' by default)
|
|
36
|
+
*/
|
|
37
|
+
export declare const startLoginTransition: (userName?: string, title?: string, message?: string, phase?: LoginPhase) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Set login success phase (animates checkmark & auto-progress bar without requiring click)
|
|
40
|
+
*/
|
|
41
|
+
export declare const setLoginSuccess: (userName?: string, title?: string, message?: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Close/end login transition overlay
|
|
44
|
+
*/
|
|
45
|
+
export declare const endLoginTransition: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Set login error phase with automatic progress bar countdown & auto-dismiss (no click needed)
|
|
48
|
+
*/
|
|
49
|
+
export declare const setLoginError: (message?: string, title?: string, duration?: number) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Start logout transition overlay (smooth exit door animation & auto progress bar)
|
|
52
|
+
*/
|
|
53
|
+
export declare const startLogout: (title?: string, message?: string) => void;
|
|
54
|
+
/**
|
|
55
|
+
* End logout transition overlay
|
|
56
|
+
*/
|
|
57
|
+
export declare const endLogout: () => void;
|
|
58
|
+
/**
|
|
59
|
+
* Composable helper
|
|
60
|
+
*/
|
|
61
|
+
export declare function useAuthOverlay(): {
|
|
62
|
+
state: import("vue").Ref<{
|
|
63
|
+
isLoggingIn: boolean;
|
|
64
|
+
isLoggingOut: boolean;
|
|
65
|
+
loginPhase: LoginPhase;
|
|
66
|
+
loginTitle: string;
|
|
67
|
+
loginMessage: string;
|
|
68
|
+
loginUserName: string;
|
|
69
|
+
logoutTitle: string;
|
|
70
|
+
logoutMessage: string;
|
|
71
|
+
duration?: number | undefined;
|
|
72
|
+
}, AuthOverlayState | {
|
|
73
|
+
isLoggingIn: boolean;
|
|
74
|
+
isLoggingOut: boolean;
|
|
75
|
+
loginPhase: LoginPhase;
|
|
76
|
+
loginTitle: string;
|
|
77
|
+
loginMessage: string;
|
|
78
|
+
loginUserName: string;
|
|
79
|
+
logoutTitle: string;
|
|
80
|
+
logoutMessage: string;
|
|
81
|
+
duration?: number | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
isVisible: import("vue").ComputedRef<boolean>;
|
|
84
|
+
isLoginMode: import("vue").ComputedRef<boolean>;
|
|
85
|
+
startLogin: (userName?: string, title?: string, message?: string, phase?: LoginPhase) => void;
|
|
86
|
+
setLoginSuccess: (userName?: string, title?: string, message?: string) => void;
|
|
87
|
+
setLoginError: (message?: string, title?: string, duration?: number) => void;
|
|
88
|
+
endLogin: () => void;
|
|
89
|
+
startLogout: (title?: string, message?: string) => void;
|
|
90
|
+
endLogout: () => void;
|
|
91
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type CSSProperties, type Ref } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* Smooth (animated) caret for single-line `<input>` elements.
|
|
4
|
+
*
|
|
5
|
+
* The native caret is hidden (via `caret-transparent`) and an overlay element
|
|
6
|
+
* glides between caret positions. The overlay must be rendered inside the
|
|
7
|
+
* input's parent element, and that parent must be `position: relative`.
|
|
8
|
+
*
|
|
9
|
+
* Password inputs are supported by calibrating the browser's mask glyph width.
|
|
10
|
+
* Falls back to the native caret when the input does not expose selection APIs
|
|
11
|
+
* (e.g. native `type="email"` — render it as `type="text"` + `inputmode="email"`).
|
|
12
|
+
* (e.g. native `type="email"` — render it as `type="text"` + `inputmode="email"`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function useSmoothCaret(inputRef: Ref<HTMLInputElement | HTMLTextAreaElement | null>, enabled: Ref<boolean>): {
|
|
15
|
+
caretStyle: import("vue").ComputedRef<CSSProperties>;
|
|
16
|
+
caretVisible: import("vue").ComputedRef<boolean>;
|
|
17
|
+
hideNativeCaret: import("vue").ComputedRef<boolean>;
|
|
18
|
+
isCaretMoving: Ref<boolean, boolean>;
|
|
19
|
+
caretAnimate: Ref<boolean, boolean>;
|
|
20
|
+
refreshCaret: () => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
export interface TemplateConfig {
|
|
3
|
+
endpoint?: {
|
|
4
|
+
apiUrl?: string;
|
|
5
|
+
apiMethod?: string;
|
|
6
|
+
params?: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
fileType?: string;
|
|
9
|
+
filename?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
labelID?: string;
|
|
12
|
+
labelEN?: string;
|
|
13
|
+
labelKR?: string;
|
|
14
|
+
titleID?: string;
|
|
15
|
+
titleEN?: string;
|
|
16
|
+
titleKR?: string;
|
|
17
|
+
descriptionID?: string;
|
|
18
|
+
descriptionEN?: string;
|
|
19
|
+
descriptionKR?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UseTemplateDownloadOptions {
|
|
22
|
+
template?: TemplateConfig;
|
|
23
|
+
locale: ComputedRef<string>;
|
|
24
|
+
apiUrl: any;
|
|
25
|
+
}
|
|
26
|
+
export declare function useTemplateDownload(options: UseTemplateDownloadOptions): {
|
|
27
|
+
isDownloading: import("vue").Ref<boolean, boolean>;
|
|
28
|
+
isExpanded: import("vue").Ref<boolean, boolean>;
|
|
29
|
+
downloadError: import("vue").Ref<string | null, string | null>;
|
|
30
|
+
hasTemplate: ComputedRef<boolean>;
|
|
31
|
+
resolvedIcon: ComputedRef<string>;
|
|
32
|
+
resolvedLabel: ComputedRef<string>;
|
|
33
|
+
resolvedTitle: ComputedRef<string>;
|
|
34
|
+
resolvedDescription: ComputedRef<string>;
|
|
35
|
+
toggleButtonText: ComputedRef<string>;
|
|
36
|
+
retryButtonText: ComputedRef<string>;
|
|
37
|
+
downloadTemplate: () => Promise<void>;
|
|
38
|
+
toggleExpanded: () => void;
|
|
39
|
+
clearError: () => void;
|
|
40
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
2
|
+
export interface ToastOptions {
|
|
3
|
+
type?: ToastType;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
immediate?: boolean;
|
|
9
|
+
showButton?: boolean;
|
|
10
|
+
onConfirm?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface ToastState {
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
type: ToastType;
|
|
15
|
+
title: string;
|
|
16
|
+
message: string;
|
|
17
|
+
confirmText?: string;
|
|
18
|
+
showButton?: boolean;
|
|
19
|
+
duration?: number;
|
|
20
|
+
onConfirm?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const toastState: import("vue").Ref<{
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
type: ToastType;
|
|
25
|
+
title: string;
|
|
26
|
+
message: string;
|
|
27
|
+
confirmText?: string | undefined;
|
|
28
|
+
showButton?: boolean | undefined;
|
|
29
|
+
duration?: number | undefined;
|
|
30
|
+
onConfirm?: (() => void) | undefined;
|
|
31
|
+
}, ToastState | {
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
type: ToastType;
|
|
34
|
+
title: string;
|
|
35
|
+
message: string;
|
|
36
|
+
confirmText?: string | undefined;
|
|
37
|
+
showButton?: boolean | undefined;
|
|
38
|
+
duration?: number | undefined;
|
|
39
|
+
onConfirm?: (() => void) | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Close the alert modal
|
|
43
|
+
*/
|
|
44
|
+
export declare const closeToast: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Show custom alert modal
|
|
47
|
+
*/
|
|
48
|
+
export declare const showToast: (options: ToastOptions) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Singleton toast object for direct import:
|
|
51
|
+
* import { toast } from '@skyworx/dynamic-ui'
|
|
52
|
+
*/
|
|
53
|
+
export declare const toast: {
|
|
54
|
+
success: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
55
|
+
error: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
56
|
+
warning: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
57
|
+
info: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
58
|
+
loading: (title?: string, message?: string) => void;
|
|
59
|
+
show: (options: ToastOptions) => void;
|
|
60
|
+
close: () => void;
|
|
61
|
+
remove: () => void;
|
|
62
|
+
clear: () => void;
|
|
63
|
+
clearAll: () => void;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Composable useToast()
|
|
67
|
+
*/
|
|
68
|
+
export declare function useToast(): {
|
|
69
|
+
success: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
70
|
+
error: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
71
|
+
warning: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
72
|
+
info: (titleOrMessage: string, messageOrTitle?: string, duration?: number, immediate?: boolean) => void;
|
|
73
|
+
loading: (title?: string, message?: string) => void;
|
|
74
|
+
show: (options: ToastOptions) => void;
|
|
75
|
+
close: () => void;
|
|
76
|
+
remove: () => void;
|
|
77
|
+
clear: () => void;
|
|
78
|
+
clearAll: () => void;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Compatibility exports for vue3-toastify
|
|
82
|
+
*/
|
|
83
|
+
export declare const dummyToastifyPlugin: {
|
|
84
|
+
install: () => void;
|
|
85
|
+
};
|
|
86
|
+
export default dummyToastifyPlugin;
|
|
87
|
+
export declare const Vue3Toastify: {
|
|
88
|
+
install: () => void;
|
|
89
|
+
};
|
|
90
|
+
export declare const ToastContainer: {
|
|
91
|
+
name: string;
|
|
92
|
+
render: () => null;
|
|
93
|
+
};
|