@skyworx/dynamic-ui 1.0.6 → 1.0.8
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 +40 -39
- package/dist/dynamic-ui.umd.js +71 -71
- package/dist/{index-DRu5RbX9.js → index-B1OvNFeR.js} +23103 -22872
- package/dist/index.d.ts +196 -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/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 +14 -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-C_PJEdl2.js → viewer-CiqlALNW.js} +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TooltipRootProps } from "reka-ui";
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
9
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TooltipContentProps } from "reka-ui";
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
type __VLS_Props = TooltipContentProps & {
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: Event) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
|
+
onPointerDownOutside?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
sideOffset: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TooltipProviderProps } from "reka-ui";
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TooltipTriggerProps } from "reka-ui";
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseFormActionsOptions } from "../../../types/dynamic.types.ts";
|
|
2
|
+
export declare function useFormActions({ state, props, emit, apiUrl, router, locale, mapping, validation, fieldMap, activeSchema, resolvedBaseUrl, resolveKeyParams, navigation, logic, }: UseFormActionsOptions): {
|
|
3
|
+
isActionVisible: (action: any) => boolean | undefined;
|
|
4
|
+
handleGlobalButtonClick: (action: any) => void;
|
|
5
|
+
confirmAction: () => void;
|
|
6
|
+
performAction: (action: any) => Promise<void>;
|
|
7
|
+
handleSubmit: () => Promise<void>;
|
|
8
|
+
handleCancel: () => any;
|
|
9
|
+
handleFieldUpdate: (model: string, value: any, sectionKey?: string) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initCustomOperators(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { UseFormLogicOptions } from "../../../types/dynamic.types";
|
|
2
|
+
export declare function useFormLogic({ formData, errors, fieldMap, rawItemsCache, activeSchema, locale, tableRowFormData, revealedSectionIds, revealedFieldModels, parentFormData: parentOption, rootFormData: rootOption, activeTableAction, activeTableRow, activeTableKey: activeTableKeyOption, tableRows: tableRowsOption, }: UseFormLogicOptions): {
|
|
3
|
+
normalizedData: import("vue").ComputedRef<Record<string, any>>;
|
|
4
|
+
getNormalizedData: (data: Record<string, any>, contextPath?: string, debugTag?: string) => Record<string, any>;
|
|
5
|
+
evaluateLogic: (rule: any, customData?: Record<string, any>, debugTag?: string, contextPath?: string) => any;
|
|
6
|
+
resolveActiveRule: (rules: any, data: Record<string, any>, debugTag: any, contextPath?: string) => any;
|
|
7
|
+
resolveValueIdentifier: (modelName: string, value: any, fieldOverride?: any, contextObj?: any) => any;
|
|
8
|
+
getFilteredItems: (field: any, customData?: Record<string, any>, contextPath?: string) => any[];
|
|
9
|
+
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
10
|
+
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
11
|
+
isFieldDisabled: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
12
|
+
isFieldReadonly: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
13
|
+
isFieldHidden: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
14
|
+
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
15
|
+
isSectionHidden: (section: any, customData?: Record<string, any>) => boolean;
|
|
16
|
+
resolveSectionLabels: (section: any) => {
|
|
17
|
+
title: any;
|
|
18
|
+
description: any;
|
|
19
|
+
};
|
|
20
|
+
resolveFieldLabels: (field: any, customData?: Record<string, any>) => any;
|
|
21
|
+
resolveFieldLength: (field: any, customData?: Record<string, any>) => any;
|
|
22
|
+
resolveDefaultValue: (field: any, customData?: Record<string, any>, contextPath?: string) => any;
|
|
23
|
+
getWizardTabs: (section: any) => any;
|
|
24
|
+
applyCalculations: () => void;
|
|
25
|
+
isSubmitDisabled: import("vue").ComputedRef<any>;
|
|
26
|
+
resolveSectionGridClass: (layout: any) => string;
|
|
27
|
+
resolveFieldColumnClass: (field: any, parentLayout?: string) => string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MappingComposables } from "../types/form.types";
|
|
2
|
+
import { UseFormMappingOptions } from "../../../types/dynamic.types";
|
|
3
|
+
export declare function useFormMapping({ formData, activeSchema, isSectionVisible, isFieldVisible, isFieldHidden, getWizardTabs, fieldMap, rawItemsCache, navigation, }: UseFormMappingOptions): MappingComposables;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation Types
|
|
3
|
+
* Type definitions for section navigation feature
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for back button appearance and behavior
|
|
7
|
+
*/
|
|
8
|
+
export interface BackButtonConfig {
|
|
9
|
+
labelEN?: string;
|
|
10
|
+
labelID?: string;
|
|
11
|
+
labelKR?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
variant?: string;
|
|
14
|
+
position?: 'left' | 'right';
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A single navigation rule with condition + target + hidden rules
|
|
18
|
+
*/
|
|
19
|
+
export interface NavigationRule {
|
|
20
|
+
id: string;
|
|
21
|
+
condition?: any;
|
|
22
|
+
targetSection: string;
|
|
23
|
+
hiddenRules: Record<string, boolean | any>;
|
|
24
|
+
parentRowContext?: {
|
|
25
|
+
parentArrayKey: string;
|
|
26
|
+
childArrayKey: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Configuration for navigation trigger on action buttons
|
|
31
|
+
* Supports both single-target (legacy) and multi-rule navigation
|
|
32
|
+
*/
|
|
33
|
+
export interface NavigationConfig {
|
|
34
|
+
targetSection: string;
|
|
35
|
+
hiddenRules: Record<string, boolean | any>;
|
|
36
|
+
condition?: any;
|
|
37
|
+
rules?: NavigationRule[];
|
|
38
|
+
enableBackButton?: boolean;
|
|
39
|
+
backButtonPosition?: 'header' | 'footer' | 'both';
|
|
40
|
+
backButtonConfig?: BackButtonConfig;
|
|
41
|
+
preserveData?: boolean;
|
|
42
|
+
parentRowContext?: {
|
|
43
|
+
parentArrayKey: string;
|
|
44
|
+
childArrayKey: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Item in navigation history stack
|
|
49
|
+
*/
|
|
50
|
+
export interface NavigationHistoryItem {
|
|
51
|
+
sectionKey: string;
|
|
52
|
+
hiddenStates: Record<string, boolean>;
|
|
53
|
+
timestamp: number;
|
|
54
|
+
sourceAction?: string;
|
|
55
|
+
context?: any;
|
|
56
|
+
backButtonConfig?: BackButtonConfig;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Current navigation state
|
|
60
|
+
*/
|
|
61
|
+
export interface NavigationState {
|
|
62
|
+
currentContext: string | null;
|
|
63
|
+
history: NavigationHistoryItem[];
|
|
64
|
+
hiddenStates: Record<string, boolean>;
|
|
65
|
+
navigationEnabled: Set<string>;
|
|
66
|
+
maxHistoryDepth: number;
|
|
67
|
+
parentRowContext?: {
|
|
68
|
+
parentArrayKey: string;
|
|
69
|
+
rowIndex: number;
|
|
70
|
+
childArrayKey: string;
|
|
71
|
+
} | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Options for useFormNavigation composable
|
|
75
|
+
*/
|
|
76
|
+
export interface UseFormNavigationOptions {
|
|
77
|
+
initialHiddenStates?: Record<string, boolean>;
|
|
78
|
+
maxHistoryDepth?: number;
|
|
79
|
+
debug?: boolean;
|
|
80
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useFormNavigation - Section Navigation State Management
|
|
3
|
+
* Handles navigation between sections with history stack and back button support
|
|
4
|
+
*/
|
|
5
|
+
import { Ref } from "vue";
|
|
6
|
+
import type { NavigationConfig, NavigationState, BackButtonConfig, UseFormNavigationOptions } from "./navigation.types";
|
|
7
|
+
export declare function useFormNavigation(options?: UseFormNavigationOptions, evaluateLogic?: (rule: any, data?: any) => any, lookupSection?: (sectionKey: string) => any): {
|
|
8
|
+
navigationState: Ref<{
|
|
9
|
+
currentContext: string | null;
|
|
10
|
+
history: {
|
|
11
|
+
sectionKey: string;
|
|
12
|
+
hiddenStates: Record<string, boolean>;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
sourceAction?: string | undefined;
|
|
15
|
+
context?: any;
|
|
16
|
+
backButtonConfig?: {
|
|
17
|
+
labelEN?: string | undefined;
|
|
18
|
+
labelID?: string | undefined;
|
|
19
|
+
labelKR?: string | undefined;
|
|
20
|
+
icon?: string | undefined;
|
|
21
|
+
variant?: string | undefined;
|
|
22
|
+
position?: "left" | "right" | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
hiddenStates: Record<string, boolean>;
|
|
26
|
+
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
27
|
+
maxHistoryDepth: number;
|
|
28
|
+
parentRowContext?: {
|
|
29
|
+
parentArrayKey: string;
|
|
30
|
+
rowIndex: number;
|
|
31
|
+
childArrayKey: string;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
}, NavigationState | {
|
|
34
|
+
currentContext: string | null;
|
|
35
|
+
history: {
|
|
36
|
+
sectionKey: string;
|
|
37
|
+
hiddenStates: Record<string, boolean>;
|
|
38
|
+
timestamp: number;
|
|
39
|
+
sourceAction?: string | undefined;
|
|
40
|
+
context?: any;
|
|
41
|
+
backButtonConfig?: {
|
|
42
|
+
labelEN?: string | undefined;
|
|
43
|
+
labelID?: string | undefined;
|
|
44
|
+
labelKR?: string | undefined;
|
|
45
|
+
icon?: string | undefined;
|
|
46
|
+
variant?: string | undefined;
|
|
47
|
+
position?: "left" | "right" | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
}[];
|
|
50
|
+
hiddenStates: Record<string, boolean>;
|
|
51
|
+
navigationEnabled: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
52
|
+
maxHistoryDepth: number;
|
|
53
|
+
parentRowContext?: {
|
|
54
|
+
parentArrayKey: string;
|
|
55
|
+
rowIndex: number;
|
|
56
|
+
childArrayKey: string;
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
hasHistory: import("vue").ComputedRef<boolean>;
|
|
60
|
+
currentContext: import("vue").ComputedRef<string | null>;
|
|
61
|
+
history: import("vue").ComputedRef<{
|
|
62
|
+
sectionKey: string;
|
|
63
|
+
hiddenStates: Record<string, boolean>;
|
|
64
|
+
timestamp: number;
|
|
65
|
+
sourceAction?: string | undefined;
|
|
66
|
+
context?: any;
|
|
67
|
+
backButtonConfig?: {
|
|
68
|
+
labelEN?: string | undefined;
|
|
69
|
+
labelID?: string | undefined;
|
|
70
|
+
labelKR?: string | undefined;
|
|
71
|
+
icon?: string | undefined;
|
|
72
|
+
variant?: string | undefined;
|
|
73
|
+
position?: "left" | "right" | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}[]>;
|
|
76
|
+
hiddenStates: import("vue").ComputedRef<{
|
|
77
|
+
[x: string]: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
parentRowContext: import("vue").ComputedRef<{
|
|
80
|
+
parentArrayKey: string;
|
|
81
|
+
rowIndex: number;
|
|
82
|
+
childArrayKey: string;
|
|
83
|
+
} | null | undefined>;
|
|
84
|
+
navigateTo: (config: NavigationConfig, context?: any) => void;
|
|
85
|
+
navigateBack: () => void;
|
|
86
|
+
applyHiddenRules: (rules: Record<string, boolean | any>, context?: any) => void;
|
|
87
|
+
getCurrentBackButton: () => BackButtonConfig | null;
|
|
88
|
+
isSectionHidden: (sectionKey: string) => boolean;
|
|
89
|
+
setSectionHidden: (sectionKey: string, hidden: boolean) => void;
|
|
90
|
+
clearHistory: () => void;
|
|
91
|
+
reset: () => void;
|
|
92
|
+
registerNavigationSection: (sectionKey: string) => void;
|
|
93
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseFormTableOptions } from "../../../types/dynamic.types";
|
|
2
|
+
export declare function useFormTable(options: UseFormTableOptions): {
|
|
3
|
+
tableDialogOpen: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
tableDialogTitle: import("vue").Ref<string, string>;
|
|
5
|
+
tableDialogIcon: import("vue").Ref<string, string>;
|
|
6
|
+
tableDialogFields: import("vue").Ref<any[], any[]>;
|
|
7
|
+
tableRowFormData: any;
|
|
8
|
+
tableRowErrors: Record<string, string>;
|
|
9
|
+
activeTableKey: import("vue").Ref<string, string>;
|
|
10
|
+
editingRowIndex: import("vue").Ref<number | null, number | null>;
|
|
11
|
+
tableDialogViewOnly: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
confirmDeletePending: import("vue").Ref<{
|
|
13
|
+
propsTable: any;
|
|
14
|
+
row: any;
|
|
15
|
+
} | null, {
|
|
16
|
+
propsTable: any;
|
|
17
|
+
row: any;
|
|
18
|
+
} | {
|
|
19
|
+
propsTable: any;
|
|
20
|
+
row: any;
|
|
21
|
+
} | null>;
|
|
22
|
+
confirmDeleteOpen: import("vue").Ref<boolean, boolean>;
|
|
23
|
+
tableDialogSize: import("vue").Ref<string, string>;
|
|
24
|
+
isTemporaryTable: (pt: any) => boolean;
|
|
25
|
+
isActionViewOnly: (action: any) => any;
|
|
26
|
+
tableRows: (pt: any) => any[];
|
|
27
|
+
resolveTableFields: (pt: any) => any[];
|
|
28
|
+
confirmTableDelete: (pt: any, row: any) => void;
|
|
29
|
+
executeTableDelete: () => void;
|
|
30
|
+
handleTableRowUpdate: (model: string, value: any) => void;
|
|
31
|
+
openTableRowDialog: (pt: any, tAction: any, rowData?: any) => void;
|
|
32
|
+
handleDataTableAction: (pt: any, payload: {
|
|
33
|
+
action: string;
|
|
34
|
+
row: any;
|
|
35
|
+
selection?: any[];
|
|
36
|
+
isLocalSave?: boolean;
|
|
37
|
+
modelDatatable?: string;
|
|
38
|
+
actionType?: string;
|
|
39
|
+
originalRow?: any;
|
|
40
|
+
rowIndex?: number | null;
|
|
41
|
+
}) => void;
|
|
42
|
+
saveTableRow: () => void;
|
|
43
|
+
};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
export interface DynamicFormProps {
|
|
3
|
+
schema: any;
|
|
4
|
+
model?: Record<string, any>;
|
|
5
|
+
isEditMode?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
selectedTokenCore?: any;
|
|
9
|
+
tokenCores?: any[];
|
|
10
|
+
dummyMode?: boolean;
|
|
11
|
+
router?: any;
|
|
12
|
+
permissionBase?: string;
|
|
13
|
+
userPermissions?: any;
|
|
14
|
+
checkPermission?: (permission: string) => boolean;
|
|
15
|
+
dynamicForm?: any;
|
|
16
|
+
hideActions?: boolean;
|
|
17
|
+
apiParams?: Record<string, any>;
|
|
18
|
+
}
|
|
19
|
+
export interface FormState {
|
|
20
|
+
revision: Ref<number>;
|
|
21
|
+
formData: Record<string, any>;
|
|
22
|
+
originalData: Record<string, any>;
|
|
23
|
+
tableRowFormData: Record<string, any>;
|
|
24
|
+
errors: Record<string, string>;
|
|
25
|
+
touched: Record<string, boolean>;
|
|
26
|
+
isSubmitted: Ref<boolean>;
|
|
27
|
+
fieldErrors: Record<string, string | null>;
|
|
28
|
+
wizardState: Record<string, number>;
|
|
29
|
+
inlineState: Record<string, boolean>;
|
|
30
|
+
isSubmitting: Ref<boolean>;
|
|
31
|
+
internalSchema: Ref<any>;
|
|
32
|
+
rawItemsCache: Record<string, any[]>;
|
|
33
|
+
revealedSectionIds: Record<string, boolean>;
|
|
34
|
+
revealedFieldModels: Record<string, boolean>;
|
|
35
|
+
wizardResponses: Record<string, any>;
|
|
36
|
+
sectionLoading: Record<string, boolean>;
|
|
37
|
+
fieldLoading: Record<string, boolean>;
|
|
38
|
+
sectionPagination: Record<string, {
|
|
39
|
+
page: number;
|
|
40
|
+
perPage: number;
|
|
41
|
+
totalData?: number;
|
|
42
|
+
maxPage?: number;
|
|
43
|
+
filters?: Record<string, any>;
|
|
44
|
+
}>;
|
|
45
|
+
confirmDialog: {
|
|
46
|
+
visible: boolean;
|
|
47
|
+
title: string;
|
|
48
|
+
message: string;
|
|
49
|
+
action: any;
|
|
50
|
+
showCancel?: boolean;
|
|
51
|
+
okText?: string;
|
|
52
|
+
cancelText?: string;
|
|
53
|
+
isBlocking?: boolean;
|
|
54
|
+
redirectUrl?: string;
|
|
55
|
+
};
|
|
56
|
+
activeTableAction?: Ref<any>;
|
|
57
|
+
activeTableKey?: Ref<string>;
|
|
58
|
+
}
|
|
59
|
+
export interface FieldMapEntry {
|
|
60
|
+
field: any;
|
|
61
|
+
path: string;
|
|
62
|
+
}
|
|
63
|
+
export interface FieldMap {
|
|
64
|
+
paths: Map<string, FieldMapEntry>;
|
|
65
|
+
models: Map<string, FieldMapEntry[]>;
|
|
66
|
+
}
|
|
67
|
+
export interface LogicComposables {
|
|
68
|
+
normalizedData: ComputedRef<any>;
|
|
69
|
+
getNormalizedData: (data: Record<string, any>, contextPath?: string) => any;
|
|
70
|
+
evaluateLogic: (rule: any, data: Record<string, any>, debugTag?: string, contextPath?: string) => any;
|
|
71
|
+
resolveActiveRule: (rules: any, data: Record<string, any>, debugTag: any, contextPath?: string) => any;
|
|
72
|
+
resolveValueIdentifier: (modelName: string, value: any, fieldOverride?: any, contextObj?: any) => any;
|
|
73
|
+
getFilteredItems: (field: any, customData?: Record<string, any>) => any[];
|
|
74
|
+
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
75
|
+
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
76
|
+
isFieldDisabled: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
77
|
+
isFieldReadonly: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
78
|
+
isFieldHidden: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
79
|
+
resolveSectionLabels: (section: any) => {
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
84
|
+
isSectionHidden: (section: any, customData?: Record<string, any>) => boolean;
|
|
85
|
+
resolveFieldLabels: (field: any, customData?: Record<string, any>) => any;
|
|
86
|
+
resolveFieldLength: (field: any, customData?: Record<string, any>) => any;
|
|
87
|
+
resolveDefaultValue: (field: any, customData?: Record<string, any>, contextPath?: string) => any;
|
|
88
|
+
getWizardTabs: (section: any) => any[];
|
|
89
|
+
applyCalculations: () => void;
|
|
90
|
+
isSubmitDisabled: ComputedRef<boolean>;
|
|
91
|
+
resolveSectionGridClass: (layout: any) => string;
|
|
92
|
+
resolveFieldColumnClass: (field: any, parentLayout?: string) => string;
|
|
93
|
+
}
|
|
94
|
+
export interface ValidationComposables {
|
|
95
|
+
validateField: (field: any, val: any, customData?: Record<string, any>) => string | null;
|
|
96
|
+
validateAll: () => boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface FormArrayModel {
|
|
99
|
+
key: string;
|
|
100
|
+
subFields: string[];
|
|
101
|
+
}
|
|
102
|
+
export interface MappingComposables {
|
|
103
|
+
getCleanPayload: () => Record<string, any>;
|
|
104
|
+
applyFieldMapping: (data: Record<string, any>, mapping: Record<string, any>) => Record<string, any>;
|
|
105
|
+
handleResponseMapping: (res: any, mapping: Record<string, any>, basePath?: string) => void;
|
|
106
|
+
handleClearMapping: (mapping: Record<string, any>, basePath?: string) => void;
|
|
107
|
+
getFormArrayModels: () => FormArrayModel[];
|
|
108
|
+
}
|
|
109
|
+
export interface UseFormWatcherOptions {
|
|
110
|
+
state: FormState;
|
|
111
|
+
props: DynamicFormProps;
|
|
112
|
+
emit: any;
|
|
113
|
+
logic: LogicComposables;
|
|
114
|
+
mapping: MappingComposables;
|
|
115
|
+
activeSchema: ComputedRef<any>;
|
|
116
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
117
|
+
prefetchFieldItems: (field: any, force?: boolean, contextPath?: string, localData?: any) => Promise<void>;
|
|
118
|
+
triggerFetchRule: (field: any, rule: any, contextPath?: string, localData?: any) => Promise<void>;
|
|
119
|
+
fetchSectionData: (sectionKey: string, sectionObj?: any, contextPathOverride?: string) => Promise<void>;
|
|
120
|
+
router?: any;
|
|
121
|
+
}
|
|
122
|
+
export interface UseFormActionsOptions {
|
|
123
|
+
state: FormState;
|
|
124
|
+
props: DynamicFormProps;
|
|
125
|
+
emit: any;
|
|
126
|
+
apiUrl: any;
|
|
127
|
+
router: any;
|
|
128
|
+
locale: ComputedRef<string>;
|
|
129
|
+
mapping: MappingComposables;
|
|
130
|
+
validation: ValidationComposables;
|
|
131
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
132
|
+
activeSchema: ComputedRef<any>;
|
|
133
|
+
resolvedBaseUrl: ComputedRef<string | undefined>;
|
|
134
|
+
resolveKeyParams?: any;
|
|
135
|
+
navigation?: any;
|
|
136
|
+
logic?: LogicComposables;
|
|
137
|
+
}
|
|
138
|
+
export interface UseFormLogicOptions {
|
|
139
|
+
formData: Record<string, any>;
|
|
140
|
+
tableRowFormData?: Record<string, any>;
|
|
141
|
+
errors: Record<string, string>;
|
|
142
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
143
|
+
rawItemsCache: Record<string, any[]>;
|
|
144
|
+
activeSchema: ComputedRef<any>;
|
|
145
|
+
locale: ComputedRef<string>;
|
|
146
|
+
revealedSectionIds?: Record<string, boolean>;
|
|
147
|
+
revealedFieldModels?: Record<string, boolean>;
|
|
148
|
+
parentFormData?: Record<string, any>;
|
|
149
|
+
rootFormData?: Record<string, any>;
|
|
150
|
+
activeTableAction?: Ref<any>;
|
|
151
|
+
activeTableRow?: Ref<any>;
|
|
152
|
+
activeTableKey?: Ref<string>;
|
|
153
|
+
tableRows?: ComputedRef<any[]> | Ref<any[]> | any[];
|
|
154
|
+
}
|
|
155
|
+
export interface UseFormMappingOptions {
|
|
156
|
+
formData: Record<string, any>;
|
|
157
|
+
activeSchema: ComputedRef<any>;
|
|
158
|
+
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
159
|
+
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
160
|
+
isFieldHidden: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
161
|
+
getWizardTabs: (section: any) => any[];
|
|
162
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
163
|
+
rawItemsCache: Record<string, any[]>;
|
|
164
|
+
navigation?: any;
|
|
165
|
+
}
|
|
166
|
+
export interface UseFormTableOptions {
|
|
167
|
+
formData: Record<string, any>;
|
|
168
|
+
validation: ValidationComposables;
|
|
169
|
+
locale: ComputedRef<string>;
|
|
170
|
+
emit: any;
|
|
171
|
+
mapping: MappingComposables;
|
|
172
|
+
logic?: any;
|
|
173
|
+
state?: any;
|
|
174
|
+
activeSchema?: ComputedRef<any>;
|
|
175
|
+
prefetchFieldItems?: (field: any, force?: boolean, contextPath?: string, localData?: any) => Promise<void>;
|
|
176
|
+
triggerFetchRule?: (field: any, rule: any, contextPath?: string, localData?: any) => Promise<void>;
|
|
177
|
+
navigation?: any;
|
|
178
|
+
}
|
|
179
|
+
export interface UseFormValidationOptions {
|
|
180
|
+
formData: Record<string, any>;
|
|
181
|
+
locale: ComputedRef<string>;
|
|
182
|
+
errors: Record<string, string>;
|
|
183
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
184
|
+
activeSchema: ComputedRef<any>;
|
|
185
|
+
isSectionVisible: (section: any, customData?: Record<string, any>) => boolean;
|
|
186
|
+
isSectionHidden?: (section: any, customData?: Record<string, any>) => boolean;
|
|
187
|
+
isFieldVisible: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
188
|
+
isFieldRequired: (field: any, customData?: Record<string, any>, contextPath?: string) => boolean;
|
|
189
|
+
resolveFieldLength: (field: any, customData?: Record<string, any>) => any;
|
|
190
|
+
}
|
|
191
|
+
export interface DynamicFormContext {
|
|
192
|
+
formData: Record<string, any>;
|
|
193
|
+
originalData: Record<string, any>;
|
|
194
|
+
locale: ComputedRef<string>;
|
|
195
|
+
errors: Record<string, string>;
|
|
196
|
+
isSubmitted: Ref<boolean>;
|
|
197
|
+
fieldMap: ComputedRef<FieldMap>;
|
|
198
|
+
activeSchema: ComputedRef<any>;
|
|
199
|
+
resolvedBaseUrl: ComputedRef<string | undefined>;
|
|
200
|
+
resolveKeyParams?: any;
|
|
201
|
+
navigation?: any;
|
|
202
|
+
}
|