@dragonmastery/dragoncore-vue 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CreateTeamForm-DmBiBqC0.js → CreateTeamForm-BuplRIXl.js} +2 -2
- package/dist/{CreateTeamForm-DmBiBqC0.js.map → CreateTeamForm-BuplRIXl.js.map} +1 -1
- package/dist/{CreateTeamForm-DoMkefS8.js → CreateTeamForm-Cy29yHqJ.js} +2 -2
- package/dist/{CreditBalanceDashboard-B-CQpNNH.js → CreditBalanceDashboard-DzWc30u_.js} +2 -2
- package/dist/{CreditBalanceDashboard-B-CQpNNH.js.map → CreditBalanceDashboard-DzWc30u_.js.map} +1 -1
- package/dist/{CreditBalanceDashboard-C9aofnmG.js → CreditBalanceDashboard-rN0W4Dxv.js} +4 -4
- package/dist/{CreditManagement-BqwuCfPL.js → CreditManagement-2dBjtV5Q.js} +4 -4
- package/dist/{CreditManagement-DC-v2lmd.js → CreditManagement-Bs4gqN11.js} +2 -2
- package/dist/{CreditManagement-DC-v2lmd.js.map → CreditManagement-Bs4gqN11.js.map} +1 -1
- package/dist/{CreditTransactionHistory-Cnf23BQr.js → CreditTransactionHistory-D_fy5d3l.js} +2 -2
- package/dist/{CreditTransactionHistory-Cnf23BQr.js.map → CreditTransactionHistory-D_fy5d3l.js.map} +1 -1
- package/dist/{CustomerCreateSupportTicketForm-BglXTkKj.js → CustomerCreateSupportTicketForm-B9bxGTOX.js} +3 -3
- package/dist/{CustomerCreateSupportTicketForm-DpMy7RN3.js → CustomerCreateSupportTicketForm-e8cIzSS6.js} +2 -2
- package/dist/{CustomerCreateSupportTicketForm-DpMy7RN3.js.map → CustomerCreateSupportTicketForm-e8cIzSS6.js.map} +1 -1
- package/dist/{CustomerSupportTicketList-DgXBedwz.js → CustomerSupportTicketList-CJIV2v6_.js} +19 -19
- package/dist/{CustomerSupportTicketSuccess-BQ_a8BPV.js → CustomerSupportTicketSuccess-B5E7Mr0R.js} +2 -2
- package/dist/{CustomerSupportTicketSuccess-BQ_a8BPV.js.map → CustomerSupportTicketSuccess-B5E7Mr0R.js.map} +1 -1
- package/dist/{CustomerSupportTicketSuccess-DToQdwdr.js → CustomerSupportTicketSuccess-iLsr2cWy.js} +3 -3
- package/dist/{EditTeamForm-BKnTz2F4.js → EditTeamForm-BJBTHghU.js} +2 -2
- package/dist/{EditTeamForm-Cgi1EghV.js → EditTeamForm-BbSQ8cdm.js} +2 -2
- package/dist/{EditTeamForm-Cgi1EghV.js.map → EditTeamForm-BbSQ8cdm.js.map} +1 -1
- package/dist/{LoginForm-DPmrJ_wm.js → LoginForm-D1Mx2vAY.js} +59 -37
- package/dist/LoginForm-D1Mx2vAY.js.map +1 -0
- package/dist/{LoginForm-By2I6TuV.js → LoginForm-p2fJiTtw.js} +1 -1
- package/dist/{Logout-DnkdqN78.js → Logout-Bdktl4NZ.js} +2 -2
- package/dist/Logout-Bdktl4NZ.js.map +1 -0
- package/dist/{Logout-DZD4gSWp.js → Logout-CmKJK14I.js} +1 -1
- package/dist/{SavedFiltersPage-CQl3CThS.js → SavedFiltersPage-BViMOhvn.js} +20 -20
- package/dist/{SavedFiltersPage-CQl3CThS.js.map → SavedFiltersPage-BViMOhvn.js.map} +1 -1
- package/dist/{StaffCreateSupportTicketForm-DZLB4g3g.js → StaffCreateSupportTicketForm-BmqqHlqp.js} +3 -3
- package/dist/{StaffCreateSupportTicketForm-BlXd0-fF.js → StaffCreateSupportTicketForm-C-UWBdA6.js} +2 -2
- package/dist/{StaffCreateSupportTicketForm-BlXd0-fF.js.map → StaffCreateSupportTicketForm-C-UWBdA6.js.map} +1 -1
- package/dist/{StaffSupportTicketList-qPI92eBV.js → StaffSupportTicketList-90I_ljzX.js} +19 -19
- package/dist/{StaffSupportTicketSuccess-DSKqZFmV.js → StaffSupportTicketSuccess-CW1yJhtp.js} +3 -3
- package/dist/{StaffSupportTicketSuccess-D9ZUkc88.js → StaffSupportTicketSuccess-TEtJGyaZ.js} +2 -2
- package/dist/{StaffSupportTicketSuccess-D9ZUkc88.js.map → StaffSupportTicketSuccess-TEtJGyaZ.js.map} +1 -1
- package/dist/{TeamAttachmentsTab-BmypKYXr.js → TeamAttachmentsTab-BgnU0y6j.js} +19 -19
- package/dist/{TeamList-DlHGLlmO.js → TeamList-Y5FzwNeV.js} +2 -2
- package/dist/{TeamList-BlwTWVnP.js → TeamList-ggZEivO2.js} +2 -2
- package/dist/{TeamList-BlwTWVnP.js.map → TeamList-ggZEivO2.js.map} +1 -1
- package/dist/{TeamParent-pt8XxZpt.js → TeamParent-C1pHDWY1.js} +2 -2
- package/dist/{TeamParent-EPbNiMmg.js → TeamParent-CObyDkrL.js} +2 -2
- package/dist/{TeamParent-EPbNiMmg.js.map → TeamParent-CObyDkrL.js.map} +1 -1
- package/dist/{ViewTeam-tBi95Q7D.js → ViewTeam-Dj0JSLzE.js} +2 -2
- package/dist/{ViewTeam-BeSKgVYp.js → ViewTeam-RXno7OPV.js} +2 -2
- package/dist/{ViewTeam-BeSKgVYp.js.map → ViewTeam-RXno7OPV.js.map} +1 -1
- package/dist/{customerSupportTicketRoutes-aXOZjl41.js → customerSupportTicketRoutes-Cmva-eXn.js} +5 -5
- package/dist/{customerSupportTicketRoutes-aXOZjl41.js.map → customerSupportTicketRoutes-Cmva-eXn.js.map} +1 -1
- package/dist/index.d.ts +1143 -1096
- package/dist/index.js +20 -20
- package/dist/{saved_filter-DMUiaPSP.js → saved_filter-C1pXMOJZ.js} +2 -2
- package/dist/{saved_filter-DMUiaPSP.js.map → saved_filter-C1pXMOJZ.js.map} +1 -1
- package/dist/{src-DJeB_pSK.js → src-qjXj41gp.js} +28 -8
- package/dist/{src-DJeB_pSK.js.map → src-qjXj41gp.js.map} +1 -1
- package/dist/{staffSupportTicketRoutes-bHqYUfii.js → staffSupportTicketRoutes-BUa3oCVP.js} +5 -5
- package/dist/{staffSupportTicketRoutes-bHqYUfii.js.map → staffSupportTicketRoutes-BUa3oCVP.js.map} +1 -1
- package/dist/{teamRoutes-CbCuofgD.js → teamRoutes-DxVWQDWU.js} +7 -7
- package/dist/{teamRoutes-CbCuofgD.js.map → teamRoutes-DxVWQDWU.js.map} +1 -1
- package/package.json +2 -2
- package/dist/LoginForm-DPmrJ_wm.js.map +0 -1
- package/dist/Logout-DnkdqN78.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as createLastUsedPresetGuard } from "./saved_filter-
|
|
1
|
+
import { o as createLastUsedPresetGuard } from "./saved_filter-C1pXMOJZ.js";
|
|
2
2
|
import { c as userAuthenticated, s as staffOnly } from "./userAuthorized-klLUHGxT.js";
|
|
3
3
|
|
|
4
4
|
//#region src/slices/support_ticket/staff/staffSupportTicketRoutes.ts
|
|
@@ -60,7 +60,7 @@ const staffSupportTicketRoutes = [{
|
|
|
60
60
|
{
|
|
61
61
|
path: staffSupportPaths.staff_list.path,
|
|
62
62
|
name: staffSupportPaths.staff_list.name,
|
|
63
|
-
component: () => import("./StaffSupportTicketList-
|
|
63
|
+
component: () => import("./StaffSupportTicketList-90I_ljzX.js"),
|
|
64
64
|
beforeEnter: (to) => staffListPresetGuard(to),
|
|
65
65
|
meta: {
|
|
66
66
|
title: "Manage Support",
|
|
@@ -74,7 +74,7 @@ const staffSupportTicketRoutes = [{
|
|
|
74
74
|
{
|
|
75
75
|
path: staffSupportPaths.staff_create.path,
|
|
76
76
|
name: staffSupportPaths.staff_create.name,
|
|
77
|
-
component: () => import("./StaffCreateSupportTicketForm-
|
|
77
|
+
component: () => import("./StaffCreateSupportTicketForm-BmqqHlqp.js"),
|
|
78
78
|
meta: {
|
|
79
79
|
title: "Create Support Ticket",
|
|
80
80
|
description: "Create new support ticket item",
|
|
@@ -90,7 +90,7 @@ const staffSupportTicketRoutes = [{
|
|
|
90
90
|
{
|
|
91
91
|
path: staffSupportPaths.staff_create_success.path,
|
|
92
92
|
name: staffSupportPaths.staff_create_success.name,
|
|
93
|
-
component: () => import("./StaffSupportTicketSuccess-
|
|
93
|
+
component: () => import("./StaffSupportTicketSuccess-CW1yJhtp.js"),
|
|
94
94
|
meta: {
|
|
95
95
|
title: "Support Ticket Created",
|
|
96
96
|
description: "Support ticket created successfully",
|
|
@@ -132,4 +132,4 @@ const staffSupportTicketRoutes = [{
|
|
|
132
132
|
|
|
133
133
|
//#endregion
|
|
134
134
|
export { staffSupportTicketRoutes as n, staffSupportPaths as t };
|
|
135
|
-
//# sourceMappingURL=staffSupportTicketRoutes-
|
|
135
|
+
//# sourceMappingURL=staffSupportTicketRoutes-BUa3oCVP.js.map
|
package/dist/{staffSupportTicketRoutes-bHqYUfii.js.map → staffSupportTicketRoutes-BUa3oCVP.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staffSupportTicketRoutes-
|
|
1
|
+
{"version":3,"file":"staffSupportTicketRoutes-BUa3oCVP.js","names":["staffSupportTicketRoutes: Array<ExtendedRouteRecordRaw>"],"sources":["../src/slices/support_ticket/staff/staffSupportTicketRoutes.ts"],"sourcesContent":["import { createLastUsedPresetGuard } from '../../../slices/saved_filter';\nimport { staffOnly, userAuthenticated } from '../../../middleware/userAuthorized';\nimport type { ExtendedRouteRecordRaw } from '../../../types/ExtendedRoute';\n\nconst staffListPresetGuard = createLastUsedPresetGuard('support_ticket_staff', 'StaffSupportTicketList');\n\nexport const staffSupportPaths = {\n staff_list: {\n path: '',\n full_path: '/staff/support',\n name: 'StaffSupportTicketList',\n },\n staff_create: {\n path: 'create',\n full_path: '/staff/support/create',\n name: 'StaffCreateSupportTicket',\n },\n staff_create_success: {\n path: 'create/success',\n full_path: '/staff/support/create/success',\n name: 'StaffSupportTicketSuccess',\n },\n staff_edit: {\n path: ':id',\n full_path: '/staff/support/:id',\n name: 'StaffEditSupportTicket',\n },\n staff_workflow: {\n path: 'workflow',\n full_path: '/staff/support/:id/workflow',\n name: 'StaffSupportTicketWorkflow',\n },\n staff_customer_notes: {\n path: 'customer-notes',\n full_path: '/staff/support/:id/customer-notes',\n name: 'StaffSupportTicketCustomerNotes',\n },\n staff_internal_notes: {\n path: 'internal-notes',\n full_path: '/staff/support/:id/internal-notes',\n name: 'StaffSupportTicketInternalNotes',\n },\n staff_history: {\n path: 'history',\n full_path: '/staff/support/:id/history',\n name: 'StaffSupportTicketHistory',\n },\n staff_attachments: {\n path: 'attachments',\n full_path: '/staff/support/:id/attachments',\n name: 'StaffSupportTicketAttachments',\n },\n} as const;\n\nexport const staffSupportTicketRoutes: Array<ExtendedRouteRecordRaw> = [\n {\n path: '/staff/support',\n name: 'StaffSupportTicket',\n redirect: { name: staffSupportPaths.staff_list.name },\n beforeEnter: [userAuthenticated, staffOnly],\n meta: {},\n children: [\n {\n path: staffSupportPaths.staff_list.path,\n name: staffSupportPaths.staff_list.name,\n component: () => import('./StaffSupportTicketList.vue'),\n beforeEnter: (to) => staffListPresetGuard(to),\n meta: {\n title: 'Manage Support',\n description: 'Admin support ticket management',\n side_bar: {\n section: ' Staff',\n visible_to: ['staff', 'super_admin'],\n },\n },\n },\n {\n path: staffSupportPaths.staff_create.path,\n name: staffSupportPaths.staff_create.name,\n component: () => import('./StaffCreateSupportTicketForm.vue'),\n meta: {\n title: 'Create Support Ticket',\n description: 'Create new support ticket item',\n breadcrumbs: [\n {\n label: 'Staff Support Ticket',\n to: { name: staffSupportPaths.staff_list.name },\n },\n {\n label: 'Create',\n to: { name: staffSupportPaths.staff_create.name },\n },\n ],\n },\n },\n {\n path: staffSupportPaths.staff_create_success.path,\n name: staffSupportPaths.staff_create_success.name,\n component: () => import('./StaffSupportTicketSuccess.vue'),\n meta: {\n title: 'Support Ticket Created',\n description: 'Support ticket created successfully',\n breadcrumbs: [\n {\n label: 'Staff Support Ticket',\n to: { name: staffSupportPaths.staff_list.name },\n },\n {\n label: 'Create',\n to: { name: staffSupportPaths.staff_create.name },\n },\n {\n label: 'Success',\n to: { name: staffSupportPaths.staff_create_success.name },\n },\n ],\n },\n },\n {\n path: staffSupportPaths.staff_edit.path,\n component: () => import('./StaffSupportTicketParent.vue'),\n meta: {\n title: 'View Support Ticket',\n description: 'View support ticket details',\n },\n children: [\n {\n path: '',\n name: staffSupportPaths.staff_edit.name,\n component: () => import('./StaffSupportTicketDetailPage.vue'),\n meta: {\n title: 'View Support Ticket',\n description: 'View support ticket details',\n },\n },\n ],\n },\n ],\n },\n];\n"],"mappings":";;;;AAIA,MAAM,uBAAuB,0BAA0B,wBAAwB,yBAAyB;AAExG,MAAa,oBAAoB;CAC/B,YAAY;EACV,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,cAAc;EACZ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,sBAAsB;EACpB,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,YAAY;EACV,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,gBAAgB;EACd,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,sBAAsB;EACpB,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,sBAAsB;EACpB,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,eAAe;EACb,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,mBAAmB;EACjB,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACF;AAED,MAAaA,2BAA0D,CACrE;CACE,MAAM;CACN,MAAM;CACN,UAAU,EAAE,MAAM,kBAAkB,WAAW,MAAM;CACrD,aAAa,CAAC,mBAAmB,UAAU;CAC3C,MAAM,EAAE;CACR,UAAU;EACR;GACE,MAAM,kBAAkB,WAAW;GACnC,MAAM,kBAAkB,WAAW;GACnC,iBAAiB,OAAO;GACxB,cAAc,OAAO,qBAAqB,GAAG;GAC7C,MAAM;IACJ,OAAO;IACP,aAAa;IACb,UAAU;KACR,SAAS;KACT,YAAY,CAAC,SAAS,cAAc;KACrC;IACF;GACF;EACD;GACE,MAAM,kBAAkB,aAAa;GACrC,MAAM,kBAAkB,aAAa;GACrC,iBAAiB,OAAO;GACxB,MAAM;IACJ,OAAO;IACP,aAAa;IACb,aAAa,CACX;KACE,OAAO;KACP,IAAI,EAAE,MAAM,kBAAkB,WAAW,MAAM;KAChD,EACD;KACE,OAAO;KACP,IAAI,EAAE,MAAM,kBAAkB,aAAa,MAAM;KAClD,CACF;IACF;GACF;EACD;GACE,MAAM,kBAAkB,qBAAqB;GAC7C,MAAM,kBAAkB,qBAAqB;GAC7C,iBAAiB,OAAO;GACxB,MAAM;IACJ,OAAO;IACP,aAAa;IACb,aAAa;KACX;MACE,OAAO;MACP,IAAI,EAAE,MAAM,kBAAkB,WAAW,MAAM;MAChD;KACD;MACE,OAAO;MACP,IAAI,EAAE,MAAM,kBAAkB,aAAa,MAAM;MAClD;KACD;MACE,OAAO;MACP,IAAI,EAAE,MAAM,kBAAkB,qBAAqB,MAAM;MAC1D;KACF;IACF;GACF;EACD;GACE,MAAM,kBAAkB,WAAW;GACnC,iBAAiB,OAAO;GACxB,MAAM;IACJ,OAAO;IACP,aAAa;IACd;GACD,UAAU,CACR;IACE,MAAM;IACN,MAAM,kBAAkB,WAAW;IACnC,iBAAiB,OAAO;IACxB,MAAM;KACJ,OAAO;KACP,aAAa;KACd;IACF,CACF;GACF;EACF;CACF,CACF"}
|
|
@@ -54,7 +54,7 @@ const teamRoutes = [{
|
|
|
54
54
|
{
|
|
55
55
|
path: teamPaths.list.path,
|
|
56
56
|
name: teamPaths.list.name,
|
|
57
|
-
component: () => import("./TeamList-
|
|
57
|
+
component: () => import("./TeamList-Y5FzwNeV.js"),
|
|
58
58
|
meta: {
|
|
59
59
|
title: "Teams",
|
|
60
60
|
description: "Manage teams",
|
|
@@ -72,7 +72,7 @@ const teamRoutes = [{
|
|
|
72
72
|
{
|
|
73
73
|
path: teamPaths.create.path,
|
|
74
74
|
name: teamPaths.create.name,
|
|
75
|
-
component: () => import("./CreateTeamForm-
|
|
75
|
+
component: () => import("./CreateTeamForm-Cy29yHqJ.js"),
|
|
76
76
|
meta: {
|
|
77
77
|
title: "Create Team",
|
|
78
78
|
description: "Create new team",
|
|
@@ -87,7 +87,7 @@ const teamRoutes = [{
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
path: teamPaths.view.path,
|
|
90
|
-
component: () => import("./TeamParent-
|
|
90
|
+
component: () => import("./TeamParent-C1pHDWY1.js"),
|
|
91
91
|
meta: { sectionTabs: [
|
|
92
92
|
{
|
|
93
93
|
id: "view",
|
|
@@ -124,7 +124,7 @@ const teamRoutes = [{
|
|
|
124
124
|
{
|
|
125
125
|
path: "",
|
|
126
126
|
name: teamPaths.view.name,
|
|
127
|
-
component: () => import("./ViewTeam-
|
|
127
|
+
component: () => import("./ViewTeam-Dj0JSLzE.js"),
|
|
128
128
|
meta: {
|
|
129
129
|
title: "View Team",
|
|
130
130
|
description: "View team details",
|
|
@@ -134,7 +134,7 @@ const teamRoutes = [{
|
|
|
134
134
|
{
|
|
135
135
|
path: teamPaths.edit.path,
|
|
136
136
|
name: teamPaths.edit.name,
|
|
137
|
-
component: () => import("./EditTeamForm-
|
|
137
|
+
component: () => import("./EditTeamForm-BJBTHghU.js"),
|
|
138
138
|
meta: {
|
|
139
139
|
title: "Edit Team",
|
|
140
140
|
description: "Edit team details",
|
|
@@ -154,7 +154,7 @@ const teamRoutes = [{
|
|
|
154
154
|
{
|
|
155
155
|
path: teamPaths.attachments.path,
|
|
156
156
|
name: teamPaths.attachments.name,
|
|
157
|
-
component: () => import("./TeamAttachmentsTab-
|
|
157
|
+
component: () => import("./TeamAttachmentsTab-BgnU0y6j.js"),
|
|
158
158
|
meta: {
|
|
159
159
|
title: "Team Attachments",
|
|
160
160
|
description: "View and manage attachments",
|
|
@@ -189,4 +189,4 @@ const teamRoutes = [{
|
|
|
189
189
|
|
|
190
190
|
//#endregion
|
|
191
191
|
export { teamRoutes as n, teamPaths as t };
|
|
192
|
-
//# sourceMappingURL=teamRoutes-
|
|
192
|
+
//# sourceMappingURL=teamRoutes-DxVWQDWU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRoutes-
|
|
1
|
+
{"version":3,"file":"teamRoutes-DxVWQDWU.js","names":["teamRoutes: Array<ExtendedRouteRecordRaw>"],"sources":["../src/slices/team/teamRoutes.ts"],"sourcesContent":["import { userAuthenticated } from '../../middleware/userAuthorized';\nimport type { ExtendedRouteRecordRaw } from '../../types/ExtendedRoute';\nimport { teamMemberPaths, teamMemberRoutes } from './team_member/team_memberRoutes';\n\nexport const teamPaths = {\n list: {\n path: '',\n full_path: '/teams',\n name: 'TeamList',\n },\n create: {\n path: 'create',\n full_path: '/teams/create',\n name: 'CreateTeam',\n },\n view: {\n path: ':id',\n full_path: '/teams/:id',\n name: 'ViewTeam',\n },\n edit: {\n path: 'edit',\n full_path: '/teams/:id/edit',\n name: 'EditTeam',\n },\n notes: {\n path: 'notes',\n full_path: '/teams/:id/notes',\n name: 'TeamNotes',\n },\n attachments: {\n path: 'attachments',\n full_path: '/teams/:id/attachments',\n name: 'TeamAttachments',\n },\n history: {\n path: 'history',\n full_path: '/teams/:id/history',\n name: 'TeamHistory',\n },\n members: {\n path: 'members',\n full_path: '/teams/:id/members',\n name: 'TeamMembers',\n },\n} as const;\n\nexport const teamRoutes: Array<ExtendedRouteRecordRaw> = [\n {\n path: '/teams',\n name: 'Team',\n redirect: { name: teamPaths.list.name },\n beforeEnter: [userAuthenticated],\n meta: {},\n children: [\n {\n path: teamPaths.list.path,\n name: teamPaths.list.name,\n component: () => import('./TeamList.vue'),\n meta: {\n title: 'Teams',\n description: 'Manage teams',\n side_bar: {\n section: 'Teams',\n visible_to: ['consumer', 'lead', 'staff', 'super_admin'],\n },\n },\n },\n {\n path: teamPaths.create.path,\n name: teamPaths.create.name,\n component: () => import('./CreateTeamForm.vue'),\n meta: {\n title: 'Create Team',\n description: 'Create new team',\n breadcrumbs: [\n {\n label: 'Teams',\n to: { name: teamPaths.list.name },\n },\n {\n label: 'Create',\n to: { name: teamPaths.create.name },\n },\n ],\n },\n },\n {\n path: teamPaths.view.path,\n component: () => import('./TeamParent.vue'),\n meta: {\n // Define team detail tabs\n sectionTabs: [\n {\n id: 'view',\n label: 'View',\n to: { name: teamPaths.view.name },\n },\n {\n id: 'edit',\n label: 'Edit',\n to: { name: teamPaths.edit.name },\n },\n {\n id: 'notes',\n label: 'Notes',\n to: { name: teamPaths.notes.name },\n },\n {\n id: 'attachments',\n label: 'Attachments',\n to: { name: teamPaths.attachments.name },\n },\n {\n id: 'history',\n label: 'History',\n to: { name: teamPaths.history.name },\n },\n {\n id: 'members',\n label: 'Members',\n to: { name: teamMemberPaths.list.name },\n },\n ],\n },\n children: [\n {\n path: '',\n name: teamPaths.view.name,\n component: () => import('./ViewTeam.vue'),\n meta: {\n title: 'View Team',\n description: 'View team details',\n currentTab: 'view',\n },\n },\n {\n path: teamPaths.edit.path,\n name: teamPaths.edit.name,\n component: () => import('./EditTeamForm.vue'),\n meta: {\n title: 'Edit Team',\n description: 'Edit team details',\n currentTab: 'edit',\n },\n },\n {\n path: teamPaths.notes.path,\n name: teamPaths.notes.name,\n component: () => import('./TeamNotesTab.vue'),\n meta: {\n title: 'Team Notes',\n description: 'View and manage notes',\n currentTab: 'notes',\n },\n },\n {\n path: teamPaths.attachments.path,\n name: teamPaths.attachments.name,\n component: () => import('./TeamAttachmentsTab.vue'),\n meta: {\n title: 'Team Attachments',\n description: 'View and manage attachments',\n currentTab: 'attachments',\n },\n },\n {\n path: teamPaths.history.path,\n name: teamPaths.history.name,\n component: () => import('./TeamHistoryTab.vue'),\n meta: {\n title: 'Team History',\n description: 'View audit trail and changes',\n currentTab: 'history',\n },\n },\n {\n path: teamPaths.members.path,\n name: teamPaths.members.name,\n component: () => import('./TeamMembersTab.vue'),\n meta: {\n title: 'Team Members',\n description: 'View and manage team members',\n currentTab: 'members',\n },\n children: teamMemberRoutes,\n },\n ],\n },\n ],\n },\n];\n"],"mappings":";;;;AAIA,MAAa,YAAY;CACvB,MAAM;EACJ,MAAM;EACN,WAAW;EACX,MAAM;EACP;CACD,QAAQ;EACN,MAAM;EACN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ACP,IAAI,EAAE,MAAM,UAAU,YAAY,MAAM;KACzC;IACD;KACE,IAAI;KACJ,OAAO;KACP,IAAI,EAAE,MAAM,UAAU,QAAQ,MAAM;KACrC;IACD;KACE,IAAI;KACJ,OAAO;KACP,IAAI,EAAE,MAAM,gBAAgB,KAAK,MAAM;KACxC;IACF,EACF;GACD,UAAU;IACR;KACE,MAAM;KACN,MAAM,UAAU,KAAK;KACrB,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACF;IACD;KACE,MAAM,UAAU,KAAK;KACrB,MAAM,UAAU,KAAK;KACrB,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACF;IACD;KACE,MAAM,UAAU,MAAM;KACtB,MAAM,UAAU,MAAM;KACtB,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACF;IACD;KACE,MAAM,UAAU,YAAY;KAC5B,MAAM,UAAU,YAAY;KAC5B,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACF;IACD;KACE,MAAM,UAAU,QAAQ;KACxB,MAAM,UAAU,QAAQ;KACxB,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACF;IACD;KACE,MAAM,UAAU,QAAQ;KACxB,MAAM,UAAU,QAAQ;KACxB,iBAAiB,OAAO;KACxB,MAAM;MACJ,OAAO;MACP,aAAa;MACb,YAAY;MACb;KACD,UAAU;KACX;IACF;GACF;EACF;CACF,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dragonmastery/dragoncore-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "Vue 3 components and composables for dragoncore",
|
|
5
5
|
"author": "DragonMastery",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"vue3-toastify": "0.2.8"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@dragonmastery/dragoncore-shared": "^0.0.
|
|
44
|
+
"@dragonmastery/dragoncore-shared": "^0.0.27",
|
|
45
45
|
"@dragonmastery/zinia-forms-core": ">=0.5.11",
|
|
46
46
|
"@vueuse/core": ">=14.0.0",
|
|
47
47
|
"pinia": ">=3.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm-DPmrJ_wm.js","names":[],"sources":["../src/slices/auth/features/login/loginSchema.ts","../src/slices/auth/features/login/LoginForm.vue"],"sourcesContent":["import { withMetadata } from '@dragonmastery/zinia-forms-core';\nimport { loginSchema } from '@dragonmastery/dragoncore-shared';\nimport { z } from 'zod';\n\n// Define the login form type\nexport type LoginForm = z.infer<typeof loginSchema>;\n\n// Enhance the schema with metadata\nexport const loginSchemaWithMetadata = withMetadata(loginSchema, 'loginSchema', {\n email: {\n inputType: 'email',\n placeholder: 'you@example.com',\n helpText: 'Enter the email address you used to register',\n autocomplete: 'username',\n className: 'login-field',\n autofocus: true,\n },\n\n password: {\n inputType: 'password',\n placeholder: '••••••••',\n helpText: 'Must be at least 8 characters',\n autocomplete: 'current-password',\n className: 'login-field',\n },\n});\n","<template>\n <div class=\"max-w-md mx-auto bg-base-200 p-6 rounded-xl shadow-md container\">\n <h1 class=\"text-2xl font-bold mb-6 text-center\">Login</h1>\n\n <ZiniaForm @handle-submit=\"handleSubmit\" @success=\"handleSuccess\" @error=\"handleError\">\n <zinia.EmailField />\n <zinia.PasswordField />\n\n <ZiniaSubmitButton submitText=\"Login\" submittingText=\"Logging in...\" />\n\n <!-- Error banner underneath login button - backend owns the message -->\n <div\n v-if=\"loginBannerMessage\"\n class=\"mt-4 p-4 rounded-lg bg-error/15 text-error\"\n >\n <p class=\"text-sm\">{{ loginBannerMessage }}</p>\n </div>\n\n <div class=\"mt-2\">\n <AppLink :to=\"forgotPasswordLink\" class=\"link-accent link\">\n Forgot your password?\n </AppLink>\n </div>\n <div v-if=\"allowUserSignup\" class=\"text-center mt-2\">\n <p>\n Don't have an account?\n <AppLink class=\"link-accent link\" :to=\"signupLink\">Sign up</AppLink>\n </p>\n </div>\n </ZiniaForm>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport AppLink from '../../../../components/AppLink.vue';\nimport { useMutation } from '../../../../composables/useMutation';\nimport { useEnv } from '../../../../composables/useEnv';\nimport { useUserSessionStore } from '../../../../composables/useUserSessionStore';\nimport { getValidReturnUrl, withReturnUrl } from '../../../../utils/useReturnUrl';\nimport { useForm } from '@dragonmastery/zinia-forms-core';\nimport { computed, ref } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { z } from 'zod';\nimport { loginSchemaWithMetadata } from './loginSchema';\n\nconst { allowUserSignup, emailVerificationMode } = useEnv();\nconst route = useRoute();\nconst returnUrl = computed(() => route.query.returnUrl as string | undefined);\nconst forgotPasswordLink = computed(() => withReturnUrl('/auth/forgot-password', returnUrl.value));\nconst signupLink = computed(() => withReturnUrl('/auth/signup', returnUrl.value));\n\nconst loginBannerMessage = ref<string | null>(null);\n\n// Create a type-safe form using our schema with metadata\nconst { form, zinia, ZiniaForm, ZiniaSubmitButton } = useForm(loginSchemaWithMetadata, {\n storeName: 'login-form',\n persistToLocalStorage: false,\n renderStyle: 'daisy_ui',\n});\n\nconst sessionStore = useUserSessionStore();\nconst router = useRouter();\nconst { mutate: loginMutate } = useMutation(\n (api, input: z.infer<typeof loginSchemaWithMetadata>) => api.userSessions.login(input),\n { credentials: 'include' }, // Include credentials to allow cookies\n);\n\n// Handle form submission\nconst handleSubmit = async (data: z.infer<typeof loginSchemaWithMetadata>) => {\n loginBannerMessage.value = null;\n\n const loginData = await loginMutate(data);\n if (!loginData) throw new Error('Login failed');\n const { access_token, user_details_token } = loginData;\n if (!access_token || !user_details_token) throw new Error('Invalid login response');\n\n return loginData;\n};\n\n// Handle success\nconst handleSuccess = async (data: {\n access_token: string;\n user_details_token: string;\n frontend_session?: { user?: { email_verified?: boolean } };\n}) => {\n sessionStore.setSession(data.user_details_token);\n sessionStore.setAccessToken(data.access_token);\n\n form.reset();\n loginBannerMessage.value = null;\n\n const emailVerified = data.frontend_session?.user?.email_verified ?? true;\n const needsVerification =\n emailVerificationMode === 'strict' && !emailVerified;\n\n const targetPath = needsVerification\n ? withReturnUrl('/auth/verify-email', returnUrl.value)\n : getValidReturnUrl(router.currentRoute.value, '/');\n\n await router.push(targetPath);\n};\n\n// Handle error - display backend message (backend owns error messaging)\nconst handleError = (error: unknown) => {\n loginBannerMessage.value =\n error instanceof Error ? error.message : 'Invalid username or password was entered.';\n};\n</script>\n"],"mappings":";;;;;;;;;;AAQA,MAAa,0BAA0B,aAAa,aAAa,eAAe;CAC9E,OAAO;EACL,WAAW;EACX,aAAa;EACb,UAAU;EACV,cAAc;EACd,WAAW;EACX,WAAW;EACZ;CAED,UAAU;EACR,WAAW;EACX,aAAa;EACb,UAAU;EACV,cAAc;EACd,WAAW;EACZ;CACF,CAAC;;;;;;;;;;;;;;;;;;ECoBF,MAAM,EAAE,iBAAiB,0BAA0B,QAAQ;EAC3D,MAAM,QAAQ,UAAU;EACxB,MAAM,YAAY,eAAe,MAAM,MAAM,UAAgC;EAC7E,MAAM,qBAAqB,eAAe,cAAc,yBAAyB,UAAU,MAAM,CAAC;EAClG,MAAM,aAAa,eAAe,cAAc,gBAAgB,UAAU,MAAM,CAAC;EAEjF,MAAM,qBAAqB,IAAmB,KAAK;EAGnD,MAAM,EAAE,MAAM,OAAO,WAAW,sBAAsB,QAAQ,yBAAyB;GACrF,WAAW;GACX,uBAAuB;GACvB,aAAa;GACd,CAAC;EAEF,MAAM,eAAe,qBAAqB;EAC1C,MAAM,SAAS,WAAW;EAC1B,MAAM,EAAE,QAAQ,gBAAgB,aAC7B,KAAK,UAAmD,IAAI,aAAa,MAA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JN,YAIM,CAHJ,YAEU,iBAAA;MAFA,IAAI,mBAAA;MAAoB,OAAM;;6BAExC,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAF2D,2BAE3D,GAAA,CAAA,EAAA,CAAA;;;KAES,MAAA,gBAAe,IAAA,WAAA,EAA1B,mBAKM,OALN,YAKM,CAJJ,mBAGI,KAAA,MAAA,CAAA,OAAA,OAAA,OAAA,KAAA,gBAHD,4BAED,GAAA,GAAA,YAAoE,iBAAA;MAA3D,OAAM;MAAoB,IAAI,WAAA;;6BAAmB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAP,WAAO,GAAA,CAAA,EAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logout-DnkdqN78.js","names":["error: unknown"],"sources":["../src/slices/auth/features/Logout.vue"],"sourcesContent":["<template>\n <div class=\"min-h-screen flex items-center justify-center bg-base-100\">\n <div class=\"max-w-md mx-auto bg-base-200 p-8 rounded-xl shadow-md text-center\">\n <div v-if=\"status === 'loading'\" class=\"space-y-4\">\n <div class=\"flex justify-center\">\n <span class=\"loading loading-spinner loading-lg text-primary\"></span>\n </div>\n <h2 class=\"text-2xl font-bold mb-2\">Logging out...</h2>\n <p class=\"text-base-content/70\">Please wait while we securely log you out</p>\n </div>\n <div v-else class=\"space-y-4\">\n <h2 class=\"text-2xl font-bold mb-2\">\n {{ status === 'success' ? 'Logged out' : 'Logout failed' }}\n </h2>\n <p class=\"text-base-content/70\">\n {{ status === 'success'\n ? 'Redirecting you...'\n : 'Redirecting you to login...' }}\n </p>\n <p class=\"text-sm text-base-content/60\">\n If you aren't redirected automatically,\n <AppLink :to=\"redirectTo\" class=\"link link-primary\">click here</AppLink>.\n </p>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport AppLink from '../../../components/AppLink.vue';\nimport { useMutation } from '../../../composables/useMutation';\nimport { useUserSessionStore } from '../../../composables/useUserSessionStore';\nimport { getValidReturnUrl } from '../../../utils/useReturnUrl';\nimport { onMounted, computed, ref } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\nimport { toast } from 'vue3-toastify';\n\nconst sessionStore = useUserSessionStore();\nconst route = useRoute();\nconst router = useRouter();\nconst status = ref<'loading' | 'success' | 'error'>('loading');\n\nconst redirectTo = computed(() =>\n getValidReturnUrl(route, '/auth/login'),\n);\n\nconst { mutate: logoutMutate } = useMutation(\n (api) => api.userSessions.logout(),\n { credentials: 'include' }, // Include credentials to allow cookies\n);\n\nonMounted(async () => {\n try {\n await logoutMutate(undefined);\n sessionStore.clearSession();\n status.value = 'success';\n setTimeout(() => router.push(redirectTo.value), 1000);\n } catch (error: unknown) {\n status.value = 'error';\n toast.error(error instanceof Error ? error.message : 'Failed to logout', {\n autoClose: 2000,\n });\n setTimeout(() => router.push(redirectTo.value), 2000);\n }\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAqCA,MAAM,eAAe,qBAAqB;EAC1C,MAAM,QAAQ,UAAU;EACxB,MAAM,SAAS,WAAW;EAC1B,MAAM,SAAS,IAAqC,UAAU;EAE9D,MAAM,aAAa,eACjB,kBAAkB,OAAO,cAAc,CACxC;EAED,MAAM,EAAE,QAAQ,iBAAiB,aAC9B,QAAQ,IAAI,aAAa,QAAQ,EAClC,EAAE,aAAa,WAAW,CAC3B;AAED,YAAU,YAAY;AACpB,OAAI;AACF,UAAM,aAAa,OAAU;AAC7B,iBAAa,cAAc;AAC3B,WAAO,QAAQ;AACf,qBAAiB,OAAO,KAAK,WAAW,MAAM,EAAE,IAAK;YAC9CA,OAAgB;AACvB,WAAO,QAAQ;AACf,UAAM,MAAM,iBAAiB,QAAQ,MAAM,UAAU,oBAAoB,EACvE,WAAW,KACZ,CAAC;AACF,qBAAiB,OAAO,KAAK,WAAW,MAAM,EAAE,IAAK;;IAEvD;;uBA/DA,mBAwBM,OAxBN,YAwBM,CAvBJ,mBAsBM,OAtBN,YAsBM,C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