zignal-stencil-library 1.1.122 → 1.1.124
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/autocomplete-address_43.cjs.entry.js +175 -223
- package/dist/cjs/quick-message-app.cjs.entry.js +2 -2
- package/dist/cjs/quick-message-app.entry.cjs.js.map +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.js +5 -6
- package/dist/collection/components/autocomplete-address/autocomplete-address.js.map +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js +2 -4
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.js.map +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.js +4 -4
- package/dist/collection/components/autocomplete-select/autocomplete-select.js.map +1 -1
- package/dist/collection/components/channel-box/channel-box.css +1 -1
- package/dist/collection/components/channel-box/channel-box.js +2 -3
- package/dist/collection/components/channel-box/channel-box.js.map +1 -1
- package/dist/collection/components/chat-app/chat-app.css +1 -1
- package/dist/collection/components/chat-app/chat-app.js +1 -1
- package/dist/collection/components/chat-app/chat-app.js.map +1 -1
- package/dist/collection/components/chat-header/chat-header.css +1 -1
- package/dist/collection/components/chat-header/chat-header.js +6 -7
- package/dist/collection/components/chat-header/chat-header.js.map +1 -1
- package/dist/collection/components/chat-input/chat-input.css +1 -1
- package/dist/collection/components/chat-input/chat-input.js +2 -3
- package/dist/collection/components/chat-input/chat-input.js.map +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.js +1 -3
- package/dist/collection/components/checkbox-list/checkbox-list.js.map +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js +4 -5
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.js.map +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.js +2 -3
- package/dist/collection/components/dialog-editor/dialog-editor.js.map +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js +2 -3
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.js.map +1 -1
- package/dist/collection/components/dialog-search/dialog-search.css +1 -1
- package/dist/collection/components/dialog-search/dialog-search.js +2 -3
- package/dist/collection/components/dialog-search/dialog-search.js.map +1 -1
- package/dist/collection/components/internal-component/about-section.js +2 -2
- package/dist/collection/components/internal-component/about-section.js.map +1 -1
- package/dist/collection/components/internal-component/associated-users-section.js +3 -5
- package/dist/collection/components/internal-component/associated-users-section.js.map +1 -1
- package/dist/collection/components/internal-component/chat-item.js +2 -4
- package/dist/collection/components/internal-component/chat-item.js.map +1 -1
- package/dist/collection/components/internal-component/context-section.js +2 -2
- package/dist/collection/components/internal-component/context-section.js.map +1 -1
- package/dist/collection/components/internal-component/merge-user-view.js +4 -4
- package/dist/collection/components/internal-component/merge-user-view.js.map +1 -1
- package/dist/collection/components/internal-component/tag-section.js +2 -2
- package/dist/collection/components/internal-component/tag-section.js.map +1 -1
- package/dist/collection/components/internal-component/z-button-group.js +1 -5
- package/dist/collection/components/internal-component/z-button-group.js.map +1 -1
- package/dist/collection/components/internal-component/z-button.js +1 -3
- package/dist/collection/components/internal-component/z-button.js.map +1 -1
- package/dist/collection/components/internal-component/z-context-input.js +2 -2
- package/dist/collection/components/internal-component/z-context-input.js.map +1 -1
- package/dist/collection/components/internal-component/z-icon-button.js +1 -3
- package/dist/collection/components/internal-component/z-icon-button.js.map +1 -1
- package/dist/collection/components/internal-component/z-input-area.js +1 -1
- package/dist/collection/components/internal-component/z-input-area.js.map +1 -1
- package/dist/collection/components/internal-component/z-input.js +1 -1
- package/dist/collection/components/internal-component/z-input.js.map +1 -1
- package/dist/collection/components/internal-component/z-select-input.js +1 -1
- package/dist/collection/components/internal-component/z-select-input.js.map +1 -1
- package/dist/collection/components/internal-component/z-tag-or-status-item.js +1 -1
- package/dist/collection/components/internal-component/z-tag-or-status-item.js.map +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.js +2 -3
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.js.map +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.js +3 -4
- package/dist/collection/components/menu-chat-type/menu-chat-type.js.map +1 -1
- package/dist/collection/components/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu-list/menu-list.js +2 -4
- package/dist/collection/components/menu-list/menu-list.js.map +1 -1
- package/dist/collection/components/message-box/message-box.css +1 -1
- package/dist/collection/components/message-box/message-box.js +3 -4
- package/dist/collection/components/message-box/message-box.js.map +1 -1
- package/dist/collection/components/message-content/message-content.css +1 -1
- package/dist/collection/components/message-content/message-content.js +7 -9
- package/dist/collection/components/message-content/message-content.js.map +1 -1
- package/dist/collection/components/message-item/message-item.css +1 -1
- package/dist/collection/components/message-item/message-item.js +3 -4
- package/dist/collection/components/message-item/message-item.js.map +1 -1
- package/dist/collection/components/message-media/message-media.css +1 -1
- package/dist/collection/components/message-media/message-media.js +5 -6
- package/dist/collection/components/message-media/message-media.js.map +1 -1
- package/dist/collection/components/profile-history/profile-history.css +1 -1
- package/dist/collection/components/profile-history/profile-history.js +4 -7
- package/dist/collection/components/profile-history/profile-history.js.map +1 -1
- package/dist/collection/components/profile-info/profile-info.css +1 -1
- package/dist/collection/components/profile-info/profile-info.js +1 -1
- package/dist/collection/components/profile-info/profile-info.js.map +1 -1
- package/dist/collection/components/profile-info/summarize-message-section.js +2 -2
- package/dist/collection/components/profile-info/summarize-message-section.js.map +1 -1
- package/dist/collection/components/profile-info/user-info-section.js +2 -2
- package/dist/collection/components/profile-info/user-info-section.js.map +1 -1
- package/dist/collection/components/profile-media/profile-media.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.js +3 -4
- package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.js +4 -6
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-button-content.js +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-button-content.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-image-content.js +4 -4
- package/dist/collection/components/quick-message-add-template/quick-message-image-content.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-menu-list-content.js +2 -6
- package/dist/collection/components/quick-message-add-template/quick-message-menu-list-content.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-template-button-dialog.js +2 -2
- package/dist/collection/components/quick-message-add-template/quick-message-template-button-dialog.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-template-button-list.js +5 -5
- package/dist/collection/components/quick-message-add-template/quick-message-template-button-list.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-text-content.js +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-text-content.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-video-content.js +3 -5
- package/dist/collection/components/quick-message-add-template/quick-message-video-content.js.map +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.js +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.js.map +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.js +2 -2
- package/dist/collection/components/quick-message-file/quick-message-file.js.map +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.js +3 -3
- package/dist/collection/components/quick-message-image/quick-message-image.js.map +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.js +1 -3
- package/dist/collection/components/quick-message-modal/quick-message-modal.js.map +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.js +12 -13
- package/dist/collection/components/quick-message-template/quick-message-template.js.map +1 -1
- package/dist/collection/components/search-box/search-box.css +1 -1
- package/dist/collection/components/search-box/search-box.js +2 -3
- package/dist/collection/components/search-box/search-box.js.map +1 -1
- package/dist/collection/components/status-badge/status-badge.css +1 -1
- package/dist/collection/components/status-badge/status-badge.js +3 -5
- package/dist/collection/components/status-badge/status-badge.js.map +1 -1
- package/dist/collection/components/tag-list/tag-list.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.js +2 -4
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.js.map +1 -1
- package/dist/collection/components/tag-popper/tag-popper.css +1 -1
- package/dist/collection/components/tag-popper/tag-popper.js +2 -4
- package/dist/collection/components/tag-popper/tag-popper.js.map +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.js +4 -6
- package/dist/collection/components/typography-clamp/typography-clamp.js.map +1 -1
- package/dist/collection/components/z-avatar/z-avatar.css +1 -1
- package/dist/collection/components/z-avatar/z-avatar.js +1 -3
- package/dist/collection/components/z-avatar/z-avatar.js.map +1 -1
- package/dist/collection/components/z-dialog/z-dialog.css +1 -1
- package/dist/collection/components/z-dialog/z-dialog.js +3 -4
- package/dist/collection/components/z-dialog/z-dialog.js.map +1 -1
- package/dist/components/autocomplete-address.js +1 -1
- package/dist/components/autocomplete-multiple-select.js +1 -1
- package/dist/components/autocomplete-select.js +1 -1
- package/dist/components/channel-box.js +1 -1
- package/dist/components/chat-app.js +44 -44
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-header.js +1 -1
- package/dist/components/chat-input.js +1 -1
- package/dist/components/checkbox-list.js +1 -1
- package/dist/components/dialog-bill-editor.js +1 -1
- package/dist/components/dialog-editor.js +1 -1
- package/dist/components/dialog-preview-media.js +1 -1
- package/dist/components/dialog-search.js +1 -1
- package/dist/components/menu-chat-channel.js +1 -1
- package/dist/components/menu-chat-type.js +1 -1
- package/dist/components/menu-list.js +1 -1
- package/dist/components/message-box.js +1 -1
- package/dist/components/message-content.js +1 -1
- package/dist/components/message-item.js +1 -1
- package/dist/components/message-media.js +1 -1
- package/dist/components/p--6-gPFhh.js +517 -0
- package/dist/components/p--6-gPFhh.js.map +1 -0
- package/dist/components/p-58gnM05C.js +60 -0
- package/dist/components/p-58gnM05C.js.map +1 -0
- package/dist/components/p-9vQxFtwB.js +124 -0
- package/dist/components/p-9vQxFtwB.js.map +1 -0
- package/dist/components/p-B2hzHJmn.js +161 -0
- package/dist/components/p-B2hzHJmn.js.map +1 -0
- package/dist/components/p-B52CXl3S.js +566 -0
- package/dist/components/p-B52CXl3S.js.map +1 -0
- package/dist/components/p-B6K7wNBI.js +136 -0
- package/dist/components/p-B6K7wNBI.js.map +1 -0
- package/dist/components/p-BINMnTok.js +122 -0
- package/dist/components/p-BINMnTok.js.map +1 -0
- package/dist/components/{p-Dr67NIsD.js → p-BPVt9weM.js} +4 -4
- package/dist/components/p-BPVt9weM.js.map +1 -0
- package/dist/components/p-Bhl0cJtt.js +704 -0
- package/dist/components/p-Bhl0cJtt.js.map +1 -0
- package/dist/components/{p-Cln26Qch.js → p-BjytUY9X.js} +3 -5
- package/dist/components/p-BjytUY9X.js.map +1 -0
- package/dist/components/p-C-RfY4ml.js +183 -0
- package/dist/components/p-C-RfY4ml.js.map +1 -0
- package/dist/components/p-C0Ox-t8m.js +110 -0
- package/dist/components/p-C0Ox-t8m.js.map +1 -0
- package/dist/components/{p-HCd8IVUw.js → p-C0tV1VyH.js} +6 -6
- package/dist/components/p-C0tV1VyH.js.map +1 -0
- package/dist/components/p-C2wiyO0Z.js +187 -0
- package/dist/components/p-C2wiyO0Z.js.map +1 -0
- package/dist/components/p-C86RTgEO.js +99 -0
- package/dist/components/p-C86RTgEO.js.map +1 -0
- package/dist/components/p-CQukWN74.js +12 -0
- package/dist/components/p-CQukWN74.js.map +1 -0
- package/dist/components/p-CR0ul3pv.js +111 -0
- package/dist/components/p-CR0ul3pv.js.map +1 -0
- package/dist/components/p-CWouP-QX.js +103 -0
- package/dist/components/p-CWouP-QX.js.map +1 -0
- package/dist/components/p-CXSSgeU-.js +110 -0
- package/dist/components/p-CXSSgeU-.js.map +1 -0
- package/dist/components/p-C_4sxFCg.js +178 -0
- package/dist/components/p-C_4sxFCg.js.map +1 -0
- package/dist/components/p-Cb7Kl7m9.js +226 -0
- package/dist/components/p-Cb7Kl7m9.js.map +1 -0
- package/dist/components/{p-8qEzh9SS.js → p-CiVfPqKY.js} +3 -3
- package/dist/components/p-CiVfPqKY.js.map +1 -0
- package/dist/components/p-CmPioEUc.js +158 -0
- package/dist/components/p-CmPioEUc.js.map +1 -0
- package/dist/components/p-CokIqGkd.js +602 -0
- package/dist/components/p-CokIqGkd.js.map +1 -0
- package/dist/components/p-Cqxf38L8.js +557 -0
- package/dist/components/p-Cqxf38L8.js.map +1 -0
- package/dist/components/p-CyDVTDYz.js +143 -0
- package/dist/components/p-CyDVTDYz.js.map +1 -0
- package/dist/components/p-D3e5zXbz.js +518 -0
- package/dist/components/p-D3e5zXbz.js.map +1 -0
- package/dist/components/p-D7lsBPaE.js +54 -0
- package/dist/components/p-D7lsBPaE.js.map +1 -0
- package/dist/components/{p-fWn0RAxI.js → p-D7p1C-GV.js} +28 -29
- package/dist/components/p-D7p1C-GV.js.map +1 -0
- package/dist/components/p-DAZ1-wLt.js +125 -0
- package/dist/components/p-DAZ1-wLt.js.map +1 -0
- package/dist/components/p-DNlraJ-P.js +141 -0
- package/dist/components/p-DNlraJ-P.js.map +1 -0
- package/dist/components/p-DfG-ebYj.js +132 -0
- package/dist/components/{p-QWdJAi6S.js.map → p-DfG-ebYj.js.map} +1 -1
- package/dist/components/p-DhuDkLvY.js +58 -0
- package/dist/components/p-DhuDkLvY.js.map +1 -0
- package/dist/components/p-DoH02Q2B.js +234 -0
- package/dist/components/p-DoH02Q2B.js.map +1 -0
- package/dist/components/p-DoW6kVb9.js +311 -0
- package/dist/components/p-DoW6kVb9.js.map +1 -0
- package/dist/components/{p-CXREPMwB.js → p-DrKmW41y.js} +3 -5
- package/dist/components/p-DrKmW41y.js.map +1 -0
- package/dist/components/{p-BN5kaJQg.js → p-FhAWwRc3.js} +6 -8
- package/dist/components/p-FhAWwRc3.js.map +1 -0
- package/dist/components/p-L6_EMhji.js +35 -0
- package/dist/components/{p-B_hkj0ZB.js.map → p-L6_EMhji.js.map} +1 -1
- package/dist/components/{p-C_aWPgsl.js → p-WA5K_3rK.js} +5 -9
- package/dist/components/p-WA5K_3rK.js.map +1 -0
- package/dist/components/p-_EaCdLgo.js +105 -0
- package/dist/components/p-_EaCdLgo.js.map +1 -0
- package/dist/components/p-_OziKbNH.js +217 -0
- package/dist/components/p-_OziKbNH.js.map +1 -0
- package/dist/components/p-cH7iCq8E.js +158 -0
- package/dist/components/p-cH7iCq8E.js.map +1 -0
- package/dist/components/p-fZrBBdjT.js +20 -0
- package/dist/components/p-fZrBBdjT.js.map +1 -0
- package/dist/components/p-kiTovzcq.js +79 -0
- package/dist/components/p-kiTovzcq.js.map +1 -0
- package/dist/components/p-r45UkrnT.js +159 -0
- package/dist/components/p-r45UkrnT.js.map +1 -0
- package/dist/components/p-sNMkGZNs.js +77 -0
- package/dist/components/p-sNMkGZNs.js.map +1 -0
- package/dist/components/p-xhP2H16s.js +138 -0
- package/dist/components/p-xhP2H16s.js.map +1 -0
- package/dist/components/profile-history.js +1 -1
- package/dist/components/profile-info.js +1 -1
- package/dist/components/profile-media.js +1 -1
- package/dist/components/profile-tabs.js +1 -1
- package/dist/components/quick-message-add-template.js +1 -1
- package/dist/components/quick-message-app.js +12 -12
- package/dist/components/quick-message-app.js.map +1 -1
- package/dist/components/quick-message-button-content.js +1 -1
- package/dist/components/quick-message-file.js +1 -1
- package/dist/components/quick-message-image-content.js +1 -1
- package/dist/components/quick-message-image.js +1 -1
- package/dist/components/quick-message-menu-list-content.js +1 -1
- package/dist/components/quick-message-modal.js +1 -1
- package/dist/components/quick-message-template.js +1 -1
- package/dist/components/quick-message-text-content.js +1 -1
- package/dist/components/quick-message-video-content.js +1 -1
- package/dist/components/search-box.js +1 -1
- package/dist/components/status-badge.js +1 -1
- package/dist/components/summarize-message-section.js +1 -1
- package/dist/components/tag-list.js +1 -1
- package/dist/components/tag-or-status-item.js +1 -1
- package/dist/components/tag-popper.js +1 -1
- package/dist/components/typography-clamp.js +1 -1
- package/dist/components/user-info-section.js +1 -1
- package/dist/components/z-avatar.js +1 -1
- package/dist/components/z-dialog.js +1 -1
- package/dist/esm/autocomplete-address_43.entry.js +176 -224
- package/dist/esm/quick-message-app.entry.js +2 -2
- package/dist/esm/quick-message-app.entry.js.map +1 -1
- package/dist/types/components/quick-message-add-template/quick-message-template-button-dialog.d.ts +0 -1
- package/dist/types/components/quick-message-add-template/quick-message-template-button-list.d.ts +0 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/zignal-stencil-library/p-962f628d.entry.js +2 -0
- package/dist/zignal-stencil-library/{p-b607bd95.entry.js.map → p-962f628d.entry.js.map} +1 -1
- package/dist/zignal-stencil-library/{p-42323f24.entry.js → p-b76b5b18.entry.js} +284 -284
- package/dist/zignal-stencil-library/p-b76b5b18.entry.js.map +1 -0
- package/dist/zignal-stencil-library/quick-message-app.entry.esm.js.map +1 -1
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p--NVEHLHX.js +0 -519
- package/dist/components/p--NVEHLHX.js.map +0 -1
- package/dist/components/p-3TNBPyVm.js +0 -518
- package/dist/components/p-3TNBPyVm.js.map +0 -1
- package/dist/components/p-5RiW44CU.js +0 -79
- package/dist/components/p-5RiW44CU.js.map +0 -1
- package/dist/components/p-8qEzh9SS.js.map +0 -1
- package/dist/components/p-BIsOKyPf.js +0 -20
- package/dist/components/p-BIsOKyPf.js.map +0 -1
- package/dist/components/p-BN5kaJQg.js.map +0 -1
- package/dist/components/p-BPxd-Uh7.js +0 -144
- package/dist/components/p-BPxd-Uh7.js.map +0 -1
- package/dist/components/p-BTMD7B7C.js +0 -111
- package/dist/components/p-BTMD7B7C.js.map +0 -1
- package/dist/components/p-BTueWK7n.js +0 -566
- package/dist/components/p-BTueWK7n.js.map +0 -1
- package/dist/components/p-B_hkj0ZB.js +0 -35
- package/dist/components/p-BauNUNxj.js +0 -113
- package/dist/components/p-BauNUNxj.js.map +0 -1
- package/dist/components/p-BfUZxTlw.js +0 -160
- package/dist/components/p-BfUZxTlw.js.map +0 -1
- package/dist/components/p-BinfA3W8.js +0 -142
- package/dist/components/p-BinfA3W8.js.map +0 -1
- package/dist/components/p-CQFDMJ5f.js +0 -159
- package/dist/components/p-CQFDMJ5f.js.map +0 -1
- package/dist/components/p-CXREPMwB.js.map +0 -1
- package/dist/components/p-CZVKrQYg.js +0 -104
- package/dist/components/p-CZVKrQYg.js.map +0 -1
- package/dist/components/p-C_HH3fQ_.js +0 -101
- package/dist/components/p-C_HH3fQ_.js.map +0 -1
- package/dist/components/p-C_aWPgsl.js.map +0 -1
- package/dist/components/p-CcDDxBGE.js +0 -124
- package/dist/components/p-CcDDxBGE.js.map +0 -1
- package/dist/components/p-Cln26Qch.js.map +0 -1
- package/dist/components/p-D-k9Ht5O.js +0 -161
- package/dist/components/p-D-k9Ht5O.js.map +0 -1
- package/dist/components/p-D0Q31-og.js +0 -81
- package/dist/components/p-D0Q31-og.js.map +0 -1
- package/dist/components/p-D4V6ee1B.js +0 -219
- package/dist/components/p-D4V6ee1B.js.map +0 -1
- package/dist/components/p-DGgn1vds.js +0 -12
- package/dist/components/p-DGgn1vds.js.map +0 -1
- package/dist/components/p-DHoTm6uV.js +0 -706
- package/dist/components/p-DHoTm6uV.js.map +0 -1
- package/dist/components/p-DOKxmBLB.js +0 -126
- package/dist/components/p-DOKxmBLB.js.map +0 -1
- package/dist/components/p-DPLOHu2O.js +0 -235
- package/dist/components/p-DPLOHu2O.js.map +0 -1
- package/dist/components/p-DW2oCYil.js +0 -58
- package/dist/components/p-DW2oCYil.js.map +0 -1
- package/dist/components/p-DZCButrK.js +0 -140
- package/dist/components/p-DZCButrK.js.map +0 -1
- package/dist/components/p-DZf2MPsy.js +0 -137
- package/dist/components/p-DZf2MPsy.js.map +0 -1
- package/dist/components/p-D_G15kEN.js +0 -163
- package/dist/components/p-D_G15kEN.js.map +0 -1
- package/dist/components/p-DhF7zW13.js +0 -184
- package/dist/components/p-DhF7zW13.js.map +0 -1
- package/dist/components/p-Dhxy6d02.js +0 -603
- package/dist/components/p-Dhxy6d02.js.map +0 -1
- package/dist/components/p-DiFxA9C8.js +0 -61
- package/dist/components/p-DiFxA9C8.js.map +0 -1
- package/dist/components/p-Dm1oFnI9.js +0 -227
- package/dist/components/p-Dm1oFnI9.js.map +0 -1
- package/dist/components/p-DqgWPpNk.js +0 -190
- package/dist/components/p-DqgWPpNk.js.map +0 -1
- package/dist/components/p-Dr67NIsD.js.map +0 -1
- package/dist/components/p-HCd8IVUw.js.map +0 -1
- package/dist/components/p-KjRULqEj.js +0 -55
- package/dist/components/p-KjRULqEj.js.map +0 -1
- package/dist/components/p-LM6YhAdU.js +0 -107
- package/dist/components/p-LM6YhAdU.js.map +0 -1
- package/dist/components/p-LwSnAWDG.js +0 -315
- package/dist/components/p-LwSnAWDG.js.map +0 -1
- package/dist/components/p-N2esZK19.js +0 -124
- package/dist/components/p-N2esZK19.js.map +0 -1
- package/dist/components/p-QAZAlQ6_.js +0 -557
- package/dist/components/p-QAZAlQ6_.js.map +0 -1
- package/dist/components/p-QWdJAi6S.js +0 -132
- package/dist/components/p-W6QLnwgO.js +0 -112
- package/dist/components/p-W6QLnwgO.js.map +0 -1
- package/dist/components/p-fWn0RAxI.js.map +0 -1
- package/dist/components/p-sd8--sZk.js +0 -178
- package/dist/components/p-sd8--sZk.js.map +0 -1
- package/dist/zignal-stencil-library/p-42323f24.entry.js.map +0 -1
- package/dist/zignal-stencil-library/p-b607bd95.entry.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-section.js","sourceRoot":"","sources":["../../../src/components/internal-component/tag-section.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAsBnE,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAC/D,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,QAAQ,EACR,eAAe,GAChB,EAAE,EAAE;IACH,MAAM,CAAC,GAAG,cAAc,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,YAAY,GAAG,iBAAiB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAE3D,OAAO,CACL,WAAK,KAAK,
|
|
1
|
+
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CAAC,uBAAuB,CAAC,CAAQ,CAC1E,CACG;YACL,iBAAiB,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CACxC,WAAK,KAAK,EAAC,oCAAoC;gBAC7C,oBAAc,MAAM,EAAC,SAAS,EAAC,KAAK,EAAE,CAAC,CAAC,sBAAsB,CAAC,GAAI,CAC/D,CACP,CACG,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { UserItem, TTagOrStatusItem } from '../../store/type';\nimport { useTranslation } from '../../utils/utils';\nimport { ZIconButton } from './z-icon-button';\nimport { ZTagOrStatusItem } from './z-tag-or-status-item';\nimport { ZButton } from './z-button';\nimport { handleGetUserTags } from '../../store/chat';\nimport { configStore, selectedChatStore } from '../../store/store';\n\ninterface TagSectionProps {\n user: UserItem;\n readOnly?: boolean;\n activeTabIndex: number;\n isEditTag: boolean;\n isAddTag: boolean;\n tagItems: {\n item: TTagOrStatusItem;\n isAdd?: boolean;\n isDelete?: boolean;\n }[];\n onEditTag: () => void;\n onCloseTag: () => void;\n onSaveUserTags: () => void;\n onSetIsAddTag: (value: boolean) => void;\n onDeleteTag: (tagId: string) => void;\n onAddTag: (tag: TTagOrStatusItem) => void;\n onCreateUserTag: (name: string) => Promise<TTagOrStatusItem>;\n}\n\nexport const TagSection: FunctionalComponent<TagSectionProps> = ({\n user,\n readOnly = false,\n activeTabIndex,\n isEditTag,\n isAddTag,\n tagItems,\n onEditTag,\n onCloseTag,\n onSaveUserTags,\n onSetIsAddTag,\n onDeleteTag,\n onAddTag,\n onCreateUserTag,\n}) => {\n const t = useTranslation();\n const theme = configStore.get('theme');\n const selectedChat = selectedChatStore.get('selectedChat');\n\n return (\n <div class=\"profile-info-user-wrapper border-b-[0.5px] pt-2 gap-y-1 border-divider\" data-theme={theme}>\n <div class=\"col-span-3 profile-info-box-wrapper\">\n <span class=\"text-surface whitespace-nowrap\">{t('tag')}</span>\n\n {!readOnly && activeTabIndex === 0 && (\n <slot>\n {isEditTag ? (\n <div class=\"profile-info-box-wrapper justify-end w-full\">\n <ZIconButton variant=\"text\" iconName=\"X\" addClassIcon=\"size-4\" onClick={onCloseTag} />\n <ZIconButton variant=\"text\" iconName=\"Save\" addClassIcon=\"size-4\" onClick={onSaveUserTags} />\n </div>\n ) : (\n <div class=\"profile-info-box-wrapper justify-end w-full\">\n <ZIconButton variant=\"text\" iconName=\"Pencil\" addClassIcon=\"size-4\" onClick={onEditTag} />\n </div>\n )}\n </slot>\n )}\n </div>\n\n <div class={`profile-info-tag-wrapper scroll-container`}>\n {isEditTag ? (\n <div class=\"col-span-3\">\n <div class=\"profile-info-box-wrapper flex-wrap\">\n {tagItems.length > 0 &&\n tagItems\n .filter(({ isDelete }) => !isDelete)\n .sort((a, b) => a.item.sequence - b.item.sequence)\n .map(tag => <ZTagOrStatusItem item={tag.item} onDelete={() => onDeleteTag(tag.item.id)} />)}\n </div>\n {selectedChatStore.get('isSyncingTag') && (\n <div class=\"profile-info-status-wrapper\">\n <status-badge status=\"loading\" label={t('chat_tab.syncing_tag')} />\n </div>\n )}\n <div class=\"mt-2\">\n {isAddTag ? (\n <autocomplete-select\n referenceSelector=\"profile-tag\"\n type=\"tag\"\n selectedIds={tagItems.filter(({ isDelete }) => !isDelete).map(({ item }) => item.id)}\n fetchItems={handleGetUserTags}\n createItem={name => onCreateUserTag(name).then(res => res)}\n onSelecting={item => onAddTag(item.detail)}\n />\n ) : (\n <ZButton variant=\"outlined\" fullWidth label={`+ ${t('profile_tab.add_tag')}`} onClick={() => onSetIsAddTag(true)} />\n )}\n </div>\n </div>\n ) : (\n <div class=\"col-span-3\">\n <div class=\"profile-info-box-wrapper flex-wrap\">\n {user.tags && user.tags.length > 0 ? (\n user.tags\n .sort((a, b) => a.sequence - b.sequence)\n .map(tag => <tag-or-status-item item={tag} expandText chatId={`profile-status-${selectedChat.id}-${readOnly ? 'readonly' : ''}`} />)\n ) : (\n <span class=\"text-sm text-theme-gray\">{t('profile_tab.tag_empty')}</span>\n )}\n </div>\n {selectedChatStore.get('isSyncingTag') && (\n <div class=\"profile-info-status-bottom-wrapper\">\n <status-badge status=\"loading\" label={t('chat_tab.syncing_tag')} />\n </div>\n )}\n </div>\n )}\n </div>\n </div>\n );\n};\n"]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { configStore } from "../../store/store";
|
|
3
2
|
export const ZButtonGroup = ({ id, options, value, onChange, size = 'medium', fullWidth = false, variant = 'primary', }) => {
|
|
4
|
-
const theme = configStore.get('theme');
|
|
5
3
|
let sizeClass = 'z-button-group-medium';
|
|
6
4
|
if (size === 'small') {
|
|
7
5
|
sizeClass = 'z-button-group-small';
|
|
@@ -14,9 +12,7 @@ export const ZButtonGroup = ({ id, options, value, onChange, size = 'medium', fu
|
|
|
14
12
|
onChange(optionValue);
|
|
15
13
|
}
|
|
16
14
|
};
|
|
17
|
-
return (h("div", { id: id, class: `z-button-group ${variant === 'tab' ? 'z-button-group-tab' : ''} ${sizeClass} ${fullWidth ? 'w-full' : ''}
|
|
18
|
-
? { backgroundColor: theme === 'light' ? 'rgba(0,0,0,0.3)' : 'rgba(255,255,255,0.3)' }
|
|
19
|
-
: {} }, options.map((option, index) => {
|
|
15
|
+
return (h("div", { id: id, class: `z-button-group ${variant === 'tab' ? 'z-button-group-tab z-button-group-tab-overlay' : ''} ${sizeClass} ${fullWidth ? 'w-full' : ''}` }, options.map((option, index) => {
|
|
20
16
|
const isSelected = value === option.value;
|
|
21
17
|
const isDisabled = option.disabled || false;
|
|
22
18
|
const isFirst = index === 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-button-group.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-button-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAO,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"z-button-group.js","sourceRoot":"","sources":["../../../src/components/intern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ACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, JSX } from '@stencil/core';\n\nexport interface ZButtonGroupOption {\n value: string;\n label: JSX.Element;\n disabled?: boolean;\n}\n\ninterface ZButtonGroupProps {\n id?: string;\n options: ZButtonGroupOption[];\n value?: string;\n onChange?: (value: string) => void;\n size?: 'small' | 'medium' | 'large';\n fullWidth?: boolean;\n variant?: 'primary' | 'outlined' | 'tab';\n}\n\nexport const ZButtonGroup: FunctionalComponent<ZButtonGroupProps> = ({\n id,\n options,\n value,\n onChange,\n size = 'medium',\n fullWidth = false,\n variant = 'primary',\n}) => {\n let sizeClass = 'z-button-group-medium';\n if (size === 'small') {\n sizeClass = 'z-button-group-small';\n }\n if (size === 'large') {\n sizeClass = 'z-button-group-large';\n }\n\n const handleButtonClick = (optionValue: string, disabled?: boolean) => {\n if (!disabled && onChange) {\n onChange(optionValue);\n }\n };\n\n return (\n <div\n id={id}\n class={`z-button-group ${variant === 'tab' ? 'z-button-group-tab z-button-group-tab-overlay' : ''} ${sizeClass} ${fullWidth ? 'w-full' : ''}`}\n >\n {options.map((option, index) => {\n const isSelected = value === option.value;\n const isDisabled = option.disabled || false;\n const isFirst = index === 0;\n const isLast = index === options.length - 1;\n\n let buttonClass = 'z-button-group-item';\n\n if (variant === 'tab') {\n buttonClass += ' z-button-group-item-tab';\n if (isSelected) {\n buttonClass += ' z-button-group-item-tab-selected';\n } else {\n buttonClass += ' z-button-group-item-tab-unselected';\n }\n } else {\n if (isFirst) {\n buttonClass += ' z-button-group-item-first';\n }\n if (isLast) {\n buttonClass += ' z-button-group-item-last';\n }\n if (!isFirst && !isLast) {\n buttonClass += ' z-button-group-item-middle';\n }\n\n if (variant === 'primary') {\n if (isSelected) {\n buttonClass += ' z-button-group-item-primary-selected';\n } else {\n buttonClass += ' z-button-group-item-primary-unselected';\n }\n } else {\n if (isSelected) {\n buttonClass += ' z-button-group-item-outlined-selected';\n } else {\n buttonClass += ' z-button-group-item-outlined-unselected';\n }\n }\n }\n\n if (isDisabled) {\n buttonClass += ' z-button-group-item-disabled';\n }\n\n buttonClass += ` ${sizeClass}`;\n\n return (\n <button\n key={option.value}\n type=\"button\"\n class={buttonClass}\n disabled={isDisabled}\n onClick={() => handleButtonClick(option.value, isDisabled)}\n >\n {option.label}\n </button>\n );\n })}\n </div>\n );\n};\n"]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { configStore } from "../../store/store";
|
|
3
2
|
export const ZButton = ({ id, variant = 'primary', textVariant = 'primary', disabled = false, onClick, fullWidth, maxWidth, label, startIcon, endIcon, size = 'medium', ref, title, }) => {
|
|
4
|
-
const theme = configStore.get('theme');
|
|
5
3
|
let styleSize = 'z-button-medium';
|
|
6
4
|
if (size === 'small') {
|
|
7
5
|
styleSize = 'z-button-small';
|
|
@@ -12,7 +10,7 @@ export const ZButton = ({ id, variant = 'primary', textVariant = 'primary', disa
|
|
|
12
10
|
const base = `z-button ${styleSize} ${fullWidth ? 'w-full' : maxWidth ? maxWidth : ''}`;
|
|
13
11
|
const primary = 'z-button-primary';
|
|
14
12
|
const outlined = 'z-button-outlined';
|
|
15
|
-
const text = `${textVariant === 'primary' ? 'text-primary' :
|
|
13
|
+
const text = `${textVariant === 'primary' ? 'text-primary' : 'text-surface'} hover:brightness-110`;
|
|
16
14
|
const disabledStyle = 'z-button-disabled';
|
|
17
15
|
const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : text, disabled ? disabledStyle : ''].join(' ');
|
|
18
16
|
return (h("button", { id: id, title: title, ref: ref, class: classList, disabled: disabled, onClick: e => !disabled && onClick?.(e) }, startIcon, h("span", { class: "z-button-text", id: id }, label), endIcon));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-button.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAO,MAAM,eAAe,CAAC;
|
|
1
|
+
{"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C,GAAG,CAAC,CAAC;IAE9I,OAAO,CACL,cAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC;QAClH,SAAS;QACV,YAAM,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,EAAE,IAC/B,KAAK,CACD;QACN,OAAO,CACD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, JSX } from '@stencil/core';\n\ninterface ZButtonProps {\n id?: string;\n variant?: 'primary' | 'outlined' | 'text';\n textVariant?: 'primary' | 'text';\n disabled?: boolean;\n onClick?: (e: MouseEvent) => void;\n fullWidth?: boolean;\n maxWidth?: string;\n label?: JSX.Element;\n startIcon?: JSX.Element;\n endIcon?: JSX.Element;\n size?: 'small' | 'medium' | 'large';\n ref?: (elm?: HTMLButtonElement) => void;\n title?: string;\n}\n\nexport const ZButton: FunctionalComponent<ZButtonProps> = ({\n id,\n variant = 'primary',\n textVariant = 'primary',\n disabled = false,\n onClick,\n fullWidth,\n maxWidth,\n label,\n startIcon,\n endIcon,\n size = 'medium',\n ref,\n title,\n}) => {\n let styleSize = 'z-button-medium';\n if (size === 'small') {\n styleSize = 'z-button-small';\n }\n if (size === 'large') {\n styleSize = 'z-button-large';\n }\n\n const base = `z-button ${styleSize} ${fullWidth ? 'w-full' : maxWidth ? maxWidth : ''}`;\n const primary = 'z-button-primary';\n const outlined = 'z-button-outlined';\n const text = `${textVariant === 'primary' ? 'text-primary' : 'text-surface'} hover:brightness-110`;\n const disabledStyle = 'z-button-disabled';\n\n const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : text, disabled ? disabledStyle : ''].join(' ');\n\n return (\n <button id={id} title={title} ref={ref} class={classList} disabled={disabled} onClick={e => !disabled && onClick?.(e)}>\n {startIcon}\n <span class=\"z-button-text\" id={id}>\n {label}\n </span>\n {endIcon}\n </button>\n );\n};\n"]}
|
|
@@ -36,7 +36,7 @@ export const ZContextInput = ({ keyInput, valueInput, onDelete }) => {
|
|
|
36
36
|
requestAnimationFrame(() => syncHeights());
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
return (h("div", { class: "z-context-input" }, h("textarea", { ref: handleKeyRef, disabled: keyInput.disabled, id: keyInput.id, placeholder: keyInput.placeholder, class:
|
|
40
|
-
h("div", { class: "ml-0.5" }, h(ZIconButton, { variant: 'text', iconName: "Trash2", addClassIcon:
|
|
39
|
+
return (h("div", { class: "z-context-input", "data-theme": theme }, h("textarea", { ref: handleKeyRef, disabled: keyInput.disabled, id: keyInput.id, placeholder: keyInput.placeholder, class: "z-context-input-key scroll-container", value: keyInput.value, onInput: handleKeyInput, autoFocus: true, rows: 1 }), h("textarea", { ref: handleValueRef, disabled: keyInput.disabled, id: valueInput.id, placeholder: valueInput.placeholder, class: "z-context-input-value scroll-container", value: valueInput.value, onInput: handleValueInput, rows: 1 }), onDelete &&
|
|
40
|
+
h("div", { class: "ml-0.5" }, h(ZIconButton, { variant: 'text', iconName: "Trash2", addClassIcon: "size-4 text-primary", onClick: onDelete }))));
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=z-context-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-context-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-context-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgB9C,IAAI,aAAa,GAA+B,IAAI,CAAC;AACrD,IAAI,eAAe,GAA+B,IAAI,CAAC;AAEvD,MAAM,WAAW,GAAG,GAAG,EAAE;IACvB,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AW,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,EAAwB,EAAE,EAAE;QAClD,IAAI,EAAE,EAAE,CAAC;YACP,eAAe,GAAG,EAAE,CAAC;YACrB,qBAAqB,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,WAAK,KAAK,EAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"z-context-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-context-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgB9C,IAAI,aAAa,GAA+B,IAAI,CAAC;AACrD,IAAI,eAAe,GAA+B,IAAI,CAAC;AAEvD,MAAM,WAAW,GAAG,GAAG,EAAE;IACvB,IAAI,CAAC,aAAa,IAAI,CAAC,eAAe;QAAE,OAAO;IAE/C,aAAa,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IACpC,eAAe,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAEtC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAErF,aAAa,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,SAAS,IAAI,CAAC;IAC9C,eAAe,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,SAAS,IAAI,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4C,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3G,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,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AAI,EAAE,CAAC,GACP;QACF,gBACE,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,EAAE,EAAE,UAAU,CAAC,EAAE,EACjB,WAAW,EAAE,UAAU,CAAC,WAAW,EACnC,KAAK,EAAC,wCAAwC,EAC9C,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,CAAC,GACP;QACD,QAAQ;YACP,WAAK,KAAK,EAAC,QAAQ;gBACjB,EAAC,WAAW,IAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAC,YAAY,EAAC,qBAAqB,EAAC,OAAO,EAAE,QAAQ,GAAI,CAClG,CAEJ,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\nimport { ZIconButton } from './z-icon-button';\n\ninterface ZContextInputItem {\n id?: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n error?: string;\n disabled?: boolean\n}\ninterface ZContextInputProps {\n keyInput: ZContextInputItem\n valueInput: ZContextInputItem\n onDelete?: () => void\n}\n\nlet keyTextareaEl: HTMLTextAreaElement | null = null;\nlet valueTextareaEl: HTMLTextAreaElement | null = null;\n\nconst syncHeights = () => {\n if (!keyTextareaEl || !valueTextareaEl) return;\n\n keyTextareaEl.style.height = 'auto';\n valueTextareaEl.style.height = 'auto';\n\n const maxHeight = Math.max(keyTextareaEl.scrollHeight, valueTextareaEl.scrollHeight);\n\n keyTextareaEl.style.height = `${maxHeight}px`;\n valueTextareaEl.style.height = `${maxHeight}px`;\n};\n\nexport const ZContextInput: FunctionalComponent<ZContextInputProps> = ({ keyInput, valueInput, onDelete }) => {\n const theme = configStore.get('theme');\n\n const handleKeyInput = (e: Event) => {\n const target = e.target as HTMLTextAreaElement;\n keyInput.onChange?.(target.value);\n requestAnimationFrame(() => syncHeights());\n };\n\n const handleValueInput = (e: Event) => {\n const target = e.target as HTMLTextAreaElement;\n valueInput.onChange?.(target.value);\n requestAnimationFrame(() => syncHeights());\n };\n\n const handleKeyRef = (el?: HTMLTextAreaElement) => {\n if (el) {\n keyTextareaEl = el;\n requestAnimationFrame(() => syncHeights());\n }\n };\n\n const handleValueRef = (el?: HTMLTextAreaElement) => {\n if (el) {\n valueTextareaEl = el;\n requestAnimationFrame(() => syncHeights());\n }\n };\n\n return (\n <div class=\"z-context-input\" data-theme={theme}>\n <textarea\n ref={handleKeyRef}\n disabled={keyInput.disabled}\n id={keyInput.id}\n placeholder={keyInput.placeholder}\n class=\"z-context-input-key scroll-container\"\n value={keyInput.value}\n onInput={handleKeyInput}\n autoFocus={true}\n rows={1}\n />\n <textarea\n ref={handleValueRef}\n disabled={keyInput.disabled}\n id={valueInput.id}\n placeholder={valueInput.placeholder}\n class=\"z-context-input-value scroll-container\"\n value={valueInput.value}\n onInput={handleValueInput}\n rows={1}\n />\n {onDelete &&\n <div class=\"ml-0.5\">\n <ZIconButton variant='text' iconName=\"Trash2\" addClassIcon=\"size-4 text-primary\" onClick={onDelete} />\n </div>\n }\n </div>\n );\n};\n"]}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Icon } from "./icon";
|
|
3
|
-
import { configStore } from "../../store/store";
|
|
4
3
|
export const ZIconButton = ({ id, variant = 'primary', disabled = false, onClick, iconName, icon, noPadding, noPaddingY, addClassIcon, ref, isLoading, title, }) => {
|
|
5
|
-
const theme = configStore.get('theme');
|
|
6
4
|
const base = `z-icon-button px-${noPadding ? 0 : '2 w-9'} py-${noPaddingY ? 0 : 2}`;
|
|
7
5
|
const primary = 'z-icon-button-primary';
|
|
8
6
|
const outlined = 'z-icon-button-outlined';
|
|
9
7
|
const text = 'z-icon-button-text';
|
|
10
|
-
const none =
|
|
8
|
+
const none = "hover:brightness-110 text-surface";
|
|
11
9
|
const disabledStyle = 'z-icon-button-disabled';
|
|
12
10
|
const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : variant === 'text' ? text : none, disabled ? disabledStyle : ''].join(' ');
|
|
13
11
|
return (h("button", { id: id, title: title, ref: ref, class: classList, disabled: disabled, onClick: e => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-icon-button.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAO,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"z-icon-button.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAO,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiB9B,MAAM,CAAC,MAAM,WAAW,GAA0C,CAAC,EACjE,EAAE,EACF,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,UAAU,EACV,YAAY,EACZ,GAAG,EACH,SAAS,EACT,KAAK,GACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,oBAAoB,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACpF,MAAM,OAAO,GAAG,uBAAuB,CAAC;IACxC,MAAM,QAAQ,GAAG,wBAAwB,CAAC;IAC1C,MAAM,IAAI,GAAG,oBAAoB,CAAC;IAClC,MAAM,IAAI,GAAG,mCAAmC,CAAC;IACjD,MAAM,aAAa,GAAG,wBAAwB,CAAC;IAE/C,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE1K,OAAO,CACL,cACE,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE;YACX,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS,EAAE,CAAC;gBAC5B,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;YACf,CAAC;QACH,CAAC,IAEA,IAAI,IAAI,EAAC,IAAI,IAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,gBAAgB,YAAY,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,YAAY,GAAI,CACxI,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h, JSX } from '@stencil/core';\nimport { Icon } from './icon';\n\ninterface ZIconButtonProps {\n id?: string;\n variant?: 'primary' | 'outlined' | 'text' | 'none';\n disabled?: boolean;\n onClick?: (e: MouseEvent) => void;\n iconName?: string;\n icon?: JSX.Element;\n noPadding?: boolean;\n noPaddingY?: boolean;\n addClassIcon?: string;\n ref?: (elm?: HTMLButtonElement) => void;\n isLoading?: boolean;\n title?: string;\n}\n\nexport const ZIconButton: FunctionalComponent<ZIconButtonProps> = ({\n id,\n variant = 'primary',\n disabled = false,\n onClick,\n iconName,\n icon,\n noPadding,\n noPaddingY,\n addClassIcon,\n ref,\n isLoading,\n title,\n}) => {\n const base = `z-icon-button px-${noPadding ? 0 : '2 w-9'} py-${noPaddingY ? 0 : 2}`;\n const primary = 'z-icon-button-primary';\n const outlined = 'z-icon-button-outlined';\n const text = 'z-icon-button-text';\n const none = \"hover:brightness-110 text-surface\";\n const disabledStyle = 'z-icon-button-disabled';\n\n const classList = [base, variant === 'primary' ? primary : variant === 'outlined' ? outlined : variant === 'text' ? text : none, disabled ? disabledStyle : ''].join(' ');\n\n return (\n <button\n id={id}\n title={title}\n ref={ref}\n class={classList}\n disabled={disabled}\n onClick={e => {\n if (!disabled && !isLoading) {\n onClick?.(e);\n }\n }}\n >\n {icon || <Icon name={isLoading ? 'LoaderCircle' : iconName} addClass={isLoading ? `animate-spin ${addClassIcon || 'size-5'}` : addClassIcon} />}\n </button>\n );\n};\n"]}
|
|
@@ -2,6 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { configStore } from "../../store/store";
|
|
3
3
|
export const ZInputArea = ({ id, label, placeholder = '', value = '', onChange, autoFocus, rows = 3, error }) => {
|
|
4
4
|
const theme = configStore.get('theme');
|
|
5
|
-
return (h("div", { class: "mb-2" }, label && h("label", { class:
|
|
5
|
+
return (h("div", { class: "mb-2", "data-theme": theme }, label && h("label", { class: "z-input-area-label" }, label), h("textarea", { id: id, placeholder: placeholder, class: "z-input-area-input", value: value, onInput: (e) => onChange?.(e.target.value), autoFocus: autoFocus, rows: rows }), error && h("p", { class: "z-input-area-error" }, error)));
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=z-input-area.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-input-area.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpJ,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"z-input-area.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpJ,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM,gBAAa,KAAK;QAChC,KAAK,IAAI,aAAO,KAAK,EAAC,oBAAoB,IAAE,KAAK,CAAS;QAC3D,gBACE,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAC,oBAAoB,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV;QACD,KAAK,IAAI,SAAG,KAAK,EAAC,oBAAoB,IAAE,KAAK,CAAK,CAC/C,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZInputAreaProps {\n id?: string;\n label?: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n autoFocus?: boolean;\n rows?: number;\n error?: string;\n}\n\nexport const ZInputArea: FunctionalComponent<ZInputAreaProps> = ({ id, label, placeholder = '', value = '', onChange, autoFocus, rows = 3, error }) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-2\" data-theme={theme}>\n {label && <label class=\"z-input-area-label\">{label}</label>}\n <textarea\n id={id}\n placeholder={placeholder}\n class=\"z-input-area-input\"\n value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n autoFocus={autoFocus}\n rows={rows}\n />\n {error && <p class=\"z-input-area-error\">{error}</p>}\n </div>\n );\n};\n"]}
|
|
@@ -2,6 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { configStore } from "../../store/store";
|
|
3
3
|
export const ZInput = ({ id, label, placeholder = '', value = '', onChange, onKeyDown, autoFocus, type = 'text', error }) => {
|
|
4
4
|
const theme = configStore.get('theme');
|
|
5
|
-
return (h("div", { class: "mb-4" }, label && h("label", { class:
|
|
5
|
+
return (h("div", { class: "mb-4", "data-theme": theme }, label && h("label", { class: "z-input-label" }, label), h("input", { id: id, type: type, placeholder: placeholder, class: "z-input", value: value, onInput: (e) => onChange?.(e.target.value), onKeyDown: onKeyDown, autoFocus: autoFocus }), error && h("p", { class: "z-input-error" }, error)));
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=z-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD,MAAM,CAAC,MAAM,MAAM,GAAqC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IAC5J,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"z-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD,MAAM,CAAC,MAAM,MAAM,GAAqC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IAC5J,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM,gBAAa,KAAK;QAChC,KAAK,IAAI,aAAO,KAAK,EAAC,eAAe,IAAE,KAAK,CAAS;QACtD,aACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,KAAK,EAAC,SAAS,EACf,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC/C,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,GACpB;QACD,KAAK,IAAI,SAAG,KAAK,EAAC,eAAe,IAAE,KAAK,CAAK,CAC1C,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZInputProps {\n id?: string;\n label?: string;\n placeholder?: string;\n value?: string;\n onChange?: (value: string) => void;\n onKeyDown?: (event: KeyboardEvent) => void;\n autoFocus?: boolean;\n type?: string;\n error?: string;\n}\n\nexport const ZInput: FunctionalComponent<ZInputProps> = ({ id, label, placeholder = '', value = '', onChange, onKeyDown, autoFocus, type = 'text', error }) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-4\" data-theme={theme}>\n {label && <label class=\"z-input-label\">{label}</label>}\n <input\n id={id}\n type={type}\n placeholder={placeholder}\n class=\"z-input\"\n value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n onKeyDown={onKeyDown}\n autoFocus={autoFocus}\n />\n {error && <p class=\"z-input-error\">{error}</p>}\n </div>\n );\n};\n"]}
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { configStore } from "../../store/store";
|
|
3
3
|
export const ZSelectInput = ({ label, placeholder = '', value, options, onChange }) => {
|
|
4
4
|
const theme = configStore.get('theme');
|
|
5
|
-
return (h("div", { class: "mb-4" }, h("label", { class:
|
|
5
|
+
return (h("div", { class: "mb-4", "data-theme": theme }, h("label", { class: "z-select-input-label text-surface" }, label), h("select", { class: "z-input border-divider bg-background text-surface",
|
|
6
6
|
// value={value}
|
|
7
7
|
onInput: (e) => onChange?.(e.target.value) }, h("option", { value: "", disabled: true, hidden: true }, placeholder), options.map(opt => (h("option", { value: opt.value, selected: opt.value === value }, opt.label))))));
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-select-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-select-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,MAAM,CAAC,MAAM,YAAY,GAA2C,CAAC,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5H,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"z-select-input.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-select-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD,MAAM,CAAC,MAAM,YAAY,GAA2C,CAAC,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5H,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CACL,WAAK,KAAK,EAAC,MAAM,gBAAa,KAAK;QACjC,aAAO,KAAK,EAAC,mCAAmC,IAAE,KAAK,CAAS;QAChE,cACE,KAAK,EAAC,mDAAmD;YACzD,gBAAgB;YAChB,OAAO,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YAE/C,cAAQ,KAAK,EAAC,EAAE,EAAC,QAAQ,QAAC,MAAM,UAC7B,WAAW,CACL;YACR,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAClB,cAAQ,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,KAAK,KAAK,KAAK,IAAG,GAAG,CAAC,KAAK,CAAU,CAC9E,CAAC,CACK,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { configStore } from '../../store/store';\n\ninterface ZSelectInputProps {\n label: string;\n placeholder?: string;\n value?: string;\n options: { label: string; value: string }[];\n onChange?: (value: string) => void;\n}\n\nexport const ZSelectInput: FunctionalComponent<ZSelectInputProps> = ({ label, placeholder = '', value, options, onChange }) => {\n const theme = configStore.get('theme');\n return (\n <div class=\"mb-4\" data-theme={theme}>\n <label class=\"z-select-input-label text-surface\">{label}</label>\n <select\n class=\"z-input border-divider bg-background text-surface\"\n // value={value}\n onInput={(e: any) => onChange?.(e.target.value)}\n >\n <option value=\"\" disabled hidden>\n {placeholder}\n </option>\n {options.map(opt => (\n <option value={opt.value} selected={opt.value === value}>{opt.label}</option>\n ))}\n </select>\n </div>\n );\n};\n"]}
|
|
@@ -7,7 +7,7 @@ export const ZTagOrStatusItem = ({ item, expandText, onDelete }) => {
|
|
|
7
7
|
const theme = configStore.get('theme');
|
|
8
8
|
const isColor = Boolean(item.color);
|
|
9
9
|
const color = item.color || 'var(--color-background-dark)';
|
|
10
|
-
return (h("div", { class: `z-tag-or-status-item ${isColor ? '' : `border
|
|
10
|
+
return (h("div", { class: `z-tag-or-status-item ${isColor ? '' : `border border-primary`}`, style: { backgroundColor: isColor ? color : `` }, "data-theme": theme }, h("span", { title: name, class: `z-tag-or-status-item-name ${expandText ? 'whitespace-pre-line' : 'truncate'} ${isColor ? '' : `text-primary`}`, style: { color: isColor ? getContrastColorHelper(color) : undefined } }, name), item.iconName && h("img", { src: `https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/${item.iconName}.png`, alt: "agent avatar", class: "z-tag-or-status-item-icon", loading: "lazy" }), onDelete && (h(ZIconButton, { variant: "none", iconName: "X", noPadding: true, noPaddingY: true, addClassIcon: `size-3 ${isColor ? '' : `text-primary`}`, onClick: e => {
|
|
11
11
|
e.stopPropagation();
|
|
12
12
|
onDelete();
|
|
13
13
|
} }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-tag-or-status-item.js","sourceRoot":"","sources":["../../../src/components/internal-component/z-tag-or-status-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM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,WACE,KAAK,EAAE,wBAAwB,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,EAAE,EACvE,KAAK,EAAE,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,gBACpC,KAAK;QACjB,YACE,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,6BAA6B,UAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,UAAU,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACtH,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,IAEpE,IAAI,CACA;QACN,IAAI,CAAC,QAAQ,IAAI,WAAK,GAAG,EAAE,0EAA0E,IAAI,CAAC,QAAQ,MAAM,EAAE,GAAG,EAAC,cAAc,EAAC,KAAK,EAAC,2BAA2B,EAAC,OAAO,EAAC,MAAM,GAAG;QAChM,QAAQ,IAAI,CACX,EAAC,WAAW,IACV,OAAO,EAAC,MAAM,EACd,QAAQ,EAAC,GAAG,EACZ,SAAS,QACT,UAAU,QACV,YAAY,EAAE,UAAU,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACvD,OAAO,EAAE,CAAC,CAAC,EAAE;gBACX,CAAC,CAAC,eAAe,EAAE,CAAC;gBACpB,QAAQ,EAAE,CAAC;YACb,CAAC,GACD,CACH,CACG,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from '@stencil/core';\nimport { ZIconButton } from './z-icon-button';\nimport { TTagOrStatusItem } from '../../store/type';\nimport { getContrastColorHelper } from '../../utils/utils';\nimport { configStore } from '../../store/store';\n\ninterface ZTagOrStatusItemProps {\n item: TTagOrStatusItem;\n expandText?: boolean;\n onDelete?: () => void;\n}\n\nexport const ZTagOrStatusItem: FunctionalComponent<ZTagOrStatusItemProps> = ({ item, expandText, onDelete }) => {\n const { name } = item;\n const theme = configStore.get('theme');\n const isColor = Boolean(item.color);\n const color = item.color || 'var(--color-background-dark)';\n\n return (\n <div\n class={`z-tag-or-status-item ${isColor ? '' : `border border-primary`}`}\n style={{ backgroundColor: isColor ? color : `` }}\n data-theme={theme}>\n <span\n title={name}\n class={`z-tag-or-status-item-name ${expandText ? 'whitespace-pre-line' : 'truncate'} ${isColor ? '' : `text-primary`}`}\n style={{ color: isColor ? getContrastColorHelper(color) : undefined }}\n >\n {name}\n </span>\n {item.iconName && <img src={`https://zwizai-platform.s3.ap-southeast-1.amazonaws.com/zignal-package/${item.iconName}.png`} alt=\"agent avatar\" class=\"z-tag-or-status-item-icon\" loading=\"lazy\" />}\n {onDelete && (\n <ZIconButton\n variant=\"none\"\n iconName=\"X\"\n noPadding\n noPaddingY\n addClassIcon={`size-3 ${isColor ? '' : `text-primary`}`}\n onClick={e => {\n e.stopPropagation();\n onDelete();\n }}\n />\n )}\n </div>\n );\n};\n"]}
|