@pisell/materials 3.2.1 → 3.2.3
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 +7 -7
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.js +9 -9
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/auto-complete-number/index.d.ts +0 -1
- package/es/components/batch-editor/fields/Image/index.d.ts +7 -0
- package/es/components/batch-editor/fields/Price/index.d.ts +7 -0
- package/es/components/batch-editor/fields/Text/index.d.ts +6 -0
- package/es/components/batch-editor/fields/index.d.ts +6 -0
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/button/index.d.ts +9 -0
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/classicLayout/index.d.ts +0 -1
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- 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/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/drag-sort-tree/types.d.ts +24 -0
- package/es/components/dropdown/index.d.ts +0 -1
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/icon/index.js +5 -5
- package/es/components/input-number-range/index.d.ts +15 -0
- 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/pisell-config-provider/context.d.ts +20 -0
- package/es/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/es/components/pisellAlert/index.d.ts +22 -0
- package/es/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/es/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/es/components/pisellCountdown/index.d.ts +24 -0
- package/es/components/pisellCountdown/utils.d.ts +7 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +21 -0
- package/es/components/pisellDatePicker/index.d.ts +2 -0
- package/es/components/pisellFloatingPanel/index.d.ts +17 -0
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/es/components/pisellInformationEntry/utils.d.ts +4 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +10 -0
- package/es/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +11 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellMessage/index.d.ts +4 -0
- package/es/components/pisellModal/components/functions/index.d.ts +30 -0
- package/es/components/pisellModal/constants.d.ts +6 -0
- package/es/components/pisellScan/index.d.ts +23 -0
- package/es/components/pisellTooltip/index.d.ts +9 -0
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/segmented/index.d.ts +4 -0
- package/es/components/select-time/RightPanel/index.d.ts +8 -0
- package/es/components/select-time/utils.d.ts +9 -0
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/slider/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/sort/types.d.ts +20 -0
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
- 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/constant.d.ts +4 -0
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Summary/index.d.ts +0 -1
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
- 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/date/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
- 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/link/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +3 -0
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- 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/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/table/hooks/useGenScroll.d.ts +22 -0
- 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/table/serve.d.ts +13 -0
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/translation/index.js +10 -10
- package/es/components/translation/utils.js +5 -5
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +9 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
- package/es/components/virtual-keyboard/index.d.ts +14 -0
- package/es/components/walletCard/index.js +22 -5
- package/es/hooks/useCssVariables.d.ts +8 -0
- package/es/hooks/useResponsive.js +2 -2
- package/es/locales/en-US.js +1 -1
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-TW.js +1 -1
- package/es/utils/hoc.js +1 -1
- package/es/utils/locale.d.ts +1 -0
- package/es/utils/miniRedux.js +8 -9
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/auto-complete-number/index.d.ts +0 -1
- package/lib/components/batch-editor/fields/Image/index.d.ts +7 -0
- package/lib/components/batch-editor/fields/Price/index.d.ts +7 -0
- package/lib/components/batch-editor/fields/Text/index.d.ts +6 -0
- package/lib/components/batch-editor/fields/index.d.ts +6 -0
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/button/index.d.ts +9 -0
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/classicLayout/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- 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/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/drag-sort-tree/types.d.ts +24 -0
- package/lib/components/dropdown/index.d.ts +0 -1
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/input-number-range/index.d.ts +15 -0
- 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/pisell-config-provider/context.d.ts +20 -0
- package/lib/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/lib/components/pisellAlert/index.d.ts +22 -0
- package/lib/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/lib/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/lib/components/pisellCountdown/index.d.ts +24 -0
- package/lib/components/pisellCountdown/utils.d.ts +7 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +21 -0
- package/lib/components/pisellDatePicker/index.d.ts +2 -0
- package/lib/components/pisellFloatingPanel/index.d.ts +17 -0
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/lib/components/pisellInformationEntry/utils.d.ts +4 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +10 -0
- package/lib/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +11 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellMessage/index.d.ts +4 -0
- package/lib/components/pisellModal/components/functions/index.d.ts +30 -0
- package/lib/components/pisellModal/constants.d.ts +6 -0
- package/lib/components/pisellScan/index.d.ts +23 -0
- package/lib/components/pisellTooltip/index.d.ts +9 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +4 -0
- package/lib/components/select-time/RightPanel/index.d.ts +8 -0
- package/lib/components/select-time/utils.d.ts +9 -0
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/slider/index.d.ts +0 -1
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
- package/lib/components/sort/types.d.ts +20 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -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/constant.d.ts +4 -0
- package/lib/components/table/Summary/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +3 -0
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- 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/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/table/hooks/useGenScroll.d.ts +22 -0
- package/lib/components/table/serve.d.ts +13 -0
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +9 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
- package/lib/components/virtual-keyboard/index.d.ts +14 -0
- package/lib/components/walletCard/index.js +13 -5
- package/lib/hooks/useCssVariables.d.ts +8 -0
- package/lib/hooks/useResponsive.js +3 -6
- package/lib/locales/en-US.js +1 -1
- package/lib/locales/zh-CN.js +1 -1
- package/lib/locales/zh-TW.js +1 -1
- package/lib/utils/locale.d.ts +1 -0
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +3 -3
- 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/customSelect/index.d.ts +0 -17
- package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/InputNumber/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/date-picker/constants.d.ts +0 -39
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellAppCard/index.d.ts +0 -3
- package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/es/components/pisellDropSort/index.d.ts +0 -3
- package/es/components/pisellModal/components/Information/index.d.ts +0 -21
- package/es/components/pisellNavigationMenu/index.d.ts +0 -3
- package/es/components/pisellQRScanner/index.d.ts +0 -37
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/pisellViewGrid/index.d.ts +0 -16
- package/es/components/profileMenu/index.d.ts +0 -26
- package/es/components/select/index.d.ts +0 -9
- package/es/components/typography/index.d.ts +0 -2
- package/es/components/versionModal/index.d.ts +0 -23
- package/lib/components/customSelect/index.d.ts +0 -17
- package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/date-picker/constants.d.ts +0 -39
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellAppCard/index.d.ts +0 -3
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/lib/components/pisellDropSort/index.d.ts +0 -3
- package/lib/components/pisellModal/components/Information/index.d.ts +0 -21
- package/lib/components/pisellNavigationMenu/index.d.ts +0 -3
- package/lib/components/pisellQRScanner/index.d.ts +0 -37
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/pisellViewGrid/index.d.ts +0 -16
- package/lib/components/profileMenu/index.d.ts +0 -26
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/typography/index.d.ts +0 -2
- package/lib/components/versionModal/index.d.ts +0 -23
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./Presets.less";
|
|
2
|
+
export declare type PresetsItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number | string;
|
|
5
|
+
};
|
|
6
|
+
export interface PresetsProps {
|
|
7
|
+
presets?: PresetsItem[];
|
|
8
|
+
onChange: (val: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Presets: (props: PresetsProps) => JSX.Element | null;
|
|
11
|
+
export default Presets;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type ItemValue = string | number;
|
|
4
|
+
export interface Item {
|
|
5
|
+
value: ItemValue;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
type: 'text' | 'primary';
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
size?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface KeyboardProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
onChange?: (value?: ItemValue) => void;
|
|
16
|
+
items?: Item[];
|
|
17
|
+
rightItems?: Item[];
|
|
18
|
+
keydown?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const formatStringToTime: (value: string) => {
|
|
2
|
+
valueArray: string[];
|
|
3
|
+
valueString: string;
|
|
4
|
+
previewValueArray: string[];
|
|
5
|
+
previewValueArrayDom: JSX.Element[];
|
|
6
|
+
previewValueString: string;
|
|
7
|
+
disabled: never[];
|
|
8
|
+
};
|
|
9
|
+
export declare const fn: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputProps } from 'antd';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface VirtualKeyInputProps extends InputProps {
|
|
4
|
+
previewValue?: string;
|
|
5
|
+
renderInput?: (props: any) => any;
|
|
6
|
+
showDelete?: boolean;
|
|
7
|
+
onValueSelect?: (selected: boolean) => void;
|
|
8
|
+
defaultSelect?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
|
|
11
|
+
export default VirtualKeyInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { KeyboardProps } from "./Keyboard";
|
|
3
|
+
import { VirtualKeyInputProps } from "./VirtualKeyInput";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
keyboardProps?: KeyboardProps;
|
|
7
|
+
virtualKeyInputProps?: VirtualKeyInputProps;
|
|
8
|
+
rightPanel?: React.ReactNode;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
onChange?: (value?: any) => void;
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
14
|
+
export default VirtualKeyboard;
|
|
@@ -157,13 +157,12 @@ var CardHeader = ({
|
|
|
157
157
|
};
|
|
158
158
|
var CardItem = ({ item, symbol }) => {
|
|
159
159
|
const { key, label, value } = item;
|
|
160
|
-
|
|
161
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item-label" }, (0, import_locales.getText)(`walletCard-${label}`) || ""), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item-value" }, key === "rechargeable" || key === "piont" ? /* @__PURE__ */ import_react.default.createElement(
|
|
160
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item-label" }, (0, import_locales.getText)(`walletCard-${label}`) || ""), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-item-value" }, key === "rechargeable" ? /* @__PURE__ */ import_react.default.createElement(
|
|
162
161
|
import_Amount.default,
|
|
163
162
|
{
|
|
164
163
|
className: "pisell-card-amount-item-value",
|
|
165
164
|
platform: "h5",
|
|
166
|
-
symbol
|
|
165
|
+
symbol,
|
|
167
166
|
useThousandsSeparator: true,
|
|
168
167
|
showCurrencySymbol: true,
|
|
169
168
|
value
|
|
@@ -171,7 +170,16 @@ var CardItem = ({ item, symbol }) => {
|
|
|
171
170
|
) : value));
|
|
172
171
|
};
|
|
173
172
|
var CardContent = ({ items, symbol }) => {
|
|
174
|
-
|
|
173
|
+
const expectedOrder = ["piont", "balance", "discount", "voucher"];
|
|
174
|
+
const sortedItems = (0, import_react.useMemo)(() => {
|
|
175
|
+
if (!(items == null ? void 0 : items.length)) return [];
|
|
176
|
+
return [...items].sort((a, b) => {
|
|
177
|
+
const indexA = expectedOrder.indexOf(a.key);
|
|
178
|
+
const indexB = expectedOrder.indexOf(b.key);
|
|
179
|
+
return indexA - indexB;
|
|
180
|
+
});
|
|
181
|
+
}, [items]);
|
|
182
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-list" }, (sortedItems || []).map((item, index) => /* @__PURE__ */ import_react.default.createElement(CardItem, { key: index, item, symbol })));
|
|
175
183
|
};
|
|
176
184
|
var CodeDisplay = ({ codeType, cardNo }) => {
|
|
177
185
|
if (!cardNo) return null;
|
|
@@ -278,7 +286,7 @@ var WalletCard = (props) => {
|
|
|
278
286
|
style,
|
|
279
287
|
onClick
|
|
280
288
|
},
|
|
281
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.Card, { bodyStyle: { padding: 0 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
289
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Card, { style: { border: "none" }, bodyStyle: { padding: 0 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
282
290
|
"div",
|
|
283
291
|
{
|
|
284
292
|
className: "pisell-wallet-card-container",
|
|
@@ -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/locales/en-US.js
CHANGED
|
@@ -207,7 +207,7 @@ var en_US_default = {
|
|
|
207
207
|
"pisell-action-delete-success": "Deleted successfully",
|
|
208
208
|
"pisell-action-delete-failed": "Delete failed, please try again",
|
|
209
209
|
"walletCard-piont": "Points",
|
|
210
|
-
"walletCard-rechargeable": "
|
|
210
|
+
"walletCard-rechargeable": "Balance",
|
|
211
211
|
"walletCard-voucher": "Voucher",
|
|
212
212
|
"walletCard-discount": "Discount",
|
|
213
213
|
//PisellQrcode组件
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -206,7 +206,7 @@ var zh_CN_default = {
|
|
|
206
206
|
"pisell-action-delete-success": "删除成功",
|
|
207
207
|
"pisell-action-delete-failed": "删除失败,请重试",
|
|
208
208
|
"walletCard-piont": "积分",
|
|
209
|
-
"walletCard-rechargeable": "
|
|
209
|
+
"walletCard-rechargeable": "余额",
|
|
210
210
|
"walletCard-voucher": "代金券",
|
|
211
211
|
"walletCard-discount": "折扣卡",
|
|
212
212
|
//PisellQrcode组件
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -206,7 +206,7 @@ var zh_TW_default = {
|
|
|
206
206
|
"pisell-action-delete-success": "刪除成功",
|
|
207
207
|
"pisell-action-delete-failed": "刪除失敗,請重試",
|
|
208
208
|
"walletCard-piont": "積分",
|
|
209
|
-
"walletCard-rechargeable": "
|
|
209
|
+
"walletCard-rechargeable": "餘額",
|
|
210
210
|
"walletCard-voucher": "代金券",
|
|
211
211
|
"walletCard-discount": "折扣卡",
|
|
212
212
|
//PisellQrcode组件
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrentLocale: () => string;
|
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"swiper": "^8.4.7",
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
|
-
"@pisell/date-picker": "1.0.100",
|
|
75
74
|
"@pisell/icon": "0.0.11",
|
|
76
|
-
"@pisell/utils": "1.0.42"
|
|
75
|
+
"@pisell/utils": "1.0.42",
|
|
76
|
+
"@pisell/date-picker": "1.0.100"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}
|