aq-fe-framework 0.1.57 → 0.1.59
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/{chunk-LJHYZ5B5.mjs → chunk-4MLNXP25.mjs} +11 -0
- package/dist/{chunk-OGYQLG4E.mjs → chunk-FIWXP56V.mjs} +949 -548
- package/dist/components/index.d.mts +16 -1
- package/dist/components/index.mjs +4 -2
- package/dist/modules-features/index.mjs +2 -2
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.mjs +3 -1
- package/package.json +5 -5
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createGenericStore,
|
|
3
|
-
useS_Sidebar
|
|
4
|
-
} from "./chunk-AL73DX37.mjs";
|
|
5
1
|
import {
|
|
6
2
|
U0DateToDDMMYYYString,
|
|
7
3
|
U0MyValidateEmail,
|
|
@@ -9,7 +5,11 @@ import {
|
|
|
9
5
|
utils_file_fileToAQDocumentType,
|
|
10
6
|
utils_notification_show,
|
|
11
7
|
utils_pdf_download
|
|
12
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4MLNXP25.mjs";
|
|
9
|
+
import {
|
|
10
|
+
createGenericStore,
|
|
11
|
+
useS_Sidebar
|
|
12
|
+
} from "./chunk-AL73DX37.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__objRest,
|
|
15
15
|
__spreadProps,
|
|
@@ -288,7 +288,7 @@ var getStatusColor = (status) => {
|
|
|
288
288
|
};
|
|
289
289
|
var PageTitle = ({ title: title3, status }) => {
|
|
290
290
|
const color = getStatusColor(status);
|
|
291
|
-
return /* @__PURE__ */ jsx6(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx6(Title, { children: title3 }) });
|
|
291
|
+
return /* @__PURE__ */ jsx6(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx6(Title, { order: 4, children: title3 }) });
|
|
292
292
|
};
|
|
293
293
|
function MyPageContent({ leftTopBar, title: title3, canBack = false, rightTopBar, status, children }) {
|
|
294
294
|
const SidebarStore = useS_Sidebar();
|
|
@@ -305,7 +305,7 @@ function MyPageContent({ leftTopBar, title: title3, canBack = false, rightTopBar
|
|
|
305
305
|
/* @__PURE__ */ jsx6(Code, { color: "var(--mantine-color-blue-light)", children: SidebarStore.state.menuCode })
|
|
306
306
|
] })
|
|
307
307
|
] }),
|
|
308
|
-
/* @__PURE__ */ jsx6(Divider, {}),
|
|
308
|
+
/* @__PURE__ */ jsx6(Divider, { my: "xs" }),
|
|
309
309
|
children
|
|
310
310
|
] });
|
|
311
311
|
}
|
|
@@ -3083,12 +3083,17 @@ var getOneLetterDayNames = (week, locale) => {
|
|
|
3083
3083
|
return date.toLocaleString(locale, { weekday: "short" }).charAt(0);
|
|
3084
3084
|
});
|
|
3085
3085
|
};
|
|
3086
|
-
var getDayNameShort = (date, locale) =>
|
|
3086
|
+
var getDayNameShort = (date, locale) => {
|
|
3087
|
+
if (locale === "he-IL") {
|
|
3088
|
+
return date.toLocaleString(locale, { weekday: "narrow" });
|
|
3089
|
+
}
|
|
3090
|
+
return date.toLocaleString(locale, { weekday: "short" });
|
|
3091
|
+
};
|
|
3087
3092
|
var getDayNamesShort = (week, locale) => {
|
|
3088
3093
|
return week.map((date) => getDayNameShort(date, locale));
|
|
3089
3094
|
};
|
|
3090
3095
|
var getOneLetterOrShortDayNames = (week, locale) => {
|
|
3091
|
-
if (["zh-cn", "zh-tw", "ca-es"].includes(locale.toLowerCase())) {
|
|
3096
|
+
if (["zh-cn", "zh-tw", "ca-es", "he-il"].includes(locale.toLowerCase())) {
|
|
3092
3097
|
return getDayNamesShort(week, locale);
|
|
3093
3098
|
}
|
|
3094
3099
|
return getOneLetterDayNames(week, locale);
|
|
@@ -3321,6 +3326,12 @@ var CalendarEventImpl = class {
|
|
|
3321
3326
|
writable: true,
|
|
3322
3327
|
value: void 0
|
|
3323
3328
|
});
|
|
3329
|
+
Object.defineProperty(this, "_createdAt", {
|
|
3330
|
+
enumerable: true,
|
|
3331
|
+
configurable: true,
|
|
3332
|
+
writable: true,
|
|
3333
|
+
value: void 0
|
|
3334
|
+
});
|
|
3324
3335
|
Object.defineProperty(this, "_eventFragments", {
|
|
3325
3336
|
enumerable: true,
|
|
3326
3337
|
configurable: true,
|
|
@@ -3635,7 +3646,7 @@ var getEventHeight = (start, end, dayBoundaries, pointsPerDay) => {
|
|
|
3635
3646
|
}
|
|
3636
3647
|
return timePointToPercentage(pointsPerDay, dayBoundaries, timePointsFromString(timeFromDateTime(end))) - timePointToPercentage(pointsPerDay, dayBoundaries, timePointsFromString(timeFromDateTime(start)));
|
|
3637
3648
|
};
|
|
3638
|
-
var
|
|
3649
|
+
var getInlineStartRule = (calendarEvent, eventWidth) => {
|
|
3639
3650
|
if (!calendarEvent._totalConcurrentEvents || !calendarEvent._previousConcurrentEvents)
|
|
3640
3651
|
return 0;
|
|
3641
3652
|
return (calendarEvent._previousConcurrentEvents || 0) / (calendarEvent._totalConcurrentEvents || 0) * eventWidth;
|
|
@@ -3738,6 +3749,9 @@ var focusModal = ($app) => {
|
|
|
3738
3749
|
eventModal.focus();
|
|
3739
3750
|
}, 100);
|
|
3740
3751
|
};
|
|
3752
|
+
var wasEventAddedInLastSecond = (calendarEvent) => {
|
|
3753
|
+
return calendarEvent._createdAt && Date.now() - calendarEvent._createdAt.getTime() < 1e3;
|
|
3754
|
+
};
|
|
3741
3755
|
function TimeGridEvent({ calendarEvent, dayBoundariesDateTime, isCopy, setMouseDown }) {
|
|
3742
3756
|
var _a, _b, _c, _d;
|
|
3743
3757
|
const $app = x2(AppContext);
|
|
@@ -3755,12 +3769,12 @@ function TimeGridEvent({ calendarEvent, dayBoundariesDateTime, isCopy, setMouseD
|
|
|
3755
3769
|
return `${localizedStartTime} \u2013 ${localizedEndTime}`;
|
|
3756
3770
|
};
|
|
3757
3771
|
const eventCSSVariables = {
|
|
3758
|
-
|
|
3772
|
+
borderInlineStart: `4px solid var(--sx-color-${calendarEvent._color})`,
|
|
3759
3773
|
textColor: `var(--sx-color-on-${calendarEvent._color}-container)`,
|
|
3760
3774
|
backgroundColor: `var(--sx-color-${calendarEvent._color}-container)`,
|
|
3761
3775
|
iconStroke: `var(--sx-color-on-${calendarEvent._color}-container)`
|
|
3762
3776
|
};
|
|
3763
|
-
const
|
|
3777
|
+
const insetInlineStart = getInlineStartRule(calendarEvent, $app.config.weekOptions.value.eventWidth);
|
|
3764
3778
|
const handleStartDrag = (uiEvent) => {
|
|
3765
3779
|
var _a2;
|
|
3766
3780
|
if (isUIEventTouchEvent(uiEvent))
|
|
@@ -3824,6 +3838,8 @@ function TimeGridEvent({ calendarEvent, dayBoundariesDateTime, isCopy, setMouseD
|
|
|
3824
3838
|
};
|
|
3825
3839
|
const borderRule = getBorderRule(calendarEvent);
|
|
3826
3840
|
const classNames = ["sx__time-grid-event", "sx__event"];
|
|
3841
|
+
if (wasEventAddedInLastSecond(calendarEvent))
|
|
3842
|
+
classNames.push("is-event-new");
|
|
3827
3843
|
if (isCopy)
|
|
3828
3844
|
classNames.push("is-event-copy");
|
|
3829
3845
|
if (!$app.config.weekOptions.value.eventOverlap && calendarEvent._maxConcurrentEvents && calendarEvent._maxConcurrentEvents > 1)
|
|
@@ -3844,14 +3860,14 @@ function TimeGridEvent({ calendarEvent, dayBoundariesDateTime, isCopy, setMouseD
|
|
|
3844
3860
|
return u2(k, { children: [u2("div", { id: isCopy ? getTimeGridEventCopyElementId(calendarEvent.id) : void 0, "data-event-id": calendarEvent.id, onClick: handleOnClick, onDblClick: handleOnDoubleClick, onKeyDown: handleKeyDown, onMouseDown: handlePointerDown, onMouseUp: handlePointerUp, onTouchStart: handlePointerDown, onTouchEnd: handlePointerUp, className: classNames.join(" "), tabIndex: 0, role: "button", style: {
|
|
3845
3861
|
top: `${getYCoordinateInTimeGrid(relativeStartWithinDayBoundary, $app.config.dayBoundaries.value, $app.config.timePointsPerDay)}%`,
|
|
3846
3862
|
height: `${getEventHeight(relativeStartWithinDayBoundary, calendarEvent.end, $app.config.dayBoundaries.value, $app.config.timePointsPerDay)}%`,
|
|
3847
|
-
|
|
3848
|
-
width: `${getWidthRule(
|
|
3863
|
+
insetInlineStart: `${insetInlineStart}%`,
|
|
3864
|
+
width: `${getWidthRule(insetInlineStart, isCopy ? 100 : $app.config.weekOptions.value.eventWidth, calendarEvent._maxConcurrentEvents, $app.config.weekOptions.value.eventOverlap)}%`,
|
|
3849
3865
|
backgroundColor: customComponent ? void 0 : eventCSSVariables.backgroundColor,
|
|
3850
3866
|
color: customComponent ? void 0 : eventCSSVariables.textColor,
|
|
3851
3867
|
borderTop: borderRule,
|
|
3852
|
-
|
|
3868
|
+
borderInlineEnd: borderRule,
|
|
3853
3869
|
borderBottom: borderRule,
|
|
3854
|
-
|
|
3870
|
+
borderInlineStart: customComponent ? void 0 : eventCSSVariables.borderInlineStart,
|
|
3855
3871
|
padding: customComponent ? "0" : void 0
|
|
3856
3872
|
}, children: u2("div", { "data-ccid": customComponentId, className: "sx__time-grid-event-inner", children: [!customComponent && !hasCustomContent && u2(k, { children: [calendarEvent.title && u2("div", { className: "sx__time-grid-event-title", children: calendarEvent.title }), u2("div", { className: "sx__time-grid-event-time", children: [u2(TimeIcon, { strokeColor: eventCSSVariables.iconStroke }), getEventTime(calendarEvent.start, calendarEvent.end)] }), calendarEvent.people && calendarEvent.people.length > 0 && u2("div", { className: "sx__time-grid-event-people", children: [u2(UserIcon, { strokeColor: eventCSSVariables.iconStroke }), concatenatePeople(calendarEvent.people)] }), calendarEvent.location && u2("div", { className: "sx__time-grid-event-location", children: [u2(LocationPinIcon, { strokeColor: eventCSSVariables.iconStroke }), calendarEvent.location] })] }), hasCustomContent && u2("div", { dangerouslySetInnerHTML: {
|
|
3857
3873
|
__html: ((_c = calendarEvent._customContent) === null || _c === void 0 ? void 0 : _c.timeGrid) || ""
|
|
@@ -4252,7 +4268,7 @@ function DateGridEvent({ calendarEvent, gridRow, isCopy }) {
|
|
|
4252
4268
|
const $app = x2(AppContext);
|
|
4253
4269
|
const { eventCopy, updateCopy, createDragStartTimeout, setClickedEventIfNotDragging, setClickedEvent } = useEventInteractions($app);
|
|
4254
4270
|
const eventCSSVariables = {
|
|
4255
|
-
|
|
4271
|
+
borderInlineStart: `4px solid var(--sx-color-${calendarEvent._color})`,
|
|
4256
4272
|
color: `var(--sx-color-on-${calendarEvent._color}-container)`,
|
|
4257
4273
|
backgroundColor: `var(--sx-color-${calendarEvent._color}-container)`
|
|
4258
4274
|
};
|
|
@@ -4273,8 +4289,20 @@ function DateGridEvent({ calendarEvent, gridRow, isCopy }) {
|
|
|
4273
4289
|
$app
|
|
4274
4290
|
});
|
|
4275
4291
|
};
|
|
4276
|
-
const
|
|
4277
|
-
const
|
|
4292
|
+
const startsBeforeWeek = dateFromDateTime(calendarEvent.start) < dateFromDateTime($app.calendarState.range.value.start);
|
|
4293
|
+
const endsAfterWeek = dateFromDateTime(calendarEvent.end) > dateFromDateTime($app.calendarState.range.value.end);
|
|
4294
|
+
const hasOverflowLeft = T2(() => {
|
|
4295
|
+
if ($app.config.direction === "ltr") {
|
|
4296
|
+
return startsBeforeWeek;
|
|
4297
|
+
}
|
|
4298
|
+
return endsAfterWeek;
|
|
4299
|
+
}, [startsBeforeWeek, endsAfterWeek]);
|
|
4300
|
+
const hasOverflowRight = T2(() => {
|
|
4301
|
+
if ($app.config.direction === "ltr") {
|
|
4302
|
+
return endsAfterWeek;
|
|
4303
|
+
}
|
|
4304
|
+
return startsBeforeWeek;
|
|
4305
|
+
}, [startsBeforeWeek, endsAfterWeek]);
|
|
4278
4306
|
const overflowStyles = { backgroundColor: eventCSSVariables.backgroundColor };
|
|
4279
4307
|
const customComponent = $app.config._customComponentFns.dateGridEvent;
|
|
4280
4308
|
let customComponentId = customComponent ? "custom-date-grid-event-" + randomStringId() : void 0;
|
|
@@ -4310,25 +4338,27 @@ function DateGridEvent({ calendarEvent, gridRow, isCopy }) {
|
|
|
4310
4338
|
];
|
|
4311
4339
|
if (isCopy)
|
|
4312
4340
|
eventClasses.push("sx__date-grid-event--copy");
|
|
4341
|
+
if (wasEventAddedInLastSecond(calendarEvent))
|
|
4342
|
+
eventClasses.push("is-event-new");
|
|
4313
4343
|
if (hasOverflowLeft)
|
|
4314
4344
|
eventClasses.push("sx__date-grid-event--overflow-left");
|
|
4315
4345
|
if (hasOverflowRight)
|
|
4316
4346
|
eventClasses.push("sx__date-grid-event--overflow-right");
|
|
4317
4347
|
if ((_a = calendarEvent._options) === null || _a === void 0 ? void 0 : _a.additionalClasses)
|
|
4318
4348
|
eventClasses.push(...calendarEvent._options.additionalClasses);
|
|
4319
|
-
const
|
|
4349
|
+
const borderInlineStartNonCustom = startsBeforeWeek ? "none" : eventCSSVariables.borderInlineStart;
|
|
4320
4350
|
const hasCustomContent = (_b = calendarEvent._customContent) === null || _b === void 0 ? void 0 : _b.dateGrid;
|
|
4321
4351
|
return u2(k, { children: [u2("div", { id: isCopy ? getTimeGridEventCopyElementId(calendarEvent.id) : void 0, tabIndex: 0, "aria-label": calendarEvent.title + " " + getTimeStamp(calendarEvent, $app.config.locale.value, $app.translate("to")), role: "button", "data-ccid": customComponentId, "data-event-id": calendarEvent.id, onMouseDown: (e4) => createDragStartTimeout(handleStartDrag, e4), onMouseUp: (e4) => setClickedEventIfNotDragging(calendarEvent, e4), onTouchStart: (e4) => createDragStartTimeout(handleStartDrag, e4), onTouchEnd: (e4) => setClickedEventIfNotDragging(calendarEvent, e4), onClick: (e4) => invokeOnEventClickCallback($app, calendarEvent, e4), onDblClick: (e4) => invokeOnEventDoubleClickCallback($app, calendarEvent, e4), onKeyDown: handleKeyDown, className: eventClasses.join(" "), style: __spreadValues({
|
|
4322
4352
|
width: `calc(${calendarEvent._nDaysInGrid * 100}% - ${getWidthToSubtract(hasOverflowLeft, hasOverflowRight, !customComponent)}px)`,
|
|
4323
4353
|
gridRow,
|
|
4324
4354
|
display: eventCopy ? "none" : "flex",
|
|
4325
4355
|
padding: customComponent ? "0px" : void 0,
|
|
4326
|
-
|
|
4356
|
+
borderInlineStart: customComponent ? void 0 : borderInlineStartNonCustom,
|
|
4327
4357
|
color: customComponent ? void 0 : eventCSSVariables.color,
|
|
4328
4358
|
backgroundColor: customComponent ? void 0 : eventCSSVariables.backgroundColor
|
|
4329
4359
|
}, getBorderRadius(hasOverflowLeft, hasOverflowRight, !!customComponent)), children: [!customComponent && !hasCustomContent && u2(k, { children: [hasOverflowLeft && u2("div", { className: "sx__date-grid-event--left-overflow", style: overflowStyles }), u2("span", { className: "sx__date-grid-event-text", children: [calendarEvent.title, " \xA0", dateTimeStringRegex.test(calendarEvent.start) && u2("span", { className: "sx__date-grid-event-time", children: timeFn(calendarEvent.start, $app.config.locale.value) })] }), hasOverflowRight && u2("div", { className: "sx__date-grid-event--right-overflow", style: overflowStyles })] }), hasCustomContent && u2("div", { dangerouslySetInnerHTML: {
|
|
4330
4360
|
__html: ((_c = calendarEvent._customContent) === null || _c === void 0 ? void 0 : _c.dateGrid) || ""
|
|
4331
|
-
} }), $app.config.plugins.resize && !((_d = calendarEvent._options) === null || _d === void 0 ? void 0 : _d.disableResize) && !
|
|
4361
|
+
} }), $app.config.plugins.resize && !((_d = calendarEvent._options) === null || _d === void 0 ? void 0 : _d.disableResize) && !endsAfterWeek && u2("div", { className: "sx__date-grid-event-resize-handle", onMouseDown: startResize })] }), eventCopy && u2(DateGridEvent, { calendarEvent: eventCopy, gridRow, isCopy: true })] });
|
|
4332
4362
|
}
|
|
4333
4363
|
function DateGridDay({ calendarEvents, date, backgroundEvents }) {
|
|
4334
4364
|
const $app = x2(AppContext);
|
|
@@ -4348,7 +4378,7 @@ function DateGridDay({ calendarEvents, date, backgroundEvents }) {
|
|
|
4348
4378
|
return u2("div", { className: "sx__date-grid-day", "data-date-grid-date": date, children: [fullDayBackgroundEvent && u2("div", { className: "sx__date-grid-background-event", title: fullDayBackgroundEvent.title, style: __spreadValues({}, fullDayBackgroundEvent.style) }), Object.values(calendarEvents).map((event, index) => {
|
|
4349
4379
|
if (event === DATE_GRID_BLOCKER || !event)
|
|
4350
4380
|
return u2("div", { className: "sx__date-grid-cell", style: { gridRow: index + 1 }, onMouseDown: handleMouseDown });
|
|
4351
|
-
return u2(DateGridEvent, { calendarEvent: event, gridRow: index + 1 });
|
|
4381
|
+
return u2(DateGridEvent, { calendarEvent: event, gridRow: index + 1 }, event.start + event.end);
|
|
4352
4382
|
}), u2("div", { className: "sx__spacer", onMouseDown: handleMouseDown })] });
|
|
4353
4383
|
}
|
|
4354
4384
|
var filterByRange = (events, range) => {
|
|
@@ -4506,14 +4536,45 @@ var formatRules = {
|
|
|
4506
4536
|
dashYMD: {
|
|
4507
4537
|
delimiter: DateFormatDelimiter.DASH,
|
|
4508
4538
|
order: DateFormatOrder.YMD
|
|
4539
|
+
},
|
|
4540
|
+
dashDMY: {
|
|
4541
|
+
delimiter: DateFormatDelimiter.DASH,
|
|
4542
|
+
order: DateFormatOrder.DMY
|
|
4509
4543
|
}
|
|
4510
4544
|
};
|
|
4511
4545
|
var dateFormatLocalizedRules = /* @__PURE__ */ new Map([
|
|
4512
|
-
["
|
|
4546
|
+
["ca-ES", formatRules.slashDMY],
|
|
4547
|
+
["cs-CZ", formatRules.periodDMY],
|
|
4548
|
+
["da-DK", formatRules.periodDMY],
|
|
4549
|
+
["de-DE", formatRules.periodDMY],
|
|
4513
4550
|
["en-GB", formatRules.slashDMY],
|
|
4551
|
+
["en-US", formatRules.slashMDY],
|
|
4552
|
+
["es-ES", formatRules.slashDMY],
|
|
4553
|
+
["et-EE", formatRules.periodDMY],
|
|
4554
|
+
["fi-FI", formatRules.periodDMY],
|
|
4555
|
+
["fr-FR", formatRules.slashDMY],
|
|
4556
|
+
["hr-HR", formatRules.periodDMY],
|
|
4557
|
+
["id-ID", formatRules.slashDMY],
|
|
4558
|
+
["it-IT", formatRules.slashDMY],
|
|
4559
|
+
["ja-JP", formatRules.slashYMD],
|
|
4560
|
+
["ko-KR", formatRules.slashYMD],
|
|
4561
|
+
["ky-KG", formatRules.slashDMY],
|
|
4562
|
+
["lt-LT", formatRules.dashYMD],
|
|
4563
|
+
["mk-MK", formatRules.periodDMY],
|
|
4564
|
+
["nl-NL", formatRules.dashDMY],
|
|
4565
|
+
["pl-PL", formatRules.periodDMY],
|
|
4566
|
+
["pt-BR", formatRules.slashDMY],
|
|
4567
|
+
["ro-RO", formatRules.periodDMY],
|
|
4568
|
+
["ru-RU", formatRules.periodDMY],
|
|
4569
|
+
["sk-SK", formatRules.periodDMY],
|
|
4570
|
+
["sl-SI", formatRules.periodDMY],
|
|
4571
|
+
["sr-Latn-RS", formatRules.periodDMY],
|
|
4572
|
+
["sr-RS", formatRules.periodDMY],
|
|
4573
|
+
["sv-SE", formatRules.dashYMD],
|
|
4574
|
+
["tr-TR", formatRules.periodDMY],
|
|
4575
|
+
["uk-UA", formatRules.periodDMY],
|
|
4514
4576
|
["zh-CN", formatRules.slashYMD],
|
|
4515
|
-
["
|
|
4516
|
-
["sv-SE", formatRules.dashYMD]
|
|
4577
|
+
["zh-TW", formatRules.slashYMD]
|
|
4517
4578
|
]);
|
|
4518
4579
|
var datePickerDeDE = {
|
|
4519
4580
|
Date: "Datum",
|
|
@@ -4540,7 +4601,15 @@ var calendarDeDE = {
|
|
|
4540
4601
|
"Link to 1 more event on {{date}}": "Link zu 1 weiteren Ereignis am {{date}}",
|
|
4541
4602
|
CW: "KW {{week}}"
|
|
4542
4603
|
};
|
|
4543
|
-
var
|
|
4604
|
+
var timePickerDeDE = {
|
|
4605
|
+
Time: "Uhrzeit",
|
|
4606
|
+
AM: "AM",
|
|
4607
|
+
PM: "PM",
|
|
4608
|
+
Cancel: "Abbrechen",
|
|
4609
|
+
OK: "OK",
|
|
4610
|
+
"Select time": "Uhrzeit ausw\xE4hlen"
|
|
4611
|
+
};
|
|
4612
|
+
var deDE = __spreadValues(__spreadValues(__spreadValues({}, datePickerDeDE), calendarDeDE), timePickerDeDE);
|
|
4544
4613
|
var datePickerEnUS = {
|
|
4545
4614
|
Date: "Date",
|
|
4546
4615
|
"MM/DD/YYYY": "MM/DD/YYYY",
|
|
@@ -4566,7 +4635,15 @@ var calendarEnUS = {
|
|
|
4566
4635
|
"Link to 1 more event on {{date}}": "Link to 1 more event on {{date}}",
|
|
4567
4636
|
CW: "Week {{week}}"
|
|
4568
4637
|
};
|
|
4569
|
-
var
|
|
4638
|
+
var timePickerEnUS = {
|
|
4639
|
+
Time: "Time",
|
|
4640
|
+
AM: "AM",
|
|
4641
|
+
PM: "PM",
|
|
4642
|
+
Cancel: "Cancel",
|
|
4643
|
+
OK: "OK",
|
|
4644
|
+
"Select time": "Select time"
|
|
4645
|
+
};
|
|
4646
|
+
var enUS = __spreadValues(__spreadValues(__spreadValues({}, datePickerEnUS), calendarEnUS), timePickerEnUS);
|
|
4570
4647
|
var datePickerItIT = {
|
|
4571
4648
|
Date: "Data",
|
|
4572
4649
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4592,7 +4669,15 @@ var calendarItIT = {
|
|
|
4592
4669
|
"Link to 1 more event on {{date}}": "Link a 1 evento in pi\xF9 il {{date}}",
|
|
4593
4670
|
CW: "Settimana {{week}}"
|
|
4594
4671
|
};
|
|
4595
|
-
var
|
|
4672
|
+
var timePickerItIT = {
|
|
4673
|
+
Time: "Ora",
|
|
4674
|
+
AM: "AM",
|
|
4675
|
+
PM: "PM",
|
|
4676
|
+
Cancel: "Annulla",
|
|
4677
|
+
OK: "OK",
|
|
4678
|
+
"Select time": "Seleziona ora"
|
|
4679
|
+
};
|
|
4680
|
+
var itIT = __spreadValues(__spreadValues(__spreadValues({}, datePickerItIT), calendarItIT), timePickerItIT);
|
|
4596
4681
|
var datePickerEnGB = {
|
|
4597
4682
|
Date: "Date",
|
|
4598
4683
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4618,7 +4703,15 @@ var calendarEnGB = {
|
|
|
4618
4703
|
"Link to 1 more event on {{date}}": "Link to 1 more event on {{date}}",
|
|
4619
4704
|
CW: "Week {{week}}"
|
|
4620
4705
|
};
|
|
4621
|
-
var
|
|
4706
|
+
var timePickerEnGB = {
|
|
4707
|
+
Time: "Time",
|
|
4708
|
+
AM: "AM",
|
|
4709
|
+
PM: "PM",
|
|
4710
|
+
Cancel: "Cancel",
|
|
4711
|
+
OK: "OK",
|
|
4712
|
+
"Select time": "Select time"
|
|
4713
|
+
};
|
|
4714
|
+
var enGB = __spreadValues(__spreadValues(__spreadValues({}, datePickerEnGB), calendarEnGB), timePickerEnGB);
|
|
4622
4715
|
var datePickerSvSE = {
|
|
4623
4716
|
Date: "Datum",
|
|
4624
4717
|
"MM/DD/YYYY": "\xC5\xC5\xC5\xC5-MM-DD",
|
|
@@ -4644,7 +4737,15 @@ var calendarSvSE = {
|
|
|
4644
4737
|
"Link to 1 more event on {{date}}": "L\xE4nk till 1 h\xE4ndelse till den {{date}}",
|
|
4645
4738
|
CW: "Vecka {{week}}"
|
|
4646
4739
|
};
|
|
4647
|
-
var
|
|
4740
|
+
var timePickerSvSE = {
|
|
4741
|
+
Time: "Tid",
|
|
4742
|
+
AM: "FM",
|
|
4743
|
+
PM: "EM",
|
|
4744
|
+
Cancel: "Avbryt",
|
|
4745
|
+
OK: "OK",
|
|
4746
|
+
"Select time": "V\xE4lj tid"
|
|
4747
|
+
};
|
|
4748
|
+
var svSE = __spreadValues(__spreadValues(__spreadValues({}, datePickerSvSE), calendarSvSE), timePickerSvSE);
|
|
4648
4749
|
var datePickerZhCN = {
|
|
4649
4750
|
Date: "\u65E5\u671F",
|
|
4650
4751
|
"MM/DD/YYYY": "\u5E74/\u6708/\u65E5",
|
|
@@ -4670,7 +4771,15 @@ var calendarZhCN = {
|
|
|
4670
4771
|
"Link to 1 more event on {{date}}": "\u94FE\u63A5\u5230{{date}}\u4E0A\u76841\u4E2A\u66F4\u591A\u6D3B\u52A8",
|
|
4671
4772
|
CW: "\u7B2C{{week}}\u5468"
|
|
4672
4773
|
};
|
|
4673
|
-
var
|
|
4774
|
+
var timePickerZhCN = {
|
|
4775
|
+
Time: "\u65F6\u95F4",
|
|
4776
|
+
AM: "\u4E0A\u5348",
|
|
4777
|
+
PM: "\u4E0B\u5348",
|
|
4778
|
+
Cancel: "\u53D6\u6D88",
|
|
4779
|
+
OK: "\u786E\u5B9A",
|
|
4780
|
+
"Select time": "\u9009\u62E9\u65F6\u95F4"
|
|
4781
|
+
};
|
|
4782
|
+
var zhCN = __spreadValues(__spreadValues(__spreadValues({}, datePickerZhCN), calendarZhCN), timePickerZhCN);
|
|
4674
4783
|
var datePickerZhTW = {
|
|
4675
4784
|
Date: "\u65E5\u671F",
|
|
4676
4785
|
"MM/DD/YYYY": "\u5E74/\u6708/\u65E5",
|
|
@@ -4696,7 +4805,15 @@ var calendarZhTW = {
|
|
|
4696
4805
|
"Link to 1 more event on {{date}}": "\u9023\u63A5\u5230{{date}}\u4E0A\u76841\u500B\u66F4\u591A\u6D3B\u52D5",
|
|
4697
4806
|
CW: "\u7B2C{{week}}\u5468"
|
|
4698
4807
|
};
|
|
4699
|
-
var
|
|
4808
|
+
var timePickerZhTW = {
|
|
4809
|
+
Time: "\u6642\u9593",
|
|
4810
|
+
AM: "\u4E0A\u5348",
|
|
4811
|
+
PM: "\u4E0B\u5348",
|
|
4812
|
+
Cancel: "\u53D6\u6D88",
|
|
4813
|
+
OK: "\u78BA\u5B9A",
|
|
4814
|
+
"Select time": "\u9078\u64C7\u6642\u9593"
|
|
4815
|
+
};
|
|
4816
|
+
var zhTW = __spreadValues(__spreadValues(__spreadValues({}, datePickerZhTW), calendarZhTW), timePickerZhTW);
|
|
4700
4817
|
var datePickerJaJP = {
|
|
4701
4818
|
Date: "\u65E5\u4ED8",
|
|
4702
4819
|
"MM/DD/YYYY": "\u5E74/\u6708/\u65E5",
|
|
@@ -4722,7 +4839,15 @@ var calendarJaJP = {
|
|
|
4722
4839
|
"Link to 1 more event on {{date}}": "{{date}} \u306B1\u4EF6\u306E\u30A4\u30D9\u30F3\u30C8\u3078\u306E\u30EA\u30F3\u30AF",
|
|
4723
4840
|
CW: "\u9031 {{week}}"
|
|
4724
4841
|
};
|
|
4725
|
-
var
|
|
4842
|
+
var timePickerJaJP = {
|
|
4843
|
+
Time: "\u6642\u9593",
|
|
4844
|
+
AM: "\u5348\u524D",
|
|
4845
|
+
PM: "\u5348\u5F8C",
|
|
4846
|
+
Cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
4847
|
+
OK: "OK",
|
|
4848
|
+
"Select time": "\u6642\u9593\u3092\u9078\u629E"
|
|
4849
|
+
};
|
|
4850
|
+
var jaJP = __spreadValues(__spreadValues(__spreadValues({}, datePickerJaJP), calendarJaJP), timePickerJaJP);
|
|
4726
4851
|
var datePickerRuRU = {
|
|
4727
4852
|
Date: "\u0414\u0430\u0442\u0430",
|
|
4728
4853
|
"MM/DD/YYYY": "\u041C\u041C/\u0414\u0414/\u0413\u0413\u0413\u0413",
|
|
@@ -4748,7 +4873,15 @@ var calendarRuRU = {
|
|
|
4748
4873
|
"Link to 1 more event on {{date}}": "\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 1 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0431\u044B\u0442\u0438\u0435 \u043D\u0430 {{date}}",
|
|
4749
4874
|
CW: "\u041D\u0435\u0434\u0435\u043B\u044F {{week}}"
|
|
4750
4875
|
};
|
|
4751
|
-
var
|
|
4876
|
+
var timePickerRuRU = {
|
|
4877
|
+
Time: "\u0412\u0440\u0435\u043C\u044F",
|
|
4878
|
+
AM: "AM",
|
|
4879
|
+
PM: "PM",
|
|
4880
|
+
Cancel: "\u041E\u0442\u043C\u0435\u043D\u0430",
|
|
4881
|
+
OK: "\u041E\u041A",
|
|
4882
|
+
"Select time": "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043C\u044F"
|
|
4883
|
+
};
|
|
4884
|
+
var ruRU = __spreadValues(__spreadValues(__spreadValues({}, datePickerRuRU), calendarRuRU), timePickerRuRU);
|
|
4752
4885
|
var datePickerKoKR = {
|
|
4753
4886
|
Date: "\uC77C\uC790",
|
|
4754
4887
|
"MM/DD/YYYY": "\uB144/\uC6D4/\uC77C",
|
|
@@ -4774,7 +4907,15 @@ var calendarKoKR = {
|
|
|
4774
4907
|
"Link to 1 more event on {{date}}": "{{date}}\uC5D0 1\uAC1C \uC774\uC0C1\uC758 \uC774\uBCA4\uD2B8\uB85C \uC774\uB3D9",
|
|
4775
4908
|
CW: "{{week}}\uC8FC"
|
|
4776
4909
|
};
|
|
4777
|
-
var
|
|
4910
|
+
var timePickerKoKR = {
|
|
4911
|
+
Time: "\uC2DC\uAC04",
|
|
4912
|
+
AM: "\uC624\uC804",
|
|
4913
|
+
PM: "\uC624\uD6C4",
|
|
4914
|
+
Cancel: "\uCDE8\uC18C",
|
|
4915
|
+
OK: "\uD655\uC778",
|
|
4916
|
+
"Select time": "\uC2DC\uAC04 \uC120\uD0DD"
|
|
4917
|
+
};
|
|
4918
|
+
var koKR = __spreadValues(__spreadValues(__spreadValues({}, datePickerKoKR), calendarKoKR), timePickerKoKR);
|
|
4778
4919
|
var datePickerFrFR = {
|
|
4779
4920
|
Date: "Date",
|
|
4780
4921
|
"MM/DD/YYYY": "JJ/MM/AAAA",
|
|
@@ -4800,7 +4941,15 @@ var calendarFrFR = {
|
|
|
4800
4941
|
"Link to 1 more event on {{date}}": "Lien vers 1 autre \xE9v\xE9nement le {{date}}",
|
|
4801
4942
|
CW: "Semaine {{week}}"
|
|
4802
4943
|
};
|
|
4803
|
-
var
|
|
4944
|
+
var timePickerFrFR = {
|
|
4945
|
+
Time: "Heure",
|
|
4946
|
+
AM: "AM",
|
|
4947
|
+
PM: "PM",
|
|
4948
|
+
Cancel: "Annuler",
|
|
4949
|
+
OK: "OK",
|
|
4950
|
+
"Select time": "S\xE9lectionner l'heure"
|
|
4951
|
+
};
|
|
4952
|
+
var frFR = __spreadValues(__spreadValues(__spreadValues({}, datePickerFrFR), calendarFrFR), timePickerFrFR);
|
|
4804
4953
|
var datePickerDaDK = {
|
|
4805
4954
|
Date: "Dato",
|
|
4806
4955
|
"MM/DD/YYYY": "\xC5\xC5\xC5\xC5-MM-DD",
|
|
@@ -4826,7 +4975,15 @@ var calendarDaDK = {
|
|
|
4826
4975
|
"Link to 1 more event on {{date}}": "Link til 1 mere begivenhed den {{date}}",
|
|
4827
4976
|
CW: "Uge {{week}}"
|
|
4828
4977
|
};
|
|
4829
|
-
var
|
|
4978
|
+
var timePickerDaDK = {
|
|
4979
|
+
Time: "Tid",
|
|
4980
|
+
AM: "AM",
|
|
4981
|
+
PM: "PM",
|
|
4982
|
+
Cancel: "Annuller",
|
|
4983
|
+
OK: "OK",
|
|
4984
|
+
"Select time": "V\xE6lg tid"
|
|
4985
|
+
};
|
|
4986
|
+
var daDK = __spreadValues(__spreadValues(__spreadValues({}, datePickerDaDK), calendarDaDK), timePickerDaDK);
|
|
4830
4987
|
var datePickerPlPL = {
|
|
4831
4988
|
Date: "Data",
|
|
4832
4989
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4852,7 +5009,15 @@ var calendarPlPL = {
|
|
|
4852
5009
|
"Link to 1 more event on {{date}}": "Link do 1 kolejnego wydarzenia w dniu {{date}}",
|
|
4853
5010
|
CW: "Tydzie\u0144 {{week}}"
|
|
4854
5011
|
};
|
|
4855
|
-
var
|
|
5012
|
+
var timePickerPlPL = {
|
|
5013
|
+
Time: "Godzina",
|
|
5014
|
+
AM: "AM",
|
|
5015
|
+
PM: "PM",
|
|
5016
|
+
Cancel: "Anuluj",
|
|
5017
|
+
OK: "OK",
|
|
5018
|
+
"Select time": "Wybierz godzin\u0119"
|
|
5019
|
+
};
|
|
5020
|
+
var plPL = __spreadValues(__spreadValues(__spreadValues({}, datePickerPlPL), calendarPlPL), timePickerPlPL);
|
|
4856
5021
|
var datePickerEsES = {
|
|
4857
5022
|
Date: "Fecha",
|
|
4858
5023
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4878,7 +5043,15 @@ var calendarEsES = {
|
|
|
4878
5043
|
"Link to 1 more event on {{date}}": "Enlace a 1 evento m\xE1s el {{date}}",
|
|
4879
5044
|
CW: "Semana {{week}}"
|
|
4880
5045
|
};
|
|
4881
|
-
var
|
|
5046
|
+
var timePickerEsES = {
|
|
5047
|
+
Time: "Hora",
|
|
5048
|
+
AM: "AM",
|
|
5049
|
+
PM: "PM",
|
|
5050
|
+
Cancel: "Cancelar",
|
|
5051
|
+
OK: "Aceptar",
|
|
5052
|
+
"Select time": "Seleccionar hora"
|
|
5053
|
+
};
|
|
5054
|
+
var esES = __spreadValues(__spreadValues(__spreadValues({}, datePickerEsES), calendarEsES), timePickerEsES);
|
|
4882
5055
|
var calendarNlNL = {
|
|
4883
5056
|
Today: "Vandaag",
|
|
4884
5057
|
Month: "Maand",
|
|
@@ -4904,7 +5077,15 @@ var datePickerNlNL = {
|
|
|
4904
5077
|
"Previous month": "Vorige maand",
|
|
4905
5078
|
"Choose Date": "Kies datum"
|
|
4906
5079
|
};
|
|
4907
|
-
var
|
|
5080
|
+
var timePickerNlNL = {
|
|
5081
|
+
Time: "Tijd",
|
|
5082
|
+
AM: "AM",
|
|
5083
|
+
PM: "PM",
|
|
5084
|
+
Cancel: "Annuleren",
|
|
5085
|
+
OK: "OK",
|
|
5086
|
+
"Select time": "Selecteer tijd"
|
|
5087
|
+
};
|
|
5088
|
+
var nlNL = __spreadValues(__spreadValues(__spreadValues({}, datePickerNlNL), calendarNlNL), timePickerNlNL);
|
|
4908
5089
|
var datePickerPtBR = {
|
|
4909
5090
|
Date: "Data",
|
|
4910
5091
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4930,7 +5111,15 @@ var calendarPtBR = {
|
|
|
4930
5111
|
"Link to 1 more event on {{date}}": "Link para mais 1 evento em {{date}}",
|
|
4931
5112
|
CW: "Semana {{week}}"
|
|
4932
5113
|
};
|
|
4933
|
-
var
|
|
5114
|
+
var timePickerPtBR = {
|
|
5115
|
+
Time: "Hora",
|
|
5116
|
+
AM: "AM",
|
|
5117
|
+
PM: "PM",
|
|
5118
|
+
Cancel: "Cancelar",
|
|
5119
|
+
OK: "OK",
|
|
5120
|
+
"Select time": "Selecionar hora"
|
|
5121
|
+
};
|
|
5122
|
+
var ptBR = __spreadValues(__spreadValues(__spreadValues({}, datePickerPtBR), calendarPtBR), timePickerPtBR);
|
|
4934
5123
|
var datePickerSkSK = {
|
|
4935
5124
|
Date: "D\xE1tum",
|
|
4936
5125
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4956,7 +5145,15 @@ var calendarSkSK = {
|
|
|
4956
5145
|
"Link to 1 more event on {{date}}": "Odkaz na 1 \u010Fal\u0161iu udalos\u0165 d\u0148a {{date}}",
|
|
4957
5146
|
CW: "{{week}}. t\xFD\u017Ede\u0148"
|
|
4958
5147
|
};
|
|
4959
|
-
var
|
|
5148
|
+
var timePickerSkSK = {
|
|
5149
|
+
Time: "\u010Cas",
|
|
5150
|
+
AM: "AM",
|
|
5151
|
+
PM: "PM",
|
|
5152
|
+
Cancel: "Zru\u0161i\u0165",
|
|
5153
|
+
OK: "OK",
|
|
5154
|
+
"Select time": "Vybra\u0165 \u010Das"
|
|
5155
|
+
};
|
|
5156
|
+
var skSK = __spreadValues(__spreadValues(__spreadValues({}, datePickerSkSK), calendarSkSK), timePickerSkSK);
|
|
4960
5157
|
var datePickerMkMK = {
|
|
4961
5158
|
Date: "\u0414\u0430\u0442\u0443\u043C",
|
|
4962
5159
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -4982,7 +5179,15 @@ var calendarMkMK = {
|
|
|
4982
5179
|
"Link to 1 more event on {{date}}": "\u041B\u0438\u043D\u043A \u0434\u043E 1 \u043F\u043E\u0432\u0435\u045C\u0435 \u043D\u0430\u0441\u0442\u0430\u043D \u043D\u0430 {{date}}",
|
|
4983
5180
|
CW: "\u041D\u0435\u0434\u0435\u043B\u0430 {{week}}"
|
|
4984
5181
|
};
|
|
4985
|
-
var
|
|
5182
|
+
var timePickerMkMK = {
|
|
5183
|
+
Time: "\u0412\u0440\u0435\u043C\u0435",
|
|
5184
|
+
AM: "AM",
|
|
5185
|
+
PM: "PM",
|
|
5186
|
+
Cancel: "\u041E\u0442\u043A\u0430\u0436\u0438",
|
|
5187
|
+
OK: "\u0423 \u0440\u0435\u0434\u0443",
|
|
5188
|
+
"Select time": "\u0418\u0437\u0431\u0435\u0440\u0438 \u0432\u0440\u0435\u043C\u0435"
|
|
5189
|
+
};
|
|
5190
|
+
var mkMK = __spreadValues(__spreadValues(__spreadValues({}, datePickerMkMK), calendarMkMK), timePickerMkMK);
|
|
4986
5191
|
var datePickerTrTR = {
|
|
4987
5192
|
Date: "Tarih",
|
|
4988
5193
|
"MM/DD/YYYY": "GG/AA/YYYY",
|
|
@@ -5008,7 +5213,15 @@ var calendarTrTR = {
|
|
|
5008
5213
|
"Link to 1 more event on {{date}}": "{{date}} tarihinde 1 etkinli\u011Fe ba\u011Flant\u0131",
|
|
5009
5214
|
CW: "{{week}}. Hafta"
|
|
5010
5215
|
};
|
|
5011
|
-
var
|
|
5216
|
+
var timePickerTrTR = {
|
|
5217
|
+
Time: "Zaman",
|
|
5218
|
+
AM: "\xD6\xD6",
|
|
5219
|
+
PM: "\xD6S",
|
|
5220
|
+
Cancel: "\u0130ptal",
|
|
5221
|
+
OK: "Tamam",
|
|
5222
|
+
"Select time": "Zaman\u0131 se\xE7"
|
|
5223
|
+
};
|
|
5224
|
+
var trTR = __spreadValues(__spreadValues(__spreadValues({}, datePickerTrTR), calendarTrTR), timePickerTrTR);
|
|
5012
5225
|
var datePickerKyKG = {
|
|
5013
5226
|
Date: "\u0414\u0430\u0442\u0430\u0441\u044B",
|
|
5014
5227
|
"MM/DD/YYYY": "\u0410\u0410/\u041A\u041A/\u0416\u0416\u0416\u0416",
|
|
@@ -5034,7 +5247,15 @@ var calendarKyKG = {
|
|
|
5034
5247
|
"Link to 1 more event on {{date}}": "{{date}} \u043A\u04AF\u043D\u04AF\u043D\u0434\u04E9 1 \u043E\u043A\u0443\u044F\u0433\u0430 \u0431\u0430\u0439\u043B\u0430\u043D\u044B\u0448",
|
|
5035
5248
|
CW: "\u0410\u043F\u0442\u0430 {{week}}"
|
|
5036
5249
|
};
|
|
5037
|
-
var
|
|
5250
|
+
var timePickerKyKG = {
|
|
5251
|
+
Time: "\u0423\u0431\u0430\u043A\u0442\u044B",
|
|
5252
|
+
AM: "AM",
|
|
5253
|
+
PM: "PM",
|
|
5254
|
+
Cancel: "\u0411\u043E\u043B\u0431\u043E\u0439",
|
|
5255
|
+
OK: "\u041E\u043E\u0431\u0430",
|
|
5256
|
+
"Select time": "\u0423\u0431\u0430\u043A\u0442\u044B \u0442\u0430\u043D\u0434\u0430\u04A3\u044B\u0437"
|
|
5257
|
+
};
|
|
5258
|
+
var kyKG = __spreadValues(__spreadValues(__spreadValues({}, datePickerKyKG), calendarKyKG), timePickerKyKG);
|
|
5038
5259
|
var datePickerIdID = {
|
|
5039
5260
|
Date: "Tanggal",
|
|
5040
5261
|
"MM/DD/YYYY": "DD.MM.YYYY",
|
|
@@ -5060,7 +5281,15 @@ var calendarIdID = {
|
|
|
5060
5281
|
"Link to 1 more event on {{date}}": "Tautan ke 1 acara lainnya pada {{date}}",
|
|
5061
5282
|
CW: "Minggu {{week}}"
|
|
5062
5283
|
};
|
|
5063
|
-
var
|
|
5284
|
+
var timePickerIdID = {
|
|
5285
|
+
Time: "Waktu",
|
|
5286
|
+
AM: "AM",
|
|
5287
|
+
PM: "PM",
|
|
5288
|
+
Cancel: "Batalkan",
|
|
5289
|
+
OK: "OK",
|
|
5290
|
+
"Select time": "Pilih waktu"
|
|
5291
|
+
};
|
|
5292
|
+
var idID = __spreadValues(__spreadValues(__spreadValues({}, datePickerIdID), calendarIdID), timePickerIdID);
|
|
5064
5293
|
var datePickerCsCZ = {
|
|
5065
5294
|
Date: "Datum",
|
|
5066
5295
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -5086,7 +5315,15 @@ var calendarCsCZ = {
|
|
|
5086
5315
|
"Link to 1 more event on {{date}}": "Odkaz na 1 dal\u0161\xED ud\xE1lost dne {{date}}",
|
|
5087
5316
|
CW: "T\xFDden {{week}}"
|
|
5088
5317
|
};
|
|
5089
|
-
var
|
|
5318
|
+
var timePickerCsCZ = {
|
|
5319
|
+
Time: "\u010Cas",
|
|
5320
|
+
AM: "Dopoledne",
|
|
5321
|
+
PM: "Odpoledne",
|
|
5322
|
+
Cancel: "Zru\u0161it",
|
|
5323
|
+
OK: "OK",
|
|
5324
|
+
"Select time": "Vyberte \u010Das"
|
|
5325
|
+
};
|
|
5326
|
+
var csCZ = __spreadValues(__spreadValues(__spreadValues({}, datePickerCsCZ), calendarCsCZ), timePickerCsCZ);
|
|
5090
5327
|
var datePickerEtEE = {
|
|
5091
5328
|
Date: "Kuup\xE4ev",
|
|
5092
5329
|
"MM/DD/YYYY": "PP.KK.AAAA",
|
|
@@ -5111,7 +5348,15 @@ var calendarEtEE = {
|
|
|
5111
5348
|
"Link to 1 more event on {{date}}": "Link \xFChele lisas\xFCndmusele kuup\xE4eval {{date}}",
|
|
5112
5349
|
CW: "N\xE4dala number {{week}}"
|
|
5113
5350
|
};
|
|
5114
|
-
var
|
|
5351
|
+
var timePickerEtEE = {
|
|
5352
|
+
Time: "Aeg",
|
|
5353
|
+
AM: "AM",
|
|
5354
|
+
PM: "PM",
|
|
5355
|
+
Cancel: "Loobu",
|
|
5356
|
+
OK: "OK",
|
|
5357
|
+
"Select time": "Vali aeg"
|
|
5358
|
+
};
|
|
5359
|
+
var etEE = __spreadValues(__spreadValues(__spreadValues({}, datePickerEtEE), calendarEtEE), timePickerEtEE);
|
|
5115
5360
|
var datePickerUkUA = {
|
|
5116
5361
|
Date: "\u0414\u0430\u0442\u0430",
|
|
5117
5362
|
"MM/DD/YYYY": "\u041C\u041C/\u0414\u0414/\u0420\u0420\u0420\u0420",
|
|
@@ -5137,7 +5382,15 @@ var calendarUkUA = {
|
|
|
5137
5382
|
"Link to 1 more event on {{date}}": "\u041F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F \u043D\u0430 1 \u0434\u043E\u0434\u0430\u0442\u043A\u043E\u0432\u0443 \u043F\u043E\u0434\u0456\u044E \u043D\u0430 {{date}}",
|
|
5138
5383
|
CW: "\u0422\u0438\u0436\u0434\u0435\u043D\u044C {{week}}"
|
|
5139
5384
|
};
|
|
5140
|
-
var
|
|
5385
|
+
var timePickerUkUA = {
|
|
5386
|
+
Time: "\u0427\u0430\u0441",
|
|
5387
|
+
AM: "AM",
|
|
5388
|
+
PM: "PM",
|
|
5389
|
+
Cancel: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
|
|
5390
|
+
OK: "\u0413\u0430\u0440\u0430\u0437\u0434",
|
|
5391
|
+
"Select time": "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0447\u0430\u0441"
|
|
5392
|
+
};
|
|
5393
|
+
var ukUA = __spreadValues(__spreadValues(__spreadValues({}, datePickerUkUA), calendarUkUA), timePickerUkUA);
|
|
5141
5394
|
var datePickerSrLatnRS = {
|
|
5142
5395
|
Date: "Datum",
|
|
5143
5396
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -5163,7 +5416,15 @@ var calendarSrLatnRS = {
|
|
|
5163
5416
|
"Link to 1 more event on {{date}}": "Link do jednog doga\u0111aja na {{date}}",
|
|
5164
5417
|
CW: "Nedelja {{week}}"
|
|
5165
5418
|
};
|
|
5166
|
-
var
|
|
5419
|
+
var timePickerSrLatnRS = {
|
|
5420
|
+
Time: "Vrijeme",
|
|
5421
|
+
AM: "AM",
|
|
5422
|
+
PM: "PM",
|
|
5423
|
+
Cancel: "Otka\u017Ei",
|
|
5424
|
+
OK: "U redu",
|
|
5425
|
+
"Select time": "Odaberi vrijeme"
|
|
5426
|
+
};
|
|
5427
|
+
var srLatnRS = __spreadValues(__spreadValues(__spreadValues({}, datePickerSrLatnRS), calendarSrLatnRS), timePickerSrLatnRS);
|
|
5167
5428
|
var datePickerCaES = {
|
|
5168
5429
|
Date: "Data",
|
|
5169
5430
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -5189,7 +5450,15 @@ var calendarCaES = {
|
|
|
5189
5450
|
"Link to 1 more event on {{date}}": "Enlla\xE7 a 1 esdeveniment m\xE9s el {{date}}",
|
|
5190
5451
|
CW: "Setmana {{week}}"
|
|
5191
5452
|
};
|
|
5192
|
-
var
|
|
5453
|
+
var timePickerCaES = {
|
|
5454
|
+
Time: "Hora",
|
|
5455
|
+
AM: "AM",
|
|
5456
|
+
PM: "PM",
|
|
5457
|
+
Cancel: "Cancel\xB7lar",
|
|
5458
|
+
OK: "Acceptar",
|
|
5459
|
+
"Select time": "Selecciona una hora"
|
|
5460
|
+
};
|
|
5461
|
+
var caES = __spreadValues(__spreadValues(__spreadValues({}, datePickerCaES), calendarCaES), timePickerCaES);
|
|
5193
5462
|
var datePickerSrRS = {
|
|
5194
5463
|
Date: "\u0414\u0430\u0442\u0443\u043C",
|
|
5195
5464
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -5215,7 +5484,15 @@ var calendarSrRS = {
|
|
|
5215
5484
|
"Link to 1 more event on {{date}}": "\u041B\u0438\u043D\u043A \u0434\u043E \u0458\u043E\u0448 1 \u0434\u043E\u0433\u0430\u0452\u0430\u0458\u0430 {{date}}",
|
|
5216
5485
|
CW: "\u041D\u0435\u0434\u0435\u0459\u0430 {{week}}"
|
|
5217
5486
|
};
|
|
5218
|
-
var
|
|
5487
|
+
var timePickerSrRS = {
|
|
5488
|
+
Time: "\u0412\u0440\u0435\u043C\u0435",
|
|
5489
|
+
AM: "AM",
|
|
5490
|
+
PM: "PM",
|
|
5491
|
+
Cancel: "\u041E\u0442\u043A\u0430\u0436\u0438",
|
|
5492
|
+
OK: "\u0423 \u0440\u0435\u0434\u0443",
|
|
5493
|
+
"Select time": "\u0418\u0437\u0430\u0431\u0435\u0440\u0438 \u0432\u0440\u0435\u043C\u0435"
|
|
5494
|
+
};
|
|
5495
|
+
var srRS = __spreadValues(__spreadValues(__spreadValues({}, datePickerSrRS), calendarSrRS), timePickerSrRS);
|
|
5219
5496
|
var datePickerLtLT = {
|
|
5220
5497
|
Date: "Data",
|
|
5221
5498
|
"MM/DD/YYYY": "MMMM-MM-DD",
|
|
@@ -5241,7 +5518,15 @@ var calendarLtLT = {
|
|
|
5241
5518
|
"Link to 1 more event on {{date}}": "Nuoroda \u012F dar 1 vien\u0105 \u012Fvyk\u012F {{date}}",
|
|
5242
5519
|
CW: "{{week}} savait\u0117"
|
|
5243
5520
|
};
|
|
5244
|
-
var
|
|
5521
|
+
var timePickerLtLT = {
|
|
5522
|
+
Time: "Laikas",
|
|
5523
|
+
AM: "AM",
|
|
5524
|
+
PM: "PM",
|
|
5525
|
+
Cancel: "At\u0161aukti",
|
|
5526
|
+
OK: "Gerai",
|
|
5527
|
+
"Select time": "Pasirinkite laik\u0105"
|
|
5528
|
+
};
|
|
5529
|
+
var ltLT = __spreadValues(__spreadValues(__spreadValues({}, datePickerLtLT), calendarLtLT), timePickerLtLT);
|
|
5245
5530
|
var datePickerHrHR = {
|
|
5246
5531
|
Date: "Datum",
|
|
5247
5532
|
"MM/DD/YYYY": "DD/MM/YYYY",
|
|
@@ -5267,7 +5552,15 @@ var calendarHrHR = {
|
|
|
5267
5552
|
"Link to 1 more event on {{date}}": "Link do jo\u0161 jednog doga\u0111aja na {{date}}",
|
|
5268
5553
|
CW: "{{week}}. tjedan"
|
|
5269
5554
|
};
|
|
5270
|
-
var
|
|
5555
|
+
var timePickerHrHR = {
|
|
5556
|
+
Time: "Vrijeme",
|
|
5557
|
+
AM: "AM",
|
|
5558
|
+
PM: "PM",
|
|
5559
|
+
Cancel: "Otka\u017Ei",
|
|
5560
|
+
OK: "U redu",
|
|
5561
|
+
"Select time": "Odaberi vrijeme"
|
|
5562
|
+
};
|
|
5563
|
+
var hrHR = __spreadValues(__spreadValues(__spreadValues({}, datePickerHrHR), calendarHrHR), timePickerHrHR);
|
|
5271
5564
|
var datePickerSlSI = {
|
|
5272
5565
|
Date: "Datum",
|
|
5273
5566
|
"MM/DD/YYYY": "MM.DD.YYYY",
|
|
@@ -5293,7 +5586,15 @@ var calendarSlSI = {
|
|
|
5293
5586
|
"Link to 1 more event on {{date}}": "Povezava do \u0161e enega dogodka dne {{date}}",
|
|
5294
5587
|
CW: "Teden {{week}}"
|
|
5295
5588
|
};
|
|
5296
|
-
var
|
|
5589
|
+
var timePickerSlSI = {
|
|
5590
|
+
Time: "\u010Cas",
|
|
5591
|
+
AM: "AM",
|
|
5592
|
+
PM: "PM",
|
|
5593
|
+
Cancel: "Prekli\u010Di",
|
|
5594
|
+
OK: "V redu",
|
|
5595
|
+
"Select time": "Izberite \u010Das"
|
|
5596
|
+
};
|
|
5597
|
+
var slSI = __spreadValues(__spreadValues(__spreadValues({}, datePickerSlSI), calendarSlSI), timePickerSlSI);
|
|
5297
5598
|
var datePickerFiFI = {
|
|
5298
5599
|
Date: "P\xE4iv\xE4m\xE4\xE4r\xE4",
|
|
5299
5600
|
"MM/DD/YYYY": "VVVV-KK-PP",
|
|
@@ -5319,7 +5620,15 @@ var calendarFiFI = {
|
|
|
5319
5620
|
"Link to 1 more event on {{date}}": "Linkki 1 lis\xE4tapahtumaan p\xE4iv\xE4m\xE4\xE4r\xE4ll\xE4 {{date}}",
|
|
5320
5621
|
CW: "Viikko {{week}}"
|
|
5321
5622
|
};
|
|
5322
|
-
var
|
|
5623
|
+
var timePickerFiFI = {
|
|
5624
|
+
Time: "Aika",
|
|
5625
|
+
AM: "ap.",
|
|
5626
|
+
PM: "ip.",
|
|
5627
|
+
Cancel: "Peruuta",
|
|
5628
|
+
OK: "OK",
|
|
5629
|
+
"Select time": "Valitse aika"
|
|
5630
|
+
};
|
|
5631
|
+
var fiFI = __spreadValues(__spreadValues(__spreadValues({}, datePickerFiFI), calendarFiFI), timePickerFiFI);
|
|
5323
5632
|
var datePickerRoRO = {
|
|
5324
5633
|
Date: "Data",
|
|
5325
5634
|
"MM/DD/YYYY": "LL/ZZ/AAAA",
|
|
@@ -5345,7 +5654,49 @@ var calendarRoRO = {
|
|
|
5345
5654
|
"Link to 1 more event on {{date}}": "Link c\u0103tre 1 eveniment suplimentar pe {{date}}",
|
|
5346
5655
|
CW: "S\u0103pt\u0103m\xE2na {{week}}"
|
|
5347
5656
|
};
|
|
5348
|
-
var
|
|
5657
|
+
var timePickerRoRO = {
|
|
5658
|
+
Time: "Timp",
|
|
5659
|
+
AM: "AM",
|
|
5660
|
+
PM: "PM",
|
|
5661
|
+
Cancel: "Anuleaz\u0103",
|
|
5662
|
+
OK: "OK",
|
|
5663
|
+
"Select time": "Selecta\u021Bi ora"
|
|
5664
|
+
};
|
|
5665
|
+
var roRO = __spreadValues(__spreadValues(__spreadValues({}, datePickerRoRO), calendarRoRO), timePickerRoRO);
|
|
5666
|
+
var datePickerHeIL = {
|
|
5667
|
+
Date: "\u05EA\u05B7\u05D0\u05B2\u05E8\u05B4\u05D9\u05DA",
|
|
5668
|
+
"MM/DD/YYYY": "MM/DD/YYYY",
|
|
5669
|
+
"Next month": "\u05D7\u05D5\u05D3\u05E9 \u05D4\u05D1\u05D0",
|
|
5670
|
+
"Previous month": "\u05D7\u05D5\u05D3\u05E9 \u05E7\u05D5\u05D3\u05DD",
|
|
5671
|
+
"Choose Date": "\u05D1\u05D7\u05E8 \u05EA\u05D0\u05E8\u05D9\u05DA"
|
|
5672
|
+
};
|
|
5673
|
+
var calendarHeIL = {
|
|
5674
|
+
Today: "\u05D4\u05B7\u05D9\u05D5\u05B9\u05DD",
|
|
5675
|
+
Month: "\u05D7\u05D5\u05B9\u05D3\u05B6\u05E9\u05C1",
|
|
5676
|
+
Week: "\u05E9\u05C1\u05B8\u05D1\u05D5\u05BC\u05E2\u05B7",
|
|
5677
|
+
Day: "\u05D9\u05D5\u05B9\u05DD",
|
|
5678
|
+
"Select View": "\u05D1\u05D7\u05E8 \u05EA\u05E6\u05D5\u05D2\u05D4",
|
|
5679
|
+
events: "\u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD",
|
|
5680
|
+
event: "\u05D0\u05D9\u05E8\u05D5\u05E2",
|
|
5681
|
+
"No events": "\u05D0\u05D9\u05DF \u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD",
|
|
5682
|
+
"Next period": "\u05EA\u05E7\u05D5\u05E4\u05D4 \u05D4\u05D1\u05D0\u05D4",
|
|
5683
|
+
"Previous period": "\u05EA\u05E7\u05D5\u05E4\u05D4 \u05E7\u05D5\u05D3\u05DE\u05EA",
|
|
5684
|
+
to: "\u05E2\u05D3",
|
|
5685
|
+
// as in 2/1/2020 to 2/2/2020
|
|
5686
|
+
"Full day- and multiple day events": "\u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05DD \u05D5\u05DC\u05DE\u05E1\u05E4\u05E8 \u05D9\u05DE\u05D9\u05DD",
|
|
5687
|
+
"Link to {{n}} more events on {{date}}": "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05E2\u05D5\u05D3 {{n}} \u05D0\u05D9\u05E8\u05D5\u05E2\u05D9\u05DD \u05D1-{{date}}",
|
|
5688
|
+
"Link to 1 more event on {{date}}": "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05D9\u05E8\u05D5\u05E2 \u05E0\u05D5\u05E1\u05E3 \u05D1-{{date}}",
|
|
5689
|
+
CW: "{{week}} \u05E9\u05C1\u05B8\u05D1\u05D5\u05BC\u05E2\u05B7"
|
|
5690
|
+
};
|
|
5691
|
+
var timePickerHeIL = {
|
|
5692
|
+
Time: "\u05E9\u05E2\u05D4",
|
|
5693
|
+
AM: '\u05DC\u05E4\u05E0\u05D4"\u05E6',
|
|
5694
|
+
PM: '\u05D0\u05D7\u05D4"\u05E6',
|
|
5695
|
+
Cancel: "\u05D1\u05D9\u05D8\u05D5\u05DC",
|
|
5696
|
+
OK: "\u05D0\u05D9\u05E9\u05D5\u05E8",
|
|
5697
|
+
"Select time": "\u05D1\u05D7\u05E8 \u05E9\u05E2\u05D4"
|
|
5698
|
+
};
|
|
5699
|
+
var heIL = __spreadValues(__spreadValues(__spreadValues({}, datePickerHeIL), calendarHeIL), timePickerHeIL);
|
|
5349
5700
|
var Month;
|
|
5350
5701
|
(function(Month2) {
|
|
5351
5702
|
Month2[Month2["JANUARY"] = 0] = "JANUARY";
|
|
@@ -5394,7 +5745,7 @@ function MonthGridEvent({ gridRow, calendarEvent, date, isFirstWeek, isLastWeek
|
|
|
5394
5745
|
const hasStartDate = dateFromDateTime(calendarEvent.start) === date;
|
|
5395
5746
|
const nDays = calendarEvent._eventFragments[date];
|
|
5396
5747
|
const eventCSSVariables = {
|
|
5397
|
-
|
|
5748
|
+
borderInlineStart: hasStartDate ? `4px solid var(--sx-color-${calendarEvent._color})` : void 0,
|
|
5398
5749
|
color: `var(--sx-color-on-${calendarEvent._color}-container)`,
|
|
5399
5750
|
backgroundColor: `var(--sx-color-${calendarEvent._color}-container)`,
|
|
5400
5751
|
// CORRELATION ID: 2 (10px subtracted from width)
|
|
@@ -5447,6 +5798,8 @@ function MonthGridEvent({ gridRow, calendarEvent, date, isFirstWeek, isLastWeek
|
|
|
5447
5798
|
if ((_c = calendarEvent._options) === null || _c === void 0 ? void 0 : _c.additionalClasses) {
|
|
5448
5799
|
classNames.push(...calendarEvent._options.additionalClasses);
|
|
5449
5800
|
}
|
|
5801
|
+
if (wasEventAddedInLastSecond(calendarEvent))
|
|
5802
|
+
classNames.push("is-event-new");
|
|
5450
5803
|
if (hasOverflowLeft)
|
|
5451
5804
|
classNames.push("sx__month-grid-event--overflow-left");
|
|
5452
5805
|
if (hasOverflowRight)
|
|
@@ -5456,7 +5809,7 @@ function MonthGridEvent({ gridRow, calendarEvent, date, isFirstWeek, isLastWeek
|
|
|
5456
5809
|
gridRow,
|
|
5457
5810
|
width: eventCSSVariables.width,
|
|
5458
5811
|
padding: customComponent ? "0px" : void 0,
|
|
5459
|
-
|
|
5812
|
+
borderInlineStart: customComponent ? void 0 : eventCSSVariables.borderInlineStart,
|
|
5460
5813
|
color: customComponent ? void 0 : eventCSSVariables.color,
|
|
5461
5814
|
backgroundColor: customComponent ? void 0 : eventCSSVariables.backgroundColor
|
|
5462
5815
|
}, tabIndex: 0, role: "button", children: [!customComponent && !hasCustomContent && u2(k, { children: [dateTimeStringRegex.test(calendarEvent.start) && u2("div", { className: "sx__month-grid-event-time", children: timeFn(calendarEvent.start, $app.config.locale.value) }), u2("div", { className: "sx__month-grid-event-title", children: calendarEvent.title })] }), hasCustomContent && u2("div", { dangerouslySetInnerHTML: {
|
|
@@ -5554,7 +5907,8 @@ function MonthGridDay({ day, isFirstWeek, isLastWeek }) {
|
|
|
5554
5907
|
if (!(dateEl instanceof HTMLElement))
|
|
5555
5908
|
return;
|
|
5556
5909
|
monthGridDateCustomComponent(dateEl, {
|
|
5557
|
-
date: toJSDate(day.date).getDate()
|
|
5910
|
+
date: toJSDate(day.date).getDate(),
|
|
5911
|
+
jsDate: toJSDate(day.date)
|
|
5558
5912
|
});
|
|
5559
5913
|
}, [day]);
|
|
5560
5914
|
return u2("div", { className: wrapperClasses.join(" "), "data-date": day.date, onClick: () => $app.config.callbacks.onClickDate && $app.config.callbacks.onClickDate(day.date), "aria-label": getLocalizedDate(day.date, $app.config.locale.value), onDblClick: () => {
|
|
@@ -5764,7 +6118,7 @@ function MonthAgendaEvent({ calendarEvent }) {
|
|
|
5764
6118
|
const eventCSSVariables = {
|
|
5765
6119
|
backgroundColor: `var(--sx-color-${calendarEvent._color}-container)`,
|
|
5766
6120
|
color: `var(--sx-color-on-${calendarEvent._color}-container)`,
|
|
5767
|
-
|
|
6121
|
+
borderInlineStart: `4px solid var(--sx-color-${calendarEvent._color})`
|
|
5768
6122
|
};
|
|
5769
6123
|
const customComponent = $app.config._customComponentFns.monthAgendaEvent;
|
|
5770
6124
|
const customComponentId = customComponent ? "custom-month-agenda-event-" + randomStringId() : void 0;
|
|
@@ -5794,10 +6148,13 @@ function MonthAgendaEvent({ calendarEvent }) {
|
|
|
5794
6148
|
}
|
|
5795
6149
|
};
|
|
5796
6150
|
const hasCustomContent = (_a = calendarEvent._customContent) === null || _a === void 0 ? void 0 : _a.monthAgenda;
|
|
5797
|
-
|
|
6151
|
+
const classNames = ["sx__event", "sx__month-agenda-event"];
|
|
6152
|
+
if (wasEventAddedInLastSecond(calendarEvent))
|
|
6153
|
+
classNames.push("is-event-new");
|
|
6154
|
+
return u2("div", { className: classNames.join(" "), "data-ccid": customComponentId, "data-event-id": calendarEvent.id, style: {
|
|
5798
6155
|
backgroundColor: customComponent ? void 0 : eventCSSVariables.backgroundColor,
|
|
5799
6156
|
color: customComponent ? void 0 : eventCSSVariables.color,
|
|
5800
|
-
|
|
6157
|
+
borderInlineStart: customComponent ? void 0 : eventCSSVariables.borderInlineStart,
|
|
5801
6158
|
padding: customComponent ? "0px" : void 0
|
|
5802
6159
|
}, onClick: (e4) => onClick(e4), onDblClick: (e4) => onDoubleClick(e4), onKeyDown, tabIndex: 0, role: "button", children: [!customComponent && !hasCustomContent && u2(k, { children: [u2("div", { className: "sx__month-agenda-event__title", children: calendarEvent.title }), u2("div", { className: "sx__month-agenda-event__time sx__month-agenda-event__has-icon", children: [u2(TimeIcon, { strokeColor: `var(--sx-color-on-${calendarEvent._color}-container)` }), u2("div", { dangerouslySetInnerHTML: {
|
|
5803
6160
|
__html: getTimeStamp(calendarEvent, $app.config.locale.value)
|
|
@@ -6027,12 +6384,55 @@ function MyNumberFormatter(_a) {
|
|
|
6027
6384
|
return /* @__PURE__ */ jsx41(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
|
6028
6385
|
}
|
|
6029
6386
|
|
|
6387
|
+
// src/components/DataDisplay/ScheduleX/MyScheduleX.tsx
|
|
6388
|
+
import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as ScheduleXCalendar2 } from "@schedule-x/react";
|
|
6389
|
+
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
|
6390
|
+
import "@schedule-x/theme-default/dist/index.css";
|
|
6391
|
+
import { useState as useState7 } from "react";
|
|
6392
|
+
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
|
6393
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6394
|
+
function MyScheduleX({
|
|
6395
|
+
values,
|
|
6396
|
+
timeGridEvent,
|
|
6397
|
+
eventModal,
|
|
6398
|
+
nDays,
|
|
6399
|
+
startDayBoundaries = "5:00",
|
|
6400
|
+
endDayBoundaries = "21:00"
|
|
6401
|
+
}) {
|
|
6402
|
+
const eventsService = useState7(() => createEventsServicePlugin2())[0];
|
|
6403
|
+
const eventModalPlugin = useState7(() => createEventModalPlugin2())[0];
|
|
6404
|
+
const calendar = useNextCalendarApp2({
|
|
6405
|
+
locale: "vi-VN",
|
|
6406
|
+
dayBoundaries: {
|
|
6407
|
+
start: startDayBoundaries,
|
|
6408
|
+
end: endDayBoundaries
|
|
6409
|
+
},
|
|
6410
|
+
weekOptions: {
|
|
6411
|
+
nDays,
|
|
6412
|
+
gridHeight: 700
|
|
6413
|
+
},
|
|
6414
|
+
views: [createViewDay(), createViewWeek(), createViewMonthGrid(), createViewMonthAgenda()],
|
|
6415
|
+
events: values,
|
|
6416
|
+
plugins: [eventsService, eventModalPlugin]
|
|
6417
|
+
});
|
|
6418
|
+
return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(
|
|
6419
|
+
ScheduleXCalendar2,
|
|
6420
|
+
{
|
|
6421
|
+
calendarApp: calendar,
|
|
6422
|
+
customComponents: {
|
|
6423
|
+
timeGridEvent,
|
|
6424
|
+
eventModal
|
|
6425
|
+
}
|
|
6426
|
+
}
|
|
6427
|
+
) });
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6030
6430
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
|
6031
6431
|
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper5, Text as Text9 } from "@mantine/core";
|
|
6032
6432
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
|
6033
|
-
import { Fragment as Fragment11, jsx as
|
|
6433
|
+
import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6034
6434
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
|
6035
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ jsx43(Fragment11, { children: /* @__PURE__ */ jsxs25(
|
|
6036
6436
|
Paper5,
|
|
6037
6437
|
{
|
|
6038
6438
|
withBorder: true,
|
|
@@ -6041,7 +6441,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6041
6441
|
children: [
|
|
6042
6442
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6043
6443
|
/* @__PURE__ */ jsxs25(Flex3, { direction: "column", children: [
|
|
6044
|
-
/* @__PURE__ */
|
|
6444
|
+
/* @__PURE__ */ jsx43(
|
|
6045
6445
|
Text9,
|
|
6046
6446
|
{
|
|
6047
6447
|
tt: "uppercase",
|
|
@@ -6052,13 +6452,13 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6052
6452
|
),
|
|
6053
6453
|
unit == "" ? /* @__PURE__ */ jsxs25(Text9, { size: "xs", style: { visibility: "hidden" }, children: [
|
|
6054
6454
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6055
|
-
/* @__PURE__ */
|
|
6455
|
+
/* @__PURE__ */ jsx43("strong", { children: unit })
|
|
6056
6456
|
] }) : /* @__PURE__ */ jsxs25(Text9, { size: "xs", children: [
|
|
6057
6457
|
"\u0110\u01A1n v\u1ECB: ",
|
|
6058
|
-
/* @__PURE__ */
|
|
6458
|
+
/* @__PURE__ */ jsx43("strong", { children: unit })
|
|
6059
6459
|
] })
|
|
6060
6460
|
] }),
|
|
6061
|
-
/* @__PURE__ */
|
|
6461
|
+
/* @__PURE__ */ jsx43(Box2, { children: icons })
|
|
6062
6462
|
] }),
|
|
6063
6463
|
/* @__PURE__ */ jsxs25(
|
|
6064
6464
|
Group11,
|
|
@@ -6067,7 +6467,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6067
6467
|
align: "flex-end",
|
|
6068
6468
|
gap: "xs",
|
|
6069
6469
|
children: [
|
|
6070
|
-
/* @__PURE__ */
|
|
6470
|
+
/* @__PURE__ */ jsx43(
|
|
6071
6471
|
Text9,
|
|
6072
6472
|
{
|
|
6073
6473
|
fw: 700,
|
|
@@ -6087,7 +6487,7 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6087
6487
|
diff,
|
|
6088
6488
|
"%"
|
|
6089
6489
|
] }),
|
|
6090
|
-
diff > 0 ? /* @__PURE__ */
|
|
6490
|
+
diff > 0 ? /* @__PURE__ */ jsx43(IconArrowUpRight, {}) : /* @__PURE__ */ jsx43(IconArrowDownRight, {})
|
|
6091
6491
|
]
|
|
6092
6492
|
}
|
|
6093
6493
|
)
|
|
@@ -6095,8 +6495,8 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6095
6495
|
}
|
|
6096
6496
|
),
|
|
6097
6497
|
/* @__PURE__ */ jsxs25(Group11, { justify: "space-between", children: [
|
|
6098
|
-
/* @__PURE__ */
|
|
6099
|
-
/* @__PURE__ */
|
|
6498
|
+
/* @__PURE__ */ jsx43(Text9, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
|
6499
|
+
/* @__PURE__ */ jsx43(
|
|
6100
6500
|
Button13,
|
|
6101
6501
|
{
|
|
6102
6502
|
variant: "light",
|
|
@@ -6113,15 +6513,15 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
|
6113
6513
|
|
|
6114
6514
|
// src/components/Inputs/DateInput/MyDateInput.tsx
|
|
6115
6515
|
import { DateInput } from "@mantine/dates";
|
|
6116
|
-
import { jsx as
|
|
6516
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
6117
6517
|
function MyDateInput(_a) {
|
|
6118
6518
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6119
|
-
return /* @__PURE__ */
|
|
6519
|
+
return /* @__PURE__ */ jsx44(DateInput, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6120
6520
|
}
|
|
6121
6521
|
|
|
6122
6522
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
|
6123
6523
|
import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
|
|
6124
|
-
import { jsx as
|
|
6524
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6125
6525
|
function MyFieldset(_a) {
|
|
6126
6526
|
var _b = _a, {
|
|
6127
6527
|
children,
|
|
@@ -6130,17 +6530,17 @@ function MyFieldset(_a) {
|
|
|
6130
6530
|
"children",
|
|
6131
6531
|
"title"
|
|
6132
6532
|
]);
|
|
6133
|
-
return /* @__PURE__ */
|
|
6533
|
+
return /* @__PURE__ */ jsx45(
|
|
6134
6534
|
Fieldset4,
|
|
6135
6535
|
__spreadProps(__spreadValues({}, rest), {
|
|
6136
|
-
legend: /* @__PURE__ */
|
|
6536
|
+
legend: /* @__PURE__ */ jsx45(
|
|
6137
6537
|
Box3,
|
|
6138
6538
|
{
|
|
6139
6539
|
bg: "blue.4",
|
|
6140
6540
|
px: "xs",
|
|
6141
6541
|
py: 2,
|
|
6142
6542
|
style: { borderRadius: 4 },
|
|
6143
|
-
children: /* @__PURE__ */
|
|
6543
|
+
children: /* @__PURE__ */ jsx45(Text10, { c: "white", fw: 500, children: title3 })
|
|
6144
6544
|
}
|
|
6145
6545
|
),
|
|
6146
6546
|
children
|
|
@@ -6150,26 +6550,26 @@ function MyFieldset(_a) {
|
|
|
6150
6550
|
|
|
6151
6551
|
// src/components/Inputs/FileInput/MyFileInput.tsx
|
|
6152
6552
|
import { FileInput as FileInput3 } from "@mantine/core";
|
|
6153
|
-
import { jsx as
|
|
6553
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6154
6554
|
function MyFileInput(_a) {
|
|
6155
6555
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6156
|
-
return /* @__PURE__ */
|
|
6556
|
+
return /* @__PURE__ */ jsx46(FileInput3, __spreadValues({ label, placeholder: label ? `Ch\u1ECDn ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6157
6557
|
}
|
|
6158
6558
|
|
|
6159
6559
|
// src/components/Inputs/NumberInput/MyNumberInput.tsx
|
|
6160
6560
|
import { NumberInput as NumberInput2 } from "@mantine/core";
|
|
6161
|
-
import { jsx as
|
|
6561
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
6162
6562
|
function MyNumberInput(_a) {
|
|
6163
6563
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6164
|
-
return /* @__PURE__ */
|
|
6564
|
+
return /* @__PURE__ */ jsx47(NumberInput2, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6165
6565
|
}
|
|
6166
6566
|
|
|
6167
6567
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
|
6168
6568
|
import { Textarea } from "@mantine/core";
|
|
6169
|
-
import { jsx as
|
|
6569
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
6170
6570
|
function MyTextArea(_a) {
|
|
6171
6571
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
|
6172
|
-
return /* @__PURE__ */
|
|
6572
|
+
return /* @__PURE__ */ jsx48(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
|
6173
6573
|
}
|
|
6174
6574
|
|
|
6175
6575
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
|
@@ -6184,8 +6584,8 @@ import TextAlign from "@tiptap/extension-text-align";
|
|
|
6184
6584
|
import Underline from "@tiptap/extension-underline";
|
|
6185
6585
|
import { useEditor } from "@tiptap/react";
|
|
6186
6586
|
import StarterKit from "@tiptap/starter-kit";
|
|
6187
|
-
import { useEffect as useEffect5, useState as
|
|
6188
|
-
import { jsx as
|
|
6587
|
+
import { useEffect as useEffect5, useState as useState8 } from "react";
|
|
6588
|
+
import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6189
6589
|
function MyTextEditor(_a) {
|
|
6190
6590
|
var _b = _a, {
|
|
6191
6591
|
autoHiddenToolBar = false,
|
|
@@ -6204,7 +6604,7 @@ function MyTextEditor(_a) {
|
|
|
6204
6604
|
"label",
|
|
6205
6605
|
"withAsterisk"
|
|
6206
6606
|
]);
|
|
6207
|
-
const [hiddenToolBar, setHiddenToolBar] =
|
|
6607
|
+
const [hiddenToolBar, setHiddenToolBar] = useState8(autoHiddenToolBar);
|
|
6208
6608
|
const editor = useEditor(__spreadValues({
|
|
6209
6609
|
extensions: [
|
|
6210
6610
|
StarterKit,
|
|
@@ -6287,43 +6687,43 @@ function MyTextEditor(_a) {
|
|
|
6287
6687
|
editor.commands.setContent(value);
|
|
6288
6688
|
}
|
|
6289
6689
|
}, [value, editor]);
|
|
6290
|
-
return /* @__PURE__ */
|
|
6690
|
+
return /* @__PURE__ */ jsx49(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs26(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
|
6291
6691
|
/* @__PURE__ */ jsxs26(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
|
6292
6692
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6293
|
-
/* @__PURE__ */
|
|
6294
|
-
/* @__PURE__ */
|
|
6295
|
-
/* @__PURE__ */
|
|
6296
|
-
/* @__PURE__ */
|
|
6297
|
-
/* @__PURE__ */
|
|
6298
|
-
/* @__PURE__ */
|
|
6299
|
-
/* @__PURE__ */
|
|
6693
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Bold, {}),
|
|
6694
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Italic, {}),
|
|
6695
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Underline, {}),
|
|
6696
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Strikethrough, {}),
|
|
6697
|
+
/* @__PURE__ */ jsx49(RichTextEditor.ClearFormatting, {}),
|
|
6698
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Highlight, {}),
|
|
6699
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Code, {})
|
|
6300
6700
|
] }),
|
|
6301
6701
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6302
|
-
/* @__PURE__ */
|
|
6303
|
-
/* @__PURE__ */
|
|
6304
|
-
/* @__PURE__ */
|
|
6305
|
-
/* @__PURE__ */
|
|
6702
|
+
/* @__PURE__ */ jsx49(RichTextEditor.H1, {}),
|
|
6703
|
+
/* @__PURE__ */ jsx49(RichTextEditor.H2, {}),
|
|
6704
|
+
/* @__PURE__ */ jsx49(RichTextEditor.H3, {}),
|
|
6705
|
+
/* @__PURE__ */ jsx49(RichTextEditor.H4, {})
|
|
6306
6706
|
] }),
|
|
6307
6707
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6308
|
-
/* @__PURE__ */
|
|
6309
|
-
/* @__PURE__ */
|
|
6310
|
-
/* @__PURE__ */
|
|
6311
|
-
/* @__PURE__ */
|
|
6312
|
-
/* @__PURE__ */
|
|
6313
|
-
/* @__PURE__ */
|
|
6708
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Blockquote, {}),
|
|
6709
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Hr, {}),
|
|
6710
|
+
/* @__PURE__ */ jsx49(RichTextEditor.BulletList, {}),
|
|
6711
|
+
/* @__PURE__ */ jsx49(RichTextEditor.OrderedList, {}),
|
|
6712
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Subscript, {}),
|
|
6713
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Superscript, {})
|
|
6314
6714
|
] }),
|
|
6315
6715
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6316
|
-
/* @__PURE__ */
|
|
6317
|
-
/* @__PURE__ */
|
|
6716
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Link, {}),
|
|
6717
|
+
/* @__PURE__ */ jsx49(RichTextEditor.Unlink, {})
|
|
6318
6718
|
] }),
|
|
6319
6719
|
/* @__PURE__ */ jsxs26(RichTextEditor.ControlsGroup, { children: [
|
|
6320
|
-
/* @__PURE__ */
|
|
6321
|
-
/* @__PURE__ */
|
|
6322
|
-
/* @__PURE__ */
|
|
6323
|
-
/* @__PURE__ */
|
|
6720
|
+
/* @__PURE__ */ jsx49(RichTextEditor.AlignLeft, {}),
|
|
6721
|
+
/* @__PURE__ */ jsx49(RichTextEditor.AlignCenter, {}),
|
|
6722
|
+
/* @__PURE__ */ jsx49(RichTextEditor.AlignJustify, {}),
|
|
6723
|
+
/* @__PURE__ */ jsx49(RichTextEditor.AlignRight, {})
|
|
6324
6724
|
] })
|
|
6325
6725
|
] }),
|
|
6326
|
-
/* @__PURE__ */
|
|
6726
|
+
/* @__PURE__ */ jsx49(
|
|
6327
6727
|
ScrollArea2.Autosize,
|
|
6328
6728
|
{
|
|
6329
6729
|
onMouseDown: () => {
|
|
@@ -6338,7 +6738,7 @@ function MyTextEditor(_a) {
|
|
|
6338
6738
|
setHiddenToolBar(false);
|
|
6339
6739
|
},
|
|
6340
6740
|
style: { cursor: "text", maxHeight: "400px" },
|
|
6341
|
-
children: /* @__PURE__ */
|
|
6741
|
+
children: /* @__PURE__ */ jsx49(RichTextEditor.Content, { mih: contentHeight })
|
|
6342
6742
|
}
|
|
6343
6743
|
)
|
|
6344
6744
|
] }) });
|
|
@@ -6364,18 +6764,18 @@ import { spotlight as spotlight2 } from "@mantine/spotlight";
|
|
|
6364
6764
|
import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand, IconLibraryMinus, IconSearch as IconSearch2 } from "@tabler/icons-react";
|
|
6365
6765
|
import Link3 from "next/link";
|
|
6366
6766
|
import { usePathname as usePathname2 } from "next/navigation";
|
|
6367
|
-
import { Fragment as Fragment12, jsx as
|
|
6767
|
+
import { Fragment as Fragment12, jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6368
6768
|
function getRightSection(status) {
|
|
6369
|
-
if (status === "Prototype") return /* @__PURE__ */
|
|
6370
|
-
if (status === "New") return /* @__PURE__ */
|
|
6371
|
-
if (status === "Menu") return /* @__PURE__ */
|
|
6372
|
-
if (status === "Change") return /* @__PURE__ */
|
|
6769
|
+
if (status === "Prototype") return /* @__PURE__ */ jsx50(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
|
6770
|
+
if (status === "New") return /* @__PURE__ */ jsx50(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
|
6771
|
+
if (status === "Menu") return /* @__PURE__ */ jsx50(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
|
6772
|
+
if (status === "Change") return /* @__PURE__ */ jsx50(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
|
6373
6773
|
return null;
|
|
6374
6774
|
}
|
|
6375
6775
|
function RenderNavLinks({ items }) {
|
|
6376
6776
|
const sidebarStore = useS_Sidebar();
|
|
6377
6777
|
const pathName = usePathname2();
|
|
6378
|
-
return /* @__PURE__ */
|
|
6778
|
+
return /* @__PURE__ */ jsx50(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx50(
|
|
6379
6779
|
NavLink,
|
|
6380
6780
|
{
|
|
6381
6781
|
active: item.link === pathName.split("/")[2],
|
|
@@ -6392,7 +6792,7 @@ function RenderNavLinks({ items }) {
|
|
|
6392
6792
|
sidebarStore.setProperty("title", item.label);
|
|
6393
6793
|
}
|
|
6394
6794
|
},
|
|
6395
|
-
children: item.links && /* @__PURE__ */
|
|
6795
|
+
children: item.links && /* @__PURE__ */ jsx50(RenderNavLinks, { items: item.links })
|
|
6396
6796
|
},
|
|
6397
6797
|
index
|
|
6398
6798
|
)) });
|
|
@@ -6461,16 +6861,16 @@ function BasicAppShell({ children, menu }) {
|
|
|
6461
6861
|
padding: "md",
|
|
6462
6862
|
children: [
|
|
6463
6863
|
/* @__PURE__ */ jsxs27(AppShell.Header, { children: [
|
|
6464
|
-
/* @__PURE__ */
|
|
6864
|
+
/* @__PURE__ */ jsx50(MyAppSpotlight, { menu }),
|
|
6465
6865
|
media ? /* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
|
6466
6866
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", children: [
|
|
6467
|
-
/* @__PURE__ */
|
|
6468
|
-
/* @__PURE__ */
|
|
6867
|
+
/* @__PURE__ */ jsx50(Tooltip5, { label: sidebarStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu", children: /* @__PURE__ */ jsx50(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx50(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx50(IconLayoutSidebarLeftCollapse, {}) }) }),
|
|
6868
|
+
/* @__PURE__ */ jsx50(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx50(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: () => sidebarStore.clearGroupMenuOpenId(), children: /* @__PURE__ */ jsx50(IconLibraryMinus, {}) }) })
|
|
6469
6869
|
] }),
|
|
6470
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsx50(Group12, { style: { position: "absolute", left: "50%", transform: "translateX(-50%)" }, children: /* @__PURE__ */ jsx50(Text11, { c: "green", fw: "bold", children: "AQ EduCourseEvaluation - Ph\u1EA7n m\u1EC1m \u0111\xE1nh gi\xE1 chu\u1EA9n \u0111\u1EA7u ra" }) }),
|
|
6471
6871
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6472
|
-
/* @__PURE__ */
|
|
6473
|
-
/* @__PURE__ */
|
|
6872
|
+
/* @__PURE__ */ jsx50(Text11, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
|
6873
|
+
/* @__PURE__ */ jsx50(
|
|
6474
6874
|
Select3,
|
|
6475
6875
|
{
|
|
6476
6876
|
w: selectMedia ? 245 : 150,
|
|
@@ -6482,15 +6882,15 @@ function BasicAppShell({ children, menu }) {
|
|
|
6482
6882
|
]
|
|
6483
6883
|
}
|
|
6484
6884
|
),
|
|
6485
|
-
/* @__PURE__ */
|
|
6885
|
+
/* @__PURE__ */ jsx50(MySwitchTheme, {})
|
|
6486
6886
|
] })
|
|
6487
6887
|
] }) : (
|
|
6488
6888
|
// For mobile screens - simplified layout
|
|
6489
6889
|
/* @__PURE__ */ jsxs27(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
|
6490
|
-
/* @__PURE__ */
|
|
6491
|
-
/* @__PURE__ */
|
|
6890
|
+
/* @__PURE__ */ jsx50(ActionIcon10, { size: "lg", radius: "md", variant: "default", onClick: sidebarStore.toggle, children: sidebarStore.state.opened ? /* @__PURE__ */ jsx50(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx50(IconLayoutSidebarLeftCollapse, {}) }),
|
|
6891
|
+
/* @__PURE__ */ jsx50(Text11, { c: "green", fw: "bold", size: "sm", children: "AQ EduCourseEvaluation" }),
|
|
6492
6892
|
/* @__PURE__ */ jsxs27(Group12, { children: [
|
|
6493
|
-
/* @__PURE__ */
|
|
6893
|
+
/* @__PURE__ */ jsx50(
|
|
6494
6894
|
Select3,
|
|
6495
6895
|
{
|
|
6496
6896
|
w: 100,
|
|
@@ -6503,24 +6903,24 @@ function BasicAppShell({ children, menu }) {
|
|
|
6503
6903
|
]
|
|
6504
6904
|
}
|
|
6505
6905
|
),
|
|
6506
|
-
/* @__PURE__ */
|
|
6906
|
+
/* @__PURE__ */ jsx50(MySwitchTheme, {})
|
|
6507
6907
|
] })
|
|
6508
6908
|
] })
|
|
6509
6909
|
)
|
|
6510
6910
|
] }),
|
|
6511
6911
|
/* @__PURE__ */ jsxs27(AppShell.Navbar, { children: [
|
|
6512
|
-
/* @__PURE__ */
|
|
6912
|
+
/* @__PURE__ */ jsx50(TextInput2, { mt: "md", placeholder: "T\xECm menu (Ctrl + K)", mx: 10, component: "button", onClick: spotlight2.open, leftSection: /* @__PURE__ */ jsx50(IconSearch2, {}), children: "T\xECm ki\u1EBFm (Ctrl + K)" }),
|
|
6513
6913
|
/* @__PURE__ */ jsxs27(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
|
6514
|
-
/* @__PURE__ */
|
|
6515
|
-
/* @__PURE__ */
|
|
6516
|
-
/* @__PURE__ */
|
|
6914
|
+
/* @__PURE__ */ jsx50(RenderNavLinks, { items: menu }),
|
|
6915
|
+
/* @__PURE__ */ jsx50(Divider3, {}),
|
|
6916
|
+
/* @__PURE__ */ jsx50(F_authenticate_Logout, {})
|
|
6517
6917
|
] }),
|
|
6518
6918
|
/* @__PURE__ */ jsxs27(AppShell.Section, { p: "md", children: [
|
|
6519
|
-
/* @__PURE__ */
|
|
6520
|
-
/* @__PURE__ */
|
|
6919
|
+
/* @__PURE__ */ jsx50(Divider3, {}),
|
|
6920
|
+
/* @__PURE__ */ jsx50(Image3, { src: "/imgs/0/IMG0LogoAQTech.png", h: 50, alt: "", w: "auto" })
|
|
6521
6921
|
] })
|
|
6522
6922
|
] }),
|
|
6523
|
-
/* @__PURE__ */
|
|
6923
|
+
/* @__PURE__ */ jsx50(AppShell.Main, { bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))", children })
|
|
6524
6924
|
]
|
|
6525
6925
|
}
|
|
6526
6926
|
);
|
|
@@ -6569,10 +6969,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
|
6569
6969
|
|
|
6570
6970
|
// src/components/Layouts/Container/MyContainer.tsx
|
|
6571
6971
|
import { Container as Container2, Flex as Flex4 } from "@mantine/core";
|
|
6572
|
-
import { jsx as
|
|
6972
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
6573
6973
|
function MyContainer(_a) {
|
|
6574
6974
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
6575
|
-
return /* @__PURE__ */
|
|
6975
|
+
return /* @__PURE__ */ jsx51(Container2, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx51(Flex4, { direction: "column", children }) }));
|
|
6576
6976
|
}
|
|
6577
6977
|
|
|
6578
6978
|
// src/constants/object/color.ts
|
|
@@ -6625,7 +7025,7 @@ function useHeaderMegaMenuStore() {
|
|
|
6625
7025
|
}
|
|
6626
7026
|
|
|
6627
7027
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
|
6628
|
-
import { jsx as
|
|
7028
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6629
7029
|
var mockdata = [
|
|
6630
7030
|
{
|
|
6631
7031
|
icon: IconCode,
|
|
@@ -6663,27 +7063,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
6663
7063
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
|
6664
7064
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
|
6665
7065
|
const theme = useMantineTheme();
|
|
6666
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
|
6667
|
-
/* @__PURE__ */
|
|
7066
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx52(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs28(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
|
7067
|
+
/* @__PURE__ */ jsx52(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx52(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
|
6668
7068
|
/* @__PURE__ */ jsxs28("div", { children: [
|
|
6669
|
-
/* @__PURE__ */
|
|
6670
|
-
/* @__PURE__ */
|
|
7069
|
+
/* @__PURE__ */ jsx52(Text12, { size: "sm", fw: 500, children: item.title }),
|
|
7070
|
+
/* @__PURE__ */ jsx52(Text12, { size: "xs", c: "dimmed", children: item.description })
|
|
6671
7071
|
] })
|
|
6672
7072
|
] }) }, item.title));
|
|
6673
7073
|
return /* @__PURE__ */ jsxs28(Box4, { children: [
|
|
6674
|
-
/* @__PURE__ */
|
|
7074
|
+
/* @__PURE__ */ jsx52("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs28(Group13, { justify: "space-between", h: "100%", children: [
|
|
6675
7075
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
6676
|
-
/* @__PURE__ */
|
|
6677
|
-
/* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ jsx52(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
|
7077
|
+
/* @__PURE__ */ jsx52(Group13, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx52(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
|
6678
7078
|
] }),
|
|
6679
7079
|
/* @__PURE__ */ jsxs28(Group13, { children: [
|
|
6680
|
-
/* @__PURE__ */
|
|
6681
|
-
/* @__PURE__ */
|
|
7080
|
+
/* @__PURE__ */ jsx52(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx52(IconSearch3, {}), radius: "xl", w: "250px" }),
|
|
7081
|
+
/* @__PURE__ */ jsx52(MySwitchTheme, {})
|
|
6682
7082
|
] }),
|
|
6683
|
-
/* @__PURE__ */
|
|
7083
|
+
/* @__PURE__ */ jsx52(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
|
6684
7084
|
] }) }),
|
|
6685
|
-
/* @__PURE__ */
|
|
6686
|
-
/* @__PURE__ */
|
|
7085
|
+
/* @__PURE__ */ jsx52(Container3, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
|
7086
|
+
/* @__PURE__ */ jsx52(
|
|
6687
7087
|
Drawer,
|
|
6688
7088
|
{
|
|
6689
7089
|
opened: drawerOpened,
|
|
@@ -6694,9 +7094,9 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
6694
7094
|
hiddenFrom: "sm",
|
|
6695
7095
|
zIndex: 1e6,
|
|
6696
7096
|
children: /* @__PURE__ */ jsxs28(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
|
6697
|
-
/* @__PURE__ */
|
|
6698
|
-
/* @__PURE__ */
|
|
6699
|
-
/* @__PURE__ */
|
|
7097
|
+
/* @__PURE__ */ jsx52(Divider4, { my: "sm" }),
|
|
7098
|
+
/* @__PURE__ */ jsx52(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx52(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
|
7099
|
+
/* @__PURE__ */ jsx52(Divider4, { my: "sm" })
|
|
6700
7100
|
] })
|
|
6701
7101
|
}
|
|
6702
7102
|
)
|
|
@@ -6705,15 +7105,15 @@ function HeaderMegaMenu({ children, menus }) {
|
|
|
6705
7105
|
|
|
6706
7106
|
// src/components/Layouts/Tab/MyTab.tsx
|
|
6707
7107
|
import { rem, Space as Space3, Tabs } from "@mantine/core";
|
|
6708
|
-
import { jsx as
|
|
7108
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6709
7109
|
function MyTab(_a) {
|
|
6710
7110
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
|
6711
7111
|
const iconStyle = { width: rem(20), height: rem(20) };
|
|
6712
7112
|
return /* @__PURE__ */ jsxs29(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
|
6713
|
-
/* @__PURE__ */
|
|
6714
|
-
return /* @__PURE__ */
|
|
7113
|
+
/* @__PURE__ */ jsx53(Tabs.List, { children: tabList.map((item, idx) => {
|
|
7114
|
+
return /* @__PURE__ */ jsx53(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx53(item.icon, { style: iconStyle }), children: item.label }, idx);
|
|
6715
7115
|
}) }),
|
|
6716
|
-
/* @__PURE__ */
|
|
7116
|
+
/* @__PURE__ */ jsx53(Space3, { my: "md" }),
|
|
6717
7117
|
children
|
|
6718
7118
|
] }));
|
|
6719
7119
|
}
|
|
@@ -6722,33 +7122,33 @@ function MyTab(_a) {
|
|
|
6722
7122
|
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group14, Modal as Modal11 } from "@mantine/core";
|
|
6723
7123
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
|
6724
7124
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
6725
|
-
import { jsx as
|
|
7125
|
+
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6726
7126
|
function MyDataTableSelect(_a) {
|
|
6727
7127
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
|
6728
7128
|
const disc = useDisclosure11(false);
|
|
6729
7129
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
|
6730
7130
|
return /* @__PURE__ */ jsxs30(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
|
6731
|
-
/* @__PURE__ */
|
|
7131
|
+
/* @__PURE__ */ jsx54(
|
|
6732
7132
|
MyDataTable,
|
|
6733
7133
|
__spreadValues({
|
|
6734
7134
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
6735
7135
|
return /* @__PURE__ */ jsxs30(Group14, { children: [
|
|
6736
7136
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
|
6737
|
-
/* @__PURE__ */
|
|
7137
|
+
/* @__PURE__ */ jsx54(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
|
6738
7138
|
] });
|
|
6739
7139
|
},
|
|
6740
7140
|
columns,
|
|
6741
7141
|
data: listState[0],
|
|
6742
7142
|
renderRowActions: ({ row }) => {
|
|
6743
|
-
return /* @__PURE__ */
|
|
7143
|
+
return /* @__PURE__ */ jsx54(MyCenterFull, { children: /* @__PURE__ */ jsx54(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx54(IconX2, {}) }) });
|
|
6744
7144
|
}
|
|
6745
7145
|
}, rest)
|
|
6746
7146
|
),
|
|
6747
|
-
/* @__PURE__ */
|
|
7147
|
+
/* @__PURE__ */ jsx54(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx54(
|
|
6748
7148
|
MyDataTable,
|
|
6749
7149
|
__spreadValues({
|
|
6750
7150
|
renderTopToolbarCustomActions: ({ table }) => {
|
|
6751
|
-
return /* @__PURE__ */
|
|
7151
|
+
return /* @__PURE__ */ jsx54(Button15, { onClick: () => {
|
|
6752
7152
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
|
6753
7153
|
disc[1].close();
|
|
6754
7154
|
}, children: "Ch\u1ECDn" });
|
|
@@ -6764,7 +7164,7 @@ function MyDataTableSelect(_a) {
|
|
|
6764
7164
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
|
6765
7165
|
import { Select as Select4 } from "@mantine/core";
|
|
6766
7166
|
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
6767
|
-
import { jsx as
|
|
7167
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6768
7168
|
function MySelectAPIGet(_a) {
|
|
6769
7169
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
|
6770
7170
|
var _a2;
|
|
@@ -6783,7 +7183,7 @@ function MySelectAPIGet(_a) {
|
|
|
6783
7183
|
label: `${item.code}-${item.name}`
|
|
6784
7184
|
};
|
|
6785
7185
|
});
|
|
6786
|
-
return /* @__PURE__ */
|
|
7186
|
+
return /* @__PURE__ */ jsx55(
|
|
6787
7187
|
Select4,
|
|
6788
7188
|
__spreadValues({
|
|
6789
7189
|
label,
|
|
@@ -6795,15 +7195,15 @@ function MySelectAPIGet(_a) {
|
|
|
6795
7195
|
|
|
6796
7196
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
|
6797
7197
|
import { Skeleton } from "@mantine/core";
|
|
6798
|
-
import { jsx as
|
|
7198
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6799
7199
|
function MySkeletonTable({ h: h4 = 500 }) {
|
|
6800
|
-
return /* @__PURE__ */
|
|
7200
|
+
return /* @__PURE__ */ jsx56(Skeleton, { h: h4 });
|
|
6801
7201
|
}
|
|
6802
7202
|
|
|
6803
7203
|
// src/modules-features/admin/core/core18256/F_core18256_Select.tsx
|
|
6804
7204
|
import { Select as Select5 } from "@mantine/core";
|
|
6805
7205
|
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
6806
|
-
import { jsx as
|
|
7206
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6807
7207
|
function F_core18256_Select(_a) {
|
|
6808
7208
|
var _b = _a, { documentTypeId, label = "", dataMapper } = _b, rest = __objRest(_b, ["documentTypeId", "label", "dataMapper"]);
|
|
6809
7209
|
var _a2, _b2;
|
|
@@ -6823,7 +7223,7 @@ function F_core18256_Select(_a) {
|
|
|
6823
7223
|
label: `${item.code}-${item.name}`
|
|
6824
7224
|
};
|
|
6825
7225
|
});
|
|
6826
|
-
return /* @__PURE__ */
|
|
7226
|
+
return /* @__PURE__ */ jsx57(
|
|
6827
7227
|
Select5,
|
|
6828
7228
|
__spreadProps(__spreadValues({
|
|
6829
7229
|
label,
|
|
@@ -6837,7 +7237,7 @@ function F_core18256_Select(_a) {
|
|
|
6837
7237
|
|
|
6838
7238
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
|
6839
7239
|
import { useForm } from "@mantine/form";
|
|
6840
|
-
import { jsx as
|
|
7240
|
+
import { jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6841
7241
|
function F_core12196_Create() {
|
|
6842
7242
|
const form = useForm({
|
|
6843
7243
|
mode: "uncontrolled"
|
|
@@ -6851,24 +7251,24 @@ function F_core12196_Create() {
|
|
|
6851
7251
|
})
|
|
6852
7252
|
);
|
|
6853
7253
|
}, children: [
|
|
6854
|
-
/* @__PURE__ */
|
|
6855
|
-
/* @__PURE__ */
|
|
6856
|
-
/* @__PURE__ */
|
|
6857
|
-
/* @__PURE__ */
|
|
6858
|
-
/* @__PURE__ */
|
|
6859
|
-
/* @__PURE__ */
|
|
7254
|
+
/* @__PURE__ */ jsx58(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7255
|
+
/* @__PURE__ */ jsx58(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7256
|
+
/* @__PURE__ */ jsx58(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7257
|
+
/* @__PURE__ */ jsx58(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7258
|
+
/* @__PURE__ */ jsx58(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7259
|
+
/* @__PURE__ */ jsx58(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
6860
7260
|
] });
|
|
6861
7261
|
}
|
|
6862
7262
|
|
|
6863
7263
|
// src/modules-features/admin/core/core12196/F_core12196_Delete.tsx
|
|
6864
|
-
import { jsx as
|
|
7264
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6865
7265
|
function F_core12196_Delete({ id }) {
|
|
6866
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ jsx59(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
6867
7267
|
}
|
|
6868
7268
|
|
|
6869
7269
|
// src/modules-features/admin/core/core12196/F_core12196_Update.tsx
|
|
6870
7270
|
import { useForm as useForm2 } from "@mantine/form";
|
|
6871
|
-
import { jsx as
|
|
7271
|
+
import { jsx as jsx60, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6872
7272
|
function F_core12196_Update({ values }) {
|
|
6873
7273
|
var _a;
|
|
6874
7274
|
const form = useForm2({
|
|
@@ -6882,17 +7282,17 @@ function F_core12196_Update({ values }) {
|
|
|
6882
7282
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
6883
7283
|
}));
|
|
6884
7284
|
}, children: [
|
|
6885
|
-
/* @__PURE__ */
|
|
6886
|
-
/* @__PURE__ */
|
|
6887
|
-
/* @__PURE__ */
|
|
6888
|
-
/* @__PURE__ */
|
|
6889
|
-
/* @__PURE__ */
|
|
6890
|
-
/* @__PURE__ */
|
|
7285
|
+
/* @__PURE__ */ jsx60(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7286
|
+
/* @__PURE__ */ jsx60(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7287
|
+
/* @__PURE__ */ jsx60(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7288
|
+
/* @__PURE__ */ jsx60(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Form }, form.getInputProps("documentAttributeId"))),
|
|
7289
|
+
/* @__PURE__ */ jsx60(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7290
|
+
/* @__PURE__ */ jsx60(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
6891
7291
|
] });
|
|
6892
7292
|
}
|
|
6893
7293
|
|
|
6894
7294
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
|
6895
|
-
import { jsx as
|
|
7295
|
+
import { jsx as jsx61, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6896
7296
|
function F_core12196() {
|
|
6897
7297
|
var _a, _b, _c;
|
|
6898
7298
|
const documentAttributeQuery = useQuery4({
|
|
@@ -6905,11 +7305,11 @@ function F_core12196() {
|
|
|
6905
7305
|
});
|
|
6906
7306
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
6907
7307
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
6908
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
6909
|
-
return /* @__PURE__ */
|
|
7308
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx61(Blockquote, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7309
|
+
return /* @__PURE__ */ jsx61(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx61(F_core12196_Create, {}), children: /* @__PURE__ */ jsx61(MyFlexColumn, { children: /* @__PURE__ */ jsx61(Accordion, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
6910
7310
|
var _a2;
|
|
6911
7311
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
6912
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7312
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx61(SubRead, { name: item.name, documentType: item.id }, idx)) }) }) });
|
|
6913
7313
|
}
|
|
6914
7314
|
function SubRead({ name, documentType }) {
|
|
6915
7315
|
const documentQuery = useQuery4({
|
|
@@ -6936,7 +7336,7 @@ function SubRead({ name, documentType }) {
|
|
|
6936
7336
|
{
|
|
6937
7337
|
header: "File",
|
|
6938
7338
|
accessorFn: (row) => {
|
|
6939
|
-
return /* @__PURE__ */
|
|
7339
|
+
return /* @__PURE__ */ jsx61(MyCenterFull, { children: /* @__PURE__ */ jsx61(MyButtonViewPDF, { id: row.id }) });
|
|
6940
7340
|
}
|
|
6941
7341
|
}
|
|
6942
7342
|
],
|
|
@@ -6945,15 +7345,15 @@ function SubRead({ name, documentType }) {
|
|
|
6945
7345
|
if (documentQuery.isLoading) return "Loading...";
|
|
6946
7346
|
if (documentQuery.isError) return "Error!";
|
|
6947
7347
|
return /* @__PURE__ */ jsxs33(Accordion.Item, { value: documentType.toString(), children: [
|
|
6948
|
-
/* @__PURE__ */
|
|
6949
|
-
/* @__PURE__ */
|
|
7348
|
+
/* @__PURE__ */ jsx61(Accordion.Control, { children: name }),
|
|
7349
|
+
/* @__PURE__ */ jsx61(Accordion.Panel, { children: /* @__PURE__ */ jsx61(
|
|
6950
7350
|
MyDataTable,
|
|
6951
7351
|
{
|
|
6952
7352
|
columns,
|
|
6953
7353
|
data: documentQuery.data,
|
|
6954
7354
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs33(MyCenterFull, { children: [
|
|
6955
|
-
/* @__PURE__ */
|
|
6956
|
-
/* @__PURE__ */
|
|
7355
|
+
/* @__PURE__ */ jsx61(F_core12196_Update, { values: row.original }),
|
|
7356
|
+
/* @__PURE__ */ jsx61(F_core12196_Delete, { id: row.original.id })
|
|
6957
7357
|
] })
|
|
6958
7358
|
}
|
|
6959
7359
|
) })
|
|
@@ -6967,7 +7367,7 @@ import { useMemo as useMemo4 } from "react";
|
|
|
6967
7367
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
|
6968
7368
|
import { FileInput as FileInput4 } from "@mantine/core";
|
|
6969
7369
|
import { useForm as useForm3 } from "@mantine/form";
|
|
6970
|
-
import { jsx as
|
|
7370
|
+
import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6971
7371
|
function F_core16209_Create() {
|
|
6972
7372
|
const form = useForm3({
|
|
6973
7373
|
mode: "uncontrolled"
|
|
@@ -6982,24 +7382,24 @@ function F_core16209_Create() {
|
|
|
6982
7382
|
})
|
|
6983
7383
|
);
|
|
6984
7384
|
}, children: [
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
/* @__PURE__ */
|
|
6989
|
-
/* @__PURE__ */
|
|
7385
|
+
/* @__PURE__ */ jsx62(MyTextInput, __spreadValues({ label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u" }, form.getInputProps("departmentName"))),
|
|
7386
|
+
/* @__PURE__ */ jsx62(MyTextInput, __spreadValues({ label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn" }, form.getInputProps("description"))),
|
|
7387
|
+
/* @__PURE__ */ jsx62(MyDateInput, __spreadValues({ label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u" }, form.getInputProps("startDate"))),
|
|
7388
|
+
/* @__PURE__ */ jsx62(MyDateInput, __spreadValues({ label: "Ng\xE0y k\u1EBFt th\xFAc" }, form.getInputProps("endDate"))),
|
|
7389
|
+
/* @__PURE__ */ jsx62(FileInput4, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
6990
7390
|
] });
|
|
6991
7391
|
}
|
|
6992
7392
|
|
|
6993
7393
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
|
6994
|
-
import { jsx as
|
|
7394
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
6995
7395
|
function F_core16209_Delete({ id }) {
|
|
6996
|
-
return /* @__PURE__ */
|
|
7396
|
+
return /* @__PURE__ */ jsx63(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
6997
7397
|
}
|
|
6998
7398
|
|
|
6999
7399
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
|
7000
7400
|
import { FileInput as FileInput5, TextInput as TextInput4 } from "@mantine/core";
|
|
7001
7401
|
import { useForm as useForm4 } from "@mantine/form";
|
|
7002
|
-
import { jsx as
|
|
7402
|
+
import { jsx as jsx64, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7003
7403
|
function F_core16209_Update({ values }) {
|
|
7004
7404
|
var _a;
|
|
7005
7405
|
const form = useForm4({
|
|
@@ -7014,15 +7414,15 @@ function F_core16209_Update({ values }) {
|
|
|
7014
7414
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7015
7415
|
}));
|
|
7016
7416
|
}, children: [
|
|
7017
|
-
/* @__PURE__ */
|
|
7018
|
-
/* @__PURE__ */
|
|
7019
|
-
/* @__PURE__ */
|
|
7020
|
-
/* @__PURE__ */
|
|
7417
|
+
/* @__PURE__ */ jsx64(TextInput4, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7418
|
+
/* @__PURE__ */ jsx64(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7419
|
+
/* @__PURE__ */ jsx64(TextInput4, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7420
|
+
/* @__PURE__ */ jsx64(FileInput5, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
7021
7421
|
] });
|
|
7022
7422
|
}
|
|
7023
7423
|
|
|
7024
7424
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
|
7025
|
-
import { jsx as
|
|
7425
|
+
import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7026
7426
|
function F_core16209() {
|
|
7027
7427
|
const query = useQuery5({
|
|
7028
7428
|
queryKey: ["F_core16209_Read"],
|
|
@@ -7053,7 +7453,7 @@ function F_core16209() {
|
|
|
7053
7453
|
{
|
|
7054
7454
|
header: "File",
|
|
7055
7455
|
accessorFn: (row) => {
|
|
7056
|
-
return /* @__PURE__ */
|
|
7456
|
+
return /* @__PURE__ */ jsx65(MyCenterFull, { children: /* @__PURE__ */ jsx65(MyButtonViewPDF, { id: row.id }) });
|
|
7057
7457
|
}
|
|
7058
7458
|
}
|
|
7059
7459
|
],
|
|
@@ -7061,16 +7461,16 @@ function F_core16209() {
|
|
|
7061
7461
|
);
|
|
7062
7462
|
if (query.isLoading) return "Loading...";
|
|
7063
7463
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7064
|
-
return /* @__PURE__ */
|
|
7464
|
+
return /* @__PURE__ */ jsx65(MyPageContent, { children: /* @__PURE__ */ jsx65(
|
|
7065
7465
|
MyDataTable,
|
|
7066
7466
|
{
|
|
7067
7467
|
columns,
|
|
7068
7468
|
data: query.data,
|
|
7069
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7469
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx65(F_core16209_Create, {}),
|
|
7070
7470
|
renderRowActions: ({ row }) => {
|
|
7071
7471
|
return /* @__PURE__ */ jsxs36(MyCenterFull, { children: [
|
|
7072
|
-
/* @__PURE__ */
|
|
7073
|
-
/* @__PURE__ */
|
|
7472
|
+
/* @__PURE__ */ jsx65(F_core16209_Update, { values: row.original }),
|
|
7473
|
+
/* @__PURE__ */ jsx65(F_core16209_Delete, { id: row.original.id })
|
|
7074
7474
|
] });
|
|
7075
7475
|
}
|
|
7076
7476
|
}
|
|
@@ -7086,7 +7486,7 @@ import { useMemo as useMemo5 } from "react";
|
|
|
7086
7486
|
|
|
7087
7487
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
|
7088
7488
|
import { useForm as useForm5 } from "@mantine/form";
|
|
7089
|
-
import { jsx as
|
|
7489
|
+
import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7090
7490
|
function F_core18256_Create({ documentType }) {
|
|
7091
7491
|
const form = useForm5({
|
|
7092
7492
|
mode: "uncontrolled",
|
|
@@ -7100,15 +7500,15 @@ function F_core18256_Create({ documentType }) {
|
|
|
7100
7500
|
}
|
|
7101
7501
|
});
|
|
7102
7502
|
return /* @__PURE__ */ jsxs37(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
|
7103
|
-
/* @__PURE__ */
|
|
7104
|
-
/* @__PURE__ */
|
|
7503
|
+
/* @__PURE__ */ jsx66(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7504
|
+
/* @__PURE__ */ jsx66(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7105
7505
|
] });
|
|
7106
7506
|
}
|
|
7107
7507
|
|
|
7108
7508
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
|
7109
|
-
import { jsx as
|
|
7509
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
7110
7510
|
function F_core18256_Delete({ id }) {
|
|
7111
|
-
return /* @__PURE__ */
|
|
7511
|
+
return /* @__PURE__ */ jsx67(
|
|
7112
7512
|
MyActionIconDelete,
|
|
7113
7513
|
{
|
|
7114
7514
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
|
@@ -7118,19 +7518,19 @@ function F_core18256_Delete({ id }) {
|
|
|
7118
7518
|
|
|
7119
7519
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
|
7120
7520
|
import { useForm as useForm6 } from "@mantine/form";
|
|
7121
|
-
import { jsx as
|
|
7521
|
+
import { jsx as jsx68, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7122
7522
|
function F_core18256_Update({ values }) {
|
|
7123
7523
|
const form = useForm6({
|
|
7124
7524
|
initialValues: values
|
|
7125
7525
|
});
|
|
7126
7526
|
return /* @__PURE__ */ jsxs38(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
|
7127
|
-
/* @__PURE__ */
|
|
7128
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
|
7528
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
|
7129
7529
|
] });
|
|
7130
7530
|
}
|
|
7131
7531
|
|
|
7132
7532
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
|
7133
|
-
import { jsx as
|
|
7533
|
+
import { jsx as jsx69, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7134
7534
|
function F_core18256_Read({ documentType }) {
|
|
7135
7535
|
const documentAttributeQuery = useQuery6({
|
|
7136
7536
|
queryKey: ["F_core18256_Read", documentType],
|
|
@@ -7155,17 +7555,17 @@ function F_core18256_Read({ documentType }) {
|
|
|
7155
7555
|
);
|
|
7156
7556
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
7157
7557
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7158
|
-
return /* @__PURE__ */
|
|
7558
|
+
return /* @__PURE__ */ jsx69(
|
|
7159
7559
|
MyDataTable,
|
|
7160
7560
|
{
|
|
7161
7561
|
columns,
|
|
7162
7562
|
enableRowNumbers: true,
|
|
7163
7563
|
data: documentAttributeQuery.data,
|
|
7164
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
7564
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx69(F_core18256_Create, { documentType }),
|
|
7165
7565
|
renderRowActions: ({ row }) => {
|
|
7166
7566
|
return /* @__PURE__ */ jsxs39(MyCenterFull, { children: [
|
|
7167
|
-
/* @__PURE__ */
|
|
7168
|
-
/* @__PURE__ */
|
|
7567
|
+
/* @__PURE__ */ jsx69(F_core18256_Update, { values: row.original }),
|
|
7568
|
+
/* @__PURE__ */ jsx69(F_core18256_Delete, { id: row.original.id })
|
|
7169
7569
|
] });
|
|
7170
7570
|
}
|
|
7171
7571
|
}
|
|
@@ -7173,23 +7573,23 @@ function F_core18256_Read({ documentType }) {
|
|
|
7173
7573
|
}
|
|
7174
7574
|
|
|
7175
7575
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
|
7176
|
-
import { jsx as
|
|
7576
|
+
import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7177
7577
|
var tabData = [
|
|
7178
7578
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
|
7179
7579
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
|
7180
7580
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
|
7181
7581
|
];
|
|
7182
7582
|
function F_core18256() {
|
|
7183
|
-
return /* @__PURE__ */
|
|
7184
|
-
/* @__PURE__ */
|
|
7185
|
-
/* @__PURE__ */
|
|
7186
|
-
/* @__PURE__ */
|
|
7583
|
+
return /* @__PURE__ */ jsx70(MyPageContent, { children: /* @__PURE__ */ jsxs40(MyTab, { tabList: tabData, children: [
|
|
7584
|
+
/* @__PURE__ */ jsx70(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx70(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
|
7585
|
+
/* @__PURE__ */ jsx70(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx70(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
|
|
7586
|
+
/* @__PURE__ */ jsx70(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx70(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
|
7187
7587
|
] }) });
|
|
7188
7588
|
}
|
|
7189
7589
|
|
|
7190
7590
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
|
7191
7591
|
import { useForm as useForm7 } from "@mantine/form";
|
|
7192
|
-
import { jsx as
|
|
7592
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7193
7593
|
function F_core26965_Create() {
|
|
7194
7594
|
const form = useForm7({
|
|
7195
7595
|
mode: "uncontrolled"
|
|
@@ -7203,12 +7603,12 @@ function F_core26965_Create() {
|
|
|
7203
7603
|
})
|
|
7204
7604
|
);
|
|
7205
7605
|
}, children: [
|
|
7206
|
-
/* @__PURE__ */
|
|
7207
|
-
/* @__PURE__ */
|
|
7208
|
-
/* @__PURE__ */
|
|
7209
|
-
/* @__PURE__ */
|
|
7210
|
-
/* @__PURE__ */
|
|
7211
|
-
/* @__PURE__ */
|
|
7606
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7607
|
+
/* @__PURE__ */ jsx71(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7608
|
+
/* @__PURE__ */ jsx71(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7609
|
+
/* @__PURE__ */ jsx71(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7610
|
+
/* @__PURE__ */ jsx71(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7611
|
+
/* @__PURE__ */ jsx71(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7212
7612
|
] });
|
|
7213
7613
|
}
|
|
7214
7614
|
|
|
@@ -7218,14 +7618,14 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
7218
7618
|
import { useMemo as useMemo6 } from "react";
|
|
7219
7619
|
|
|
7220
7620
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
|
7221
|
-
import { jsx as
|
|
7621
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
7222
7622
|
function F_core26965_Delete({ id }) {
|
|
7223
|
-
return /* @__PURE__ */
|
|
7623
|
+
return /* @__PURE__ */ jsx72(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7224
7624
|
}
|
|
7225
7625
|
|
|
7226
7626
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
|
7227
7627
|
import { useForm as useForm8 } from "@mantine/form";
|
|
7228
|
-
import { jsx as
|
|
7628
|
+
import { jsx as jsx73, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7229
7629
|
function F_core26965_Update({ values }) {
|
|
7230
7630
|
var _a;
|
|
7231
7631
|
const form = useForm8({
|
|
@@ -7239,17 +7639,17 @@ function F_core26965_Update({ values }) {
|
|
|
7239
7639
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7240
7640
|
}));
|
|
7241
7641
|
}, children: [
|
|
7242
|
-
/* @__PURE__ */
|
|
7243
|
-
/* @__PURE__ */
|
|
7244
|
-
/* @__PURE__ */
|
|
7245
|
-
/* @__PURE__ */
|
|
7246
|
-
/* @__PURE__ */
|
|
7247
|
-
/* @__PURE__ */
|
|
7642
|
+
/* @__PURE__ */ jsx73(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7643
|
+
/* @__PURE__ */ jsx73(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7644
|
+
/* @__PURE__ */ jsx73(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7645
|
+
/* @__PURE__ */ jsx73(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7646
|
+
/* @__PURE__ */ jsx73(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7647
|
+
/* @__PURE__ */ jsx73(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7248
7648
|
] });
|
|
7249
7649
|
}
|
|
7250
7650
|
|
|
7251
7651
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
|
7252
|
-
import { jsx as
|
|
7652
|
+
import { jsx as jsx74, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7253
7653
|
function F_core26965_Read() {
|
|
7254
7654
|
var _a, _b, _c;
|
|
7255
7655
|
const documentAttributeQuery = useQuery7({
|
|
@@ -7262,11 +7662,11 @@ function F_core26965_Read() {
|
|
|
7262
7662
|
});
|
|
7263
7663
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7264
7664
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7265
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7266
|
-
return /* @__PURE__ */
|
|
7665
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx74(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7666
|
+
return /* @__PURE__ */ jsx74(MyFlexColumn, { children: /* @__PURE__ */ jsx74(Accordion2, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7267
7667
|
var _a2;
|
|
7268
7668
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7269
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7669
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx74(SubRead2, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7270
7670
|
}
|
|
7271
7671
|
function SubRead2({ name, documentType }) {
|
|
7272
7672
|
const documentQuery = useQuery7({
|
|
@@ -7293,7 +7693,7 @@ function SubRead2({ name, documentType }) {
|
|
|
7293
7693
|
{
|
|
7294
7694
|
header: "File",
|
|
7295
7695
|
accessorFn: (row) => {
|
|
7296
|
-
return /* @__PURE__ */
|
|
7696
|
+
return /* @__PURE__ */ jsx74(MyCenterFull, { children: /* @__PURE__ */ jsx74(MyButtonViewPDF, { id: row.id }) });
|
|
7297
7697
|
}
|
|
7298
7698
|
}
|
|
7299
7699
|
],
|
|
@@ -7302,15 +7702,15 @@ function SubRead2({ name, documentType }) {
|
|
|
7302
7702
|
if (documentQuery.isLoading) return "Loading...";
|
|
7303
7703
|
if (documentQuery.isError) return "Error!";
|
|
7304
7704
|
return /* @__PURE__ */ jsxs43(Accordion2.Item, { value: documentType.toString(), children: [
|
|
7305
|
-
/* @__PURE__ */
|
|
7306
|
-
/* @__PURE__ */
|
|
7705
|
+
/* @__PURE__ */ jsx74(Accordion2.Control, { children: name }),
|
|
7706
|
+
/* @__PURE__ */ jsx74(Accordion2.Panel, { children: /* @__PURE__ */ jsx74(
|
|
7307
7707
|
MyDataTable,
|
|
7308
7708
|
{
|
|
7309
7709
|
columns,
|
|
7310
7710
|
data: documentQuery.data,
|
|
7311
7711
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs43(MyCenterFull, { children: [
|
|
7312
|
-
/* @__PURE__ */
|
|
7313
|
-
/* @__PURE__ */
|
|
7712
|
+
/* @__PURE__ */ jsx74(F_core26965_Update, { values: row.original }),
|
|
7713
|
+
/* @__PURE__ */ jsx74(F_core26965_Delete, { id: row.original.id })
|
|
7314
7714
|
] })
|
|
7315
7715
|
}
|
|
7316
7716
|
) })
|
|
@@ -7318,14 +7718,14 @@ function SubRead2({ name, documentType }) {
|
|
|
7318
7718
|
}
|
|
7319
7719
|
|
|
7320
7720
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
|
7321
|
-
import { jsx as
|
|
7721
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
7322
7722
|
function F_core26965() {
|
|
7323
|
-
return /* @__PURE__ */
|
|
7723
|
+
return /* @__PURE__ */ jsx75(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx75(F_core26965_Create, {}), children: /* @__PURE__ */ jsx75(F_core26965_Read, {}) });
|
|
7324
7724
|
}
|
|
7325
7725
|
|
|
7326
7726
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
|
7327
7727
|
import { useForm as useForm9 } from "@mantine/form";
|
|
7328
|
-
import { jsx as
|
|
7728
|
+
import { jsx as jsx76, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7329
7729
|
function F_core27311_Create() {
|
|
7330
7730
|
const form = useForm9({
|
|
7331
7731
|
mode: "uncontrolled"
|
|
@@ -7339,12 +7739,12 @@ function F_core27311_Create() {
|
|
|
7339
7739
|
})
|
|
7340
7740
|
);
|
|
7341
7741
|
}, children: [
|
|
7342
|
-
/* @__PURE__ */
|
|
7343
|
-
/* @__PURE__ */
|
|
7344
|
-
/* @__PURE__ */
|
|
7345
|
-
/* @__PURE__ */
|
|
7346
|
-
/* @__PURE__ */
|
|
7347
|
-
/* @__PURE__ */
|
|
7742
|
+
/* @__PURE__ */ jsx76(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7743
|
+
/* @__PURE__ */ jsx76(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7744
|
+
/* @__PURE__ */ jsx76(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7745
|
+
/* @__PURE__ */ jsx76(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Workflow }, form.getInputProps("documentAttributeId"))),
|
|
7746
|
+
/* @__PURE__ */ jsx76(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7747
|
+
/* @__PURE__ */ jsx76(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7348
7748
|
] });
|
|
7349
7749
|
}
|
|
7350
7750
|
|
|
@@ -7354,14 +7754,14 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
|
7354
7754
|
import { useMemo as useMemo7 } from "react";
|
|
7355
7755
|
|
|
7356
7756
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
|
7357
|
-
import { jsx as
|
|
7757
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
7358
7758
|
function F_core27311_Delete({ id }) {
|
|
7359
|
-
return /* @__PURE__ */
|
|
7759
|
+
return /* @__PURE__ */ jsx77(MyActionIconDelete, { onSubmit: async () => await baseAxios_default.post("/Document/delete", { id }) });
|
|
7360
7760
|
}
|
|
7361
7761
|
|
|
7362
7762
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
|
7363
7763
|
import { useForm as useForm10 } from "@mantine/form";
|
|
7364
|
-
import { jsx as
|
|
7764
|
+
import { jsx as jsx78, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7365
7765
|
function F_core27311_Update({ values }) {
|
|
7366
7766
|
var _a;
|
|
7367
7767
|
const form = useForm10({
|
|
@@ -7375,17 +7775,17 @@ function F_core27311_Update({ values }) {
|
|
|
7375
7775
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
7376
7776
|
}));
|
|
7377
7777
|
}, children: [
|
|
7378
|
-
/* @__PURE__ */
|
|
7379
|
-
/* @__PURE__ */
|
|
7380
|
-
/* @__PURE__ */
|
|
7381
|
-
/* @__PURE__ */
|
|
7382
|
-
/* @__PURE__ */
|
|
7383
|
-
/* @__PURE__ */
|
|
7778
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
7779
|
+
/* @__PURE__ */ jsx78(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
7780
|
+
/* @__PURE__ */ jsx78(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
7781
|
+
/* @__PURE__ */ jsx78(F_core18256_Select, __spreadValues({ label: "Lo\u1EA1i v\u0103n b\u1EA3n", documentTypeId: OBJECT_DOCUMENT_TYPES.Regulations }, form.getInputProps("documentAttributeId"))),
|
|
7782
|
+
/* @__PURE__ */ jsx78(MyFileInput, __spreadValues({ label: "V\u0103n b\u1EA3n" }, form.getInputProps("file"))),
|
|
7783
|
+
/* @__PURE__ */ jsx78(MyNumberInput, __spreadValues({ label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch" }, form.getInputProps("orderBy")))
|
|
7384
7784
|
] });
|
|
7385
7785
|
}
|
|
7386
7786
|
|
|
7387
7787
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
|
7388
|
-
import { jsx as
|
|
7788
|
+
import { jsx as jsx79, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7389
7789
|
function F_core27311_Read() {
|
|
7390
7790
|
var _a, _b, _c;
|
|
7391
7791
|
const documentAttributeQuery = useQuery8({
|
|
@@ -7398,11 +7798,11 @@ function F_core27311_Read() {
|
|
|
7398
7798
|
});
|
|
7399
7799
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
|
7400
7800
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7401
|
-
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */
|
|
7402
|
-
return /* @__PURE__ */
|
|
7801
|
+
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0) return /* @__PURE__ */ jsx79(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
|
7802
|
+
return /* @__PURE__ */ jsx79(MyFlexColumn, { children: /* @__PURE__ */ jsx79(Accordion3, { defaultValue: (_b = documentAttributeQuery.data) == null ? void 0 : _b.map((item) => {
|
|
7403
7803
|
var _a2;
|
|
7404
7804
|
return (_a2 = item.id) == null ? void 0 : _a2.toString();
|
|
7405
|
-
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
|
7805
|
+
}), multiple: true, children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx79(SubRead3, { name: item.name, documentType: item.id }, idx)) }) });
|
|
7406
7806
|
}
|
|
7407
7807
|
function SubRead3({ name, documentType }) {
|
|
7408
7808
|
const documentQuery = useQuery8({
|
|
@@ -7429,7 +7829,7 @@ function SubRead3({ name, documentType }) {
|
|
|
7429
7829
|
{
|
|
7430
7830
|
header: "File",
|
|
7431
7831
|
accessorFn: (row) => {
|
|
7432
|
-
return /* @__PURE__ */
|
|
7832
|
+
return /* @__PURE__ */ jsx79(MyCenterFull, { children: /* @__PURE__ */ jsx79(MyButtonViewPDF, { id: row.id }) });
|
|
7433
7833
|
}
|
|
7434
7834
|
}
|
|
7435
7835
|
],
|
|
@@ -7438,15 +7838,15 @@ function SubRead3({ name, documentType }) {
|
|
|
7438
7838
|
if (documentQuery.isLoading) return "Loading...";
|
|
7439
7839
|
if (documentQuery.isError) return "Error!";
|
|
7440
7840
|
return /* @__PURE__ */ jsxs46(Accordion3.Item, { value: documentType.toString(), children: [
|
|
7441
|
-
/* @__PURE__ */
|
|
7442
|
-
/* @__PURE__ */
|
|
7841
|
+
/* @__PURE__ */ jsx79(Accordion3.Control, { children: name }),
|
|
7842
|
+
/* @__PURE__ */ jsx79(Accordion3.Panel, { children: /* @__PURE__ */ jsx79(
|
|
7443
7843
|
MyDataTable,
|
|
7444
7844
|
{
|
|
7445
7845
|
columns,
|
|
7446
7846
|
data: documentQuery.data,
|
|
7447
7847
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs46(MyCenterFull, { children: [
|
|
7448
|
-
/* @__PURE__ */
|
|
7449
|
-
/* @__PURE__ */
|
|
7848
|
+
/* @__PURE__ */ jsx79(F_core27311_Update, { values: row.original }),
|
|
7849
|
+
/* @__PURE__ */ jsx79(F_core27311_Delete, { id: row.original.id })
|
|
7450
7850
|
] })
|
|
7451
7851
|
}
|
|
7452
7852
|
) })
|
|
@@ -7454,9 +7854,9 @@ function SubRead3({ name, documentType }) {
|
|
|
7454
7854
|
}
|
|
7455
7855
|
|
|
7456
7856
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
|
7457
|
-
import { jsx as
|
|
7857
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
7458
7858
|
function F_core27311() {
|
|
7459
|
-
return /* @__PURE__ */
|
|
7859
|
+
return /* @__PURE__ */ jsx80(MyPageContent, { rightTopBar: /* @__PURE__ */ jsx80(F_core27311_Create, {}), children: /* @__PURE__ */ jsx80(F_core27311_Read, {}) });
|
|
7460
7860
|
}
|
|
7461
7861
|
|
|
7462
7862
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
@@ -7465,7 +7865,7 @@ import { Grid, Paper as Paper6, ScrollArea as ScrollArea6 } from "@mantine/core"
|
|
|
7465
7865
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
|
7466
7866
|
import { Container as Container4 } from "@mantine/core";
|
|
7467
7867
|
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
7468
|
-
import { useEffect as useEffect6, useMemo as useMemo8, useState as
|
|
7868
|
+
import { useEffect as useEffect6, useMemo as useMemo8, useState as useState9 } from "react";
|
|
7469
7869
|
|
|
7470
7870
|
// src/modules-features/admin/core/core83092/useS_core83092.tsx
|
|
7471
7871
|
var useStore3 = createGenericStore({
|
|
@@ -7516,11 +7916,11 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
|
7516
7916
|
}
|
|
7517
7917
|
|
|
7518
7918
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
|
7519
|
-
import { jsx as
|
|
7919
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
7520
7920
|
function F_core38677_ReadUser() {
|
|
7521
7921
|
const store = useS_core83092();
|
|
7522
7922
|
const query = useQ_Account_GetAdminAccount();
|
|
7523
|
-
const [rowSelection, setRowSelection] =
|
|
7923
|
+
const [rowSelection, setRowSelection] = useState9({});
|
|
7524
7924
|
const columns = useMemo8(
|
|
7525
7925
|
() => [
|
|
7526
7926
|
{
|
|
@@ -7549,7 +7949,7 @@ function F_core38677_ReadUser() {
|
|
|
7549
7949
|
}, [query.data]);
|
|
7550
7950
|
if (query.isLoading) return "Loading...";
|
|
7551
7951
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
7552
|
-
return /* @__PURE__ */
|
|
7952
|
+
return /* @__PURE__ */ jsx81(Container4, { fluid: true, children: /* @__PURE__ */ jsx81(
|
|
7553
7953
|
MyDataTable,
|
|
7554
7954
|
{
|
|
7555
7955
|
columns,
|
|
@@ -7584,11 +7984,11 @@ function useQ_Account_GetAdminAccount() {
|
|
|
7584
7984
|
|
|
7585
7985
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
|
7586
7986
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
|
7587
|
-
import { useEffect as useEffect7, useState as
|
|
7588
|
-
import { jsx as
|
|
7987
|
+
import { useEffect as useEffect7, useState as useState10 } from "react";
|
|
7988
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
7589
7989
|
function F_core38677_Save() {
|
|
7590
7990
|
const store = useS_core83092();
|
|
7591
|
-
const disable =
|
|
7991
|
+
const disable = useState10(false);
|
|
7592
7992
|
const mutation = useMutation5({
|
|
7593
7993
|
mutationFn: async (body) => {
|
|
7594
7994
|
const res = await baseAxios_default.put("/Role/UpdatePermission", body);
|
|
@@ -7614,7 +8014,7 @@ function F_core38677_Save() {
|
|
|
7614
8014
|
}
|
|
7615
8015
|
disable[1](false);
|
|
7616
8016
|
}, [store.state.rolePermissions]);
|
|
7617
|
-
return /* @__PURE__ */
|
|
8017
|
+
return /* @__PURE__ */ jsx82(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
7618
8018
|
}
|
|
7619
8019
|
|
|
7620
8020
|
// src/data/menuData.ts
|
|
@@ -7755,14 +8155,14 @@ var menuData = [
|
|
|
7755
8155
|
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text13 } from "@mantine/core";
|
|
7756
8156
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
|
7757
8157
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
7758
|
-
import React2, { useEffect as useEffect8, useState as
|
|
7759
|
-
import { jsx as
|
|
8158
|
+
import React2, { useEffect as useEffect8, useState as useState11 } from "react";
|
|
8159
|
+
import { jsx as jsx83, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7760
8160
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
7761
8161
|
function F_core38677_ViewMenuPermissions() {
|
|
7762
8162
|
var _a, _b;
|
|
7763
8163
|
const store = useS_core83092();
|
|
7764
8164
|
const query = useGetUserPermission();
|
|
7765
|
-
const list =
|
|
8165
|
+
const list = useState11([]);
|
|
7766
8166
|
useEffect8(() => {
|
|
7767
8167
|
list[1](groupToTwoLevels(menuData));
|
|
7768
8168
|
}, []);
|
|
@@ -7771,8 +8171,8 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7771
8171
|
store.setProperty("rolePermissions", query.data);
|
|
7772
8172
|
}, [query.data]);
|
|
7773
8173
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
7774
|
-
return /* @__PURE__ */
|
|
7775
|
-
/* @__PURE__ */
|
|
8174
|
+
return /* @__PURE__ */ jsx83(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs47(Table3, { children: [
|
|
8175
|
+
/* @__PURE__ */ jsx83(
|
|
7776
8176
|
Table3.Thead,
|
|
7777
8177
|
{
|
|
7778
8178
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -7784,89 +8184,89 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7784
8184
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
7785
8185
|
},
|
|
7786
8186
|
children: /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
7787
|
-
/* @__PURE__ */
|
|
7788
|
-
/* @__PURE__ */
|
|
7789
|
-
/* @__PURE__ */
|
|
8187
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: title }),
|
|
8188
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8189
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
7790
8190
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
7791
8191
|
} }),
|
|
7792
8192
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7793
8193
|
"Xem",
|
|
7794
|
-
/* @__PURE__ */
|
|
8194
|
+
/* @__PURE__ */ jsx83(IconEyeUp, { color: "gray" })
|
|
7795
8195
|
] })
|
|
7796
8196
|
] }) }),
|
|
7797
|
-
/* @__PURE__ */
|
|
7798
|
-
/* @__PURE__ */
|
|
8197
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8198
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
7799
8199
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
7800
8200
|
} }),
|
|
7801
8201
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7802
8202
|
"Th\xEAm",
|
|
7803
|
-
/* @__PURE__ */
|
|
8203
|
+
/* @__PURE__ */ jsx83(IconPlus5, { color: "blue" })
|
|
7804
8204
|
] })
|
|
7805
8205
|
] }) }),
|
|
7806
|
-
/* @__PURE__ */
|
|
7807
|
-
/* @__PURE__ */
|
|
8206
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8207
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
7808
8208
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
7809
8209
|
} }),
|
|
7810
8210
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7811
8211
|
"S\u1EEDa",
|
|
7812
|
-
/* @__PURE__ */
|
|
8212
|
+
/* @__PURE__ */ jsx83(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
|
7813
8213
|
] })
|
|
7814
8214
|
] }) }),
|
|
7815
|
-
/* @__PURE__ */
|
|
7816
|
-
/* @__PURE__ */
|
|
8215
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8216
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
7817
8217
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
7818
8218
|
} }),
|
|
7819
8219
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7820
8220
|
"X\xF3a",
|
|
7821
|
-
/* @__PURE__ */
|
|
8221
|
+
/* @__PURE__ */ jsx83(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
|
7822
8222
|
] })
|
|
7823
8223
|
] }) }),
|
|
7824
|
-
/* @__PURE__ */
|
|
7825
|
-
/* @__PURE__ */
|
|
8224
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8225
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
7826
8226
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
7827
8227
|
} }),
|
|
7828
8228
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7829
8229
|
"In",
|
|
7830
|
-
/* @__PURE__ */
|
|
8230
|
+
/* @__PURE__ */ jsx83(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
|
7831
8231
|
] })
|
|
7832
8232
|
] }) }),
|
|
7833
|
-
/* @__PURE__ */
|
|
7834
|
-
/* @__PURE__ */
|
|
8233
|
+
/* @__PURE__ */ jsx83(Table3.Th, { children: /* @__PURE__ */ jsxs47(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
8234
|
+
/* @__PURE__ */ jsx83(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
7835
8235
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
7836
8236
|
} }),
|
|
7837
8237
|
/* @__PURE__ */ jsxs47(MyFlexRow, { gap: 3, children: [
|
|
7838
8238
|
"Xu\u1EA5t",
|
|
7839
|
-
/* @__PURE__ */
|
|
8239
|
+
/* @__PURE__ */ jsx83(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
|
7840
8240
|
] })
|
|
7841
8241
|
] }) })
|
|
7842
8242
|
] })
|
|
7843
8243
|
}
|
|
7844
8244
|
),
|
|
7845
|
-
/* @__PURE__ */
|
|
8245
|
+
/* @__PURE__ */ jsx83(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
|
7846
8246
|
if (item.links == void 0) return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
7847
|
-
/* @__PURE__ */
|
|
7848
|
-
/* @__PURE__ */
|
|
7849
|
-
/* @__PURE__ */
|
|
7850
|
-
/* @__PURE__ */
|
|
7851
|
-
/* @__PURE__ */
|
|
7852
|
-
/* @__PURE__ */
|
|
7853
|
-
/* @__PURE__ */
|
|
8247
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: item.label }),
|
|
8248
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) }),
|
|
8249
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) }),
|
|
8250
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) }),
|
|
8251
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) }),
|
|
8252
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) }),
|
|
8253
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(Checkbox3, {}) }) })
|
|
7854
8254
|
] }, idx);
|
|
7855
8255
|
return /* @__PURE__ */ jsxs47(React2.Fragment, { children: [
|
|
7856
|
-
/* @__PURE__ */
|
|
8256
|
+
/* @__PURE__ */ jsx83(Table3.Tr, { children: /* @__PURE__ */ jsx83(
|
|
7857
8257
|
Table3.Td,
|
|
7858
8258
|
{
|
|
7859
8259
|
colSpan: 7,
|
|
7860
8260
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
7861
|
-
children: /* @__PURE__ */
|
|
8261
|
+
children: /* @__PURE__ */ jsx83(Text13, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
7862
8262
|
}
|
|
7863
8263
|
) }, item.label),
|
|
7864
8264
|
item.links.map(
|
|
7865
8265
|
(item2, idx2) => {
|
|
7866
8266
|
var _a2, _b2, _c, _d, _e, _f;
|
|
7867
8267
|
return /* @__PURE__ */ jsxs47(Table3.Tr, { children: [
|
|
7868
|
-
/* @__PURE__ */
|
|
7869
|
-
/* @__PURE__ */
|
|
8268
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: item2.label }),
|
|
8269
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7870
8270
|
Checkbox3,
|
|
7871
8271
|
{
|
|
7872
8272
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -7877,7 +8277,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7877
8277
|
}
|
|
7878
8278
|
}
|
|
7879
8279
|
) }) }),
|
|
7880
|
-
/* @__PURE__ */
|
|
8280
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7881
8281
|
Checkbox3,
|
|
7882
8282
|
{
|
|
7883
8283
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -7888,7 +8288,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7888
8288
|
}
|
|
7889
8289
|
}
|
|
7890
8290
|
) }) }),
|
|
7891
|
-
/* @__PURE__ */
|
|
8291
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7892
8292
|
Checkbox3,
|
|
7893
8293
|
{
|
|
7894
8294
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -7899,7 +8299,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7899
8299
|
}
|
|
7900
8300
|
}
|
|
7901
8301
|
) }) }),
|
|
7902
|
-
/* @__PURE__ */
|
|
8302
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7903
8303
|
Checkbox3,
|
|
7904
8304
|
{
|
|
7905
8305
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -7910,7 +8310,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7910
8310
|
}
|
|
7911
8311
|
}
|
|
7912
8312
|
) }) }),
|
|
7913
|
-
/* @__PURE__ */
|
|
8313
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7914
8314
|
Checkbox3,
|
|
7915
8315
|
{
|
|
7916
8316
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -7921,7 +8321,7 @@ function F_core38677_ViewMenuPermissions() {
|
|
|
7921
8321
|
}
|
|
7922
8322
|
}
|
|
7923
8323
|
) }) }),
|
|
7924
|
-
/* @__PURE__ */
|
|
8324
|
+
/* @__PURE__ */ jsx83(Table3.Td, { children: /* @__PURE__ */ jsx83(MyCenterFull, { children: /* @__PURE__ */ jsx83(
|
|
7925
8325
|
Checkbox3,
|
|
7926
8326
|
{
|
|
7927
8327
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -7977,7 +8377,7 @@ function useGetUserPermission() {
|
|
|
7977
8377
|
}
|
|
7978
8378
|
|
|
7979
8379
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
|
7980
|
-
import { jsx as
|
|
8380
|
+
import { jsx as jsx84, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7981
8381
|
|
|
7982
8382
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
7983
8383
|
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
@@ -7986,7 +8386,7 @@ import { useMemo as useMemo9 } from "react";
|
|
|
7986
8386
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
|
7987
8387
|
import { FileInput as FileInput6 } from "@mantine/core";
|
|
7988
8388
|
import { useForm as useForm11 } from "@mantine/form";
|
|
7989
|
-
import { jsx as
|
|
8389
|
+
import { jsx as jsx85, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7990
8390
|
function F_core40207_Create() {
|
|
7991
8391
|
const form = useForm11({
|
|
7992
8392
|
mode: "uncontrolled"
|
|
@@ -8001,22 +8401,22 @@ function F_core40207_Create() {
|
|
|
8001
8401
|
})
|
|
8002
8402
|
);
|
|
8003
8403
|
}, children: [
|
|
8004
|
-
/* @__PURE__ */
|
|
8005
|
-
/* @__PURE__ */
|
|
8006
|
-
/* @__PURE__ */
|
|
8404
|
+
/* @__PURE__ */ jsx85(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8405
|
+
/* @__PURE__ */ jsx85(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8406
|
+
/* @__PURE__ */ jsx85(FileInput6, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
8007
8407
|
] });
|
|
8008
8408
|
}
|
|
8009
8409
|
|
|
8010
8410
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
|
8011
|
-
import { jsx as
|
|
8411
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
8012
8412
|
function F_core40207_Delete({ id }) {
|
|
8013
|
-
return /* @__PURE__ */
|
|
8413
|
+
return /* @__PURE__ */ jsx86(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
8014
8414
|
}
|
|
8015
8415
|
|
|
8016
8416
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
|
8017
8417
|
import { FileInput as FileInput7 } from "@mantine/core";
|
|
8018
8418
|
import { useForm as useForm12 } from "@mantine/form";
|
|
8019
|
-
import { jsx as
|
|
8419
|
+
import { jsx as jsx87, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8020
8420
|
function F_core40207_Update({ values }) {
|
|
8021
8421
|
var _a;
|
|
8022
8422
|
const form = useForm12({
|
|
@@ -8031,14 +8431,14 @@ function F_core40207_Update({ values }) {
|
|
|
8031
8431
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
8032
8432
|
}));
|
|
8033
8433
|
}, children: [
|
|
8034
|
-
/* @__PURE__ */
|
|
8035
|
-
/* @__PURE__ */
|
|
8036
|
-
/* @__PURE__ */
|
|
8434
|
+
/* @__PURE__ */ jsx87(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i li\u1EC7u" }, form.getInputProps("code"))),
|
|
8435
|
+
/* @__PURE__ */ jsx87(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
8436
|
+
/* @__PURE__ */ jsx87(FileInput7, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
8037
8437
|
] });
|
|
8038
8438
|
}
|
|
8039
8439
|
|
|
8040
8440
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
|
8041
|
-
import { jsx as
|
|
8441
|
+
import { jsx as jsx88, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8042
8442
|
function F_core40207_Read() {
|
|
8043
8443
|
const query = useQuery11({
|
|
8044
8444
|
queryKey: ["F_core40207_Read"],
|
|
@@ -8061,7 +8461,7 @@ function F_core40207_Read() {
|
|
|
8061
8461
|
{
|
|
8062
8462
|
header: "File",
|
|
8063
8463
|
accessorFn: (row) => {
|
|
8064
|
-
return /* @__PURE__ */
|
|
8464
|
+
return /* @__PURE__ */ jsx88(MyCenterFull, { children: /* @__PURE__ */ jsx88(MyButtonViewPDF, { id: row.id }) });
|
|
8065
8465
|
}
|
|
8066
8466
|
}
|
|
8067
8467
|
],
|
|
@@ -8069,16 +8469,16 @@ function F_core40207_Read() {
|
|
|
8069
8469
|
);
|
|
8070
8470
|
if (query.isLoading) return "Loading...";
|
|
8071
8471
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8072
|
-
return /* @__PURE__ */
|
|
8472
|
+
return /* @__PURE__ */ jsx88(
|
|
8073
8473
|
MyDataTable,
|
|
8074
8474
|
{
|
|
8075
8475
|
columns,
|
|
8076
8476
|
data: query.data,
|
|
8077
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8477
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx88(F_core40207_Create, {}),
|
|
8078
8478
|
renderRowActions: ({ row }) => {
|
|
8079
8479
|
return /* @__PURE__ */ jsxs51(MyCenterFull, { children: [
|
|
8080
|
-
/* @__PURE__ */
|
|
8081
|
-
/* @__PURE__ */
|
|
8480
|
+
/* @__PURE__ */ jsx88(F_core40207_Update, { values: row.original }),
|
|
8481
|
+
/* @__PURE__ */ jsx88(F_core40207_Delete, { id: row.original.id })
|
|
8082
8482
|
] });
|
|
8083
8483
|
}
|
|
8084
8484
|
}
|
|
@@ -8086,9 +8486,9 @@ function F_core40207_Read() {
|
|
|
8086
8486
|
}
|
|
8087
8487
|
|
|
8088
8488
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
|
8089
|
-
import { jsx as
|
|
8489
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
8090
8490
|
function F_core40207() {
|
|
8091
|
-
return /* @__PURE__ */
|
|
8491
|
+
return /* @__PURE__ */ jsx89(MyPageContent, { children: /* @__PURE__ */ jsx89(F_core40207_Read, {}) });
|
|
8092
8492
|
}
|
|
8093
8493
|
|
|
8094
8494
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
@@ -8097,10 +8497,10 @@ import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
|
8097
8497
|
import { useMemo as useMemo10 } from "react";
|
|
8098
8498
|
|
|
8099
8499
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
|
8100
|
-
import { jsx as
|
|
8500
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
8101
8501
|
var ENDPOINT = "/Role/Delete";
|
|
8102
8502
|
function F_core47643_Delete({ values }) {
|
|
8103
|
-
return /* @__PURE__ */
|
|
8503
|
+
return /* @__PURE__ */ jsx90(
|
|
8104
8504
|
MyActionIconDelete,
|
|
8105
8505
|
{
|
|
8106
8506
|
contextData: values.code,
|
|
@@ -8111,7 +8511,7 @@ function F_core47643_Delete({ values }) {
|
|
|
8111
8511
|
|
|
8112
8512
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
|
8113
8513
|
import { useForm as useForm13 } from "@mantine/form";
|
|
8114
|
-
import { jsx as
|
|
8514
|
+
import { jsx as jsx91, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8115
8515
|
function F_core47643_Form({ values }) {
|
|
8116
8516
|
const form = useForm13({
|
|
8117
8517
|
mode: "uncontrolled",
|
|
@@ -8120,19 +8520,19 @@ function F_core47643_Form({ values }) {
|
|
|
8120
8520
|
if (values) return /* @__PURE__ */ jsxs52(MyActionIconUpdate, { form, onSubmit: async () => {
|
|
8121
8521
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
|
8122
8522
|
}, children: [
|
|
8123
|
-
/* @__PURE__ */
|
|
8124
|
-
/* @__PURE__ */
|
|
8523
|
+
/* @__PURE__ */ jsx91(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
|
8524
|
+
/* @__PURE__ */ jsx91(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8125
8525
|
] });
|
|
8126
8526
|
return /* @__PURE__ */ jsxs52(MyButtonCreate, { form, onSubmit: async () => {
|
|
8127
8527
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
|
8128
8528
|
}, children: [
|
|
8129
|
-
/* @__PURE__ */
|
|
8130
|
-
/* @__PURE__ */
|
|
8529
|
+
/* @__PURE__ */ jsx91(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
|
8530
|
+
/* @__PURE__ */ jsx91(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
|
8131
8531
|
] });
|
|
8132
8532
|
}
|
|
8133
8533
|
|
|
8134
8534
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
|
8135
|
-
import { jsx as
|
|
8535
|
+
import { jsx as jsx92, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8136
8536
|
function F_core47643_Read() {
|
|
8137
8537
|
const query = useQ_core47643_GetAdminRole();
|
|
8138
8538
|
const columns = useMemo10(() => [
|
|
@@ -8147,15 +8547,15 @@ function F_core47643_Read() {
|
|
|
8147
8547
|
], []);
|
|
8148
8548
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
|
8149
8549
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8150
|
-
return /* @__PURE__ */
|
|
8550
|
+
return /* @__PURE__ */ jsx92(
|
|
8151
8551
|
MyDataTable,
|
|
8152
8552
|
{
|
|
8153
8553
|
data: query.data,
|
|
8154
8554
|
columns,
|
|
8155
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8555
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx92(Group15, { children: /* @__PURE__ */ jsx92(F_core47643_Form, {}) }),
|
|
8156
8556
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs53(MyCenterFull, { children: [
|
|
8157
|
-
/* @__PURE__ */
|
|
8158
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsx92(F_core47643_Form, { values: row.original }),
|
|
8558
|
+
/* @__PURE__ */ jsx92(F_core47643_Delete, { values: row.original })
|
|
8159
8559
|
] })
|
|
8160
8560
|
}
|
|
8161
8561
|
);
|
|
@@ -8172,15 +8572,15 @@ function useQ_core47643_GetAdminRole() {
|
|
|
8172
8572
|
}
|
|
8173
8573
|
|
|
8174
8574
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
|
8175
|
-
import { jsx as
|
|
8575
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
8176
8576
|
function F_core47643() {
|
|
8177
|
-
return /* @__PURE__ */
|
|
8577
|
+
return /* @__PURE__ */ jsx93(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx93(F_core47643_Read, {}) });
|
|
8178
8578
|
}
|
|
8179
8579
|
|
|
8180
8580
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
|
8181
|
-
import { jsx as
|
|
8581
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
8182
8582
|
function F_core64229_Delete({ values }) {
|
|
8183
|
-
return /* @__PURE__ */
|
|
8583
|
+
return /* @__PURE__ */ jsx94(
|
|
8184
8584
|
MyActionIconDelete,
|
|
8185
8585
|
{
|
|
8186
8586
|
contextData: values == null ? void 0 : values.code,
|
|
@@ -8205,7 +8605,7 @@ var ENUM_EMAILCONFIG_MODULE = /* @__PURE__ */ ((ENUM_EMAILCONFIG_MODULE2) => {
|
|
|
8205
8605
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
|
8206
8606
|
import { PasswordInput } from "@mantine/core";
|
|
8207
8607
|
import { useForm as useForm14 } from "@mantine/form";
|
|
8208
|
-
import { jsx as
|
|
8608
|
+
import { jsx as jsx95, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8209
8609
|
function F_core64229_Form({ values }) {
|
|
8210
8610
|
const form = useForm14({
|
|
8211
8611
|
mode: "uncontrolled",
|
|
@@ -8231,27 +8631,27 @@ function F_core64229_Form({ values }) {
|
|
|
8231
8631
|
"password": formValues.password
|
|
8232
8632
|
});
|
|
8233
8633
|
}
|
|
8234
|
-
if (values) return /* @__PURE__ */
|
|
8634
|
+
if (values) return /* @__PURE__ */ jsx95(
|
|
8235
8635
|
MyActionIconUpdate,
|
|
8236
8636
|
{
|
|
8237
8637
|
form,
|
|
8238
8638
|
onSubmit: handleSubmit,
|
|
8239
|
-
children: /* @__PURE__ */
|
|
8639
|
+
children: /* @__PURE__ */ jsx95(FormInput, { form })
|
|
8240
8640
|
}
|
|
8241
8641
|
);
|
|
8242
|
-
return /* @__PURE__ */
|
|
8642
|
+
return /* @__PURE__ */ jsx95(
|
|
8243
8643
|
MyButtonCreate,
|
|
8244
8644
|
{
|
|
8245
8645
|
form,
|
|
8246
8646
|
onSubmit: handleSubmit,
|
|
8247
|
-
children: /* @__PURE__ */
|
|
8647
|
+
children: /* @__PURE__ */ jsx95(FormInput, { form })
|
|
8248
8648
|
}
|
|
8249
8649
|
);
|
|
8250
8650
|
}
|
|
8251
8651
|
function FormInput({ form }) {
|
|
8252
8652
|
var _a, _b;
|
|
8253
8653
|
return /* @__PURE__ */ jsxs54(MyFlexColumn, { children: [
|
|
8254
|
-
/* @__PURE__ */
|
|
8654
|
+
/* @__PURE__ */ jsx95(
|
|
8255
8655
|
MySelect,
|
|
8256
8656
|
__spreadProps(__spreadValues({
|
|
8257
8657
|
label: "Ph\xE2n h\u1EC7",
|
|
@@ -8260,25 +8660,25 @@ function FormInput({ form }) {
|
|
|
8260
8660
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
|
8261
8661
|
})
|
|
8262
8662
|
),
|
|
8263
|
-
/* @__PURE__ */
|
|
8663
|
+
/* @__PURE__ */ jsx95(
|
|
8264
8664
|
MyTextInput,
|
|
8265
8665
|
__spreadValues({
|
|
8266
8666
|
label: "Host mail server"
|
|
8267
8667
|
}, form.getInputProps("hostMailServer"))
|
|
8268
8668
|
),
|
|
8269
|
-
/* @__PURE__ */
|
|
8669
|
+
/* @__PURE__ */ jsx95(
|
|
8270
8670
|
MyNumberInput,
|
|
8271
8671
|
__spreadValues({
|
|
8272
8672
|
label: "Outgoing port"
|
|
8273
8673
|
}, form.getInputProps("outgoingPort"))
|
|
8274
8674
|
),
|
|
8275
|
-
/* @__PURE__ */
|
|
8675
|
+
/* @__PURE__ */ jsx95(
|
|
8276
8676
|
MyNumberInput,
|
|
8277
8677
|
__spreadValues({
|
|
8278
8678
|
label: "Incoming port"
|
|
8279
8679
|
}, form.getInputProps("incomingPort"))
|
|
8280
8680
|
),
|
|
8281
|
-
/* @__PURE__ */
|
|
8681
|
+
/* @__PURE__ */ jsx95(
|
|
8282
8682
|
MySelect,
|
|
8283
8683
|
{
|
|
8284
8684
|
label: "SSL",
|
|
@@ -8287,13 +8687,13 @@ function FormInput({ form }) {
|
|
|
8287
8687
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
|
8288
8688
|
}
|
|
8289
8689
|
),
|
|
8290
|
-
/* @__PURE__ */
|
|
8690
|
+
/* @__PURE__ */ jsx95(
|
|
8291
8691
|
MyTextInput,
|
|
8292
8692
|
__spreadValues({
|
|
8293
8693
|
label: "Username"
|
|
8294
8694
|
}, form.getInputProps("userName"))
|
|
8295
8695
|
),
|
|
8296
|
-
/* @__PURE__ */
|
|
8696
|
+
/* @__PURE__ */ jsx95(
|
|
8297
8697
|
PasswordInput,
|
|
8298
8698
|
__spreadValues({
|
|
8299
8699
|
label: "Password",
|
|
@@ -8306,7 +8706,7 @@ function FormInput({ form }) {
|
|
|
8306
8706
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
|
8307
8707
|
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
8308
8708
|
import { useMemo as useMemo11 } from "react";
|
|
8309
|
-
import { jsx as
|
|
8709
|
+
import { jsx as jsx96, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8310
8710
|
function F_core64229_Read() {
|
|
8311
8711
|
const query = useQuery13({
|
|
8312
8712
|
queryKey: ["F_core64229_Read"],
|
|
@@ -8351,15 +8751,15 @@ function F_core64229_Read() {
|
|
|
8351
8751
|
}
|
|
8352
8752
|
], []);
|
|
8353
8753
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
|
8354
|
-
return /* @__PURE__ */
|
|
8754
|
+
return /* @__PURE__ */ jsx96(
|
|
8355
8755
|
MyDataTable,
|
|
8356
8756
|
{
|
|
8357
8757
|
columns,
|
|
8358
8758
|
data: query.data,
|
|
8359
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
|
8759
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx96(F_core64229_Form, {}),
|
|
8360
8760
|
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs55(MyCenterFull, { children: [
|
|
8361
|
-
/* @__PURE__ */
|
|
8362
|
-
/* @__PURE__ */
|
|
8761
|
+
/* @__PURE__ */ jsx96(F_core64229_Form, { values: row.original }),
|
|
8762
|
+
/* @__PURE__ */ jsx96(F_core64229_Delete, { values: row.original })
|
|
8363
8763
|
] })
|
|
8364
8764
|
}
|
|
8365
8765
|
);
|
|
@@ -8370,19 +8770,19 @@ import { Button as Button17, Group as Group17 } from "@mantine/core";
|
|
|
8370
8770
|
import { IconShield } from "@tabler/icons-react";
|
|
8371
8771
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
8372
8772
|
import { useRouter as useRouter3 } from "next/navigation";
|
|
8373
|
-
import { useMemo as useMemo13, useState as
|
|
8773
|
+
import { useMemo as useMemo13, useState as useState13 } from "react";
|
|
8374
8774
|
|
|
8375
8775
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
|
8376
8776
|
import { Button as Button16, Fieldset as Fieldset6, Group as Group16, Table as Table4 } from "@mantine/core";
|
|
8377
8777
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
|
8378
8778
|
import { useMutation as useMutation6, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
8379
|
-
import { useEffect as useEffect9, useMemo as useMemo12, useState as
|
|
8380
|
-
import { jsx as
|
|
8779
|
+
import { useEffect as useEffect9, useMemo as useMemo12, useState as useState12 } from "react";
|
|
8780
|
+
import { jsx as jsx97, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8381
8781
|
function F_core71678_ChangePermission({ user }) {
|
|
8382
8782
|
const disc = useDisclosure12();
|
|
8383
8783
|
const queryClient = useQueryClient5();
|
|
8384
|
-
const [rowSelection, setRowSelection] =
|
|
8385
|
-
const rowSelect =
|
|
8784
|
+
const [rowSelection, setRowSelection] = useState12({});
|
|
8785
|
+
const rowSelect = useState12();
|
|
8386
8786
|
const query = useQuery14({
|
|
8387
8787
|
queryKey: [`F1_1ChangePermission`],
|
|
8388
8788
|
queryFn: async () => {
|
|
@@ -8425,7 +8825,7 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8425
8825
|
setRowSelection(result);
|
|
8426
8826
|
}, []);
|
|
8427
8827
|
return /* @__PURE__ */ jsxs56(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
|
8428
|
-
/* @__PURE__ */
|
|
8828
|
+
/* @__PURE__ */ jsx97(
|
|
8429
8829
|
Table4,
|
|
8430
8830
|
{
|
|
8431
8831
|
w: "100%",
|
|
@@ -8433,23 +8833,23 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8433
8833
|
layout: "fixed",
|
|
8434
8834
|
children: /* @__PURE__ */ jsxs56(Table4.Tbody, { children: [
|
|
8435
8835
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8436
|
-
/* @__PURE__ */
|
|
8437
|
-
/* @__PURE__ */
|
|
8836
|
+
/* @__PURE__ */ jsx97(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
|
8837
|
+
/* @__PURE__ */ jsx97(Table4.Td, { children: user.fullName })
|
|
8438
8838
|
] }),
|
|
8439
8839
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8440
|
-
/* @__PURE__ */
|
|
8441
|
-
/* @__PURE__ */
|
|
8840
|
+
/* @__PURE__ */ jsx97(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
|
8841
|
+
/* @__PURE__ */ jsx97(Table4.Td, { children: user.userName })
|
|
8442
8842
|
] }),
|
|
8443
8843
|
/* @__PURE__ */ jsxs56(Table4.Tr, { children: [
|
|
8444
|
-
/* @__PURE__ */
|
|
8445
|
-
/* @__PURE__ */
|
|
8844
|
+
/* @__PURE__ */ jsx97(Table4.Th, { children: "Email:" }),
|
|
8845
|
+
/* @__PURE__ */ jsx97(Table4.Td, { children: user.email })
|
|
8446
8846
|
] })
|
|
8447
8847
|
] })
|
|
8448
8848
|
}
|
|
8449
8849
|
),
|
|
8450
8850
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8451
8851
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
|
8452
|
-
/* @__PURE__ */
|
|
8852
|
+
/* @__PURE__ */ jsx97(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx97(
|
|
8453
8853
|
MyDataTable,
|
|
8454
8854
|
{
|
|
8455
8855
|
enableRowSelection: true,
|
|
@@ -8473,13 +8873,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
|
8473
8873
|
data: query.data
|
|
8474
8874
|
}
|
|
8475
8875
|
) }),
|
|
8476
|
-
/* @__PURE__ */
|
|
8876
|
+
/* @__PURE__ */ jsx97(Group16, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx97(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
|
8477
8877
|
] });
|
|
8478
8878
|
}
|
|
8479
8879
|
|
|
8480
8880
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
|
8481
8881
|
import { useForm as useForm15 } from "@mantine/form";
|
|
8482
|
-
import { jsx as
|
|
8882
|
+
import { jsx as jsx98, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8483
8883
|
var ENDPOINT2 = "/Account/create";
|
|
8484
8884
|
function F_core71678_Create() {
|
|
8485
8885
|
const form = useForm15({
|
|
@@ -8508,20 +8908,20 @@ function F_core71678_Create() {
|
|
|
8508
8908
|
}));
|
|
8509
8909
|
}
|
|
8510
8910
|
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
|
8511
|
-
/* @__PURE__ */
|
|
8512
|
-
/* @__PURE__ */
|
|
8513
|
-
/* @__PURE__ */
|
|
8514
|
-
/* @__PURE__ */
|
|
8515
|
-
/* @__PURE__ */
|
|
8516
|
-
/* @__PURE__ */
|
|
8911
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8912
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8913
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
|
8914
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8915
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8916
|
+
/* @__PURE__ */ jsx98(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8517
8917
|
] });
|
|
8518
8918
|
}
|
|
8519
8919
|
|
|
8520
8920
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
|
8521
|
-
import { jsx as
|
|
8921
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8522
8922
|
var ENDPOINT3 = "/Account/delete";
|
|
8523
8923
|
function F_core71678_Delete({ id, code }) {
|
|
8524
|
-
return /* @__PURE__ */
|
|
8924
|
+
return /* @__PURE__ */ jsx99(
|
|
8525
8925
|
MyActionIconDelete,
|
|
8526
8926
|
{
|
|
8527
8927
|
contextData: code,
|
|
@@ -8533,7 +8933,7 @@ function F_core71678_Delete({ id, code }) {
|
|
|
8533
8933
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
|
8534
8934
|
import { useForm as useForm16 } from "@mantine/form";
|
|
8535
8935
|
import { useEffect as useEffect10 } from "react";
|
|
8536
|
-
import { jsx as
|
|
8936
|
+
import { jsx as jsx100, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8537
8937
|
function F_core71678_Update({ user }) {
|
|
8538
8938
|
const form = useForm16({
|
|
8539
8939
|
initialValues: user
|
|
@@ -8541,7 +8941,7 @@ function F_core71678_Update({ user }) {
|
|
|
8541
8941
|
useEffect10(() => {
|
|
8542
8942
|
console.log(form.values);
|
|
8543
8943
|
}, [form.values]);
|
|
8544
|
-
return /* @__PURE__ */
|
|
8944
|
+
return /* @__PURE__ */ jsx100(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
|
8545
8945
|
return await baseAxios_default.post(
|
|
8546
8946
|
"/Account/update",
|
|
8547
8947
|
__spreadProps(__spreadValues({}, values), {
|
|
@@ -8554,20 +8954,20 @@ function F_core71678_Update({ user }) {
|
|
|
8554
8954
|
})
|
|
8555
8955
|
);
|
|
8556
8956
|
}, children: /* @__PURE__ */ jsxs58(MyFlexColumn, { children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
/* @__PURE__ */
|
|
8559
|
-
/* @__PURE__ */
|
|
8560
|
-
/* @__PURE__ */
|
|
8561
|
-
/* @__PURE__ */
|
|
8957
|
+
/* @__PURE__ */ jsx100(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
|
8958
|
+
/* @__PURE__ */ jsx100(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
|
8959
|
+
/* @__PURE__ */ jsx100(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
|
8960
|
+
/* @__PURE__ */ jsx100(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
|
8961
|
+
/* @__PURE__ */ jsx100(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
|
8562
8962
|
] }) });
|
|
8563
8963
|
}
|
|
8564
8964
|
|
|
8565
8965
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
|
8566
|
-
import { jsx as
|
|
8966
|
+
import { jsx as jsx101, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8567
8967
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
|
8568
8968
|
function F_core71678_Read() {
|
|
8569
8969
|
const router = useRouter3();
|
|
8570
|
-
const [rowSelection, setRowSelection] =
|
|
8970
|
+
const [rowSelection, setRowSelection] = useState13({});
|
|
8571
8971
|
const AllUserQuery = useQuery15({
|
|
8572
8972
|
queryKey: ["F_core71678_Read"],
|
|
8573
8973
|
queryFn: async () => {
|
|
@@ -8595,25 +8995,25 @@ function F_core71678_Read() {
|
|
|
8595
8995
|
},
|
|
8596
8996
|
{
|
|
8597
8997
|
header: "Quy\u1EC1n",
|
|
8598
|
-
accessorFn: (row) => /* @__PURE__ */
|
|
8998
|
+
accessorFn: (row) => /* @__PURE__ */ jsx101(F_core71678_ChangePermission, { user: row })
|
|
8599
8999
|
}
|
|
8600
9000
|
],
|
|
8601
9001
|
[]
|
|
8602
9002
|
);
|
|
8603
9003
|
if (AllUserQuery.isLoading) return "Loading...";
|
|
8604
|
-
return /* @__PURE__ */
|
|
9004
|
+
return /* @__PURE__ */ jsx101(
|
|
8605
9005
|
MyDataTable,
|
|
8606
9006
|
{
|
|
8607
9007
|
columns,
|
|
8608
9008
|
data: AllUserQuery.data,
|
|
8609
9009
|
renderTopToolbarCustomActions: () => {
|
|
8610
9010
|
return /* @__PURE__ */ jsxs59(Group17, { children: [
|
|
8611
|
-
/* @__PURE__ */
|
|
8612
|
-
/* @__PURE__ */
|
|
9011
|
+
/* @__PURE__ */ jsx101(F_core71678_Create, {}),
|
|
9012
|
+
/* @__PURE__ */ jsx101(
|
|
8613
9013
|
Button17,
|
|
8614
9014
|
{
|
|
8615
9015
|
color: "violet",
|
|
8616
|
-
leftSection: /* @__PURE__ */
|
|
9016
|
+
leftSection: /* @__PURE__ */ jsx101(IconShield, {}),
|
|
8617
9017
|
onClick: () => {
|
|
8618
9018
|
router.push("core47643");
|
|
8619
9019
|
},
|
|
@@ -8624,8 +9024,8 @@ function F_core71678_Read() {
|
|
|
8624
9024
|
},
|
|
8625
9025
|
renderRowActions: ({ row }) => {
|
|
8626
9026
|
return /* @__PURE__ */ jsxs59(MyCenterFull, { children: [
|
|
8627
|
-
/* @__PURE__ */
|
|
8628
|
-
/* @__PURE__ */
|
|
9027
|
+
/* @__PURE__ */ jsx101(F_core71678_Update, { user: row.original }),
|
|
9028
|
+
/* @__PURE__ */ jsx101(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
|
8629
9029
|
] });
|
|
8630
9030
|
}
|
|
8631
9031
|
}
|
|
@@ -8633,7 +9033,7 @@ function F_core71678_Read() {
|
|
|
8633
9033
|
}
|
|
8634
9034
|
|
|
8635
9035
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
|
8636
|
-
import { jsx as
|
|
9036
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
8637
9037
|
|
|
8638
9038
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
8639
9039
|
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
@@ -8642,7 +9042,7 @@ import { useMemo as useMemo14 } from "react";
|
|
|
8642
9042
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
|
8643
9043
|
import { FileInput as FileInput8 } from "@mantine/core";
|
|
8644
9044
|
import { useForm as useForm17 } from "@mantine/form";
|
|
8645
|
-
import { jsx as
|
|
9045
|
+
import { jsx as jsx103, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8646
9046
|
function F_core76318_Create() {
|
|
8647
9047
|
const form = useForm17({
|
|
8648
9048
|
mode: "uncontrolled"
|
|
@@ -8657,23 +9057,23 @@ function F_core76318_Create() {
|
|
|
8657
9057
|
})
|
|
8658
9058
|
);
|
|
8659
9059
|
}, children: [
|
|
8660
|
-
/* @__PURE__ */
|
|
8661
|
-
/* @__PURE__ */
|
|
8662
|
-
/* @__PURE__ */
|
|
8663
|
-
/* @__PURE__ */
|
|
9060
|
+
/* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9061
|
+
/* @__PURE__ */ jsx103(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9062
|
+
/* @__PURE__ */ jsx103(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9063
|
+
/* @__PURE__ */ jsx103(FileInput8, __spreadValues({ label: "T\xE0i li\u1EC7u" }, form.getInputProps("file")))
|
|
8664
9064
|
] });
|
|
8665
9065
|
}
|
|
8666
9066
|
|
|
8667
9067
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
|
8668
|
-
import { jsx as
|
|
9068
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
8669
9069
|
function F_core76318_Delete({ id }) {
|
|
8670
|
-
return /* @__PURE__ */
|
|
9070
|
+
return /* @__PURE__ */ jsx104(MyActionIconDelete, { onSubmit: () => baseAxios_default.post("/Document/delete", { id }) });
|
|
8671
9071
|
}
|
|
8672
9072
|
|
|
8673
9073
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
|
8674
9074
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
|
8675
9075
|
import { useForm as useForm18 } from "@mantine/form";
|
|
8676
|
-
import { jsx as
|
|
9076
|
+
import { jsx as jsx105, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
8677
9077
|
function F_core76318_Update({ values }) {
|
|
8678
9078
|
var _a;
|
|
8679
9079
|
const form = useForm18({
|
|
@@ -8688,18 +9088,18 @@ function F_core76318_Update({ values }) {
|
|
|
8688
9088
|
fileDetail: await utils_file_fileToAQDocumentType(values2.file)
|
|
8689
9089
|
}));
|
|
8690
9090
|
}, children: [
|
|
8691
|
-
/* @__PURE__ */
|
|
8692
|
-
/* @__PURE__ */
|
|
8693
|
-
/* @__PURE__ */
|
|
8694
|
-
/* @__PURE__ */
|
|
9091
|
+
/* @__PURE__ */ jsx105(TextInput5, __spreadValues({ label: "S\u1ED1 quy \u0111\u1ECBnh" }, form.getInputProps("decisionCode"))),
|
|
9092
|
+
/* @__PURE__ */ jsx105(MyDateInput, __spreadValues({ label: "Ng\xE0y ban h\xE0nh" }, form.getInputProps("promulgateDate"))),
|
|
9093
|
+
/* @__PURE__ */ jsx105(TextInput5, __spreadValues({ label: "T\xEAn t\xE0i li\u1EC7u" }, form.getInputProps("name"))),
|
|
9094
|
+
/* @__PURE__ */ jsx105(FileInput9, __spreadValues({ label: "Ch\u1ECDn file" }, form.getInputProps("file")))
|
|
8695
9095
|
] });
|
|
8696
9096
|
}
|
|
8697
9097
|
|
|
8698
9098
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
|
8699
|
-
import { jsx as
|
|
9099
|
+
import { jsx as jsx106, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8700
9100
|
|
|
8701
9101
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
|
8702
|
-
import { jsx as
|
|
9102
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
8703
9103
|
|
|
8704
9104
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
8705
9105
|
import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mantine/core";
|
|
@@ -8707,12 +9107,12 @@ import { Grid as Grid2, Paper as Paper7, ScrollArea as ScrollArea8 } from "@mant
|
|
|
8707
9107
|
// src/modules-features/admin/core/core83092/F_core83092_ReadUser.tsx
|
|
8708
9108
|
import { Container as Container5 } from "@mantine/core";
|
|
8709
9109
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
8710
|
-
import { useEffect as useEffect11, useMemo as useMemo15, useState as
|
|
8711
|
-
import { jsx as
|
|
9110
|
+
import { useEffect as useEffect11, useMemo as useMemo15, useState as useState14 } from "react";
|
|
9111
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
8712
9112
|
function F_core83092_ReadUser() {
|
|
8713
9113
|
const store = useS_core83092();
|
|
8714
9114
|
const query = useQ_core83092_Account_GetAdminAccount();
|
|
8715
|
-
const [rowSelection, setRowSelection] =
|
|
9115
|
+
const [rowSelection, setRowSelection] = useState14({});
|
|
8716
9116
|
const columns = useMemo15(
|
|
8717
9117
|
() => [
|
|
8718
9118
|
{
|
|
@@ -8741,7 +9141,7 @@ function F_core83092_ReadUser() {
|
|
|
8741
9141
|
}, [query.data]);
|
|
8742
9142
|
if (query.isLoading) return "Loading...";
|
|
8743
9143
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
|
8744
|
-
return /* @__PURE__ */
|
|
9144
|
+
return /* @__PURE__ */ jsx108(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx108(
|
|
8745
9145
|
MyDataTable,
|
|
8746
9146
|
{
|
|
8747
9147
|
columns,
|
|
@@ -8776,11 +9176,11 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
|
8776
9176
|
|
|
8777
9177
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
|
8778
9178
|
import { useMutation as useMutation7 } from "@tanstack/react-query";
|
|
8779
|
-
import { useEffect as useEffect12, useState as
|
|
8780
|
-
import { jsx as
|
|
9179
|
+
import { useEffect as useEffect12, useState as useState15 } from "react";
|
|
9180
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
|
8781
9181
|
function F_core83092_Save() {
|
|
8782
9182
|
const store = useS_core83092();
|
|
8783
|
-
const disable =
|
|
9183
|
+
const disable = useState15(false);
|
|
8784
9184
|
const mutation = useMutation7({
|
|
8785
9185
|
mutationFn: async (body) => {
|
|
8786
9186
|
const res = await baseAxios_default.put("/Role/UpdateUserPermission", body);
|
|
@@ -8806,21 +9206,21 @@ function F_core83092_Save() {
|
|
|
8806
9206
|
}
|
|
8807
9207
|
disable[1](false);
|
|
8808
9208
|
}, [store.state.rolePermissions]);
|
|
8809
|
-
return /* @__PURE__ */
|
|
9209
|
+
return /* @__PURE__ */ jsx109(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
|
8810
9210
|
}
|
|
8811
9211
|
|
|
8812
9212
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
|
8813
9213
|
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text14 } from "@mantine/core";
|
|
8814
9214
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
|
8815
9215
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
8816
|
-
import React4, { useEffect as useEffect13, useState as
|
|
8817
|
-
import { jsx as
|
|
9216
|
+
import React4, { useEffect as useEffect13, useState as useState16 } from "react";
|
|
9217
|
+
import { jsx as jsx110, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
8818
9218
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
|
8819
9219
|
function F_core83092_ViewMenuPermissions() {
|
|
8820
9220
|
var _a, _b;
|
|
8821
9221
|
const store = useS_core83092();
|
|
8822
9222
|
const query = useGetUserPermission2();
|
|
8823
|
-
const list =
|
|
9223
|
+
const list = useState16([]);
|
|
8824
9224
|
useEffect13(() => {
|
|
8825
9225
|
list[1](groupToTwoLevels(menuData));
|
|
8826
9226
|
}, []);
|
|
@@ -8829,8 +9229,8 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8829
9229
|
store.setProperty("rolePermissions", query.data);
|
|
8830
9230
|
}, [query.data]);
|
|
8831
9231
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
|
8832
|
-
return /* @__PURE__ */
|
|
8833
|
-
/* @__PURE__ */
|
|
9232
|
+
return /* @__PURE__ */ jsx110(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs63(Table5, { children: [
|
|
9233
|
+
/* @__PURE__ */ jsx110(
|
|
8834
9234
|
Table5.Thead,
|
|
8835
9235
|
{
|
|
8836
9236
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
|
@@ -8842,89 +9242,89 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8842
9242
|
border: "1px solid var(--mantine-color-gray-4)"
|
|
8843
9243
|
},
|
|
8844
9244
|
children: /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
8845
|
-
/* @__PURE__ */
|
|
8846
|
-
/* @__PURE__ */
|
|
8847
|
-
/* @__PURE__ */
|
|
9245
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: title2 }),
|
|
9246
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9247
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
|
8848
9248
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
|
8849
9249
|
} }),
|
|
8850
9250
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8851
9251
|
"Xem",
|
|
8852
|
-
/* @__PURE__ */
|
|
9252
|
+
/* @__PURE__ */ jsx110(IconEyeUp2, { color: "gray" })
|
|
8853
9253
|
] })
|
|
8854
9254
|
] }) }),
|
|
8855
|
-
/* @__PURE__ */
|
|
8856
|
-
/* @__PURE__ */
|
|
9255
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9256
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
|
8857
9257
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
|
8858
9258
|
} }),
|
|
8859
9259
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8860
9260
|
"Th\xEAm",
|
|
8861
|
-
/* @__PURE__ */
|
|
9261
|
+
/* @__PURE__ */ jsx110(IconPlus6, { color: "blue" })
|
|
8862
9262
|
] })
|
|
8863
9263
|
] }) }),
|
|
8864
|
-
/* @__PURE__ */
|
|
8865
|
-
/* @__PURE__ */
|
|
9264
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9265
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
|
8866
9266
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
|
8867
9267
|
} }),
|
|
8868
9268
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8869
9269
|
"S\u1EEDa",
|
|
8870
|
-
/* @__PURE__ */
|
|
9270
|
+
/* @__PURE__ */ jsx110(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
|
8871
9271
|
] })
|
|
8872
9272
|
] }) }),
|
|
8873
|
-
/* @__PURE__ */
|
|
8874
|
-
/* @__PURE__ */
|
|
9273
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9274
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
|
8875
9275
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
|
8876
9276
|
} }),
|
|
8877
9277
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8878
9278
|
"X\xF3a",
|
|
8879
|
-
/* @__PURE__ */
|
|
9279
|
+
/* @__PURE__ */ jsx110(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
|
8880
9280
|
] })
|
|
8881
9281
|
] }) }),
|
|
8882
|
-
/* @__PURE__ */
|
|
8883
|
-
/* @__PURE__ */
|
|
9282
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9283
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
|
8884
9284
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
|
8885
9285
|
} }),
|
|
8886
9286
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8887
9287
|
"In",
|
|
8888
|
-
/* @__PURE__ */
|
|
9288
|
+
/* @__PURE__ */ jsx110(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
|
8889
9289
|
] })
|
|
8890
9290
|
] }) }),
|
|
8891
|
-
/* @__PURE__ */
|
|
8892
|
-
/* @__PURE__ */
|
|
9291
|
+
/* @__PURE__ */ jsx110(Table5.Th, { children: /* @__PURE__ */ jsxs63(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
|
9292
|
+
/* @__PURE__ */ jsx110(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
|
8893
9293
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
|
8894
9294
|
} }),
|
|
8895
9295
|
/* @__PURE__ */ jsxs63(MyFlexRow, { gap: 3, children: [
|
|
8896
9296
|
"Xu\u1EA5t",
|
|
8897
|
-
/* @__PURE__ */
|
|
9297
|
+
/* @__PURE__ */ jsx110(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
|
8898
9298
|
] })
|
|
8899
9299
|
] }) })
|
|
8900
9300
|
] })
|
|
8901
9301
|
}
|
|
8902
9302
|
),
|
|
8903
|
-
/* @__PURE__ */
|
|
9303
|
+
/* @__PURE__ */ jsx110(Table5.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
|
8904
9304
|
if (item.links == void 0) return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
8905
|
-
/* @__PURE__ */
|
|
8906
|
-
/* @__PURE__ */
|
|
8907
|
-
/* @__PURE__ */
|
|
8908
|
-
/* @__PURE__ */
|
|
8909
|
-
/* @__PURE__ */
|
|
8910
|
-
/* @__PURE__ */
|
|
8911
|
-
/* @__PURE__ */
|
|
9305
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: item.label }),
|
|
9306
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) }),
|
|
9307
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) }),
|
|
9308
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) }),
|
|
9309
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) }),
|
|
9310
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) }),
|
|
9311
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(Checkbox4, {}) }) })
|
|
8912
9312
|
] }, idx);
|
|
8913
9313
|
return /* @__PURE__ */ jsxs63(React4.Fragment, { children: [
|
|
8914
|
-
/* @__PURE__ */
|
|
9314
|
+
/* @__PURE__ */ jsx110(Table5.Tr, { children: /* @__PURE__ */ jsx110(
|
|
8915
9315
|
Table5.Td,
|
|
8916
9316
|
{
|
|
8917
9317
|
colSpan: 7,
|
|
8918
9318
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
|
8919
|
-
children: /* @__PURE__ */
|
|
9319
|
+
children: /* @__PURE__ */ jsx110(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
|
8920
9320
|
}
|
|
8921
9321
|
) }, item.label),
|
|
8922
9322
|
item.links.map(
|
|
8923
9323
|
(item2, idx2) => {
|
|
8924
9324
|
var _a2, _b2, _c, _d, _e, _f;
|
|
8925
9325
|
return /* @__PURE__ */ jsxs63(Table5.Tr, { children: [
|
|
8926
|
-
/* @__PURE__ */
|
|
8927
|
-
/* @__PURE__ */
|
|
9326
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: item2.label }),
|
|
9327
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8928
9328
|
Checkbox4,
|
|
8929
9329
|
{
|
|
8930
9330
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
|
@@ -8935,7 +9335,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8935
9335
|
}
|
|
8936
9336
|
}
|
|
8937
9337
|
) }) }),
|
|
8938
|
-
/* @__PURE__ */
|
|
9338
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8939
9339
|
Checkbox4,
|
|
8940
9340
|
{
|
|
8941
9341
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
|
@@ -8946,7 +9346,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8946
9346
|
}
|
|
8947
9347
|
}
|
|
8948
9348
|
) }) }),
|
|
8949
|
-
/* @__PURE__ */
|
|
9349
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8950
9350
|
Checkbox4,
|
|
8951
9351
|
{
|
|
8952
9352
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
|
@@ -8957,7 +9357,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8957
9357
|
}
|
|
8958
9358
|
}
|
|
8959
9359
|
) }) }),
|
|
8960
|
-
/* @__PURE__ */
|
|
9360
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8961
9361
|
Checkbox4,
|
|
8962
9362
|
{
|
|
8963
9363
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
|
@@ -8968,7 +9368,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8968
9368
|
}
|
|
8969
9369
|
}
|
|
8970
9370
|
) }) }),
|
|
8971
|
-
/* @__PURE__ */
|
|
9371
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8972
9372
|
Checkbox4,
|
|
8973
9373
|
{
|
|
8974
9374
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
|
@@ -8979,7 +9379,7 @@ function F_core83092_ViewMenuPermissions() {
|
|
|
8979
9379
|
}
|
|
8980
9380
|
}
|
|
8981
9381
|
) }) }),
|
|
8982
|
-
/* @__PURE__ */
|
|
9382
|
+
/* @__PURE__ */ jsx110(Table5.Td, { children: /* @__PURE__ */ jsx110(MyCenterFull, { children: /* @__PURE__ */ jsx110(
|
|
8983
9383
|
Checkbox4,
|
|
8984
9384
|
{
|
|
8985
9385
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
|
@@ -9035,13 +9435,13 @@ function useGetUserPermission2() {
|
|
|
9035
9435
|
}
|
|
9036
9436
|
|
|
9037
9437
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
|
9038
|
-
import { jsx as
|
|
9438
|
+
import { jsx as jsx111, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9039
9439
|
function F_core83092() {
|
|
9040
|
-
return /* @__PURE__ */
|
|
9041
|
-
/* @__PURE__ */
|
|
9042
|
-
/* @__PURE__ */
|
|
9043
|
-
/* @__PURE__ */
|
|
9044
|
-
/* @__PURE__ */
|
|
9440
|
+
return /* @__PURE__ */ jsx111(MyPageContent, { children: /* @__PURE__ */ jsxs64(Grid2, { grow: true, children: [
|
|
9441
|
+
/* @__PURE__ */ jsx111(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx111(F_core83092_ReadUser, {}) }),
|
|
9442
|
+
/* @__PURE__ */ jsx111(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
|
9443
|
+
/* @__PURE__ */ jsx111(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx111(Paper7, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx111(F_core83092_ViewMenuPermissions, {}) }) }),
|
|
9444
|
+
/* @__PURE__ */ jsx111(F_core83092_Save, {})
|
|
9045
9445
|
] }) })
|
|
9046
9446
|
] }) });
|
|
9047
9447
|
}
|
|
@@ -9049,58 +9449,58 @@ function F_core83092() {
|
|
|
9049
9449
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
|
9050
9450
|
import { BarChart } from "@mantine/charts";
|
|
9051
9451
|
import { Group as Group18, Paper as Paper8, Text as Text15, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
|
9052
|
-
import { Fragment as Fragment13, jsx as
|
|
9452
|
+
import { Fragment as Fragment13, jsx as jsx112, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9053
9453
|
|
|
9054
9454
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
|
9055
9455
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
|
9056
9456
|
import { Group as Group19, Paper as Paper9, Text as Text16, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
|
9057
|
-
import { Fragment as Fragment14, jsx as
|
|
9457
|
+
import { Fragment as Fragment14, jsx as jsx113, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9058
9458
|
|
|
9059
9459
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
|
9060
9460
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
|
9061
9461
|
import { Group as Group20, Paper as Paper10, Text as Text17, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
|
9062
|
-
import { Fragment as Fragment15, jsx as
|
|
9462
|
+
import { Fragment as Fragment15, jsx as jsx114, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
9063
9463
|
|
|
9064
9464
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
|
9065
9465
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
|
9066
9466
|
import { Group as Group21, Paper as Paper11, Text as Text18, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
|
9067
|
-
import { Fragment as Fragment16, jsx as
|
|
9467
|
+
import { Fragment as Fragment16, jsx as jsx115, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
9068
9468
|
|
|
9069
9469
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
|
9070
9470
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
|
9071
9471
|
import { Group as Group22, Paper as Paper12, Text as Text19, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
|
9072
|
-
import { jsx as
|
|
9472
|
+
import { jsx as jsx116, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
9073
9473
|
|
|
9074
9474
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
|
9075
9475
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
|
9076
9476
|
import { Group as Group23, Paper as Paper13, Text as Text20, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
|
9077
|
-
import { jsx as
|
|
9477
|
+
import { jsx as jsx117, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
9078
9478
|
|
|
9079
9479
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
|
9080
9480
|
import { LineChart } from "@mantine/charts";
|
|
9081
9481
|
import { Group as Group24, Paper as Paper14, Text as Text21 } from "@mantine/core";
|
|
9082
|
-
import { Fragment as Fragment17, jsx as
|
|
9482
|
+
import { Fragment as Fragment17, jsx as jsx118, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
9083
9483
|
|
|
9084
9484
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
|
9085
9485
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
|
9086
9486
|
import { Group as Group25, Paper as Paper15, Text as Text22 } from "@mantine/core";
|
|
9087
|
-
import { Fragment as Fragment18, jsx as
|
|
9487
|
+
import { Fragment as Fragment18, jsx as jsx119, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
9088
9488
|
|
|
9089
9489
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
|
9090
9490
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
|
9091
9491
|
import { Group as Group26, Paper as Paper16, Text as Text23 } from "@mantine/core";
|
|
9092
|
-
import { Fragment as Fragment19, jsx as
|
|
9492
|
+
import { Fragment as Fragment19, jsx as jsx120, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
9093
9493
|
|
|
9094
9494
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
|
9095
9495
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
|
9096
9496
|
import { Group as Group27, Paper as Paper17, Text as Text24 } from "@mantine/core";
|
|
9097
|
-
import { Fragment as Fragment20, jsx as
|
|
9497
|
+
import { Fragment as Fragment20, jsx as jsx121, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
9098
9498
|
|
|
9099
9499
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
|
9100
9500
|
import { Center as Center4, Progress, Space as Space4, Text as Text25 } from "@mantine/core";
|
|
9101
9501
|
import { PieChart } from "@mantine/charts";
|
|
9102
9502
|
import { useMemo as useMemo16 } from "react";
|
|
9103
|
-
import { Fragment as Fragment21, jsx as
|
|
9503
|
+
import { Fragment as Fragment21, jsx as jsx122, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
9104
9504
|
function getRandomColor(seed) {
|
|
9105
9505
|
const random = Math.sin(seed) * 1e4;
|
|
9106
9506
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9278,7 +9678,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9278
9678
|
header: "M\xE0u",
|
|
9279
9679
|
accessorKey: "color",
|
|
9280
9680
|
accessorFn(originalRow) {
|
|
9281
|
-
return /* @__PURE__ */
|
|
9681
|
+
return /* @__PURE__ */ jsx122("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9282
9682
|
},
|
|
9283
9683
|
minSize: 30,
|
|
9284
9684
|
maxSize: 30
|
|
@@ -9293,7 +9693,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9293
9693
|
header: "%",
|
|
9294
9694
|
accessorKey: "used",
|
|
9295
9695
|
accessorFn(originalRow) {
|
|
9296
|
-
return /* @__PURE__ */
|
|
9696
|
+
return /* @__PURE__ */ jsx122(Fragment21, { children: /* @__PURE__ */ jsx122(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9297
9697
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
|
9298
9698
|
"%"
|
|
9299
9699
|
] }) }) });
|
|
@@ -9309,7 +9709,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9309
9709
|
},
|
|
9310
9710
|
Cell: ({ row }) => {
|
|
9311
9711
|
return /* @__PURE__ */ jsxs75(Fragment21, { children: [
|
|
9312
|
-
/* @__PURE__ */
|
|
9712
|
+
/* @__PURE__ */ jsx122(Center4, { children: /* @__PURE__ */ jsxs75(Text25, { children: [
|
|
9313
9713
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9314
9714
|
/* @__PURE__ */ jsxs75("strong", { children: [
|
|
9315
9715
|
row.original.used,
|
|
@@ -9320,7 +9720,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9320
9720
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9321
9721
|
"%)"
|
|
9322
9722
|
] }) }),
|
|
9323
|
-
/* @__PURE__ */
|
|
9723
|
+
/* @__PURE__ */ jsx122(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9324
9724
|
] });
|
|
9325
9725
|
},
|
|
9326
9726
|
minSize: 50,
|
|
@@ -9329,9 +9729,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9329
9729
|
],
|
|
9330
9730
|
[]
|
|
9331
9731
|
);
|
|
9332
|
-
return /* @__PURE__ */
|
|
9333
|
-
/* @__PURE__ */
|
|
9334
|
-
/* @__PURE__ */
|
|
9732
|
+
return /* @__PURE__ */ jsx122(Fragment21, { children: /* @__PURE__ */ jsxs75(MyFlexColumn, { children: [
|
|
9733
|
+
/* @__PURE__ */ jsx122(Text25, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng chi\u1EBFt kh\u1EA5u h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
|
9734
|
+
/* @__PURE__ */ jsx122(Center4, { children: /* @__PURE__ */ jsx122(
|
|
9335
9735
|
PieChart,
|
|
9336
9736
|
{
|
|
9337
9737
|
startAngle: 90,
|
|
@@ -9344,8 +9744,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9344
9744
|
data: data_used_discountCode
|
|
9345
9745
|
}
|
|
9346
9746
|
) }),
|
|
9347
|
-
/* @__PURE__ */
|
|
9348
|
-
/* @__PURE__ */
|
|
9747
|
+
/* @__PURE__ */ jsx122(Space4, { mt: 5 }),
|
|
9748
|
+
/* @__PURE__ */ jsx122(
|
|
9349
9749
|
MyDataTable,
|
|
9350
9750
|
{
|
|
9351
9751
|
data: mockData,
|
|
@@ -9363,7 +9763,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
|
9363
9763
|
import { Center as Center5, Progress as Progress2, Space as Space5, Text as Text26 } from "@mantine/core";
|
|
9364
9764
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
|
9365
9765
|
import { useMemo as useMemo17 } from "react";
|
|
9366
|
-
import { Fragment as Fragment22, jsx as
|
|
9766
|
+
import { Fragment as Fragment22, jsx as jsx123, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
9367
9767
|
function getRandomColor2(seed) {
|
|
9368
9768
|
const random = Math.sin(seed) * 1e4;
|
|
9369
9769
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
|
@@ -9541,7 +9941,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9541
9941
|
header: "M\xE0u",
|
|
9542
9942
|
accessorKey: "color",
|
|
9543
9943
|
accessorFn(originalRow) {
|
|
9544
|
-
return /* @__PURE__ */
|
|
9944
|
+
return /* @__PURE__ */ jsx123("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
|
9545
9945
|
},
|
|
9546
9946
|
minSize: 30,
|
|
9547
9947
|
maxSize: 30
|
|
@@ -9556,7 +9956,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9556
9956
|
header: "%",
|
|
9557
9957
|
accessorKey: "used",
|
|
9558
9958
|
accessorFn(originalRow) {
|
|
9559
|
-
return /* @__PURE__ */
|
|
9959
|
+
return /* @__PURE__ */ jsx123(Fragment22, { children: /* @__PURE__ */ jsx123(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9560
9960
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
|
9561
9961
|
"%"
|
|
9562
9962
|
] }) }) });
|
|
@@ -9572,7 +9972,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9572
9972
|
},
|
|
9573
9973
|
Cell: ({ row }) => {
|
|
9574
9974
|
return /* @__PURE__ */ jsxs76(Fragment22, { children: [
|
|
9575
|
-
/* @__PURE__ */
|
|
9975
|
+
/* @__PURE__ */ jsx123(Center5, { children: /* @__PURE__ */ jsxs76(Text26, { children: [
|
|
9576
9976
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
|
9577
9977
|
/* @__PURE__ */ jsxs76("strong", { children: [
|
|
9578
9978
|
row.original.used,
|
|
@@ -9583,7 +9983,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9583
9983
|
(row.original.used / row.original.total * 100).toFixed(2),
|
|
9584
9984
|
"%)"
|
|
9585
9985
|
] }) }),
|
|
9586
|
-
/* @__PURE__ */
|
|
9986
|
+
/* @__PURE__ */ jsx123(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
|
9587
9987
|
] });
|
|
9588
9988
|
},
|
|
9589
9989
|
minSize: 50,
|
|
@@ -9592,9 +9992,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9592
9992
|
],
|
|
9593
9993
|
[]
|
|
9594
9994
|
);
|
|
9595
|
-
return /* @__PURE__ */
|
|
9596
|
-
/* @__PURE__ */
|
|
9597
|
-
/* @__PURE__ */
|
|
9995
|
+
return /* @__PURE__ */ jsx123(Fragment22, { children: /* @__PURE__ */ jsxs76(MyFlexColumn, { children: [
|
|
9996
|
+
/* @__PURE__ */ jsx123(Text26, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng m\xE3 gi\u1EA3m gi\xE1 h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
|
9997
|
+
/* @__PURE__ */ jsx123(Center5, { children: /* @__PURE__ */ jsx123(
|
|
9598
9998
|
PieChart2,
|
|
9599
9999
|
{
|
|
9600
10000
|
startAngle: 90,
|
|
@@ -9607,8 +10007,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
|
9607
10007
|
data: data_used_discountCode2
|
|
9608
10008
|
}
|
|
9609
10009
|
) }),
|
|
9610
|
-
/* @__PURE__ */
|
|
9611
|
-
/* @__PURE__ */
|
|
10010
|
+
/* @__PURE__ */ jsx123(Space5, { mt: 5 }),
|
|
10011
|
+
/* @__PURE__ */ jsx123(
|
|
9612
10012
|
MyDataTable,
|
|
9613
10013
|
{
|
|
9614
10014
|
data: mockData2,
|
|
@@ -9640,20 +10040,20 @@ function useS_authenticate() {
|
|
|
9640
10040
|
}
|
|
9641
10041
|
|
|
9642
10042
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
|
9643
|
-
import { jsx as
|
|
10043
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
9644
10044
|
function F_authenticate_Logout() {
|
|
9645
10045
|
const router = useRouter4();
|
|
9646
10046
|
const S_Authenticate = useS_authenticate();
|
|
9647
|
-
return /* @__PURE__ */
|
|
10047
|
+
return /* @__PURE__ */ jsx124(Button18, { onClick: () => {
|
|
9648
10048
|
S_Authenticate.setProperty("token", "");
|
|
9649
10049
|
router.replace("/authenticate/login");
|
|
9650
|
-
}, leftSection: /* @__PURE__ */
|
|
10050
|
+
}, leftSection: /* @__PURE__ */ jsx124(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
|
9651
10051
|
}
|
|
9652
10052
|
|
|
9653
10053
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
|
9654
10054
|
import { useRouter as useRouter5 } from "next/navigation";
|
|
9655
10055
|
import { useEffect as useEffect14 } from "react";
|
|
9656
|
-
import { jsx as
|
|
10056
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
9657
10057
|
function F_authenticate_SplashPage() {
|
|
9658
10058
|
const router = useRouter5();
|
|
9659
10059
|
const S_Authenticate = useS_authenticate();
|
|
@@ -9664,7 +10064,7 @@ function F_authenticate_SplashPage() {
|
|
|
9664
10064
|
}
|
|
9665
10065
|
router.push("/admin/core71678");
|
|
9666
10066
|
}, [S_Authenticate.state.token]);
|
|
9667
|
-
return /* @__PURE__ */
|
|
10067
|
+
return /* @__PURE__ */ jsx125(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
|
9668
10068
|
}
|
|
9669
10069
|
|
|
9670
10070
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
@@ -9687,13 +10087,13 @@ import { useMutation as useMutation8 } from "@tanstack/react-query";
|
|
|
9687
10087
|
import axios2 from "axios";
|
|
9688
10088
|
import Link5 from "next/link";
|
|
9689
10089
|
import { useRouter as useRouter6 } from "next/navigation";
|
|
9690
|
-
import { useState as
|
|
10090
|
+
import { useState as useState17 } from "react";
|
|
9691
10091
|
|
|
9692
10092
|
// src/modules-features/authenticate/F_authenticate_Login/css.module.css
|
|
9693
10093
|
var css_default3 = {};
|
|
9694
10094
|
|
|
9695
10095
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
|
9696
|
-
import { jsx as
|
|
10096
|
+
import { jsx as jsx126, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
9697
10097
|
function F_authenticate_Login({
|
|
9698
10098
|
loginInfo,
|
|
9699
10099
|
redirectUrlAfterLogin = "/admin/dashboard",
|
|
@@ -9702,7 +10102,7 @@ function F_authenticate_Login({
|
|
|
9702
10102
|
}) {
|
|
9703
10103
|
const router = useRouter6();
|
|
9704
10104
|
const authStore = useS_authenticate();
|
|
9705
|
-
const loadingState =
|
|
10105
|
+
const loadingState = useState17(false);
|
|
9706
10106
|
const mutation = useM_Account_Sigin();
|
|
9707
10107
|
const form = useForm19({
|
|
9708
10108
|
mode: "uncontrolled",
|
|
@@ -9737,21 +10137,21 @@ function F_authenticate_Login({
|
|
|
9737
10137
|
}
|
|
9738
10138
|
});
|
|
9739
10139
|
}
|
|
9740
|
-
return /* @__PURE__ */
|
|
10140
|
+
return /* @__PURE__ */ jsx126(
|
|
9741
10141
|
BackgroundImage,
|
|
9742
10142
|
{
|
|
9743
10143
|
src: backgroundImage,
|
|
9744
10144
|
h: "100vh",
|
|
9745
|
-
children: /* @__PURE__ */
|
|
10145
|
+
children: /* @__PURE__ */ jsx126(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs77(Paper18, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
|
9746
10146
|
/* @__PURE__ */ jsxs77(Flex7, { direction: "column", mb: "md", children: [
|
|
9747
|
-
/* @__PURE__ */
|
|
10147
|
+
/* @__PURE__ */ jsx126(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
|
9748
10148
|
/* @__PURE__ */ jsxs77(Text27, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
|
9749
10149
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
|
9750
|
-
/* @__PURE__ */
|
|
10150
|
+
/* @__PURE__ */ jsx126(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
|
9751
10151
|
] })
|
|
9752
10152
|
] }),
|
|
9753
|
-
/* @__PURE__ */
|
|
9754
|
-
/* @__PURE__ */
|
|
10153
|
+
/* @__PURE__ */ jsx126("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs77(MyFlexColumn, { children: [
|
|
10154
|
+
/* @__PURE__ */ jsx126(
|
|
9755
10155
|
TextInput6,
|
|
9756
10156
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
|
9757
10157
|
label: "T\xE0i kho\u1EA3n",
|
|
@@ -9759,7 +10159,7 @@ function F_authenticate_Login({
|
|
|
9759
10159
|
withAsterisk: true
|
|
9760
10160
|
})
|
|
9761
10161
|
),
|
|
9762
|
-
/* @__PURE__ */
|
|
10162
|
+
/* @__PURE__ */ jsx126(
|
|
9763
10163
|
PasswordInput2,
|
|
9764
10164
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
|
9765
10165
|
label: "M\u1EADt kh\u1EA9u",
|
|
@@ -9768,10 +10168,10 @@ function F_authenticate_Login({
|
|
|
9768
10168
|
})
|
|
9769
10169
|
),
|
|
9770
10170
|
/* @__PURE__ */ jsxs77(Group28, { justify: "space-between", children: [
|
|
9771
|
-
/* @__PURE__ */
|
|
9772
|
-
/* @__PURE__ */
|
|
10171
|
+
/* @__PURE__ */ jsx126(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
|
10172
|
+
/* @__PURE__ */ jsx126(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
9773
10173
|
] }),
|
|
9774
|
-
/* @__PURE__ */
|
|
10174
|
+
/* @__PURE__ */ jsx126(
|
|
9775
10175
|
Button19,
|
|
9776
10176
|
{
|
|
9777
10177
|
loading: loadingState[0],
|
|
@@ -9841,6 +10241,7 @@ export {
|
|
|
9841
10241
|
AQCard,
|
|
9842
10242
|
MyKeyLabel,
|
|
9843
10243
|
MyNumberFormatter,
|
|
10244
|
+
MyScheduleX,
|
|
9844
10245
|
AQStatCard1,
|
|
9845
10246
|
MyDateInput,
|
|
9846
10247
|
MyFieldset,
|