@pisell/private-materials 3.0.156 → 3.0.157
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/components/schedules/resources/add/index.js +9 -9
- package/es/components/schedules/resources/edit/index.d.ts +4 -0
- package/es/components/schedules/resources/edit/index.js +116 -0
- package/es/components/schedules/resources/edit/index.less +19 -0
- package/es/components/schedules/resources/index.d.ts +2 -2
- package/es/components/schedules/resources/index.js +24 -16
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/components/schedules/resources/add/index.js +7 -7
- package/lib/components/schedules/resources/edit/index.d.ts +4 -0
- package/lib/components/schedules/resources/edit/index.js +132 -0
- package/lib/components/schedules/resources/edit/index.less +19 -0
- package/lib/components/schedules/resources/index.d.ts +2 -2
- package/lib/components/schedules/resources/index.js +7 -4
- package/package.json +3 -3
|
@@ -39,6 +39,7 @@ var import_CurrentDay = __toESM(require("../components/CurrentDay"));
|
|
|
39
39
|
var import_Search = __toESM(require("../components/Search"));
|
|
40
40
|
var import_model = require("../model");
|
|
41
41
|
var import_add = __toESM(require("./add"));
|
|
42
|
+
var import_edit = __toESM(require("./edit"));
|
|
42
43
|
var import_detail = __toESM(require("./detail"));
|
|
43
44
|
var import_index = require("./index.less");
|
|
44
45
|
var import_list = __toESM(require("./list"));
|
|
@@ -49,6 +50,7 @@ var Resources = () => {
|
|
|
49
50
|
const { currentSelectDayDetail, resources, tabKey } = state;
|
|
50
51
|
const cacheResource = resources == null ? void 0 : resources.cacheResource;
|
|
51
52
|
const resourcesAddRef = (0, import_react.useRef)();
|
|
53
|
+
const resourcesEditRef = (0, import_react.useRef)();
|
|
52
54
|
const resourcesDetailRef = (0, import_react.useRef)();
|
|
53
55
|
const [seachText, setSearchText] = (0, import_react.useState)("");
|
|
54
56
|
const [activeKey, setActiveKey] = (0, import_react.useState)([]);
|
|
@@ -98,7 +100,7 @@ var Resources = () => {
|
|
|
98
100
|
(0, import_react.useEffect)(() => {
|
|
99
101
|
var _a, _b;
|
|
100
102
|
if (cacheResource) {
|
|
101
|
-
(_b = (_a =
|
|
103
|
+
(_b = (_a = resourcesEditRef.current) == null ? void 0 : _a.open) == null ? void 0 : _b.call(_a, cacheResource);
|
|
102
104
|
setTimeout(() => {
|
|
103
105
|
var _a2;
|
|
104
106
|
const el = document.getElementById(`${cacheResource.id}`);
|
|
@@ -137,7 +139,8 @@ var Resources = () => {
|
|
|
137
139
|
list: resources2.map((resource) => {
|
|
138
140
|
return {
|
|
139
141
|
id: resource.id,
|
|
140
|
-
title: resource.title
|
|
142
|
+
title: resource.title,
|
|
143
|
+
form_id: item.id
|
|
141
144
|
};
|
|
142
145
|
}),
|
|
143
146
|
addClick: () => {
|
|
@@ -146,7 +149,7 @@ var Resources = () => {
|
|
|
146
149
|
},
|
|
147
150
|
itemClick: (resource) => {
|
|
148
151
|
var _a, _b;
|
|
149
|
-
(_b = (_a =
|
|
152
|
+
(_b = (_a = resourcesEditRef.current) == null ? void 0 : _a.open) == null ? void 0 : _b.call(_a, resource);
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
155
|
)
|
|
@@ -193,7 +196,7 @@ var Resources = () => {
|
|
|
193
196
|
)
|
|
194
197
|
}
|
|
195
198
|
)
|
|
196
|
-
))), /* @__PURE__ */ import_react.default.createElement(import_add.default, { ref: resourcesAddRef, onSuccess: init }), /* @__PURE__ */ import_react.default.createElement(
|
|
199
|
+
))), /* @__PURE__ */ import_react.default.createElement(import_add.default, { ref: resourcesAddRef, onSuccess: init }), /* @__PURE__ */ import_react.default.createElement(import_edit.default, { ref: resourcesEditRef, onSuccess: init }), /* @__PURE__ */ import_react.default.createElement(
|
|
197
200
|
import_detail.default,
|
|
198
201
|
{
|
|
199
202
|
tabKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.157",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/materials": "3.0.48",
|
|
63
|
-
"@pisell/utils": "1.0.42",
|
|
64
63
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/date-picker": "1.0.100"
|
|
64
|
+
"@pisell/date-picker": "1.0.100",
|
|
65
|
+
"@pisell/utils": "1.0.42"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|