@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
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { UserOutlined, EditOutlined, PlusOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
8
|
+
import { PisellEntityCard } from "./PisellEntityCard";
|
|
9
|
+
var meta = {
|
|
10
|
+
title: 'Data Display/PisellEntityCard',
|
|
11
|
+
component: PisellEntityCard,
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
decorators: [function (Story) {
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
style: {
|
|
16
|
+
width: 340
|
|
17
|
+
}
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Story, null));
|
|
19
|
+
}],
|
|
20
|
+
argTypes: {
|
|
21
|
+
density: {
|
|
22
|
+
description: '信息密度',
|
|
23
|
+
control: 'select',
|
|
24
|
+
options: ['B1', 'B2', 'B5', 'B9']
|
|
25
|
+
},
|
|
26
|
+
layout: {
|
|
27
|
+
description: '布局方向',
|
|
28
|
+
control: 'radio',
|
|
29
|
+
options: ['horizontal', 'vertical']
|
|
30
|
+
},
|
|
31
|
+
width: {
|
|
32
|
+
description: '卡片宽度',
|
|
33
|
+
control: 'select',
|
|
34
|
+
options: ['content', 'full', 300, 340, 400]
|
|
35
|
+
},
|
|
36
|
+
showMedia: {
|
|
37
|
+
description: '显示媒体区',
|
|
38
|
+
control: 'boolean'
|
|
39
|
+
},
|
|
40
|
+
showPrimaryText: {
|
|
41
|
+
description: '显示主文案',
|
|
42
|
+
control: 'boolean'
|
|
43
|
+
},
|
|
44
|
+
showSecondaryText: {
|
|
45
|
+
description: '显示次级文案',
|
|
46
|
+
control: 'boolean'
|
|
47
|
+
},
|
|
48
|
+
showTags: {
|
|
49
|
+
description: '显示标签',
|
|
50
|
+
control: 'boolean'
|
|
51
|
+
},
|
|
52
|
+
showActions: {
|
|
53
|
+
description: '显示底部操作',
|
|
54
|
+
control: 'boolean'
|
|
55
|
+
},
|
|
56
|
+
swipeToDelete: {
|
|
57
|
+
description: '开启左滑删除',
|
|
58
|
+
control: 'boolean'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
args: {
|
|
62
|
+
width: 340
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export default meta;
|
|
66
|
+
var defaultPrimary = '张三';
|
|
67
|
+
var defaultSecondary = [{
|
|
68
|
+
text: '产品经理 · 杭州'
|
|
69
|
+
}, {
|
|
70
|
+
text: '钉钉事业部'
|
|
71
|
+
}];
|
|
72
|
+
var defaultTags = [{
|
|
73
|
+
text: '在职'
|
|
74
|
+
}, {
|
|
75
|
+
text: '正式'
|
|
76
|
+
}];
|
|
77
|
+
/** 头像:使用带色块背景的占位图,便于在 Storybook 中看清尺寸 */
|
|
78
|
+
var defaultMedia = {
|
|
79
|
+
type: 'avatar',
|
|
80
|
+
src: 'https://ui-avatars.com/api/?name=Zhang+San&background=4a90d9&color=fff&size=48',
|
|
81
|
+
alt: '头像',
|
|
82
|
+
size: 48
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** 默认:横向 B2,主文案 + 次级 + 头像 */
|
|
86
|
+
export var Default = {
|
|
87
|
+
args: {
|
|
88
|
+
primaryText: defaultPrimary,
|
|
89
|
+
secondaryTexts: defaultSecondary,
|
|
90
|
+
media: defaultMedia,
|
|
91
|
+
density: 'B2',
|
|
92
|
+
layout: 'horizontal'
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** 仅主文案(最小) */
|
|
97
|
+
export var PrimaryOnly = {
|
|
98
|
+
args: {
|
|
99
|
+
primaryText: '实体名称',
|
|
100
|
+
showMedia: false,
|
|
101
|
+
showSecondaryText: false,
|
|
102
|
+
showTags: false,
|
|
103
|
+
density: 'B1'
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** 主文案 + 头像 一行 */
|
|
108
|
+
export var B1Line = {
|
|
109
|
+
args: {
|
|
110
|
+
primaryText: defaultPrimary,
|
|
111
|
+
media: _objectSpread(_objectSpread({}, defaultMedia), {}, {
|
|
112
|
+
src: 'https://ui-avatars.com/api/?name=Zhang+San&background=4a90d9&color=fff&size=24',
|
|
113
|
+
size: 24
|
|
114
|
+
}),
|
|
115
|
+
density: 'B1',
|
|
116
|
+
layout: 'horizontal',
|
|
117
|
+
showSecondaryText: false,
|
|
118
|
+
showTags: false
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** B2 横向:头像 + 主 + 次级两行 */
|
|
123
|
+
export var B2Horizontal = {
|
|
124
|
+
args: {
|
|
125
|
+
primaryText: defaultPrimary,
|
|
126
|
+
secondaryTexts: defaultSecondary,
|
|
127
|
+
media: defaultMedia,
|
|
128
|
+
density: 'B2',
|
|
129
|
+
layout: 'horizontal'
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** B2 竖向 */
|
|
134
|
+
export var B2Vertical = {
|
|
135
|
+
args: {
|
|
136
|
+
primaryText: defaultPrimary,
|
|
137
|
+
secondaryTexts: defaultSecondary,
|
|
138
|
+
media: _objectSpread(_objectSpread({}, defaultMedia), {}, {
|
|
139
|
+
src: 'https://ui-avatars.com/api/?name=Zhang+San&background=4a90d9&color=fff&size=64',
|
|
140
|
+
size: 64
|
|
141
|
+
}),
|
|
142
|
+
density: 'B2',
|
|
143
|
+
layout: 'vertical'
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/** B5:次级最多 5 行 */
|
|
148
|
+
export var B5Standard = {
|
|
149
|
+
args: {
|
|
150
|
+
primaryText: defaultPrimary,
|
|
151
|
+
secondaryTexts: [{
|
|
152
|
+
text: '产品经理 · 杭州'
|
|
153
|
+
}, {
|
|
154
|
+
text: '钉钉事业部'
|
|
155
|
+
}, {
|
|
156
|
+
text: '第三行描述'
|
|
157
|
+
}, {
|
|
158
|
+
text: '第四行'
|
|
159
|
+
}, {
|
|
160
|
+
text: '第五行'
|
|
161
|
+
}],
|
|
162
|
+
tags: defaultTags,
|
|
163
|
+
media: defaultMedia,
|
|
164
|
+
density: 'B5',
|
|
165
|
+
layout: 'horizontal'
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/** B9 全部展示 */
|
|
170
|
+
export var B9Extended = {
|
|
171
|
+
args: {
|
|
172
|
+
primaryText: defaultPrimary,
|
|
173
|
+
secondaryTexts: [].concat(defaultSecondary, [{
|
|
174
|
+
text: '带提示的说明',
|
|
175
|
+
showTooltip: true
|
|
176
|
+
}]),
|
|
177
|
+
tags: defaultTags,
|
|
178
|
+
media: defaultMedia,
|
|
179
|
+
density: 'B9',
|
|
180
|
+
layout: 'horizontal'
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/** Action 区域默认关闭(不传 showActions 或 showActions: false) */
|
|
185
|
+
export var ActionDefaultOff = {
|
|
186
|
+
args: {
|
|
187
|
+
primaryText: defaultPrimary,
|
|
188
|
+
secondaryTexts: defaultSecondary,
|
|
189
|
+
media: defaultMedia,
|
|
190
|
+
showActions: false,
|
|
191
|
+
actions: [{
|
|
192
|
+
type: 'text',
|
|
193
|
+
label: '查看详情',
|
|
194
|
+
onClick: function onClick() {}
|
|
195
|
+
}]
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** Action 仅文本 */
|
|
200
|
+
export var ActionTextOnly = {
|
|
201
|
+
args: {
|
|
202
|
+
primaryText: defaultPrimary,
|
|
203
|
+
secondaryTexts: defaultSecondary,
|
|
204
|
+
media: defaultMedia,
|
|
205
|
+
showActions: true,
|
|
206
|
+
actions: [{
|
|
207
|
+
type: 'text',
|
|
208
|
+
label: '查看详情',
|
|
209
|
+
onClick: function onClick() {
|
|
210
|
+
return console.log('查看详情');
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
type: 'text',
|
|
214
|
+
label: 'Add Contact',
|
|
215
|
+
onClick: function onClick() {
|
|
216
|
+
return console.log('Add Contact');
|
|
217
|
+
}
|
|
218
|
+
}]
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/** Action 仅按钮 */
|
|
223
|
+
export var ActionButtonOnly = {
|
|
224
|
+
args: {
|
|
225
|
+
primaryText: defaultPrimary,
|
|
226
|
+
secondaryTexts: defaultSecondary,
|
|
227
|
+
media: defaultMedia,
|
|
228
|
+
showActions: true,
|
|
229
|
+
actions: [{
|
|
230
|
+
type: 'button',
|
|
231
|
+
label: '选择',
|
|
232
|
+
onClick: function onClick() {
|
|
233
|
+
return console.log('选择');
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
type: 'button',
|
|
237
|
+
label: '编辑',
|
|
238
|
+
onClick: function onClick() {
|
|
239
|
+
return console.log('编辑');
|
|
240
|
+
}
|
|
241
|
+
}]
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/** Action 仅图标(Figma 支持右侧按钮 - 编辑图标) */
|
|
246
|
+
export var ActionIconOnly = {
|
|
247
|
+
args: {
|
|
248
|
+
primaryText: 'Bill Camp',
|
|
249
|
+
secondaryTexts: [{
|
|
250
|
+
text: 'Billcamp@pisell.com'
|
|
251
|
+
}],
|
|
252
|
+
media: defaultMedia,
|
|
253
|
+
showActions: true,
|
|
254
|
+
actions: [{
|
|
255
|
+
type: 'icon',
|
|
256
|
+
icon: /*#__PURE__*/React.createElement(EditOutlined, null),
|
|
257
|
+
onClick: function onClick() {
|
|
258
|
+
return console.log('编辑');
|
|
259
|
+
}
|
|
260
|
+
}]
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
/** Action 混合:文本 + 按钮 + 图标,并各自自定义样式 */
|
|
265
|
+
export var ActionMixedWithCustomStyle = {
|
|
266
|
+
args: {
|
|
267
|
+
primaryText: defaultPrimary,
|
|
268
|
+
secondaryTexts: defaultSecondary,
|
|
269
|
+
media: defaultMedia,
|
|
270
|
+
showActions: true,
|
|
271
|
+
actions: [{
|
|
272
|
+
type: 'text',
|
|
273
|
+
label: 'Add Contact',
|
|
274
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
|
|
275
|
+
onClick: function onClick() {
|
|
276
|
+
return console.log('Add Contact');
|
|
277
|
+
},
|
|
278
|
+
style: {
|
|
279
|
+
color: '#1677ff'
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
type: 'button',
|
|
283
|
+
label: '选择',
|
|
284
|
+
onClick: function onClick() {
|
|
285
|
+
return console.log('选择');
|
|
286
|
+
},
|
|
287
|
+
style: {
|
|
288
|
+
borderColor: '#52c41a',
|
|
289
|
+
color: '#52c41a'
|
|
290
|
+
}
|
|
291
|
+
}, {
|
|
292
|
+
type: 'icon',
|
|
293
|
+
icon: /*#__PURE__*/React.createElement(EditOutlined, null),
|
|
294
|
+
onClick: function onClick() {
|
|
295
|
+
return console.log('编辑');
|
|
296
|
+
},
|
|
297
|
+
style: {
|
|
298
|
+
color: '#475467'
|
|
299
|
+
}
|
|
300
|
+
}, {
|
|
301
|
+
type: 'icon',
|
|
302
|
+
icon: /*#__PURE__*/React.createElement(DeleteOutlined, null),
|
|
303
|
+
onClick: function onClick() {
|
|
304
|
+
return console.log('删除');
|
|
305
|
+
},
|
|
306
|
+
className: 'pisell-entity-card-action-icon',
|
|
307
|
+
style: {
|
|
308
|
+
color: '#ff4d4f'
|
|
309
|
+
}
|
|
310
|
+
}]
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/** 带底部操作(兼容旧名) */
|
|
315
|
+
export var WithActions = {
|
|
316
|
+
args: {
|
|
317
|
+
primaryText: defaultPrimary,
|
|
318
|
+
secondaryTexts: defaultSecondary,
|
|
319
|
+
media: defaultMedia,
|
|
320
|
+
showActions: true,
|
|
321
|
+
actions: [{
|
|
322
|
+
type: 'text',
|
|
323
|
+
label: '查看详情',
|
|
324
|
+
onClick: function onClick() {
|
|
325
|
+
return console.log('查看');
|
|
326
|
+
}
|
|
327
|
+
}, {
|
|
328
|
+
type: 'button',
|
|
329
|
+
label: '选择',
|
|
330
|
+
onClick: function onClick() {
|
|
331
|
+
return console.log('选择');
|
|
332
|
+
}
|
|
333
|
+
}]
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/** 左滑删除(需在真机或模拟 touch 下左滑验证) */
|
|
338
|
+
export var SwipeToDelete = {
|
|
339
|
+
args: {
|
|
340
|
+
primaryText: defaultPrimary,
|
|
341
|
+
secondaryTexts: defaultSecondary,
|
|
342
|
+
media: defaultMedia,
|
|
343
|
+
swipeToDelete: true,
|
|
344
|
+
onDelete: function onDelete() {
|
|
345
|
+
return console.log('onDelete');
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
/** 标签 inline */
|
|
351
|
+
export var TagPositionInline = {
|
|
352
|
+
args: {
|
|
353
|
+
primaryText: defaultPrimary,
|
|
354
|
+
tags: defaultTags,
|
|
355
|
+
tagPosition: 'inline',
|
|
356
|
+
showMedia: false,
|
|
357
|
+
showSecondaryText: false
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
/** 宽度撑满父容器 */
|
|
362
|
+
export var WidthFull = {
|
|
363
|
+
args: {
|
|
364
|
+
primaryText: defaultPrimary,
|
|
365
|
+
secondaryTexts: defaultSecondary,
|
|
366
|
+
media: defaultMedia,
|
|
367
|
+
width: 'full'
|
|
368
|
+
},
|
|
369
|
+
decorators: [function (Story) {
|
|
370
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
371
|
+
style: {
|
|
372
|
+
width: 340
|
|
373
|
+
}
|
|
374
|
+
}, /*#__PURE__*/React.createElement(Story, null));
|
|
375
|
+
}]
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
/** 自定义主文案插槽 */
|
|
379
|
+
export var SlotPrimary = {
|
|
380
|
+
args: {
|
|
381
|
+
primaryText: '不应显示',
|
|
382
|
+
renderPrimary: function renderPrimary() {
|
|
383
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
384
|
+
style: {
|
|
385
|
+
fontWeight: 700,
|
|
386
|
+
color: '#1677ff'
|
|
387
|
+
}
|
|
388
|
+
}, "\u81EA\u5B9A\u4E49\u4E3B\u6587\u6848");
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/** 缩略图类型媒体 */
|
|
394
|
+
export var MediaThumbnail = {
|
|
395
|
+
args: {
|
|
396
|
+
primaryText: '商品名称',
|
|
397
|
+
secondaryTexts: [{
|
|
398
|
+
text: '¥99.00'
|
|
399
|
+
}],
|
|
400
|
+
media: {
|
|
401
|
+
type: 'thumbnail',
|
|
402
|
+
src: 'https://picsum.photos/seed/product/128/128',
|
|
403
|
+
alt: '商品图',
|
|
404
|
+
size: 64,
|
|
405
|
+
shape: 'square'
|
|
406
|
+
},
|
|
407
|
+
density: 'B2'
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
/** 图标类型媒体 */
|
|
412
|
+
export var MediaIcon = {
|
|
413
|
+
args: {
|
|
414
|
+
primaryText: defaultPrimary,
|
|
415
|
+
secondaryTexts: defaultSecondary,
|
|
416
|
+
media: {
|
|
417
|
+
type: 'icon',
|
|
418
|
+
icon: /*#__PURE__*/React.createElement(UserOutlined, {
|
|
419
|
+
style: {
|
|
420
|
+
fontSize: 24
|
|
421
|
+
}
|
|
422
|
+
}),
|
|
423
|
+
size: 40,
|
|
424
|
+
color: '#1677ff'
|
|
425
|
+
},
|
|
426
|
+
density: 'B2'
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/** 可点击卡片 */
|
|
431
|
+
export var Clickable = {
|
|
432
|
+
args: {
|
|
433
|
+
primaryText: defaultPrimary,
|
|
434
|
+
secondaryTexts: defaultSecondary,
|
|
435
|
+
media: defaultMedia,
|
|
436
|
+
onClick: function onClick() {
|
|
437
|
+
return alert('卡片被点击');
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
/** 禁用态 */
|
|
443
|
+
export var Disabled = {
|
|
444
|
+
args: {
|
|
445
|
+
primaryText: defaultPrimary,
|
|
446
|
+
secondaryTexts: defaultSecondary,
|
|
447
|
+
media: defaultMedia,
|
|
448
|
+
disabled: true
|
|
449
|
+
}
|
|
450
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellEntityCard 组件导出
|
|
3
|
+
*/
|
|
4
|
+
export { PisellEntityCard } from './PisellEntityCard';
|
|
5
|
+
export type { PisellEntityCardProps, EntityCardDensity, EntityCardLayout, EntityCardWidth, EntityCardMediaType, EntityCardMediaConfig, EntityCardSecondaryItem, EntityCardTagItem, EntityCardActionItem, EntityCardTagPosition, } from './types';
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { PisellBaseCardProps } from '../pisellBaseCard/types';
|
|
3
|
+
/**
|
|
4
|
+
* 实体卡信息密度等级
|
|
5
|
+
* - B1: 最小单位,一行
|
|
6
|
+
* - B2: 主+次级两行
|
|
7
|
+
* - B5: 次级最多 5 行
|
|
8
|
+
* - B9: 全部展示
|
|
9
|
+
*/
|
|
10
|
+
export declare type EntityCardDensity = 'B1' | 'B2' | 'B5' | 'B9';
|
|
11
|
+
/**
|
|
12
|
+
* 实体卡布局方向
|
|
13
|
+
*/
|
|
14
|
+
export declare type EntityCardLayout = 'horizontal' | 'vertical';
|
|
15
|
+
/**
|
|
16
|
+
* 实体卡宽度模式
|
|
17
|
+
* - content: 由内容撑满
|
|
18
|
+
* - full: 撑满父容器
|
|
19
|
+
* - number: 固定像素宽度
|
|
20
|
+
*/
|
|
21
|
+
export declare type EntityCardWidth = 'content' | 'full' | number;
|
|
22
|
+
/**
|
|
23
|
+
* 媒体类型:头像 / 缩略图 / 图标
|
|
24
|
+
*/
|
|
25
|
+
export declare type EntityCardMediaType = 'avatar' | 'thumbnail' | 'icon';
|
|
26
|
+
/**
|
|
27
|
+
* 实体卡媒体配置(头像、缩略图、图标)
|
|
28
|
+
*/
|
|
29
|
+
export interface EntityCardMediaConfig {
|
|
30
|
+
/** 类型 */
|
|
31
|
+
type: EntityCardMediaType;
|
|
32
|
+
/** 图片地址(avatar/thumbnail 使用) */
|
|
33
|
+
src?: string;
|
|
34
|
+
/** 替换文本 / 描述 */
|
|
35
|
+
alt?: string;
|
|
36
|
+
/** 图标节点(type 为 icon 时使用) */
|
|
37
|
+
icon?: ReactNode;
|
|
38
|
+
/** 尺寸,如 24、48、64 或 CSS 值 */
|
|
39
|
+
size?: number | string;
|
|
40
|
+
/** 形状(avatar/thumbnail):circle | square */
|
|
41
|
+
shape?: 'circle' | 'square';
|
|
42
|
+
/** 图标颜色(type 为 icon 时) */
|
|
43
|
+
color?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* 次级文案单项(可带提示)
|
|
47
|
+
*/
|
|
48
|
+
export interface EntityCardSecondaryItem {
|
|
49
|
+
/** 文本内容 */
|
|
50
|
+
text: string;
|
|
51
|
+
/** 是否显示提示 icon(如 info-circle) */
|
|
52
|
+
showTooltip?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 实体卡标签项
|
|
56
|
+
*/
|
|
57
|
+
export interface EntityCardTagItem {
|
|
58
|
+
/** 标签文案 */
|
|
59
|
+
text: string;
|
|
60
|
+
/** 可选自定义样式 */
|
|
61
|
+
style?: CSSProperties;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 实体卡底部操作项
|
|
65
|
+
* 支持文本、按钮、图标三种形式,可各自通过 style / className 更改样式
|
|
66
|
+
*/
|
|
67
|
+
export interface EntityCardActionItem {
|
|
68
|
+
/** 展示形式:文本 / 按钮 / 图标 */
|
|
69
|
+
type: 'text' | 'button' | 'icon';
|
|
70
|
+
/** 文案(text/button 时显示) */
|
|
71
|
+
label?: string;
|
|
72
|
+
/** 图标节点(icon 时单独展示,或 button 旁图标) */
|
|
73
|
+
icon?: ReactNode;
|
|
74
|
+
/** 点击回调 */
|
|
75
|
+
onClick?: () => void;
|
|
76
|
+
/** 单项内联样式 */
|
|
77
|
+
style?: CSSProperties;
|
|
78
|
+
/** 单项类名,用于自定义样式 */
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 标签展示位置:与主标题同行 / 次级信息下方
|
|
83
|
+
*/
|
|
84
|
+
export declare type EntityCardTagPosition = 'inline' | 'below';
|
|
85
|
+
/**
|
|
86
|
+
* PisellEntityCard 组件 Props
|
|
87
|
+
* 基于 PisellBaseCard,使用结构化配置展示实体信息,支持密度、布局、左滑删除与插槽
|
|
88
|
+
*/
|
|
89
|
+
export interface PisellEntityCardProps extends PisellBaseCardProps {
|
|
90
|
+
/** 媒体区:头像 / 缩略图 / 图标配置 */
|
|
91
|
+
media?: EntityCardMediaConfig;
|
|
92
|
+
/** 主文案(Name/Title) */
|
|
93
|
+
primaryText?: string;
|
|
94
|
+
/** 副标题:与主标题同一行、紧跟主标题后的部分(如电话号),14px Regular #667085 */
|
|
95
|
+
subtitleText?: string;
|
|
96
|
+
/** 次级文案列表,顺序即展示顺序;可带 showTooltip */
|
|
97
|
+
secondaryTexts?: EntityCardSecondaryItem[];
|
|
98
|
+
/** 标签列表,顺序即展示顺序 */
|
|
99
|
+
tags?: EntityCardTagItem[];
|
|
100
|
+
/** 底部操作列表(View Detail、Select 等) */
|
|
101
|
+
actions?: EntityCardActionItem[];
|
|
102
|
+
/** 是否显示媒体区 @default true */
|
|
103
|
+
showMedia?: boolean;
|
|
104
|
+
/** 是否显示主文案 @default true */
|
|
105
|
+
showPrimaryText?: boolean;
|
|
106
|
+
/** 是否显示副标题(与主标题同行) @default true */
|
|
107
|
+
showSubtitle?: boolean;
|
|
108
|
+
/** 是否显示次级文案 @default true */
|
|
109
|
+
showSecondaryText?: boolean;
|
|
110
|
+
/** 是否显示标签 @default true */
|
|
111
|
+
showTags?: boolean;
|
|
112
|
+
/** 是否显示底部 Action 区 @default false */
|
|
113
|
+
showActions?: boolean;
|
|
114
|
+
/** 信息密度 @default 'B2' */
|
|
115
|
+
density?: EntityCardDensity;
|
|
116
|
+
/** 布局方向 @default 'horizontal' */
|
|
117
|
+
layout?: EntityCardLayout;
|
|
118
|
+
/** 卡片宽度 @default 'content' */
|
|
119
|
+
width?: EntityCardWidth;
|
|
120
|
+
/** 是否开启左滑删除 @default false */
|
|
121
|
+
swipeToDelete?: boolean;
|
|
122
|
+
/** 左滑后点击删除时回调 */
|
|
123
|
+
onDelete?: () => void;
|
|
124
|
+
/** 标签展示位置 @default 'below' */
|
|
125
|
+
tagPosition?: EntityCardTagPosition;
|
|
126
|
+
/** 内容区 gap(CSS gap 值) */
|
|
127
|
+
contentGap?: number | string;
|
|
128
|
+
/** 主文案行数限制(CSS -webkit-line-clamp) */
|
|
129
|
+
primaryLineClamp?: number;
|
|
130
|
+
/** 次级文案行数限制(按密度有默认值,可覆盖) */
|
|
131
|
+
secondaryLineClamp?: number;
|
|
132
|
+
/** 自定义渲染媒体区 */
|
|
133
|
+
renderMedia?: () => ReactNode;
|
|
134
|
+
/** 自定义渲染主文案区 */
|
|
135
|
+
renderPrimary?: () => ReactNode;
|
|
136
|
+
/** 自定义渲染副标题区(与主标题同行) */
|
|
137
|
+
renderSubtitle?: () => ReactNode;
|
|
138
|
+
/** 自定义渲染次级文案区 */
|
|
139
|
+
renderSecondary?: () => ReactNode;
|
|
140
|
+
/** 自定义渲染标签区 */
|
|
141
|
+
renderTags?: () => ReactNode;
|
|
142
|
+
/** 自定义渲染底部操作区 */
|
|
143
|
+
renderActions?: () => ReactNode;
|
|
144
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,7 +9,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
* PisellFloorMapLayout - 空间布局视图
|
|
10
10
|
* 在二维平面按坐标渲染资源,支持缩放/平移/复位,仅负责展示与交互
|
|
11
11
|
*/
|
|
12
|
-
import React, { useMemo, useRef, useImperativeHandle, useCallback, useState } from 'react';
|
|
12
|
+
import React, { useMemo, useRef, useImperativeHandle, useCallback, useState, useEffect } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';
|
|
15
15
|
import MapLayer from "./components/MapLayer";
|
|
@@ -151,6 +151,32 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
151
151
|
_useState2 = _slicedToArray(_useState, 2),
|
|
152
152
|
scale = _useState2[0],
|
|
153
153
|
setScale = _useState2[1];
|
|
154
|
+
var _useState3 = useState(false),
|
|
155
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
156
|
+
isFullscreen = _useState4[0],
|
|
157
|
+
setIsFullscreen = _useState4[1];
|
|
158
|
+
useEffect(function () {
|
|
159
|
+
var el = containerRef.current;
|
|
160
|
+
if (!el) return;
|
|
161
|
+
var onFullscreenChange = function onFullscreenChange() {
|
|
162
|
+
return setIsFullscreen(document.fullscreenElement === el);
|
|
163
|
+
};
|
|
164
|
+
document.addEventListener('fullscreenchange', onFullscreenChange);
|
|
165
|
+
return function () {
|
|
166
|
+
return document.removeEventListener('fullscreenchange', onFullscreenChange);
|
|
167
|
+
};
|
|
168
|
+
}, []);
|
|
169
|
+
var toggleFullscreen = useCallback(function () {
|
|
170
|
+
var el = containerRef.current;
|
|
171
|
+
if (!el) return;
|
|
172
|
+
if (document.fullscreenElement) {
|
|
173
|
+
var _document$exitFullscr, _document;
|
|
174
|
+
(_document$exitFullscr = (_document = document).exitFullscreen) === null || _document$exitFullscr === void 0 || _document$exitFullscr.call(_document);
|
|
175
|
+
} else {
|
|
176
|
+
var _el$requestFullscreen;
|
|
177
|
+
(_el$requestFullscreen = el.requestFullscreen) === null || _el$requestFullscreen === void 0 || _el$requestFullscreen.call(el);
|
|
178
|
+
}
|
|
179
|
+
}, []);
|
|
154
180
|
var fitBounds = useCallback(function () {
|
|
155
181
|
var _zoom$max2;
|
|
156
182
|
var ctx = transformRef.current;
|
|
@@ -195,9 +221,10 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
195
221
|
var _transformRef$current6;
|
|
196
222
|
return (_transformRef$current6 = transformRef.current) === null || _transformRef$current6 === void 0 ? void 0 : _transformRef$current6.resetTransform();
|
|
197
223
|
},
|
|
198
|
-
fitBounds: fitBounds
|
|
224
|
+
fitBounds: fitBounds,
|
|
225
|
+
toggleFullscreen: toggleFullscreen
|
|
199
226
|
};
|
|
200
|
-
}, [fitBounds]);
|
|
227
|
+
}, [fitBounds, toggleFullscreen]);
|
|
201
228
|
return /*#__PURE__*/React.createElement("div", {
|
|
202
229
|
ref: containerRef,
|
|
203
230
|
className: classNames(PREFIX, className),
|
|
@@ -255,7 +282,8 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
255
282
|
})), /*#__PURE__*/React.createElement(ViewControls, {
|
|
256
283
|
api: controlsApi,
|
|
257
284
|
config: controls,
|
|
258
|
-
scale: scale
|
|
285
|
+
scale: scale,
|
|
286
|
+
isFullscreen: isFullscreen
|
|
259
287
|
}));
|
|
260
288
|
}));
|
|
261
289
|
}
|
|
@@ -230,7 +230,8 @@ export var WithPan = {
|
|
|
230
230
|
controls: {
|
|
231
231
|
showZoom: true,
|
|
232
232
|
showReset: true,
|
|
233
|
-
showFitBounds: true
|
|
233
|
+
showFitBounds: true,
|
|
234
|
+
showFullscreen: true
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
237
|
};
|
|
@@ -1224,7 +1225,8 @@ export var FigmaDesign = {
|
|
|
1224
1225
|
enabled: true
|
|
1225
1226
|
},
|
|
1226
1227
|
controls: {
|
|
1227
|
-
showZoom: true
|
|
1228
|
+
showZoom: true,
|
|
1229
|
+
showFullscreen: true
|
|
1228
1230
|
},
|
|
1229
1231
|
style: {
|
|
1230
1232
|
height: '100%'
|