@dasidev/dasi-ui 1.0.19 → 1.0.21
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 +6 -6
- package/dist/index.js +1 -1
- package/dist/types.js +1766 -1764
- package/package.json +2 -3
- package/template/index.html +0 -18
- package/template/package.json.template +0 -100
- package/template/postcss.config.js +0 -0
- package/template/public/favicon.ico +0 -0
- package/template/public/img/brand/ic_pln.svg +0 -12
- package/template/public/img/brand/mapp_power_logo.svg +0 -21
- package/template/public/img/common/pltu_ulumbu_flores_ntt.jpeg +0 -0
- package/template/public/scripts/pdf.worker.min.js +0 -29
- package/template/public/scripts/pdf.worker.min.mjs +0 -29
- package/template/public/scripts/pdf.worker.mjs +0 -57722
- package/template/public/scripts/pdf.worker.mjs.map +0 -1
- package/template/src/App.vue +0 -17
- package/template/src/__tests__/index.test.ts +0 -9
- package/template/src/api/api.ts +0 -117
- package/template/src/assets/app-selector.svg +0 -3
- package/template/src/assets/dasi.png +0 -0
- package/template/src/assets/foto_ss.svg +0 -21
- package/template/src/assets/icons/circle-blue.svg +0 -4
- package/template/src/assets/icons/circle-gray.svg +0 -15
- package/template/src/assets/icons/circle-green.svg +0 -4
- package/template/src/assets/icons/circle-orange.svg +0 -4
- package/template/src/assets/icons/circle-purple.svg +0 -4
- package/template/src/assets/icons/circle-red.svg +0 -15
- package/template/src/assets/icons/harbor.svg +0 -12
- package/template/src/assets/icons/ic-box-red.svg +0 -8
- package/template/src/assets/icons/ic-chevron-right.svg +0 -1
- package/template/src/assets/icons/ic-loading.svg +0 -9
- package/template/src/assets/icons/ic-reset.svg +0 -16
- package/template/src/assets/icons/ic-sailing.svg +0 -5
- package/template/src/assets/icons/icon-app-selector.svg +0 -3
- package/template/src/assets/icons/icon-browser-check.svg +0 -4
- package/template/src/assets/icons/icon-calendar.svg +0 -3
- package/template/src/assets/icons/icon-chart-bar.svg +0 -3
- package/template/src/assets/icons/icon-chart-doc.svg +0 -16
- package/template/src/assets/icons/icon-chart-line.svg +0 -10
- package/template/src/assets/icons/icon-chart-mix.svg +0 -15
- package/template/src/assets/icons/icon-chart-pie.svg +0 -11
- package/template/src/assets/icons/icon-continue.svg +0 -12
- package/template/src/assets/icons/icon-dashboard-2.svg +0 -17
- package/template/src/assets/icons/icon-dashboard.svg +0 -3
- package/template/src/assets/icons/icon-data-kelistrikan.svg +0 -19
- package/template/src/assets/icons/icon-data-sentral.svg +0 -11
- package/template/src/assets/icons/icon-database.svg +0 -5
- package/template/src/assets/icons/icon-desktop.svg +0 -3
- package/template/src/assets/icons/icon-download.svg +0 -13
- package/template/src/assets/icons/icon-energi-primer.svg +0 -12
- package/template/src/assets/icons/icon-faba-apk2.svg +0 -11
- package/template/src/assets/icons/icon-faba.svg +0 -11
- package/template/src/assets/icons/icon-factory.svg +0 -14
- package/template/src/assets/icons/icon-globe-doc.svg +0 -19
- package/template/src/assets/icons/icon-ikk.svg +0 -10
- package/template/src/assets/icons/icon-kbb.svg +0 -13
- package/template/src/assets/icons/icon-kos.svg +0 -16
- package/template/src/assets/icons/icon-kpi-bod.svg +0 -15
- package/template/src/assets/icons/icon-kss.svg +0 -14
- package/template/src/assets/icons/icon-map.svg +0 -12
- package/template/src/assets/icons/icon-monitoring-harian.svg +0 -13
- package/template/src/assets/icons/icon-notification.svg +0 -4
- package/template/src/assets/icons/icon-overview.svg +0 -17
- package/template/src/assets/icons/icon-pltu.svg +0 -13
- package/template/src/assets/icons/icon-sebaran-sentral.svg +0 -12
- package/template/src/assets/icons/icon-select-data-kelistrikan.svg +0 -19
- package/template/src/assets/icons/icon-select-data-sentral.svg +0 -11
- package/template/src/assets/icons/icon-select-energi-primer.svg +0 -12
- package/template/src/assets/icons/icon-select-faba-apk2.svg +0 -11
- package/template/src/assets/icons/icon-select-ikk.svg +0 -10
- package/template/src/assets/icons/icon-select-kbb.svg +0 -13
- package/template/src/assets/icons/icon-select-kos.svg +0 -16
- package/template/src/assets/icons/icon-select-kpi-bod.svg +0 -15
- package/template/src/assets/icons/icon-select-kss.svg +0 -14
- package/template/src/assets/icons/icon-select-monitoring-harian.svg +0 -13
- package/template/src/assets/icons/icon-select-overview.svg +0 -17
- package/template/src/assets/icons/icon-select-sebaran-sentral.svg +0 -12
- package/template/src/assets/icons/icon-sentral-white.svg +0 -13
- package/template/src/assets/icons/icon-shipping.svg +0 -5
- package/template/src/assets/icons/icon-sort.svg +0 -5
- package/template/src/assets/icons/icon-tree-box.svg +0 -14
- package/template/src/assets/icons/icon-warehouse.svg +0 -12
- package/template/src/assets/icons/pin-green.svg +0 -3
- package/template/src/assets/icons/pin-orange.svg +0 -3
- package/template/src/assets/icons/pin-purple.svg +0 -3
- package/template/src/assets/icons/ship.svg +0 -3
- package/template/src/assets/icons/shipment/icon-antri.svg +0 -15
- package/template/src/assets/icons/shipment/icon-bongkar.svg +0 -4
- package/template/src/assets/icons/shipment/icon-invoice.svg +0 -6
- package/template/src/assets/icons/shipment/icon-loading.svg +0 -8
- package/template/src/assets/icons/shipment/icon-pembayaran.svg +0 -13
- package/template/src/assets/icons/shipment/icon-pengiriman.svg +0 -4
- package/template/src/assets/icons/shipment/icon-sailing.svg +0 -4
- package/template/src/assets/icons/shipment/icon-shipment-completed.svg +0 -6
- package/template/src/assets/icons/shipment/icon-shipment-in-progress.svg +0 -6
- package/template/src/assets/icons/shipment/icon-shipment-over-sla.svg +0 -6
- package/template/src/assets/icons/shipment/icon-spt.svg +0 -4
- package/template/src/assets/icons/shipment/icon-total-shipment.svg +0 -4
- package/template/src/assets/icons/upload_doc_icon.svg +0 -42
- package/template/src/assets/icons/upload_icon_blue.svg +0 -14
- package/template/src/assets/login-bg-day-min.jpg +0 -0
- package/template/src/assets/login-bg-night-min.jpg +0 -0
- package/template/src/assets/login-bg.jpg +0 -0
- package/template/src/assets/login-day.png +0 -0
- package/template/src/assets/login-night.png +0 -0
- package/template/src/assets/lucide-circle-plus-blue.svg +0 -1
- package/template/src/assets/pdf-logo.svg +0 -11
- package/template/src/assets/pemasok-card-bg.svg +0 -6
- package/template/src/assets/success_animation.gif +0 -0
- package/template/src/assets/success_animation.mp4 +0 -0
- package/template/src/assets/success_animation.webm +0 -0
- package/template/src/components/button/BtnAddOutline.vue +0 -14
- package/template/src/components/button/BtnCircle.vue +0 -10
- package/template/src/components/button/BtnOutline.vue +0 -15
- package/template/src/components/button/BtnPrimary.vue +0 -25
- package/template/src/components/button/BtnSecondary.vue +0 -26
- package/template/src/components/detail/AccountDetailTimeline.vue +0 -144
- package/template/src/components/detail/ApprovalInfo.vue +0 -288
- package/template/src/components/detail/DCI2.vue +0 -164
- package/template/src/components/detail/DetailContentHeader.vue +0 -83
- package/template/src/components/detail/DetailContentItem.vue +0 -186
- package/template/src/components/detail/DetailContentItems.vue +0 -387
- package/template/src/components/detail/DetailContentLoading.vue +0 -12
- package/template/src/components/detail/DetailContentTablet.vue +0 -10
- package/template/src/components/detail/DetailSheet.vue +0 -294
- package/template/src/components/detail/DetailTimeline.vue +0 -191
- package/template/src/components/detail/DocApprovalDialog.vue +0 -29
- package/template/src/components/detail/DocViewerContent.vue +0 -991
- package/template/src/components/dialog/ConfirmDialog.vue +0 -96
- package/template/src/components/dialog/DialogBase.vue +0 -53
- package/template/src/components/dialog/DialogSelect.vue +0 -212
- package/template/src/components/dialog/ErrorDialog.vue +0 -63
- package/template/src/components/dialog/FormDialog.vue +0 -141
- package/template/src/components/dialog/FormInputerDialog.vue +0 -91
- package/template/src/components/dialog/InfoDialog.vue +0 -74
- package/template/src/components/dialog/SuccessDialog.vue +0 -50
- package/template/src/components/examples/TestSchemaExample.vue +0 -288
- package/template/src/components/forms/auth/LoginForm.vue +0 -806
- package/template/src/components/forms/auth/PwdScore.vue +0 -68
- package/template/src/components/helper/ApiTester.vue +0 -153
- package/template/src/components/helper/ChangePwd.vue +0 -149
- package/template/src/components/helper/CheckboxElement.vue +0 -43
- package/template/src/components/helper/ConfigSwitcher.vue +0 -54
- package/template/src/components/helper/Copyright.vue +0 -10
- package/template/src/components/helper/ErrorScreen.vue +0 -40
- package/template/src/components/helper/LucideIcon.vue +0 -27
- package/template/src/components/helper/PdfViewer.vue +0 -103
- package/template/src/components/helper/PinInputer.vue +0 -205
- package/template/src/components/helper/PrivacyPolicy.vue +0 -122
- package/template/src/components/layout/PageActivityHeader.vue +0 -48
- package/template/src/components/layout/PageHeader.vue +0 -69
- package/template/src/components/loadings/LoadingDialog.vue +0 -29
- package/template/src/components/loadings/LoadingDialogSpin.vue +0 -25
- package/template/src/components/loadings/LoadingIndicator.vue +0 -38
- package/template/src/components/loadings/LoadingScreen.vue +0 -23
- package/template/src/components/notif/Notif.vue +0 -102
- package/template/src/components/notif/NotifItem.vue +0 -40
- package/template/src/components/pages/Header.vue +0 -431
- package/template/src/components/pages/Leftbar.vue +0 -417
- package/template/src/components/pages/PageActivity.vue +0 -108
- package/template/src/components/pages/PageActivityContent.vue +0 -597
- package/template/src/components/pages/PageContentTable.vue +0 -589
- package/template/src/components/pages/PageTab.vue +0 -84
- package/template/src/components/selector/BaseSelector.vue +0 -1136
- package/template/src/components/selector/ConfigDataSelector.vue +0 -136
- package/template/src/components/settings/SettingsItem.vue +0 -38
- package/template/src/components/tab/TabView.vue +0 -11
- package/template/src/components/tab/TabViewItem.vue +0 -18
- package/template/src/components/tab/TabViewItemBar.vue +0 -9
- package/template/src/components/tables/CellHover.vue +0 -65
- package/template/src/components/tables/DashboardDataTable.vue +0 -707
- package/template/src/components/tables/DataStatusTag.vue +0 -52
- package/template/src/components/tables/DataTable.vue +0 -156
- package/template/src/components/tables/DataTableAccordion.vue +0 -249
- package/template/src/components/tables/DataTableActionRow.vue +0 -64
- package/template/src/components/tables/DataTableCell.vue +0 -271
- package/template/src/components/tables/DataTableHeader.vue +0 -60
- package/template/src/components/tables/DataTableRow.vue +0 -213
- package/template/src/components/tables/ExpandedTable.vue +0 -259
- package/template/src/components/tables/PageTable.vue +0 -73
- package/template/src/components/tables/Pagination.vue +0 -98
- package/template/src/components/tables/dropdown/BaseDropdownTable.vue +0 -140
- package/template/src/components/tables/dropdown/DropdownTableActivity.vue +0 -33
- package/template/src/components/tables/dropdown/DropdownTableAsset.vue +0 -30
- package/template/src/components/tables/dropdown/DropdownTableConfig.vue +0 -30
- package/template/src/components/tables/dropdown/DropdownTableDataKonektor.vue +0 -31
- package/template/src/components/tables/dropdown/DropdownTableDataLabel.vue +0 -30
- package/template/src/components/tables/dropdown/DropdownTableDataSchema.vue +0 -31
- package/template/src/components/tables/dropdown/DropdownTableFabaPemanfaat.vue +0 -30
- package/template/src/components/tables/dropdown/DropdownTableGroup.vue +0 -36
- package/template/src/components/tables/dropdown/DropdownTableHalaman.vue +0 -33
- package/template/src/components/tables/dropdown/DropdownTableLevel.vue +0 -66
- package/template/src/components/tables/dropdown/DropdownTableOrganization.vue +0 -47
- package/template/src/components/tables/dropdown/DropdownTablePengelola.vue +0 -28
- package/template/src/components/tables/dropdown/DropdownTableQueryLayer.vue +0 -29
- package/template/src/components/tables/dropdown/DropdownTableSentral.vue +0 -33
- package/template/src/components/tables/dropdown/DropdownTableWarehouse.vue +0 -30
- package/template/src/components/tables/dropdown/TableDropdown.vue +0 -52
- package/template/src/components/ui/accordion/Accordion.vue +0 -19
- package/template/src/components/ui/accordion/AccordionContent.vue +0 -24
- package/template/src/components/ui/accordion/AccordionItem.vue +0 -24
- package/template/src/components/ui/accordion/AccordionTrigger.vue +0 -41
- package/template/src/components/ui/accordion/index.ts +0 -4
- package/template/src/components/ui/alert-dialog/AlertDialog.vue +0 -14
- package/template/src/components/ui/alert-dialog/AlertDialogAction.vue +0 -20
- package/template/src/components/ui/alert-dialog/AlertDialogCancel.vue +0 -20
- package/template/src/components/ui/alert-dialog/AlertDialogContent.vue +0 -42
- package/template/src/components/ui/alert-dialog/AlertDialogDescription.vue +0 -25
- package/template/src/components/ui/alert-dialog/AlertDialogFooter.vue +0 -21
- package/template/src/components/ui/alert-dialog/AlertDialogHeader.vue +0 -16
- package/template/src/components/ui/alert-dialog/AlertDialogTitle.vue +0 -22
- package/template/src/components/ui/alert-dialog/AlertDialogTrigger.vue +0 -11
- package/template/src/components/ui/alert-dialog/index.ts +0 -9
- package/template/src/components/ui/avatar/Avatar.vue +0 -24
- package/template/src/components/ui/avatar/AvatarFallback.vue +0 -11
- package/template/src/components/ui/avatar/AvatarImage.vue +0 -9
- package/template/src/components/ui/avatar/UsersAvatar.vue +0 -27
- package/template/src/components/ui/avatar/index.ts +0 -24
- package/template/src/components/ui/button/Button.vue +0 -27
- package/template/src/components/ui/button/index.ts +0 -34
- package/template/src/components/ui/calendar/Calendar.vue +0 -325
- package/template/src/components/ui/calendar/index.ts +0 -22
- package/template/src/components/ui/checkbox/Checkbox.vue +0 -33
- package/template/src/components/ui/checkbox/index.ts +0 -1
- package/template/src/components/ui/command/Command.vue +0 -30
- package/template/src/components/ui/command/CommandDialog.vue +0 -21
- package/template/src/components/ui/command/CommandEmpty.vue +0 -20
- package/template/src/components/ui/command/CommandGroup.vue +0 -29
- package/template/src/components/ui/command/CommandInput.vue +0 -33
- package/template/src/components/ui/command/CommandItem.vue +0 -26
- package/template/src/components/ui/command/CommandList.vue +0 -27
- package/template/src/components/ui/command/CommandSeparator.vue +0 -23
- package/template/src/components/ui/command/CommandShortcut.vue +0 -14
- package/template/src/components/ui/command/index.ts +0 -9
- package/template/src/components/ui/context-menu/ContextMenu.vue +0 -15
- package/template/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +0 -40
- package/template/src/components/ui/context-menu/ContextMenuContent.vue +0 -36
- package/template/src/components/ui/context-menu/ContextMenuGroup.vue +0 -11
- package/template/src/components/ui/context-menu/ContextMenuItem.vue +0 -34
- package/template/src/components/ui/context-menu/ContextMenuLabel.vue +0 -25
- package/template/src/components/ui/context-menu/ContextMenuPortal.vue +0 -11
- package/template/src/components/ui/context-menu/ContextMenuRadioGroup.vue +0 -19
- package/template/src/components/ui/context-menu/ContextMenuRadioItem.vue +0 -40
- package/template/src/components/ui/context-menu/ContextMenuSeparator.vue +0 -20
- package/template/src/components/ui/context-menu/ContextMenuShortcut.vue +0 -14
- package/template/src/components/ui/context-menu/ContextMenuSub.vue +0 -19
- package/template/src/components/ui/context-menu/ContextMenuSubContent.vue +0 -35
- package/template/src/components/ui/context-menu/ContextMenuSubTrigger.vue +0 -34
- package/template/src/components/ui/context-menu/ContextMenuTrigger.vue +0 -13
- package/template/src/components/ui/context-menu/index.ts +0 -14
- package/template/src/components/ui/datetime/DatetimeRangeComponent.vue +0 -52
- package/template/src/components/ui/dialog/Dialog.vue +0 -14
- package/template/src/components/ui/dialog/DialogClose.vue +0 -11
- package/template/src/components/ui/dialog/DialogContent.vue +0 -53
- package/template/src/components/ui/dialog/DialogDescription.vue +0 -24
- package/template/src/components/ui/dialog/DialogFooter.vue +0 -19
- package/template/src/components/ui/dialog/DialogHeader.vue +0 -16
- package/template/src/components/ui/dialog/DialogScrollContent.vue +0 -59
- package/template/src/components/ui/dialog/DialogTitle.vue +0 -29
- package/template/src/components/ui/dialog/DialogTrigger.vue +0 -11
- package/template/src/components/ui/dialog/index.ts +0 -9
- package/template/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -14
- package/template/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -40
- package/template/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -38
- package/template/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -11
- package/template/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -28
- package/template/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -24
- package/template/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -19
- package/template/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -41
- package/template/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -22
- package/template/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -14
- package/template/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -19
- package/template/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -30
- package/template/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -33
- package/template/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -13
- package/template/src/components/ui/dropdown-menu/index.ts +0 -16
- package/template/src/components/ui/form/FormControl.vue +0 -16
- package/template/src/components/ui/form/FormDescription.vue +0 -20
- package/template/src/components/ui/form/FormItem.vue +0 -25
- package/template/src/components/ui/form/FormLabel.vue +0 -23
- package/template/src/components/ui/form/FormMessage.vue +0 -16
- package/template/src/components/ui/form/index.ts +0 -6
- package/template/src/components/ui/form/useFormField.ts +0 -30
- package/template/src/components/ui/hover-card/HoverCard.vue +0 -14
- package/template/src/components/ui/hover-card/HoverCardContent.vue +0 -41
- package/template/src/components/ui/hover-card/HoverCardTrigger.vue +0 -11
- package/template/src/components/ui/hover-card/index.ts +0 -3
- package/template/src/components/ui/input/Input.vue +0 -24
- package/template/src/components/ui/input/index.ts +0 -1
- package/template/src/components/ui/label/Label.vue +0 -27
- package/template/src/components/ui/label/index.ts +0 -1
- package/template/src/components/ui/pagination/PaginationEllipsis.vue +0 -22
- package/template/src/components/ui/pagination/PaginationFirst.vue +0 -29
- package/template/src/components/ui/pagination/PaginationLast.vue +0 -29
- package/template/src/components/ui/pagination/PaginationNext.vue +0 -29
- package/template/src/components/ui/pagination/PaginationPrev.vue +0 -29
- package/template/src/components/ui/pagination/index.ts +0 -10
- package/template/src/components/ui/pin-input/PinInput.vue +0 -23
- package/template/src/components/ui/pin-input/PinInputGroup.vue +0 -18
- package/template/src/components/ui/pin-input/PinInputInput.vue +0 -18
- package/template/src/components/ui/pin-input/PinInputSeparator.vue +0 -15
- package/template/src/components/ui/pin-input/index.ts +0 -4
- package/template/src/components/ui/popover/Popover.vue +0 -15
- package/template/src/components/ui/popover/PopoverContent.vue +0 -48
- package/template/src/components/ui/popover/PopoverTrigger.vue +0 -11
- package/template/src/components/ui/popover/index.ts +0 -4
- package/template/src/components/ui/preview/PreviewPdf.vue +0 -118
- package/template/src/components/ui/progress/ProgressCircle.vue +0 -27
- package/template/src/components/ui/progress/SemiCircularProgressBar.vue +0 -83
- package/template/src/components/ui/progress/TotalCalories.vue +0 -31
- package/template/src/components/ui/radio-group/RadioGroup.vue +0 -25
- package/template/src/components/ui/radio-group/RadioGroupItem.vue +0 -37
- package/template/src/components/ui/radio-group/index.ts +0 -2
- package/template/src/components/ui/scroll-area/ScrollArea.vue +0 -29
- package/template/src/components/ui/scroll-area/ScrollBar.vue +0 -30
- package/template/src/components/ui/scroll-area/index.ts +0 -2
- package/template/src/components/ui/select/Select.vue +0 -15
- package/template/src/components/ui/select/SelectContent.vue +0 -52
- package/template/src/components/ui/select/SelectGroup.vue +0 -19
- package/template/src/components/ui/select/SelectInline.vue +0 -84
- package/template/src/components/ui/select/SelectItem.vue +0 -44
- package/template/src/components/ui/select/SelectItemText.vue +0 -11
- package/template/src/components/ui/select/SelectLabel.vue +0 -13
- package/template/src/components/ui/select/SelectScrollDownButton.vue +0 -24
- package/template/src/components/ui/select/SelectScrollUpButton.vue +0 -24
- package/template/src/components/ui/select/SelectSeparator.vue +0 -17
- package/template/src/components/ui/select/SelectTrigger.vue +0 -31
- package/template/src/components/ui/select/SelectTriggerCustom.vue +0 -23
- package/template/src/components/ui/select/SelectValue.vue +0 -11
- package/template/src/components/ui/select/index.ts +0 -12
- package/template/src/components/ui/separator/Separator.vue +0 -20
- package/template/src/components/ui/separator/index.ts +0 -1
- package/template/src/components/ui/sheet/Sheet.vue +0 -14
- package/template/src/components/ui/sheet/SheetClose.vue +0 -11
- package/template/src/components/ui/sheet/SheetContent.vue +0 -48
- package/template/src/components/ui/sheet/SheetDescription.vue +0 -22
- package/template/src/components/ui/sheet/SheetFooter.vue +0 -19
- package/template/src/components/ui/sheet/SheetHeader.vue +0 -16
- package/template/src/components/ui/sheet/SheetTitle.vue +0 -22
- package/template/src/components/ui/sheet/SheetTrigger.vue +0 -11
- package/template/src/components/ui/sheet/index.ts +0 -31
- package/template/src/components/ui/skeleton/Skeleton.vue +0 -28
- package/template/src/components/ui/skeleton/index.ts +0 -1
- package/template/src/components/ui/sonner/Sonner.vue +0 -22
- package/template/src/components/ui/sonner/index.ts +0 -1
- package/template/src/components/ui/star/StarRating.vue +0 -19
- package/template/src/components/ui/switch/Switch.vue +0 -37
- package/template/src/components/ui/switch/index.ts +0 -1
- package/template/src/components/ui/table/Table.vue +0 -16
- package/template/src/components/ui/table/TableBody.vue +0 -14
- package/template/src/components/ui/table/TableCaption.vue +0 -14
- package/template/src/components/ui/table/TableCell.vue +0 -21
- package/template/src/components/ui/table/TableEmpty.vue +0 -37
- package/template/src/components/ui/table/TableFooter.vue +0 -14
- package/template/src/components/ui/table/TableHead.vue +0 -14
- package/template/src/components/ui/table/TableHeader.vue +0 -14
- package/template/src/components/ui/table/TableRow.vue +0 -14
- package/template/src/components/ui/table/index.ts +0 -8
- package/template/src/components/ui/tabs/Tabs.vue +0 -15
- package/template/src/components/ui/tabs/TabsContent.vue +0 -22
- package/template/src/components/ui/tabs/TabsList.vue +0 -25
- package/template/src/components/ui/tabs/TabsTrigger.vue +0 -27
- package/template/src/components/ui/tabs/index.ts +0 -4
- package/template/src/components/ui/tags-input/TagsInput.vue +0 -22
- package/template/src/components/ui/tags-input/TagsInputInput.vue +0 -19
- package/template/src/components/ui/tags-input/TagsInputItem.vue +0 -22
- package/template/src/components/ui/tags-input/TagsInputItemDelete.vue +0 -24
- package/template/src/components/ui/tags-input/TagsInputItemText.vue +0 -19
- package/template/src/components/ui/tags-input/index.ts +0 -5
- package/template/src/components/ui/textarea/Textarea.vue +0 -24
- package/template/src/components/ui/textarea/index.ts +0 -1
- package/template/src/components/ui/tooltip/Tooltip.vue +0 -14
- package/template/src/components/ui/tooltip/TooltipContent.vue +0 -31
- package/template/src/components/ui/tooltip/TooltipProvider.vue +0 -11
- package/template/src/components/ui/tooltip/TooltipTrigger.vue +0 -11
- package/template/src/components/ui/tooltip/index.ts +0 -4
- package/template/src/composables/useAppConfig.ts +0 -332
- package/template/src/composables/useDarkMode.ts +0 -71
- package/template/src/config/app.config.ts +0 -318
- package/template/src/config/examples/ecommerce.config.ts +0 -132
- package/template/src/config/examples/generic.config.ts +0 -132
- package/template/src/config/menu.config.ts +0 -149
- package/template/src/config/my-app.config.ts +0 -134
- package/template/src/config/test-config.ts +0 -31
- package/template/src/config/theme.config.ts +0 -250
- package/template/src/docs/index.ts +0 -21
- package/template/src/docs.scss +0 -403
- package/template/src/index.d.ts +0 -5
- package/template/src/index.ts +0 -20
- package/template/src/layouts/AuthLayout.vue +0 -68
- package/template/src/layouts/DefaultLayout.vue +0 -119
- package/template/src/layouts/DocsLayout.vue +0 -681
- package/template/src/layouts/FormGlobal.vue +0 -50
- package/template/src/layouts/GlobalDialog.vue +0 -122
- package/template/src/layouts/RakorConfirmDialog.vue +0 -95
- package/template/src/layouts/SettingsLayout.vue +0 -115
- package/template/src/lib/constants.ts +0 -2
- package/template/src/lib/detail.utils.ts +0 -213
- package/template/src/lib/form.utils.ts +0 -1009
- package/template/src/lib/page.flow.utils.ts +0 -81
- package/template/src/lib/page.utils.ts +0 -864
- package/template/src/lib/performance.utils.ts +0 -302
- package/template/src/lib/tablerow.utils.ts +0 -51
- package/template/src/lib/utils.ts +0 -643
- package/template/src/main.scss +0 -717
- package/template/src/main.ts +0 -74
- package/template/src/menu.ts +0 -78
- package/template/src/nestedlist_color.scss +0 -161
- package/template/src/router/index.ts +0 -91
- package/template/src/stores/auth.ts +0 -117
- package/template/src/stores/counter.ts +0 -12
- package/template/src/stores/dialog.ts +0 -168
- package/template/src/stores/form.ts +0 -103
- package/template/src/stores/tabs.ts +0 -52
- package/template/src/tw.scss +0 -419
- package/template/src/types/form.types.ts +0 -348
- package/template/src/types/types.ts +0 -7
- package/template/src/utils/config.utils.ts +0 -149
- package/template/src/views/NotFound.vue +0 -30
- package/template/src/views/PageActivity.vue +0 -15
- package/template/src/views/auth/LoginView.vue +0 -8
- package/template/src/views/auth/OauthCallback.vue +0 -101
- package/template/src/views/dashboard/index.vue +0 -16
- package/template/src/views/settings/AccountSettingsView.vue +0 -58
- package/template/src/views/settings/AuditLogsSettingsView.vue +0 -116
- package/template/src/views/settings/DeviceSettingsView.vue +0 -70
- package/template/src/views/settings/MainSettingsView.vue +0 -12
- package/template/src/views/settings/ProfileSettingsView.vue +0 -104
- package/template/src/vueform/config/informasi-gudang.ts +0 -46
- package/template/src/vueform/config/test-schema.ts +0 -7
- package/template/src/vueform/config/types.ts +0 -768
- package/template/src/vueform/customization/classes.js +0 -46
- package/template/src/vueform/customization/tailwind.classes.js +0 -2117
- package/template/src/vueform/elements/ConfigDataSelectorElement.vue +0 -50
- package/template/src/vueform/elements/DateSelectorElement.vue +0 -323
- package/template/src/vueform/elements/SelectorElement.vue +0 -153
- package/template/src/vueform/schemas/date-selector-test.ts +0 -103
- package/template/src/vueform/schemas/informasi-gudang.ts +0 -158
- package/template/src/vueform/schemas/test-schema.ts +0 -483
- package/template/src/vueform.config.js +0 -77
- package/template/src/vueform.validator.ts +0 -77
- package/template/tailwind.config.js +0 -137
- package/template/tsconfig.app.json +0 -28
- package/template/tsconfig.json +0 -14
- package/template/tsconfig.node.json +0 -19
- package/template/tsconfig.vitest.json +0 -11
- package/template/vite.config.ts +0 -33
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../../components/ui/table";
|
|
4
|
-
import { Skeleton } from "../../components/ui/skeleton";
|
|
5
|
-
import LoadingIndicator from "../../components/loadings/LoadingIndicator.vue";
|
|
6
|
-
import { LucideDatabase, LucideOctagonAlert, LucideSquare } from "lucide-vue-next";
|
|
7
|
-
import BtnPrimary from "../../components/button/BtnPrimary.vue";
|
|
8
|
-
import BaseDropdownTable from "../../components/tables/dropdown/BaseDropdownTable.vue";
|
|
9
|
-
import { DropdownMenuItem, DropdownMenuSeparator } from "../../components/ui/dropdown-menu";
|
|
10
|
-
import LucideIcon from "../../components/helper/LucideIcon.vue";
|
|
11
|
-
import DetailSheet from "../../components/detail/DetailSheet.vue";
|
|
12
|
-
import DataTableCell from "./DataTableCell.vue";
|
|
13
|
-
import PinInputer from "../../components/helper/PinInputer.vue";
|
|
14
|
-
import Accordion from "../../components/ui/accordion/Accordion.vue";
|
|
15
|
-
import AccordionItem from "../../components/ui/accordion/AccordionItem.vue";
|
|
16
|
-
import AccordionTrigger from "../../components/ui/accordion/AccordionTrigger.vue";
|
|
17
|
-
import AccordionContent from "../../components/ui/accordion/AccordionContent.vue";
|
|
18
|
-
import { ChevronDown } from "lucide-vue-next";
|
|
19
|
-
|
|
20
|
-
export interface ColumnAction {
|
|
21
|
-
label?: string;
|
|
22
|
-
icon?: string;
|
|
23
|
-
iconSize?: number;
|
|
24
|
-
action: (index: number, row: any) => void;
|
|
25
|
-
negative?: boolean;
|
|
26
|
-
type?: "separator" | "item";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ColumnRef {
|
|
30
|
-
key: string;
|
|
31
|
-
header?: string;
|
|
32
|
-
size?: number;
|
|
33
|
-
bold?: boolean;
|
|
34
|
-
descriptonKey?: string;
|
|
35
|
-
descriptonKeys?: string[];
|
|
36
|
-
codeKeys?: string[];
|
|
37
|
-
type?: "cell" | "action" | "notifIcon";
|
|
38
|
-
showFavorite?: boolean;
|
|
39
|
-
showCustomButton?: boolean;
|
|
40
|
-
customButtonLabel?: string;
|
|
41
|
-
customButtonIcon?: string;
|
|
42
|
-
customButtonIconSize?: number;
|
|
43
|
-
customButtonIconFill?: boolean;
|
|
44
|
-
customButtonIconClass?: string;
|
|
45
|
-
showAction?: boolean;
|
|
46
|
-
cellRender?: (index: number, row: any) => void;
|
|
47
|
-
onFavoritChanged?: (index: number, row: any) => void;
|
|
48
|
-
onCustomButtonClicked?: (index: number, row: any) => void;
|
|
49
|
-
actions?: (index: number, row: any) => ColumnAction[];
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface Props {
|
|
53
|
-
data: any;
|
|
54
|
-
columns: ColumnRef[];
|
|
55
|
-
loading?: boolean;
|
|
56
|
-
loadingType?: "skeleton" | "loader";
|
|
57
|
-
error?: string | null;
|
|
58
|
-
formSchema?: any;
|
|
59
|
-
endpoint?: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
63
|
-
loading: false,
|
|
64
|
-
loadingType: "loader",
|
|
65
|
-
error: null,
|
|
66
|
-
data: []
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
const emits = defineEmits(["getData"]);
|
|
70
|
-
const detailSheet: any = ref(null);
|
|
71
|
-
const menuOpen = ref("1");
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* PIN
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
const pinInputer: any = ref(null);
|
|
78
|
-
|
|
79
|
-
function openDetail(item: any) {
|
|
80
|
-
pinInputer.value.open((b: boolean) => {
|
|
81
|
-
if (!b) return;
|
|
82
|
-
|
|
83
|
-
detailSheet.value.open({
|
|
84
|
-
item,
|
|
85
|
-
endpoint: props.endpoint,
|
|
86
|
-
schema: props.formSchema
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
</script>
|
|
91
|
-
|
|
92
|
-
<template>
|
|
93
|
-
<div>
|
|
94
|
-
<Table class="border-y bg-white dark:border-y-slate-700 dark:bg-slate-800">
|
|
95
|
-
<TableBody v-if="error">
|
|
96
|
-
<TableRow>
|
|
97
|
-
<TableCell colspan="999" class="bg-red-50">
|
|
98
|
-
<div class="flex min-h-[calc(100vh-440px)] items-center">
|
|
99
|
-
<div class="w-full text-center text-red-500">
|
|
100
|
-
<LucideOctagonAlert :size="40" :stroke-width="1.5" class="mx-auto mb-3" />
|
|
101
|
-
<div class="text-lg font-bold">Loading Data Error</div>
|
|
102
|
-
<div class="mb-4 text-sm">{{ error }}</div>
|
|
103
|
-
<BtnPrimary class="h-9 rounded-full py-0" v-on:click="emits('getData')">Coba Lagi</BtnPrimary>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</TableCell>
|
|
107
|
-
</TableRow>
|
|
108
|
-
</TableBody>
|
|
109
|
-
<TableBody v-else-if="props.loading">
|
|
110
|
-
<template v-if="props.loadingType === 'skeleton'">
|
|
111
|
-
<TableRow v-for="i in 25" :key="i" class="border-slate-100 dark:border-slate-700">
|
|
112
|
-
<TableCell colspan="10" class="bg-white px-8 py-3 dark:bg-slate-800">
|
|
113
|
-
<div class="flex gap-2">
|
|
114
|
-
<Skeleton class="h-6 w-6 rounded-s"></Skeleton>
|
|
115
|
-
<Skeleton class="h-6 w-full rounded-s"></Skeleton>
|
|
116
|
-
</div>
|
|
117
|
-
</TableCell>
|
|
118
|
-
</TableRow>
|
|
119
|
-
</template>
|
|
120
|
-
<TableRow v-else>
|
|
121
|
-
<TableCell colspan="999" class="bg-slate-50 dark:bg-slate-900">
|
|
122
|
-
<div class="flex h-[calc(100vh-420px)] items-center justify-center">
|
|
123
|
-
<LoadingIndicator></LoadingIndicator>
|
|
124
|
-
</div>
|
|
125
|
-
</TableCell>
|
|
126
|
-
</TableRow>
|
|
127
|
-
</TableBody>
|
|
128
|
-
<TableBody v-else-if="data.length">
|
|
129
|
-
<TableRow>
|
|
130
|
-
<TableCell colspan="999" class="p-0">
|
|
131
|
-
<div class="flex">
|
|
132
|
-
<div class="w-full text-left">
|
|
133
|
-
<Accordion collapsible type="single" :default-value="menuOpen">
|
|
134
|
-
<AccordionItem v-for="(item, i) in data" :key="i" :value="item.id" class="relative border-none font-medium text-gray-500" :class="menuOpen === item.id ? 'bg-blue-50' : 'bg-white'">
|
|
135
|
-
<AccordionTrigger @click="menuOpen = item.id" class="relative w-full justify-start gap-10 border-b-2 pl-10 text-start hover:no-underline">
|
|
136
|
-
<template v-slot:icon>
|
|
137
|
-
<div class="flex items-center gap-2">
|
|
138
|
-
<ChevronDown class="mr-5 h-4 w-4 text-gray-400"></ChevronDown>
|
|
139
|
-
<div :class="menuOpen === item.id ? 'font-bold text-blue-500' : 'text-black'">
|
|
140
|
-
{{ item.status }}
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
<span class="text-slate-400">({{ item.data.length }} Pengiriman)</span>
|
|
144
|
-
</div>
|
|
145
|
-
</template>
|
|
146
|
-
</AccordionTrigger>
|
|
147
|
-
<AccordionContent>
|
|
148
|
-
<TableHeader>
|
|
149
|
-
<TableRow class="dark:border-slate-700">
|
|
150
|
-
<TableHead
|
|
151
|
-
class="bg-white pl-8 pr-3.5 font-bold dark:bg-slate-900"
|
|
152
|
-
v-for="cell in props.columns"
|
|
153
|
-
:key="cell.key"
|
|
154
|
-
:style="{
|
|
155
|
-
width: cell.size ? `${cell.size}px` : 'auto'
|
|
156
|
-
}">
|
|
157
|
-
{{ cell.header }}
|
|
158
|
-
</TableHead>
|
|
159
|
-
</TableRow>
|
|
160
|
-
</TableHeader>
|
|
161
|
-
<TableBody v-if="data.length">
|
|
162
|
-
<TableRow v-for="(row, i) in item.data" :key="i" class="border-gray-100 dark:border-slate-700">
|
|
163
|
-
<!-- Table Content -->
|
|
164
|
-
|
|
165
|
-
<TableCell
|
|
166
|
-
class="pl-8 pr-3.5 align-top"
|
|
167
|
-
v-for="(cell, i2) in columns"
|
|
168
|
-
:key="cell.key"
|
|
169
|
-
:style="{
|
|
170
|
-
width: cell.size ? `${cell.size}px` : 'auto'
|
|
171
|
-
}">
|
|
172
|
-
<div v-if="cell.type === 'notifIcon'">
|
|
173
|
-
<div class="flex items-center">
|
|
174
|
-
<div
|
|
175
|
-
class="mr-3 flex size-9 items-center justify-center rounded-full bg-blue-100 text-blue-500"
|
|
176
|
-
:style="{
|
|
177
|
-
'background-color': row.iconBgColor,
|
|
178
|
-
color: row.iconColor
|
|
179
|
-
}">
|
|
180
|
-
<img :src="row.customIcon.url" v-if="row.useCustomIcon && row.customIcon && row.customIcon.url" class="h-5" />
|
|
181
|
-
<LucideIcon
|
|
182
|
-
v-else-if="row.iconName"
|
|
183
|
-
:name="row.iconName.replace(/^[a-z]|-([a-z])/g, (g: string) => (g.length === 1 ? g.toUpperCase() : g[1].toUpperCase()))"
|
|
184
|
-
:size="20"
|
|
185
|
-
:stroke-width="2" />
|
|
186
|
-
</div>
|
|
187
|
-
<div>
|
|
188
|
-
<b>{{ row.name }}</b
|
|
189
|
-
><br />{{ row.code }}
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
<DataTableCell :i="i" :row="row" :cell="cell" />
|
|
194
|
-
<div v-if="cell.type === 'action'">
|
|
195
|
-
<BaseDropdownTable
|
|
196
|
-
:row="cell"
|
|
197
|
-
:show-favorite="cell.showFavorite"
|
|
198
|
-
@on-favorit-changed="cell.onFavoritChanged ? cell.onFavoritChanged(i, row) : () => {}"
|
|
199
|
-
:show-action="cell.showAction"
|
|
200
|
-
:show-custom-button="cell.showCustomButton"
|
|
201
|
-
:custom-button-label="cell.customButtonLabel"
|
|
202
|
-
:custom-button-icon="cell.customButtonIcon"
|
|
203
|
-
:custom-button-icon-size="cell.customButtonIconSize"
|
|
204
|
-
:custom-button-icon-fill="cell.customButtonIconFill"
|
|
205
|
-
:custom-button-icon-class="cell.customButtonIconClass"
|
|
206
|
-
@custom-button-clicked="cell.onCustomButtonClicked ? cell.onCustomButtonClicked(i, row) : () => {}"
|
|
207
|
-
:show-view-detail="props.formSchema !== undefined"
|
|
208
|
-
v-on:view-detail="openDetail(row)">
|
|
209
|
-
<template v-if="cell.actions">
|
|
210
|
-
<div v-for="(action, i2) in cell.actions(i, row)" :key="i2">
|
|
211
|
-
<DropdownMenuSeparator v-if="action.type === 'separator'"></DropdownMenuSeparator>
|
|
212
|
-
<DropdownMenuItem
|
|
213
|
-
@click="action.action(i, row)"
|
|
214
|
-
v-else-if="action.action"
|
|
215
|
-
class="cursor-pointer items-start"
|
|
216
|
-
:class="{
|
|
217
|
-
'!text-red-500': action.negative
|
|
218
|
-
}"
|
|
219
|
-
:data-test="action.label">
|
|
220
|
-
<LucideIcon :name="action.icon" :size="action.iconSize || 18" :strokeWidth="1" v-if="action.icon" class="mr-2 mt-px" />
|
|
221
|
-
<LucideSquare :size="18" :stroke-width="1" class="mr-2 mt-px text-transparent" v-else />
|
|
222
|
-
<span>{{ action.label }}</span>
|
|
223
|
-
</DropdownMenuItem>
|
|
224
|
-
</div>
|
|
225
|
-
</template>
|
|
226
|
-
</BaseDropdownTable>
|
|
227
|
-
</div>
|
|
228
|
-
</TableCell>
|
|
229
|
-
|
|
230
|
-
<!-- End Table COntent -->
|
|
231
|
-
</TableRow>
|
|
232
|
-
</TableBody>
|
|
233
|
-
</AccordionContent>
|
|
234
|
-
</AccordionItem>
|
|
235
|
-
</Accordion>
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
</TableCell>
|
|
239
|
-
</TableRow>
|
|
240
|
-
</TableBody>
|
|
241
|
-
|
|
242
|
-
<TableBody v-else>
|
|
243
|
-
<TableRow>
|
|
244
|
-
<TableCell colspan="999" class="bg-slate-50">
|
|
245
|
-
<div class="flex min-h-[calc(100vh-440px)] items-center">
|
|
246
|
-
<div class="w-full text-center">
|
|
247
|
-
<LucideDatabase :size="40" :stroke-width="1.5" class="mx-auto mb-3 text-gray-500" />
|
|
248
|
-
<div class="text-lg font-semibold">Tidak Ada Data</div>
|
|
249
|
-
<div class="text-sm text-gray-500">Maaf! Data Anda belum tersedia</div>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
</TableCell>
|
|
253
|
-
</TableRow>
|
|
254
|
-
</TableBody>
|
|
255
|
-
</Table>
|
|
256
|
-
</div>
|
|
257
|
-
<DetailSheet ref="detailSheet" />
|
|
258
|
-
<PinInputer ref="pinInputer" />
|
|
259
|
-
</template>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, ref } from 'vue'
|
|
3
|
-
import {
|
|
4
|
-
Table,
|
|
5
|
-
TableBody,
|
|
6
|
-
TableCell,
|
|
7
|
-
TableHead,
|
|
8
|
-
TableHeader,
|
|
9
|
-
TableRow
|
|
10
|
-
} from '../../components/ui/table'
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
DropdownMenu,
|
|
14
|
-
DropdownMenuContent,
|
|
15
|
-
DropdownMenuItem,
|
|
16
|
-
DropdownMenuSeparator,
|
|
17
|
-
DropdownMenuTrigger
|
|
18
|
-
} from '../../components/ui/dropdown-menu'
|
|
19
|
-
|
|
20
|
-
import { EllipsisVertical } from 'lucide-vue-next'
|
|
21
|
-
|
|
22
|
-
defineProps(['pages', 'pageColumns'])
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<Table class="bg-white">
|
|
27
|
-
<!-- <TableCaption>A list of your recent invoices.</TableCaption> -->
|
|
28
|
-
<TableHeader>
|
|
29
|
-
<TableRow>
|
|
30
|
-
<TableHead
|
|
31
|
-
v-for="column in pageColumns"
|
|
32
|
-
:key="column.id"
|
|
33
|
-
class="font-bold"
|
|
34
|
-
:class="column.class"
|
|
35
|
-
>{{ column.title }}</TableHead
|
|
36
|
-
>
|
|
37
|
-
</TableRow>
|
|
38
|
-
</TableHeader>
|
|
39
|
-
<TableBody v-if="pages.length > 0">
|
|
40
|
-
<TableRow v-for="page in pages" :key="page.id">
|
|
41
|
-
<TableCell>
|
|
42
|
-
{{ page.id }}
|
|
43
|
-
</TableCell>
|
|
44
|
-
<TableCell>
|
|
45
|
-
<p v-for="(nama, index) in page.nama_page" :key="index">{{ nama }}</p>
|
|
46
|
-
</TableCell>
|
|
47
|
-
<TableCell>
|
|
48
|
-
<p class="flex">{{ page.page }}</p>
|
|
49
|
-
</TableCell>
|
|
50
|
-
<TableCell>
|
|
51
|
-
<div class="flex justify-between items-center h-full">
|
|
52
|
-
<span>{{ page.akses }}</span>
|
|
53
|
-
<DropdownMenu>
|
|
54
|
-
<DropdownMenuTrigger as-child>
|
|
55
|
-
<EllipsisVertical class="cursor-pointer" />
|
|
56
|
-
</DropdownMenuTrigger>
|
|
57
|
-
<DropdownMenuContent class="w-56" align="end">
|
|
58
|
-
<DropdownMenuItem class="cursor-pointer">Edit aktifitas</DropdownMenuItem>
|
|
59
|
-
<DropdownMenuItem class="cursor-pointer">Sesuaikan akses</DropdownMenuItem>
|
|
60
|
-
<DropdownMenuSeparator />
|
|
61
|
-
<DropdownMenuItem class="cursor-pointer">Hapus aktifitas</DropdownMenuItem>
|
|
62
|
-
</DropdownMenuContent>
|
|
63
|
-
</DropdownMenu>
|
|
64
|
-
</div>
|
|
65
|
-
</TableCell>
|
|
66
|
-
</TableRow>
|
|
67
|
-
</TableBody>
|
|
68
|
-
|
|
69
|
-
<TableBody v-else>
|
|
70
|
-
<TableRow class="grid h-24 text-center place-content-center">No results.</TableRow>
|
|
71
|
-
</TableBody>
|
|
72
|
-
</Table>
|
|
73
|
-
</template>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Pagination, PaginationEllipsis, PaginationList, PaginationListItem, PaginationNext, PaginationPrev } from "../../components/ui/pagination";
|
|
3
|
-
import { Button } from "../../components/ui/button";
|
|
4
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../components/ui/dropdown-menu";
|
|
5
|
-
import { computed } from "vue";
|
|
6
|
-
import { ChevronLeft, ChevronRight } from "lucide-vue-next";
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
totalData: number;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const currentPage = defineModel("currentPage", { default: 25 });
|
|
14
|
-
const itemsPerPage = defineModel("itemsPerPage", { default: 0 });
|
|
15
|
-
const emits = defineEmits(["getData"]);
|
|
16
|
-
const props = withDefaults(defineProps<Props>(), { totalData: 0, loading: false });
|
|
17
|
-
const maxPage = computed(() => {
|
|
18
|
-
return Math.ceil(props.totalData / itemsPerPage.value);
|
|
19
|
-
});
|
|
20
|
-
const itemsPerPage10 = computed(() => {
|
|
21
|
-
return itemsPerPage.value === 10;
|
|
22
|
-
});
|
|
23
|
-
const itemsPerPage25 = computed(() => {
|
|
24
|
-
return itemsPerPage.value === 25;
|
|
25
|
-
});
|
|
26
|
-
const itemsPerPage50 = computed(() => {
|
|
27
|
-
return itemsPerPage.value === 50;
|
|
28
|
-
});
|
|
29
|
-
const itemsPerPage100 = computed(() => {
|
|
30
|
-
return itemsPerPage.value === 100;
|
|
31
|
-
});
|
|
32
|
-
const itemsPerPage150 = computed(() => {
|
|
33
|
-
return itemsPerPage.value === 150;
|
|
34
|
-
});
|
|
35
|
-
const itemsPerPage250 = computed(() => {
|
|
36
|
-
return itemsPerPage.value === 250;
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
function selectItemsPerPage(_i: number) {
|
|
40
|
-
itemsPerPage.value = _i;
|
|
41
|
-
emits("getData");
|
|
42
|
-
}
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<template>
|
|
46
|
-
<section class="flex w-full items-center px-5">
|
|
47
|
-
<div class="mr-auto text-sm text-gray-500">
|
|
48
|
-
Menampilkan
|
|
49
|
-
<span v-if="loading">...</span>
|
|
50
|
-
<template v-else>
|
|
51
|
-
<DropdownMenu>
|
|
52
|
-
<DropdownMenuTrigger as-child>
|
|
53
|
-
<Button variant="outline" class="hover:bg-primary_main_hover hover:border-primary_main_hover mx-2 h-8 rounded-sm border border-gray-300 px-2 transition hover:shadow-md">
|
|
54
|
-
{{ itemsPerPage }}
|
|
55
|
-
</Button>
|
|
56
|
-
</DropdownMenuTrigger>
|
|
57
|
-
<DropdownMenuContent class="w-56">
|
|
58
|
-
<DropdownMenuLabel>Item per halaman</DropdownMenuLabel>
|
|
59
|
-
<DropdownMenuSeparator />
|
|
60
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage10" v-on:select="selectItemsPerPage(10)"> 10 item </DropdownMenuCheckboxItem>
|
|
61
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage25" v-on:select="selectItemsPerPage(25)"> 25 item </DropdownMenuCheckboxItem>
|
|
62
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage50" v-on:select="selectItemsPerPage(50)"> 50 item </DropdownMenuCheckboxItem>
|
|
63
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage100" v-on:select="selectItemsPerPage(100)"> 100 item </DropdownMenuCheckboxItem>
|
|
64
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage150" v-on:select="selectItemsPerPage(150)"> 150 item </DropdownMenuCheckboxItem>
|
|
65
|
-
<DropdownMenuCheckboxItem v-model:checked="itemsPerPage250" v-on:select="selectItemsPerPage(250)"> 250 item </DropdownMenuCheckboxItem>
|
|
66
|
-
</DropdownMenuContent>
|
|
67
|
-
</DropdownMenu>
|
|
68
|
-
dari {{ props.totalData.toLocaleString("id") }}
|
|
69
|
-
</template>
|
|
70
|
-
</div>
|
|
71
|
-
<Pagination v-model:page="currentPage" v-model:items-per-page="itemsPerPage" :total="props.totalData" :sibling-count="1" show-edges :default-page="1" v-on:update:page="emits('getData')">
|
|
72
|
-
<PaginationList v-slot="{ items }" class="flex items-center gap-1">
|
|
73
|
-
<PaginationPrev class="h-8 w-9 rounded-lg" v-if="currentPage > 1">
|
|
74
|
-
<ChevronLeft :stroke-width="1.5" :size="24" />
|
|
75
|
-
</PaginationPrev>
|
|
76
|
-
<PaginationPrev class="h-8 w-9 rounded-lg !bg-transparent opacity-30" v-else>
|
|
77
|
-
<ChevronLeft :stroke-width="1.5" :size="24" />
|
|
78
|
-
</PaginationPrev>
|
|
79
|
-
|
|
80
|
-
<template v-for="(item, index) in items">
|
|
81
|
-
<PaginationListItem v-if="item.type === 'page'" :key="index" :value="item.value" as-child>
|
|
82
|
-
<Button class="h-8 w-9 rounded-lg p-0" :variant="item.value === currentPage ? 'default' : 'ghost'">
|
|
83
|
-
{{ item.value }}
|
|
84
|
-
</Button>
|
|
85
|
-
</PaginationListItem>
|
|
86
|
-
<PaginationEllipsis v-else :key="item.type" :index="index" />
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<PaginationNext class="h-8 w-9 rounded-lg" v-if="currentPage < maxPage">
|
|
90
|
-
<ChevronRight :stroke-width="1.5" :size="24" />
|
|
91
|
-
</PaginationNext>
|
|
92
|
-
<PaginationNext class="h-8 w-9 rounded-lg !bg-transparent opacity-30" v-else>
|
|
93
|
-
<ChevronRight :stroke-width="1.5" :size="24" />
|
|
94
|
-
</PaginationNext>
|
|
95
|
-
</PaginationList>
|
|
96
|
-
</Pagination>
|
|
97
|
-
</section>
|
|
98
|
-
</template>
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../../../components/ui/dropdown-menu";
|
|
3
|
-
import BtnCircle from "../../../components/button/BtnCircle.vue";
|
|
4
|
-
import { EllipsisVertical, Star, LucideChevronRight, LucideLoaderCircle, LucideSend, LucideUserRoundCheck, LucideUserCheck2, LucideUserCheck, LucideChevronLeft, LucideArrowLeftFromLine, LucidePencilLine } from "lucide-vue-next";
|
|
5
|
-
import LucideIcon from "../../../components/helper/LucideIcon.vue";
|
|
6
|
-
import { cn, isValidValue } from "../../../lib/utils";
|
|
7
|
-
import { onMounted, ref } from "vue";
|
|
8
|
-
import api from "../../../api/api";
|
|
9
|
-
import { string } from "@vueform/vueform";
|
|
10
|
-
|
|
11
|
-
const props = defineProps({
|
|
12
|
-
i: Number,
|
|
13
|
-
row: Object as any,
|
|
14
|
-
cell: Object as any,
|
|
15
|
-
showAction: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: true
|
|
18
|
-
},
|
|
19
|
-
showViewDetail: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true
|
|
22
|
-
},
|
|
23
|
-
itemLoading: {
|
|
24
|
-
type: Object as any,
|
|
25
|
-
default: false
|
|
26
|
-
},
|
|
27
|
-
rowActions: {
|
|
28
|
-
type: Object as any,
|
|
29
|
-
default: null
|
|
30
|
-
},
|
|
31
|
-
customBtnConfig: {
|
|
32
|
-
type: Object as any,
|
|
33
|
-
default: null
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
endpoint: string,
|
|
37
|
-
pageConfig: Object as any
|
|
38
|
-
});
|
|
39
|
-
const emits = defineEmits(["onFavoritChanged", "viewDetail", 'openApproval', "customBtnClick", 'edit']);
|
|
40
|
-
const loading = ref(false);
|
|
41
|
-
const myApproval = ref<any>();
|
|
42
|
-
|
|
43
|
-
function customBtnClicked(btnId?: string) {
|
|
44
|
-
if (props.customBtnConfig && props.customBtnConfig.onClick) {
|
|
45
|
-
props.customBtnConfig.onClick(props.i ?? 0, props.row, btnId);
|
|
46
|
-
}
|
|
47
|
-
emits("customBtnClick", props.i ?? 0, props.row, btnId);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function hasActionBtn(row: any): boolean {
|
|
51
|
-
return (props.customBtnConfig && props.customBtnConfig.show)
|
|
52
|
-
|| (['APPROVAL_REQUIRED', 'WAITING_APPROVAL', 'APPROVED_PARTIALY'].includes(row.status) && !props.pageConfig?.forceDisplayActionRow)
|
|
53
|
-
|| (props.rowActions && props.rowActions.length > 0);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
onMounted(() => {
|
|
57
|
-
if (['WAITING_APPROVAL', 'APPROVED_PARTIALY'].includes(props.row.status)) {
|
|
58
|
-
loading.value = true;
|
|
59
|
-
api.get(`${props.pageConfig?.viewDocsEndpoint ?? props.endpoint}/${props.row.id}/my-approval`).then((r) => {
|
|
60
|
-
myApproval.value = r.data.data;
|
|
61
|
-
}).finally(() => {
|
|
62
|
-
loading.value = false;
|
|
63
|
-
})
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
</script>
|
|
67
|
-
|
|
68
|
-
<template>
|
|
69
|
-
<div class="flex items-center justify-end gap-2 pr-1">
|
|
70
|
-
<div class="flex items-center pr-1" v-if="itemLoading || loading">
|
|
71
|
-
<LucideLoaderCircle class="animate-spin opacity-50" :size="24" />
|
|
72
|
-
<span class="ml-1.5 text-xs opacity-65" v-if="typeof itemLoading === 'string'">
|
|
73
|
-
{{ itemLoading }}
|
|
74
|
-
</span>
|
|
75
|
-
</div>
|
|
76
|
-
<template v-else>
|
|
77
|
-
<template v-if="rowActions && rowActions.length > 0">
|
|
78
|
-
<BtnCircle
|
|
79
|
-
v-for="(rowAction, i2) in rowActions"
|
|
80
|
-
:key="i2"
|
|
81
|
-
:class="cn({ '!w-auto whitespace-nowrap border border-slate-300 pl-2 pr-3': rowAction.label }, rowAction.class)"
|
|
82
|
-
v-on:click="rowAction.onClick(i, row)">
|
|
83
|
-
<LucideIcon
|
|
84
|
-
:name="rowAction.icon"
|
|
85
|
-
:size="rowAction.iconSize"
|
|
86
|
-
:class="[{ 'mr-1': rowAction.label }, rowAction.iconClass]"
|
|
87
|
-
:fill="rowAction.iconFill ? 'currentColor' : 'none'"
|
|
88
|
-
:stroke-width="rowAction.iconStrokeWidth" />
|
|
89
|
-
{{ rowAction.label }}
|
|
90
|
-
</BtnCircle>
|
|
91
|
-
</template>
|
|
92
|
-
|
|
93
|
-
<!-- <BtnCircle v-if="isDibutuhkanPerbaikan(row[pageConfig.nextDataField]?.[0])"
|
|
94
|
-
class="!w-auto whitespace-nowrap border transition pl-2 pr-3 bg-white border-blue-500 text-blue-600"
|
|
95
|
-
v-on:click="emits('edit', i, row)">
|
|
96
|
-
<LucidePencilLine class="mr-2" :size="17" :stroke-width="1.6"/>
|
|
97
|
-
Perbaiki Data
|
|
98
|
-
</BtnCircle> -->
|
|
99
|
-
|
|
100
|
-
<BtnCircle
|
|
101
|
-
v-else-if="props.customBtnConfig && props.customBtnConfig.show"
|
|
102
|
-
:class="cn({ '!w-auto whitespace-nowrap border border-slate-300 bg-white pl-2 pr-3': props.customBtnConfig.label }, props.customBtnConfig.class)"
|
|
103
|
-
v-on:click="customBtnClicked(props.customBtnConfig.id)">
|
|
104
|
-
<LucideIcon
|
|
105
|
-
:name="props.customBtnConfig.icon"
|
|
106
|
-
:size="props.customBtnConfig.iconSize ?? 20"
|
|
107
|
-
:class="[{ 'mr-1': props.customBtnConfig.label }, props.customBtnConfig.iconClass]"
|
|
108
|
-
:fill="props.customBtnConfig.iconFill ? 'currentColor' : 'none'"
|
|
109
|
-
:stroke-width="props.customBtnConfig.iconStrokeWidth ?? 1.6" />
|
|
110
|
-
{{ props.customBtnConfig.label }}
|
|
111
|
-
</BtnCircle>
|
|
112
|
-
<BtnCircle
|
|
113
|
-
class="whitespace-nowrap border border-slate-300 bg-white dark:bg-dark_bg4 dark:border-none dark:text-dark_text dark:hover:bg-dark_bg6"
|
|
114
|
-
:class="{'!w-auto pl-2 pr-3': !hasActionBtn(row)}"
|
|
115
|
-
v-on:click="$emit('viewDetail')"
|
|
116
|
-
v-if="showViewDetail">
|
|
117
|
-
<LucideArrowLeftFromLine :size="18" :stroke-width="1.4"
|
|
118
|
-
:class="{ 'ml-1 mr-1.5': !hasActionBtn(row)}"/>
|
|
119
|
-
<template v-if="!hasActionBtn(row)">
|
|
120
|
-
Lihat Detil
|
|
121
|
-
</template>
|
|
122
|
-
</BtnCircle>
|
|
123
|
-
</template>
|
|
124
|
-
<BtnCircle v-if="1 > 2" v-on:click="$emit('onFavoritChanged')" class="hover:text-orange-400" :class="{ 'text-orange-400': cell.favorited }">
|
|
125
|
-
<Star :stroke-width="1.6" :size="20" fill="currentColor" v-if="cell.favorited" class="transition" />
|
|
126
|
-
<Star :stroke-width="1.6" :size="20" v-else class="transition" />
|
|
127
|
-
</BtnCircle>
|
|
128
|
-
<DropdownMenu v-if="showAction !== false && !['WAITING_APPROVAL', 'APPROVED_PARTIALY'].includes(row.status)
|
|
129
|
-
&& (!pageConfig?.nextDataField || isValidValue(row[pageConfig?.nextDataField]))">
|
|
130
|
-
<DropdownMenuTrigger as-child>
|
|
131
|
-
<BtnCircle data-test="action-menu">
|
|
132
|
-
<EllipsisVertical :size="22" />
|
|
133
|
-
</BtnCircle>
|
|
134
|
-
</DropdownMenuTrigger>
|
|
135
|
-
<DropdownMenuContent class="w-[320px]" align="end">
|
|
136
|
-
<slot></slot>
|
|
137
|
-
</DropdownMenuContent>
|
|
138
|
-
</DropdownMenu>
|
|
139
|
-
</div>
|
|
140
|
-
</template>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
DropdownMenu,
|
|
4
|
-
DropdownMenuContent,
|
|
5
|
-
DropdownMenuItem,
|
|
6
|
-
DropdownMenuSeparator,
|
|
7
|
-
DropdownMenuTrigger
|
|
8
|
-
} from "../../../components/ui/dropdown-menu";
|
|
9
|
-
|
|
10
|
-
import { EllipsisVertical } from "lucide-vue-next";
|
|
11
|
-
|
|
12
|
-
defineProps(['openSheet', 'openSheet2'])
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<div>
|
|
17
|
-
<DropdownMenu>
|
|
18
|
-
<DropdownMenuTrigger as-child>
|
|
19
|
-
<EllipsisVertical class="cursor-pointer" />
|
|
20
|
-
</DropdownMenuTrigger>
|
|
21
|
-
<DropdownMenuContent class="w-56" align="end">
|
|
22
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet('Edit Aktifitas')"
|
|
23
|
-
>Edit aktifitas</DropdownMenuItem
|
|
24
|
-
>
|
|
25
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet2('Sesuaikan Aktifitas')"
|
|
26
|
-
>Sesuaikan aktifitas</DropdownMenuItem
|
|
27
|
-
>
|
|
28
|
-
<DropdownMenuSeparator />
|
|
29
|
-
<DropdownMenuItem class="cursor-pointer">Hapus grup</DropdownMenuItem>
|
|
30
|
-
</DropdownMenuContent>
|
|
31
|
-
</DropdownMenu>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
DropdownMenu,
|
|
4
|
-
DropdownMenuContent,
|
|
5
|
-
DropdownMenuItem,
|
|
6
|
-
DropdownMenuSeparator,
|
|
7
|
-
DropdownMenuTrigger
|
|
8
|
-
} from "../../../components/ui/dropdown-menu";
|
|
9
|
-
|
|
10
|
-
import { EllipsisVertical } from "lucide-vue-next";
|
|
11
|
-
|
|
12
|
-
defineProps(['openSheet', 'openSheet2'])
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<div>
|
|
17
|
-
<DropdownMenu>
|
|
18
|
-
<DropdownMenuTrigger as-child>
|
|
19
|
-
<EllipsisVertical class="cursor-pointer" />
|
|
20
|
-
</DropdownMenuTrigger>
|
|
21
|
-
<DropdownMenuContent class="w-56" align="end">
|
|
22
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet('Edit Asset')">Edit asset</DropdownMenuItem>
|
|
23
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet2('Sesuaikan Asset')">Sesuaikan asset
|
|
24
|
-
</DropdownMenuItem>
|
|
25
|
-
<DropdownMenuSeparator />
|
|
26
|
-
<DropdownMenuItem class="cursor-pointer">Hapus asset</DropdownMenuItem>
|
|
27
|
-
</DropdownMenuContent>
|
|
28
|
-
</DropdownMenu>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
DropdownMenu,
|
|
4
|
-
DropdownMenuContent,
|
|
5
|
-
DropdownMenuItem,
|
|
6
|
-
DropdownMenuSeparator,
|
|
7
|
-
DropdownMenuTrigger
|
|
8
|
-
} from "../../../components/ui/dropdown-menu";
|
|
9
|
-
|
|
10
|
-
import { EllipsisVertical } from "lucide-vue-next";
|
|
11
|
-
|
|
12
|
-
defineProps(['openSheet', 'openSheet2'])
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<template>
|
|
16
|
-
<div>
|
|
17
|
-
<DropdownMenu>
|
|
18
|
-
<DropdownMenuTrigger as-child>
|
|
19
|
-
<EllipsisVertical class="cursor-pointer" />
|
|
20
|
-
</DropdownMenuTrigger>
|
|
21
|
-
<DropdownMenuContent class="w-56" align="end">
|
|
22
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet('Edit Konfig')">Edit Konfig</DropdownMenuItem>
|
|
23
|
-
<DropdownMenuItem class="cursor-pointer" @click="openSheet2('Tambah Subconfig')">Tambah Subconfig
|
|
24
|
-
</DropdownMenuItem>
|
|
25
|
-
<DropdownMenuSeparator />
|
|
26
|
-
<DropdownMenuItem class="cursor-pointer">Hapus Konfig</DropdownMenuItem>
|
|
27
|
-
</DropdownMenuContent>
|
|
28
|
-
</DropdownMenu>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|