@pisell/materials 6.3.17 → 6.3.18
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 +5 -5
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/es/components/auto-resize-text/auto-text-size-standalone.js +258 -0
- package/es/components/auto-resize-text/index.d.ts +6 -0
- package/es/components/auto-resize-text/index.js +40 -0
- package/es/components/cardPro/index.js +10 -3
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/es/components/iconfont/index.js +1 -1
- package/es/components/keyboard/index.d.ts +22 -0
- package/es/components/keyboard/index.js +159 -0
- package/es/components/keyboard/index.less +44 -0
- package/es/components/page/index.js +5 -2
- package/es/components/pisell-config-provider/context.d.ts +2 -0
- package/es/components/pisell-config-provider/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.js +5 -1
- package/es/components/pisellAdjustPrice/type.d.ts +2 -0
- package/es/components/pisellCardList/index.d.ts +32 -2
- package/es/components/pisellCardList/index.js +39 -2
- package/es/components/pisellCardList/index.less +9 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +3 -0
- package/es/components/pisellCheckboxGroup/index.js +9 -4
- package/es/components/pisellCheckboxGroup/index.less +28 -1
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellGoodPassCard/index.d.ts +1 -0
- package/es/components/pisellGoodPassCard/index.js +17 -5
- package/es/components/pisellText/components/Amount/index.js +2 -1
- package/es/components/pisellToast/index.d.ts +1 -0
- package/es/components/pisellToast/index.js +4 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/index.js +28 -0
- package/es/components/pisellToast/squareToast/index.less +60 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/methods.js +136 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/es/components/pisellToast/squareToast/renderImperatively.js +190 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/pisellToast/squareToast/toast.js +60 -0
- package/es/components/pisellWalletPassCard/index.d.ts +53 -1
- package/es/components/pisellWalletPassCard/index.js +333 -73
- package/es/components/pisellWalletPassCard/index.less +47 -9
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.js +82 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.js +56 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.js +29 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +94 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.js +49 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +47 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.js +39 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.js +57 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +44 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +360 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +74 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +54 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/index.js +194 -0
- package/es/components/productCard/cartSkuCard/index.less +33 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +99 -0
- package/es/components/productCard/cartSkuCard/locales.js +33 -0
- package/es/components/productCard/components/Action/index.js +14 -1
- package/es/components/productCard/components/Action/index.less +3 -0
- package/es/components/productCard/components/Header/index.js +23 -8
- package/es/components/productCard/components/Header/index.less +16 -1
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
- package/es/components/productCard/index.d.ts +3 -1
- package/es/components/productCard/index.js +7 -2
- package/es/components/productCard/index.less +6 -0
- package/es/components/productCard/locales.js +3 -0
- package/es/components/productCard/status.js +1 -0
- package/es/components/productCard/types.d.ts +1 -0
- package/es/components/productCard/utils.js +8 -1
- package/es/components/select-time/index.d.ts +14 -0
- package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +21 -7
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +44 -25
- package/es/components/virtual-keyboard/Number/index.js +4 -1
- package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/es/components/virtual-keyboard/index.d.ts +11 -0
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/es/components/virtualInput/BaseVirtualInput/index.js +163 -0
- package/es/components/virtualInput/BaseVirtualInput/index.less +77 -0
- package/es/components/virtualInput/index.d.ts +24 -0
- package/es/components/virtualInput/index.js +60 -0
- package/es/components/virtualInput/index.less +42 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +5 -2
- package/es/locales/en-US.d.ts +19 -2
- package/es/locales/en-US.js +29 -6
- package/es/locales/zh-CN.d.ts +19 -2
- package/es/locales/zh-CN.js +29 -6
- package/es/locales/zh-TW.d.ts +19 -2
- package/es/locales/zh-TW.js +28 -6
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
- package/lib/components/auto-resize-text/auto-text-size-standalone.js +273 -0
- package/lib/components/auto-resize-text/index.d.ts +6 -0
- package/lib/components/auto-resize-text/index.js +71 -0
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/keyboard/index.d.ts +22 -0
- package/lib/components/keyboard/index.js +223 -0
- package/lib/components/keyboard/index.less +44 -0
- package/lib/components/page/index.js +3 -2
- package/lib/components/pisell-config-provider/context.d.ts +2 -0
- package/lib/components/pisell-config-provider/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.js +4 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
- package/lib/components/pisellCardList/index.d.ts +32 -2
- package/lib/components/pisellCardList/index.js +39 -2
- package/lib/components/pisellCardList/index.less +9 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +3 -0
- package/lib/components/pisellCheckboxGroup/index.js +6 -1
- package/lib/components/pisellCheckboxGroup/index.less +28 -1
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -0
- package/lib/components/pisellGoodPassCard/index.js +31 -4
- package/lib/components/pisellText/components/Amount/index.js +2 -1
- package/lib/components/pisellToast/index.d.ts +1 -0
- package/lib/components/pisellToast/index.js +10 -1
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/index.js +58 -0
- package/lib/components/pisellToast/squareToast/index.less +60 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/methods.js +150 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.js +162 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/pisellToast/squareToast/toast.js +88 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
- package/lib/components/pisellWalletPassCard/index.js +257 -59
- package/lib/components/pisellWalletPassCard/index.less +47 -9
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +80 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +75 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.less +31 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.js +56 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.less +27 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +83 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +117 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +64 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +47 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +19 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +77 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +66 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +34 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +373 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +74 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +68 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +38 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/index.js +229 -0
- package/lib/components/productCard/cartSkuCard/index.less +33 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +99 -0
- package/lib/components/productCard/cartSkuCard/locales.js +64 -0
- package/lib/components/productCard/components/Action/index.js +9 -0
- package/lib/components/productCard/components/Action/index.less +3 -0
- package/lib/components/productCard/components/Header/index.js +21 -11
- package/lib/components/productCard/components/Header/index.less +16 -1
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
- package/lib/components/productCard/index.d.ts +3 -1
- package/lib/components/productCard/index.js +7 -2
- package/lib/components/productCard/index.less +6 -0
- package/lib/components/productCard/locales.js +12 -3
- package/lib/components/productCard/status.js +1 -0
- package/lib/components/productCard/types.d.ts +1 -0
- package/lib/components/productCard/utils.js +8 -1
- package/lib/components/select-time/index.d.ts +14 -0
- package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +19 -2
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +45 -27
- package/lib/components/virtual-keyboard/Number/index.js +3 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/lib/components/virtual-keyboard/index.d.ts +11 -0
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.js +179 -0
- package/lib/components/virtualInput/BaseVirtualInput/index.less +77 -0
- package/lib/components/virtualInput/index.d.ts +24 -0
- package/lib/components/virtualInput/index.js +102 -0
- package/lib/components/virtualInput/index.less +42 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.js +11 -0
- package/lib/locales/en-US.d.ts +19 -2
- package/lib/locales/en-US.js +24 -5
- package/lib/locales/zh-CN.d.ts +19 -2
- package/lib/locales/zh-CN.js +24 -5
- package/lib/locales/zh-TW.d.ts +19 -2
- package/lib/locales/zh-TW.js +23 -5
- package/package.json +4 -4
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -268,12 +268,19 @@ declare const _default: {
|
|
|
268
268
|
'pisell-login-and-register-register-button-text': string;
|
|
269
269
|
'pisell-login-and-register-remember-me': string;
|
|
270
270
|
'pisell-login-and-register-forgot-password': string;
|
|
271
|
-
'pisell2.wallet-card.add-holder-tip': string;
|
|
272
|
-
'pisell2.wallet-card.add-holder-button-text': string;
|
|
273
271
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
274
272
|
'pisell2.text.goodpass.last-settlement': string;
|
|
275
273
|
'pisell2.text.goodpass.view-more': string;
|
|
276
274
|
'pisell2.text.goodpass.save': string;
|
|
275
|
+
'pisell-wallet-pass-card-status-used': string;
|
|
276
|
+
'pisell-wallet-pass-card-status-expired': string;
|
|
277
|
+
'pisell-wallet-pass-card-status-disabled': string;
|
|
278
|
+
'pisell-wallet-pass-card-status-conflict': string;
|
|
279
|
+
'pisell-wallet-pass-card-status-lastPayment': string;
|
|
280
|
+
'pisell-wallet-pass-card-reset': string;
|
|
281
|
+
'pisell-wallet-pass-card-done': string;
|
|
282
|
+
'pisell2.wallet-card.add-holder-tip': string;
|
|
283
|
+
'pisell2.wallet-card.add-holder-button-text': string;
|
|
277
284
|
'pisell-camera-no-camera-accessible': string;
|
|
278
285
|
'pisell-camera-permission-denied': string;
|
|
279
286
|
'pisell-camera-switch-camera': string;
|
|
@@ -284,5 +291,15 @@ declare const _default: {
|
|
|
284
291
|
'pisell-upload-camera-capture': string;
|
|
285
292
|
'pisell-upload-camera-retake': string;
|
|
286
293
|
'pisell-upload-camera-use': string;
|
|
294
|
+
'pisell-list-tab-group-default': string;
|
|
295
|
+
'pisell-list-empty-text-default': string;
|
|
296
|
+
'pisell-list-load-more': string;
|
|
297
|
+
'pisell-list-view-less': string;
|
|
298
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
299
|
+
'pisell-list-scroll-down': string;
|
|
300
|
+
'pisell-list-scroll-right': string;
|
|
301
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
302
|
+
'pisell-list-pagination-previous': string;
|
|
303
|
+
'pisell-list-pagination-next': string;
|
|
287
304
|
};
|
|
288
305
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
'pisell-wallet-pass-card-name': '商品名稱',
|
|
148
148
|
'pisell-wallet-pass-card-store-name': '共享店鋪名稱',
|
|
149
149
|
'pisell-wallet-pass-card-balance': '餘額',
|
|
150
|
-
'pisell-wallet-pass-card-redeem': '
|
|
150
|
+
'pisell-wallet-pass-card-redeem': '使用',
|
|
151
151
|
'pisell-wallet-pass-card-code': '識別碼編號',
|
|
152
152
|
'pisell-wallet-pass-card-valid-to': '有效期至',
|
|
153
153
|
'pisell-wallet-pass-card-valid': '有效期',
|
|
@@ -330,13 +330,20 @@ export default {
|
|
|
330
330
|
'pisell-login-and-register-register-button-text': '創建帳戶',
|
|
331
331
|
'pisell-login-and-register-remember-me': '記住我',
|
|
332
332
|
'pisell-login-and-register-forgot-password': '忘記密碼?',
|
|
333
|
+
'pisell2.text.goodpass.product-vouchers': "優惠促銷",
|
|
334
|
+
'pisell2.text.goodpass.last-settlement': "(上次結算)",
|
|
335
|
+
'pisell2.text.goodpass.view-more': "查看更多",
|
|
336
|
+
'pisell2.text.goodpass.save': "節省",
|
|
333
337
|
// 钱包卡片组件
|
|
338
|
+
'pisell-wallet-pass-card-status-used': '已使用',
|
|
339
|
+
'pisell-wallet-pass-card-status-expired': '已過期',
|
|
340
|
+
'pisell-wallet-pass-card-status-disabled': '已禁用',
|
|
341
|
+
'pisell-wallet-pass-card-status-conflict': '衝突',
|
|
342
|
+
'pisell-wallet-pass-card-status-lastPayment': '上次結算',
|
|
343
|
+
'pisell-wallet-pass-card-reset': '清空',
|
|
344
|
+
'pisell-wallet-pass-card-done': '保存',
|
|
334
345
|
'pisell2.wallet-card.add-holder-tip': '為確保您的權益,此卡\r\n需指定使用人後方可激活使用。',
|
|
335
346
|
'pisell2.wallet-card.add-holder-button-text': '添加使用人',
|
|
336
|
-
'pisell2.text.goodpass.product-vouchers': '優惠促銷',
|
|
337
|
-
'pisell2.text.goodpass.last-settlement': '(上次結算)',
|
|
338
|
-
'pisell2.text.goodpass.view-more': '查看更多',
|
|
339
|
-
'pisell2.text.goodpass.save': '節省',
|
|
340
347
|
// 相机组件
|
|
341
348
|
'pisell-camera-no-camera-accessible': '沒有找到攝像頭',
|
|
342
349
|
'pisell-camera-permission-denied': '沒有權限使用攝像頭',
|
|
@@ -348,5 +355,20 @@ export default {
|
|
|
348
355
|
'pisell-upload-camera-local-files': '本地文件',
|
|
349
356
|
'pisell-upload-camera-capture': '拍攝/拍照',
|
|
350
357
|
'pisell-upload-camera-retake': '重拍',
|
|
351
|
-
'pisell-upload-camera-use': '使用照片'
|
|
358
|
+
'pisell-upload-camera-use': '使用照片',
|
|
359
|
+
// 列表組件
|
|
360
|
+
'pisell-list-tab-group-default': '字段',
|
|
361
|
+
'pisell-list-empty-text-default': '暫無數據',
|
|
362
|
+
'pisell-list-load-more': '查看更多',
|
|
363
|
+
'pisell-list-view-less': '查看更少',
|
|
364
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
365
|
+
return "\u986F\u793A\u7B2C ".concat(start, "-").concat(end, " \u689D\uFF0C\u5171 ").concat(total, " \u689D");
|
|
366
|
+
},
|
|
367
|
+
'pisell-list-scroll-down': '向下滾動',
|
|
368
|
+
'pisell-list-scroll-right': '向右滾動',
|
|
369
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
370
|
+
return "\u7B2C ".concat(current, " \u9801 \u5171 ").concat(total, " \u9801");
|
|
371
|
+
},
|
|
372
|
+
'pisell-list-pagination-previous': '上一頁',
|
|
373
|
+
'pisell-list-pagination-next': '下一頁'
|
|
352
374
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TimeSlot {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
time: string;
|
|
7
|
+
remainingCount: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface TimeResourceSelectorProps {
|
|
11
|
+
timeSlots?: TimeSlot[];
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
showUnavailable?: boolean;
|
|
14
|
+
defaultExpanded?: boolean;
|
|
15
|
+
defaultSelectFirst?: boolean;
|
|
16
|
+
onChange?: (values: string | string[]) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
|
|
21
|
+
export default TimeResourceSelector;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare type Options = {
|
|
2
|
+
mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
|
|
3
|
+
minFontSizePx?: number | undefined;
|
|
4
|
+
maxFontSizePx?: number | undefined;
|
|
5
|
+
fontSizePrecisionPx?: number | undefined;
|
|
6
|
+
scrollToEnd?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
9
|
+
innerEl: HTMLElement;
|
|
10
|
+
containerEl: HTMLElement;
|
|
11
|
+
}): void;
|
|
12
|
+
declare type DisconnectableFunction = {
|
|
13
|
+
(): void;
|
|
14
|
+
disconnect: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
|
|
17
|
+
innerEl: HTMLElement;
|
|
18
|
+
containerEl: HTMLElement;
|
|
19
|
+
}): DisconnectableFunction;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,273 @@
|
|
|
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/components/auto-resize-text/auto-text-size-standalone.ts
|
|
20
|
+
var auto_text_size_standalone_exports = {};
|
|
21
|
+
__export(auto_text_size_standalone_exports, {
|
|
22
|
+
autoTextSize: () => autoTextSize,
|
|
23
|
+
updateTextSize: () => updateTextSize
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(auto_text_size_standalone_exports);
|
|
26
|
+
function throttleAnimationFrame(func) {
|
|
27
|
+
let wait = false;
|
|
28
|
+
return () => {
|
|
29
|
+
if (!wait) {
|
|
30
|
+
wait = true;
|
|
31
|
+
requestAnimationFrame(() => {
|
|
32
|
+
func();
|
|
33
|
+
wait = false;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var antiOverflowAlgo = ({
|
|
39
|
+
fontSizePx,
|
|
40
|
+
minFontSizePx,
|
|
41
|
+
fontSizePrecisionPx,
|
|
42
|
+
updateFontSizePx,
|
|
43
|
+
breakPredicate: breakPred
|
|
44
|
+
}) => {
|
|
45
|
+
const maxIterCount = Math.ceil(1 / fontSizePrecisionPx);
|
|
46
|
+
let iterCount = 0;
|
|
47
|
+
while (fontSizePx > minFontSizePx && iterCount < maxIterCount) {
|
|
48
|
+
if (breakPred()) break;
|
|
49
|
+
fontSizePx = updateFontSizePx(fontSizePx - fontSizePrecisionPx);
|
|
50
|
+
iterCount++;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var getContentWidth = (element) => {
|
|
54
|
+
const computedStyle = getComputedStyle(element);
|
|
55
|
+
return element.clientWidth - parseFloat(computedStyle.paddingLeft) - parseFloat(computedStyle.paddingRight);
|
|
56
|
+
};
|
|
57
|
+
var getContentHeight = (element) => {
|
|
58
|
+
const computedStyle = getComputedStyle(element);
|
|
59
|
+
return element.clientHeight - parseFloat(computedStyle.paddingTop) - parseFloat(computedStyle.paddingBottom);
|
|
60
|
+
};
|
|
61
|
+
var multilineAlgo = (opts) => {
|
|
62
|
+
opts.innerEl.style.whiteSpace = "nowrap";
|
|
63
|
+
onelineAlgo(opts);
|
|
64
|
+
if (opts.innerEl.scrollWidth > getContentWidth(opts.containerEl)) {
|
|
65
|
+
opts.innerEl.style.whiteSpace = "normal";
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var onelineAlgo = ({
|
|
69
|
+
innerEl,
|
|
70
|
+
containerEl,
|
|
71
|
+
fontSizePx,
|
|
72
|
+
minFontSizePx,
|
|
73
|
+
maxFontSizePx,
|
|
74
|
+
fontSizePrecisionPx,
|
|
75
|
+
updateFontSizePx
|
|
76
|
+
}) => {
|
|
77
|
+
const maxIterCount = 10;
|
|
78
|
+
let iterCount = 0;
|
|
79
|
+
let prevOverflowFactor = 1;
|
|
80
|
+
while (iterCount < maxIterCount) {
|
|
81
|
+
const w0 = innerEl.scrollWidth;
|
|
82
|
+
const w1 = getContentWidth(containerEl);
|
|
83
|
+
const canGrow = fontSizePx < maxFontSizePx && w0 < w1;
|
|
84
|
+
const canShrink = fontSizePx > minFontSizePx && w0 > w1;
|
|
85
|
+
const overflowFactor = w0 / w1;
|
|
86
|
+
if (prevOverflowFactor === overflowFactor) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
if (!(canGrow || canShrink)) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
const updatePx = fontSizePx / overflowFactor - fontSizePx;
|
|
93
|
+
const prevFontSizePx = fontSizePx;
|
|
94
|
+
fontSizePx = updateFontSizePx(fontSizePx + updatePx);
|
|
95
|
+
if (Math.abs(fontSizePx - prevFontSizePx) <= fontSizePrecisionPx) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
prevOverflowFactor = overflowFactor;
|
|
99
|
+
iterCount++;
|
|
100
|
+
}
|
|
101
|
+
antiOverflowAlgo({
|
|
102
|
+
fontSizePx,
|
|
103
|
+
minFontSizePx,
|
|
104
|
+
updateFontSizePx,
|
|
105
|
+
fontSizePrecisionPx,
|
|
106
|
+
breakPredicate: () => innerEl.scrollWidth <= getContentWidth(containerEl)
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
var boxAlgo = ({
|
|
110
|
+
innerEl,
|
|
111
|
+
containerEl,
|
|
112
|
+
fontSizePx,
|
|
113
|
+
minFontSizePx,
|
|
114
|
+
maxFontSizePx,
|
|
115
|
+
fontSizePrecisionPx,
|
|
116
|
+
updateFontSizePx
|
|
117
|
+
}) => {
|
|
118
|
+
const maxIterCount = 100;
|
|
119
|
+
fontSizePx = updateFontSizePx((maxFontSizePx - minFontSizePx) * 0.5);
|
|
120
|
+
let updatePx = (maxFontSizePx - minFontSizePx) * 0.25;
|
|
121
|
+
let iterCount = 0;
|
|
122
|
+
while (updatePx > fontSizePrecisionPx && iterCount < maxIterCount) {
|
|
123
|
+
const w0 = innerEl.scrollWidth;
|
|
124
|
+
const w1 = getContentWidth(containerEl);
|
|
125
|
+
const h0 = innerEl.scrollHeight;
|
|
126
|
+
const h1 = getContentHeight(containerEl);
|
|
127
|
+
if (w0 === w1 && h0 === h1) break;
|
|
128
|
+
if (fontSizePx < maxFontSizePx && w0 <= w1 && h0 <= h1) {
|
|
129
|
+
fontSizePx = updateFontSizePx(fontSizePx + updatePx);
|
|
130
|
+
} else if (fontSizePx > minFontSizePx && (w0 > w1 || h0 > h1)) {
|
|
131
|
+
fontSizePx = updateFontSizePx(fontSizePx - updatePx);
|
|
132
|
+
}
|
|
133
|
+
updatePx *= 0.5;
|
|
134
|
+
iterCount++;
|
|
135
|
+
}
|
|
136
|
+
antiOverflowAlgo({
|
|
137
|
+
fontSizePx,
|
|
138
|
+
minFontSizePx,
|
|
139
|
+
updateFontSizePx,
|
|
140
|
+
fontSizePrecisionPx,
|
|
141
|
+
breakPredicate: () => innerEl.scrollWidth <= getContentWidth(containerEl) && innerEl.scrollHeight <= getContentHeight(containerEl)
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
function updateTextSize({
|
|
145
|
+
innerEl,
|
|
146
|
+
containerEl,
|
|
147
|
+
mode = "multiline",
|
|
148
|
+
minFontSizePx = 8,
|
|
149
|
+
maxFontSizePx = 160,
|
|
150
|
+
fontSizePrecisionPx = 0.1,
|
|
151
|
+
scrollToEnd = false
|
|
152
|
+
}) {
|
|
153
|
+
const t0 = performance.now();
|
|
154
|
+
if (!isFinite(minFontSizePx)) {
|
|
155
|
+
throw new Error(`Invalid minFontSizePx (${minFontSizePx})`);
|
|
156
|
+
}
|
|
157
|
+
if (!isFinite(minFontSizePx)) {
|
|
158
|
+
throw new Error(`Invalid maxFontSizePx (${maxFontSizePx})`);
|
|
159
|
+
}
|
|
160
|
+
if (!isFinite(fontSizePrecisionPx) || fontSizePrecisionPx === 0) {
|
|
161
|
+
throw new Error(`Invalid fontSizePrecisionPx (${fontSizePrecisionPx})`);
|
|
162
|
+
}
|
|
163
|
+
if (containerEl.children.length > 1) {
|
|
164
|
+
console.warn(
|
|
165
|
+
`AutoTextSize has ${containerEl.children.length - 1} siblings. This may interfere with the algorithm.`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
const containerStyles = {
|
|
169
|
+
display: "flex",
|
|
170
|
+
alignItems: "start"
|
|
171
|
+
};
|
|
172
|
+
const innerStyles = {
|
|
173
|
+
display: "block"
|
|
174
|
+
};
|
|
175
|
+
if (mode === "oneline") {
|
|
176
|
+
innerStyles.whiteSpace = "nowrap";
|
|
177
|
+
} else if (mode === "multiline") {
|
|
178
|
+
innerStyles.wordBreak = "break-word";
|
|
179
|
+
} else if (mode === "box") {
|
|
180
|
+
innerStyles.whiteSpace = "pre-wrap";
|
|
181
|
+
innerStyles.wordBreak = "break-word";
|
|
182
|
+
} else if (mode === "boxoneline") {
|
|
183
|
+
innerStyles.whiteSpace = "nowrap";
|
|
184
|
+
}
|
|
185
|
+
Object.assign(containerEl.style, containerStyles);
|
|
186
|
+
Object.assign(innerEl.style, innerStyles);
|
|
187
|
+
const fontSizeStr = window.getComputedStyle(innerEl, null).getPropertyValue("font-size");
|
|
188
|
+
let fontSizePx = parseFloat(fontSizeStr);
|
|
189
|
+
let iterations = 0;
|
|
190
|
+
const updateFontSizePx = (px) => {
|
|
191
|
+
px = Math.min(Math.max(px, minFontSizePx), maxFontSizePx);
|
|
192
|
+
fontSizePx = px;
|
|
193
|
+
innerEl.style.fontSize = `${fontSizePx}px`;
|
|
194
|
+
iterations++;
|
|
195
|
+
return fontSizePx;
|
|
196
|
+
};
|
|
197
|
+
if (fontSizePx > maxFontSizePx || fontSizePx < minFontSizePx) {
|
|
198
|
+
updateFontSizePx(fontSizePx);
|
|
199
|
+
}
|
|
200
|
+
const algoOpts = {
|
|
201
|
+
innerEl,
|
|
202
|
+
containerEl,
|
|
203
|
+
fontSizePx,
|
|
204
|
+
minFontSizePx,
|
|
205
|
+
maxFontSizePx,
|
|
206
|
+
fontSizePrecisionPx,
|
|
207
|
+
updateFontSizePx
|
|
208
|
+
};
|
|
209
|
+
if (mode === "oneline") {
|
|
210
|
+
onelineAlgo(algoOpts);
|
|
211
|
+
} else if (mode === "multiline") {
|
|
212
|
+
multilineAlgo(algoOpts);
|
|
213
|
+
} else if (mode === "box") {
|
|
214
|
+
boxAlgo(algoOpts);
|
|
215
|
+
} else if (mode === "boxoneline") {
|
|
216
|
+
boxAlgo(algoOpts);
|
|
217
|
+
}
|
|
218
|
+
if (scrollToEnd) {
|
|
219
|
+
requestAnimationFrame(() => {
|
|
220
|
+
if (mode === "oneline" || mode === "boxoneline") {
|
|
221
|
+
const maxScrollLeft = Math.max(0, innerEl.scrollWidth - innerEl.clientWidth);
|
|
222
|
+
innerEl.scrollLeft = maxScrollLeft;
|
|
223
|
+
} else {
|
|
224
|
+
const maxScrollTop = Math.max(0, innerEl.scrollHeight - innerEl.clientHeight);
|
|
225
|
+
innerEl.scrollTop = maxScrollTop;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function autoTextSize({
|
|
231
|
+
innerEl,
|
|
232
|
+
containerEl,
|
|
233
|
+
mode,
|
|
234
|
+
minFontSizePx,
|
|
235
|
+
maxFontSizePx,
|
|
236
|
+
fontSizePrecisionPx,
|
|
237
|
+
scrollToEnd
|
|
238
|
+
}) {
|
|
239
|
+
let containerDimensions = void 0;
|
|
240
|
+
const throttledUpdateTextSize = throttleAnimationFrame(() => {
|
|
241
|
+
updateTextSize({
|
|
242
|
+
innerEl,
|
|
243
|
+
containerEl,
|
|
244
|
+
mode,
|
|
245
|
+
maxFontSizePx,
|
|
246
|
+
minFontSizePx,
|
|
247
|
+
fontSizePrecisionPx,
|
|
248
|
+
scrollToEnd
|
|
249
|
+
});
|
|
250
|
+
containerDimensions = [
|
|
251
|
+
getContentWidth(containerEl),
|
|
252
|
+
getContentHeight(containerEl)
|
|
253
|
+
];
|
|
254
|
+
});
|
|
255
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
256
|
+
const prevContainerDimensions = containerDimensions;
|
|
257
|
+
containerDimensions = [
|
|
258
|
+
getContentWidth(containerEl),
|
|
259
|
+
getContentHeight(containerEl)
|
|
260
|
+
];
|
|
261
|
+
if ((prevContainerDimensions == null ? void 0 : prevContainerDimensions[0]) !== containerDimensions[0] || (prevContainerDimensions == null ? void 0 : prevContainerDimensions[1]) !== containerDimensions[1]) {
|
|
262
|
+
throttledUpdateTextSize();
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
resizeObserver.observe(containerEl);
|
|
266
|
+
throttledUpdateTextSize.disconnect = () => resizeObserver.disconnect();
|
|
267
|
+
return throttledUpdateTextSize;
|
|
268
|
+
}
|
|
269
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
270
|
+
0 && (module.exports = {
|
|
271
|
+
autoTextSize,
|
|
272
|
+
updateTextSize
|
|
273
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
|
|
2
|
+
import { Options } from './auto-text-size-standalone';
|
|
3
|
+
export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
|
|
4
|
+
as?: keyof ReactHTML | React.ComponentType<any>;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/auto-resize-text/index.tsx
|
|
30
|
+
var auto_resize_text_exports = {};
|
|
31
|
+
__export(auto_resize_text_exports, {
|
|
32
|
+
default: () => AutoResizeText
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(auto_resize_text_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_auto_text_size_standalone = require("./auto-text-size-standalone");
|
|
37
|
+
function AutoResizeText({
|
|
38
|
+
mode,
|
|
39
|
+
minFontSizePx,
|
|
40
|
+
maxFontSizePx,
|
|
41
|
+
fontSizePrecisionPx,
|
|
42
|
+
scrollToEnd,
|
|
43
|
+
as: Comp = "div",
|
|
44
|
+
children,
|
|
45
|
+
...rest
|
|
46
|
+
}) {
|
|
47
|
+
const updateTextSizeRef = (0, import_react.useRef)();
|
|
48
|
+
(0, import_react.useEffect)(() => {
|
|
49
|
+
var _a;
|
|
50
|
+
(_a = updateTextSizeRef.current) == null ? void 0 : _a.call(updateTextSizeRef);
|
|
51
|
+
}, [children]);
|
|
52
|
+
const refCallback = (0, import_react.useCallback)(
|
|
53
|
+
(innerEl) => {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = updateTextSizeRef.current) == null ? void 0 : _a.disconnect();
|
|
56
|
+
const containerEl = innerEl == null ? void 0 : innerEl.parentElement;
|
|
57
|
+
if (!innerEl || !containerEl) return;
|
|
58
|
+
updateTextSizeRef.current = (0, import_auto_text_size_standalone.autoTextSize)({
|
|
59
|
+
innerEl,
|
|
60
|
+
containerEl,
|
|
61
|
+
mode,
|
|
62
|
+
minFontSizePx,
|
|
63
|
+
maxFontSizePx,
|
|
64
|
+
fontSizePrecisionPx,
|
|
65
|
+
scrollToEnd
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
[mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd]
|
|
69
|
+
);
|
|
70
|
+
return /* @__PURE__ */ import_react.default.createElement(Comp, { ref: refCallback, ...rest }, children);
|
|
71
|
+
}
|
|
@@ -51,13 +51,14 @@ var CardPro = (props) => {
|
|
|
51
51
|
isShowHead,
|
|
52
52
|
className,
|
|
53
53
|
coverHeight,
|
|
54
|
-
badge
|
|
54
|
+
badge,
|
|
55
|
+
style
|
|
55
56
|
} = props;
|
|
56
57
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
58
|
import_antd.Card,
|
|
58
59
|
{
|
|
59
60
|
title: null,
|
|
60
|
-
style: { padding: 0 },
|
|
61
|
+
style: { padding: 0, ...style },
|
|
61
62
|
className: (0, import_classnames.default)(
|
|
62
63
|
"pisell-cardPro-wrap",
|
|
63
64
|
className,
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
@@ -60,9 +60,19 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
64
|
+
options?: any;
|
|
65
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
|
+
labelField: string;
|
|
67
|
+
valueField: string;
|
|
68
|
+
extraParams?: Record<string, any> | undefined;
|
|
69
|
+
} & {
|
|
70
|
+
dataSource?: any;
|
|
71
|
+
}) => JSX.Element) | (import("react").FC<{}> & {
|
|
72
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
73
|
+
} & {
|
|
74
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
75
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
66
76
|
JSON: import("react").FC<any>;
|
|
67
77
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
68
78
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -83,20 +93,10 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
83
93
|
fieldKey?: string | undefined;
|
|
84
94
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
85
95
|
}) | (import("react").FC<{}> & {
|
|
86
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
87
|
-
} & {
|
|
88
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
89
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
90
96
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
91
97
|
} & {
|
|
92
98
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
93
|
-
}) | ((
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
labelField: string;
|
|
97
|
-
valueField: string;
|
|
98
|
-
extraParams?: Record<string, any> | undefined;
|
|
99
|
-
} & {
|
|
100
|
-
dataSource?: any;
|
|
101
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
99
|
+
}) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
|
+
onChange: (value: string) => void;
|
|
101
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
|
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
|
38
|
-
scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.
|
|
38
|
+
scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.20.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
onChange?: (value?: ItemValue) => void;
|
|
17
|
+
items?: Item[];
|
|
18
|
+
rightItems?: Item[];
|
|
19
|
+
keydown?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
22
|
+
export default _default;
|