@pisell/materials 6.2.36 → 6.3.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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +164 -148
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +39 -25
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +39 -25
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -10
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellCardList/index.js +3 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
- package/es/components/pisellCheckboxGroup/index.js +15 -1
- package/es/components/pisellGoodPassCard/index.d.ts +0 -1
- package/es/components/pisellGoodPassCard/index.js +5 -17
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellToast/index.js +0 -3
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.js +1 -14
- package/es/components/productCard/components/Action/index.less +0 -3
- package/es/components/productCard/components/Header/index.js +8 -23
- package/es/components/productCard/components/Header/index.less +1 -16
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
- package/es/components/productCard/index.d.ts +1 -3
- package/es/components/productCard/index.js +2 -5
- package/es/components/productCard/index.less +0 -6
- package/es/components/productCard/locales.js +0 -3
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/index.d.ts +0 -11
- package/es/components/virtual-keyboard/index.js +3 -88
- package/es/components/virtual-keyboard/index.less +1 -33
- package/es/components/walletCard/Guide/index.js +12 -1
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -10
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellCardList/index.js +3 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
- package/lib/components/pisellCheckboxGroup/index.js +16 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
- package/lib/components/pisellGoodPassCard/index.js +4 -31
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellToast/index.js +0 -3
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.js +0 -9
- package/lib/components/productCard/components/Action/index.less +0 -3
- package/lib/components/productCard/components/Header/index.js +11 -21
- package/lib/components/productCard/components/Header/index.less +1 -16
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +0 -3
- package/lib/components/productCard/index.d.ts +1 -3
- package/lib/components/productCard/index.js +2 -6
- package/lib/components/productCard/index.less +0 -6
- package/lib/components/productCard/locales.js +3 -12
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/index.d.ts +0 -11
- package/lib/components/virtual-keyboard/index.js +2 -60
- package/lib/components/virtual-keyboard/index.less +1 -33
- package/lib/components/walletCard/Guide/index.js +11 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
- package/lowcode/virtual-keyboard/meta.ts +0 -131
- package/package.json +4 -6
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -76
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -82
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -56
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/Note/index.js +0 -29
- package/es/components/productCard/cartSkuCard/components/Note/index.less +0 -27
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -93
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
- package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
- package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -39
- package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -19
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -57
- package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -44
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -34
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -54
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/index.js +0 -203
- package/es/components/productCard/cartSkuCard/index.less +0 -33
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/cartSkuCard/locales.js +0 -30
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/walletCard/Guide/index.d.ts +0 -3
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +0 -80
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +0 -75
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +0 -71
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +0 -31
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +0 -77
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/Note/index.js +0 -56
- package/lib/components/productCard/cartSkuCard/components/Note/index.less +0 -27
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -82
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -117
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -71
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -19
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -77
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -66
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -34
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -68
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -38
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/index.js +0 -239
- package/lib/components/productCard/cartSkuCard/index.less +0 -33
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/cartSkuCard/locales.js +0 -61
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/walletCard/Guide/index.d.ts +0 -3
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_antd = require("antd");
|
|
39
|
+
var import_ahooks = require("ahooks");
|
|
39
40
|
var import_utils = require("@pisell/utils");
|
|
40
41
|
var import_utils2 = require("@pisell/utils");
|
|
41
42
|
var import_index = require("./index.less");
|
|
@@ -62,6 +63,7 @@ var PisellCheckboxGroup = (props) => {
|
|
|
62
63
|
iconPosition = "left",
|
|
63
64
|
optionClassName,
|
|
64
65
|
optionActiveClassName,
|
|
66
|
+
onChangeDebounce,
|
|
65
67
|
...rest
|
|
66
68
|
} = props;
|
|
67
69
|
const [_value, set_value] = (0, import_react2.useState)([]);
|
|
@@ -112,6 +114,16 @@ var PisellCheckboxGroup = (props) => {
|
|
|
112
114
|
const _onChange = (val, item) => {
|
|
113
115
|
onChange == null ? void 0 : onChange(mode === "single" ? val[0] : val, item);
|
|
114
116
|
};
|
|
117
|
+
const { run } = (0, import_ahooks.useDebounceFn)(
|
|
118
|
+
(key, item) => {
|
|
119
|
+
handleSelectItem(key, item);
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
wait: 400,
|
|
123
|
+
leading: true,
|
|
124
|
+
trailing: false
|
|
125
|
+
}
|
|
126
|
+
);
|
|
115
127
|
const handleSelectItem = (key, item) => {
|
|
116
128
|
let newVal = [key];
|
|
117
129
|
if (mode === "multiple") {
|
|
@@ -146,6 +158,10 @@ var PisellCheckboxGroup = (props) => {
|
|
|
146
158
|
style: rowStyle,
|
|
147
159
|
onClick: (e) => {
|
|
148
160
|
if (option.disabled) return;
|
|
161
|
+
if (onChangeDebounce) {
|
|
162
|
+
run(option[rowKey], option);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
149
165
|
handleSelectItem(option[rowKey], option);
|
|
150
166
|
},
|
|
151
167
|
leftContent: iconPosition === "left" && /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -44,7 +44,6 @@ export interface PisellGoodPassCardProps {
|
|
|
44
44
|
style: React.CSSProperties;
|
|
45
45
|
/**快捷展示排序 */
|
|
46
46
|
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
isInModal: boolean;
|
|
48
47
|
}
|
|
49
48
|
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
50
49
|
export default index;
|
|
@@ -86,18 +86,7 @@ var index = (props) => {
|
|
|
86
86
|
onCancel: () => setShowModal(false),
|
|
87
87
|
className: `${clsPrefix}-all-items-modal`
|
|
88
88
|
},
|
|
89
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
90
|
-
"div",
|
|
91
|
-
{
|
|
92
|
-
style: {
|
|
93
|
-
padding: "10px 0",
|
|
94
|
-
display: "flex",
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
gap: 12
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
dataSource.map(renderVoucherItem)
|
|
100
|
-
)
|
|
89
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "10px 0", display: "flex", flexDirection: "column", gap: 12 } }, dataSource.map(renderVoucherItem))
|
|
101
90
|
);
|
|
102
91
|
};
|
|
103
92
|
const renderMixedMode = () => {
|
|
@@ -105,23 +94,7 @@ var index = (props) => {
|
|
|
105
94
|
const list = sortList.length > 3 ? sortList.slice(0, 3) : sortList;
|
|
106
95
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-header` }, /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell2.text.goodpass.product-vouchers")), /* @__PURE__ */ import_react.default.createElement(import_antd.Typography.Text, { underline: true, onClick: () => setShowModal(true) }, (0, import_locales.getText)("pisell2.text.goodpass.view-more"))), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: 4 } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-body` }, list.map(renderVoucherItem)));
|
|
107
96
|
};
|
|
108
|
-
|
|
109
|
-
const sortList = (mixedSort == null ? void 0 : mixedSort(dataSource)) || dataSource;
|
|
110
|
-
if (sortList.length === 0) return null;
|
|
111
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
112
|
-
"div",
|
|
113
|
-
{
|
|
114
|
-
style: {
|
|
115
|
-
padding: "10px 0",
|
|
116
|
-
display: "flex",
|
|
117
|
-
flexDirection: "column",
|
|
118
|
-
gap: 12
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
sortList.map(renderVoucherItem)
|
|
122
|
-
);
|
|
123
|
-
};
|
|
124
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !props.isInModal ? renderModal() : null, dataSource.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderModal(), /* @__PURE__ */ import_react.default.createElement(
|
|
125
98
|
import__.PisellCard,
|
|
126
99
|
{
|
|
127
100
|
padding: 8,
|
|
@@ -132,7 +105,7 @@ var index = (props) => {
|
|
|
132
105
|
},
|
|
133
106
|
className: clsPrefix
|
|
134
107
|
},
|
|
135
|
-
|
|
136
|
-
)
|
|
108
|
+
renderMixedMode()
|
|
109
|
+
));
|
|
137
110
|
};
|
|
138
111
|
var pisellGoodPassCard_default = index;
|
|
@@ -40,9 +40,6 @@ var import_index = require("./index.less");
|
|
|
40
40
|
var PisellToast = (props) => {
|
|
41
41
|
const { content, duration, showAction, actionText, onClose } = props;
|
|
42
42
|
const key = (0, import_utils.getUniqueId)();
|
|
43
|
-
if (!import_pisellMessage.message) {
|
|
44
|
-
return alert(content);
|
|
45
|
-
}
|
|
46
43
|
import_pisellMessage.message.open({
|
|
47
44
|
key,
|
|
48
45
|
content: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-toast-content" }, /* @__PURE__ */ import_react.default.createElement("span", null, content), showAction && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-toast-action" }, actionText), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -35,17 +35,9 @@ module.exports = __toCommonJS(Action_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_classnames = __toESM(require("classnames"));
|
|
37
37
|
var import_antd = require("antd");
|
|
38
|
-
var import_iconfont = __toESM(require("../../../iconfont"));
|
|
39
38
|
var import_index = require("./index.less");
|
|
40
39
|
var prefix = "pisell-lowcode-";
|
|
41
40
|
var Action = ({ item, onAction }) => {
|
|
42
|
-
const renderIcon = () => {
|
|
43
|
-
const { actionIcon } = item;
|
|
44
|
-
if (actionIcon && typeof actionIcon === "string") {
|
|
45
|
-
return /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: actionIcon, style: { fontSize: 20 } });
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
41
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${prefix}product-actions`) }, /* @__PURE__ */ import_react.default.createElement(
|
|
50
42
|
import_antd.Button,
|
|
51
43
|
{
|
|
@@ -57,7 +49,6 @@ var Action = ({ item, onAction }) => {
|
|
|
57
49
|
onAction();
|
|
58
50
|
}
|
|
59
51
|
},
|
|
60
|
-
renderIcon(),
|
|
61
52
|
item.actionText
|
|
62
53
|
));
|
|
63
54
|
};
|
|
@@ -44,7 +44,7 @@ var Header = (props) => {
|
|
|
44
44
|
const {
|
|
45
45
|
isShowDelete,
|
|
46
46
|
item,
|
|
47
|
-
|
|
47
|
+
showImage,
|
|
48
48
|
onDelete,
|
|
49
49
|
disabledEdit,
|
|
50
50
|
onEditProduct,
|
|
@@ -59,33 +59,17 @@ var Header = (props) => {
|
|
|
59
59
|
name,
|
|
60
60
|
price,
|
|
61
61
|
symbol,
|
|
62
|
-
disabled
|
|
63
|
-
relation_products,
|
|
64
|
-
num = 1
|
|
62
|
+
disabled
|
|
65
63
|
} = item;
|
|
66
64
|
const showPrice = (0, import_react.useMemo)(() => {
|
|
67
|
-
return (bundle == null ? void 0 : bundle.length) > 0 || (options == null ? void 0 : options.length) > 0
|
|
68
|
-
}, [bundle, options
|
|
65
|
+
return (bundle == null ? void 0 : bundle.length) > 0 || (options == null ? void 0 : options.length) > 0;
|
|
66
|
+
}, [bundle, options]);
|
|
69
67
|
const headerCenterStyle = (0, import_react.useMemo)(() => {
|
|
70
68
|
return (options == null ? void 0 : options.length) > 0 || product_option_string;
|
|
71
69
|
}, [options, product_option_string]);
|
|
72
70
|
const showDelete = (0, import_react.useMemo)(() => {
|
|
73
71
|
return isShowDelete && !disabledEdit && !disabled;
|
|
74
72
|
}, [isShowDelete, disabledEdit, disabled]);
|
|
75
|
-
const renderImage = () => {
|
|
76
|
-
if (!isShowImage) return null;
|
|
77
|
-
if (image) {
|
|
78
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
79
|
-
"img",
|
|
80
|
-
{
|
|
81
|
-
src: import_utils.image.ali(image, 64),
|
|
82
|
-
className: `${prefix}product-header-cover`
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
const displayText = name ? name.slice(0, 2) : "";
|
|
87
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-header-cover-text` }, displayText);
|
|
88
|
-
};
|
|
89
73
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
90
74
|
"div",
|
|
91
75
|
{
|
|
@@ -95,7 +79,13 @@ var Header = (props) => {
|
|
|
95
79
|
)
|
|
96
80
|
},
|
|
97
81
|
showDelete ? /* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, { onDelete }) : null,
|
|
98
|
-
|
|
82
|
+
showImage ? /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
"img",
|
|
84
|
+
{
|
|
85
|
+
src: import_utils.image.ali(image, 64),
|
|
86
|
+
className: `${prefix}product-header-cover`
|
|
87
|
+
}
|
|
88
|
+
) : null,
|
|
99
89
|
id ? /* @__PURE__ */ import_react.default.createElement(
|
|
100
90
|
"div",
|
|
101
91
|
{
|
|
@@ -19,21 +19,6 @@
|
|
|
19
19
|
border-radius: 8px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
&-product-header-cover-text {
|
|
23
|
-
width: 64px;
|
|
24
|
-
height: 64px;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
background-color: #dedede;
|
|
28
|
-
color: #7e7e7e;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
font-size: 22px;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
line-height: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
22
|
&-product-right-wrap {
|
|
38
23
|
display: flex;
|
|
39
24
|
flex-direction: column;
|
|
@@ -69,4 +54,4 @@
|
|
|
69
54
|
font-weight: 400;
|
|
70
55
|
line-height: 20px;
|
|
71
56
|
}
|
|
72
|
-
}
|
|
57
|
+
}
|
|
@@ -44,10 +44,10 @@ var Sales = ({ item, isShowNote }) => {
|
|
|
44
44
|
return {
|
|
45
45
|
...p,
|
|
46
46
|
title: p == null ? void 0 : p.product_title,
|
|
47
|
-
price: p == null ? void 0 : p.
|
|
47
|
+
price: p == null ? void 0 : p.payment_price,
|
|
48
48
|
symbol: item.symbol,
|
|
49
49
|
num: p == null ? void 0 : p.product_quantity,
|
|
50
|
-
total: p == null ? void 0 : p.
|
|
50
|
+
total: p == null ? void 0 : p.payment_price
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
return (other_products == null ? void 0 : other_products.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-sales-title` }, import_utils2.locales.getText("pisell2.product.card.sales")), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -154,7 +154,7 @@ var SelectHolderModal = (props) => {
|
|
|
154
154
|
import_utils.locales.getText(
|
|
155
155
|
"pisell2.product.card.add.holder.modal.cancel"
|
|
156
156
|
)
|
|
157
|
-
)), /* @__PURE__ */ import_react.default.createElement("div",
|
|
157
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
158
158
|
import_antd.Button,
|
|
159
159
|
{
|
|
160
160
|
size: "large",
|
|
@@ -51,7 +51,6 @@ var import_status = require("./status");
|
|
|
51
51
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
52
52
|
var import_Warning = __toESM(require("./components/Warning"));
|
|
53
53
|
var import_index = require("./index.less");
|
|
54
|
-
var import_cartSkuCard = __toESM(require("./cartSkuCard"));
|
|
55
54
|
var ProductCard = (props) => {
|
|
56
55
|
var _a, _b;
|
|
57
56
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -64,7 +63,6 @@ var ProductCard = (props) => {
|
|
|
64
63
|
isShowDelete = import_status.defaultValue.isShowDelete,
|
|
65
64
|
isShowPackageNote = import_status.defaultValue.isShowPackageNote,
|
|
66
65
|
isShowEditProduct = import_status.defaultValue.isShowEditProduct,
|
|
67
|
-
scenario,
|
|
68
66
|
onEditProduct,
|
|
69
67
|
onAction,
|
|
70
68
|
onDelete,
|
|
@@ -108,9 +106,8 @@ var ProductCard = (props) => {
|
|
|
108
106
|
import_cardPro.default,
|
|
109
107
|
{
|
|
110
108
|
className: (0, import_classnames.default)("pisell-lowcode-product-card", {
|
|
111
|
-
["pisell-lowcode-product-card-image"]: !showImage
|
|
112
|
-
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct
|
|
113
|
-
["pisell-lowcode-product-card-image-booking2"]: scenario === "booking2"
|
|
109
|
+
["pisell-lowcode-product-card-image"]: !showImage,
|
|
110
|
+
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct
|
|
114
111
|
}),
|
|
115
112
|
key: _id
|
|
116
113
|
},
|
|
@@ -200,5 +197,4 @@ var ProductCard = (props) => {
|
|
|
200
197
|
)
|
|
201
198
|
);
|
|
202
199
|
};
|
|
203
|
-
ProductCard.V2 = import_cartSkuCard.default;
|
|
204
200
|
var productCard_default = ProductCard;
|
|
@@ -42,10 +42,7 @@ var locales_default = {
|
|
|
42
42
|
"pisell2.product.card.add.holder.placeholder": (val) => `Please select ${val || ""}`,
|
|
43
43
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `Please Select ${num} ${val || ""}`,
|
|
44
44
|
"pisell2.product.card.add.holder.modal.title.1": `Please Select`,
|
|
45
|
-
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
46
|
-
if (hour <= 0 && minute <= 0) return `${0}min`;
|
|
47
|
-
return `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`;
|
|
48
|
-
},
|
|
45
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
|
|
49
46
|
"pisell2.product.card.sales": "Sales",
|
|
50
47
|
"pisell2.product.card.add.holder.modal.cancel": "Cancel",
|
|
51
48
|
"pisell2.product.card.add.holder.modal.clear": "Clear",
|
|
@@ -72,10 +69,7 @@ var locales_default = {
|
|
|
72
69
|
"pisell2.product.card.add.holder.placeholder": (val) => `请选择${val || ""}`,
|
|
73
70
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `请选择${num}${val || ""}`,
|
|
74
71
|
"pisell2.product.card.add.holder.modal.title.1": `请选择`,
|
|
75
|
-
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
76
|
-
if (hour <= 0 && minute <= 0) return `${0}分钟`;
|
|
77
|
-
return `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`;
|
|
78
|
-
},
|
|
72
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
|
|
79
73
|
"pisell2.product.card.sales": "销售",
|
|
80
74
|
"pisell2.product.card.add.holder.modal.cancel": "取消",
|
|
81
75
|
"pisell2.product.card.add.holder.modal.clear": "清除",
|
|
@@ -102,10 +96,7 @@ var locales_default = {
|
|
|
102
96
|
"pisell2.product.card.add.holder.placeholder": (val) => `請選擇${val || ""}`,
|
|
103
97
|
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `請選擇${num}${val || ""}`,
|
|
104
98
|
"pisell2.product.card.add.holder.modal.title.1": `請選擇`,
|
|
105
|
-
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
106
|
-
if (hour <= 0 && minute <= 0) return `${0}分鐘`;
|
|
107
|
-
return `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`;
|
|
108
|
-
},
|
|
99
|
+
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
|
|
109
100
|
"pisell2.product.card.sales": "銷售",
|
|
110
101
|
"pisell2.product.card.add.holder.modal.cancel": "取消",
|
|
111
102
|
"pisell2.product.card.add.holder.modal.clear": "清除",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const fieldMaps: {
|
|
2
3
|
text: {
|
|
3
4
|
field: {
|
|
@@ -197,12 +198,12 @@ export declare const fieldList: ({
|
|
|
197
198
|
field_icon: string;
|
|
198
199
|
field_name: string;
|
|
199
200
|
field_type: string;
|
|
200
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
201
202
|
} | {
|
|
202
203
|
field_icon: string;
|
|
203
204
|
field_name: string;
|
|
204
205
|
field_type: string;
|
|
205
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
206
207
|
} | {
|
|
207
208
|
field_icon: string;
|
|
208
209
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -9,17 +9,6 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
onChange?: (value?: any) => void;
|
|
11
11
|
value?: string;
|
|
12
|
-
selectType?: 'light' | 'dark';
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
containerBackgroundColor?: string;
|
|
15
|
-
buttonBackgroundColor?: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
keyboardBackgroundColor?: string;
|
|
18
|
-
keyboardButtonBackgroundColor?: string;
|
|
19
|
-
keyboardButtonTextColor?: string;
|
|
20
|
-
keyboardButtonHoverColor?: string;
|
|
21
|
-
primaryButtonBackgroundColor?: string;
|
|
22
|
-
primaryButtonTextColor?: string;
|
|
23
12
|
}
|
|
24
13
|
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
25
14
|
export default VirtualKeyboard;
|