@fewangsit/wangsvue-fats 1.0.0-alpha.43 → 1.0.0-alpha.44
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/components/buttoncopy/ButtonCopy.vue.d.ts +4 -6
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
- package/components/index.d.ts +61 -162
- package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
- package/event-bus/index.d.ts +3 -0
- package/loading-page-BrQattYE.js +1 -0
- package/loading-page-CoC9UhfC.js +4 -0
- package/loading-page-DbLuqCHa.js +1 -0
- package/loading-page-f8D03l3G.js +4 -0
- package/loading-plane-CgfbWppy.js +1 -0
- package/loading-plane-CoXtqoc9.js +4 -0
- package/loading-table-Bdr9ZhtP.js +1 -0
- package/loading-table-ByUoWqUo.js +4 -0
- package/loading-table-BygEMzFM.js +4 -0
- package/loading-table-BzrSQlA0.js +1 -0
- package/loading-table-D9bw9OcI.js +4 -0
- package/loading-table-chOgXi94.js +1 -0
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Cgze_Rvp.js +1 -0
- package/{assets/lottie/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
- package/no-data-Dep79CBh.js +1 -0
- package/no-data-g0dJCy2p.js +4 -0
- package/no-data-y1X5WtcQ.js +1 -0
- package/package.json +3 -3
- package/stats.html +1 -1
- package/style.css +1 -1
- package/wangsvue-fats.js +52069 -144
- package/wangsvue-fats.system.js +312 -1
- package/ButtonCopy-C6DSmsOR.es.js +0 -4
- package/ButtonCopy-CeBlNyVx.system.js +0 -1
- package/ButtonSync-BLyCwwnU.system.js +0 -1
- package/ButtonSync-DtUhn-Q-.es.js +0 -4
- package/ButtonToggle-B9Fa75pf.es.js +0 -4
- package/ButtonToggle-CSxzlLR2.system.js +0 -1
- package/ButtonViewLog-B1oa4oFN.es.js +0 -4
- package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
- package/Card-B19WgA6Y.es.js +0 -4
- package/Card-umUgd-nP.system.js +0 -1
- package/InputEmail-BZ5Y0wSk.system.js +0 -1
- package/InputEmail-DR_E1DsL.es.js +0 -4
- package/InputURL-DL6a94kM.system.js +0 -1
- package/InputURL-PVF5EUUY.es.js +0 -4
- package/Loading-Cq7rP88c.system.js +0 -1
- package/Loading-DUHTVct4.es.js +0 -4
- package/UserWithIcon-Ddn_GlNu.system.js +0 -1
- package/UserWithIcon-hWXf-A2U.es.js +0 -4
- package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
- package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
- package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
- package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
- package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
- package/async-components/index-C8nb7p3T.es.js +0 -70
- package/async-components/index-DvjqHrYE.system.js +0 -1
- package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
- package/components/animation/Animation-CJb4YIwm.system.js +0 -1
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
- package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
- package/components/badge/Badge-wSExdsOP.system.js +0 -1
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
- package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
- package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
- package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
- package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
- package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
- package/components/button/Button-CgkhMnxo.es.js +0 -124
- package/components/button/Button-D892iaxz.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
- package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
- package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
- package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
- package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
- package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
- package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
- package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
- package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
- package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
- package/components/card/Card-BccG14LV.es.js +0 -47
- package/components/card/Card-BjI-Xi0S.system.js +0 -1
- package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
- package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
- package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
- package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
- package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
- package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
- package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
- package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
- package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
- package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
- package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
- package/components/editor/Editor-RB5MqBs1.es.js +0 -887
- package/components/editor/Editor-upU4Z9FH.system.js +0 -1
- package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
- package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
- package/components/editor/MentionList-BjWKefLh.system.js +0 -1
- package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
- package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
- package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
- package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
- package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
- package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
- package/components/form/Form-By85t_oI.system.js +0 -1
- package/components/form/Form-DhWBpdkq.es.js +0 -181
- package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
- package/components/icon/Icon-C4kXVcEX.es.js +0 -82
- package/components/icon/Icon-D1a666FC.system.js +0 -1
- package/components/image/Image-Bf5EaBWP.es.js +0 -170
- package/components/image/Image-Cxi0E9gK.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
- package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
- package/components/index-BMti6lK3.es.js +0 -64
- package/components/index-DBzSxIov.system.js +0 -1
- package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
- package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
- package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
- package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
- package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
- package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
- package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
- package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
- package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
- package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
- package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
- package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
- package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
- package/components/inputurl/InputURL-D4QWV9G7.system.js +0 -1
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
- package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +0 -102
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
- package/components/loading/Loading-DIfTUHr7.es.js +0 -24
- package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
- package/components/menu/Menu-BtzGGhbp.es.js +0 -73
- package/components/menu/Menu-CPm5vua_.system.js +0 -1
- package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
- package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
- package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
- package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
- package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
- package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
- package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
- package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
- package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
- package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
- package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
- package/components/toast/Toast-C3D50rGo.system.js +0 -1
- package/components/toast/Toast-DRUJCz4I.es.js +0 -74
- package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
- package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
- package/components/tree/Tree-93NvdElH.es.js +0 -267
- package/components/tree/Tree-BTTVTAEH.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
- package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
- package/components/username/UserName-A1N6Q7bS.system.js +0 -1
- package/components/username/UserName-D5C0qdbu.es.js +0 -132
- package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
- package/config/config.esm-BZepf1kR.system.js +0 -1
- package/config/config.esm-Drl0fECZ.es.js +0 -212
- package/config/defaultProps-B3syHUKt.system.js +0 -1
- package/config/defaultProps-BC_lvAG9.es.js +0 -136
- package/config/locale-DK6d2rJ3.system.js +0 -1
- package/config/locale-pQnRpNZ6.es.js +0 -85
- package/event-bus/index-CykcrsqY.system.js +0 -1
- package/event-bus/index-PQwO5T6B.es.js +0 -6
- package/event-bus/mitt-BjeF6e5j.es.js +0 -53
- package/event-bus/mitt-X_X8W9w9.system.js +0 -1
- package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
- package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
- package/plugins/i18n-BVujDShu.system.js +0 -1
- package/plugins/i18n-CIoi8go0.es.js +0 -89
- package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
- package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
- package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
- package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
- package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
- package/utils/date.util-DbjB32co.es.js +0 -198
- package/utils/date.util-rX9kq_yC.system.js +0 -1
- package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
- package/utils/detectOverflow-CETbaen7.es.js +0 -88
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
- package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
- package/utils/object.util-6veM2gu5.es.js +0 -51
- package/utils/object.util-uApor4uP.system.js +0 -1
- package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
- package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
- package/utils/role.util-BdUNoOqf.es.js +0 -67
- package/utils/role.util-Co8OMWnc.system.js +0 -1
- package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
- package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
- package/utils/toast.util-C7p3h9XQ.es.js +0 -52
- package/utils/toast.util-DPtauJUV.system.js +0 -1
- package/utils/utils.esm-iwnsFuDg.system.js +0 -23
- package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
- package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
- package/utils/xlsx.util-LU1upHR3.es.js +0 -8
- package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
- package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
- package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
- package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
- package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
- package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
- package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
- package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
- package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
- package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
- package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
- package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
- package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
- package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
- package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
- package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
- package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
- package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
- package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
- package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
- package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
- package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
- package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
- package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
- package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
- package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
- package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
- package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
- package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
- package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
- package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
- package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
- package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
- package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
- package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
- package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
- package/vendor/lodash-B6nNLFd3.es.js +0 -127
- package/vendor/lodash-BuO1dYnQ.system.js +0 -1
- package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
- package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
- package/vendor/orderedmap-B3SOk52B.es.js +0 -103
- package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
- package/vendor/primevue-C5Z_k4WB.system.js +0 -171
- package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
- package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
- package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
- package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
- package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
- package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
- package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
- package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
- package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
- package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
- package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
- package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
- package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
- package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
- package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
- package/vendor/rope-sequence-4t46C6az.system.js +0 -1
- package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
- package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
- package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
- package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
- package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
- package/vendor/tippy.js-6wuFov1j.system.js +0 -1
- package/vendor/tippy.js-i1ic-msv.es.js +0 -721
- package/vendor/uuid-93tp0umt.es.js +0 -9
- package/vendor/uuid-Cymn6orr.system.js +0 -1
- package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
- package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
- package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
- package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
- /package/{assets/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
- /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, shallowRef as B, computed as F, createElementBlock as o, openBlock as a, Fragment as i, createElementVNode as l, createVNode as m, toDisplayString as r, withCtx as I, renderList as b, createBlock as g, createCommentVNode as k } from "vue";
|
|
2
|
-
import { f as N } from "../../utils/date.util-DbjB32co.es.js";
|
|
3
|
-
import w from "../badge/Badge-DXAyz4Z8.es.js";
|
|
4
|
-
import $ from "../dialog/Dialog-BCcbXSya.es.js";
|
|
5
|
-
import A from "../icon/Icon-C4kXVcEX.es.js";
|
|
6
|
-
const V = {
|
|
7
|
-
class: "flex justify-end gap-1 items-center pb-1 flex-wrap whitespace-nowrap",
|
|
8
|
-
"data-wv-name": "approver-info"
|
|
9
|
-
}, E = /* @__PURE__ */ l("span", null, "Approver:", -1), H = { class: "text-primary-500" }, M = { class: "text-general-800" }, S = { key: 1 }, U = { class: "flex flex-col gap-3 justify-between" }, P = { class: "flex justify-between" }, R = { class: "text-general-800 text-xs font-medium" }, T = { class: "flex justify-between items-center" }, q = { class: "text-primary-500 font-medium text-xs" }, z = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "text-general-800 font-normal text-xs"
|
|
12
|
-
}, G = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex gap-1 justify-end items-center"
|
|
15
|
-
}, J = { class: "text-general-800 font-normal text-xs" }, Y = /* @__PURE__ */ C({
|
|
16
|
-
__name: "ApproverInfo",
|
|
17
|
-
props: {
|
|
18
|
-
approvals: {},
|
|
19
|
-
showShortInfo: { type: Boolean, default: !0 },
|
|
20
|
-
label: {},
|
|
21
|
-
btnLabel: {},
|
|
22
|
-
useFormatDate: { type: Boolean, default: !0 }
|
|
23
|
-
},
|
|
24
|
-
setup(D) {
|
|
25
|
-
const c = D, p = B(!1), d = F(() => {
|
|
26
|
-
var u, s, n, v, y, _, x;
|
|
27
|
-
let t, e;
|
|
28
|
-
return (u = c.approvals) == null || u.forEach((h) => {
|
|
29
|
-
e = h.approvers.findIndex((L) => !!L.actionAt), t = e === -1 ? 0 : h.level - 1, e = e === -1 ? 0 : e;
|
|
30
|
-
}), {
|
|
31
|
-
name: (v = (n = (s = c.approvals) == null ? void 0 : s[t]) == null ? void 0 : n.approvers[e]) == null ? void 0 : v.fullName,
|
|
32
|
-
date: (x = (_ = (y = c.approvals) == null ? void 0 : y[t]) == null ? void 0 : _.approvers[e]) == null ? void 0 : x.actionAt
|
|
33
|
-
};
|
|
34
|
-
}), j = (t) => {
|
|
35
|
-
let e;
|
|
36
|
-
switch (t) {
|
|
37
|
-
case "menyetujui":
|
|
38
|
-
e = "success";
|
|
39
|
-
break;
|
|
40
|
-
case "menolak":
|
|
41
|
-
e = "danger";
|
|
42
|
-
break;
|
|
43
|
-
default:
|
|
44
|
-
e = "warning";
|
|
45
|
-
}
|
|
46
|
-
return e;
|
|
47
|
-
}, f = (t) => c.useFormatDate ? t ? N(new Date(t), {
|
|
48
|
-
locale: "id-ID",
|
|
49
|
-
dateFormat: "dd M yyyy",
|
|
50
|
-
timeFormat: "HH:mm:ss"
|
|
51
|
-
}) : "-" : t;
|
|
52
|
-
return (t, e) => {
|
|
53
|
-
var u;
|
|
54
|
-
return a(), o(i, null, [
|
|
55
|
-
l("div", V, [
|
|
56
|
-
t.showShortInfo ? (a(), o(i, { key: 0 }, [
|
|
57
|
-
E,
|
|
58
|
-
(u = t.approvals) != null && u.length ? (a(), o(i, { key: 0 }, [
|
|
59
|
-
m(A, {
|
|
60
|
-
class: "!text-general-200 !text-base",
|
|
61
|
-
icon: "user"
|
|
62
|
-
}),
|
|
63
|
-
l("span", H, r(d.value.name), 1),
|
|
64
|
-
l("span", M, r(f(d.value.date)), 1),
|
|
65
|
-
l("span", {
|
|
66
|
-
onClick: e[0] || (e[0] = (s) => p.value = !0),
|
|
67
|
-
class: "text-primary-500 hover:cursor-pointer"
|
|
68
|
-
}, r(c.btnLabel ?? "more"), 1)
|
|
69
|
-
], 64)) : (a(), o("span", S, "-"))
|
|
70
|
-
], 64)) : (a(), o("span", {
|
|
71
|
-
key: 1,
|
|
72
|
-
onClick: e[1] || (e[1] = (s) => p.value = !0),
|
|
73
|
-
class: "text-primary-500 hover:cursor-pointer"
|
|
74
|
-
}, r(t.label ?? "Lihat Approval"), 1))
|
|
75
|
-
]),
|
|
76
|
-
m($, {
|
|
77
|
-
visible: p.value,
|
|
78
|
-
"onUpdate:visible": e[2] || (e[2] = (s) => p.value = s),
|
|
79
|
-
class: "min-w-[400px]",
|
|
80
|
-
header: "List Approver",
|
|
81
|
-
modal: ""
|
|
82
|
-
}, {
|
|
83
|
-
default: I(() => [
|
|
84
|
-
l("div", U, [
|
|
85
|
-
(a(!0), o(i, null, b(t.approvals, (s) => (a(), o(i, {
|
|
86
|
-
key: s._id
|
|
87
|
-
}, [
|
|
88
|
-
l("div", P, [
|
|
89
|
-
l("span", R, " Level " + r(s.level) + " (" + r(s.type.toLowerCase()) + ") ", 1),
|
|
90
|
-
s.status !== "menunggu approval" ? (a(), g(w, {
|
|
91
|
-
key: 0,
|
|
92
|
-
label: "selesai",
|
|
93
|
-
severity: "success"
|
|
94
|
-
})) : k("", !0)
|
|
95
|
-
]),
|
|
96
|
-
(a(!0), o(i, null, b(s.approvers, (n) => (a(), o("div", {
|
|
97
|
-
key: n._id,
|
|
98
|
-
class: "flex justify-between"
|
|
99
|
-
}, [
|
|
100
|
-
l("div", T, [
|
|
101
|
-
m(A, {
|
|
102
|
-
class: "!text-general-200 !text-base",
|
|
103
|
-
icon: "user"
|
|
104
|
-
}),
|
|
105
|
-
l("span", q, r(n.fullName), 1)
|
|
106
|
-
]),
|
|
107
|
-
s.status !== "menunggu approval" && !n.action ? (a(), o("span", z, " Tidak terlibat ")) : (a(), o("div", G, [
|
|
108
|
-
l("span", J, r(n.actionAt ? f(n.actionAt) : "Menunggu approval..."), 1),
|
|
109
|
-
n.action ? (a(), g(w, {
|
|
110
|
-
key: 0,
|
|
111
|
-
label: n.action,
|
|
112
|
-
severity: j(n.action)
|
|
113
|
-
}, null, 8, ["label", "severity"])) : k("", !0)
|
|
114
|
-
]))
|
|
115
|
-
]))), 128))
|
|
116
|
-
], 64))), 128))
|
|
117
|
-
])
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["visible"])
|
|
121
|
-
], 64);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
export {
|
|
126
|
-
Y as default
|
|
127
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../utils/date.util-rX9kq_yC.system.js","../badge/Badge-wSExdsOP.system.js","../dialog/Dialog-Dv7Jzg4E.system.js","../icon/Icon-D1a666FC.system.js"],function(F,O){"use strict";var g,h,b,o,s,c,l,d,i,k,m,y,v,w,x,j,_;return{setters:[e=>{g=e.defineComponent,h=e.shallowRef,b=e.computed,o=e.createElementBlock,s=e.openBlock,c=e.Fragment,l=e.createElementVNode,d=e.createVNode,i=e.toDisplayString,k=e.withCtx,m=e.renderList,y=e.createBlock,v=e.createCommentVNode},e=>{w=e.f},e=>{x=e.default},e=>{j=e.default},e=>{_=e.default}],execute:function(){const e={class:"flex justify-end gap-1 items-center pb-1 flex-wrap whitespace-nowrap","data-wv-name":"approver-info"},I=l("span",null,"Approver:",-1),$={class:"text-primary-500"},E={class:"text-general-800"},S={key:1},H={class:"flex flex-col gap-3 justify-between"},M={class:"flex justify-between"},R={class:"text-general-800 text-xs font-medium"},U={class:"flex justify-between items-center"},q={class:"text-primary-500 font-medium text-xs"},P={key:0,class:"text-general-800 font-normal text-xs"},T={key:1,class:"flex gap-1 justify-end items-center"},z={class:"text-general-800 font-normal text-xs"},Q=F("default",g({__name:"ApproverInfo",props:{approvals:{},showShortInfo:{type:Boolean,default:!0},label:{},btnLabel:{},useFormatDate:{type:Boolean,default:!0}},setup(G){const u=G,f=h(!1),D=b(()=>{var p,n,r,B,C,L,N;let a,t;return(p=u.approvals)==null||p.forEach(V=>{t=V.approvers.findIndex(K=>!!K.actionAt),a=t===-1?0:V.level-1,t=t===-1?0:t}),{name:(B=(r=(n=u.approvals)==null?void 0:n[a])==null?void 0:r.approvers[t])==null?void 0:B.fullName,date:(N=(L=(C=u.approvals)==null?void 0:C[a])==null?void 0:L.approvers[t])==null?void 0:N.actionAt}}),J=a=>{let t;switch(a){case"menyetujui":t="success";break;case"menolak":t="danger";break;default:t="warning"}return t},A=a=>u.useFormatDate?a?w(new Date(a),{locale:"id-ID",dateFormat:"dd M yyyy",timeFormat:"HH:mm:ss"}):"-":a;return(a,t)=>{var p;return s(),o(c,null,[l("div",e,[a.showShortInfo?(s(),o(c,{key:0},[I,(p=a.approvals)!=null&&p.length?(s(),o(c,{key:0},[d(_,{class:"!text-general-200 !text-base",icon:"user"}),l("span",$,i(D.value.name),1),l("span",E,i(A(D.value.date)),1),l("span",{onClick:t[0]||(t[0]=n=>f.value=!0),class:"text-primary-500 hover:cursor-pointer"},i(u.btnLabel??"more"),1)],64)):(s(),o("span",S,"-"))],64)):(s(),o("span",{key:1,onClick:t[1]||(t[1]=n=>f.value=!0),class:"text-primary-500 hover:cursor-pointer"},i(a.label??"Lihat Approval"),1))]),d(j,{visible:f.value,"onUpdate:visible":t[2]||(t[2]=n=>f.value=n),class:"min-w-[400px]",header:"List Approver",modal:""},{default:k(()=>[l("div",H,[(s(!0),o(c,null,m(a.approvals,n=>(s(),o(c,{key:n._id},[l("div",M,[l("span",R," Level "+i(n.level)+" ("+i(n.type.toLowerCase())+") ",1),n.status!=="menunggu approval"?(s(),y(x,{key:0,label:"selesai",severity:"success"})):v("",!0)]),(s(!0),o(c,null,m(n.approvers,r=>(s(),o("div",{key:r._id,class:"flex justify-between"},[l("div",U,[d(_,{class:"!text-general-200 !text-base",icon:"user"}),l("span",q,i(r.fullName),1)]),n.status!=="menunggu approval"&&!r.action?(s(),o("span",P," Tidak terlibat ")):(s(),o("div",T,[l("span",z,i(r.actionAt?A(r.actionAt):"Menunggu approval..."),1),r.action?(s(),y(x,{key:0,label:r.action,severity:J(r.action)},null,8,["label","severity"])):v("",!0)]))]))),128))],64))),128))])]),_:1},8,["visible"])],64)}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@tagsamurai/fats-api-services","../../utils/toast.util-DPtauJUV.system.js","../badge/Badge-wSExdsOP.system.js","../image/Image-Cxi0E9gK.system.js","../tagtype/TagType-i4RK2JbL.system.js"],function(k,Ae){"use strict";var S,A,C,M,c,B,r,d,u,t,_,w,T,y,N,j,h,$,R;return{setters:[e=>{S=e.shallowRef,A=e.ref,C=e.defineComponent,M=e.onMounted,c=e.computed,B=e.watch,r=e.createElementBlock,d=e.openBlock,u=e.createVNode,t=e.createElementVNode,_=e.createCommentVNode,w=e.toDisplayString,T=e.unref,y=e.normalizeClass},e=>{N=e.AssetServices},e=>{j=e.u},e=>{h=e.default},e=>{$=e.default},e=>{R=e._}],execute:function(){const e=k("a",{template:{severity:{success:"{message}",error:"{message} {additionalMessage}",info:"{message} {additionalMessage}"},additionalMessage:" Please check your connection and try again."}}),ee=k("b",()=>j(e)),V=S(!1),E=A(),se=k("u",()=>({loading:V,message:E,setLoading:(n,l)=>{V.value=n,E.value=l,document.body.classList[n?"add":"remove"]("loading")}})),ae=D=>{let n;switch(D){case"Available":n="success";break;case"Damaged":case"Missing":case"Reported Missing":case"Reported Damaged":case"TAG Reported":case"Not Paired Yet":n="danger";break;case"Unassigned":case"Reported Disposal":case"On Disposal Process":n="dark";break;case"On Transfer":n="warning";break;default:n="primary"}return n},te={class:"flex justify-between gap-[18px] dark:text-general-100"},le={class:"w-full flex flex-col gap-[6px]"},ne={class:"flex justify-between"},ie={class:""},oe={class:"text-[16px] font-bold leading-[19.12px]"},ce={class:"flex items-center gap-[6px]"},re={class:"text-general-400 leading-[16.39px]"},de=t("div",{class:"w-[6px] h-[6px] rounded-full bg-general-100"},null,-1),ue=["href"],ge={class:"flex flex-col gap-1"},fe={key:0,class:"flex gap-3"},pe=t("span",null,":",-1),ve={key:1,class:"flex gap-3"},me=t("span",null,":",-1),_e={key:2,class:"flex gap-3"},ye=t("span",null,":",-1),he={key:3,class:"flex gap-3"},be=t("span",null,":",-1);k("A",Object.freeze(Object.defineProperty({__proto__:null,default:C({__name:"AssetInfo",props:{id:{},fields:{},transactionDetail:{}},setup(D,{expose:n}){const l=D;M(async()=>{l.transactionDetail?s.value=l.transactionDetail:await Te()});const xe=ee(),{setLoading:L}=se(),ke=JSON.parse(localStorage.getItem("user")??"{}"),s=S(),O=c(()=>{var a;return(a=l.fields)==null?void 0:a.includes("status")}),we=c(()=>{const{setDefault:a,firstImageMedium:i,firstImageBig:g,secondImageBig:f,secondImageMedium:p,assetImageMedium:v,assetImageBig:m}=s.value??{},o=a==="firstImage";return l.transactionDetail?{thumbnail:v,preview:m}:{thumbnail:o?i:p,preview:o?g:f}}),De=c(()=>{var a,i,g,f,p,v,m,o,b,x;return l.transactionDetail?(g=(i=(a=s.value)==null?void 0:a.assetName)==null?void 0:i.aliasCode)!=null&&g.length?`(${(p=(f=s.value)==null?void 0:f.assetName)==null?void 0:p.aliasCode})`:"":(o=(m=(v=s.value)==null?void 0:v.name)==null?void 0:m.aliasCode)!=null&&o.length?`(${(x=(b=s.value)==null?void 0:b.name)==null?void 0:x.aliasCode})`:""}),Ie=c(()=>{var a,i;return((a=s.value)==null?void 0:a.assetTagType)??((i=s.value)==null?void 0:i.tagType)}),Se=c(()=>{var a,i;return((a=s.value)==null?void 0:a.assetName)??((i=s.value)==null?void 0:i.name)}),I=c(()=>[{"w-[69px]":!O.value,"w-[76px]":O.value}]),Te=async()=>{try{L(!0);const{data:a}=await N.getAssetDetail(l.id);a&&(s.value=a.data)}catch(a){xe.add({error:a,message:"Error, failed to load asset details."})}finally{L(!1)}};return B(()=>l.transactionDetail,a=>{s.value=a},{deep:!0}),n({asset:s}),(a,i)=>{var g,f,p,v,m,o,b,x,P,z,G,F,W,q,J,U,Y,H,K,Q,X,Z;return d(),r("div",te,[u($,{src:we.value.preview},null,8,["src"]),t("div",le,[t("div",ne,[t("div",ie,[t("div",oe,w(((g=Se.value)==null?void 0:g.nameWithSequence)??"-"),1),t("div",ce,[t("span",re,w(((f=s.value)==null?void 0:f.assetId)??"-")+" "+w(De.value),1),de,u(R,{type:Ie.value},null,8,["type"])])]),T(ke).userType!=="Basic"?(d(),r("a",{key:0,href:`/assets/detail/${((p=s.value)==null?void 0:p.asset)??((v=s.value)==null?void 0:v._id)}`,class:"text-primary-500",target:"_blank"}," Asset Detail > ",8,ue)):_("",!0)]),t("div",ge,[!l.fields||(m=l.fields)!=null&&m.includes("brand")?(d(),r("div",fe,[t("span",{class:y(I.value)}," Brand ",2),pe,u(h,{label:((b=(o=s.value)==null?void 0:o.assetBrand)==null?void 0:b.name)??((P=(x=s.value)==null?void 0:x.brand)==null?void 0:P.name)??"-",severity:"dark"},null,8,["label"])])):_("",!0),!l.fields||(z=l.fields)!=null&&z.includes("model")?(d(),r("div",ve,[t("span",{class:y(I.value)}," Model/Type ",2),me,u(h,{label:((F=(G=s.value)==null?void 0:G.assetModel)==null?void 0:F.name)??((q=(W=s.value)==null?void 0:W.model)==null?void 0:q.name)??"-",severity:"dark"},null,8,["label"])])):_("",!0),!l.fields||(J=l.fields)!=null&&J.includes("group")?(d(),r("div",_e,[t("span",{class:y(I.value)}," Group ",2),ye,u(h,{label:((Y=(U=s.value)==null?void 0:U.assetGroup)==null?void 0:Y.name)??((K=(H=s.value)==null?void 0:H.group)==null?void 0:K.name)??"-"},null,8,["label"])])):_("",!0),(Q=l.fields)!=null&&Q.includes("status")?(d(),r("div",he,[t("span",{class:y(I.value)}," Asset Status ",2),be,u(h,{label:((X=s.value)==null?void 0:X.status)??"-",severity:T(ae)((Z=s.value)==null?void 0:Z.status),format:"nowrap"},null,8,["label","severity"])])):_("",!0)])])])}}})},Symbol.toStringTag,{value:"Module"})))}}});
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { shallowRef as F, ref as Q, defineComponent as X, onMounted as Z, computed as p, watch as ee, createElementBlock as m, openBlock as f, createVNode as g, createElementVNode as t, createCommentVNode as h, toDisplayString as w, unref as G, normalizeClass as b } from "vue";
|
|
2
|
-
import { AssetServices as se } from "@tagsamurai/fats-api-services";
|
|
3
|
-
import { u as ae } from "../../utils/toast.util-C7p3h9XQ.es.js";
|
|
4
|
-
import k from "../badge/Badge-DXAyz4Z8.es.js";
|
|
5
|
-
import te from "../image/Image-Bf5EaBWP.es.js";
|
|
6
|
-
import { _ as le } from "../tagtype/TagType-CAXomDiD.es.js";
|
|
7
|
-
const ne = {
|
|
8
|
-
template: {
|
|
9
|
-
severity: {
|
|
10
|
-
success: "{message}",
|
|
11
|
-
error: "{message} {additionalMessage}",
|
|
12
|
-
info: "{message} {additionalMessage}"
|
|
13
|
-
},
|
|
14
|
-
additionalMessage: " Please check your connection and try again."
|
|
15
|
-
}
|
|
16
|
-
}, oe = () => ae(ne), V = F(!1), z = Q(), ie = () => ({
|
|
17
|
-
loading: V,
|
|
18
|
-
message: z,
|
|
19
|
-
setLoading: (l, a) => {
|
|
20
|
-
V.value = l, z.value = a, document.body.classList[l ? "add" : "remove"]("loading");
|
|
21
|
-
}
|
|
22
|
-
}), re = (y) => {
|
|
23
|
-
let l;
|
|
24
|
-
switch (y) {
|
|
25
|
-
case "Available":
|
|
26
|
-
l = "success";
|
|
27
|
-
break;
|
|
28
|
-
case "Damaged":
|
|
29
|
-
case "Missing":
|
|
30
|
-
case "Reported Missing":
|
|
31
|
-
case "Reported Damaged":
|
|
32
|
-
case "TAG Reported":
|
|
33
|
-
case "Not Paired Yet":
|
|
34
|
-
l = "danger";
|
|
35
|
-
break;
|
|
36
|
-
case "Unassigned":
|
|
37
|
-
case "Reported Disposal":
|
|
38
|
-
case "On Disposal Process":
|
|
39
|
-
l = "dark";
|
|
40
|
-
break;
|
|
41
|
-
case "On Transfer":
|
|
42
|
-
l = "warning";
|
|
43
|
-
break;
|
|
44
|
-
default:
|
|
45
|
-
l = "primary";
|
|
46
|
-
}
|
|
47
|
-
return l;
|
|
48
|
-
}, ce = { class: "flex justify-between gap-[18px] dark:text-general-100" }, de = { class: "w-full flex flex-col gap-[6px]" }, ue = { class: "flex justify-between" }, pe = { class: "" }, me = { class: "text-[16px] font-bold leading-[19.12px]" }, fe = { class: "flex items-center gap-[6px]" }, ge = { class: "text-general-400 leading-[16.39px]" }, ve = /* @__PURE__ */ t("div", { class: "w-[6px] h-[6px] rounded-full bg-general-100" }, null, -1), _e = ["href"], he = { class: "flex flex-col gap-1" }, ye = {
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "flex gap-3"
|
|
51
|
-
}, xe = /* @__PURE__ */ t("span", null, ":", -1), be = {
|
|
52
|
-
key: 1,
|
|
53
|
-
class: "flex gap-3"
|
|
54
|
-
}, ke = /* @__PURE__ */ t("span", null, ":", -1), we = {
|
|
55
|
-
key: 2,
|
|
56
|
-
class: "flex gap-3"
|
|
57
|
-
}, De = /* @__PURE__ */ t("span", null, ":", -1), Ie = {
|
|
58
|
-
key: 3,
|
|
59
|
-
class: "flex gap-3"
|
|
60
|
-
}, Te = /* @__PURE__ */ t("span", null, ":", -1), Me = /* @__PURE__ */ X({
|
|
61
|
-
__name: "AssetInfo",
|
|
62
|
-
props: {
|
|
63
|
-
id: {},
|
|
64
|
-
fields: {},
|
|
65
|
-
transactionDetail: {}
|
|
66
|
-
},
|
|
67
|
-
setup(y, { expose: l }) {
|
|
68
|
-
const a = y;
|
|
69
|
-
Z(async () => {
|
|
70
|
-
a.transactionDetail ? e.value = a.transactionDetail : await K();
|
|
71
|
-
});
|
|
72
|
-
const W = oe(), { setLoading: D } = ie(), q = JSON.parse(localStorage.getItem("user") ?? "{}"), e = F(), I = p(() => {
|
|
73
|
-
var s;
|
|
74
|
-
return (s = a.fields) == null ? void 0 : s.includes("status");
|
|
75
|
-
}), J = p(() => {
|
|
76
|
-
const {
|
|
77
|
-
setDefault: s,
|
|
78
|
-
firstImageMedium: n,
|
|
79
|
-
firstImageBig: i,
|
|
80
|
-
secondImageBig: r,
|
|
81
|
-
secondImageMedium: c,
|
|
82
|
-
assetImageMedium: d,
|
|
83
|
-
assetImageBig: u
|
|
84
|
-
} = e.value ?? {}, o = s === "firstImage";
|
|
85
|
-
return a.transactionDetail ? {
|
|
86
|
-
thumbnail: d,
|
|
87
|
-
preview: u
|
|
88
|
-
} : {
|
|
89
|
-
thumbnail: o ? n : c,
|
|
90
|
-
preview: o ? i : r
|
|
91
|
-
};
|
|
92
|
-
}), U = p(() => {
|
|
93
|
-
var s, n, i, r, c, d, u, o, v, _;
|
|
94
|
-
return a.transactionDetail ? (i = (n = (s = e.value) == null ? void 0 : s.assetName) == null ? void 0 : n.aliasCode) != null && i.length ? `(${(c = (r = e.value) == null ? void 0 : r.assetName) == null ? void 0 : c.aliasCode})` : "" : (o = (u = (d = e.value) == null ? void 0 : d.name) == null ? void 0 : u.aliasCode) != null && o.length ? `(${(_ = (v = e.value) == null ? void 0 : v.name) == null ? void 0 : _.aliasCode})` : "";
|
|
95
|
-
}), Y = p(() => {
|
|
96
|
-
var s, n;
|
|
97
|
-
return ((s = e.value) == null ? void 0 : s.assetTagType) ?? ((n = e.value) == null ? void 0 : n.tagType);
|
|
98
|
-
}), H = p(() => {
|
|
99
|
-
var s, n;
|
|
100
|
-
return ((s = e.value) == null ? void 0 : s.assetName) ?? ((n = e.value) == null ? void 0 : n.name);
|
|
101
|
-
}), x = p(() => [
|
|
102
|
-
{
|
|
103
|
-
"w-[69px]": !I.value,
|
|
104
|
-
"w-[76px]": I.value
|
|
105
|
-
}
|
|
106
|
-
]), K = async () => {
|
|
107
|
-
try {
|
|
108
|
-
D(!0);
|
|
109
|
-
const { data: s } = await se.getAssetDetail(a.id);
|
|
110
|
-
s && (e.value = s.data);
|
|
111
|
-
} catch (s) {
|
|
112
|
-
W.add({ error: s, message: "Error, failed to load asset details." });
|
|
113
|
-
} finally {
|
|
114
|
-
D(!1);
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
return ee(
|
|
118
|
-
() => a.transactionDetail,
|
|
119
|
-
(s) => {
|
|
120
|
-
e.value = s;
|
|
121
|
-
},
|
|
122
|
-
{ deep: !0 }
|
|
123
|
-
), l({ asset: e }), (s, n) => {
|
|
124
|
-
var i, r, c, d, u, o, v, _, T, M, S, A, C, B, N, $, L, O, R, j, P, E;
|
|
125
|
-
return f(), m("div", ce, [
|
|
126
|
-
g(te, {
|
|
127
|
-
src: J.value.preview
|
|
128
|
-
}, null, 8, ["src"]),
|
|
129
|
-
t("div", de, [
|
|
130
|
-
t("div", ue, [
|
|
131
|
-
t("div", pe, [
|
|
132
|
-
t("div", me, w(((i = H.value) == null ? void 0 : i.nameWithSequence) ?? "-"), 1),
|
|
133
|
-
t("div", fe, [
|
|
134
|
-
t("span", ge, w(((r = e.value) == null ? void 0 : r.assetId) ?? "-") + " " + w(U.value), 1),
|
|
135
|
-
ve,
|
|
136
|
-
g(le, { type: Y.value }, null, 8, ["type"])
|
|
137
|
-
])
|
|
138
|
-
]),
|
|
139
|
-
G(q).userType !== "Basic" ? (f(), m("a", {
|
|
140
|
-
key: 0,
|
|
141
|
-
href: `/assets/detail/${((c = e.value) == null ? void 0 : c.asset) ?? ((d = e.value) == null ? void 0 : d._id)}`,
|
|
142
|
-
class: "text-primary-500",
|
|
143
|
-
target: "_blank"
|
|
144
|
-
}, " Asset Detail > ", 8, _e)) : h("", !0)
|
|
145
|
-
]),
|
|
146
|
-
t("div", he, [
|
|
147
|
-
!a.fields || (u = a.fields) != null && u.includes("brand") ? (f(), m("div", ye, [
|
|
148
|
-
t("span", {
|
|
149
|
-
class: b(x.value)
|
|
150
|
-
}, " Brand ", 2),
|
|
151
|
-
xe,
|
|
152
|
-
g(k, {
|
|
153
|
-
label: ((v = (o = e.value) == null ? void 0 : o.assetBrand) == null ? void 0 : v.name) ?? ((T = (_ = e.value) == null ? void 0 : _.brand) == null ? void 0 : T.name) ?? "-",
|
|
154
|
-
severity: "dark"
|
|
155
|
-
}, null, 8, ["label"])
|
|
156
|
-
])) : h("", !0),
|
|
157
|
-
!a.fields || (M = a.fields) != null && M.includes("model") ? (f(), m("div", be, [
|
|
158
|
-
t("span", {
|
|
159
|
-
class: b(x.value)
|
|
160
|
-
}, " Model/Type ", 2),
|
|
161
|
-
ke,
|
|
162
|
-
g(k, {
|
|
163
|
-
label: ((A = (S = e.value) == null ? void 0 : S.assetModel) == null ? void 0 : A.name) ?? ((B = (C = e.value) == null ? void 0 : C.model) == null ? void 0 : B.name) ?? "-",
|
|
164
|
-
severity: "dark"
|
|
165
|
-
}, null, 8, ["label"])
|
|
166
|
-
])) : h("", !0),
|
|
167
|
-
!a.fields || (N = a.fields) != null && N.includes("group") ? (f(), m("div", we, [
|
|
168
|
-
t("span", {
|
|
169
|
-
class: b(x.value)
|
|
170
|
-
}, " Group ", 2),
|
|
171
|
-
De,
|
|
172
|
-
g(k, {
|
|
173
|
-
label: ((L = ($ = e.value) == null ? void 0 : $.assetGroup) == null ? void 0 : L.name) ?? ((R = (O = e.value) == null ? void 0 : O.group) == null ? void 0 : R.name) ?? "-"
|
|
174
|
-
}, null, 8, ["label"])
|
|
175
|
-
])) : h("", !0),
|
|
176
|
-
(j = a.fields) != null && j.includes("status") ? (f(), m("div", Ie, [
|
|
177
|
-
t("span", {
|
|
178
|
-
class: b(x.value)
|
|
179
|
-
}, " Asset Status ", 2),
|
|
180
|
-
Te,
|
|
181
|
-
g(k, {
|
|
182
|
-
label: ((P = e.value) == null ? void 0 : P.status) ?? "-",
|
|
183
|
-
severity: G(re)((E = e.value) == null ? void 0 : E.status),
|
|
184
|
-
format: "nowrap"
|
|
185
|
-
}, null, 8, ["label", "severity"])
|
|
186
|
-
])) : h("", !0)
|
|
187
|
-
])
|
|
188
|
-
])
|
|
189
|
-
]);
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
}), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
193
|
-
__proto__: null,
|
|
194
|
-
default: Me
|
|
195
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
196
|
-
export {
|
|
197
|
-
Le as A,
|
|
198
|
-
ne as a,
|
|
199
|
-
oe as b,
|
|
200
|
-
ie as u
|
|
201
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as r, resolveDirective as w, withDirectives as D, createElementBlock as c, openBlock as i, mergeProps as d, createElementVNode as S, createBlock as T, createCommentVNode as V, toDisplayString as W } from "vue";
|
|
2
|
-
import { u as N } from "../../plugins/WangsVue-Dl5OiLXF.es.js";
|
|
3
|
-
import { m as P } from "../../utils/mergePropsWithDefaults.util-BKcJzgvs.es.js";
|
|
4
|
-
import { f as _ } from "../../utils/textFormatter.util-CYul3RpH.es.js";
|
|
5
|
-
import { _ as E } from "../button/Button-CgkhMnxo.es.js";
|
|
6
|
-
const F = ["contenteditable"], H = {
|
|
7
|
-
key: 1,
|
|
8
|
-
"aria-label": "invalid-label"
|
|
9
|
-
}, z = /* @__PURE__ */ C({
|
|
10
|
-
__name: "Badge",
|
|
11
|
-
props: {
|
|
12
|
-
label: {},
|
|
13
|
-
editable: { type: Boolean },
|
|
14
|
-
severity: {},
|
|
15
|
-
format: {},
|
|
16
|
-
removable: { type: Boolean },
|
|
17
|
-
disabled: { type: Boolean },
|
|
18
|
-
tooltip: {},
|
|
19
|
-
getSeverity: { type: Function }
|
|
20
|
-
},
|
|
21
|
-
emits: ["remove", "update:label"],
|
|
22
|
-
setup(f, { emit: v }) {
|
|
23
|
-
const t = f, n = v, { defaultProps: g } = N("Badge"), y = r(() => P(t, g)), p = r(() => {
|
|
24
|
-
const e = typeof t.label;
|
|
25
|
-
return e === "number" || e === "string" && t.label && t.label !== "-";
|
|
26
|
-
}), s = r(() => {
|
|
27
|
-
var e, o;
|
|
28
|
-
return t.severity || ((o = (e = y.value).getSeverity) == null ? void 0 : o.call(e, t.label));
|
|
29
|
-
}), $ = r(() => {
|
|
30
|
-
if (!p.value) return "-";
|
|
31
|
-
switch (t.format) {
|
|
32
|
-
case "nowrap":
|
|
33
|
-
return t.label;
|
|
34
|
-
case "username":
|
|
35
|
-
return _(t.label);
|
|
36
|
-
default:
|
|
37
|
-
if (t.label.length > 12) {
|
|
38
|
-
const e = t.label.slice(0, 5), o = t.label.slice(-5);
|
|
39
|
-
return `${e}..${o}`;
|
|
40
|
-
}
|
|
41
|
-
return t.label;
|
|
42
|
-
}
|
|
43
|
-
}), u = r(() => t.tooltip || (t.format !== "nowrap" && t.label.length > 12 || t.format === "username" && t.label.length > 8 ? t.label : void 0)), B = (e) => {
|
|
44
|
-
const o = e.target;
|
|
45
|
-
(e.code === "Enter" || e.code === "Tab") && (e.preventDefault(), o.blur());
|
|
46
|
-
}, k = (e, o) => {
|
|
47
|
-
const a = e.textContent;
|
|
48
|
-
if (a !== t.label) {
|
|
49
|
-
const l = (a == null ? void 0 : a.trim()) ?? null;
|
|
50
|
-
e.textContent = l, n("update:label", l), o && !a && (o.remove(), n("remove"));
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
return (e, o) => {
|
|
54
|
-
var l, b, m;
|
|
55
|
-
const a = w("tooltip");
|
|
56
|
-
return p.value ? D((i(), c("span", d(
|
|
57
|
-
{
|
|
58
|
-
key: 0,
|
|
59
|
-
ref: "badge"
|
|
60
|
-
},
|
|
61
|
-
(l = e.$preset.badge) == null ? void 0 : l.root({
|
|
62
|
-
props: { severity: s.value, disabled: e.disabled }
|
|
63
|
-
})
|
|
64
|
-
), [
|
|
65
|
-
S("span", d({ ref: "input" }, (b = e.$preset.badge) == null ? void 0 : b.input({ props: t, context: { badgeTooltip: u.value } }), {
|
|
66
|
-
contenteditable: e.editable,
|
|
67
|
-
onBlur: o[0] || (o[0] = (h) => k(
|
|
68
|
-
e.$refs.input,
|
|
69
|
-
e.$refs.badge
|
|
70
|
-
)),
|
|
71
|
-
onKeydown: B,
|
|
72
|
-
spellcheck: "false"
|
|
73
|
-
}), W($.value), 17, F),
|
|
74
|
-
t.removable ? (i(), T(E, d(
|
|
75
|
-
{ key: 0 },
|
|
76
|
-
(m = e.$preset.badge) == null ? void 0 : m.removebutton({ props: { badgeSeverity: s.value, disabled: e.disabled } }),
|
|
77
|
-
{
|
|
78
|
-
disabled: t.disabled,
|
|
79
|
-
severity: s.value,
|
|
80
|
-
onClick: o[1] || (o[1] = (h) => n("remove")),
|
|
81
|
-
icon: "close",
|
|
82
|
-
rounded: "",
|
|
83
|
-
text: ""
|
|
84
|
-
}
|
|
85
|
-
), null, 16, ["disabled", "severity"])) : V("", !0)
|
|
86
|
-
], 16)), [
|
|
87
|
-
[
|
|
88
|
-
a,
|
|
89
|
-
{ value: u.value, autoHide: !1 },
|
|
90
|
-
void 0,
|
|
91
|
-
{ top: !0 }
|
|
92
|
-
]
|
|
93
|
-
]) : (i(), c("span", H, "-"));
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
z as default
|
|
99
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../plugins/WangsVue-Dugc3GRS.system.js","../../utils/mergePropsWithDefaults.util-CXowvEKY.system.js","../../utils/textFormatter.util-BjenkyWf.system.js","../button/Button-D892iaxz.system.js"],function(w,K){"use strict";var p,l,b,m,u,n,i,v,f,g,y,B,k,$,h;return{setters:[o=>{p=o.defineComponent,l=o.computed,b=o.resolveDirective,m=o.withDirectives,u=o.createElementBlock,n=o.openBlock,i=o.mergeProps,v=o.createElementVNode,f=o.createBlock,g=o.createCommentVNode,y=o.toDisplayString},o=>{B=o.u},o=>{k=o.m},o=>{$=o.f},o=>{h=o._}],execute:function(){const o=["contenteditable"],W={key:1,"aria-label":"invalid-label"},L=w("default",p({__name:"Badge",props:{label:{},editable:{type:Boolean},severity:{},format:{},removable:{type:Boolean},disabled:{type:Boolean},tooltip:{},getSeverity:{type:Function}},emits:["remove","update:label"],setup(N,{emit:P}){const t=N,c=P,{defaultProps:T}=B("Badge"),j=l(()=>k(t,T)),D=l(()=>{const e=typeof t.label;return e==="number"||e==="string"&&t.label&&t.label!=="-"}),d=l(()=>{var e,r;return t.severity||((r=(e=j.value).getSeverity)==null?void 0:r.call(e,t.label))}),E=l(()=>{if(!D.value)return"-";switch(t.format){case"nowrap":return t.label;case"username":return $(t.label);default:if(t.label.length>12){const e=t.label.slice(0,5),r=t.label.slice(-5);return`${e}..${r}`}return t.label}}),C=l(()=>t.tooltip||(t.format!=="nowrap"&&t.label.length>12||t.format==="username"&&t.label.length>8?t.label:void 0)),_=e=>{const r=e.target;(e.code==="Enter"||e.code==="Tab")&&(e.preventDefault(),r.blur())},F=(e,r)=>{const a=e.textContent;if(a!==t.label){const s=(a==null?void 0:a.trim())??null;e.textContent=s,c("update:label",s),r&&!a&&(r.remove(),c("remove"))}};return(e,r)=>{var s,S,V;const a=b("tooltip");return D.value?m((n(),u("span",i({key:0,ref:"badge"},(s=e.$preset.badge)==null?void 0:s.root({props:{severity:d.value,disabled:e.disabled}})),[v("span",i({ref:"input"},(S=e.$preset.badge)==null?void 0:S.input({props:t,context:{badgeTooltip:C.value}}),{contenteditable:e.editable,onBlur:r[0]||(r[0]=H=>F(e.$refs.input,e.$refs.badge)),onKeydown:_,spellcheck:"false"}),y(E.value),17,o),t.removable?(n(),f(h,i({key:0},(V=e.$preset.badge)==null?void 0:V.removebutton({props:{badgeSeverity:d.value,disabled:e.disabled}}),{disabled:t.disabled,severity:d.value,onClick:r[1]||(r[1]=H=>c("remove")),icon:"close",rounded:"",text:""}),null,16,["disabled","severity"])):g("",!0)],16)),[[a,{value:C.value,autoHide:!1},void 0,{top:!0}]]):(n(),u("span",W,"-"))}}}))}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../vendor/primevue-C5Z_k4WB.system.js","../badge/Badge-wSExdsOP.system.js","../button/Button-D892iaxz.system.js"],function(x,S){"use strict";var m,c,l,n,o,k,p,i,u,f,y,b,h,B,$,v,w;return{setters:[t=>{m=t.defineComponent,c=t.shallowRef,l=t.computed,n=t.createElementBlock,o=t.openBlock,k=t.normalizeProps,p=t.mergeProps,i=t.createBlock,u=t.createCommentVNode,f=t.Fragment,y=t.renderList,b=t.unref,h=t.withCtx,B=t.renderSlot},t=>{$=t.s},t=>{v=t.default},t=>{w=t._}],execute:function(){const t={key:0},j=x("default",m({__name:"BadgeGroup",props:{labels:{},textMoreSeverity:{default:void 0},textMore:{default:"more"},limit:{},headerLabel:{default:"Header"},editable:{type:Boolean},severity:{},format:{},tooltip:{},getSeverity:{}},setup(L){const r=L,g=c(!1),d=l(()=>r.labels.slice(0,r.limit)),C=l(()=>r.labels.length-d.value.length);return(s,a)=>d.value.length?(o(),n("div",k(p({key:1},s.$preset.badgegroup.root)),[(o(!0),n(f,null,y(d.value,e=>(o(),i(v,{key:typeof e=="string"?e:e.text,format:r.format,label:typeof e=="string"?e:e.text,severity:typeof e=="string"?r.severity:e.severity,tooltip:typeof e=="object"&&e.tooltip},null,8,["format","label","severity","tooltip"]))),128)),C.value?(o(),i(w,p({key:0,label:`+${C.value} ${s.textMore}`},s.$preset.badgegroup.showmorebutton,{severity:r.textMoreSeverity??"dark",onClick:a[0]||(a[0]=e=>g.value=!0),text:""}),null,16,["label","severity"])):u("",!0),s.limit?(o(),i(b($),{key:1,visible:g.value,"onUpdate:visible":a[1]||(a[1]=e=>g.value=e),draggable:!1,header:s.headerLabel,pt:s.$preset.badgegroup.showmoredialog,modal:""},{default:h(()=>[B(s.$slots,"dialogcontent",{labels:r.labels},()=>[(o(!0),n(f,null,y(r.labels,e=>(o(),i(v,{key:typeof e=="string"?e:e.text,format:r.format,label:typeof e=="string"?e:e.text,severity:typeof e=="string"?r.severity:e.severity,tooltip:typeof e=="object"&&e.tooltip},null,8,["format","label","severity","tooltip"]))),128))])]),_:3},8,["visible","header","pt"])):u("",!0)],16)):(o(),n("span",t," - "))}}))}}});
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, shallowRef as c, computed as u, createElementBlock as s, openBlock as o, normalizeProps as h, mergeProps as m, createBlock as a, createCommentVNode as f, Fragment as d, renderList as y, unref as b, withCtx as $, renderSlot as w } from "vue";
|
|
2
|
-
import { s as x } from "../../vendor/primevue-DkBtKf1Y.es.js";
|
|
3
|
-
import v from "../badge/Badge-DXAyz4Z8.es.js";
|
|
4
|
-
import { _ as B } from "../button/Button-CgkhMnxo.es.js";
|
|
5
|
-
const L = { key: 0 }, j = /* @__PURE__ */ k({
|
|
6
|
-
__name: "BadgeGroup",
|
|
7
|
-
props: {
|
|
8
|
-
labels: {},
|
|
9
|
-
textMoreSeverity: { default: void 0 },
|
|
10
|
-
textMore: { default: "more" },
|
|
11
|
-
limit: {},
|
|
12
|
-
headerLabel: { default: "Header" },
|
|
13
|
-
editable: { type: Boolean },
|
|
14
|
-
severity: {},
|
|
15
|
-
format: {},
|
|
16
|
-
tooltip: {},
|
|
17
|
-
getSeverity: {}
|
|
18
|
-
},
|
|
19
|
-
setup(g) {
|
|
20
|
-
const t = g, l = c(!1), n = u(() => t.labels.slice(0, t.limit)), p = u(
|
|
21
|
-
() => t.labels.length - n.value.length
|
|
22
|
-
);
|
|
23
|
-
return (r, i) => n.value.length ? (o(), s("div", h(m({ key: 1 }, r.$preset.badgegroup.root)), [
|
|
24
|
-
(o(!0), s(d, null, y(n.value, (e) => (o(), a(v, {
|
|
25
|
-
key: typeof e == "string" ? e : e.text,
|
|
26
|
-
format: t.format,
|
|
27
|
-
label: typeof e == "string" ? e : e.text,
|
|
28
|
-
severity: typeof e == "string" ? t.severity : e.severity,
|
|
29
|
-
tooltip: typeof e == "object" && e.tooltip
|
|
30
|
-
}, null, 8, ["format", "label", "severity", "tooltip"]))), 128)),
|
|
31
|
-
p.value ? (o(), a(B, m({
|
|
32
|
-
key: 0,
|
|
33
|
-
label: `+${p.value} ${r.textMore}`
|
|
34
|
-
}, r.$preset.badgegroup.showmorebutton, {
|
|
35
|
-
severity: t.textMoreSeverity ?? "dark",
|
|
36
|
-
onClick: i[0] || (i[0] = (e) => l.value = !0),
|
|
37
|
-
text: ""
|
|
38
|
-
}), null, 16, ["label", "severity"])) : f("", !0),
|
|
39
|
-
r.limit ? (o(), a(b(x), {
|
|
40
|
-
key: 1,
|
|
41
|
-
visible: l.value,
|
|
42
|
-
"onUpdate:visible": i[1] || (i[1] = (e) => l.value = e),
|
|
43
|
-
draggable: !1,
|
|
44
|
-
header: r.headerLabel,
|
|
45
|
-
pt: r.$preset.badgegroup.showmoredialog,
|
|
46
|
-
modal: ""
|
|
47
|
-
}, {
|
|
48
|
-
default: $(() => [
|
|
49
|
-
w(r.$slots, "dialogcontent", {
|
|
50
|
-
labels: t.labels
|
|
51
|
-
}, () => [
|
|
52
|
-
(o(!0), s(d, null, y(t.labels, (e) => (o(), a(v, {
|
|
53
|
-
key: typeof e == "string" ? e : e.text,
|
|
54
|
-
format: t.format,
|
|
55
|
-
label: typeof e == "string" ? e : e.text,
|
|
56
|
-
severity: typeof e == "string" ? t.severity : e.severity,
|
|
57
|
-
tooltip: typeof e == "object" && e.tooltip
|
|
58
|
-
}, null, 8, ["format", "label", "severity", "tooltip"]))), 128))
|
|
59
|
-
])
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
}, 8, ["visible", "header", "pt"])) : f("", !0)
|
|
63
|
-
], 16)) : (o(), s("span", L, " - "));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
j as default
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","../../utils/utils.esm-iwnsFuDg.system.js","../icon/Icon-D1a666FC.system.js","./TreeNode-D-YgXird.system.js"],function(D,_){"use strict";var k,N,S,M,v,g,y,r,u,B,m,L,C,O,V,E,T,$,j,w;return{setters:[s=>{k=s.defineComponent,N=s.inject,S=s.ref,M=s.computed,v=s.watch,g=s.createElementBlock,y=s.openBlock,r=s.mergeProps,u=s.unref,B=s.createCommentVNode,m=s.createElementVNode,L=s.normalizeProps,C=s.renderSlot,O=s.createVNode,V=s.Fragment,E=s.renderList,T=s.createBlock},s=>{$=s.O},s=>{j=s.default},s=>{w=s._}],execute:function(){const s=["id"],A=["aria-label","aria-labelledby"],ee=D("default",k({inheritAttrs:!1,__name:"BaseTree",props:{disableKeys:{},disableNodeAll:{type:Boolean,default:!1},exactDisableKeys:{},level:{default:0},listLabelsNoOption:{},value:{},propagateSelection:{type:Boolean,default:!0},expandedKeys:{},selectionKeys:{default:null},treeNodeMenus:{},selectionMode:{},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{},loadingMode:{default:"mask"},filterText:{default:""},filterBy:{default:"label"},filterMode:{default:"lenient"},filterPlaceholder:{},filterLocale:{},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{},ariaLabel:{},ariaLabelledby:{},pt:{},ptOptions:{},unstyled:{type:Boolean},useOption:{type:Boolean,default:!1},disableNodeWhen:{},exactDisableNodeWhen:{},nodeSelectedWhen:{}},emits:["update:expandedKeys","update:selectionKeys","nodeSelect","nodeUnselect","nodeExpand","nodeCollapse","toggleMenu"],setup(H,{emit:z}){const t=H,d=z,p=N("preset",{}).tree,c=S(t.expandedKeys??[]),I=e=>{const{key:l}=e;c.value[l]?(delete c.value[l],d("nodeCollapse",e)):(c.value[l]=!0,d("nodeExpand",e)),c.value={...c.value},d("update:expandedKeys",c.value)},x=e=>{if(t.selectionMode!=null&&e.node.selectable!==!1){const o=(e.nodeTouched?!1:t.metaKeySelection)?G(e):J(e);d("update:selectionKeys",o)}},q=e=>{d("update:selectionKeys",e.selectionKeys),e.check?d("nodeSelect",e.node):d("nodeUnselect",e.node)},G=e=>{const{originalEvent:l}=e,{node:o}=e,n=l.metaKey||l.ctrlKey,i=P(o);let a;return i&&n?(h()?a={}:(a={...t.selectionKeys},delete a[o.key]),d("nodeUnselect",o)):(h()?a={}:Q()&&(n&&t.selectionKeys?a={...t.selectionKeys}:a={}),a[o.key]=!0,d("nodeSelect",o)),a},J=e=>{const{node:l}=e,o=P(l);let n;return h()?o?(n={},d("nodeUnselect",l)):(n={},n[l.key]=!0,d("nodeSelect",l)):o?(n={...t.selectionKeys},delete n[l.key],d("nodeUnselect",l)):(n=t.selectionKeys?{...t.selectionKeys}:{},n[l.key]=!0,d("nodeSelect",l)),n},h=()=>t.selectionMode==="single",Q=()=>t.selectionMode==="multiple",P=e=>t.selectionMode&&t.selectionKeys?t.selectionKeys[e.key]===!0:!1,R=e=>e.leaf===!1?!1:!(e.children&&e.children.length),b=(e,l)=>{if(e){let o=!1;if(e.children){const n=[...e.children];e.children=[];for(const i of n){const a={...i};K(a,l)&&(o=!0,e.children.push(a))}}if(o)return!0}},K=(e,{searchFields:l,filterText:o,strict:n})=>{let i=!1;for(const a of l)String($.resolveFieldData(e,a)).toLocaleLowerCase(t.filterLocale).indexOf(o)>-1&&(i=!0);return(!i||n&&!R(e))&&(i=b(e,{searchFields:l,filterText:o,strict:n})||i),i},X=M(()=>{const e=[],l=t.filterBy.split(","),o=t.filterMode==="strict";for(const n of t.value){const i={...n},a={searchFields:l,filterText:t.filterText.toLocaleLowerCase(t.filterLocale),strict:o};(o&&(b(i,a)||K(i,a))||!o&&(K(i,a)||b(i,a)))&&e.push(i)}return e});return v(()=>t.expandedKeys,e=>{c.value=e},{deep:!0}),(e,l)=>{var o,n,i,a;return y(),g("div",r((o=t.pt??u(p))==null?void 0:o.root,{id:e.$attrs.id,class:e.$attrs.class,"data-wv-name":"tree"}),[e.loading&&e.loadingMode==="mask"?(y(),g("div",L(r({key:0},(n=t.pt??u(p))==null?void 0:n.loadingOverlay)),[C(e.$slots,"loadingicon",{},()=>{var f;return[O(j,r({class:"animate-spin",icon:"spinner"},(f=t.pt??u(p))==null?void 0:f.loadingicon),null,16)]})],16)):B("",!0),m("div",r({style:{maxHeight:e.scrollHeight}},(i=t.pt??u(p))==null?void 0:i.wrapper),[m("ul",r({"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby},(a=t.pt??u(p))==null?void 0:a.container,{"data-pc-section":"container",role:"tree"}),[(y(!0),g(V,null,E(X.value,(f,Y)=>{var U,W,F;return y(),T(w,r({key:f.key,ref_for:!0},t,{class:[...(W=(U=t.pt??u(p))==null?void 0:U.node)==null?void 0:W.class],"disable-keys":e.disableKeys,"disable-node-all":t.disableNodeAll,disabled:(F=e.disableKeys)==null?void 0:F.includes(+f.key),"exact-disable-keys":e.exactDisableKeys,"expanded-keys":c.value,index:Y,level:e.level+1,"list-labels-no-option":e.listLabelsNoOption,"loading-mode":e.loadingMode,node:f,"propagate-selection":e.propagateSelection,pt:e.pt,"selection-keys":e.selectionKeys,"selection-mode":e.selectionMode,templates:e.$slots,"tree-node-menus":e.treeNodeMenus,unstyled:e.unstyled,"use-option":e.useOption,onCheckboxChange:q,onNodeClick:x,onNodeToggle:I,onToggleMenu:l[0]||(l[0]=Z=>e.$emit("toggleMenu",Z))}),null,16,["class","disable-keys","disable-node-all","disabled","exact-disable-keys","expanded-keys","index","level","list-labels-no-option","loading-mode","node","propagate-selection","pt","selection-keys","selection-mode","templates","tree-node-menus","unstyled","use-option"])}),128))],16,A)],16)],16,s)}}}))}}});
|