@pisell/materials 1.0.1107 → 1.0.1109
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 +3 -3
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +48 -48
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +48 -48
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
- package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
- package/es/components/PisellCards/index.d.ts +5 -6
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +2 -2
- package/es/components/PisellLayouts/index.d.ts +2 -2
- package/es/components/PisellMetrics/index.d.ts +2 -2
- package/es/components/appVersionControl/index.d.ts +1 -2
- package/es/components/auto-complete-number/index.d.ts +1 -2
- package/es/components/badge/index.d.ts +1 -2
- package/es/components/batch-editor/index.d.ts +1 -2
- package/es/components/calendar/index.d.ts +1 -4
- package/es/components/cardMetricItem/index.d.ts +1 -1
- package/es/components/cardPro/index.d.ts +1 -2
- package/es/components/checkbox/index.d.ts +1 -4
- package/es/components/classicLayout/index.d.ts +1 -2
- package/es/components/config-provider/index.d.ts +1 -2
- package/es/components/customSelect/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.d.ts +15 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.js +202 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/SortableList.js +66 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/config.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/config.js +61 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/index.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/index.js +38 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/locales.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/locales.js +191 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/model.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/model.js +77 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/style.less +114 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts +48 -0
- package/es/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.js +14 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/index.js +4 -1
- package/es/components/dataSourceComponents/fields/utils.js +2 -0
- package/es/components/date-picker/index.d.ts +1 -4
- package/es/components/drag-sort-tree/index.d.ts +1 -2
- package/es/components/dropdown/index.d.ts +1 -3
- package/es/components/filter/index.d.ts +1 -2
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -1
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -1
- package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/list/index.d.ts +2 -2
- package/es/components/lowCodePage/index.d.ts +1 -3
- package/es/components/page/index.d.ts +1 -2
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +2 -2
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
- package/es/components/pisellAdjustPrice/index.d.ts +1 -2
- package/es/components/pisellAlert/index.d.ts +1 -1
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +2 -2
- package/es/components/pisellCalendar/PisellCalendar.d.ts +2 -2
- package/es/components/pisellCalendar/PisellCalendar.js +1 -1
- package/es/components/pisellCard/index.d.ts +1 -2
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/es/components/pisellCountdown/index.d.ts +1 -1
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +2 -2
- package/es/components/pisellDatePicker/index.d.ts +1 -4
- package/es/components/pisellDraggable/index.d.ts +1 -1
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +2 -2
- package/es/components/pisellExport/PisellExport.d.ts +2 -2
- package/es/components/pisellFilter/index.d.ts +1 -2
- package/es/components/pisellFloatingPanel/index.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +2 -3
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/es/components/pisellGantt/PisellGantt.d.ts +2 -2
- package/es/components/pisellGoodPassCard/index.d.ts +1 -1
- package/es/components/pisellGridPro/GridView/index.d.ts +1 -2
- package/es/components/pisellImport/PisellImport.d.ts +2 -2
- package/es/components/pisellInformationEntry/index.d.ts +1 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +5 -5
- package/es/components/pisellLoading/index.d.ts +1 -2
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +1 -0
- package/es/components/pisellMobileDateRangePicker/types.d.ts +4 -3
- package/es/components/pisellModal/index.d.ts +2 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -1
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellSort/index.d.ts +1 -2
- package/es/components/pisellStatisticList/index.d.ts +1 -1
- package/es/components/pisellTags/index.d.ts +1 -1
- package/es/components/pisellText/index.d.ts +2 -2
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/es/components/pisellTooltip/index.d.ts +1 -2
- package/es/components/pisellUpload/index.d.ts +1 -2
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/qrcode/index.d.ts +1 -3
- package/es/components/radio/index.d.ts +1 -4
- package/es/components/section-footers/index.d.ts +1 -3
- package/es/components/segmented/index.d.ts +1 -2
- package/es/components/select-time/index.d.ts +1 -2
- package/es/components/skeleton/index.d.ts +1 -4
- package/es/components/slider/index.d.ts +1 -3
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +1 -4
- package/es/components/upload/index.d.ts +1 -4
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -2
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -2
- package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/es/components/virtual-keyboard/index.d.ts +1 -1
- package/es/index.d.ts +7 -1
- package/es/index.js +6 -1
- package/es/pisell-materials.tw.css +1 -1
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -2
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -2
- package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -2
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +2 -2
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +2 -2
- package/lib/components/PisellCards/index.d.ts +5 -6
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +2 -2
- package/lib/components/PisellLayouts/index.d.ts +2 -2
- package/lib/components/PisellMetrics/index.d.ts +2 -2
- package/lib/components/appVersionControl/index.d.ts +2 -2
- package/lib/components/auto-complete-number/index.d.ts +2 -2
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/batch-editor/index.d.ts +2 -2
- package/lib/components/calendar/index.d.ts +1 -3
- package/lib/components/cardMetricItem/index.d.ts +1 -1
- package/lib/components/cardPro/index.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +1 -3
- package/lib/components/classicLayout/index.d.ts +2 -2
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/customSelect/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -3
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.d.ts +15 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.js +205 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/SortableList.js +68 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/config.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/config.js +64 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/index.d.ts +25 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/index.js +41 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/locales.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/locales.js +191 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/model.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/model.js +81 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/style.less +114 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts +48 -0
- package/lib/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.js +15 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/index.js +32 -29
- package/lib/components/dataSourceComponents/fields/utils.js +2 -0
- package/lib/components/date-picker/index.d.ts +1 -3
- package/lib/components/drag-sort-tree/index.d.ts +2 -2
- package/lib/components/dropdown/index.d.ts +2 -3
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +1 -1
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +1 -1
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +1 -1
- package/lib/components/keyboard/index.d.ts +1 -1
- package/lib/components/list/index.d.ts +2 -2
- package/lib/components/lowCodePage/index.d.ts +2 -3
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +2 -2
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
- package/lib/components/pisellAdjustPrice/index.d.ts +2 -2
- package/lib/components/pisellAlert/index.d.ts +1 -1
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +2 -2
- package/lib/components/pisellCalendar/PisellCalendar.d.ts +2 -2
- package/lib/components/pisellCalendar/PisellCalendar.js +1 -1
- package/lib/components/pisellCard/index.d.ts +2 -2
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/lib/components/pisellCountdown/index.d.ts +1 -1
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +2 -2
- package/lib/components/pisellDatePicker/index.d.ts +1 -3
- package/lib/components/pisellDraggable/index.d.ts +1 -1
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +2 -2
- package/lib/components/pisellExport/PisellExport.d.ts +2 -2
- package/lib/components/pisellFilter/index.d.ts +2 -2
- package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +2 -3
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/lib/components/pisellGantt/PisellGantt.d.ts +2 -2
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
- package/lib/components/pisellGridPro/GridView/index.d.ts +2 -2
- package/lib/components/pisellImport/PisellImport.d.ts +2 -2
- package/lib/components/pisellInformationEntry/index.d.ts +1 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -1
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -1
- package/lib/components/pisellInput/index.d.ts +5 -5
- package/lib/components/pisellLoading/index.d.ts +2 -2
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +1 -0
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +4 -3
- package/lib/components/pisellModal/index.d.ts +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -1
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellSort/index.d.ts +2 -2
- package/lib/components/pisellStatisticList/index.d.ts +1 -1
- package/lib/components/pisellTags/index.d.ts +1 -1
- package/lib/components/pisellText/index.d.ts +2 -2
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/lib/components/pisellTooltip/index.d.ts +2 -2
- package/lib/components/pisellUpload/index.d.ts +2 -2
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/qrcode/index.d.ts +2 -3
- package/lib/components/radio/index.d.ts +1 -3
- package/lib/components/section-footers/index.d.ts +1 -3
- package/lib/components/segmented/index.d.ts +2 -2
- package/lib/components/select-time/index.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +1 -3
- package/lib/components/slider/index.d.ts +2 -3
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +1 -3
- package/lib/components/upload/index.d.ts +1 -3
- package/lib/components/versionSelect/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Number/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/index.d.ts +1 -1
- package/lib/index.d.ts +7 -1
- package/lib/index.js +115 -102
- package/lib/pisell-materials.tw.css +1 -1
- package/lowcode/_utils/identificationMeta.ts +59 -0
- package/lowcode/data-source-form/constants.ts +6 -0
- package/lowcode/data-source-form/utils.ts +20 -2
- package/lowcode/form-item-smart-locker-identification/meta.ts +8 -0
- package/lowcode/form-item-smart-locker-identification/snippets.ts +17 -0
- package/lowcode/form-item-vending-machine-identification/meta.ts +8 -0
- package/lowcode/form-item-vending-machine-identification/snippets.ts +17 -0
- package/package.json +19 -19
- package/lowcode/pisell-brand/meta.ts +0 -363
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const require_locales = require("./locales.js");
|
|
2
|
+
//#region src/components/dataSourceComponents/fields/IdentityRecognition/model.ts
|
|
3
|
+
const createIdentityDefaultValue = (config) => config.methods.map((method) => ({
|
|
4
|
+
id: method.id,
|
|
5
|
+
enabled: method.enabled,
|
|
6
|
+
settings: config.groups.reduce((settings, group) => {
|
|
7
|
+
settings[group.id] = {
|
|
8
|
+
requireVerification: true,
|
|
9
|
+
methods: method.verificationMethods.map(({ id, enabled }) => ({
|
|
10
|
+
id,
|
|
11
|
+
enabled
|
|
12
|
+
}))
|
|
13
|
+
};
|
|
14
|
+
return settings;
|
|
15
|
+
}, {})
|
|
16
|
+
}));
|
|
17
|
+
function validateIdentityRow(row, config, t = require_locales.getIdentityText()) {
|
|
18
|
+
const errors = {};
|
|
19
|
+
const method = config.methods.find((item) => item.id === row.id);
|
|
20
|
+
for (const group of config.groups) {
|
|
21
|
+
var _row$settings;
|
|
22
|
+
const settings = (_row$settings = row.settings) === null || _row$settings === void 0 ? void 0 : _row$settings[group.id];
|
|
23
|
+
if (!settings || typeof settings.requireVerification !== "boolean" || !Array.isArray(settings.methods)) {
|
|
24
|
+
errors[group.id] = t("incomplete");
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
const ids = settings.methods.map((item) => item === null || item === void 0 ? void 0 : item.id);
|
|
28
|
+
if (!method || ids.length !== method.verificationMethods.length || new Set(ids).size !== ids.length || settings.methods.some((item) => !item || typeof item.enabled !== "boolean" || !method.verificationMethods.some((allowed) => allowed.id === item.id))) errors[group.id] = t("invalidMethods");
|
|
29
|
+
else if (settings.requireVerification && !settings.methods.some((item) => item.enabled)) errors[group.id] = t("minimumMethod");
|
|
30
|
+
}
|
|
31
|
+
return errors;
|
|
32
|
+
}
|
|
33
|
+
function validateIdentityValue(value, config, t = require_locales.getIdentityText()) {
|
|
34
|
+
if (!Array.isArray(value) || value.length !== config.methods.length || new Set(value.map((row) => row === null || row === void 0 ? void 0 : row.id)).size !== config.methods.length || value.some((row) => !row || typeof row.enabled !== "boolean" || !config.methods.some((method) => method.id === row.id))) return t("invalidValue");
|
|
35
|
+
for (const row of value) {
|
|
36
|
+
const errors = validateIdentityRow(row, config, t);
|
|
37
|
+
const groupId = Object.keys(errors)[0];
|
|
38
|
+
if (groupId) return `${t(config.methods.find((method) => method.id === row.id).label)} / ${t(config.groups.find((group) => group.id === groupId).title)}: ${errors[groupId]}`;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function createIdentityDraft(row, config) {
|
|
42
|
+
const method = config.methods.find((item) => item.id === row.id);
|
|
43
|
+
const settings = {};
|
|
44
|
+
for (const group of config.groups) {
|
|
45
|
+
var _row$settings2;
|
|
46
|
+
const current = (_row$settings2 = row.settings) === null || _row$settings2 === void 0 ? void 0 : _row$settings2[group.id];
|
|
47
|
+
const existing = Array.isArray(current === null || current === void 0 ? void 0 : current.methods) ? current.methods : [];
|
|
48
|
+
const ordered = method.verificationMethods.slice().sort((a, b) => {
|
|
49
|
+
const index = (id) => {
|
|
50
|
+
const found = existing.findIndex((item) => (item === null || item === void 0 ? void 0 : item.id) === id);
|
|
51
|
+
return found < 0 ? existing.length : found;
|
|
52
|
+
};
|
|
53
|
+
return index(a.id) - index(b.id);
|
|
54
|
+
});
|
|
55
|
+
settings[group.id] = {
|
|
56
|
+
requireVerification: (current === null || current === void 0 ? void 0 : current.requireVerification) !== false,
|
|
57
|
+
methods: ordered.map(({ id }) => {
|
|
58
|
+
var _existing$find;
|
|
59
|
+
return {
|
|
60
|
+
id,
|
|
61
|
+
enabled: ((_existing$find = existing.find((item) => (item === null || item === void 0 ? void 0 : item.id) === id)) === null || _existing$find === void 0 ? void 0 : _existing$find.enabled) === true
|
|
62
|
+
};
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
id: row.id,
|
|
68
|
+
enabled: row.enabled === true,
|
|
69
|
+
settings
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const canDisableVerification = (settings, id) => {
|
|
73
|
+
var _settings$methods$fin;
|
|
74
|
+
return !settings.requireVerification || !((_settings$methods$fin = settings.methods.find((method) => method.id === id)) === null || _settings$methods$fin === void 0 ? void 0 : _settings$methods$fin.enabled) || settings.methods.filter((method) => method.enabled).length > 1;
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
exports.canDisableVerification = canDisableVerification;
|
|
78
|
+
exports.createIdentityDefaultValue = createIdentityDefaultValue;
|
|
79
|
+
exports.createIdentityDraft = createIdentityDraft;
|
|
80
|
+
exports.validateIdentityRow = validateIdentityRow;
|
|
81
|
+
exports.validateIdentityValue = validateIdentityValue;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.identity-recognition,
|
|
2
|
+
.identity-recognition-drawer {
|
|
3
|
+
color: var(--identity-text);
|
|
4
|
+
font-family: var(--identity-font-family);
|
|
5
|
+
font-size: var(--identity-font-size);
|
|
6
|
+
|
|
7
|
+
.identity-recognition__list {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
}
|
|
12
|
+
.identity-recognition__row {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 12px;
|
|
17
|
+
min-height: 56px;
|
|
18
|
+
padding: 12px 16px;
|
|
19
|
+
border: 1px solid var(--identity-border);
|
|
20
|
+
border-radius: var(--identity-radius);
|
|
21
|
+
background: var(--identity-background);
|
|
22
|
+
}
|
|
23
|
+
.identity-recognition__label {
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
}
|
|
29
|
+
.identity-recognition__handle {
|
|
30
|
+
flex: none;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: 24px;
|
|
35
|
+
height: 28px;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border: 0;
|
|
38
|
+
border-radius: 4px;
|
|
39
|
+
color: var(--identity-muted);
|
|
40
|
+
background: transparent;
|
|
41
|
+
cursor: grab;
|
|
42
|
+
touch-action: none;
|
|
43
|
+
&:hover {
|
|
44
|
+
background: var(--identity-hover);
|
|
45
|
+
}
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
outline: 2px solid var(--identity-primary);
|
|
48
|
+
}
|
|
49
|
+
&:disabled {
|
|
50
|
+
cursor: default;
|
|
51
|
+
opacity: 0.45;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.identity-recognition-drawer {
|
|
56
|
+
.identity-recognition__drawer-heading,
|
|
57
|
+
.identity-recognition__group-heading,
|
|
58
|
+
.identity-recognition__field-heading {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 4px;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
white-space: normal;
|
|
64
|
+
}
|
|
65
|
+
.identity-recognition__groups {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: 16px;
|
|
69
|
+
}
|
|
70
|
+
.identity-recognition__section {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 24px;
|
|
74
|
+
}
|
|
75
|
+
.identity-recognition__methods {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
gap: 12px;
|
|
79
|
+
}
|
|
80
|
+
.identity-recognition__verification {
|
|
81
|
+
display: flex;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
gap: 16px;
|
|
85
|
+
> :last-child {
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
margin-top: 2px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.identity-recognition__footer {
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
}
|
|
95
|
+
.identity-recognition__error {
|
|
96
|
+
color: var(--identity-error);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@media (max-width: 600px) {
|
|
100
|
+
.identity-recognition,
|
|
101
|
+
.identity-recognition-drawer {
|
|
102
|
+
.identity-recognition__row {
|
|
103
|
+
gap: 8px;
|
|
104
|
+
padding: 12px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Compact confirmation layout; retain PisellModal's equal-width theme buttons.
|
|
110
|
+
.pisell-lowcode-modal-root .identity-recognition-confirm.pisell-pc-modal {
|
|
111
|
+
.pisell-lowcode-modal-content {
|
|
112
|
+
min-height: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ModeType } from "../../dataSourceForm/type.js";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts
|
|
5
|
+
type IdentityMethodId = 'scan' | 'phone_number' | 'email';
|
|
6
|
+
type VerificationMethodId = 'phone_last4' | 'phone_full' | 'account_password' | 'sms_code' | 'email_code';
|
|
7
|
+
interface VerificationValue {
|
|
8
|
+
id: VerificationMethodId;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface VerificationSettings {
|
|
12
|
+
requireVerification: boolean;
|
|
13
|
+
methods: VerificationValue[];
|
|
14
|
+
}
|
|
15
|
+
interface IdentityRowValue {
|
|
16
|
+
id: IdentityMethodId;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
settings: Record<string, VerificationSettings>;
|
|
19
|
+
}
|
|
20
|
+
type IdentityValue = IdentityRowValue[];
|
|
21
|
+
interface IdentityConfig {
|
|
22
|
+
groups: Array<{
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}>;
|
|
26
|
+
methods: Array<{
|
|
27
|
+
id: IdentityMethodId;
|
|
28
|
+
label: string;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
verificationMethods: Array<{
|
|
31
|
+
id: VerificationMethodId;
|
|
32
|
+
label: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
interface IdentityRecognitionProps {
|
|
38
|
+
config: IdentityConfig;
|
|
39
|
+
value?: IdentityValue;
|
|
40
|
+
onChange?: (value: IdentityValue) => void;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
readOnly?: boolean;
|
|
43
|
+
renderMode?: ModeType;
|
|
44
|
+
className?: string;
|
|
45
|
+
style?: CSSProperties;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { IdentityConfig, IdentityMethodId, IdentityRecognitionProps, IdentityRowValue, IdentityValue, VerificationMethodId, VerificationSettings, VerificationValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
require("../../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_context = require("../../../pisell-config-provider/context.js");
|
|
3
|
+
const require_useEngineContext = require("../../../../hooks/useEngineContext.js");
|
|
4
|
+
const require_getHostLocale = require("../../../../utils/getHostLocale.js");
|
|
5
|
+
const require_locales = require("./locales.js");
|
|
6
|
+
let react = require("react");
|
|
7
|
+
//#region src/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.ts
|
|
8
|
+
function useIdentityText() {
|
|
9
|
+
var _context$appHelper;
|
|
10
|
+
const context = require_useEngineContext.default();
|
|
11
|
+
const { locale } = (0, react.useContext)(require_context.default);
|
|
12
|
+
return require_locales.getIdentityText(locale || require_getHostLocale.getHostLocale((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.storage));
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.default = useIdentityText;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
3
|
import { RecordListWrapperProps } from "./type.js";
|
|
3
|
-
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts
|
|
6
6
|
declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps & WithModeProps & WithFormItemProps & {
|
|
@@ -12,6 +12,6 @@ declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps &
|
|
|
12
12
|
} & {
|
|
13
13
|
dataSource?: any;
|
|
14
14
|
extraParams?: Record<string, any> | undefined;
|
|
15
|
-
}) =>
|
|
15
|
+
}) => JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { RecordListWrapperWithDataSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
import * as _$antd from "antd";
|
|
4
4
|
import * as _$antd_es_select0 from "antd/es/select";
|
|
5
5
|
|
|
@@ -13,6 +13,6 @@ declare const SelectWithDataSource: (props: _$antd.SelectProps<any, _$antd_es_se
|
|
|
13
13
|
} & {
|
|
14
14
|
dataSource?: any;
|
|
15
15
|
extraParams?: Record<string, any> | undefined;
|
|
16
|
-
}) =>
|
|
16
|
+
}) => JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SelectWithDataSource };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
3
3
|
import { TabsProps } from "./type.js";
|
|
4
|
-
import * as _$react from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/dataSourceComponents/fields/Tabs/index.d.ts
|
|
7
6
|
/** 包装 DataSource 层(提供数据源上下文) */
|
|
@@ -14,6 +13,6 @@ declare const FormItemTabs: (props: TabsProps & WithModeProps & WithFormItemProp
|
|
|
14
13
|
} & {
|
|
15
14
|
dataSource?: any;
|
|
16
15
|
extraParams?: Record<string, any> | undefined;
|
|
17
|
-
}) =>
|
|
16
|
+
}) => JSX.Element;
|
|
18
17
|
//#endregion
|
|
19
18
|
export { FormItemTabs };
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
const require_index = require("./Input/index.js");
|
|
2
|
-
const require_index$1 = require("./
|
|
3
|
-
const require_index$2 = require("./
|
|
4
|
-
const require_index$3 = require("./
|
|
5
|
-
const require_index$4 = require("./
|
|
6
|
-
const require_index$5 = require("./
|
|
7
|
-
const require_index$6 = require("./
|
|
8
|
-
const require_index$7 = require("./
|
|
9
|
-
const require_index$8 = require("./
|
|
10
|
-
const require_index$9 = require("./
|
|
11
|
-
const require_index$10 = require("./
|
|
12
|
-
const require_index$11 = require("./
|
|
13
|
-
const require_index$12 = require("./
|
|
14
|
-
const require_index$13 = require("./
|
|
2
|
+
const require_index$1 = require("./IdentityRecognition/index.js");
|
|
3
|
+
const require_index$2 = require("./Checkbox/index.js");
|
|
4
|
+
const require_index$3 = require("./ColorPicker/index.js");
|
|
5
|
+
const require_index$4 = require("./DatePicker/index.js");
|
|
6
|
+
const require_index$5 = require("./Radio/index.js");
|
|
7
|
+
const require_index$6 = require("./Select/index.js");
|
|
8
|
+
const require_index$7 = require("./InputNumber/index.js");
|
|
9
|
+
const require_index$8 = require("./TimePicker/index.js");
|
|
10
|
+
const require_index$9 = require("./DateRangePicker/index.js");
|
|
11
|
+
const require_index$10 = require("./Upload/index.js");
|
|
12
|
+
const require_index$11 = require("./Translation/index.js");
|
|
13
|
+
const require_index$12 = require("./IconSelect/index.js");
|
|
14
|
+
const require_index$13 = require("./RecordListWrapper/index.js");
|
|
15
|
+
const require_index$14 = require("./Tabs/index.js");
|
|
15
16
|
//#region src/components/dataSourceComponents/fields/index.ts
|
|
16
17
|
const formFieldMap = {
|
|
17
|
-
FormItemCheckbox: require_index$
|
|
18
|
-
FormItemColorPicker: require_index$
|
|
19
|
-
FormItemDatePicker: require_index$
|
|
18
|
+
FormItemCheckbox: require_index$2.default,
|
|
19
|
+
FormItemColorPicker: require_index$3.default,
|
|
20
|
+
FormItemDatePicker: require_index$4.default,
|
|
20
21
|
FormItemInput: require_index.default,
|
|
21
|
-
FormItemRadio: require_index$
|
|
22
|
-
FormItemSelect: require_index$
|
|
23
|
-
FormItemInputNumber: require_index$
|
|
24
|
-
FormItemPercent: require_index$
|
|
25
|
-
FormItemTimePicker: require_index$
|
|
22
|
+
FormItemRadio: require_index$5.default,
|
|
23
|
+
FormItemSelect: require_index$6.default,
|
|
24
|
+
FormItemInputNumber: require_index$7.default,
|
|
25
|
+
FormItemPercent: require_index$7.default,
|
|
26
|
+
FormItemTimePicker: require_index$8.default,
|
|
26
27
|
"FormItemInput.JSON": require_index.default.JSON,
|
|
27
28
|
"FormItemInput.Phone": require_index.default.Phone,
|
|
28
29
|
"FormItemInput.Mobile": require_index.default.Mobile,
|
|
29
30
|
"FormItemInput.Email": require_index.default.Email,
|
|
30
31
|
"FormItemInput.URL": require_index.default.URL,
|
|
31
32
|
"FormItemInput.Password": require_index.default.Password,
|
|
32
|
-
"FormItemRadio.Group": require_index$
|
|
33
|
-
"FormItemCheckbox.Group": require_index$
|
|
34
|
-
FormItemDateRangePicker: require_index$
|
|
35
|
-
FormItemUpload: require_index$
|
|
36
|
-
FormItemTranslation: require_index$
|
|
37
|
-
FormItemIconSelect: require_index$
|
|
38
|
-
FormItemRecordListWrapper: require_index$
|
|
39
|
-
FormItemTabs: require_index$
|
|
33
|
+
"FormItemRadio.Group": require_index$5.default.Group,
|
|
34
|
+
"FormItemCheckbox.Group": require_index$2.default.Group,
|
|
35
|
+
FormItemDateRangePicker: require_index$9.default,
|
|
36
|
+
FormItemUpload: require_index$10.default,
|
|
37
|
+
FormItemTranslation: require_index$11.default,
|
|
38
|
+
FormItemIconSelect: require_index$12.default,
|
|
39
|
+
FormItemRecordListWrapper: require_index$13.default,
|
|
40
|
+
FormItemTabs: require_index$14.default,
|
|
41
|
+
FormItemSmartLockerIdentification: require_index$1.SmartLockerIdentification,
|
|
42
|
+
FormItemVendingMachineIdentification: require_index$1.VendingMachineIdentification
|
|
40
43
|
};
|
|
41
44
|
const getFieldComponent = (fieldComponent) => {
|
|
42
45
|
return formFieldMap[fieldComponent];
|
|
@@ -59,6 +59,8 @@ const formFieldFilterFuncMap = {
|
|
|
59
59
|
"Checkbox.Group": (value) => {
|
|
60
60
|
return { $anyOf: Array.isArray(value) ? value : [value] };
|
|
61
61
|
},
|
|
62
|
+
SmartLockerIdentification: () => null,
|
|
63
|
+
VendingMachineIdentification: () => null,
|
|
62
64
|
RecordListWrapper: () => {
|
|
63
65
|
return null;
|
|
64
66
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as _$react from "react";
|
|
3
|
-
|
|
4
2
|
//#region src/components/date-picker/index.d.ts
|
|
5
|
-
declare const DatePicker: (props: any) =>
|
|
3
|
+
declare const DatePicker: (props: any) => JSX.Element;
|
|
6
4
|
//#endregion
|
|
7
5
|
export { DatePicker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SortType } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/drag-sort-tree/index.d.ts
|
|
5
|
-
declare const DragSortTree: (props: SortType) =>
|
|
5
|
+
declare const DragSortTree: (props: SortType) => JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DragSortTree };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FilterProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/filter/index.d.ts
|
|
5
|
-
declare const Filter: (props: FilterProps) =>
|
|
5
|
+
declare const Filter: (props: FilterProps) => JSX.Element | null;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Filter };
|
|
@@ -18,6 +18,6 @@ interface KeyboardProps {
|
|
|
18
18
|
rightItems?: Item[];
|
|
19
19
|
keydown?: boolean;
|
|
20
20
|
}
|
|
21
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) =>
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { _default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as _$antd_es_list_Item0 from "antd/es/list/Item";
|
|
3
3
|
//#region src/components/list/index.d.ts
|
|
4
4
|
declare const List: {
|
|
5
|
-
(props: any):
|
|
5
|
+
(props: any): JSX.Element;
|
|
6
6
|
Item: _$antd_es_list_Item0.ListItemTypeProps;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
//#region src/components/lowCodePage/index.d.ts
|
|
4
3
|
type LowCodePageProps = {
|
|
5
4
|
id: number;
|
|
6
5
|
};
|
|
7
|
-
declare const LowCodePage: (props: LowCodePageProps) =>
|
|
6
|
+
declare const LowCodePage: (props: LowCodePageProps) => JSX.Element;
|
|
8
7
|
//#endregion
|
|
9
8
|
export { LowCodePage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ConfigProviderProps } from "../config-provider/index.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/page/index.d.ts
|
|
5
5
|
interface PageProps extends ConfigProviderProps {
|
|
@@ -7,6 +7,6 @@ interface PageProps extends ConfigProviderProps {
|
|
|
7
7
|
disabledHistoryListener?: boolean;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
declare const Page: (props: PageProps) =>
|
|
10
|
+
declare const Page: (props: PageProps) => JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Page };
|
|
@@ -10,6 +10,6 @@ interface PageHeaderProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
}
|
|
13
|
-
declare const PageHeader: (props: PageHeaderProps) =>
|
|
13
|
+
declare const PageHeader: (props: PageHeaderProps) => JSX.Element | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { PageHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellActionPanelProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/pisellActionPanel/PisellActionPanel.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* PisellActionPanel 操作面板
|
|
@@ -19,6 +19,6 @@ declare function PisellActionPanel({
|
|
|
19
19
|
itemGap,
|
|
20
20
|
className,
|
|
21
21
|
style
|
|
22
|
-
}: PisellActionPanelProps):
|
|
22
|
+
}: PisellActionPanelProps): JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { PisellActionPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InputNumberProps } from "antd/es/input-number";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts
|
|
@@ -8,6 +8,6 @@ interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onCh
|
|
|
8
8
|
defaultValue?: number;
|
|
9
9
|
onChange?: (val: number) => void;
|
|
10
10
|
}
|
|
11
|
-
declare const PisellAdjustPriceInputNumber: (props: PisellAdjustPriceInputNumberProps) =>
|
|
11
|
+
declare const PisellAdjustPriceInputNumber: (props: PisellAdjustPriceInputNumberProps) => JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { PisellAdjustPriceInputNumber };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellAdjustPriceProps } from "./type.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/pisellAdjustPrice/index.d.ts
|
|
4
|
-
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) =>
|
|
4
|
+
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { PisellAdjustPrice };
|
|
@@ -18,6 +18,6 @@ interface PisellAlertProps extends AlertProps {
|
|
|
18
18
|
* @param props
|
|
19
19
|
* @constructor
|
|
20
20
|
*/
|
|
21
|
-
declare const PisellAlert: (props: PisellAlertProps) => false |
|
|
21
|
+
declare const PisellAlert: (props: PisellAlertProps) => false | JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellAlert };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellBaseCardProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/pisellBaseCard/PisellBaseCard.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* PisellBaseCard 基础卡片容器
|
|
@@ -15,6 +15,6 @@ declare function PisellBaseCard({
|
|
|
15
15
|
clickable,
|
|
16
16
|
disabled,
|
|
17
17
|
onClick
|
|
18
|
-
}: PisellBaseCardProps):
|
|
18
|
+
}: PisellBaseCardProps): JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PisellBaseCard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PisellCalendarProps } from "./types.js";
|
|
2
|
-
import React from "react";
|
|
3
3
|
//#region src/components/pisellCalendar/PisellCalendar.d.ts
|
|
4
|
-
declare function PisellCalendar<T = unknown>(props: PisellCalendarProps<T>):
|
|
4
|
+
declare function PisellCalendar<T = unknown>(props: PisellCalendarProps<T>): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { PisellCalendar };
|
|
@@ -2,8 +2,8 @@ const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
|
2
2
|
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
3
3
|
const require_useEngineContext = require("../../hooks/useEngineContext.js");
|
|
4
4
|
const require_index = require("../calendar/index.js");
|
|
5
|
-
const require_locales = require("./locales.js");
|
|
6
5
|
const require_getHostLocale = require("../../utils/getHostLocale.js");
|
|
6
|
+
const require_locales = require("./locales.js");
|
|
7
7
|
const require_dateOnly = require("../../utils/dateOnly.js");
|
|
8
8
|
const require_calendarPanelBridge = require("./calendarPanelBridge.js");
|
|
9
9
|
const require_calendarEventProjection = require("./calendarEventProjection.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CardProps } from "antd";
|
|
3
3
|
//#region src/components/pisellCard/index.d.ts
|
|
4
4
|
interface PisellCardProps extends CardProps {
|
|
@@ -16,6 +16,6 @@ interface PisellCardProps extends CardProps {
|
|
|
16
16
|
* @param props
|
|
17
17
|
* @constructor
|
|
18
18
|
*/
|
|
19
|
-
declare const PisellCard: (props: PisellCardProps) =>
|
|
19
|
+
declare const PisellCard: (props: PisellCardProps) => JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PisellCard };
|
|
@@ -36,6 +36,6 @@ interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
36
36
|
* @Author: zhiwei.Wang
|
|
37
37
|
* @Date: 2024-08-16 10:34
|
|
38
38
|
*/
|
|
39
|
-
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) =>
|
|
39
|
+
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { PisellCheckboxGroup, PisellCheckboxGroupProps };
|
|
@@ -16,6 +16,6 @@ type PisellCountdownProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
16
16
|
interval?: number; /** 格式化倒计时展示 参考 dayjs */
|
|
17
17
|
format?: string;
|
|
18
18
|
};
|
|
19
|
-
declare const PisellCountdown: (props: PisellCountdownProps) =>
|
|
19
|
+
declare const PisellCountdown: (props: PisellCountdownProps) => JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PisellCountdown };
|