@fctc/widget-logic 2.1.0 → 2.1.2
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/widget.d.mts +1 -0
- package/dist/widget.d.ts +1 -0
- package/dist/widget.js +2 -2
- package/dist/widget.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5750,7 +5750,7 @@ var durationController = (props) => {
|
|
|
5750
5750
|
// src/widget/basic/priority-field/controller.ts
|
|
5751
5751
|
var import_utils10 = require("@fctc/interface-logic/utils");
|
|
5752
5752
|
var priorityFieldController = (props) => {
|
|
5753
|
-
const { name, model,
|
|
5753
|
+
const { name, model, index, actionData, context, onChange, specification } = props;
|
|
5754
5754
|
const _context = { ...(0, import_utils10.evalJSONContext)(actionData?.context) };
|
|
5755
5755
|
const contextObject = { ...context, ..._context };
|
|
5756
5756
|
const { useSave: useSave2 } = (0, provider_exports.useService)();
|
|
@@ -5762,7 +5762,7 @@ var priorityFieldController = (props) => {
|
|
|
5762
5762
|
const priorityValue = value <= 0 ? 0 : value - 1;
|
|
5763
5763
|
try {
|
|
5764
5764
|
fetchSave({
|
|
5765
|
-
ids:
|
|
5765
|
+
ids: index ? [index] : [],
|
|
5766
5766
|
data: { [String(name)]: String(priorityValue) },
|
|
5767
5767
|
model: String(model),
|
|
5768
5768
|
context: contextObject,
|
package/dist/index.mjs
CHANGED
|
@@ -5784,7 +5784,7 @@ var durationController = (props) => {
|
|
|
5784
5784
|
// src/widget/basic/priority-field/controller.ts
|
|
5785
5785
|
import { evalJSONContext as evalJSONContext6 } from "@fctc/interface-logic/utils";
|
|
5786
5786
|
var priorityFieldController = (props) => {
|
|
5787
|
-
const { name, model,
|
|
5787
|
+
const { name, model, index, actionData, context, onChange, specification } = props;
|
|
5788
5788
|
const _context = { ...evalJSONContext6(actionData?.context) };
|
|
5789
5789
|
const contextObject = { ...context, ..._context };
|
|
5790
5790
|
const { useSave: useSave2 } = (0, provider_exports.useService)();
|
|
@@ -5796,7 +5796,7 @@ var priorityFieldController = (props) => {
|
|
|
5796
5796
|
const priorityValue = value <= 0 ? 0 : value - 1;
|
|
5797
5797
|
try {
|
|
5798
5798
|
fetchSave({
|
|
5799
|
-
ids:
|
|
5799
|
+
ids: index ? [index] : [],
|
|
5800
5800
|
data: { [String(name)]: String(priorityValue) },
|
|
5801
5801
|
model: String(model),
|
|
5802
5802
|
context: contextObject,
|
package/dist/widget.d.mts
CHANGED
package/dist/widget.d.ts
CHANGED
package/dist/widget.js
CHANGED
|
@@ -5475,7 +5475,7 @@ var durationController = (props) => {
|
|
|
5475
5475
|
// src/widget/basic/priority-field/controller.ts
|
|
5476
5476
|
var import_utils10 = require("@fctc/interface-logic/utils");
|
|
5477
5477
|
var priorityFieldController = (props) => {
|
|
5478
|
-
const { name, model,
|
|
5478
|
+
const { name, model, index, actionData, context, onChange, specification } = props;
|
|
5479
5479
|
const _context = { ...(0, import_utils10.evalJSONContext)(actionData?.context) };
|
|
5480
5480
|
const contextObject = { ...context, ..._context };
|
|
5481
5481
|
const { useSave: useSave2 } = (0, provider_exports.useService)();
|
|
@@ -5487,7 +5487,7 @@ var priorityFieldController = (props) => {
|
|
|
5487
5487
|
const priorityValue = value <= 0 ? 0 : value - 1;
|
|
5488
5488
|
try {
|
|
5489
5489
|
fetchSave({
|
|
5490
|
-
ids:
|
|
5490
|
+
ids: index ? [index] : [],
|
|
5491
5491
|
data: { [String(name)]: String(priorityValue) },
|
|
5492
5492
|
model: String(model),
|
|
5493
5493
|
context: contextObject,
|
package/dist/widget.mjs
CHANGED
|
@@ -5486,7 +5486,7 @@ var durationController = (props) => {
|
|
|
5486
5486
|
// src/widget/basic/priority-field/controller.ts
|
|
5487
5487
|
import { evalJSONContext as evalJSONContext6 } from "@fctc/interface-logic/utils";
|
|
5488
5488
|
var priorityFieldController = (props) => {
|
|
5489
|
-
const { name, model,
|
|
5489
|
+
const { name, model, index, actionData, context, onChange, specification } = props;
|
|
5490
5490
|
const _context = { ...evalJSONContext6(actionData?.context) };
|
|
5491
5491
|
const contextObject = { ...context, ..._context };
|
|
5492
5492
|
const { useSave: useSave2 } = (0, provider_exports.useService)();
|
|
@@ -5498,7 +5498,7 @@ var priorityFieldController = (props) => {
|
|
|
5498
5498
|
const priorityValue = value <= 0 ? 0 : value - 1;
|
|
5499
5499
|
try {
|
|
5500
5500
|
fetchSave({
|
|
5501
|
-
ids:
|
|
5501
|
+
ids: index ? [index] : [],
|
|
5502
5502
|
data: { [String(name)]: String(priorityValue) },
|
|
5503
5503
|
model: String(model),
|
|
5504
5504
|
context: contextObject,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"test": "jest"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@fctc/interface-logic": "^2.
|
|
77
|
+
"@fctc/interface-logic": "^2.1.2",
|
|
78
78
|
"@headlessui/react": "^2.2.6",
|
|
79
79
|
"@tanstack/react-query": "^5.84.0",
|
|
80
80
|
"i18next": "^25.3.2",
|