@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,40 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { LucideBell } from "lucide-vue-next";
|
|
3
|
-
import moment from "moment";
|
|
4
|
-
|
|
5
|
-
moment.updateLocale("en", {
|
|
6
|
-
relativeTime: {
|
|
7
|
-
future: "in %s",
|
|
8
|
-
past: "%s ago",
|
|
9
|
-
s: "1s",
|
|
10
|
-
ss: "%ds",
|
|
11
|
-
m: "1m",
|
|
12
|
-
mm: "%dm",
|
|
13
|
-
h: "1h",
|
|
14
|
-
hh: "%dh",
|
|
15
|
-
d: "1d",
|
|
16
|
-
dd: "%dd",
|
|
17
|
-
w: "1w",
|
|
18
|
-
ww: "%dw",
|
|
19
|
-
M: "1Mo",
|
|
20
|
-
MM: "%dMo",
|
|
21
|
-
y: "1y",
|
|
22
|
-
yy: "%dy"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const props = defineProps(["item"]);
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<template>
|
|
30
|
-
<main class="relative mb-1 cursor-pointer rounded-sm py-3 pl-[60px] pr-4 text-gray-700 transition hover:bg-hover_main" :class="{ 'bg-slate-50': props.item.isRead }">
|
|
31
|
-
<div class="absolute left-2 top-3 flex h-9 w-9 items-center justify-center rounded-full bg-slate-100">
|
|
32
|
-
<LucideBell :size="19" class="text-primary_main"></LucideBell>
|
|
33
|
-
<div class="absolute right-0 top-0 z-2 size-3 rounded-full border-2 border-white bg-primary_main" v-if="props.item.isRead"></div>
|
|
34
|
-
</div>
|
|
35
|
-
<h4 class="text-sm font-semibold leading-tight text-gray-600">{{ props.item.name }}</h4>
|
|
36
|
-
<div class="pb-[2px] pt-[3px] text-[12px] text-gray-500 opacity-70">{{ moment(props.item.createdAt).utc().subtract(7, "hour").calendar() }}</div>
|
|
37
|
-
<p class="whitespace-pre-wrap text-xs leading-snug text-gray-500">{{ props.item.message }}</p>
|
|
38
|
-
<!-- <BtnOutline class="text-[13px] py-1 px-3 rounded-full border-[1px] mt-2">Notification Action</BtnOutline> -->
|
|
39
|
-
</main>
|
|
40
|
-
</template>
|
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { onMounted, onUnmounted, ref, watch, computed } from "vue";
|
|
3
|
-
import { ChevronDown, Bell, LogOut, Settings, LucideBookOpenText, LucideX, LucidePlusCircle, LucidePin, LucideRotateCw, Sun, Moon } from "lucide-vue-next";
|
|
4
|
-
import Avatar from "../../components/ui/avatar/Avatar.vue";
|
|
5
|
-
import AvatarFallback from "../../components/ui/avatar/AvatarFallback.vue";
|
|
6
|
-
import DropdownMenu from "../../components/ui/dropdown-menu/DropdownMenu.vue";
|
|
7
|
-
import DropdownMenuTrigger from "../../components/ui/dropdown-menu/DropdownMenuTrigger.vue";
|
|
8
|
-
import DropdownMenuContent from "../../components/ui/dropdown-menu/DropdownMenuContent.vue";
|
|
9
|
-
import DropdownMenuSeparator from "../../components/ui/dropdown-menu/DropdownMenuSeparator.vue";
|
|
10
|
-
import DropdownMenuItem from "../../components/ui/dropdown-menu/DropdownMenuItem.vue";
|
|
11
|
-
import DropdownMenuShortcut from "../../components/ui/dropdown-menu/DropdownMenuShortcut.vue";
|
|
12
|
-
import AlertDialog from "../../components/ui/alert-dialog/AlertDialog.vue";
|
|
13
|
-
import AlertDialogContent from "../../components/ui/alert-dialog/AlertDialogContent.vue";
|
|
14
|
-
import AlertDialogHeader from "../../components/ui/alert-dialog/AlertDialogHeader.vue";
|
|
15
|
-
import AlertDialogTitle from "../../components/ui/alert-dialog/AlertDialogTitle.vue";
|
|
16
|
-
import AlertDialogDescription from "../../components/ui/alert-dialog/AlertDialogDescription.vue";
|
|
17
|
-
import AlertDialogFooter from "../../components/ui/alert-dialog/AlertDialogFooter.vue";
|
|
18
|
-
import AlertDialogCancel from "../../components/ui/alert-dialog/AlertDialogCancel.vue";
|
|
19
|
-
import AlertDialogAction from "../../components/ui/alert-dialog/AlertDialogAction.vue";
|
|
20
|
-
import LoadingDialog from "../../components/loadings/LoadingDialog.vue";
|
|
21
|
-
import { useMagicKeys } from "@vueuse/core";
|
|
22
|
-
import Notif from "../../components/notif/Notif.vue";
|
|
23
|
-
import { useRoute, useRouter } from "vue-router";
|
|
24
|
-
import menu, { type Submenu } from "../../menu";
|
|
25
|
-
import ChangePwd from "../../components/helper/ChangePwd.vue";
|
|
26
|
-
import api from "../../api/api";
|
|
27
|
-
import { useTab } from "../../stores/tabs";
|
|
28
|
-
import { useAppConfig } from "../../composables/useAppConfig";
|
|
29
|
-
import {
|
|
30
|
-
ContextMenu,
|
|
31
|
-
ContextMenuCheckboxItem,
|
|
32
|
-
ContextMenuContent,
|
|
33
|
-
ContextMenuItem,
|
|
34
|
-
ContextMenuLabel,
|
|
35
|
-
ContextMenuRadioGroup,
|
|
36
|
-
ContextMenuRadioItem,
|
|
37
|
-
ContextMenuSeparator,
|
|
38
|
-
ContextMenuShortcut,
|
|
39
|
-
ContextMenuSub,
|
|
40
|
-
ContextMenuSubContent,
|
|
41
|
-
ContextMenuSubTrigger,
|
|
42
|
-
ContextMenuTrigger
|
|
43
|
-
} from "../../components/ui/context-menu";
|
|
44
|
-
import { useDarkMode } from "../../composables/useDarkMode";
|
|
45
|
-
|
|
46
|
-
const keys = useMagicKeys();
|
|
47
|
-
const route = useRoute();
|
|
48
|
-
const router = useRouter();
|
|
49
|
-
const tabStore = useTab();
|
|
50
|
-
|
|
51
|
-
const { companyName, logo, primaryColor, apiEndpoints, features, enabledFeatures, userKey, isConfigLoaded } = useAppConfig();
|
|
52
|
-
|
|
53
|
-
const breadcrumbs = ref<{ name: string; uri?: string }[]>([]);
|
|
54
|
-
const logoutConfirmOpen = ref(false);
|
|
55
|
-
const showNotif = ref(false);
|
|
56
|
-
const notifUnread = ref(0);
|
|
57
|
-
const hasWebSocketNotif = ref(false);
|
|
58
|
-
const authUser = ref({ name: "", email: "..." });
|
|
59
|
-
const headerEl: any = ref(null);
|
|
60
|
-
const ddUserOpen = ref(false);
|
|
61
|
-
const tabActive = ref("");
|
|
62
|
-
const { isDark, toggleDarkMode } = useDarkMode();
|
|
63
|
-
|
|
64
|
-
const emits = defineEmits(["openSearch"]);
|
|
65
|
-
|
|
66
|
-
const floatingNotifs = ref();
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* El
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
const loadingDialogEl: any = ref(null);
|
|
73
|
-
|
|
74
|
-
function updateBreadcrumbs() {
|
|
75
|
-
breadcrumbs.value = [];
|
|
76
|
-
for (const item of menu) {
|
|
77
|
-
if (item.submenu) {
|
|
78
|
-
for (const submenu of item.submenu) {
|
|
79
|
-
if (submenu.url === route.fullPath) {
|
|
80
|
-
tabStore.addTab(submenu);
|
|
81
|
-
breadcrumbs.value = [{ name: item.name }, { name: submenu.name, uri: submenu.url }];
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function doLogout() {
|
|
90
|
-
if (loadingDialogEl.value) loadingDialogEl.value.open();
|
|
91
|
-
tabStore.clearTabs();
|
|
92
|
-
api
|
|
93
|
-
.post(apiEndpoints.value.auth.logout)
|
|
94
|
-
.then(() => {
|
|
95
|
-
console.log("Logout success!");
|
|
96
|
-
})
|
|
97
|
-
.finally(() => {
|
|
98
|
-
localStorage.clear();
|
|
99
|
-
window.location.href = "/login";
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function countNotifUnread() {
|
|
104
|
-
if (!enabledFeatures.value.realTimeNotifications) return;
|
|
105
|
-
|
|
106
|
-
api
|
|
107
|
-
.get(apiEndpoints.value.notifications.unreadCount)
|
|
108
|
-
.then(r => {
|
|
109
|
-
notifUnread.value = r.data.total || 0;
|
|
110
|
-
})
|
|
111
|
-
.finally(() => {
|
|
112
|
-
setTimeout(() => {
|
|
113
|
-
countNotifUnread();
|
|
114
|
-
}, 3500);
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function fnHover(item: any) {
|
|
119
|
-
for (const notif of floatingNotifs.value) {
|
|
120
|
-
notif.visible = false;
|
|
121
|
-
}
|
|
122
|
-
item.visible = true;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function fnBlur() {
|
|
126
|
-
for (const notif of floatingNotifs.value) {
|
|
127
|
-
notif.visible = true;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function closeDrodown() {
|
|
132
|
-
ddUserOpen.value = false;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function closeTab(tab: Submenu) {
|
|
136
|
-
tabStore.removeTab(tab);
|
|
137
|
-
if (tab.url === tabActive.value) {
|
|
138
|
-
const newTab = tabStore.tabs[tabStore.tabs.length - 1];
|
|
139
|
-
const newUri = newTab ? newTab.url || "/" : "/";
|
|
140
|
-
router.push(newUri);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function closeTabOthers(tab: Submenu) {
|
|
145
|
-
const tabToClose: Submenu[] = [];
|
|
146
|
-
for (const item of tabStore.tabs) {
|
|
147
|
-
if (item.url !== tab.url) tabToClose.push(item);
|
|
148
|
-
}
|
|
149
|
-
for (const item of tabToClose) {
|
|
150
|
-
tabStore.removeTab(item);
|
|
151
|
-
}
|
|
152
|
-
if (tabActive.value !== tab.url) router.push(tab.url || "/");
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
function closeTabRight(tab: Submenu) {
|
|
156
|
-
const tabToClose: Submenu[] = [];
|
|
157
|
-
let tabFound;
|
|
158
|
-
for (const item of tabStore.tabs) {
|
|
159
|
-
if (item.url === tab.url) {
|
|
160
|
-
tabFound = true;
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
if (tabFound) tabToClose.push(item);
|
|
164
|
-
}
|
|
165
|
-
for (const item of tabToClose) {
|
|
166
|
-
tabStore.removeTab(item);
|
|
167
|
-
}
|
|
168
|
-
if (tabActive.value !== tab.url) router.push(tab.url || "/");
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function newTab() {
|
|
172
|
-
setTimeout(() => {
|
|
173
|
-
emits("openSearch");
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function handleNotificationClick() {
|
|
178
|
-
// Clear unread count when notification bell is clicked
|
|
179
|
-
notifUnread.value = 0;
|
|
180
|
-
hasWebSocketNotif.value = false;
|
|
181
|
-
// showNotif.value = true;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
watch(keys["Shift+Cmd+X"], v => {
|
|
185
|
-
if (v) logoutConfirmOpen.value = !logoutConfirmOpen.value;
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
watch(route, () => {
|
|
189
|
-
updateBreadcrumbs();
|
|
190
|
-
tabActive.value = route.path;
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
onMounted(() => {
|
|
194
|
-
const authUserName = localStorage.getItem(userKey.value);
|
|
195
|
-
authUser.value.name = authUserName ? String(authUserName) : "";
|
|
196
|
-
api.get(apiEndpoints.value.auth.info).then(r => {
|
|
197
|
-
authUser.value.email = r.data.data.email;
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
tabActive.value = route.path;
|
|
201
|
-
|
|
202
|
-
updateBreadcrumbs();
|
|
203
|
-
});
|
|
204
|
-
</script>
|
|
205
|
-
|
|
206
|
-
<template>
|
|
207
|
-
<header class="fixed left-20 right-0 top-0 z-7 flex h-10 items-center border-b bg-white px-4 dark:border-dark_border dark:bg-dark_bg 2xl:h-14 2xl:px-6" ref="headerEl">
|
|
208
|
-
<div class="mr-auto flex gap-2 text-xs text-gray-500 2xl:text-sm">
|
|
209
|
-
<RouterLink to="/">Home</RouterLink>
|
|
210
|
-
<template v-for="(item, i) in breadcrumbs" :key="i">
|
|
211
|
-
<span>/</span>
|
|
212
|
-
<RouterLink :to="item.uri" :key="i" v-if="item.uri">{{ item.name }}</RouterLink>
|
|
213
|
-
<span v-else>{{ item.name }}</span>
|
|
214
|
-
</template>
|
|
215
|
-
</div>
|
|
216
|
-
|
|
217
|
-
<div class="ml-auto flex items-center">
|
|
218
|
-
<DropdownMenu v-model:open="showNotif">
|
|
219
|
-
<DropdownMenuTrigger>
|
|
220
|
-
<div
|
|
221
|
-
class="relative ml-2 flex size-7 cursor-pointer items-center justify-center rounded-full text-gray-500 transition hover:bg-hover_main hover:text-primary_main 2xl:size-8"
|
|
222
|
-
@click="handleNotificationClick">
|
|
223
|
-
<Bell class="size-[18px] transition 2xl:size-[22px]" />
|
|
224
|
-
<div class="absolute right-1 top-1 z-2 h-3 w-3 rounded-full border-2 border-white bg-red-600" v-if="notifUnread > 0 || hasWebSocketNotif"></div>
|
|
225
|
-
<!-- <svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="w-10 h-10 absolute -top-1 -left-1">
|
|
226
|
-
<circle cx="50" cy="50" fill="none" stroke="currentColor" stroke-width="5" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">
|
|
227
|
-
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>
|
|
228
|
-
</circle>
|
|
229
|
-
</svg> -->
|
|
230
|
-
</div>
|
|
231
|
-
</DropdownMenuTrigger>
|
|
232
|
-
<DropdownMenuContent class="mr-6 w-[400px] border-none p-0">
|
|
233
|
-
<Notif @close-dropdown="showNotif = false" />
|
|
234
|
-
</DropdownMenuContent>
|
|
235
|
-
</DropdownMenu>
|
|
236
|
-
|
|
237
|
-
<button @click="toggleDarkMode" class="relative ml-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-gray-500 transition hover:bg-hover_main hover:text-primary_main">
|
|
238
|
-
<Sun v-if="isDark" class="size-[18px] transition 2xl:size-[22px]" />
|
|
239
|
-
<Moon v-else class="size-[18px] transition 2xl:size-[22px]" />
|
|
240
|
-
</button>
|
|
241
|
-
<RouterLink to="/settings" class="relative ml-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full text-gray-500 transition hover:bg-hover_main hover:text-primary_main">
|
|
242
|
-
<Settings class="size-[18px] transition 2xl:size-[22px]" />
|
|
243
|
-
</RouterLink>
|
|
244
|
-
<DropdownMenu>
|
|
245
|
-
<DropdownMenuTrigger>
|
|
246
|
-
<div class="group ml-3 flex size-7 cursor-pointer items-center justify-center rounded-md bg-gray-100 transition hover:bg-hover_main dark:bg-gray-800 2xl:size-8">
|
|
247
|
-
<svg width="100" height="100" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" class="size-[14px] fill-gray-400 transition group-hover:fill-primary_main 2xl:size-[16px]">
|
|
248
|
-
<path
|
|
249
|
-
d="M1.61539 3.23077C1.29589 3.23077 0.983574 3.13603 0.717926 2.95853C0.452277 2.78103 0.245229 2.52874 0.122965 2.23357C0.000699922 1.93839 -0.0312901 1.61359 0.0310399 1.30024C0.0933699 0.986886 0.24722 0.699052 0.473136 0.473136C0.699052 0.24722 0.986886 0.0933699 1.30024 0.0310399C1.61359 -0.0312901 1.93839 0.000699922 2.23357 0.122965C2.52874 0.245229 2.78103 0.452277 2.95853 0.717926C3.13603 0.983574 3.23077 1.29589 3.23077 1.61539C3.23031 2.04367 3.05997 2.45428 2.75713 2.75713C2.45428 3.05997 2.04367 3.23031 1.61539 3.23077ZM6 3.23077C5.68051 3.23077 5.36819 3.13603 5.10254 2.95853C4.83689 2.78103 4.62984 2.52874 4.50758 2.23357C4.38531 1.93839 4.35333 1.61359 4.41566 1.30024C4.47798 0.986886 4.63184 0.699052 4.85775 0.473136C5.08367 0.24722 5.3715 0.0933699 5.68485 0.0310399C5.99821 -0.0312901 6.32301 0.000699922 6.61818 0.122965C6.91335 0.245229 7.16564 0.452277 7.34314 0.717926C7.52064 0.983574 7.61539 1.29589 7.61539 1.61539C7.61493 2.04367 7.44459 2.45428 7.14174 2.75713C6.8389 3.05997 6.42829 3.23031 6 3.23077ZM10.3846 3.23077C10.0651 3.23077 9.7528 3.13603 9.48716 2.95853C9.22151 2.78103 9.01446 2.52874 8.8922 2.23357C8.76993 1.93839 8.73794 1.61359 8.80027 1.30024C8.8626 0.986886 9.01645 0.699052 9.24237 0.473136C9.46828 0.24722 9.75612 0.0933699 10.0695 0.0310399C10.3828 -0.0312901 10.7076 0.000699922 11.0028 0.122965C11.298 0.245229 11.5503 0.452277 11.7278 0.717926C11.9053 0.983574 12 1.29589 12 1.61539C11.9995 2.04367 11.8292 2.45428 11.5264 2.75713C11.2235 3.05997 10.8129 3.23031 10.3846 3.23077ZM1.61539 7.61539C1.29589 7.61539 0.983574 7.52064 0.717926 7.34314C0.452277 7.16564 0.245229 6.91335 0.122965 6.61818C0.000699922 6.32301 -0.0312901 5.99821 0.0310399 5.68485C0.0933699 5.3715 0.24722 5.08367 0.473136 4.85775C0.699052 4.63184 0.986886 4.47798 1.30024 4.41566C1.61359 4.35333 1.93839 4.38531 2.23357 4.50758C2.52874 4.62984 2.78103 4.83689 2.95853 5.10254C3.13603 5.36819 3.23077 5.68051 3.23077 6C3.23031 6.42829 3.05997 6.8389 2.75713 7.14174C2.45428 7.44459 2.04367 7.61493 1.61539 7.61539ZM6 7.61539C5.68051 7.61539 5.36819 7.52064 5.10254 7.34314C4.83689 7.16564 4.62984 6.91335 4.50758 6.61818C4.38531 6.32301 4.35333 5.99821 4.41566 5.68485C4.47798 5.3715 4.63184 5.08367 4.85775 4.85775C5.08367 4.63184 5.3715 4.47798 5.68485 4.41566C5.99821 4.35333 6.32301 4.38531 6.61818 4.50758C6.91335 4.62984 7.16564 4.83689 7.34314 5.10254C7.52064 5.36819 7.61539 5.68051 7.61539 6C7.61493 6.42829 7.44459 6.8389 7.14174 7.14174C6.8389 7.44459 6.42829 7.61493 6 7.61539ZM10.3846 7.61539C10.0651 7.61539 9.7528 7.52064 9.48716 7.34314C9.22151 7.16564 9.01446 6.91335 8.8922 6.61818C8.76993 6.32301 8.73794 5.99821 8.80027 5.68485C8.8626 5.3715 9.01645 5.08367 9.24237 4.85775C9.46828 4.63184 9.75612 4.47798 10.0695 4.41566C10.3828 4.35333 10.7076 4.38531 11.0028 4.50758C11.298 4.62984 11.5503 4.83689 11.7278 5.10254C11.9053 5.36819 12 5.68051 12 6C11.9995 6.42829 11.8292 6.8389 11.5264 7.14174C11.2235 7.44459 10.8129 7.61493 10.3846 7.61539ZM1.61539 12C1.29589 12 0.983574 11.9053 0.717926 11.7278C0.452277 11.5503 0.245229 11.298 0.122965 11.0028C0.000699922 10.7076 -0.0312901 10.3828 0.0310399 10.0695C0.0933699 9.75612 0.24722 9.46828 0.473136 9.24237C0.699052 9.01645 0.986886 8.8626 1.30024 8.80027C1.61359 8.73794 1.93839 8.76993 2.23357 8.8922C2.52874 9.01446 2.78103 9.22151 2.95853 9.48716C3.13603 9.7528 3.23077 10.0651 3.23077 10.3846C3.23031 10.8129 3.05997 11.2235 2.75713 11.5264C2.45428 11.8292 2.04367 11.9995 1.61539 12ZM6 12C5.68051 12 5.36819 11.9053 5.10254 11.7278C4.83689 11.5503 4.62984 11.298 4.50758 11.0028C4.38531 10.7076 4.35333 10.3828 4.41566 10.0695C4.47798 9.75612 4.63184 9.46828 4.85775 9.24237C5.08367 9.01645 5.3715 8.8626 5.68485 8.80027C5.99821 8.73794 6.32301 8.76993 6.61818 8.8922C6.91335 9.01446 7.16564 9.22151 7.34314 9.48716C7.52064 9.7528 7.61539 10.0651 7.61539 10.3846C7.61493 10.8129 7.44459 11.2235 7.14174 11.5264C6.8389 11.8292 6.42829 11.9995 6 12ZM10.3846 12C10.0651 12 9.7528 11.9053 9.48716 11.7278C9.22151 11.5503 9.01446 11.298 8.8922 11.0028C8.76993 10.7076 8.73794 10.3828 8.80027 10.0695C8.8626 9.75612 9.01645 9.46828 9.24237 9.24237C9.46828 9.01645 9.75612 8.8626 10.0695 8.80027C10.3828 8.73794 10.7076 8.76993 11.0028 8.8922C11.298 9.01446 11.5503 9.22151 11.7278 9.48716C11.9053 9.7528 12 10.0651 12 10.3846C11.9995 10.8129 11.8292 11.2235 11.5264 11.5264C11.2235 11.8292 10.8129 11.9995 10.3846 12Z" />
|
|
250
|
-
</svg>
|
|
251
|
-
</div>
|
|
252
|
-
</DropdownMenuTrigger>
|
|
253
|
-
</DropdownMenu>
|
|
254
|
-
<DropdownMenu v-model:open="ddUserOpen">
|
|
255
|
-
<DropdownMenuTrigger>
|
|
256
|
-
<div class="ml-4 flex cursor-pointer items-center">
|
|
257
|
-
<Avatar class="mr-3 size-7 bg-green-300 font-semibold text-green-700 2xl:size-8">
|
|
258
|
-
<AvatarFallback v-if="authUser.name">
|
|
259
|
-
{{ authUser.name.substring(0, 1).toUpperCase() }}
|
|
260
|
-
</AvatarFallback>
|
|
261
|
-
</Avatar>
|
|
262
|
-
<div class="2x:text-md mr-3 text-sm">
|
|
263
|
-
<template v-if="authUser.name">{{ authUser.name }}</template>
|
|
264
|
-
<i class="font-light text-gray-400" v-else>Unnamed user</i>
|
|
265
|
-
</div>
|
|
266
|
-
<div class="flex h-6 w-6 items-center justify-center rounded-full bg-gray-100 transition hover:bg-hover_main hover:text-primary_main dark:bg-gray-800">
|
|
267
|
-
<ChevronDown class="w-4"></ChevronDown>
|
|
268
|
-
</div>
|
|
269
|
-
</div>
|
|
270
|
-
</DropdownMenuTrigger>
|
|
271
|
-
<DropdownMenuContent class="mr-6 w-72">
|
|
272
|
-
<div class="flex items-center px-4 py-3">
|
|
273
|
-
<Avatar class="mr-3 size-11 bg-green-300 text-lg font-semibold text-green-700">
|
|
274
|
-
<AvatarFallback v-if="authUser.name">
|
|
275
|
-
{{ authUser.name.substring(0, 1).toUpperCase() }}
|
|
276
|
-
</AvatarFallback>
|
|
277
|
-
</Avatar>
|
|
278
|
-
<div>
|
|
279
|
-
<h4 class="mb-[2px] text-base font-medium leading-tight">
|
|
280
|
-
<template v-if="authUser.name">{{ authUser.name }}</template>
|
|
281
|
-
<i class="font-light text-gray-400" v-else>Unnamed user</i>
|
|
282
|
-
</h4>
|
|
283
|
-
<p class="text-sm leading-none text-gray-500">
|
|
284
|
-
{{ authUser.email }}
|
|
285
|
-
</p>
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
<DropdownMenuSeparator class="mb-2" />
|
|
289
|
-
<ChangePwd class="block w-full cursor-pointer rounded-md border-none bg-none px-5 py-2 text-left text-sm text-primary_main transition hover:bg-hover_main" v-on:finish="closeDrodown">
|
|
290
|
-
Change Password
|
|
291
|
-
</ChangePwd>
|
|
292
|
-
<RouterLink to="/docs" class="flex w-full cursor-pointer items-center rounded-md border-none bg-none px-5 py-2 text-left text-sm transition hover:bg-hover_main">
|
|
293
|
-
<LucideBookOpenText class="mr-2" :size="18" :stroke-width="1.4" />
|
|
294
|
-
Documentation
|
|
295
|
-
</RouterLink>
|
|
296
|
-
<DropdownMenuSeparator></DropdownMenuSeparator>
|
|
297
|
-
<DropdownMenuItem class="cursor-pointer rounded-md py-2 pl-5" v-on:click="logoutConfirmOpen = true">
|
|
298
|
-
<LogOut class="mr-2 h-4 w-4"></LogOut>
|
|
299
|
-
<span>Logout</span>
|
|
300
|
-
<DropdownMenuShortcut>⇧⌘X</DropdownMenuShortcut>
|
|
301
|
-
</DropdownMenuItem>
|
|
302
|
-
</DropdownMenuContent>
|
|
303
|
-
</DropdownMenu>
|
|
304
|
-
</div>
|
|
305
|
-
</header>
|
|
306
|
-
<div class="tab-cnt fixed left-20 right-0 top-10 z-10 flex h-8 overflow-auto border-b bg-white px-1 text-[15px] dark:border-dark_border dark:bg-dark_bg 2xl:top-14 2xl:h-10 2xl:px-3">
|
|
307
|
-
<ContextMenu v-for="(tab, i) in tabStore.tabs" :key="i">
|
|
308
|
-
<ContextMenuTrigger>
|
|
309
|
-
<RouterLink
|
|
310
|
-
:to="tab.url || '#'"
|
|
311
|
-
class="group relative flex h-8 cursor-pointer items-center rounded-t-lg py-2 pl-3 pr-1.5 text-gray-500 dark:text-gray-300 2xl:h-10"
|
|
312
|
-
:class="{ 'bg-slate-50 text-primary_main dark:bg-dark_bg2': tabActive === tab.url }">
|
|
313
|
-
<div class="overflow-hidden text-ellipsis whitespace-nowrap text-xs font-semibold 2xl:text-sm">
|
|
314
|
-
{{ tab.name }}
|
|
315
|
-
</div>
|
|
316
|
-
<button
|
|
317
|
-
class="ml-1.5 flex size-5 flex-none items-center justify-center rounded-full opacity-0 transition hover:bg-slate-200 group-hover:opacity-100"
|
|
318
|
-
:class="{ 'opacity-100': tabActive === tab.url }"
|
|
319
|
-
v-on:click.prevent="closeTab(tab)">
|
|
320
|
-
<LucideX class="text-gray-500" :size="15" />
|
|
321
|
-
</button>
|
|
322
|
-
<div class="absolute bottom-0 left-0 right-0 h-0.5 rounded-t-full transition group-hover:bg-gray-400" :class="{ '!bg-primary_main': tabActive === tab.url }"></div>
|
|
323
|
-
</RouterLink>
|
|
324
|
-
</ContextMenuTrigger>
|
|
325
|
-
<ContextMenuContent class="w-56">
|
|
326
|
-
<ContextMenuItem v-on:click.prevent="newTab">
|
|
327
|
-
<LucidePlusCircle class="mr-[9px]" :size="15" />
|
|
328
|
-
New Tab
|
|
329
|
-
<ContextMenuShortcut>⌘⇧T</ContextMenuShortcut>
|
|
330
|
-
</ContextMenuItem>
|
|
331
|
-
<ContextMenuItem>
|
|
332
|
-
<LucideRotateCw class="mr-[9px]" :size="15" />
|
|
333
|
-
Reload
|
|
334
|
-
<ContextMenuShortcut>⌘⇧R</ContextMenuShortcut>
|
|
335
|
-
</ContextMenuItem>
|
|
336
|
-
<ContextMenuSeparator />
|
|
337
|
-
<ContextMenuItem inset v-on:click.prevent="closeTab(tab)"> Close </ContextMenuItem>
|
|
338
|
-
<ContextMenuItem inset v-on:click.prevent="closeTabOthers(tab)"> Close Others </ContextMenuItem>
|
|
339
|
-
<ContextMenuItem inset v-on:click.prevent="closeTabRight(tab)"> Close to the Right </ContextMenuItem>
|
|
340
|
-
<ContextMenuSeparator />
|
|
341
|
-
<ContextMenuItem>
|
|
342
|
-
<LucidePin class="mr-[9px] text-orange-500" :size="15" fill="currentcolor" />
|
|
343
|
-
Pin
|
|
344
|
-
</ContextMenuItem>
|
|
345
|
-
</ContextMenuContent>
|
|
346
|
-
</ContextMenu>
|
|
347
|
-
<button class="ml-2 mt-1 flex size-6 items-center justify-center rounded-full transition hover:bg-slate-200 hover:text-primary_main 2xl:size-8" v-on:click="newTab">
|
|
348
|
-
<LucidePlusCircle :stroke-width="1.5" class="size-[18px] 2xl:size-[22px]" />
|
|
349
|
-
</button>
|
|
350
|
-
</div>
|
|
351
|
-
|
|
352
|
-
<AlertDialog v-model:open="logoutConfirmOpen">
|
|
353
|
-
<AlertDialogContent class="w-96 dark:bg-dark_bg2">
|
|
354
|
-
<AlertDialogHeader>
|
|
355
|
-
<AlertDialogTitle>Logout dari {{ companyName }}</AlertDialogTitle>
|
|
356
|
-
<AlertDialogDescription> Apakah kamu yakin ingin logout dari {{ companyName }}? kamu dapat login kembali kapan aja. </AlertDialogDescription>
|
|
357
|
-
</AlertDialogHeader>
|
|
358
|
-
<AlertDialogFooter>
|
|
359
|
-
<AlertDialogCancel>Batal</AlertDialogCancel>
|
|
360
|
-
<AlertDialogAction class="bg-red-600 hover:bg-red-500" v-on:click="doLogout">Logout</AlertDialogAction>
|
|
361
|
-
</AlertDialogFooter>
|
|
362
|
-
</AlertDialogContent>
|
|
363
|
-
</AlertDialog>
|
|
364
|
-
|
|
365
|
-
<main class="notif-cnt">
|
|
366
|
-
<section class="fixed right-8 top-14 z-999" v-on:mouseleave="fnBlur">
|
|
367
|
-
<ul
|
|
368
|
-
class="notif-ul h-28 overflow-auto p-3 transition-all hover:mt-0 hover:h-auto hover:max-h-[calc(100%-3.5rem)]"
|
|
369
|
-
v-for="(item, i) in floatingNotifs"
|
|
370
|
-
:key="i"
|
|
371
|
-
:class="{
|
|
372
|
-
'-mt-8': i > 0,
|
|
373
|
-
'!h-0 scale-0 !p-0 opacity-0': !item.visible
|
|
374
|
-
}"
|
|
375
|
-
v-on:mouseenter="fnHover(item)">
|
|
376
|
-
<li class="mb-2 min-w-[365px] rounded-lg bg-white px-4 py-4 text-[13px]" v-for="i in 20" :key="i" :class="`notif-item-${i > 3 ? 'x' : i}`">
|
|
377
|
-
<h4 class="font-semibold">Event has been created</h4>
|
|
378
|
-
<p>Monday, January 3rd at 6:00pm</p>
|
|
379
|
-
</li>
|
|
380
|
-
</ul>
|
|
381
|
-
</section>
|
|
382
|
-
</main>
|
|
383
|
-
<LoadingDialog ref="loadingDialogEl" />
|
|
384
|
-
</template>
|
|
385
|
-
|
|
386
|
-
<style scoped lang="scss">
|
|
387
|
-
.tab-cnt {
|
|
388
|
-
scrollbar-width: none; /* Firefox */
|
|
389
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
390
|
-
&::-webkit-scrollbar {
|
|
391
|
-
display: none;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.notif-ul {
|
|
396
|
-
// background-color: red;
|
|
397
|
-
max-height: 60vh !important;
|
|
398
|
-
li {
|
|
399
|
-
box-shadow: 0 2px 12px rgba($color: #000000, $alpha: 0.14);
|
|
400
|
-
transition: all 0.36s ease;
|
|
401
|
-
&.notif-item-x {
|
|
402
|
-
opacity: 0;
|
|
403
|
-
transform: scale(0.82) translateY(-400%);
|
|
404
|
-
}
|
|
405
|
-
&.notif-item-1 {
|
|
406
|
-
display: block;
|
|
407
|
-
position: relative;
|
|
408
|
-
z-index: 9;
|
|
409
|
-
}
|
|
410
|
-
&.notif-item-2 {
|
|
411
|
-
transform: scale(0.94) translateY(-100%);
|
|
412
|
-
position: relative;
|
|
413
|
-
z-index: 8;
|
|
414
|
-
}
|
|
415
|
-
&.notif-item-3 {
|
|
416
|
-
transform: scale(0.88) translateY(-214%);
|
|
417
|
-
position: relative;
|
|
418
|
-
z-index: 7;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
&:hover {
|
|
422
|
-
li {
|
|
423
|
-
transform: none;
|
|
424
|
-
opacity: 1;
|
|
425
|
-
&.notif-item-x {
|
|
426
|
-
display: block;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
</style>
|