pcm-agents 0.6.11 → 0.6.13
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/dist/cjs/error-event-J_ZWIqWF.js +33 -0
- package/dist/cjs/error-event-J_ZWIqWF.js.map +1 -0
- package/dist/cjs/{index-CvEfNyEj.js → index-CRlt8Nv6.js} +53 -3
- package/dist/cjs/index-CRlt8Nv6.js.map +1 -0
- package/dist/cjs/index-WNdOTXnX.js +11068 -0
- package/dist/cjs/index-WNdOTXnX.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/message.service-DGUsA-FY.js +135 -0
- package/dist/cjs/message.service-DGUsA-FY.js.map +1 -0
- package/dist/cjs/{pcm-1zhanshi-mnms-modal_17.cjs.entry.js → pcm-1zhanshi-mnms-modal_21.cjs.entry.js} +3276 -216
- package/dist/cjs/pcm-1zhanshi-mnms-modal_21.cjs.entry.js.map +1 -0
- package/dist/cjs/pcm-agents.cjs.js +4 -6
- package/dist/cjs/pcm-agents.cjs.js.map +1 -1
- package/dist/cjs/pcm-message.cjs.entry.js +3 -3
- package/dist/cjs/pcm-message.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-message.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js +8 -8
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js +29 -86
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/{sentry-reporter-BWFtw_aT.js → sentry-reporter-tpI4WdkE.js} +12 -40
- package/dist/cjs/sentry-reporter-tpI4WdkE.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.css +986 -986
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +7 -9
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-button/pcm-button.css +199 -199
- package/dist/collection/components/pcm-button/pcm-button.js +6 -6
- package/dist/collection/components/pcm-button/pcm-button.js.map +1 -1
- package/dist/collection/components/pcm-card/pcm-card.css +259 -259
- package/dist/collection/components/pcm-card/pcm-card.js +1 -1
- package/dist/collection/components/pcm-card/pcm-card.js.map +1 -1
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.css +554 -554
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +3 -3
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.css +102 -102
- package/dist/collection/components/pcm-drawer/pcm-drawer.js +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.js.map +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.css +854 -854
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +5 -7
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.css +95 -95
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js +2 -2
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js.map +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.css +312 -312
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +2 -2
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -1
- package/dist/collection/components/pcm-message/pcm-message.css +64 -64
- package/dist/collection/components/pcm-message/pcm-message.js +2 -2
- package/dist/collection/components/pcm-message/pcm-message.js.map +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.css +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +2 -2
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js +2 -2
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.css +140 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +307 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.css +127 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +350 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +2 -2
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.css +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +2 -2
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.css +0 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js +106 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js.map +1 -0
- package/dist/collection/components/pcm-upload/pcm-upload.css +0 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js +408 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js.map +1 -0
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.css +969 -969
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +3 -5
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.css +68 -68
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +4 -4
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
- package/dist/collection/global/global.css +401 -398
- package/dist/collection/global/markdown.css +1233 -1233
- package/dist/collection/global/message.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/chat.js.map +1 -1
- package/dist/collection/interfaces/events.js.map +1 -1
- package/dist/collection/services/message.service.js.map +1 -1
- package/dist/collection/utils/env.js +3 -0
- package/dist/collection/utils/env.js.map +1 -1
- package/dist/collection/utils/error-event.js.map +1 -1
- package/dist/collection/utils/init.js.map +1 -1
- package/dist/collection/utils/sentry-reporter.js.map +1 -1
- package/dist/collection/utils/utils.js +48 -24
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +3 -5482
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-AYWZDCn8.js → p-B0WOTw9J.js} +51 -4
- package/dist/components/p-B0WOTw9J.js.map +1 -0
- package/dist/components/{p-DUQ46MUh.js → p-BGXbWUJg.js} +3 -3
- package/dist/components/{p-DUQ46MUh.js.map → p-BGXbWUJg.js.map} +1 -1
- package/dist/{esm/sentry-reporter-BFBS363a.js → components/p-BW3r6Lrf.js} +5 -32
- package/dist/components/p-BW3r6Lrf.js.map +1 -0
- package/dist/{esm/app-globals-Chti62re.js → components/p-BdiUKin5.js} +9619 -4296
- package/dist/components/p-BdiUKin5.js.map +1 -0
- package/dist/components/{p-FjtoYPVY.js → p-BywzltXy.js} +10 -9
- package/dist/components/p-BywzltXy.js.map +1 -0
- package/dist/components/p-C2OsjtRx.js +208 -0
- package/dist/components/p-C2OsjtRx.js.map +1 -0
- package/dist/components/{p-D2Z8casl.js → p-CuIvbaWY.js} +5 -5
- package/dist/components/p-CuIvbaWY.js.map +1 -0
- package/dist/components/p-D0ZMoyH8.js +251 -0
- package/dist/components/p-D0ZMoyH8.js.map +1 -0
- package/dist/components/{p-CjbFHLT7.js → p-De3VHEUn.js} +7 -71
- package/dist/components/p-De3VHEUn.js.map +1 -0
- package/dist/components/p-Dv8qvK0w.js +2646 -0
- package/dist/components/p-Dv8qvK0w.js.map +1 -0
- package/dist/components/p-RD3mwuBX.js +226 -0
- package/dist/components/p-RD3mwuBX.js.map +1 -0
- package/dist/components/p-njngFX_n.js +80 -0
- package/dist/components/p-njngFX_n.js.map +1 -0
- package/dist/components/pcm-1zhanshi-mnms-modal.js +7 -7
- package/dist/components/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-button.js +2 -2
- package/dist/components/pcm-button.js.map +1 -1
- package/dist/components/pcm-card.js +3 -3
- package/dist/components/pcm-card.js.map +1 -1
- package/dist/components/pcm-chat-message.js +1 -1
- package/dist/components/pcm-drawer.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +5 -4
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/pcm-htws-modal.js +8 -7
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hyzj-modal.js +8 -7
- package/dist/components/pcm-hyzj-modal.js.map +1 -1
- package/dist/components/pcm-jd-modal.js +8 -7
- package/dist/components/pcm-jd-modal.js.map +1 -1
- package/dist/components/pcm-jlpp-modal.js +8 -7
- package/dist/components/pcm-jlpp-modal.js.map +1 -1
- package/dist/components/pcm-message.js +3 -3
- package/dist/components/pcm-message.js.map +1 -1
- package/dist/components/pcm-mnct-modal.js +8 -7
- package/dist/components/pcm-mnct-modal.js.map +1 -1
- package/dist/components/pcm-mnms-modal.js +60 -90
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-mnms-video-modal.js +8 -7
- package/dist/components/pcm-mnms-video-modal.js.map +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +60 -90
- package/dist/components/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/components/pcm-mobile-input-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-input-btn.js +9 -0
- package/dist/components/pcm-mobile-input-btn.js.map +1 -0
- package/dist/components/pcm-mobile-upload-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-upload-btn.js +9 -0
- package/dist/components/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/components/pcm-msbg-modal.js +8 -7
- package/dist/components/pcm-msbg-modal.js.map +1 -1
- package/dist/components/pcm-qgqjl-modal.js +8 -7
- package/dist/components/pcm-qgqjl-modal.js.map +1 -1
- package/dist/components/pcm-time-count-down.d.ts +11 -0
- package/dist/components/pcm-time-count-down.js +9 -0
- package/dist/components/pcm-time-count-down.js.map +1 -0
- package/dist/components/pcm-upload.d.ts +11 -0
- package/dist/components/pcm-upload.js +9 -0
- package/dist/components/pcm-upload.js.map +1 -0
- package/dist/components/pcm-zsk-chat-modal.js +4 -4
- package/dist/components/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/components/pcm-zygh-modal.js +8 -7
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/esm/error-event-C0FYX2-Z.js +31 -0
- package/dist/esm/error-event-C0FYX2-Z.js.map +1 -0
- package/dist/esm/{index-GyOE8SlD.js → index-BnNqOUZf.js} +51 -4
- package/dist/esm/index-BnNqOUZf.js.map +1 -0
- package/dist/esm/index-BuVfV0zo.js +11035 -0
- package/dist/esm/index-BuVfV0zo.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/message.service-DXVhHj6-.js +133 -0
- package/dist/esm/message.service-DXVhHj6-.js.map +1 -0
- package/dist/esm/{pcm-1zhanshi-mnms-modal_17.entry.js → pcm-1zhanshi-mnms-modal_21.entry.js} +3225 -169
- package/dist/esm/pcm-1zhanshi-mnms-modal_21.entry.js.map +1 -0
- package/dist/esm/pcm-agents.js +4 -6
- package/dist/esm/pcm-agents.js.map +1 -1
- package/dist/esm/pcm-message.entry.js +3 -3
- package/dist/esm/pcm-message.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-video-modal.entry.js +5 -5
- package/dist/esm/pcm-mnms-video-modal.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-zp-modal.entry.js +28 -85
- package/dist/esm/pcm-mnms-zp-modal.entry.js.map +1 -1
- package/dist/esm/sentry-reporter-CYzy4_8O.js +70 -0
- package/dist/esm/sentry-reporter-CYzy4_8O.js.map +1 -0
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/loader.esm.js.map +1 -1
- package/dist/pcm-agents/p-18a06873.entry.js +2 -0
- package/dist/pcm-agents/p-18a06873.entry.js.map +1 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js +2 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js.map +1 -0
- package/dist/pcm-agents/{p-3608c0c6.entry.js → p-7a582f00.entry.js} +2 -2
- package/dist/pcm-agents/p-7a582f00.entry.js.map +1 -0
- package/dist/pcm-agents/p-BhFnI70g.js +2 -0
- package/dist/pcm-agents/p-BhFnI70g.js.map +1 -0
- package/dist/pcm-agents/p-BuVfV0zo.js +3 -0
- package/dist/pcm-agents/p-BuVfV0zo.js.map +1 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js +2 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js.map +1 -0
- package/dist/pcm-agents/p-DXVhHj6-.js +2 -0
- package/dist/pcm-agents/p-DXVhHj6-.js.map +1 -0
- package/dist/pcm-agents/p-DkeaAFic.js +2 -0
- package/dist/pcm-agents/p-DkeaAFic.js.map +1 -0
- package/dist/pcm-agents/p-f5f96853.entry.js +245 -0
- package/dist/pcm-agents/p-f5f96853.entry.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-message.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-video-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-zp-modal.entry.esm.js.map +1 -1
- package/dist/store/auth.store.js.map +1 -1
- package/dist/store/config.store.js.map +1 -1
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +9 -4
- package/dist/types/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.d.ts +9 -4
- package/dist/types/components/pcm-mobile-input-btn/pcm-mobile-input-btn.d.ts +36 -0
- package/dist/types/components/pcm-mobile-input-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.d.ts +44 -0
- package/dist/types/components/pcm-mobile-upload-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-time-count-down/pcm-time-count-down.d.ts +15 -0
- package/dist/types/components/pcm-upload/pcm-upload.d.ts +54 -0
- package/dist/types/components/pcm-upload/type.d.ts +4 -0
- package/dist/types/components.d.ts +798 -30
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/env.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +30 -12
- package/package.json +70 -69
- package/dist/cjs/app-globals-BIO4q6tX.js +0 -5487
- package/dist/cjs/app-globals-BIO4q6tX.js.map +0 -1
- package/dist/cjs/exports-Dc-pQh4A.js +0 -4087
- package/dist/cjs/exports-Dc-pQh4A.js.map +0 -1
- package/dist/cjs/index-C_qhED9Z.js +0 -1538
- package/dist/cjs/index-C_qhED9Z.js.map +0 -1
- package/dist/cjs/index-CvEfNyEj.js.map +0 -1
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js.map +0 -1
- package/dist/cjs/sentry-reporter-BWFtw_aT.js.map +0 -1
- package/dist/components/p-75J0r72D.js +0 -4017
- package/dist/components/p-75J0r72D.js.map +0 -1
- package/dist/components/p-AYWZDCn8.js.map +0 -1
- package/dist/components/p-CR7WLzmM.js +0 -1303
- package/dist/components/p-CR7WLzmM.js.map +0 -1
- package/dist/components/p-CjbFHLT7.js.map +0 -1
- package/dist/components/p-D2Z8casl.js.map +0 -1
- package/dist/components/p-FjtoYPVY.js.map +0 -1
- package/dist/esm/app-globals-Chti62re.js.map +0 -1
- package/dist/esm/exports-Bs-zO1WZ.js +0 -4017
- package/dist/esm/exports-Bs-zO1WZ.js.map +0 -1
- package/dist/esm/index-Bq0K-WqZ.js +0 -1528
- package/dist/esm/index-Bq0K-WqZ.js.map +0 -1
- package/dist/esm/index-GyOE8SlD.js.map +0 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js.map +0 -1
- package/dist/esm/sentry-reporter-BFBS363a.js.map +0 -1
- package/dist/pcm-agents/p-2Gpw8rvH.js +0 -2
- package/dist/pcm-agents/p-2Gpw8rvH.js.map +0 -1
- package/dist/pcm-agents/p-3608c0c6.entry.js.map +0 -1
- package/dist/pcm-agents/p-60d7a0b0.entry.js +0 -2
- package/dist/pcm-agents/p-60d7a0b0.entry.js.map +0 -1
- package/dist/pcm-agents/p-9e6efc2d.entry.js +0 -2
- package/dist/pcm-agents/p-9e6efc2d.entry.js.map +0 -1
- package/dist/pcm-agents/p-BUV0S8Cc.js +0 -2
- package/dist/pcm-agents/p-BUV0S8Cc.js.map +0 -1
- package/dist/pcm-agents/p-Bq0K-WqZ.js +0 -3
- package/dist/pcm-agents/p-Bq0K-WqZ.js.map +0 -1
- package/dist/pcm-agents/p-Bs-zO1WZ.js +0 -2
- package/dist/pcm-agents/p-Bs-zO1WZ.js.map +0 -1
- package/dist/pcm-agents/p-CeRTfvY9.js +0 -2
- package/dist/pcm-agents/p-CeRTfvY9.js.map +0 -1
- package/dist/pcm-agents/p-e6c87a78.entry.js +0 -2
- package/dist/pcm-agents/p-e6c87a78.entry.js.map +0 -1
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/auth.store.d.ts +0 -0
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/config.store.d.ts +0 -0
|
@@ -1,199 +1,199 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.pcm-button {
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
font-weight: 400;
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
text-align: center;
|
|
12
|
-
background-image: none;
|
|
13
|
-
border: 1px solid transparent;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
16
|
-
user-select: none;
|
|
17
|
-
touch-action: manipulation;
|
|
18
|
-
height: 32px;
|
|
19
|
-
padding: 0 15px;
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
border-radius: 4px;
|
|
22
|
-
color: rgba(0, 0, 0, 0.85);
|
|
23
|
-
background-color: white;
|
|
24
|
-
border-color: #d9d9d9;
|
|
25
|
-
outline: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.pcm-button:hover {
|
|
29
|
-
border-color: #40a9ff;
|
|
30
|
-
color: #40a9ff;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.pcm-button:active {
|
|
34
|
-
border-color: #096dd9;
|
|
35
|
-
color: #096dd9;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* 按钮类型样式 */
|
|
39
|
-
.pcm-button-default {
|
|
40
|
-
background-color: white;
|
|
41
|
-
border-color: #d9d9d9;
|
|
42
|
-
color: rgba(0, 0, 0, 0.85);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.pcm-button-primary {
|
|
46
|
-
background-color: #1677FF;
|
|
47
|
-
border-color: #1677FF;
|
|
48
|
-
color: white;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.pcm-button-primary:hover {
|
|
52
|
-
background-color: #40a9ff;
|
|
53
|
-
border-color: #40a9ff;
|
|
54
|
-
color: white;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.pcm-button-primary:active {
|
|
58
|
-
background-color: #096dd9;
|
|
59
|
-
border-color: #096dd9;
|
|
60
|
-
color: white;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.pcm-button-dashed {
|
|
64
|
-
background-color: white;
|
|
65
|
-
border-color: #d9d9d9;
|
|
66
|
-
border-style: dashed;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.pcm-button-text {
|
|
70
|
-
background-color: transparent;
|
|
71
|
-
border-color: transparent;
|
|
72
|
-
color: rgba(0, 0, 0, 0.85);
|
|
73
|
-
box-shadow: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.pcm-button-text:hover {
|
|
77
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
78
|
-
border-color: transparent;
|
|
79
|
-
color: rgba(0, 0, 0, 0.85);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.pcm-button-link {
|
|
83
|
-
background-color: transparent;
|
|
84
|
-
border-color: transparent;
|
|
85
|
-
color: #1677FF;
|
|
86
|
-
box-shadow: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.pcm-button-link:hover {
|
|
90
|
-
color: #40a9ff;
|
|
91
|
-
background-color: transparent;
|
|
92
|
-
border-color: transparent;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* 按钮尺寸样式 */
|
|
96
|
-
.pcm-button-large {
|
|
97
|
-
height: 40px;
|
|
98
|
-
padding: 0 20px;
|
|
99
|
-
font-size: 16px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.pcm-button-small {
|
|
103
|
-
height: 24px;
|
|
104
|
-
padding: 0 7px;
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* 按钮形状样式 */
|
|
109
|
-
.pcm-button-circle {
|
|
110
|
-
min-width: 32px;
|
|
111
|
-
padding: 0;
|
|
112
|
-
border-radius: 50%;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.pcm-button-large.pcm-button-circle {
|
|
116
|
-
min-width: 40px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.pcm-button-small.pcm-button-circle {
|
|
120
|
-
min-width: 24px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.pcm-button-round {
|
|
124
|
-
border-radius: 40px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* 按钮加载状态样式 */
|
|
128
|
-
.pcm-button-loading {
|
|
129
|
-
opacity: 0.65;
|
|
130
|
-
cursor: default;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.loading-icon {
|
|
134
|
-
width: 14px;
|
|
135
|
-
height: 14px;
|
|
136
|
-
margin-right: 8px;
|
|
137
|
-
border: 2px solid currentColor;
|
|
138
|
-
border-top-color: transparent;
|
|
139
|
-
border-radius: 50%;
|
|
140
|
-
animation: loading-spin 1s infinite linear;
|
|
141
|
-
display: inline-block;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@keyframes loading-spin {
|
|
145
|
-
0% {
|
|
146
|
-
transform: rotate(0deg);
|
|
147
|
-
}
|
|
148
|
-
100% {
|
|
149
|
-
transform: rotate(360deg);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* 按钮禁用状态样式 */
|
|
154
|
-
.pcm-button-disabled {
|
|
155
|
-
cursor: not-allowed;
|
|
156
|
-
opacity: 0.65;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.pcm-button-disabled:hover,
|
|
160
|
-
.pcm-button-disabled:active {
|
|
161
|
-
color: rgba(0, 0, 0, 0.25);
|
|
162
|
-
background-color: #f5f5f5;
|
|
163
|
-
border-color: #d9d9d9;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.pcm-button-primary.pcm-button-disabled:hover,
|
|
167
|
-
.pcm-button-primary.pcm-button-disabled:active {
|
|
168
|
-
background-color: #1677FF;
|
|
169
|
-
border-color: #1677FF;
|
|
170
|
-
color: white;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* 图标样式 */
|
|
174
|
-
.button-icon {
|
|
175
|
-
margin-right: 8px;
|
|
176
|
-
display: inline-flex;
|
|
177
|
-
align-items: center;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.button-icon img {
|
|
181
|
-
width: 16px;
|
|
182
|
-
height: 16px;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.pcm-button-small .button-icon img {
|
|
186
|
-
width: 12px;
|
|
187
|
-
height: 12px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.pcm-button-large .button-icon img {
|
|
191
|
-
width: 18px;
|
|
192
|
-
height: 18px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/* 块级按钮样式 */
|
|
196
|
-
.pcm-button-block {
|
|
197
|
-
width: 100%;
|
|
198
|
-
display: flex;
|
|
199
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pcm-button {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
text-align: center;
|
|
12
|
+
background-image: none;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
16
|
+
user-select: none;
|
|
17
|
+
touch-action: manipulation;
|
|
18
|
+
height: 32px;
|
|
19
|
+
padding: 0 15px;
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
color: rgba(0, 0, 0, 0.85);
|
|
23
|
+
background-color: white;
|
|
24
|
+
border-color: #d9d9d9;
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pcm-button:hover {
|
|
29
|
+
border-color: #40a9ff;
|
|
30
|
+
color: #40a9ff;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pcm-button:active {
|
|
34
|
+
border-color: #096dd9;
|
|
35
|
+
color: #096dd9;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 按钮类型样式 */
|
|
39
|
+
.pcm-button-default {
|
|
40
|
+
background-color: white;
|
|
41
|
+
border-color: #d9d9d9;
|
|
42
|
+
color: rgba(0, 0, 0, 0.85);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pcm-button-primary {
|
|
46
|
+
background-color: #1677FF;
|
|
47
|
+
border-color: #1677FF;
|
|
48
|
+
color: white;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pcm-button-primary:hover {
|
|
52
|
+
background-color: #40a9ff;
|
|
53
|
+
border-color: #40a9ff;
|
|
54
|
+
color: white;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pcm-button-primary:active {
|
|
58
|
+
background-color: #096dd9;
|
|
59
|
+
border-color: #096dd9;
|
|
60
|
+
color: white;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pcm-button-dashed {
|
|
64
|
+
background-color: white;
|
|
65
|
+
border-color: #d9d9d9;
|
|
66
|
+
border-style: dashed;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pcm-button-text {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
color: rgba(0, 0, 0, 0.85);
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pcm-button-text:hover {
|
|
77
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
78
|
+
border-color: transparent;
|
|
79
|
+
color: rgba(0, 0, 0, 0.85);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.pcm-button-link {
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
color: #1677FF;
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pcm-button-link:hover {
|
|
90
|
+
color: #40a9ff;
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
border-color: transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* 按钮尺寸样式 */
|
|
96
|
+
.pcm-button-large {
|
|
97
|
+
height: 40px;
|
|
98
|
+
padding: 0 20px;
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pcm-button-small {
|
|
103
|
+
height: 24px;
|
|
104
|
+
padding: 0 7px;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* 按钮形状样式 */
|
|
109
|
+
.pcm-button-circle {
|
|
110
|
+
min-width: 32px;
|
|
111
|
+
padding: 0;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pcm-button-large.pcm-button-circle {
|
|
116
|
+
min-width: 40px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pcm-button-small.pcm-button-circle {
|
|
120
|
+
min-width: 24px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pcm-button-round {
|
|
124
|
+
border-radius: 40px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* 按钮加载状态样式 */
|
|
128
|
+
.pcm-button-loading {
|
|
129
|
+
opacity: 0.65;
|
|
130
|
+
cursor: default;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.loading-icon {
|
|
134
|
+
width: 14px;
|
|
135
|
+
height: 14px;
|
|
136
|
+
margin-right: 8px;
|
|
137
|
+
border: 2px solid currentColor;
|
|
138
|
+
border-top-color: transparent;
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
animation: loading-spin 1s infinite linear;
|
|
141
|
+
display: inline-block;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@keyframes loading-spin {
|
|
145
|
+
0% {
|
|
146
|
+
transform: rotate(0deg);
|
|
147
|
+
}
|
|
148
|
+
100% {
|
|
149
|
+
transform: rotate(360deg);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* 按钮禁用状态样式 */
|
|
154
|
+
.pcm-button-disabled {
|
|
155
|
+
cursor: not-allowed;
|
|
156
|
+
opacity: 0.65;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.pcm-button-disabled:hover,
|
|
160
|
+
.pcm-button-disabled:active {
|
|
161
|
+
color: rgba(0, 0, 0, 0.25);
|
|
162
|
+
background-color: #f5f5f5;
|
|
163
|
+
border-color: #d9d9d9;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.pcm-button-primary.pcm-button-disabled:hover,
|
|
167
|
+
.pcm-button-primary.pcm-button-disabled:active {
|
|
168
|
+
background-color: #1677FF;
|
|
169
|
+
border-color: #1677FF;
|
|
170
|
+
color: white;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* 图标样式 */
|
|
174
|
+
.button-icon {
|
|
175
|
+
margin-right: 8px;
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.button-icon img {
|
|
181
|
+
width: 16px;
|
|
182
|
+
height: 16px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.pcm-button-small .button-icon img {
|
|
186
|
+
width: 12px;
|
|
187
|
+
height: 12px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.pcm-button-large .button-icon img {
|
|
191
|
+
width: 18px;
|
|
192
|
+
height: 18px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* 块级按钮样式 */
|
|
196
|
+
.pcm-button-block {
|
|
197
|
+
width: 100%;
|
|
198
|
+
display: flex;
|
|
199
|
+
}
|
|
@@ -92,7 +92,7 @@ export class PcmButton {
|
|
|
92
92
|
if (this.borderStyle) {
|
|
93
93
|
customStyle['borderStyle'] = this.borderStyle;
|
|
94
94
|
}
|
|
95
|
-
return (h("button", { key: '
|
|
95
|
+
return (h("button", { key: '370d4d7a0676a5d6abdeec7c14b3d15ba3ce9410', class: Object.keys(classes).filter(key => classes[key]).join(' '), style: customStyle, disabled: this.disabled, type: "button" }, this.loading && (h("span", { key: 'c9624a3e95ffb9a325fd3b606689b9176e82930c', class: "loading-icon" })), this.icon && !this.loading && (h("span", { key: 'd2061865c930901f83b0ffc2adc535c13a8c6220', class: "button-icon" }, h("img", { key: '63a726785f5ffe74283915bd69b26a8552c1a593', src: this.icon, alt: "" }))), h("slot", { key: 'e57fecba739bce61f48ffc18c052a5b5923e63d5' })));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "pcm-button"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,7 +121,7 @@ export class PcmButton {
|
|
|
121
121
|
"optional": false,
|
|
122
122
|
"docs": {
|
|
123
123
|
"tags": [],
|
|
124
|
-
"text": "\u6309\u94AE\u7C7B\u578B\
|
|
124
|
+
"text": "\u6309\u94AE\u7C7B\u578B\n\u53EF\u9009\u503C: 'primary', 'default', 'dashed', 'text', 'link'"
|
|
125
125
|
},
|
|
126
126
|
"getter": false,
|
|
127
127
|
"setter": false,
|
|
@@ -141,7 +141,7 @@ export class PcmButton {
|
|
|
141
141
|
"optional": false,
|
|
142
142
|
"docs": {
|
|
143
143
|
"tags": [],
|
|
144
|
-
"text": "\u6309\u94AE\u5C3A\u5BF8\
|
|
144
|
+
"text": "\u6309\u94AE\u5C3A\u5BF8\n\u53EF\u9009\u503C: 'large', 'middle', 'small'"
|
|
145
145
|
},
|
|
146
146
|
"getter": false,
|
|
147
147
|
"setter": false,
|
|
@@ -201,7 +201,7 @@ export class PcmButton {
|
|
|
201
201
|
"optional": false,
|
|
202
202
|
"docs": {
|
|
203
203
|
"tags": [],
|
|
204
|
-
"text": "\u8BBE\u7F6E\u6309\u94AE\u7684\u56FE\u6807\
|
|
204
|
+
"text": "\u8BBE\u7F6E\u6309\u94AE\u7684\u56FE\u6807\n\u4F7F\u7528\u56FE\u6807\u7684URL\u6216\u8005base64\u5B57\u7B26\u4E32"
|
|
205
205
|
},
|
|
206
206
|
"getter": false,
|
|
207
207
|
"setter": false,
|
|
@@ -221,7 +221,7 @@ export class PcmButton {
|
|
|
221
221
|
"optional": false,
|
|
222
222
|
"docs": {
|
|
223
223
|
"tags": [],
|
|
224
|
-
"text": "\u81EA\u5B9A\u4E49\u6309\u94AE\u5F62\u72B6\
|
|
224
|
+
"text": "\u81EA\u5B9A\u4E49\u6309\u94AE\u5F62\u72B6\n\u53EF\u9009\u503C: 'default', 'circle', 'round'"
|
|
225
225
|
},
|
|
226
226
|
"getter": false,
|
|
227
227
|
"setter": false,
|
|
@@ -361,7 +361,7 @@ export class PcmButton {
|
|
|
361
361
|
"optional": false,
|
|
362
362
|
"docs": {
|
|
363
363
|
"tags": [],
|
|
364
|
-
"text": "\u6309\u94AE\u8FB9\u6846\u6837\u5F0F\
|
|
364
|
+
"text": "\u6309\u94AE\u8FB9\u6846\u6837\u5F0F\n\u53EF\u9009\u503C: 'solid', 'dashed', 'dotted', 'none'"
|
|
365
365
|
},
|
|
366
366
|
"getter": false,
|
|
367
367
|
"setter": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pcm-button.js","sourceRoot":"","sources":["../../../../src/components/pcm-button/pcm-button.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Prop, h} from '@stencil/core';\
|
|
1
|
+
{"version":3,"file":"pcm-button.js","sourceRoot":"","sources":["../../../../src/components/pcm-button/pcm-button.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Prop, h} from '@stencil/core';\n\n/**\n * 按钮组件\n * 一个简化版的类似于 ant-design 的按钮组件,支持自定义文字、颜色、圆角等属性\n */\n@Component({\n tag: 'pcm-button',\n styleUrl: 'pcm-button.css',\n shadow: true,\n})\nexport class PcmButton {\n /**\n * 按钮类型\n * 可选值: 'primary', 'default', 'dashed', 'text', 'link'\n */\n @Prop() type: 'primary' | 'default' | 'dashed' | 'text' | 'link' = 'default';\n\n /**\n * 按钮尺寸\n * 可选值: 'large', 'middle', 'small'\n */\n @Prop() size: 'large' | 'middle' | 'small' = 'middle';\n\n /**\n * 是否为加载状态\n */\n @Prop() loading: boolean = false;\n\n /**\n * 是否为禁用状态\n */\n @Prop() disabled: boolean = false;\n\n /**\n * 设置按钮的图标\n * 使用图标的URL或者base64字符串\n */\n @Prop() icon: string = 'https://pub.pincaimao.com/static/common/i_pcm_logo.png';\n\n\n /**\n * 自定义按钮形状\n * 可选值: 'default', 'circle', 'round'\n */\n @Prop() shape: 'default' | 'circle' | 'round' = 'default';\n\n /**\n * 自定义按钮背景色\n */\n @Prop() backgroundColor: string = '';\n\n /**\n * 自定义按钮文字颜色\n */\n @Prop() textColor: string = '';\n\n /**\n * 自定义按钮边框颜色\n */\n @Prop() borderColor: string = '';\n\n /**\n * 自定义按钮圆角大小(像素)\n */\n @Prop() borderRadius: number = null;\n\n /**\n * 按钮宽度(像素或百分比)\n */\n @Prop() width: string = '';\n\n /**\n * 是否为块级按钮(宽度撑满父元素)\n */\n @Prop() block: boolean = false;\n\n /**\n * 按钮边框样式\n * 可选值: 'solid', 'dashed', 'dotted', 'none'\n */\n @Prop() borderStyle: 'solid' | 'dashed' | 'dotted' | 'none' = 'solid';\n\n render() {\n // 计算样式类名\n const classes = {\n 'pcm-button': true,\n [`pcm-button-${this.type}`]: true,\n [`pcm-button-${this.size}`]: true,\n [`pcm-button-${this.shape}`]: true,\n 'pcm-button-loading': this.loading,\n 'pcm-button-disabled': this.disabled,\n 'pcm-button-block': this.block\n };\n\n // 计算自定义样式\n const customStyle = {};\n if (this.backgroundColor) {\n customStyle['backgroundColor'] = this.backgroundColor;\n }\n if (this.textColor) {\n customStyle['color'] = this.textColor;\n }\n if (this.borderColor) {\n customStyle['borderColor'] = this.borderColor;\n }\n if (this.borderRadius !== null) {\n customStyle['borderRadius'] = `${this.borderRadius}px`;\n }\n if (this.width) {\n customStyle['width'] = this.width;\n }\n if (this.borderStyle) {\n customStyle['borderStyle'] = this.borderStyle;\n }\n\n return (\n <button\n class={Object.keys(classes).filter(key => classes[key]).join(' ')}\n style={customStyle}\n disabled={this.disabled}\n type=\"button\"\n >\n {this.loading && (\n <span class=\"loading-icon\"></span>\n )}\n {this.icon && !this.loading && (\n <span class=\"button-icon\">\n <img src={this.icon} alt=\"\" />\n </span>\n )}\n <slot />\n </button>\n );\n }\n}\n"]}
|