@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.
Files changed (92) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/PisellCards/index.d.ts +0 -1
  10. package/es/components/PisellFields/index.d.ts +0 -1
  11. package/es/components/PisellFields/index.js +0 -11
  12. package/es/components/PisellLayouts/index.d.ts +0 -1
  13. package/es/components/PisellMetrics/index.d.ts +0 -1
  14. package/es/components/PisellSelectionFlow/PisellSelectionFlow.js +16 -5
  15. package/es/components/PisellSelectionFlow/hooks/useFlowNavigation.js +37 -8
  16. package/es/components/PisellSelectionFlow/types.d.ts +2 -0
  17. package/es/components/appVersionControl/types.d.ts +0 -1
  18. package/es/components/calendar/index.d.ts +0 -1
  19. package/es/components/checkbox/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  26. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  27. package/es/components/date-picker/index.d.ts +0 -1
  28. package/es/components/drag-sort-tree/types.d.ts +0 -1
  29. package/es/components/filter/components/FilterButton/types.d.ts +0 -1
  30. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +0 -2
  31. package/es/components/filter/components/FilterItem/index.js +0 -11
  32. package/es/components/input/index.d.ts +0 -1
  33. package/es/components/pisell-config-provider/context.d.ts +0 -1
  34. package/es/components/pisellDatePicker/index.d.ts +0 -1
  35. package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  36. package/es/components/pisellMenu/types.d.ts +0 -1
  37. package/es/components/pisellModal/components/PcModal/index.less +31 -1
  38. package/es/components/pisellQuickFilter/type.d.ts +0 -1
  39. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -2
  40. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +0 -11
  41. package/es/components/radio/index.d.ts +0 -1
  42. package/es/components/section-footers/index.d.ts +0 -1
  43. package/es/components/skeleton/index.d.ts +0 -1
  44. package/es/components/time-picker/index.d.ts +0 -1
  45. package/es/components/upload/index.d.ts +0 -1
  46. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
  47. package/es/index.js +0 -11
  48. package/lib/components/PisellCards/index.d.ts +0 -1
  49. package/lib/components/PisellFields/index.d.ts +0 -1
  50. package/lib/components/PisellLayouts/index.d.ts +0 -1
  51. package/lib/components/PisellMetrics/index.d.ts +0 -1
  52. package/lib/components/PisellSelectionFlow/PisellSelectionFlow.js +16 -5
  53. package/lib/components/PisellSelectionFlow/hooks/useFlowNavigation.js +37 -8
  54. package/lib/components/PisellSelectionFlow/types.d.ts +2 -0
  55. package/lib/components/appVersionControl/types.d.ts +0 -1
  56. package/lib/components/calendar/index.d.ts +0 -1
  57. package/lib/components/checkbox/index.d.ts +0 -1
  58. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  59. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  60. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  61. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  62. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  63. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  64. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  65. package/lib/components/date-picker/index.d.ts +0 -1
  66. package/lib/components/drag-sort-tree/types.d.ts +0 -1
  67. package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
  68. package/lib/components/input/index.d.ts +0 -1
  69. package/lib/components/pisell-config-provider/context.d.ts +0 -1
  70. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  71. package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  72. package/lib/components/pisellMenu/types.d.ts +0 -1
  73. package/lib/components/pisellModal/components/PcModal/index.less +31 -1
  74. package/lib/components/pisellQuickFilter/type.d.ts +0 -1
  75. package/lib/components/radio/index.d.ts +0 -1
  76. package/lib/components/section-footers/index.d.ts +0 -1
  77. package/lib/components/skeleton/index.d.ts +0 -1
  78. package/lib/components/time-picker/index.d.ts +0 -1
  79. package/lib/components/upload/index.d.ts +0 -1
  80. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
  81. package/package.json +3 -3
  82. package/es/components/pisellCurrency/index.js +0 -13
  83. package/es/components/pisellEmail/index.js +0 -13
  84. package/es/components/pisellLongText/index.js +0 -13
  85. package/es/components/pisellMultipleSelect/index.js +0 -13
  86. package/es/components/pisellNumber/index.js +0 -13
  87. package/es/components/pisellPercent/index.js +0 -13
  88. package/es/components/pisellPhone/index.js +0 -14
  89. package/es/components/pisellRating/index.js +0 -13
  90. package/es/components/pisellSingleLineText/index.js +0 -13
  91. package/es/components/pisellSingleSelect/index.js +0 -13
  92. 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
- for (const step of allSteps) for (const module of step.modules) {
370
- if (automaticModuleKeysRef.current.includes(module.key) && !(yield validateModule(module))) return false;
371
- if (!isCurrentPreparation()) return false;
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$curre4;
410
- return ((_moduleStateRef$curre4 = moduleStateRef.current[module.key]) === null || _moduleStateRef$curre4 === void 0 ? void 0 : _moduleStateRef$curre4.status) !== "ready";
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, _compiledStepsRef$cur3;
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 && (isStepSkippable(nextIndex) || ((_compiledStepsRef$cur2 = compiledStepsRef.current[nextIndex]) === null || _compiledStepsRef$cur2 === void 0 ? void 0 : _compiledStepsRef$cur2.modules.every((module) => automaticModuleKeysRef.current.includes(module.key))))) nextIndex -= 1;
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$cur3 = compiledStepsRef.current[nextIndex]) === null || _compiledStepsRef$cur3 === void 0 ? void 0 : _compiledStepsRef$cur3.key;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/appVersionControl/types.d.ts
3
2
  interface Version {
4
3
  id: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/calendar/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/checkbox/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalSettingsType } from "../../table/types.js";
3
2
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
4
3
  import { ColumnType } from "antd/es/table";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxGroupProps } from "./type.js";
3
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RadioGroupProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { TabsProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModeType } from "../../dataSourceForm/type.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionsItem } from "../../dataSourceForm/serve.js";
3
2
  import { Result } from "ahooks/es/useRequest/src/types";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/date-picker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/drag-sort-tree/types.d.ts
3
2
  type IdType = string | number;
4
3
  type ValueProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../../types.js";
3
2
 
4
3
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
  import { InputProps, InputRef } from "antd";
4
3
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisellDatePicker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
3
2
  interface ToolBarProps {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
 
4
3
  //#region src/components/pisellMenu/types.d.ts
@@ -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
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../filter/types.js";
3
2
  import { FormInstance } from "antd";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/radio/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/section-footers/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/skeleton/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/time-picker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/upload/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
3
2
 
4
3
  //#region src/components/virtual-keyboard/Amount/types.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.12.89",
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 {};