@pisell/materials 6.12.89 → 6.12.91
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/PisellCards/index.d.ts +0 -1
- package/es/components/PisellFields/index.d.ts +0 -1
- package/es/components/PisellFields/index.js +0 -11
- package/es/components/PisellLayouts/index.d.ts +0 -1
- package/es/components/PisellMetrics/index.d.ts +0 -1
- package/es/components/PisellSelectionFlow/PisellSelectionFlow.js +16 -5
- package/es/components/PisellSelectionFlow/hooks/useFlowNavigation.js +37 -8
- package/es/components/PisellSelectionFlow/types.d.ts +2 -0
- package/es/components/appVersionControl/types.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/types.d.ts +0 -1
- package/es/components/filter/components/FilterButton/types.d.ts +0 -1
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +0 -2
- package/es/components/filter/components/FilterItem/index.js +0 -11
- package/es/components/input/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +0 -1
- package/es/components/pisellDatePicker/index.d.ts +0 -1
- package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
- package/es/components/pisellMenu/types.d.ts +0 -1
- package/es/components/pisellModal/components/PcModal/index.less +31 -1
- package/es/components/pisellQuickFilter/type.d.ts +0 -1
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -2
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +0 -11
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/section-footers/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
- package/es/index.js +0 -11
- package/lib/components/PisellCards/index.d.ts +0 -1
- package/lib/components/PisellFields/index.d.ts +0 -1
- package/lib/components/PisellLayouts/index.d.ts +0 -1
- package/lib/components/PisellMetrics/index.d.ts +0 -1
- package/lib/components/PisellSelectionFlow/PisellSelectionFlow.js +16 -5
- package/lib/components/PisellSelectionFlow/hooks/useFlowNavigation.js +37 -8
- package/lib/components/PisellSelectionFlow/types.d.ts +2 -0
- package/lib/components/appVersionControl/types.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/types.d.ts +0 -1
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
- package/lib/components/input/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.d.ts +0 -1
- package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
- package/lib/components/pisellMenu/types.d.ts +0 -1
- package/lib/components/pisellModal/components/PcModal/index.less +31 -1
- package/lib/components/pisellQuickFilter/type.d.ts +0 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/section-footers/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
- package/package.json +3 -3
- package/es/components/pisellCurrency/index.js +0 -13
- package/es/components/pisellEmail/index.js +0 -13
- package/es/components/pisellLongText/index.js +0 -13
- package/es/components/pisellMultipleSelect/index.js +0 -13
- package/es/components/pisellNumber/index.js +0 -13
- package/es/components/pisellPercent/index.js +0 -13
- package/es/components/pisellPhone/index.js +0 -14
- package/es/components/pisellRating/index.js +0 -13
- package/es/components/pisellSingleLineText/index.js +0 -13
- package/es/components/pisellSingleSelect/index.js +0 -13
- package/es/components/pisellUrl/index.js +0 -13
|
@@ -15,6 +15,7 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
|
|
|
15
15
|
return step.modules.every((module) => {
|
|
16
16
|
var _moduleStateRef$curre;
|
|
17
17
|
if (((_moduleStateRef$curre = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre === void 0 ? void 0 : _moduleStateRef$curre.status) !== "ready") return false;
|
|
18
|
+
if (automaticModuleKeysRef.current.includes(module.key)) return true;
|
|
18
19
|
try {
|
|
19
20
|
var _resolveFlowModuleAda, _resolveFlowModuleAda2;
|
|
20
21
|
return ((_resolveFlowModuleAda = require_compiler.resolveFlowModuleAdapter(registry, module.type)) === null || _resolveFlowModuleAda === void 0 || (_resolveFlowModuleAda2 = _resolveFlowModuleAda.isSkippable) === null || _resolveFlowModuleAda2 === void 0 ? void 0 : _resolveFlowModuleAda2.call(_resolveFlowModuleAda, context, module)) === true;
|
|
@@ -366,9 +367,32 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
|
|
|
366
367
|
const preparationGeneration = flowGenerationRef.current;
|
|
367
368
|
const preparationNavigation = navigationRevisionRef.current;
|
|
368
369
|
const isCurrentPreparation = () => mountedRef.current && !configurationErrorRef.current && flowGenerationRef.current === preparationGeneration && navigationRevisionRef.current === preparationNavigation && currentStepIndexRef.current === currentIndex && require_utils.getCompiledStepsFingerprint(compiledStepsRef.current) === preparationFingerprint;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
const automaticModules = [];
|
|
371
|
+
for (const step of allSteps) for (const module of step.modules) if (automaticModuleKeysRef.current.includes(module.key)) automaticModules.push(module);
|
|
372
|
+
for (let pass = 0; pass <= automaticModules.length; pass += 1) {
|
|
373
|
+
for (const module of automaticModules) {
|
|
374
|
+
var _moduleStateRef$curre4;
|
|
375
|
+
if (!isCurrentPreparation()) return false;
|
|
376
|
+
if (pass > 0 && ((_moduleStateRef$curre4 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre4 === void 0 ? void 0 : _moduleStateRef$curre4.status) === "ready") continue;
|
|
377
|
+
if (!(yield validateModule(module)) || !isCurrentPreparation()) return false;
|
|
378
|
+
}
|
|
379
|
+
if (automaticModules.every((module) => {
|
|
380
|
+
var _moduleStateRef$curre5;
|
|
381
|
+
return ((_moduleStateRef$curre5 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre5 === void 0 ? void 0 : _moduleStateRef$curre5.status) === "ready";
|
|
382
|
+
})) break;
|
|
383
|
+
}
|
|
384
|
+
const unresolvedAutomatic = automaticModules.find((module) => {
|
|
385
|
+
var _moduleStateRef$curre6;
|
|
386
|
+
return ((_moduleStateRef$curre6 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre6 === void 0 ? void 0 : _moduleStateRef$curre6.status) !== "ready";
|
|
387
|
+
});
|
|
388
|
+
if (unresolvedAutomatic) {
|
|
389
|
+
onAutomaticModuleFailure === null || onAutomaticModuleFailure === void 0 || onAutomaticModuleFailure(unresolvedAutomatic);
|
|
390
|
+
const state = moduleStateRef.current[unresolvedAutomatic.key];
|
|
391
|
+
onValidationFailed === null || onValidationFailed === void 0 || onValidationFailed(unresolvedAutomatic, {
|
|
392
|
+
message: state === null || state === void 0 ? void 0 : state.message,
|
|
393
|
+
reason: (state === null || state === void 0 ? void 0 : state.reason) || createRuntimeIssue("previous-step-review")
|
|
394
|
+
});
|
|
395
|
+
return false;
|
|
372
396
|
}
|
|
373
397
|
const preparationDraftRevision = draftRevisionRef.current;
|
|
374
398
|
for (const step of allSteps) {
|
|
@@ -406,8 +430,8 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
|
|
|
406
430
|
const latestRevisionFingerprint = latestSteps.flatMap((step) => step.modules).map((module) => `${module.key}:${moduleRevisionRef.current.get(module.key) || 0}`).join("|");
|
|
407
431
|
if (compiledFingerprint !== latestCompiledFingerprint || revisionFingerprint !== latestRevisionFingerprint || draftRevision !== draftRevisionRef.current) {
|
|
408
432
|
const targetStep = latestSteps.find((step) => step.modules.some((module) => {
|
|
409
|
-
var _moduleStateRef$
|
|
410
|
-
return ((_moduleStateRef$
|
|
433
|
+
var _moduleStateRef$curre7;
|
|
434
|
+
return ((_moduleStateRef$curre7 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre7 === void 0 ? void 0 : _moduleStateRef$curre7.status) !== "ready";
|
|
411
435
|
})) || latestSteps[0];
|
|
412
436
|
const targetModule = targetStep === null || targetStep === void 0 ? void 0 : targetStep.modules[0];
|
|
413
437
|
if (targetStep && targetModule) {
|
|
@@ -439,6 +463,7 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
|
|
|
439
463
|
}), [
|
|
440
464
|
commitModuleState,
|
|
441
465
|
createRuntimeIssue,
|
|
466
|
+
onAutomaticModuleFailure,
|
|
442
467
|
onValidationFailed,
|
|
443
468
|
revalidateModuleBeforeComplete,
|
|
444
469
|
validateCurrentStep,
|
|
@@ -542,15 +567,19 @@ const useFlowNavigation = ({ registry, draftAdapter, createRuntimeIssue, mounted
|
|
|
542
567
|
validateCurrentStep
|
|
543
568
|
]),
|
|
544
569
|
back: (0, react.useCallback)(() => {
|
|
545
|
-
var _compiledStepsRef$cur2
|
|
570
|
+
var _compiledStepsRef$cur2;
|
|
546
571
|
if (!mountedRef.current || transitionPendingRef.current || currentStepIndexRef.current <= 0) return false;
|
|
547
572
|
let nextIndex = currentStepIndexRef.current - 1;
|
|
548
|
-
while (nextIndex >= 0
|
|
573
|
+
while (nextIndex >= 0) {
|
|
574
|
+
const step = compiledStepsRef.current[nextIndex];
|
|
575
|
+
if (!((step === null || step === void 0 ? void 0 : step.modules.length) > 0 && step.modules.every((module) => automaticModuleKeysRef.current.includes(module.key))) && !isStepSkippable(nextIndex)) break;
|
|
576
|
+
nextIndex -= 1;
|
|
577
|
+
}
|
|
549
578
|
if (nextIndex < 0) return false;
|
|
550
579
|
navigationDirectionRef.current = "backward";
|
|
551
580
|
navigationRevisionRef.current += 1;
|
|
552
581
|
currentStepIndexRef.current = nextIndex;
|
|
553
|
-
currentStepKeyRef.current = (_compiledStepsRef$
|
|
582
|
+
currentStepKeyRef.current = (_compiledStepsRef$cur2 = compiledStepsRef.current[nextIndex]) === null || _compiledStepsRef$cur2 === void 0 ? void 0 : _compiledStepsRef$cur2.key;
|
|
554
583
|
setCurrentStepIndex(nextIndex);
|
|
555
584
|
return true;
|
|
556
585
|
}, [isStepSkippable]),
|
|
@@ -188,6 +188,8 @@ interface PisellSelectionFlowProps<TDraft, TDraftUpdate, TField extends string,
|
|
|
188
188
|
initialStepIndex?: number;
|
|
189
189
|
/** Resolve a stable presentation before mounting interactive module components. */
|
|
190
190
|
preparePresentation?: boolean;
|
|
191
|
+
/** Choose the entry step from prepared defaults without hiding earlier steps. */
|
|
192
|
+
resolveInitialStepIndex?: (context: SelectionFlowContextValue<TDraft, TDraftUpdate, TField, TModuleType, TServices, THostContext>) => number | undefined;
|
|
191
193
|
onPresentationReady?: (automaticModuleKeys: readonly string[]) => void;
|
|
192
194
|
hostContext?: THostContext;
|
|
193
195
|
services: TServices;
|
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
.pisell-lowcode-modal-root {
|
|
2
2
|
.pisell-pc-modal {
|
|
3
3
|
overflow: hidden;
|
|
4
|
+
&:not(.pisell-mobile-modal) {
|
|
5
|
+
> .pisell-lowcode-modal {
|
|
6
|
+
// body 缩放后按实际容器限制宽度,避免居中弹窗换行到屏幕外。
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
&.pisell-lowcode-modal-centered {
|
|
10
|
+
> .pisell-lowcode-modal {
|
|
11
|
+
// 使用缩放后 wrap 的高度;inline-flex 保留原有居中和遮罩点击区域。
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
min-height: min(260px, 90%);
|
|
15
|
+
max-height: 90%;
|
|
16
|
+
|
|
17
|
+
> .pisell-lowcode-modal-content {
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
min-height: 0;
|
|
20
|
+
max-height: none;
|
|
21
|
+
|
|
22
|
+
> .pisell-lowcode-modal-header,
|
|
23
|
+
> .pisell-lowcode-modal-footer {
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .pisell-lowcode-modal-body {
|
|
28
|
+
min-height: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
4
34
|
.pisell-lowcode-modal-content {
|
|
5
35
|
padding: 0 !important;
|
|
6
36
|
display: flex;
|
|
@@ -102,4 +132,4 @@
|
|
|
102
132
|
}
|
|
103
133
|
.pisell-move-down-leave {
|
|
104
134
|
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
|
105
|
-
}
|
|
135
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.91",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"swiper": "^8.4.7",
|
|
96
96
|
"antd-mobile": "^5.38.1",
|
|
97
97
|
"vod-js-sdk-v6": "^1.4.11",
|
|
98
|
+
"@pisell/date-picker": "3.0.12",
|
|
98
99
|
"@pisell/utils": "3.0.7",
|
|
99
|
-
"@pisell/icon": "0.0.11"
|
|
100
|
-
"@pisell/date-picker": "3.0.12"
|
|
100
|
+
"@pisell/icon": "0.0.11"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": "^18.0.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import MemoizedPisellCurrency from "./PisellCurrency.js";
|
|
3
|
-
//#region src/components/pisellCurrency/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
|
|
5
|
-
MemoizedPisellCurrency.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-0-9")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-9-0")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellEmail_default from "./PisellEmail.js";
|
|
3
|
-
//#region src/components/pisellEmail/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
|
|
5
|
-
PisellEmail_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-a-z")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-z-a")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellLongText_default from "./PisellLongText.js";
|
|
3
|
-
//#region src/components/pisellLongText/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
|
|
5
|
-
PisellLongText_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-a-z")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-z-a")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellMultipleSelect from "./PisellMultipleSelect.js";
|
|
3
|
-
//#region src/components/pisellMultipleSelect/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 First → Last / Last → First */
|
|
5
|
-
PisellMultipleSelect.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-first-last")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-last-first")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import MemoizedPisellNumber from "./PisellNumber.js";
|
|
3
|
-
//#region src/components/pisellNumber/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
|
|
5
|
-
MemoizedPisellNumber.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-0-9")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-9-0")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import MemoizedPisellPercent from "./PisellPercent.js";
|
|
3
|
-
//#region src/components/pisellPercent/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
|
|
5
|
-
MemoizedPisellPercent.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-0-9")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-9-0")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import "./constants/countryCodes.js";
|
|
3
|
-
import PisellPhone_default from "./PisellPhone.js";
|
|
4
|
-
//#region src/components/pisellPhone/index.tsx
|
|
5
|
-
/** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
|
|
6
|
-
PisellPhone_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
7
|
-
key: `${fieldKey}:asc`,
|
|
8
|
-
label: getText("sort-a-z")
|
|
9
|
-
}, {
|
|
10
|
-
key: `${fieldKey}:desc`,
|
|
11
|
-
label: getText("sort-z-a")
|
|
12
|
-
}] };
|
|
13
|
-
//#endregion
|
|
14
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellRating_default from "./PisellRating.js";
|
|
3
|
-
//#region src/components/pisellRating/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
|
|
5
|
-
PisellRating_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-0-9")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-9-0")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellSingleLineText_default from "./PisellSingleLineText.js";
|
|
3
|
-
//#region src/components/pisellSingleLineText/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
|
|
5
|
-
PisellSingleLineText_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-a-z")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-z-a")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellSingleSelect from "./PisellSingleSelect.js";
|
|
3
|
-
//#region src/components/pisellSingleSelect/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 First → Last / Last → First */
|
|
5
|
-
PisellSingleSelect.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-first-last")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-last-first")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getText } from "../../locales/index.js";
|
|
2
|
-
import PisellUrl_default from "./PisellUrl.js";
|
|
3
|
-
//#region src/components/pisellUrl/index.tsx
|
|
4
|
-
/** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
|
|
5
|
-
PisellUrl_default.SortOptions = { getSortItems: (fieldKey) => [{
|
|
6
|
-
key: `${fieldKey}:asc`,
|
|
7
|
-
label: getText("sort-a-z")
|
|
8
|
-
}, {
|
|
9
|
-
key: `${fieldKey}:desc`,
|
|
10
|
-
label: getText("sort-z-a")
|
|
11
|
-
}] };
|
|
12
|
-
//#endregion
|
|
13
|
-
export {};
|