aq-fe-framework 0.1.308 → 0.1.310
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-HHJFKKE7.mjs +26 -0
- package/dist/{chunk-NRFQDAYS.mjs → chunk-M6B6SXA3.mjs} +5 -5
- package/dist/chunk-MK2W26FZ.mjs +518 -0
- package/dist/{chunk-KKJ3OEEW.mjs → chunk-OPVLK7PA.mjs} +48 -5
- package/dist/{chunk-IMCUF52C.mjs → chunk-RYZTACZ4.mjs} +168 -310
- package/dist/components/index.d.mts +7 -15
- package/dist/components/index.mjs +4 -7
- package/dist/core/index.d.mts +20 -8
- package/dist/core/index.mjs +20 -336
- package/dist/{createBaseApi-BAYnbGVT.d.mts → createBaseApi-BayOeFCy.d.mts} +12 -3
- package/dist/hooks/index.d.mts +20 -3
- package/dist/hooks/index.mjs +5 -1
- package/dist/interfaces/index.d.mts +6 -2
- package/dist/modules-features/index.d.mts +102 -35
- package/dist/modules-features/index.mjs +1460 -877
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -2
- package/dist/chunk-DRLKXVYU.mjs +0 -55
package/dist/utils/index.mjs
CHANGED
package/package.json
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
"types": "./dist/core/index.d.mts"
|
39
39
|
}
|
40
40
|
},
|
41
|
-
"version": "0.1.
|
41
|
+
"version": "0.1.310",
|
42
42
|
"private": false,
|
43
43
|
"files": [
|
44
44
|
"dist"
|
@@ -90,7 +90,6 @@
|
|
90
90
|
"@tiptap/pm": "^2.9.1",
|
91
91
|
"@tiptap/react": "^2.9.1",
|
92
92
|
"@tiptap/starter-kit": "^2.9.1",
|
93
|
-
"aq-fe-framework": "^0.1.297",
|
94
93
|
"autoprefixer": "^10.4.20",
|
95
94
|
"axios": "^1.7.7",
|
96
95
|
"caniuse-lite": "^1.0.30001718",
|
package/dist/chunk-DRLKXVYU.mjs
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enum_daysOfWeek
|
3
|
-
} from "./chunk-K6S7R6LU.mjs";
|
4
|
-
import {
|
5
|
-
__objRest,
|
6
|
-
__spreadProps,
|
7
|
-
__spreadValues
|
8
|
-
} from "./chunk-FWCSY2DS.mjs";
|
9
|
-
|
10
|
-
// src/components/Layouts/FlexColumn/MyFlexColumn.tsx
|
11
|
-
import { Flex } from "@mantine/core";
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
13
|
-
function MyFlexColumn(_a) {
|
14
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
15
|
-
return /* @__PURE__ */ jsx(Flex, __spreadProps(__spreadValues({ direction: "column", gap: "md" }, rest), { children }));
|
16
|
-
}
|
17
|
-
|
18
|
-
// src/components/Layouts/FlexRow/MyFlexRow.tsx
|
19
|
-
import { Flex as Flex2 } from "@mantine/core";
|
20
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
21
|
-
function MyFlexRow(_a) {
|
22
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
23
|
-
return /* @__PURE__ */ jsx2(Flex2, __spreadProps(__spreadValues({ gap: "md", align: "center" }, rest), { children }));
|
24
|
-
}
|
25
|
-
|
26
|
-
// src/core/input/CoreDayOfWeekPicker.tsx
|
27
|
-
import { Badge, Group } from "@mantine/core";
|
28
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
29
|
-
var days = Object.entries(enum_daysOfWeek).filter(([key]) => isNaN(Number(key))).map(([label, value]) => ({ label, value }));
|
30
|
-
function CoreDayOfWeekPicker({ value = [], onChange }) {
|
31
|
-
const toggle = (val) => {
|
32
|
-
if (!onChange) return;
|
33
|
-
const newValue = value.includes(val) ? value.filter((v) => v !== val) : [...value, val].sort((a, b) => a - b);
|
34
|
-
onChange(newValue);
|
35
|
-
};
|
36
|
-
return /* @__PURE__ */ jsx3(MyFlexRow, { align: "center", children: /* @__PURE__ */ jsx3(Group, { gap: "xs", children: days.map((d) => /* @__PURE__ */ jsx3(
|
37
|
-
Badge,
|
38
|
-
{
|
39
|
-
variant: value.includes(d.value) ? "filled" : "outline",
|
40
|
-
color: "blue",
|
41
|
-
radius: "sm",
|
42
|
-
size: "lg",
|
43
|
-
onClick: () => toggle(d.value),
|
44
|
-
style: { cursor: onChange ? "pointer" : "default", userSelect: "none" },
|
45
|
-
children: d.label
|
46
|
-
},
|
47
|
-
d.value
|
48
|
-
)) }) });
|
49
|
-
}
|
50
|
-
|
51
|
-
export {
|
52
|
-
MyFlexColumn,
|
53
|
-
MyFlexRow,
|
54
|
-
CoreDayOfWeekPicker
|
55
|
-
};
|