@pisell/materials 6.3.4 → 6.4.1
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 +4 -4
- package/build/lowcode/preview.js +150 -150
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +28 -24
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +34 -30
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.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 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +21 -20
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/icon/index.js +5 -5
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +1 -0
- package/es/components/list/index.js +6 -6
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.js +5 -1
- package/es/components/pisellCardList/index.js +42 -3
- package/es/components/pisellCardList/index.less +9 -1
- package/es/components/pisellCheckboxGroup/index.js +23 -4
- package/es/components/pisellCheckboxGroup/index.less +28 -1
- package/es/components/pisellGoodPassCard/index.d.ts +1 -0
- package/es/components/pisellGoodPassCard/index.js +17 -5
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellText/components/Amount/index.js +2 -1
- package/es/components/pisellToast/index.js +3 -0
- package/es/components/pisellWalletPassCard/index.d.ts +53 -1
- package/es/components/pisellWalletPassCard/index.js +333 -75
- package/es/components/pisellWalletPassCard/index.less +48 -11
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +93 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +292 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/es/components/productCard/cartSkuCard/index.js +201 -0
- package/es/components/productCard/cartSkuCard/index.less +33 -0
- package/es/components/productCard/cartSkuCard/locales.js +30 -0
- package/es/components/productCard/components/Action/index.js +14 -1
- package/es/components/productCard/components/Action/index.less +3 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/index.js +23 -8
- package/es/components/productCard/components/Header/index.less +16 -1
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/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 +3 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/es/components/productCard/index.d.ts +3 -1
- package/es/components/productCard/index.js +5 -2
- package/es/components/productCard/index.less +6 -0
- package/es/components/productCard/locales.js +3 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/utils.js +5 -5
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.js +4 -1
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- package/es/components/walletCard/Guide/index.js +12 -1
- package/es/hooks/useResponsive.js +2 -2
- package/es/index.d.ts +1 -0
- package/es/locales/en-US.js +9 -2
- package/es/locales/zh-CN.js +9 -2
- package/es/locales/zh-TW.js +9 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.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 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +21 -20
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.js +4 -0
- package/lib/components/pisellCardList/index.js +42 -3
- package/lib/components/pisellCardList/index.less +9 -1
- package/lib/components/pisellCheckboxGroup/index.js +22 -1
- package/lib/components/pisellCheckboxGroup/index.less +28 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
- package/lib/components/pisellGoodPassCard/index.js +31 -4
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellText/components/Amount/index.js +2 -1
- package/lib/components/pisellToast/index.js +3 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
- package/lib/components/pisellWalletPassCard/index.js +253 -59
- package/lib/components/pisellWalletPassCard/index.less +48 -11
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +82 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +339 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/lib/components/productCard/cartSkuCard/index.js +239 -0
- package/lib/components/productCard/cartSkuCard/index.less +33 -0
- package/lib/components/productCard/cartSkuCard/locales.js +61 -0
- package/lib/components/productCard/components/Action/index.js +9 -0
- package/lib/components/productCard/components/Action/index.less +3 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/index.js +21 -11
- package/lib/components/productCard/components/Header/index.less +16 -1
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/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 +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/lib/components/productCard/index.d.ts +3 -1
- package/lib/components/productCard/index.js +6 -2
- package/lib/components/productCard/index.less +6 -0
- package/lib/components/productCard/locales.js +12 -3
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.js +3 -0
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- package/lib/components/walletCard/Guide/index.js +11 -1
- package/lib/hooks/useResponsive.js +3 -6
- package/lib/index.d.ts +1 -0
- package/lib/locales/en-US.js +9 -2
- package/lib/locales/zh-CN.js +9 -2
- package/lib/locales/zh-TW.js +9 -2
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
- package/lowcode/pisell-card-list/meta.ts +50 -1
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
- package/lowcode/virtual-keyboard/meta.ts +131 -0
- package/package.json +14 -11
- 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/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/context.d.ts +0 -20
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/type.d.ts +0 -20
- package/es/components/pisellCardList/index.d.ts +0 -73
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -16
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -3
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -251
- package/es/components/translation/index.d.ts +0 -14
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
- package/es/components/virtual-keyboard/index.d.ts +0 -14
- package/es/components/walletCard/Guide/index.d.ts +0 -3
- package/es/components/walletCard/index.d.ts +0 -67
- package/es/locales/en-US.d.ts +0 -278
- package/es/locales/zh-CN.d.ts +0 -273
- package/es/locales/zh-TW.d.ts +0 -273
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/context.d.ts +0 -20
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
- package/lib/components/pisellCardList/index.d.ts +0 -73
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -16
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -3
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/translation/index.d.ts +0 -14
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
- package/lib/components/virtual-keyboard/index.d.ts +0 -14
- package/lib/components/walletCard/Guide/index.d.ts +0 -3
- package/lib/components/walletCard/index.d.ts +0 -67
- package/lib/locales/en-US.d.ts +0 -278
- package/lib/locales/zh-CN.d.ts +0 -273
- package/lib/locales/zh-TW.d.ts +0 -273
|
@@ -36,7 +36,7 @@ var import_iconfont = __toESM(require("../../../iconfont"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_SelectField = __toESM(require("../SelectField"));
|
|
39
|
-
var import_index =
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
40
|
var import_hooks = require("../../../../hooks");
|
|
41
41
|
var import_model = require("../../model");
|
|
42
42
|
var AddFieldModal = () => {
|
|
@@ -85,7 +85,7 @@ var AddFieldModal = () => {
|
|
|
85
85
|
},
|
|
86
86
|
onFinish: addField
|
|
87
87
|
},
|
|
88
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-modal" }, /* @__PURE__ */ import_react.default.createElement(
|
|
89
89
|
import_antd.Form.Item,
|
|
90
90
|
{
|
|
91
91
|
label: "Field Name",
|
|
@@ -101,13 +101,13 @@ var AddFieldModal = () => {
|
|
|
101
101
|
import_antd.Input,
|
|
102
102
|
{
|
|
103
103
|
placeholder: "Field name (optional)",
|
|
104
|
-
className:
|
|
104
|
+
className: "pisell-lowcode-header-search"
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
|
-
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
107
|
+
), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-modal-footer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-describe" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pi-Plus", className: "pisell-lowcode-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode-label" }, "Add description")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-btns" }, /* @__PURE__ */ import_react.default.createElement(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: "pisell-lowcode-cancel",
|
|
111
111
|
onClick: () => {
|
|
112
112
|
onCloseModal();
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ var AddFieldModal = () => {
|
|
|
116
116
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
|
-
className:
|
|
119
|
+
className: "pisell-lowcode-submit",
|
|
120
120
|
onClick: () => {
|
|
121
121
|
form.submit();
|
|
122
122
|
}
|
|
@@ -136,7 +136,7 @@ var AddFieldModal = () => {
|
|
|
136
136
|
placement: "bottomRight",
|
|
137
137
|
overlayInnerStyle: { padding: 0 },
|
|
138
138
|
trigger: "click",
|
|
139
|
-
overlayClassName:
|
|
139
|
+
overlayClassName: "pisell-lowcode-popover-wrap",
|
|
140
140
|
onOpenChange: (e) => {
|
|
141
141
|
if (!e) {
|
|
142
142
|
onCloseModal();
|
|
@@ -146,11 +146,11 @@ var AddFieldModal = () => {
|
|
|
146
146
|
},
|
|
147
147
|
open: openModal
|
|
148
148
|
},
|
|
149
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
149
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-btn" }, /* @__PURE__ */ import_react.default.createElement(
|
|
150
150
|
import_iconfont.default,
|
|
151
151
|
{
|
|
152
152
|
type: "pi-a-Property3Add",
|
|
153
|
-
className:
|
|
153
|
+
className: "pisell-lowcode-add-field-icon"
|
|
154
154
|
}
|
|
155
155
|
))
|
|
156
156
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.add-field-btn {
|
|
1
|
+
.pisell-lowcode-add-field-btn {
|
|
2
2
|
position: absolute;
|
|
3
3
|
right: 0;
|
|
4
4
|
top: 0;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
|
|
14
|
-
.add-field-icon {}
|
|
14
|
+
.pisell-lowcode-add-field-icon {}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.popover-wrap {
|
|
17
|
+
.pisell-lowcode-popover-wrap {
|
|
18
18
|
:global {
|
|
19
19
|
.pisell-lowcode-popover-arrow {
|
|
20
20
|
display: none;
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.add-field-modal {
|
|
25
|
+
.pisell-lowcode-add-field-modal {
|
|
26
26
|
width: 360px;
|
|
27
27
|
padding: 16px 16px 0 16px;
|
|
28
28
|
|
|
29
|
-
.modal-footer {
|
|
29
|
+
.pisell-lowcode-modal-footer {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: space-between;
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
padding: 0 16px;
|
|
36
36
|
border-top: 1px solid #F1F1F1;
|
|
37
37
|
|
|
38
|
-
.add-describe {
|
|
38
|
+
.pisell-lowcode-add-describe {
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
|
|
44
|
-
.icon {
|
|
44
|
+
.pisell-lowcode-icon {
|
|
45
45
|
width: 24px;
|
|
46
46
|
height: 24px;
|
|
47
47
|
display: flex;
|
|
@@ -51,27 +51,27 @@
|
|
|
51
51
|
color: #1B1B1B;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.label {
|
|
54
|
+
.pisell-lowcode-label {
|
|
55
55
|
margin-left: 2px;
|
|
56
56
|
font-size: 14px;
|
|
57
57
|
color: #777777;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.btns {
|
|
61
|
+
.pisell-lowcode-btns {
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
65
65
|
gap: 16px;
|
|
66
66
|
|
|
67
|
-
.cancel {
|
|
67
|
+
.pisell-lowcode-cancel {
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
font-weight: 400;
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
color: #1B1B1B;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.submit {
|
|
74
|
+
.pisell-lowcode-submit {
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
font-weight: 400;
|
|
77
77
|
font-size: 14px;
|
|
@@ -40,17 +40,14 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
44
|
-
return true;
|
|
43
|
+
if (!value) return true;
|
|
45
44
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
46
45
|
if (!valueDayjsObj.isValid()) {
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
50
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
-
return false;
|
|
49
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
52
50
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
53
|
-
if (!dataDayjsObj.isValid())
|
|
54
|
-
return false;
|
|
51
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
55
52
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
56
53
|
}
|
|
@@ -197,12 +197,12 @@ export declare const fieldList: ({
|
|
|
197
197
|
field_icon: string;
|
|
198
198
|
field_name: string;
|
|
199
199
|
field_type: string;
|
|
200
|
-
default_value:
|
|
200
|
+
default_value: boolean;
|
|
201
201
|
} | {
|
|
202
202
|
field_icon: string;
|
|
203
203
|
field_name: string;
|
|
204
204
|
field_type: string;
|
|
205
|
-
default_value:
|
|
205
|
+
default_value: string;
|
|
206
206
|
} | {
|
|
207
207
|
field_icon: string;
|
|
208
208
|
field_name: string;
|
|
@@ -43,19 +43,15 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
48
|
-
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
-
return true;
|
|
46
|
+
if (!value) return true;
|
|
47
|
+
if ((value == null ? void 0 : value.length) !== 2) return true;
|
|
50
48
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
51
49
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
52
50
|
return true;
|
|
53
51
|
}
|
|
54
52
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
55
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
-
return false;
|
|
53
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
57
54
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
58
|
-
if (!dataDayjsObj.isValid())
|
|
59
|
-
return false;
|
|
55
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
60
56
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
61
57
|
}
|
|
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
25
25
|
var import_utils = require("@pisell/utils");
|
|
26
26
|
var getValueByKeys = (obj, keys) => {
|
|
27
27
|
var _a;
|
|
28
|
-
if (!keys)
|
|
29
|
-
return keys;
|
|
28
|
+
if (!keys) return keys;
|
|
30
29
|
if ((0, import_utils.isString)(keys)) {
|
|
31
30
|
keys = [keys];
|
|
32
31
|
}
|
|
@@ -50,6 +50,7 @@ var Number = (props) => {
|
|
|
50
50
|
placeholder,
|
|
51
51
|
onEnter,
|
|
52
52
|
selectType = "light",
|
|
53
|
+
defaultSelect,
|
|
53
54
|
...others
|
|
54
55
|
} = props;
|
|
55
56
|
const config = (0, import_usePisellConfig.default)();
|
|
@@ -98,11 +99,13 @@ var Number = (props) => {
|
|
|
98
99
|
max,
|
|
99
100
|
min,
|
|
100
101
|
value,
|
|
102
|
+
defaultValue,
|
|
101
103
|
onChange: setValue,
|
|
102
104
|
placeholder,
|
|
103
105
|
doneText,
|
|
104
106
|
resetText,
|
|
105
107
|
onEnter,
|
|
108
|
+
defaultSelect,
|
|
106
109
|
rightItemsStyle: {
|
|
107
110
|
buttonBackgroundColor: configColor.buttonBackgroundColor,
|
|
108
111
|
textColor: configColor.textColor,
|
|
@@ -37,6 +37,8 @@ var import_Keyboard = __toESM(require("./Keyboard"));
|
|
|
37
37
|
var import_VirtualKeyInput = __toESM(require("./VirtualKeyInput"));
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
|
|
40
42
|
var items = [
|
|
41
43
|
{
|
|
42
44
|
value: 1,
|
|
@@ -105,6 +107,32 @@ var items = [
|
|
|
105
107
|
type: "primary"
|
|
106
108
|
}
|
|
107
109
|
];
|
|
110
|
+
var virtualKeyboardThemeConfig = {
|
|
111
|
+
dark: {
|
|
112
|
+
backgroundColor: "rgba(0, 0, 0, 0.70)",
|
|
113
|
+
containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
|
|
114
|
+
buttonBackgroundColor: "#ffffff",
|
|
115
|
+
textColor: "#000000",
|
|
116
|
+
keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
|
|
117
|
+
keyboardButtonBackgroundColor: "#ffffff",
|
|
118
|
+
keyboardButtonTextColor: "#000000",
|
|
119
|
+
keyboardButtonHoverColor: "#f5f5f5",
|
|
120
|
+
primaryButtonBackgroundColor: "#4ca30d",
|
|
121
|
+
primaryButtonTextColor: "#ffffff"
|
|
122
|
+
},
|
|
123
|
+
light: {
|
|
124
|
+
backgroundColor: "#ffffff",
|
|
125
|
+
containerBackgroundColor: "#d0d5dd",
|
|
126
|
+
buttonBackgroundColor: "#ffffff",
|
|
127
|
+
textColor: "#000000",
|
|
128
|
+
keyboardBackgroundColor: "#f9f9f9",
|
|
129
|
+
keyboardButtonBackgroundColor: "#ffffff",
|
|
130
|
+
keyboardButtonTextColor: "#000000",
|
|
131
|
+
keyboardButtonHoverColor: "#f5f5f5",
|
|
132
|
+
primaryButtonBackgroundColor: "#4ca30d",
|
|
133
|
+
primaryButtonTextColor: "#ffffff"
|
|
134
|
+
}
|
|
135
|
+
};
|
|
108
136
|
var VirtualKeyboard = (props) => {
|
|
109
137
|
const {
|
|
110
138
|
virtualKeyInputProps,
|
|
@@ -113,15 +141,45 @@ var VirtualKeyboard = (props) => {
|
|
|
113
141
|
keyboardProps,
|
|
114
142
|
onChange,
|
|
115
143
|
value,
|
|
116
|
-
rightPanel
|
|
144
|
+
rightPanel,
|
|
145
|
+
selectType = "light",
|
|
146
|
+
...others
|
|
117
147
|
} = props;
|
|
148
|
+
const config = (0, import_usePisellConfig.default)();
|
|
118
149
|
(0, import_react.useEffect)(() => {
|
|
119
150
|
document.body.id = "body";
|
|
120
151
|
}, []);
|
|
152
|
+
const configColor = (0, import_react.useMemo)(() => {
|
|
153
|
+
const currentConfig = virtualKeyboardThemeConfig[selectType];
|
|
154
|
+
const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
|
|
155
|
+
if (value2 !== void 0 && key in currentConfig) {
|
|
156
|
+
acc[key] = value2;
|
|
157
|
+
}
|
|
158
|
+
return acc;
|
|
159
|
+
}, {});
|
|
160
|
+
return { ...currentConfig, ...validProps };
|
|
161
|
+
}, [selectType, props]);
|
|
162
|
+
(0, import_react.useEffect)(() => {
|
|
163
|
+
(0, import_utils.setTheme)({
|
|
164
|
+
"--virtual-keyboard-background-color": configColor.backgroundColor,
|
|
165
|
+
"--virtual-keyboard-container-background-color": configColor.containerBackgroundColor,
|
|
166
|
+
"--virtual-keyboard-button-background-color": configColor.buttonBackgroundColor,
|
|
167
|
+
"--virtual-keyboard-text-color": configColor.textColor,
|
|
168
|
+
"--virtual-keyboard-keyboard-background-color": configColor.keyboardBackgroundColor,
|
|
169
|
+
"--virtual-keyboard-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
|
|
170
|
+
"--virtual-keyboard-keyboard-button-text-color": configColor.keyboardButtonTextColor,
|
|
171
|
+
"--virtual-keyboard-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
|
|
172
|
+
"--virtual-keyboard-primary-button-background-color": configColor.primaryButtonBackgroundColor,
|
|
173
|
+
"--virtual-keyboard-primary-button-text-color": configColor.primaryButtonTextColor
|
|
174
|
+
});
|
|
175
|
+
}, [configColor]);
|
|
121
176
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
122
177
|
"div",
|
|
123
178
|
{
|
|
124
|
-
className: (0, import_classnames.default)("virtual-keyboard-component", className
|
|
179
|
+
className: (0, import_classnames.default)("virtual-keyboard-component", className, {
|
|
180
|
+
"virtual-keyboard-component-dark": selectType === "dark",
|
|
181
|
+
"virtual-keyboard-component-light": selectType === "light"
|
|
182
|
+
}),
|
|
125
183
|
style
|
|
126
184
|
},
|
|
127
185
|
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("virtual-keyboard-component-left") }, /* @__PURE__ */ import_react.default.createElement(import_VirtualKeyInput.default, { ...virtualKeyInputProps }), /* @__PURE__ */ import_react.default.createElement(import_Keyboard.default, { items, ...keyboardProps })),
|
|
@@ -2,14 +2,46 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 20px;
|
|
5
|
+
background-color: var(--virtual-keyboard-background-color, #ffffff);
|
|
6
|
+
|
|
7
|
+
&.virtual-keyboard-component-dark {
|
|
8
|
+
background-color: var(--virtual-keyboard-background-color, rgba(0, 0, 0, 0.70));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.virtual-keyboard-component-light {
|
|
12
|
+
background-color: var(--virtual-keyboard-background-color, #ffffff);
|
|
13
|
+
}
|
|
5
14
|
}
|
|
6
15
|
|
|
7
16
|
.virtual-keyboard-component-left {
|
|
8
17
|
padding: 10px;
|
|
9
18
|
width: 380px;
|
|
10
19
|
border-radius: 10px;
|
|
11
|
-
background: var(--
|
|
20
|
+
background: var(--virtual-keyboard-container-background-color, #D0D5DD);
|
|
12
21
|
backdrop-filter: blur(50px);
|
|
22
|
+
|
|
23
|
+
.pisell-virtual-keyboard-input {
|
|
24
|
+
background-color: var(--virtual-keyboard-button-background-color, #ffffff);
|
|
25
|
+
color: var(--virtual-keyboard-text-color, #000000);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell-keyboard {
|
|
29
|
+
background-color: var(--virtual-keyboard-keyboard-background-color, #f9f9f9);
|
|
30
|
+
|
|
31
|
+
.pisell-keyboard-item {
|
|
32
|
+
background-color: var(--virtual-keyboard-keyboard-button-background-color, #ffffff);
|
|
33
|
+
color: var(--virtual-keyboard-keyboard-button-text-color, #000000);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--virtual-keyboard-keyboard-button-hover-color, #f5f5f5);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.pisell-keyboard-item-primary {
|
|
40
|
+
background-color: var(--virtual-keyboard-primary-button-background-color, #4ca30d);
|
|
41
|
+
color: var(--virtual-keyboard-primary-button-text-color, #ffffff);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
13
45
|
}
|
|
14
46
|
|
|
15
47
|
.virtual-keyboard-component-right {
|
|
@@ -51,9 +51,19 @@ var Guide = (props) => {
|
|
|
51
51
|
return (setting == null ? void 0 : setting.walletGuideConfig) || {};
|
|
52
52
|
}, [setting == null ? void 0 : setting.walletGuideConfig]);
|
|
53
53
|
const handleClick = (e) => {
|
|
54
|
-
var _a2;
|
|
54
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
55
55
|
e.stopPropagation();
|
|
56
56
|
if (!((_a2 = _setting == null ? void 0 : _setting.skipLink) == null ? void 0 : _a2.page)) return;
|
|
57
|
+
if ((_d2 = (_c2 = (_b2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b2.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d2.call(_c2)) {
|
|
58
|
+
(_g2 = (_f2 = (_e2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.postMessageToApp) == null ? void 0 : _g2.call(_f2, {
|
|
59
|
+
module: "global",
|
|
60
|
+
key: "openNative",
|
|
61
|
+
data: {
|
|
62
|
+
link: _setting == null ? void 0 : _setting.skipLink
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
57
67
|
utils == null ? void 0 : utils.jumpPageByLink(_setting == null ? void 0 : _setting.skipLink);
|
|
58
68
|
};
|
|
59
69
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -35,8 +35,7 @@ var responsiveConfig = {
|
|
|
35
35
|
function handleResize() {
|
|
36
36
|
const oldInfo = info;
|
|
37
37
|
calculate();
|
|
38
|
-
if (oldInfo === info)
|
|
39
|
-
return;
|
|
38
|
+
if (oldInfo === info) return;
|
|
40
39
|
for (const subscriber of subscribers) {
|
|
41
40
|
subscriber();
|
|
42
41
|
}
|
|
@@ -58,8 +57,7 @@ function calculate() {
|
|
|
58
57
|
}
|
|
59
58
|
function configResponsive(config) {
|
|
60
59
|
responsiveConfig = config;
|
|
61
|
-
if (info)
|
|
62
|
-
calculate();
|
|
60
|
+
if (info) calculate();
|
|
63
61
|
}
|
|
64
62
|
function useResponsive() {
|
|
65
63
|
if (import_utils.isBrowser && !listening) {
|
|
@@ -70,8 +68,7 @@ function useResponsive() {
|
|
|
70
68
|
}
|
|
71
69
|
const [state, setState] = (0, import_react.useState)(info);
|
|
72
70
|
(0, import_react.useEffect)(() => {
|
|
73
|
-
if (!import_utils.isBrowser)
|
|
74
|
-
return;
|
|
71
|
+
if (!import_utils.isBrowser) return;
|
|
75
72
|
if (!listening) {
|
|
76
73
|
window.addEventListener("resize", handleResize);
|
|
77
74
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export { default as PisellTooltip } from './components/pisellTooltip';
|
|
|
96
96
|
export { default as PisellUpload } from './components/pisellUpload';
|
|
97
97
|
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
98
98
|
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
99
|
+
export type { PisellWalletPassCardProps } from './components/pisellWalletPassCard';
|
|
99
100
|
export { default as ProfileMenu } from './components/profileMenu';
|
|
100
101
|
export { default as QRCode } from './components/qrcode';
|
|
101
102
|
export { default as Radio } from './components/radio';
|
package/lib/locales/en-US.js
CHANGED
|
@@ -153,7 +153,7 @@ var en_US_default = {
|
|
|
153
153
|
"pisell-wallet-pass-card-name": "Name",
|
|
154
154
|
"pisell-wallet-pass-card-store-name": "StoreName",
|
|
155
155
|
"pisell-wallet-pass-card-balance": "Balance",
|
|
156
|
-
"pisell-wallet-pass-card-redeem": "
|
|
156
|
+
"pisell-wallet-pass-card-redeem": "use",
|
|
157
157
|
"pisell-wallet-pass-card-code": "Code",
|
|
158
158
|
"pisell-wallet-pass-card-valid-to": "Valid to",
|
|
159
159
|
"pisell-wallet-pass-card-confirm": "Confirm",
|
|
@@ -326,5 +326,12 @@ var en_US_default = {
|
|
|
326
326
|
"pisell2.text.goodpass.product-vouchers": "Promotions & Vouchers",
|
|
327
327
|
"pisell2.text.goodpass.last-settlement": "(Last payment)",
|
|
328
328
|
"pisell2.text.goodpass.view-more": "View More",
|
|
329
|
-
"pisell2.text.goodpass.save": "Save"
|
|
329
|
+
"pisell2.text.goodpass.save": "Save",
|
|
330
|
+
// 钱包卡片组件
|
|
331
|
+
"pisell-wallet-pass-card-status-used": "Used",
|
|
332
|
+
"pisell-wallet-pass-card-status-expired": "Expired",
|
|
333
|
+
"pisell-wallet-pass-card-status-disabled": "Disabled",
|
|
334
|
+
"pisell-wallet-pass-card-status-conflict": "Conflict",
|
|
335
|
+
"pisell-wallet-pass-card-reset": "Reset",
|
|
336
|
+
"pisell-wallet-pass-card-done": "Done"
|
|
330
337
|
};
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -153,7 +153,7 @@ var zh_CN_default = {
|
|
|
153
153
|
"pisell-wallet-pass-card-name": "商品名称",
|
|
154
154
|
"pisell-wallet-pass-card-store-name": "共享店铺名称",
|
|
155
155
|
"pisell-wallet-pass-card-balance": "余额",
|
|
156
|
-
"pisell-wallet-pass-card-redeem": "
|
|
156
|
+
"pisell-wallet-pass-card-redeem": "使用",
|
|
157
157
|
"pisell-wallet-pass-card-code": "识别码编号",
|
|
158
158
|
"pisell-wallet-pass-card-valid-to": "有效期至",
|
|
159
159
|
"pisell-wallet-pass-card-confirm": "确认",
|
|
@@ -317,5 +317,12 @@ var zh_CN_default = {
|
|
|
317
317
|
"pisell2.text.goodpass.product-vouchers": "优惠促销",
|
|
318
318
|
"pisell2.text.goodpass.last-settlement": "(上次结算)",
|
|
319
319
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
320
|
-
"pisell2.text.goodpass.save": "节省"
|
|
320
|
+
"pisell2.text.goodpass.save": "节省",
|
|
321
|
+
// 钱包卡片组件
|
|
322
|
+
"pisell-wallet-pass-card-status-used": "已使用",
|
|
323
|
+
"pisell-wallet-pass-card-status-expired": "已过期",
|
|
324
|
+
"pisell-wallet-pass-card-status-disabled": "已禁用",
|
|
325
|
+
"pisell-wallet-pass-card-status-conflict": "冲突",
|
|
326
|
+
"pisell-wallet-pass-card-reset": "清空",
|
|
327
|
+
"pisell-wallet-pass-card-done": "保存"
|
|
321
328
|
};
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -153,7 +153,7 @@ var zh_TW_default = {
|
|
|
153
153
|
"pisell-wallet-pass-card-name": "商品名稱",
|
|
154
154
|
"pisell-wallet-pass-card-store-name": "共享店鋪名稱",
|
|
155
155
|
"pisell-wallet-pass-card-balance": "餘額",
|
|
156
|
-
"pisell-wallet-pass-card-redeem": "
|
|
156
|
+
"pisell-wallet-pass-card-redeem": "使用",
|
|
157
157
|
"pisell-wallet-pass-card-code": "識別碼編號",
|
|
158
158
|
"pisell-wallet-pass-card-valid-to": "有效期至",
|
|
159
159
|
"pisell-wallet-pass-card-confirm": "確認",
|
|
@@ -318,5 +318,12 @@ var zh_TW_default = {
|
|
|
318
318
|
"pisell2.text.goodpass.product-vouchers": "優惠促銷",
|
|
319
319
|
"pisell2.text.goodpass.last-settlement": "(上次結算)",
|
|
320
320
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
321
|
-
"pisell2.text.goodpass.save": "節省"
|
|
321
|
+
"pisell2.text.goodpass.save": "節省",
|
|
322
|
+
// 钱包卡片组件
|
|
323
|
+
"pisell-wallet-pass-card-status-used": "已使用",
|
|
324
|
+
"pisell-wallet-pass-card-status-expired": "已過期",
|
|
325
|
+
"pisell-wallet-pass-card-status-disabled": "已禁用",
|
|
326
|
+
"pisell-wallet-pass-card-status-conflict": "衝突",
|
|
327
|
+
"pisell-wallet-pass-card-reset": "清空",
|
|
328
|
+
"pisell-wallet-pass-card-done": "保存"
|
|
322
329
|
};
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -226,11 +226,12 @@ const AntdIconSetter = (props: AntdIconSetterProps) => {
|
|
|
226
226
|
<Balloon
|
|
227
227
|
className="lc-antd-icon-setter-balloon"
|
|
228
228
|
trigger={triggerNode}
|
|
229
|
-
|
|
229
|
+
autoAdjust
|
|
230
230
|
triggerType="click"
|
|
231
231
|
closable={false}
|
|
232
232
|
alignEdge
|
|
233
|
-
align="
|
|
233
|
+
align="l"
|
|
234
|
+
v2
|
|
234
235
|
style={{ width: 300 }}
|
|
235
236
|
>
|
|
236
237
|
<div className="lc-antd-icon-setter-header">
|
|
@@ -167,6 +167,50 @@ export default {
|
|
|
167
167
|
setter: 'BoolSetter',
|
|
168
168
|
defaultValue: true,
|
|
169
169
|
},
|
|
170
|
+
{
|
|
171
|
+
type: 'group',
|
|
172
|
+
title: '商品名称样式',
|
|
173
|
+
display: 'entry',
|
|
174
|
+
condition: (target: IPublicModelSettingField) => {
|
|
175
|
+
return target.parent.getPropValue('showName') === true;
|
|
176
|
+
},
|
|
177
|
+
items: [
|
|
178
|
+
{
|
|
179
|
+
name: 'nameTitleStyle.fontSize',
|
|
180
|
+
title: {
|
|
181
|
+
type: 'i18n',
|
|
182
|
+
'en-US': 'Font Size',
|
|
183
|
+
'zh-CN': '字号',
|
|
184
|
+
},
|
|
185
|
+
setter: 'NumberSetter'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'nameTitleStyle.fontWeight',
|
|
189
|
+
title: {
|
|
190
|
+
type: 'i18n',
|
|
191
|
+
'en-US': 'Font Weight',
|
|
192
|
+
'zh-CN': '字重',
|
|
193
|
+
},
|
|
194
|
+
setter: 'NumberSetter'
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'nameTitleStyle.color',
|
|
198
|
+
title: {
|
|
199
|
+
type: 'i18n',
|
|
200
|
+
'en-US': 'Color',
|
|
201
|
+
'zh-CN': '颜色',
|
|
202
|
+
},
|
|
203
|
+
setter: 'ColorSetter'
|
|
204
|
+
},
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'showStatus',
|
|
209
|
+
title: { label: '显示状态标识', tip: '显示状态标识' },
|
|
210
|
+
propType: 'bool',
|
|
211
|
+
setter: 'BoolSetter',
|
|
212
|
+
defaultValue: true,
|
|
213
|
+
},
|
|
170
214
|
{
|
|
171
215
|
name: 'showStoreName',
|
|
172
216
|
title: { label: '显示共享店铺名称', tip: '显示共享店铺名称' },
|
|
@@ -258,9 +302,14 @@ export default {
|
|
|
258
302
|
},
|
|
259
303
|
{
|
|
260
304
|
name: 'onConfirmEdit',
|
|
261
|
-
|
|
305
|
+
template:
|
|
262
306
|
"onConfirmEdit(value, index){\n// 编辑弹窗点击确认\nconsole.log('onConfirmEdit');}",
|
|
263
307
|
},
|
|
308
|
+
{
|
|
309
|
+
name: 'onConfirmEditAmount',
|
|
310
|
+
template:
|
|
311
|
+
"onConfirmEditAmount(value, index){\n// 编辑金额点击确认\nconsole.log('onConfirmEditAmount');}",
|
|
312
|
+
},
|
|
264
313
|
],
|
|
265
314
|
},
|
|
266
315
|
},
|