infinity-forge 2.4.7 → 2.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +2 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -1
- package/dist/test/index.js +4 -29
- package/dist/test/index.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/context.d.ts +1 -1
- package/dist/ui/contexts/dynamic-sections/context.js +1 -1
- package/dist/ui/contexts/dynamic-sections/context.js.map +1 -1
- package/dist/ui/utils/_app_utils/generate_ref.d.ts +2 -1
- package/dist/ui/utils/_app_utils/generate_ref.js +12 -7
- package/dist/ui/utils/_app_utils/generate_ref.js.map +1 -1
- package/dist/ui/utils/_app_utils/get-pathname-ref.js +3 -2
- package/dist/ui/utils/_app_utils/get-pathname-ref.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,4 +43,5 @@ function MessageCard(_a) {
|
|
|
43
43
|
var title = _a.title, status = _a.status, date = _a.date, name = _a.name, description = _a.description, url = _a.url;
|
|
44
44
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MessageCard', children: (0, jsx_runtime_1.jsxs)(S.MessageCard, { href: url, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [(0, jsx_runtime_1.jsx)("h5", { className: 'title font-16-bold', children: title }), (0, jsx_runtime_1.jsx)(system_1.HighlightText, __assign({}, status)), (0, jsx_runtime_1.jsx)("span", { className: 'days font-12-regular', children: date })] }), (0, jsx_runtime_1.jsxs)("p", { className: 'description font-16-regular', children: [(0, jsx_runtime_1.jsxs)("strong", { className: '-bold', children: [name, ": "] }), " ", description] })] }) }));
|
|
45
45
|
}
|
|
46
|
-
exports.
|
|
46
|
+
exports.MessageCard = MessageCard;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -89,4 +89,4 @@ function Content() {
|
|
|
89
89
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsx)(S.Content, { children: (0, jsx_runtime_1.jsx)("div", { className: 'cards-box', children: messages.map(function (item) { return ((0, jsx_runtime_1.jsx)(card_1.MessageCard, __assign({}, item), 'message-card' + item.title)); }) }) }) }));
|
|
90
90
|
}
|
|
91
91
|
exports.Content = Content;
|
|
92
|
-
//#
|
|
92
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js
CHANGED
|
@@ -33,4 +33,4 @@ function Messages() {
|
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Messages', children: (0, jsx_runtime_1.jsx)(S.Messages, { id: 'messages-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Messages', enableArrow: true, bgColor: '#fff', enableHover: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, {}), trigger: (0, jsx_runtime_1.jsx)(styles_1.ActionBox, { children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldChat' }) }) }) }) }));
|
|
34
34
|
}
|
|
35
35
|
exports.Messages = Messages;
|
|
36
|
-
//#
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -32,4 +32,5 @@ function Content() {
|
|
|
32
32
|
var _a = (0, system_1.useAuthAdmin)(), user = _a.user, signOut = _a.signOut;
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsxs)(S.Content, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'user-profile', children: (0, jsx_runtime_1.jsxs)("div", { className: 'user-info', children: [(0, jsx_runtime_1.jsx)("h6", { className: 'font-16-semibold', children: user === null || user === void 0 ? void 0 : user.firstName }), (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular email', children: user === null || user === void 0 ? void 0 : user.emailAddress })] }) }), (0, jsx_runtime_1.jsx)("div", { className: 'divider', children: (0, jsx_runtime_1.jsx)("button", { className: 'sign-out-button font-14-regular', type: 'button', onClick: function () { return signOut(); }, children: "Sair" }) })] }) }));
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.Content = Content;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js
CHANGED
|
@@ -34,4 +34,5 @@ function Profile() {
|
|
|
34
34
|
var avatarImage = (user === null || user === void 0 ? void 0 : user.avatar) || '/images/default-profile.png';
|
|
35
35
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Profile', children: (0, jsx_runtime_1.jsx)(S.Profile, { id: 'profile-btn', children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Profile', bgColor: '#fff', trigger: (0, jsx_runtime_1.jsx)(system_1.Avatar, { image: avatarImage }), enableArrow: true, content: (0, jsx_runtime_1.jsx)(content_1.Content, {}) }) }) }));
|
|
36
36
|
}
|
|
37
|
-
exports.Profile
|
|
37
|
+
exports.Profile = Profile;
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js
CHANGED
|
@@ -39,4 +39,4 @@ function Settings() {
|
|
|
39
39
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Settings', children: (0, jsx_runtime_1.jsx)(S.Settings, { id: 'settings-btn', children: (0, jsx_runtime_1.jsx)(styles_1.ActionBox, { onClick: function () { return setVisible(true); }, children: (0, jsx_runtime_1.jsx)(ui_1.IconGear, {}) }) }) }));
|
|
40
40
|
}
|
|
41
41
|
exports.Settings = Settings;
|
|
42
|
-
//#
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js
CHANGED
|
@@ -42,4 +42,4 @@ function SearchTrigger(props) {
|
|
|
42
42
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'SearchTrigger', children: (0, jsx_runtime_1.jsxs)(S.SearchTrigger, __assign({ "aria-label": 'Search' }, props, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'LupaIcon' }) }), (0, jsx_runtime_1.jsx)("span", { className: 'placeholder font-14-regular', children: "Pesquisar..." })] })) }));
|
|
43
43
|
}
|
|
44
44
|
exports.SearchTrigger = SearchTrigger;
|
|
45
|
-
//#
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/actions/delete/index.js
CHANGED
|
@@ -69,4 +69,4 @@ function TableActionDelete(_a) {
|
|
|
69
69
|
return ((0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'Actions', bgColor: '#fff', enableHover: true, content: 'Excluir', trigger: (0, jsx_runtime_1.jsx)("button", { className: 'action-button', onClick: deleteItem, type: 'button', children: loading ? (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 13 }) : (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconDelete' }) }) }));
|
|
70
70
|
}
|
|
71
71
|
exports.TableActionDelete = TableActionDelete;
|
|
72
|
-
//#
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -104,4 +104,4 @@ function Actions(_a) {
|
|
|
104
104
|
actions.custom.map(function (Component, index) { return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Component, __assign({}, table)) }, 'custom' + index + Component.name)); })] }) }));
|
|
105
105
|
}
|
|
106
106
|
exports.Actions = Actions;
|
|
107
|
-
//#
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -53,4 +53,4 @@ function CreateAction(_a) {
|
|
|
53
53
|
return ((0, jsx_runtime_1.jsx)(S.Create, { children: ((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button font-14-regular', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ui_1.Modal, { styles: __assign({ width: '100vw', maxWidth: '512px', borderRadius: 10 }, ((actions === null || actions === void 0 ? void 0 : actions.modalStyles) || {})), open: open, onClose: function () { return setOpen(false); }, children: (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: actions.create.onSucess, onFinish: function () { return setOpen(false); } })) }), (0, jsx_runtime_1.jsxs)("button", { className: 'create-button font-14-regular', type: 'button', onClick: function () { return setOpen(true); }, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] })] })) }));
|
|
54
54
|
}
|
|
55
55
|
exports.CreateAction = CreateAction;
|
|
56
|
-
//#
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -32,4 +32,4 @@ function Export(_a) {
|
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Export', children: (0, jsx_runtime_1.jsxs)(S.Export, { className: 'font-14-regular', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload' }) }), "Exportar"] }) }));
|
|
33
33
|
}
|
|
34
34
|
exports.Export = Export;
|
|
35
|
-
//#
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -135,4 +135,5 @@ function Filters(_a) {
|
|
|
135
135
|
});
|
|
136
136
|
}); }, options: filter.options.map(function (op) { return ({ label: op.text, value: op.value }); }) }, filter.data)); }), (0, jsx_runtime_1.jsx)(system_1.InputSearch, { onChange: function (value) { return (0, ui_1.updateRoute)({ params: { search: value, page: 1 }, router: router }); } })] }) }) }) }));
|
|
137
137
|
}
|
|
138
|
-
exports.Filters
|
|
138
|
+
exports.Filters = Filters;
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationModel } from '../../../../../../../../system/index.js';
|
|
2
|
-
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-
|
|
2
|
+
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
|
|
@@ -53,4 +53,4 @@ function PaginationTable(_a) {
|
|
|
53
53
|
}, onClick: function () { return onSelect(pagination.page + 1); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
|
|
54
54
|
}
|
|
55
55
|
exports.PaginationTable = PaginationTable;
|
|
56
|
-
//#
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js
CHANGED
|
@@ -31,4 +31,4 @@ function SkeletonTable() {
|
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsxs)(S.SkeletonCustom, { "data-testid": 'skeleton', children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } })] }) }));
|
|
32
32
|
}
|
|
33
33
|
exports.SkeletonTable = SkeletonTable;
|
|
34
|
-
//#
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -47,4 +47,4 @@ function THeadItem(_a) {
|
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { style: { width: colunm.width + 'px' }, onClick: handleOrd, children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && colunm.hasAsc && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { style: { transform: rotateArrow ? 'rotate(180deg)' : 'rotate(0deg)' }, xmlns: 'http://www.w3.org/2000/svg', width: '11', height: '6', viewBox: '0 0 11 6', fill: 'none', children: (0, jsx_runtime_1.jsx)("path", { d: 'M5.75 5.5L0.75 0.5H10.75L5.75 5.5Z', fill: ascIsActive ? '#1ABB64' : '#828282' }) }) }) }))] }) }) }));
|
|
48
48
|
}
|
|
49
49
|
exports.THeadItem = THeadItem;
|
|
50
|
-
//#
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.HomePage = void 0;
|
|
7
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
var index_1 = require("../index.js");
|
|
9
|
-
var moment_1 = __importDefault(require("moment"));
|
|
10
6
|
function HomePage() {
|
|
11
|
-
var _a = (0, index_1.
|
|
12
|
-
|
|
13
|
-
var _b = (0, index_1.useDynamicSection)({
|
|
14
|
-
refSection: 'asd',
|
|
15
|
-
isGlobal: true,
|
|
7
|
+
var _a = (0, index_1.useDynamicSection)({
|
|
8
|
+
refSection: 'test',
|
|
16
9
|
fields: {},
|
|
17
|
-
}), Section =
|
|
18
|
-
|
|
19
|
-
Component: function (p) { return (0, jsx_runtime_1.jsx)("div", { children: p.name }); },
|
|
20
|
-
items: [
|
|
21
|
-
{ name: 'lucas' },
|
|
22
|
-
{ name: 'maieski' },
|
|
23
|
-
{ name: 'marques' },
|
|
24
|
-
{ name: 'lucas' },
|
|
25
|
-
{ name: 'maieski' },
|
|
26
|
-
{ name: 'marques' },
|
|
27
|
-
{ name: 'lucas' },
|
|
28
|
-
{ name: 'maieski' },
|
|
29
|
-
{ name: 'marques' },
|
|
30
|
-
],
|
|
31
|
-
id: 'teast',
|
|
32
|
-
config: {
|
|
33
|
-
pagination: true,
|
|
34
|
-
},
|
|
35
|
-
}).Carousel;
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(index_1.FormHandler, { children: (0, jsx_runtime_1.jsx)(index_1.InputDatePicker, { name: 'dataNascimento', date: { maxDate: (0, moment_1.default)().subtract(18, 'years').toDate() }, language: 'pt', mode: 'date', label: 'Data de nascimento' }) }));
|
|
10
|
+
}), Section = _a.Section, title = _a.title;
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(Section, { children: title });
|
|
37
12
|
}
|
|
38
13
|
exports.HomePage = HomePage;
|
|
39
14
|
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AAAA,kCAA4C;AAE5C,SAAgB,QAAQ;IAChB,IAAA,KAAqB,IAAA,yBAAiB,EAAC;QAC3C,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,EAAE;KACX,CAAC,EAHM,OAAO,aAAA,EAAE,KAAK,WAGpB,CAAA;IAEF,OAAO,uBAAC,OAAO,cAAE,KAAK,GAAW,CAAA;AACnC,CAAC;AAPD,4BAOC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FetcherParams } from "../../../ui/index.js";
|
|
3
2
|
import { DynamicSection } from '../../../system/index.js';
|
|
3
|
+
import { FetcherParams } from "../../../ui/index.js";
|
|
4
4
|
declare function DynamicSectionProvider({ children, sections, }: {
|
|
5
5
|
sections: DynamicSection[];
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -51,8 +51,8 @@ exports.useDynamicSectionContext = exports.DynamicSectionProvider = void 0;
|
|
|
51
51
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
52
52
|
var react_1 = require("react");
|
|
53
53
|
var router_1 = require("next/router");
|
|
54
|
-
var ui_1 = require("../../../ui/index.js");
|
|
55
54
|
var system_1 = require("../../../system/index.js");
|
|
55
|
+
var ui_1 = require("../../../ui/index.js");
|
|
56
56
|
var dynamicSectionContext = (0, react_1.createContext)({
|
|
57
57
|
sections: [],
|
|
58
58
|
mutate: function () { },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,mCAAkF;AAClF,2BAA8F;AAE9F,IAAM,qBAAqB,GAAG,IAAA,qBAAa,EAA2E;IACpH,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,cAAO,CAAC;CACjB,CAAC,CAAA;AAEF,SAAS,sBAAsB,CAAC,EAM/B;IAND,iBA6BC;QA5BC,QAAQ,cAAA,EACR,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;IAMb,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAA;IAE/D,IAAA,KAA+B,IAAA,aAAQ,EAAC;QAC5C,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;;;;4BACU,qBAAM,kBAAS,CAAC,GAAG,CAAuB,cAAK,CAAC,oBAAoB,CAAC,CAAC,OAAO,uBAAM,IAAA,mBAAc,EAAC,SAAS,EAAE,MAAM,CAAC,KAAE,UAAU,EAAE,IAAI,IAAG,EAAA;;wBAApJ,QAAQ,GAAG,SAAyI;wBAE1J,sBAAO,QAAQ,EAAA;;;aAChB;QACD,OAAO,EAAE,UAAU;KACpB,CAAC,EARM,IAAI,UAAA,EAAE,UAAU,gBAAA,EAAE,MAAM,YAQ9B,CAAA;IAEF,OAAO,CACL,wBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,QAAA,EAAE,aACvF,UAAU,IAAI,UAAU,IAAI,IAAI,IAAI,uBAAC,kBAAa,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,UAAU,SAAE,EAErF,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC;AAMQ,wDAAsB;AAJ/B,SAAS,wBAAwB;IAC/B,OAAO,IAAA,kBAAU,EAAC,qBAAqB,CAAC,CAAA;AAC1C,CAAC;AAEgC,4DAAwB"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRef = void 0;
|
|
3
|
+
exports.normalizeString = exports.generateRef = void 0;
|
|
4
4
|
var get_pathname_ref_1 = require("./get-pathname-ref.js");
|
|
5
5
|
function generateRef(referenceID, router, isGlobal) {
|
|
6
6
|
var _a;
|
|
7
|
-
return (isGlobal ? 'global' : normalizeString((_a = (0, get_pathname_ref_1.getPathnameRef)(undefined, router)) === null || _a === void 0 ? void 0 : _a.page)) +
|
|
7
|
+
return ((isGlobal ? 'global' : normalizeString((_a = (0, get_pathname_ref_1.getPathnameRef)(undefined, router)) === null || _a === void 0 ? void 0 : _a.page)) +
|
|
8
|
+
'_' +
|
|
9
|
+
normalizeString(referenceID));
|
|
8
10
|
}
|
|
9
11
|
exports.generateRef = generateRef;
|
|
10
12
|
function normalizeString(input) {
|
|
11
13
|
if (!input) {
|
|
12
|
-
return
|
|
14
|
+
return '';
|
|
13
15
|
}
|
|
14
16
|
return input
|
|
15
17
|
.normalize('NFD')
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
.
|
|
19
|
-
.
|
|
18
|
+
.replaceAll(/[\u0300-\u036f]/g, '')
|
|
19
|
+
.replaceAll(/[^a-zA-Z0-9]/g, '_')
|
|
20
|
+
.replaceAll(/_{2,}/g, '_')
|
|
21
|
+
.replaceAll(/^_+|_+$/g, '')
|
|
22
|
+
.replaceAll('-', '')
|
|
23
|
+
.replaceAll('_', '')
|
|
20
24
|
.toLowerCase();
|
|
21
25
|
}
|
|
26
|
+
exports.normalizeString = normalizeString;
|
|
22
27
|
//# sourceMappingURL=generate_ref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"generate_ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/generate_ref.ts"],"names":[],"mappings":";;;AACA,uDAAmD;AAEnD,SAAgB,WAAW,CAAC,WAAmB,EAAE,MAAkB,EAAE,QAAkB;;IACrF,OAAO,CACL,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,MAAA,IAAA,iCAAc,EAAC,SAAS,EAAE,MAAM,CAAC,0CAAE,IAAI,CAAC,CAAC;QAChF,GAAG;QACH,eAAe,CAAC,WAAW,CAAC,CAC7B,CAAA;AACH,CAAC;AAND,kCAMC;AAED,SAAgB,eAAe,CAAC,KAAa;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAA;IACX,CAAC;IAED,OAAO,KAAK;SACT,SAAS,CAAC,KAAK,CAAC;SAChB,UAAU,CAAC,kBAAkB,EAAE,EAAE,CAAC;SAClC,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC;SAChC,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC;SACzB,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC;SAC1B,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;SACnB,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;SACnB,WAAW,EAAE,CAAA;AAClB,CAAC;AAdD,0CAcC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPathnameRef = void 0;
|
|
4
|
+
var generate_ref_1 = require("./generate_ref.js");
|
|
4
5
|
function getPathnameRef(context, router) {
|
|
5
6
|
var _a;
|
|
6
7
|
var pathname = (router === null || router === void 0 ? void 0 : router.asPath) || ((_a = context === null || context === void 0 ? void 0 : context.router) === null || _a === void 0 ? void 0 : _a.asPath);
|
|
@@ -8,10 +9,10 @@ function getPathnameRef(context, router) {
|
|
|
8
9
|
pathname = pathname.split("?")[0];
|
|
9
10
|
}
|
|
10
11
|
if (pathname === '/' || !pathname) {
|
|
11
|
-
return { page: '
|
|
12
|
+
return { page: 'home' };
|
|
12
13
|
}
|
|
13
14
|
var parts = pathname.split('/');
|
|
14
|
-
return { page: parts[1] };
|
|
15
|
+
return { page: (0, generate_ref_1.normalizeString)(parts[1]) };
|
|
15
16
|
}
|
|
16
17
|
exports.getPathnameRef = getPathnameRef;
|
|
17
18
|
//# sourceMappingURL=get-pathname-ref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,SAAgB,cAAc,CAAC,OAAoB,EAAE,MAAmB;;IACtE,IAAI,QAAQ,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,MAAM,CAAA,CAAA;IAExD,IAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC;IAGD,IAAI,QAAQ,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;IACxB,CAAC;IAED,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEjC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,+CAAgD;AAEhD,SAAgB,cAAc,CAAC,OAAoB,EAAE,MAAmB;;IACtE,IAAI,QAAQ,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,MAAM,CAAA,CAAA;IAExD,IAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC;IAGD,IAAI,QAAQ,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;IACxB,CAAC;IAED,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEjC,OAAO,EAAE,IAAI,EAAE,IAAA,8BAAe,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAG,CAAA;AAC7C,CAAC;AAfD,wCAeC"}
|