@pisell/materials 1.10.11 → 1.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/PisellCards/index.d.ts +1 -0
  8. package/es/components/PisellFields/index.d.ts +1 -0
  9. package/es/components/PisellLayouts/index.d.ts +1 -0
  10. package/es/components/PisellMetrics/index.d.ts +1 -0
  11. package/es/components/appVersionControl/types.d.ts +1 -0
  12. package/es/components/calendar/index.d.ts +1 -0
  13. package/es/components/checkbox/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +1 -0
  17. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  20. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
  21. package/es/components/date-picker/index.d.ts +1 -0
  22. package/es/components/drag-sort-tree/types.d.ts +1 -0
  23. package/es/components/filter/components/FilterButton/types.d.ts +1 -0
  24. package/es/components/input/index.d.ts +1 -0
  25. package/es/components/pisell-config-provider/context.d.ts +1 -0
  26. package/es/components/pisellDatePicker/index.d.ts +1 -0
  27. package/es/components/pisellGridPro/ToolBar/type.d.ts +1 -0
  28. package/es/components/pisellMenu/types.d.ts +1 -0
  29. package/es/components/pisellQuickFilter/type.d.ts +1 -0
  30. package/es/components/productCard/lineItem/index.js +2 -0
  31. package/es/components/radio/index.d.ts +1 -0
  32. package/es/components/section-footers/index.d.ts +1 -0
  33. package/es/components/skeleton/index.d.ts +1 -0
  34. package/es/components/time-picker/index.d.ts +1 -0
  35. package/es/components/upload/index.d.ts +1 -0
  36. package/es/components/virtual-keyboard/Amount/types.d.ts +1 -0
  37. package/lib/components/PisellCards/index.d.ts +1 -0
  38. package/lib/components/PisellFields/index.d.ts +1 -0
  39. package/lib/components/PisellLayouts/index.d.ts +1 -0
  40. package/lib/components/PisellMetrics/index.d.ts +1 -0
  41. package/lib/components/appVersionControl/types.d.ts +1 -0
  42. package/lib/components/calendar/index.d.ts +1 -0
  43. package/lib/components/checkbox/index.d.ts +1 -0
  44. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  45. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  46. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +1 -0
  47. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +1 -0
  48. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  49. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  50. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
  51. package/lib/components/date-picker/index.d.ts +1 -0
  52. package/lib/components/drag-sort-tree/types.d.ts +1 -0
  53. package/lib/components/filter/components/FilterButton/types.d.ts +1 -0
  54. package/lib/components/input/index.d.ts +1 -0
  55. package/lib/components/pisell-config-provider/context.d.ts +1 -0
  56. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  57. package/lib/components/pisellGridPro/ToolBar/type.d.ts +1 -0
  58. package/lib/components/pisellMenu/types.d.ts +1 -0
  59. package/lib/components/pisellQuickFilter/type.d.ts +1 -0
  60. package/lib/components/productCard/lineItem/index.js +2 -0
  61. package/lib/components/radio/index.d.ts +1 -0
  62. package/lib/components/section-footers/index.d.ts +1 -0
  63. package/lib/components/skeleton/index.d.ts +1 -0
  64. package/lib/components/time-picker/index.d.ts +1 -0
  65. package/lib/components/upload/index.d.ts +1 -0
  66. package/lib/components/virtual-keyboard/Amount/types.d.ts +1 -0
  67. package/package.json +1 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellBasicCardProps } from "./types.js";
2
3
  import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
3
4
  import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellSingleLineTextProps } from "../pisellSingleLineText/types.js";
2
3
  import { PisellLongTextProps } from "../pisellLongText/types.js";
3
4
  import { PisellNumberProps } from "../pisellNumber/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
2
3
  import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
3
4
  import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
2
3
  import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
3
4
  import { PisellStatisticProps } from "../cardMetricItem/index.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/appVersionControl/types.d.ts
2
3
  interface Version {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/calendar/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/checkbox/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LocalSettingsType } from "../../table/types.js";
2
3
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
3
4
  import { ColumnType } from "antd/es/table";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxGroupProps } from "./type.js";
2
3
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
2
3
  import { RadioGroupProps } from "./type.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
3
  import { TabsProps } from "./type.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ModeType } from "../../dataSourceForm/type.js";
2
3
 
3
4
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionsItem } from "../../dataSourceForm/serve.js";
2
3
  import { Result } from "ahooks/es/useRequest/src/types";
3
4
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/date-picker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/drag-sort-tree/types.d.ts
2
3
  type IdType = string | number;
3
4
  type ValueProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from "../../types.js";
2
3
 
3
4
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
  import { InputProps, InputRef } from "antd";
3
4
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/pisellDatePicker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
2
3
  interface ToolBarProps {
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuProps } from "antd";
2
3
 
3
4
  //#region src/components/pisellMenu/types.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from "../filter/types.js";
2
3
  import { FormInstance } from "antd";
3
4
 
@@ -77,12 +77,14 @@ const convertBundleOption = (option, translationOriginal) => {
77
77
  };
78
78
  const convertBundle = (bundle, translationOriginal) => {
79
79
  const options = (bundle.option || []).map((option) => convertBundleOption(option, translationOriginal));
80
+ const bundlePrice = bundle.price_type === "markdown" && Number.isFinite(Number(bundle.price)) ? -Math.abs(Number(bundle.price)) : bundle.price;
80
81
  return _objectSpread2(_objectSpread2({}, bundle), {}, {
81
82
  title: bundle.title || bundle.bundle_title,
82
83
  id: bundle.bundle_id,
83
84
  product_id: bundle.bundle_product_id,
84
85
  _bundle_product_id: bundle.bundle_product_id,
85
86
  product_variant_id: bundle.bundle_variant_id,
87
+ price: bundlePrice,
86
88
  total: bundle.bundle_selling_price,
87
89
  origin_total: bundle.original_total,
88
90
  custom_price: bundle.custom_price,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/radio/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/section-footers/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/skeleton/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/time-picker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/upload/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
2
3
 
3
4
  //#region src/components/virtual-keyboard/Amount/types.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellBasicCardProps } from "./types.js";
2
3
  import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
3
4
  import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellSingleLineTextProps } from "../pisellSingleLineText/types.js";
2
3
  import { PisellLongTextProps } from "../pisellLongText/types.js";
3
4
  import { PisellNumberProps } from "../pisellNumber/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
2
3
  import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
3
4
  import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
2
3
  import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
3
4
  import { PisellStatisticProps } from "../cardMetricItem/index.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/appVersionControl/types.d.ts
2
3
  interface Version {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/calendar/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/checkbox/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LocalSettingsType } from "../../table/types.js";
2
3
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
3
4
  import { ColumnType } from "antd/es/table";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxGroupProps } from "./type.js";
2
3
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
2
3
  import { RadioGroupProps } from "./type.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
3
  import { TabsProps } from "./type.js";
3
4
  import * as _$react from "react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ModeType } from "../../dataSourceForm/type.js";
2
3
 
3
4
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionsItem } from "../../dataSourceForm/serve.js";
2
3
  import { Result } from "ahooks/es/useRequest/src/types";
3
4
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/date-picker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/drag-sort-tree/types.d.ts
2
3
  type IdType = string | number;
3
4
  type ValueProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from "../../types.js";
2
3
 
3
4
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
  import { InputProps, InputRef } from "antd";
3
4
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/pisellDatePicker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
2
3
  interface ToolBarProps {
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuProps } from "antd";
2
3
 
3
4
  //#region src/components/pisellMenu/types.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from "../filter/types.js";
2
3
  import { FormInstance } from "antd";
3
4
 
@@ -79,12 +79,14 @@ const convertBundleOption = (option, translationOriginal) => {
79
79
  };
80
80
  const convertBundle = (bundle, translationOriginal) => {
81
81
  const options = (bundle.option || []).map((option) => convertBundleOption(option, translationOriginal));
82
+ const bundlePrice = bundle.price_type === "markdown" && Number.isFinite(Number(bundle.price)) ? -Math.abs(Number(bundle.price)) : bundle.price;
82
83
  return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, bundle), {}, {
83
84
  title: bundle.title || bundle.bundle_title,
84
85
  id: bundle.bundle_id,
85
86
  product_id: bundle.bundle_product_id,
86
87
  _bundle_product_id: bundle.bundle_product_id,
87
88
  product_variant_id: bundle.bundle_variant_id,
89
+ price: bundlePrice,
88
90
  total: bundle.bundle_selling_price,
89
91
  origin_total: bundle.original_total,
90
92
  custom_price: bundle.custom_price,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/radio/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/section-footers/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/skeleton/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/time-picker/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as _$react from "react";
2
3
 
3
4
  //#region src/components/upload/index.d.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
2
3
 
3
4
  //#region src/components/virtual-keyboard/Amount/types.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.10.11",
3
+ "version": "1.10.12",
4
4
  "scripts": {
5
5
  "dev:tailwind-css": "tailwindcss -c ./tailwind.materials.config.cjs --postcss ./postcss.materials-tailwind.cjs -i ./src/tailwind-input.css -o ./src/pisell-materials.tw.css --watch",
6
6
  "build:tailwind-css:once": "tailwindcss -c ./tailwind.materials.config.cjs --postcss ./postcss.materials-tailwind.cjs -i ./src/tailwind-input.css -o ./src/pisell-materials.tw.css",
@@ -9,9 +9,6 @@
9
9
  "build": "pnpm run build:tailwind-css && father build",
10
10
  "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
11
11
  "lowcode:build": " build-scripts build --config ./build.lowcode.js",
12
- "build:tsdown": "tsdown",
13
- "lowcode:rsdev": "rsbuild dev",
14
- "lowcode:rsbuild": "rsbuild build",
15
12
  "test": "vitest",
16
13
  "test:ui": "vitest --ui",
17
14
  "test:run": "vitest run",