@pisell/materials 1.0.1057 → 1.0.1059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +223 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.js +196 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +177 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/components/index.js +4 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/index.js +5 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/locales.js +54 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellContactBrief/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +98 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.js +208 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/index.js +5 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellActionPanel/types.js +1 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +96 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.js +99 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/index.js +4 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBaseCard/types.js +1 -0
- package/es/components/pisellCurrency/PisellCurrency.js +18 -12
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +145 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +193 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/index.js +5 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellCustomerBrief/types.js +1 -0
- package/es/components/pisellEmail/PisellEmail.js +48 -42
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +474 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.js +450 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/index.js +4 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellEntityCard/types.js +1 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +32 -4
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +4 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +12 -2
- package/es/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/es/components/pisellLongText/PisellLongText.js +18 -12
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.js +8 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +14 -6
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNumber/PisellNumber.js +18 -12
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +18 -12
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +44 -33
- package/es/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/es/components/pisellPhone/utils/countryCodeHelper.js +5 -5
- package/es/components/pisellRating/PisellRating.js +7 -3
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +27 -20
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +14 -5
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellUrl/PisellUrl.js +48 -42
- package/es/components/pisellWalletPassCard/index.js +2 -1
- package/es/index.d.ts +15 -4
- package/es/index.js +8 -4
- package/es/theme/pisell-components.d.ts +14 -0
- package/es/theme/pisell-components.js +74 -0
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +231 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.js +188 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +154 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/components/index.js +29 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/index.js +29 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/locales.js +74 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellContactBrief/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +124 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.js +186 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/index.js +29 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellActionPanel/types.js +17 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +124 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.js +107 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/index.js +29 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBaseCard/types.js +17 -0
- package/lib/components/pisellCurrency/PisellCurrency.js +16 -10
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +143 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +171 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/index.js +29 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellCustomerBrief/types.js +17 -0
- package/lib/components/pisellEmail/PisellEmail.js +16 -10
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +426 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.js +349 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/index.js +29 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellEntityCard/types.js +17 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +22 -3
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +2 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +11 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/lib/components/pisellLongText/PisellLongText.js +16 -10
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.js +5 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +62 -53
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +42 -30
- package/lib/components/pisellNumber/PisellNumber.js +16 -10
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +16 -10
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +40 -24
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/lib/components/pisellPhone/constants/countryCodes.js +24 -24
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +16 -10
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +34 -35
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellUrl/PisellUrl.js +16 -10
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/index.d.ts +15 -4
- package/lib/index.js +18 -3
- package/lib/theme/pisell-components.d.ts +14 -0
- package/lib/theme/pisell-components.js +89 -0
- package/lowcode/pisell-action-panel/meta.ts +146 -0
- package/lowcode/pisell-action-panel/snippets.ts +42 -0
- package/lowcode/pisell-base-card/meta.ts +98 -0
- package/lowcode/pisell-base-card/snippets.ts +13 -0
- package/lowcode/pisell-contact-brief/meta.ts +178 -0
- package/lowcode/pisell-contact-brief/snippets.ts +40 -0
- package/lowcode/pisell-customer-brief/meta.ts +262 -0
- package/lowcode/pisell-customer-brief/snippets.ts +46 -0
- package/lowcode/pisell-entity-card/meta.ts +296 -0
- package/lowcode/pisell-entity-card/snippets.ts +41 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -114,12 +114,14 @@ __export(src_exports, {
|
|
|
114
114
|
Page: () => import_page.default,
|
|
115
115
|
PageHeader: () => import_page_header.default,
|
|
116
116
|
Pagination: () => import_antd.Pagination,
|
|
117
|
+
PisellActionPanel: () => import_pisellActionPanel.PisellActionPanel,
|
|
117
118
|
PisellAdjustPrice: () => import_pisellAdjustPrice.default,
|
|
118
119
|
PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
|
|
119
120
|
PisellAlert: () => import_pisellAlert.default,
|
|
120
121
|
PisellAnchor: () => import_pisellAnchor.default,
|
|
121
122
|
PisellAppCard: () => import_pisellAppCard.default,
|
|
122
123
|
PisellAvatar: () => import_pisellAvatar.default,
|
|
124
|
+
PisellBaseCard: () => import_pisellBaseCard.PisellBaseCard,
|
|
123
125
|
PisellBasicGrid: () => import_PisellBasicGrid.default,
|
|
124
126
|
PisellBatchActionBar: () => import_pisellBatchActionBar.default,
|
|
125
127
|
PisellCard: () => import_pisellCard.default,
|
|
@@ -127,12 +129,14 @@ __export(src_exports, {
|
|
|
127
129
|
PisellCards: () => import_PisellCards.default,
|
|
128
130
|
PisellCheckboxGroup: () => import_pisellCheckboxGroup.default,
|
|
129
131
|
PisellConfigProvider: () => import_pisell_config_provider.default,
|
|
132
|
+
PisellContactBrief: () => import_PisellContactBrief.PisellContactBrief,
|
|
130
133
|
PisellContainer: () => import_pisellContainer.default,
|
|
131
134
|
PisellContent: () => import_content.default,
|
|
132
135
|
PisellContext: () => import_context.default,
|
|
133
136
|
PisellCountdown: () => import_pisellCountdown.default,
|
|
134
137
|
PisellCurrency: () => import_pisellCurrency.PisellCurrency,
|
|
135
138
|
PisellCustomCheckboxGroup: () => import_pisellCustomCheckboxGroup.default,
|
|
139
|
+
PisellCustomerBrief: () => import_pisellCustomerBrief.PisellCustomerBrief,
|
|
136
140
|
PisellDataSourceContainer: () => import_pisellDataSourceContainer.default,
|
|
137
141
|
PisellDatePicker: () => import_pisellDatePicker.default,
|
|
138
142
|
PisellDateTimeDisplay: () => import_pisellDateTimeDisplay.default,
|
|
@@ -141,6 +145,7 @@ __export(src_exports, {
|
|
|
141
145
|
PisellDropdown: () => import_pisellDropdown.default,
|
|
142
146
|
PisellEmail: () => import_pisellEmail.PisellEmail,
|
|
143
147
|
PisellEmpty: () => import_pisellEmpty.default,
|
|
148
|
+
PisellEntityCard: () => import_pisellEntityCard.PisellEntityCard,
|
|
144
149
|
PisellExport: () => import_pisellExport.PisellExport,
|
|
145
150
|
PisellFields: () => import_PisellFields.default,
|
|
146
151
|
PisellFilter: () => import_pisellFilter.default,
|
|
@@ -274,9 +279,6 @@ var import_cascader = __toESM(require("./components/cascader"));
|
|
|
274
279
|
var import_checkbox = __toESM(require("./components/checkbox"));
|
|
275
280
|
var import_collapse = __toESM(require("./components/collapse"));
|
|
276
281
|
var import_config_provider = __toESM(require("./components/config-provider"));
|
|
277
|
-
var import_dataSourceSubForm = __toESM(require("./components/dataSourceComponents/dataSourceSubForm"));
|
|
278
|
-
var import_RecordListWrapper = __toESM(require("./components/dataSourceComponents/fields/RecordListWrapper"));
|
|
279
|
-
var import_Tabs = __toESM(require("./components/dataSourceComponents/fields/Tabs"));
|
|
280
282
|
var import_date_picker = __toESM(require("./components/date-picker"));
|
|
281
283
|
var import_drawer = __toESM(require("./components/drawer"));
|
|
282
284
|
var import_dropdown = __toESM(require("./components/dropdown"));
|
|
@@ -322,6 +324,11 @@ var import_walletCard = __toESM(require("./components/walletCard"));
|
|
|
322
324
|
var import_pisellWalletPassCard = __toESM(require("./components/pisellWalletPassCard"));
|
|
323
325
|
var import_pisellGoodPassCard = __toESM(require("./components/pisellGoodPassCard"));
|
|
324
326
|
var import_pisellAppCard = __toESM(require("./components/pisellAppCard"));
|
|
327
|
+
var import_pisellBaseCard = require("./components/pisellBaseCard");
|
|
328
|
+
var import_pisellEntityCard = require("./components/pisellEntityCard");
|
|
329
|
+
var import_PisellContactBrief = require("./components/PisellContactBrief");
|
|
330
|
+
var import_pisellCustomerBrief = require("./components/pisellCustomerBrief");
|
|
331
|
+
var import_pisellActionPanel = require("./components/pisellActionPanel");
|
|
325
332
|
var import_pisellMetricCard = __toESM(require("./components/pisellMetricCard"));
|
|
326
333
|
var import_pisellDateTimeDisplay = __toESM(require("./components/pisellDateTimeDisplay"));
|
|
327
334
|
var import_pisellTimeRangeDisplay = require("./components/pisellTimeRangeDisplay");
|
|
@@ -395,6 +402,9 @@ var import_Translation = __toESM(require("./components/dataSourceComponents/fiel
|
|
|
395
402
|
var import_Upload = __toESM(require("./components/dataSourceComponents/fields/Upload"));
|
|
396
403
|
var import_IconSelect = __toESM(require("./components/dataSourceComponents/fields/IconSelect"));
|
|
397
404
|
var import_BaseTranslation = __toESM(require("./components/dataSourceComponents/fields/Translation/BaseTranslation"));
|
|
405
|
+
var import_dataSourceSubForm = __toESM(require("./components/dataSourceComponents/dataSourceSubForm"));
|
|
406
|
+
var import_RecordListWrapper = __toESM(require("./components/dataSourceComponents/fields/RecordListWrapper"));
|
|
407
|
+
var import_Tabs = __toESM(require("./components/dataSourceComponents/fields/Tabs"));
|
|
398
408
|
var import_pisellMenu = __toESM(require("./components/pisellMenu"));
|
|
399
409
|
var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigationMenu"));
|
|
400
410
|
var import_page_header = __toESM(require("./components/page-header"));
|
|
@@ -540,12 +550,14 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
540
550
|
Page,
|
|
541
551
|
PageHeader,
|
|
542
552
|
Pagination,
|
|
553
|
+
PisellActionPanel,
|
|
543
554
|
PisellAdjustPrice,
|
|
544
555
|
PisellAdjustPriceInputNumber,
|
|
545
556
|
PisellAlert,
|
|
546
557
|
PisellAnchor,
|
|
547
558
|
PisellAppCard,
|
|
548
559
|
PisellAvatar,
|
|
560
|
+
PisellBaseCard,
|
|
549
561
|
PisellBasicGrid,
|
|
550
562
|
PisellBatchActionBar,
|
|
551
563
|
PisellCard,
|
|
@@ -553,12 +565,14 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
553
565
|
PisellCards,
|
|
554
566
|
PisellCheckboxGroup,
|
|
555
567
|
PisellConfigProvider,
|
|
568
|
+
PisellContactBrief,
|
|
556
569
|
PisellContainer,
|
|
557
570
|
PisellContent,
|
|
558
571
|
PisellContext,
|
|
559
572
|
PisellCountdown,
|
|
560
573
|
PisellCurrency,
|
|
561
574
|
PisellCustomCheckboxGroup,
|
|
575
|
+
PisellCustomerBrief,
|
|
562
576
|
PisellDataSourceContainer,
|
|
563
577
|
PisellDatePicker,
|
|
564
578
|
PisellDateTimeDisplay,
|
|
@@ -567,6 +581,7 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
567
581
|
PisellDropdown,
|
|
568
582
|
PisellEmail,
|
|
569
583
|
PisellEmpty,
|
|
584
|
+
PisellEntityCard,
|
|
570
585
|
PisellExport,
|
|
571
586
|
PisellFields,
|
|
572
587
|
PisellFilter,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
2
|
+
/**
|
|
3
|
+
* Pisell 项目统一的 Ant Design Token 配置
|
|
4
|
+
* 基于 Figma 设计规范
|
|
5
|
+
*
|
|
6
|
+
* 使用场景:
|
|
7
|
+
* - 低代码平台(page/index.tsx)
|
|
8
|
+
* - Storybook 预览
|
|
9
|
+
* - 其他需要主题配置的场景
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* 获取完整的主题配置
|
|
13
|
+
*/
|
|
14
|
+
export declare function getPisellComponentsThemeConfig(): ThemeConfig;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/theme/pisell-components.ts
|
|
20
|
+
var pisell_components_exports = {};
|
|
21
|
+
__export(pisell_components_exports, {
|
|
22
|
+
getPisellComponentsThemeConfig: () => getPisellComponentsThemeConfig
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(pisell_components_exports);
|
|
25
|
+
function getPisellComponentsThemeConfig() {
|
|
26
|
+
return {
|
|
27
|
+
components: {
|
|
28
|
+
Input: {
|
|
29
|
+
controlHeight: 48,
|
|
30
|
+
paddingInline: 16,
|
|
31
|
+
paddingBlock: 12,
|
|
32
|
+
activeShadow: "0px 0px 0px 4px #F4EBFF, 0px 1px 2px rgba(16, 24, 40, 0.05)",
|
|
33
|
+
activeBorderColor: "rgb(214,187,251)",
|
|
34
|
+
paddingBlockLG: 12,
|
|
35
|
+
paddingBlockSM: 8,
|
|
36
|
+
paddingInlineLG: 16,
|
|
37
|
+
paddingInlineSM: 8,
|
|
38
|
+
controlHeightLG: 52,
|
|
39
|
+
controlHeightSM: 44,
|
|
40
|
+
borderRadius: 8,
|
|
41
|
+
paddingXXS: 8
|
|
42
|
+
},
|
|
43
|
+
InputNumber: {
|
|
44
|
+
controlHeight: 48,
|
|
45
|
+
paddingInline: 16,
|
|
46
|
+
paddingBlock: 12,
|
|
47
|
+
activeShadow: "0px 0px 0px 4px #F4EBFF, 0px 1px 2px rgba(16, 24, 40, 0.05)",
|
|
48
|
+
activeBorderColor: "rgb(214,187,251)",
|
|
49
|
+
paddingBlockLG: 12,
|
|
50
|
+
paddingBlockSM: 8,
|
|
51
|
+
paddingInlineLG: 16,
|
|
52
|
+
paddingInlineSM: 8,
|
|
53
|
+
controlHeightLG: 52,
|
|
54
|
+
controlHeightSM: 44,
|
|
55
|
+
borderRadius: 8,
|
|
56
|
+
paddingXXS: 8,
|
|
57
|
+
handleWidth: 20
|
|
58
|
+
},
|
|
59
|
+
Select: {
|
|
60
|
+
controlHeight: 48,
|
|
61
|
+
optionHeight: 48,
|
|
62
|
+
fontSize: 16,
|
|
63
|
+
fontSizeLG: 18,
|
|
64
|
+
fontSizeSM: 14,
|
|
65
|
+
borderRadius: 8,
|
|
66
|
+
boxShadowSecondary: "0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08)",
|
|
67
|
+
optionSelectedBg: "rgb(244,235,255)",
|
|
68
|
+
multipleItemBg: "rgb(234,236,240)",
|
|
69
|
+
controlHeightLG: 52,
|
|
70
|
+
controlHeightSM: 40,
|
|
71
|
+
borderRadiusSM: 8,
|
|
72
|
+
paddingXXS: 6,
|
|
73
|
+
optionPadding: "10px 8px",
|
|
74
|
+
multipleItemHeight: 36,
|
|
75
|
+
multipleItemHeightLG: 40
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
token: {
|
|
79
|
+
colorPrimary: "#7f56d9",
|
|
80
|
+
colorInfo: "#7f56d9",
|
|
81
|
+
borderRadius: 8,
|
|
82
|
+
colorPrimaryHover: "#d6bbfb"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
getPisellComponentsThemeConfig
|
|
89
|
+
});
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellActionPanel',
|
|
6
|
+
title: '操作面板',
|
|
7
|
+
category: '通用',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellActionPanel',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
experimental: { hideSelectTools: true },
|
|
20
|
+
configure: {
|
|
21
|
+
component: { isContainer: false },
|
|
22
|
+
supports: {
|
|
23
|
+
style: true,
|
|
24
|
+
events: [],
|
|
25
|
+
},
|
|
26
|
+
props: [
|
|
27
|
+
{
|
|
28
|
+
title: { label: { type: 'i18n', 'en-US': 'Data', 'zh-CN': '数据' } },
|
|
29
|
+
display: 'block',
|
|
30
|
+
type: 'group',
|
|
31
|
+
items: [
|
|
32
|
+
{
|
|
33
|
+
name: 'groups',
|
|
34
|
+
title: {
|
|
35
|
+
label: { type: 'i18n', 'en-US': 'Groups', 'zh-CN': '操作分组' },
|
|
36
|
+
tip: 'groups | 分组列表,每组含 items 操作项',
|
|
37
|
+
},
|
|
38
|
+
propType: { type: 'arrayOf', value: 'object' },
|
|
39
|
+
setter: {
|
|
40
|
+
componentName: 'ArraySetter',
|
|
41
|
+
props: {
|
|
42
|
+
itemSetter: {
|
|
43
|
+
componentName: 'ObjectSetter',
|
|
44
|
+
props: {
|
|
45
|
+
config: {
|
|
46
|
+
items: [
|
|
47
|
+
{
|
|
48
|
+
name: 'items',
|
|
49
|
+
title: { label: '操作项列表' },
|
|
50
|
+
propType: { type: 'arrayOf', value: 'object' },
|
|
51
|
+
setter: {
|
|
52
|
+
componentName: 'ArraySetter',
|
|
53
|
+
props: {
|
|
54
|
+
itemSetter: {
|
|
55
|
+
componentName: 'ObjectSetter',
|
|
56
|
+
props: {
|
|
57
|
+
config: {
|
|
58
|
+
items: [
|
|
59
|
+
{ name: 'label', title: { label: '文案' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
60
|
+
{ name: 'priority', title: { label: '层级' }, propType: { type: 'oneOf', value: ['primary', 'secondary', 'danger', 'default'] }, setter: 'RadioGroupSetter' },
|
|
61
|
+
{ name: 'visible', title: { label: '显示' }, propType: 'bool', setter: 'BoolSetter' },
|
|
62
|
+
{ name: 'disabled', title: { label: '禁用' }, propType: 'bool', setter: 'BoolSetter' },
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{ name: 'visible', title: { label: '显示该组' }, propType: 'bool', setter: 'BoolSetter' },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: { label: { type: 'i18n', 'en-US': 'Layout', 'zh-CN': '布局' } },
|
|
82
|
+
display: 'block',
|
|
83
|
+
type: 'group',
|
|
84
|
+
items: [
|
|
85
|
+
{
|
|
86
|
+
name: 'layout',
|
|
87
|
+
title: { label: '布局方式' },
|
|
88
|
+
propType: { type: 'oneOf', value: ['horizontal', 'vertical', 'grid'] },
|
|
89
|
+
defaultValue: 'horizontal',
|
|
90
|
+
setter: [
|
|
91
|
+
{
|
|
92
|
+
componentName: 'RadioGroupSetter',
|
|
93
|
+
props: {
|
|
94
|
+
options: [
|
|
95
|
+
{ title: '水平', value: 'horizontal' },
|
|
96
|
+
{ title: '竖向', value: 'vertical' },
|
|
97
|
+
{ title: '网格', value: 'grid' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
'VariableSetter',
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'align',
|
|
106
|
+
title: { label: '对齐方式' },
|
|
107
|
+
propType: { type: 'oneOf', value: ['left', 'center', 'right', 'space-between'] },
|
|
108
|
+
defaultValue: 'left',
|
|
109
|
+
setter: [
|
|
110
|
+
{
|
|
111
|
+
componentName: 'RadioGroupSetter',
|
|
112
|
+
props: {
|
|
113
|
+
options: [
|
|
114
|
+
{ title: '左', value: 'left' },
|
|
115
|
+
{ title: '居中', value: 'center' },
|
|
116
|
+
{ title: '右', value: 'right' },
|
|
117
|
+
{ title: '两端', value: 'space-between' },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
'VariableSetter',
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'overflowStrategy',
|
|
126
|
+
title: { label: '溢出策略' },
|
|
127
|
+
propType: { type: 'oneOf', value: ['wrap', 'scroll', 'moreMenu'] },
|
|
128
|
+
defaultValue: 'wrap',
|
|
129
|
+
setter: 'RadioGroupSetter',
|
|
130
|
+
},
|
|
131
|
+
{ name: 'groupGap', title: { label: '组间距' }, propType: { type: 'oneOfType', value: ['number', 'string'] }, setter: ['NumberSetter', 'StringSetter'] },
|
|
132
|
+
{ name: 'itemGap', title: { label: '项间距' }, propType: { type: 'oneOfType', value: ['number', 'string'] }, defaultValue: 8, setter: ['NumberSetter', 'StringSetter'] },
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
title: { label: { type: 'i18n', 'en-US': 'Base', 'zh-CN': '基础' } },
|
|
137
|
+
display: 'block',
|
|
138
|
+
type: 'group',
|
|
139
|
+
items: [
|
|
140
|
+
{ name: 'className', title: { label: '样式类名' }, propType: 'string', setter: 'StringSetter' },
|
|
141
|
+
{ name: 'style', title: { label: '样式' }, propType: 'object', setter: 'StyleSetter' },
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '操作面板',
|
|
4
|
+
screenshot: '',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellActionPanel',
|
|
7
|
+
props: {
|
|
8
|
+
groups: [
|
|
9
|
+
{
|
|
10
|
+
items: [
|
|
11
|
+
{ label: '取消', key: 'cancel' },
|
|
12
|
+
{ label: '确定', priority: 'primary', key: 'submit' },
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
layout: 'horizontal',
|
|
17
|
+
align: 'right',
|
|
18
|
+
overflowStrategy: 'wrap',
|
|
19
|
+
itemGap: 8,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: '操作面板-竖向',
|
|
25
|
+
screenshot: '',
|
|
26
|
+
schema: {
|
|
27
|
+
componentName: 'PisellActionPanel',
|
|
28
|
+
props: {
|
|
29
|
+
groups: [
|
|
30
|
+
{
|
|
31
|
+
items: [
|
|
32
|
+
{ label: '主操作', priority: 'primary' },
|
|
33
|
+
{ label: '次操作' },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
layout: 'vertical',
|
|
38
|
+
align: 'left',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
];
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellBaseCard',
|
|
6
|
+
title: '基础卡片',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellBaseCard',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
experimental: { hideSelectTools: true },
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
name: 'className',
|
|
23
|
+
title: {
|
|
24
|
+
label: { type: 'i18n', 'en-US': 'Class Name', 'zh-CN': '样式类名' },
|
|
25
|
+
tip: 'className | 根节点自定义类名',
|
|
26
|
+
},
|
|
27
|
+
propType: 'string',
|
|
28
|
+
setter: ['PisellI18nSetter', 'StringSetter'],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'style',
|
|
32
|
+
title: {
|
|
33
|
+
label: { type: 'i18n', 'en-US': 'Style', 'zh-CN': '样式' },
|
|
34
|
+
tip: 'style | 默认状态下内联样式(背景、圆角、边框、阴影、padding、宽高等)',
|
|
35
|
+
},
|
|
36
|
+
propType: 'object',
|
|
37
|
+
setter: 'StyleSetter',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'hoverStyle',
|
|
41
|
+
title: {
|
|
42
|
+
label: { type: 'i18n', 'en-US': 'Hover Style', 'zh-CN': '悬停样式' },
|
|
43
|
+
tip: 'hoverStyle | 悬停时的样式覆盖',
|
|
44
|
+
},
|
|
45
|
+
propType: 'object',
|
|
46
|
+
setter: 'StyleSetter',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'activeStyle',
|
|
50
|
+
title: {
|
|
51
|
+
label: { type: 'i18n', 'en-US': 'Active Style', 'zh-CN': '按下样式' },
|
|
52
|
+
tip: 'activeStyle | 按下时的样式覆盖',
|
|
53
|
+
},
|
|
54
|
+
propType: 'object',
|
|
55
|
+
setter: 'StyleSetter',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'disabledStyle',
|
|
59
|
+
title: {
|
|
60
|
+
label: { type: 'i18n', 'en-US': 'Disabled Style', 'zh-CN': '禁用样式' },
|
|
61
|
+
tip: 'disabledStyle | 禁用时的样式覆盖',
|
|
62
|
+
},
|
|
63
|
+
propType: 'object',
|
|
64
|
+
setter: 'StyleSetter',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'clickable',
|
|
68
|
+
title: {
|
|
69
|
+
label: { type: 'i18n', 'en-US': 'Clickable', 'zh-CN': '可点击' },
|
|
70
|
+
tip: 'clickable | 是否可点击(可聚焦并触发 onClick)',
|
|
71
|
+
},
|
|
72
|
+
propType: 'bool',
|
|
73
|
+
defaultValue: true,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'disabled',
|
|
77
|
+
title: {
|
|
78
|
+
label: { type: 'i18n', 'en-US': 'Disabled', 'zh-CN': '禁用' },
|
|
79
|
+
tip: 'disabled | 是否禁用',
|
|
80
|
+
},
|
|
81
|
+
propType: 'bool',
|
|
82
|
+
defaultValue: false,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
configure: {
|
|
86
|
+
component: { isContainer: true },
|
|
87
|
+
supports: {
|
|
88
|
+
style: true,
|
|
89
|
+
events: [
|
|
90
|
+
{
|
|
91
|
+
name: 'onClick',
|
|
92
|
+
template:
|
|
93
|
+
"onClick(event,${extParams}){\n// 点击卡片时的回调\nconsole.log('onClick', event);}",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|