monkey-style-guide 2.0.191 → 2.0.193
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/README.md +1296 -1296
- package/assets/data/country-codes.json +1466 -1466
- package/assets/icons/add-plus.svg +5 -5
- package/assets/icons/address-book.svg +4 -4
- package/assets/icons/arrow-down.svg +3 -3
- package/assets/icons/arrow-left.svg +3 -3
- package/assets/icons/arrow-line-right.svg +5 -5
- package/assets/icons/arrow-right.svg +3 -3
- package/assets/icons/arrow-up.svg +3 -3
- package/assets/icons/arrows.svg +6 -6
- package/assets/icons/auction.svg +7 -7
- package/assets/icons/average-tax.svg +6 -6
- package/assets/icons/bank-account.svg +12 -12
- package/assets/icons/bank-agency.svg +8 -8
- package/assets/icons/bank.svg +3 -3
- package/assets/icons/banknote-search.svg +8 -8
- package/assets/icons/bell.svg +4 -4
- package/assets/icons/block.svg +4 -4
- package/assets/icons/book-open-text.svg +10 -10
- package/assets/icons/book.svg +4 -4
- package/assets/icons/box.svg +6 -6
- package/assets/icons/build-approved.svg +9 -9
- package/assets/icons/build-person.svg +9 -9
- package/assets/icons/build-refused.svg +9 -9
- package/assets/icons/build-waiting.svg +8 -8
- package/assets/icons/calendar-box.svg +10 -10
- package/assets/icons/calendar.svg +6 -6
- package/assets/icons/camera.svg +4 -4
- package/assets/icons/card-machine.svg +14 -14
- package/assets/icons/card.svg +4 -4
- package/assets/icons/cash-banknote-coins.svg +9 -9
- package/assets/icons/cash-banknote-invoice.svg +8 -8
- package/assets/icons/certificate-medal.svg +8 -8
- package/assets/icons/chart-down-arrow.svg +7 -7
- package/assets/icons/chart-down.svg +5 -5
- package/assets/icons/chart-up-arrow.svg +7 -7
- package/assets/icons/chart-up.svg +5 -5
- package/assets/icons/chat.svg +4 -4
- package/assets/icons/check-circle-out.svg +4 -4
- package/assets/icons/check-circle.svg +4 -4
- package/assets/icons/check-grey.svg +3 -3
- package/assets/icons/check-white.svg +4 -4
- package/assets/icons/check.svg +3 -3
- package/assets/icons/clipboard.svg +4 -4
- package/assets/icons/clock-closed.svg +6 -6
- package/assets/icons/clock.svg +4 -4
- package/assets/icons/close-circle.svg +5 -5
- package/assets/icons/close.svg +4 -4
- package/assets/icons/cnpj.svg +9 -9
- package/assets/icons/codepen.svg +7 -7
- package/assets/icons/company-name.svg +12 -12
- package/assets/icons/contract-pen.svg +7 -7
- package/assets/icons/contract.svg +14 -14
- package/assets/icons/delete.svg +5 -5
- package/assets/icons/digital-certificate.svg +6 -6
- package/assets/icons/document.svg +7 -7
- package/assets/icons/dollar-sign-circle.svg +7 -7
- package/assets/icons/dollar-sign.svg +5 -5
- package/assets/icons/domain.svg +9 -9
- package/assets/icons/dots-menu.svg +5 -5
- package/assets/icons/double-arrow-left.svg +4 -4
- package/assets/icons/double-arrow-right.svg +4 -4
- package/assets/icons/download.svg +5 -5
- package/assets/icons/drag-drop.svg +8 -8
- package/assets/icons/edit-square.svg +4 -4
- package/assets/icons/edit.svg +3 -3
- package/assets/icons/email-send-fast.svg +8 -8
- package/assets/icons/email.svg +4 -4
- package/assets/icons/empty-doc.svg +4 -4
- package/assets/icons/error.svg +5 -5
- package/assets/icons/eye-closed.svg +11 -11
- package/assets/icons/eye-open.svg +4 -4
- package/assets/icons/filter-add.svg +6 -6
- package/assets/icons/filter.svg +3 -3
- package/assets/icons/grid.svg +6 -6
- package/assets/icons/hand-money-banknote.svg +6 -6
- package/assets/icons/hands-clap.svg +10 -10
- package/assets/icons/help.svg +5 -5
- package/assets/icons/hexagon.svg +3 -3
- package/assets/icons/high-rising-build.svg +19 -19
- package/assets/icons/home.svg +4 -4
- package/assets/icons/image-wave-square.svg +5 -5
- package/assets/icons/image.svg +5 -5
- package/assets/icons/info.svg +6 -6
- package/assets/icons/invoice.svg +5 -5
- package/assets/icons/invoices-anticipated.svg +8 -8
- package/assets/icons/invoices-approval.svg +8 -8
- package/assets/icons/invoices-refused.svg +8 -8
- package/assets/icons/lighting-circle.svg +5 -5
- package/assets/icons/list.svg +8 -8
- package/assets/icons/location-pin.svg +4 -4
- package/assets/icons/login.svg +5 -5
- package/assets/icons/logout.svg +5 -5
- package/assets/icons/mail-box-upload.svg +6 -6
- package/assets/icons/mail-letter-fast-circle.svg +7 -7
- package/assets/icons/mail-open-document.svg +6 -6
- package/assets/icons/medal.svg +12 -12
- package/assets/icons/menu.svg +5 -5
- package/assets/icons/money-banknote-calculator.svg +13 -13
- package/assets/icons/money-cedule.svg +6 -6
- package/assets/icons/money-discount.svg +8 -8
- package/assets/icons/money-hand.svg +6 -6
- package/assets/icons/money-net.svg +8 -8
- package/assets/icons/money-new.svg +7 -7
- package/assets/icons/money-percent.svg +10 -10
- package/assets/icons/money-refused.svg +9 -9
- package/assets/icons/money-sign.svg +4 -4
- package/assets/icons/money-waiting.svg +8 -8
- package/assets/icons/money.svg +6 -6
- package/assets/icons/more-circle.svg +5 -5
- package/assets/icons/more.svg +4 -4
- package/assets/icons/new-company.svg +10 -10
- package/assets/icons/offered.svg +5 -5
- package/assets/icons/office-work.svg +10 -10
- package/assets/icons/open-external.svg +5 -5
- package/assets/icons/password-edit-shield-protection.svg +9 -9
- package/assets/icons/password.svg +4 -4
- package/assets/icons/people.svg +6 -6
- package/assets/icons/percent-box.svg +6 -6
- package/assets/icons/percent.svg +5 -5
- package/assets/icons/person-document.svg +10 -10
- package/assets/icons/person-sad.svg +6 -6
- package/assets/icons/phone-call.svg +4 -4
- package/assets/icons/phone.svg +3 -3
- package/assets/icons/pin-navigation.svg +5 -5
- package/assets/icons/pork.svg +5 -5
- package/assets/icons/radio.svg +4 -4
- package/assets/icons/refresh.svg +5 -5
- package/assets/icons/registration.svg +8 -8
- package/assets/icons/repeat.svg +4 -4
- package/assets/icons/search.svg +4 -4
- package/assets/icons/second-warning.svg +5 -5
- package/assets/icons/settings.svg +4 -4
- package/assets/icons/shield-chekmark.svg +3 -3
- package/assets/icons/star-shining.svg +13 -13
- package/assets/icons/star.svg +3 -3
- package/assets/icons/store.svg +8 -8
- package/assets/icons/suppliers.svg +11 -11
- package/assets/icons/target-dart-arrow.svg +6 -6
- package/assets/icons/today.svg +9 -9
- package/assets/icons/trash.svg +6 -6
- package/assets/icons/trophy.svg +8 -8
- package/assets/icons/unfold-more.svg +4 -4
- package/assets/icons/upload.svg +5 -5
- package/assets/icons/user-group.svg +8 -8
- package/assets/icons/user.svg +4 -4
- package/assets/icons/waiting.svg +17 -17
- package/assets/icons/wallet.svg +5 -5
- package/assets/icons/warning.svg +5 -5
- package/assets/scss/partials/_breakpoints.scss +35 -35
- package/assets/scss/partials/_forms.scss +350 -350
- package/assets/scss/partials/_index.scss +11 -11
- package/assets/scss/partials/_radio-button.scss +35 -35
- package/assets/scss/partials/_style-reset.scss +185 -185
- package/assets/scss/partials/_typography.scss +149 -149
- package/assets/scss/partials/_variables.scss +192 -192
- package/assets/scss/partials/components/_badge.scss +55 -55
- package/assets/scss/partials/components/_buttons.scss +831 -831
- package/assets/scss/partials/components/_checkbox.scss +69 -69
- package/assets/scss/partials/components/_date-range-picker-v2.scss +302 -302
- package/assets/scss/partials/components/_date-range-picker.scss +265 -265
- package/assets/scss/partials/components/_expansion.scss +96 -96
- package/assets/scss/partials/components/_image-crop.scss +305 -305
- package/assets/scss/partials/components/_index.scss +24 -24
- package/assets/scss/partials/components/_input-phone.scss +36 -36
- package/assets/scss/partials/components/_input.scss +65 -65
- package/assets/scss/partials/components/_modal.scss +285 -285
- package/assets/scss/partials/components/_progressbar.scss +112 -112
- package/assets/scss/partials/components/_radiobutton.scss +66 -66
- package/assets/scss/partials/components/_select.scss +356 -356
- package/assets/scss/partials/components/_snackbar.scss +204 -204
- package/assets/scss/partials/components/_stepper.scss +86 -86
- package/assets/scss/partials/components/_tab.scss +82 -82
- package/assets/scss/partials/components/_table.scss +148 -148
- package/assets/scss/partials/components/_toggle.scss +103 -103
- package/assets/scss/partials/components/_wizard.scss +112 -112
- package/esm2020/lib/components/badge/badge.component.mjs +43 -43
- package/esm2020/lib/components/badge/badge.module.mjs +19 -19
- package/esm2020/lib/components/badge/index.mjs +3 -3
- package/esm2020/lib/components/button/button-avatar.component.mjs +53 -53
- package/esm2020/lib/components/button/button-dropdown.component.mjs +121 -121
- package/esm2020/lib/components/button/button.component.mjs +154 -154
- package/esm2020/lib/components/button/button.module.mjs +23 -23
- package/esm2020/lib/components/button/index.mjs +5 -5
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +165 -165
- package/esm2020/lib/components/checkbox/checkbox.module.mjs +20 -20
- package/esm2020/lib/components/checkbox/index.mjs +3 -3
- package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +660 -660
- package/esm2020/lib/components/date-range-picker/date-range-picker.module.mjs +22 -22
- package/esm2020/lib/components/date-range-picker/index.mjs +3 -3
- package/esm2020/lib/components/date-range-picker-v2/date-range-picker.component.mjs +671 -671
- package/esm2020/lib/components/date-range-picker-v2/date-range-picker.module.mjs +22 -22
- package/esm2020/lib/components/date-range-picker-v2/index.mjs +3 -3
- package/esm2020/lib/components/expansion/expansion.component.mjs +115 -115
- package/esm2020/lib/components/expansion/expansion.module.mjs +20 -20
- package/esm2020/lib/components/expansion/index.mjs +3 -3
- package/esm2020/lib/components/file-upload/file-upload.component.mjs +299 -299
- package/esm2020/lib/components/file-upload/file-upload.module.mjs +37 -37
- package/esm2020/lib/components/file-upload/index.mjs +3 -3
- package/esm2020/lib/components/icon/icon-add-plus.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-address-book.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrow-down.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrow-left.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrow-line-right.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrow-right.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrow-up.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-arrows.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-auction.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-average-tax.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bank-account.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bank-agency.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bank.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-banknote-search.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bell.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-block.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-book-open-text.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-book.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-box.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-build-approved.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-build-person.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-build-refused.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-build-waiting.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-calendar-box.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-calendar.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-camera.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-card-machine.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-card.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-cash-banknote-coins.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-cash-banknote-invoice.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-certificate-medal.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-chart-down-arrow.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-chart-down.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-chart-up-arrow.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-chart-up.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-chat.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-check-circle-out.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-check-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-check-grey.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-check-white.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-check.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-clipboard.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-clock-closed.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-clock.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-close-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-close.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-cnpj.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-codepen.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-company-name.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-contract-pen.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-contract.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-delete.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-digital-certificate.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-document.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-dollar-sign-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-dollar-sign.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-domain.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-dots-menu.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-double-arrow-left.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-double-arrow-right.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-download.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-drag-drop.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-edit-square.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-edit.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-email-send-fast.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-email.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-empty-doc.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-error.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-eye-closed.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-eye-open.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-filter-add.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-filter.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-grid.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-hand-money-banknote.mjs +15 -15
- package/esm2020/lib/components/icon/icon-hands-clap.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-help.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-hexagon.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-high-rising-build.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-home.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-image-wave-square.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-image.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-info.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-invoice.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-invoices-anticipated.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-invoices-approval.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-invoices-refused.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-lighting-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-list.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-location-pin.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-login.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-logout.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-mail-box-upload.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-mail-letter-fast-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-mail-open-document.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-medal.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-menu.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-banknote-calculator.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-cedule.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-discount.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-hand.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-net.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-new.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-percent.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-refused.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-sign.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-waiting.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-more-circle.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-more.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-new-company.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-offered.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-open-external.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-password-edit-shield-protection.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-password.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-people.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-percent-box.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-percent.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-person-document.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-person-sad.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-phone-call.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-phone.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-pin-navigation.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-pork.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-radio.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-refresh.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-registration.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-repeat.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-search.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-second-warning.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-settings.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-shield-chekmark.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-star-shining.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-star.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-store.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-suppliers.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-target-dart-arrow.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-today.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-trash.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-trophy.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-unfold-more.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-upload.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-user-group.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-user.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-waiting.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-wallet.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-warning.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon.component.mjs +1991 -1991
- package/esm2020/lib/components/icon/icon.module.mjs +322 -322
- package/esm2020/lib/components/icon/index.mjs +141 -141
- package/esm2020/lib/components/image-crop/image-crop.component.mjs +516 -516
- package/esm2020/lib/components/image-crop/image-crop.module.mjs +41 -41
- package/esm2020/lib/components/image-crop/index.mjs +3 -3
- package/esm2020/lib/components/index.mjs +21 -21
- package/esm2020/lib/components/input/index.mjs +4 -4
- package/esm2020/lib/components/input/input-filter.component.mjs +286 -286
- package/esm2020/lib/components/input/input.component.mjs +384 -384
- package/esm2020/lib/components/input/input.module.mjs +38 -38
- package/esm2020/lib/components/input-phone/index.mjs +3 -3
- package/esm2020/lib/components/input-phone/input-phone.component.mjs +307 -307
- package/esm2020/lib/components/input-phone/input-phone.module.mjs +45 -45
- package/esm2020/lib/components/modal/index.mjs +3 -3
- package/esm2020/lib/components/modal/modal.component.mjs +239 -243
- package/esm2020/lib/components/modal/modal.module.mjs +21 -21
- package/esm2020/lib/components/option/index.mjs +3 -3
- package/esm2020/lib/components/option/option.component.mjs +131 -131
- package/esm2020/lib/components/option/option.module.mjs +29 -29
- package/esm2020/lib/components/radiobutton/index.mjs +3 -3
- package/esm2020/lib/components/radiobutton/radiobutton.component.mjs +165 -165
- package/esm2020/lib/components/radiobutton/radiobutton.module.mjs +36 -36
- package/esm2020/lib/components/select/index.mjs +6 -6
- package/esm2020/lib/components/select/select-filter.component.mjs +197 -197
- package/esm2020/lib/components/select/select-multiple.component.mjs +304 -304
- package/esm2020/lib/components/select/select-search.component.mjs +306 -306
- package/esm2020/lib/components/select/select.component.mjs +245 -245
- package/esm2020/lib/components/select/select.module.mjs +61 -61
- package/esm2020/lib/components/stepper/index.mjs +3 -3
- package/esm2020/lib/components/stepper/stepper.component.mjs +57 -57
- package/esm2020/lib/components/stepper/stepper.module.mjs +20 -20
- package/esm2020/lib/components/tab/index.mjs +3 -3
- package/esm2020/lib/components/tab/tab.component.mjs +100 -100
- package/esm2020/lib/components/tab/tab.module.mjs +21 -21
- package/esm2020/lib/components/table/index.mjs +4 -4
- package/esm2020/lib/components/table/table-column.component.mjs +34 -34
- package/esm2020/lib/components/table/table.component.mjs +267 -267
- package/esm2020/lib/components/table/table.module.mjs +23 -23
- package/esm2020/lib/components/toggle/index.mjs +3 -3
- package/esm2020/lib/components/toggle/toggle.component.mjs +56 -56
- package/esm2020/lib/components/toggle/toggle.module.mjs +19 -19
- package/esm2020/lib/components/wizard/index.mjs +3 -3
- package/esm2020/lib/components/wizard/wizard.component.mjs +61 -61
- package/esm2020/lib/components/wizard/wizard.module.mjs +33 -33
- package/esm2020/lib/core/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/monkey-modal-settings.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkey-style-settings.mjs +2 -2
- package/esm2020/lib/core/services/index.mjs +5 -5
- package/esm2020/lib/core/services/modal/index.mjs +3 -3
- package/esm2020/lib/core/services/modal/monkey-style-guide-modal-fixed.service.mjs +52 -52
- package/esm2020/lib/core/services/modal/monkey-style-guide-modal.service.mjs +55 -55
- package/esm2020/lib/core/services/monkey-style-guide.service.mjs +17 -17
- package/esm2020/lib/core/services/settings/index.mjs +1 -1
- package/esm2020/lib/core/services/settings/monkey-style-guide-settings.service.mjs +41 -41
- package/esm2020/lib/core/services/settings/monkey-style-guide-theme-settings.service.mjs +80 -80
- package/esm2020/lib/core/services/snackbar/index.mjs +1 -1
- package/esm2020/lib/core/services/snackbar/mokey-style-guide-snackbar.service.mjs +226 -226
- package/esm2020/lib/core/utils/index.mjs +1 -1
- package/esm2020/lib/core/utils/utils.mjs +240 -240
- package/esm2020/lib/monkey-style-guide.module.mjs +31 -31
- package/esm2020/monkey-style-guide.mjs +4 -4
- package/esm2020/public-api.mjs +9 -9
- package/fesm2015/monkey-style-guide.mjs +10918 -10922
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +10905 -10909
- package/fesm2020/monkey-style-guide.mjs.map +1 -1
- package/lib/components/badge/badge.component.d.ts +8 -8
- package/lib/components/badge/badge.module.d.ts +8 -8
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/button/button-avatar.component.d.ts +19 -19
- package/lib/components/button/button-dropdown.component.d.ts +23 -23
- package/lib/components/button/button.component.d.ts +22 -22
- package/lib/components/button/button.module.d.ts +12 -12
- package/lib/components/button/index.d.ts +4 -4
- package/lib/components/checkbox/checkbox.component.d.ts +32 -32
- package/lib/components/checkbox/checkbox.module.d.ts +9 -9
- package/lib/components/checkbox/index.d.ts +2 -2
- package/lib/components/date-range-picker/date-range-picker.component.d.ts +69 -69
- package/lib/components/date-range-picker/date-range-picker.module.d.ts +11 -11
- package/lib/components/date-range-picker/index.d.ts +2 -2
- package/lib/components/date-range-picker-v2/date-range-picker.component.d.ts +73 -73
- package/lib/components/date-range-picker-v2/date-range-picker.module.d.ts +11 -11
- package/lib/components/date-range-picker-v2/index.d.ts +2 -2
- package/lib/components/expansion/expansion.component.d.ts +20 -20
- package/lib/components/expansion/expansion.module.d.ts +9 -9
- package/lib/components/expansion/index.d.ts +2 -2
- package/lib/components/file-upload/file-upload.component.d.ts +52 -52
- package/lib/components/file-upload/file-upload.module.d.ts +11 -11
- package/lib/components/file-upload/index.d.ts +2 -2
- package/lib/components/icon/icon-add-plus.component.d.ts +7 -7
- package/lib/components/icon/icon-address-book.component.d.ts +7 -7
- package/lib/components/icon/icon-arrow-down.component.d.ts +7 -7
- package/lib/components/icon/icon-arrow-left.component.d.ts +7 -7
- package/lib/components/icon/icon-arrow-line-right.component.d.ts +7 -7
- package/lib/components/icon/icon-arrow-right.component.d.ts +7 -7
- package/lib/components/icon/icon-arrow-up.component.d.ts +7 -7
- package/lib/components/icon/icon-arrows.component.d.ts +7 -7
- package/lib/components/icon/icon-auction.component.d.ts +7 -7
- package/lib/components/icon/icon-average-tax.component.d.ts +7 -7
- package/lib/components/icon/icon-bank-account.component.d.ts +7 -7
- package/lib/components/icon/icon-bank-agency.component.d.ts +7 -7
- package/lib/components/icon/icon-bank.component.d.ts +7 -7
- package/lib/components/icon/icon-banknote-search.component.d.ts +7 -7
- package/lib/components/icon/icon-bell.component.d.ts +7 -7
- package/lib/components/icon/icon-block.component.d.ts +7 -7
- package/lib/components/icon/icon-book-open-text.component.d.ts +7 -7
- package/lib/components/icon/icon-book.component.d.ts +7 -7
- package/lib/components/icon/icon-box.component.d.ts +7 -7
- package/lib/components/icon/icon-build-approved.component.d.ts +7 -7
- package/lib/components/icon/icon-build-person.component.d.ts +7 -7
- package/lib/components/icon/icon-build-refused.component.d.ts +7 -7
- package/lib/components/icon/icon-build-waiting.component.d.ts +7 -7
- package/lib/components/icon/icon-calendar-box.component.d.ts +7 -7
- package/lib/components/icon/icon-calendar.component.d.ts +7 -7
- package/lib/components/icon/icon-camera.component.d.ts +7 -7
- package/lib/components/icon/icon-card-machine.component.d.ts +7 -7
- package/lib/components/icon/icon-card.component.d.ts +7 -7
- package/lib/components/icon/icon-cash-banknote-coins.component.d.ts +7 -7
- package/lib/components/icon/icon-cash-banknote-invoice.component.d.ts +7 -7
- package/lib/components/icon/icon-certificate-medal.component.d.ts +7 -7
- package/lib/components/icon/icon-chart-down-arrow.component.d.ts +7 -7
- package/lib/components/icon/icon-chart-down.component.d.ts +7 -7
- package/lib/components/icon/icon-chart-up-arrow.component.d.ts +7 -7
- package/lib/components/icon/icon-chart-up.component.d.ts +7 -7
- package/lib/components/icon/icon-chat.component.d.ts +7 -7
- package/lib/components/icon/icon-check-circle-out.component.d.ts +7 -7
- package/lib/components/icon/icon-check-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-check-grey.component.d.ts +7 -7
- package/lib/components/icon/icon-check-white.component.d.ts +7 -7
- package/lib/components/icon/icon-check.component.d.ts +7 -7
- package/lib/components/icon/icon-clipboard.component.d.ts +7 -7
- package/lib/components/icon/icon-clock-closed.component.d.ts +7 -7
- package/lib/components/icon/icon-clock.component.d.ts +7 -7
- package/lib/components/icon/icon-close-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-close.component.d.ts +7 -7
- package/lib/components/icon/icon-cnpj.component.d.ts +7 -7
- package/lib/components/icon/icon-codepen.component.d.ts +7 -7
- package/lib/components/icon/icon-company-name.component.d.ts +7 -7
- package/lib/components/icon/icon-contract-pen.component.d.ts +7 -7
- package/lib/components/icon/icon-contract.component.d.ts +7 -7
- package/lib/components/icon/icon-delete.component.d.ts +7 -7
- package/lib/components/icon/icon-digital-certificate.component.d.ts +7 -7
- package/lib/components/icon/icon-document.component.d.ts +7 -7
- package/lib/components/icon/icon-dollar-sign-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-dollar-sign.component.d.ts +7 -7
- package/lib/components/icon/icon-domain.component.d.ts +7 -7
- package/lib/components/icon/icon-dots-menu.component.d.ts +7 -7
- package/lib/components/icon/icon-double-arrow-left.component.d.ts +7 -7
- package/lib/components/icon/icon-double-arrow-right.component.d.ts +7 -7
- package/lib/components/icon/icon-download.component.d.ts +7 -7
- package/lib/components/icon/icon-drag-drop.component.d.ts +7 -7
- package/lib/components/icon/icon-edit-square.component.d.ts +7 -7
- package/lib/components/icon/icon-edit.component.d.ts +7 -7
- package/lib/components/icon/icon-email-send-fast.component.d.ts +7 -7
- package/lib/components/icon/icon-email.component.d.ts +7 -7
- package/lib/components/icon/icon-empty-doc.component.d.ts +7 -7
- package/lib/components/icon/icon-error.component.d.ts +7 -7
- package/lib/components/icon/icon-eye-closed.component.d.ts +7 -7
- package/lib/components/icon/icon-eye-open.component.d.ts +7 -7
- package/lib/components/icon/icon-filter-add.component.d.ts +7 -7
- package/lib/components/icon/icon-filter.component.d.ts +7 -7
- package/lib/components/icon/icon-grid.component.d.ts +7 -7
- package/lib/components/icon/icon-hand-money-banknote.d.ts +7 -7
- package/lib/components/icon/icon-hands-clap.component.d.ts +7 -7
- package/lib/components/icon/icon-help.component.d.ts +7 -7
- package/lib/components/icon/icon-hexagon.component.d.ts +7 -7
- package/lib/components/icon/icon-high-rising-build.component.d.ts +7 -7
- package/lib/components/icon/icon-home.component.d.ts +7 -7
- package/lib/components/icon/icon-image-wave-square.component.d.ts +7 -7
- package/lib/components/icon/icon-image.component.d.ts +7 -7
- package/lib/components/icon/icon-info.component.d.ts +7 -7
- package/lib/components/icon/icon-invoice.component.d.ts +7 -7
- package/lib/components/icon/icon-invoices-anticipated.component.d.ts +7 -7
- package/lib/components/icon/icon-invoices-approval.component.d.ts +7 -7
- package/lib/components/icon/icon-invoices-refused.component.d.ts +7 -7
- package/lib/components/icon/icon-lighting-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-list.component.d.ts +7 -7
- package/lib/components/icon/icon-location-pin.component.d.ts +7 -7
- package/lib/components/icon/icon-login.component.d.ts +7 -7
- package/lib/components/icon/icon-logout.component.d.ts +7 -7
- package/lib/components/icon/icon-mail-box-upload.component.d.ts +7 -7
- package/lib/components/icon/icon-mail-letter-fast-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-mail-open-document.component.d.ts +7 -7
- package/lib/components/icon/icon-medal.component.d.ts +7 -7
- package/lib/components/icon/icon-menu.component.d.ts +7 -7
- package/lib/components/icon/icon-money-banknote-calculator.component.d.ts +7 -7
- package/lib/components/icon/icon-money-cedule.component.d.ts +7 -7
- package/lib/components/icon/icon-money-discount.component.d.ts +7 -7
- package/lib/components/icon/icon-money-hand.component.d.ts +7 -7
- package/lib/components/icon/icon-money-net.component.d.ts +7 -7
- package/lib/components/icon/icon-money-new.component.d.ts +7 -7
- package/lib/components/icon/icon-money-percent.component.d.ts +7 -7
- package/lib/components/icon/icon-money-refused.component.d.ts +7 -7
- package/lib/components/icon/icon-money-sign.component.d.ts +7 -7
- package/lib/components/icon/icon-money-waiting.component.d.ts +7 -7
- package/lib/components/icon/icon-money.component.d.ts +7 -7
- package/lib/components/icon/icon-more-circle.component.d.ts +7 -7
- package/lib/components/icon/icon-more.component.d.ts +7 -7
- package/lib/components/icon/icon-new-company.component.d.ts +7 -7
- package/lib/components/icon/icon-offered.component.d.ts +7 -7
- package/lib/components/icon/icon-open-external.component.d.ts +7 -7
- package/lib/components/icon/icon-password-edit-shield-protection.component.d.ts +7 -7
- package/lib/components/icon/icon-password.component.d.ts +7 -7
- package/lib/components/icon/icon-people.component.d.ts +7 -7
- package/lib/components/icon/icon-percent-box.component.d.ts +7 -7
- package/lib/components/icon/icon-percent.component.d.ts +7 -7
- package/lib/components/icon/icon-person-document.component.d.ts +7 -7
- package/lib/components/icon/icon-person-sad.component.d.ts +7 -7
- package/lib/components/icon/icon-phone-call.component.d.ts +7 -7
- package/lib/components/icon/icon-phone.component.d.ts +7 -7
- package/lib/components/icon/icon-pin-navigation.component.d.ts +7 -7
- package/lib/components/icon/icon-pork.component.d.ts +7 -7
- package/lib/components/icon/icon-radio.component.d.ts +7 -7
- package/lib/components/icon/icon-refresh.component.d.ts +7 -7
- package/lib/components/icon/icon-registration.component.d.ts +7 -7
- package/lib/components/icon/icon-repeat.component.d.ts +7 -7
- package/lib/components/icon/icon-search.component.d.ts +7 -7
- package/lib/components/icon/icon-second-warning.component.d.ts +7 -7
- package/lib/components/icon/icon-settings.component.d.ts +7 -7
- package/lib/components/icon/icon-shield-chekmark.component.d.ts +7 -7
- package/lib/components/icon/icon-star-shining.component.d.ts +7 -7
- package/lib/components/icon/icon-star.component.d.ts +7 -7
- package/lib/components/icon/icon-store.component.d.ts +7 -7
- package/lib/components/icon/icon-suppliers.component.d.ts +7 -7
- package/lib/components/icon/icon-target-dart-arrow.component.d.ts +7 -7
- package/lib/components/icon/icon-today.component.d.ts +7 -7
- package/lib/components/icon/icon-trash.component.d.ts +7 -7
- package/lib/components/icon/icon-trophy.component.d.ts +7 -7
- package/lib/components/icon/icon-unfold-more.component.d.ts +7 -7
- package/lib/components/icon/icon-upload.component.d.ts +7 -7
- package/lib/components/icon/icon-user-group.component.d.ts +7 -7
- package/lib/components/icon/icon-user.component.d.ts +7 -7
- package/lib/components/icon/icon-waiting.component.d.ts +7 -7
- package/lib/components/icon/icon-wallet.component.d.ts +7 -7
- package/lib/components/icon/icon-warning.component.d.ts +7 -7
- package/lib/components/icon/icon.component.d.ts +27 -27
- package/lib/components/icon/icon.module.d.ts +154 -154
- package/lib/components/icon/index.d.ts +140 -140
- package/lib/components/image-crop/image-crop.component.d.ts +77 -77
- package/lib/components/image-crop/image-crop.module.d.ts +12 -12
- package/lib/components/image-crop/index.d.ts +2 -2
- package/lib/components/index.d.ts +20 -20
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/input-filter.component.d.ts +55 -55
- package/lib/components/input/input.component.d.ts +64 -64
- package/lib/components/input/input.module.d.ts +12 -12
- package/lib/components/input-phone/index.d.ts +2 -2
- package/lib/components/input-phone/input-phone.component.d.ts +62 -62
- package/lib/components/input-phone/input-phone.module.d.ts +13 -13
- package/lib/components/modal/index.d.ts +2 -2
- package/lib/components/modal/modal.component.d.ts +24 -24
- package/lib/components/modal/modal.module.d.ts +10 -10
- package/lib/components/option/index.d.ts +2 -2
- package/lib/components/option/option.component.d.ts +22 -22
- package/lib/components/option/option.module.d.ts +8 -8
- package/lib/components/radiobutton/index.d.ts +2 -2
- package/lib/components/radiobutton/radiobutton.component.d.ts +39 -39
- package/lib/components/radiobutton/radiobutton.module.d.ts +9 -9
- package/lib/components/select/index.d.ts +5 -5
- package/lib/components/select/select-filter.component.d.ts +41 -41
- package/lib/components/select/select-multiple.component.d.ts +48 -48
- package/lib/components/select/select-search.component.d.ts +56 -56
- package/lib/components/select/select.component.d.ts +48 -48
- package/lib/components/select/select.module.d.ts +15 -15
- package/lib/components/stepper/index.d.ts +2 -2
- package/lib/components/stepper/stepper.component.d.ts +18 -18
- package/lib/components/stepper/stepper.module.d.ts +9 -9
- package/lib/components/tab/index.d.ts +2 -2
- package/lib/components/tab/tab.component.d.ts +24 -24
- package/lib/components/tab/tab.module.d.ts +10 -10
- package/lib/components/table/index.d.ts +3 -3
- package/lib/components/table/table-column.component.d.ts +5 -5
- package/lib/components/table/table.component.d.ts +59 -59
- package/lib/components/table/table.module.d.ts +12 -12
- package/lib/components/toggle/index.d.ts +2 -2
- package/lib/components/toggle/toggle.component.d.ts +18 -18
- package/lib/components/toggle/toggle.module.d.ts +8 -8
- package/lib/components/wizard/index.d.ts +2 -2
- package/lib/components/wizard/wizard.component.d.ts +18 -18
- package/lib/components/wizard/wizard.module.d.ts +9 -9
- package/lib/core/index.d.ts +3 -3
- package/lib/core/interfaces/index.d.ts +2 -2
- package/lib/core/interfaces/monkey-modal-settings.d.ts +61 -61
- package/lib/core/interfaces/monkey-style-settings.d.ts +59 -59
- package/lib/core/services/index.d.ts +4 -4
- package/lib/core/services/modal/index.d.ts +2 -2
- package/lib/core/services/modal/monkey-style-guide-modal-fixed.service.d.ts +16 -16
- package/lib/core/services/modal/monkey-style-guide-modal.service.d.ts +18 -18
- package/lib/core/services/monkey-style-guide.service.d.ts +10 -10
- package/lib/core/services/settings/index.d.ts +1 -1
- package/lib/core/services/settings/monkey-style-guide-settings.service.d.ts +15 -15
- package/lib/core/services/settings/monkey-style-guide-theme-settings.service.d.ts +12 -12
- package/lib/core/services/snackbar/index.d.ts +1 -1
- package/lib/core/services/snackbar/mokey-style-guide-snackbar.service.d.ts +58 -58
- package/lib/core/utils/index.d.ts +1 -1
- package/lib/core/utils/utils.d.ts +29 -29
- package/lib/monkey-style-guide.module.d.ts +8 -8
- package/monkey-style-guide-2.0.193.tgz +0 -0
- package/monkey-style-guide.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +8 -8
- package/monkey-style-guide-2.0.191.tgz +0 -0
|
@@ -1,267 +1,267 @@
|
|
|
1
|
-
/**************************
|
|
2
|
-
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
-
* This style guide was developed by Monkey Exchange Team
|
|
4
|
-
* MIT Licence
|
|
5
|
-
**************************/
|
|
6
|
-
import { Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
7
|
-
import { MonkeyUtils } from '../../core';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../checkbox/checkbox.component";
|
|
10
|
-
import * as i2 from "../button/button.component";
|
|
11
|
-
import * as i3 from "@angular/common";
|
|
12
|
-
export class MonkeyTableComponent {
|
|
13
|
-
constructor(elRef) {
|
|
14
|
-
this.elRef = elRef;
|
|
15
|
-
this.loading = false;
|
|
16
|
-
this.selectable = false;
|
|
17
|
-
this.showSelectAll = true;
|
|
18
|
-
this.callbackValidation = null;
|
|
19
|
-
this.callbackValidationAll = null;
|
|
20
|
-
this.selectedList = null;
|
|
21
|
-
this.infoMessage = '';
|
|
22
|
-
this.pagination = null;
|
|
23
|
-
this.selection = new EventEmitter();
|
|
24
|
-
this.selected = new EventEmitter();
|
|
25
|
-
this.clicked = new EventEmitter();
|
|
26
|
-
this.onPaginate = new EventEmitter();
|
|
27
|
-
this.list = [];
|
|
28
|
-
this._maxWidth = 100;
|
|
29
|
-
//not to do
|
|
30
|
-
}
|
|
31
|
-
emitSelection() {
|
|
32
|
-
this.selection.next(this.list);
|
|
33
|
-
}
|
|
34
|
-
handleDataSource() {
|
|
35
|
-
this._newDataSource = this.dataSource.map((data) => {
|
|
36
|
-
let id = null;
|
|
37
|
-
if (this.functionId) {
|
|
38
|
-
id = this.functionId(data);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
id = MonkeyUtils.getRandomString(20);
|
|
42
|
-
}
|
|
43
|
-
return { id, data };
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
ngOnInit() {
|
|
47
|
-
setTimeout(() => {
|
|
48
|
-
this._maxWidth = 100 / this.headers?.length;
|
|
49
|
-
this.elRef.nativeElement.style.setProperty('--mecx-table-column-width', `${this._maxWidth}%`);
|
|
50
|
-
}, 0);
|
|
51
|
-
this.handleDataSource();
|
|
52
|
-
if (this.selectedList) {
|
|
53
|
-
this.list = this.selectedList;
|
|
54
|
-
this.emitSelection();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
ngOnChanges() {
|
|
58
|
-
this.handleDataSource();
|
|
59
|
-
if (this.selectedList) {
|
|
60
|
-
this.list = this.selectedList;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
onHandleSelect(event, row) {
|
|
64
|
-
const { callbackValidation } = this;
|
|
65
|
-
event.preventDefault();
|
|
66
|
-
const continueValidation = () => {
|
|
67
|
-
this.emitSelection();
|
|
68
|
-
this.selected.next({ row, selected: this.onHandleSelected(row) });
|
|
69
|
-
};
|
|
70
|
-
if (this.onHandleSelected(row)) {
|
|
71
|
-
this.list.splice(this.list.indexOf(row), 1);
|
|
72
|
-
continueValidation();
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
if (callbackValidation) {
|
|
76
|
-
callbackValidation(row, () => {
|
|
77
|
-
this.list.push(row);
|
|
78
|
-
continueValidation();
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
continueValidation();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
onHandleSelectAll(event) {
|
|
87
|
-
const { callbackValidationAll } = this;
|
|
88
|
-
event.preventDefault();
|
|
89
|
-
const continueValidation = () => {
|
|
90
|
-
this.emitSelection();
|
|
91
|
-
this.selected.next({ row: this.list });
|
|
92
|
-
};
|
|
93
|
-
if (!this.list.length) {
|
|
94
|
-
if (callbackValidationAll) {
|
|
95
|
-
callbackValidationAll(this._newDataSource, (newData = null) => {
|
|
96
|
-
if (newData) {
|
|
97
|
-
this.list = [...newData];
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.list = [...this._newDataSource];
|
|
101
|
-
}
|
|
102
|
-
continueValidation();
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
this.list = [];
|
|
108
|
-
continueValidation();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
onHandleSelected(row) {
|
|
112
|
-
return !!this.list.find((value) => value.id === row.id);
|
|
113
|
-
}
|
|
114
|
-
onHandleSelectedAll() {
|
|
115
|
-
return this.list.length === this._newDataSource.length;
|
|
116
|
-
}
|
|
117
|
-
onHandleClicked(row) {
|
|
118
|
-
this.clicked.next(row);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
MonkeyTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyTableComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
-
MonkeyTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyTableComponent, selector: "monkey-table", inputs: { headers: "headers", dataSource: "dataSource", loading: "loading", rowTemplate: "rowTemplate", selectable: "selectable", showSelectAll: "showSelectAll", callbackValidation: "callbackValidation", callbackValidationAll: "callbackValidationAll", selectedList: "selectedList", functionId: "functionId", infoMessage: "infoMessage", pagination: "pagination" }, outputs: { selection: "selection", selected: "selected", clicked: "clicked", onPaginate: "onPaginate" }, usesOnChanges: true, ngImport: i0, template: `
|
|
123
|
-
<mecx-monkey-table>
|
|
124
|
-
<mecx-monkey-table-header>
|
|
125
|
-
<monkey-checkbox
|
|
126
|
-
[value]="onHandleSelectedAll()"
|
|
127
|
-
(click)="onHandleSelectAll($event)"
|
|
128
|
-
*ngIf="selectable && showSelectAll"
|
|
129
|
-
></monkey-checkbox>
|
|
130
|
-
<div class="select-all-disabled" *ngIf="selectable && !showSelectAll"></div>
|
|
131
|
-
<span *ngFor="let header of headers" [style.width]="_maxWidth + '%'">
|
|
132
|
-
{{ header }}
|
|
133
|
-
</span>
|
|
134
|
-
</mecx-monkey-table-header>
|
|
135
|
-
<mecx-monkey-table-body>
|
|
136
|
-
<mecx-monkey-table-body-row
|
|
137
|
-
[class.selected]="onHandleSelected(row)"
|
|
138
|
-
*ngFor="let row of _newDataSource"
|
|
139
|
-
(click)="onHandleClicked(row)"
|
|
140
|
-
>
|
|
141
|
-
<monkey-checkbox
|
|
142
|
-
[value]="onHandleSelected(row)"
|
|
143
|
-
(click)="onHandleSelect($event, row)"
|
|
144
|
-
*ngIf="selectable"
|
|
145
|
-
></monkey-checkbox>
|
|
146
|
-
<ng-container *ngTemplateOutlet="rowTemplate; context: { row: row.data }"></ng-container>
|
|
147
|
-
</mecx-monkey-table-body-row>
|
|
148
|
-
</mecx-monkey-table-body>
|
|
149
|
-
<mecx-monkey-table-body *ngIf="loading">
|
|
150
|
-
<mecx-monkey-table-body-row *ngFor="let loading of [1, 2, 3]">
|
|
151
|
-
<progress class="monkey-progress monkey-progress__grey-white"></progress>
|
|
152
|
-
</mecx-monkey-table-body-row>
|
|
153
|
-
</mecx-monkey-table-body>
|
|
154
|
-
<mecx-monkey-table-footer *ngIf="infoMessage || pagination">
|
|
155
|
-
<info>
|
|
156
|
-
{{ infoMessage }}
|
|
157
|
-
</info>
|
|
158
|
-
<action *ngIf="(pagination?.links) as links">
|
|
159
|
-
<monkey-button type="tertiary" color="theme" icon="double-arrow-left-32" size="sm"
|
|
160
|
-
[disabled]="(links?.first?.href === links?.self?.href) || loading" (click)="onPaginate.next('first')">
|
|
161
|
-
</monkey-button>
|
|
162
|
-
<monkey-button type="tertiary" color="theme" icon="arrow-left-32" size="sm"
|
|
163
|
-
[disabled]="!links?.prev || loading" (click)="onPaginate.next('prev')">
|
|
164
|
-
</monkey-button>
|
|
165
|
-
<monkey-button type="tertiary" color="theme" icon="arrow-right-32" size="sm"
|
|
166
|
-
[disabled]="!links?.next || loading" (click)="onPaginate.next('next')">
|
|
167
|
-
</monkey-button>
|
|
168
|
-
<monkey-button type="tertiary" color="theme" icon="double-arrow-right-32" size="sm"
|
|
169
|
-
[disabled]="(links?.last?.href === links?.self?.href) || loading" (click)="onPaginate.next('last')">
|
|
170
|
-
</monkey-button>
|
|
171
|
-
</action>
|
|
172
|
-
</mecx-monkey-table-footer>
|
|
173
|
-
</mecx-monkey-table>
|
|
174
|
-
`, isInline: true, components: [{ type: i1.MonkeyCheckboxComponent, selector: "monkey-checkbox", inputs: ["label", "type", "helperMessage", "infoMessage", "errorMessage", "description", "value"], outputs: ["onChange"] }, { type: i2.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyTableComponent, decorators: [{
|
|
176
|
-
type: Component,
|
|
177
|
-
args: [{
|
|
178
|
-
selector: 'monkey-table',
|
|
179
|
-
template: `
|
|
180
|
-
<mecx-monkey-table>
|
|
181
|
-
<mecx-monkey-table-header>
|
|
182
|
-
<monkey-checkbox
|
|
183
|
-
[value]="onHandleSelectedAll()"
|
|
184
|
-
(click)="onHandleSelectAll($event)"
|
|
185
|
-
*ngIf="selectable && showSelectAll"
|
|
186
|
-
></monkey-checkbox>
|
|
187
|
-
<div class="select-all-disabled" *ngIf="selectable && !showSelectAll"></div>
|
|
188
|
-
<span *ngFor="let header of headers" [style.width]="_maxWidth + '%'">
|
|
189
|
-
{{ header }}
|
|
190
|
-
</span>
|
|
191
|
-
</mecx-monkey-table-header>
|
|
192
|
-
<mecx-monkey-table-body>
|
|
193
|
-
<mecx-monkey-table-body-row
|
|
194
|
-
[class.selected]="onHandleSelected(row)"
|
|
195
|
-
*ngFor="let row of _newDataSource"
|
|
196
|
-
(click)="onHandleClicked(row)"
|
|
197
|
-
>
|
|
198
|
-
<monkey-checkbox
|
|
199
|
-
[value]="onHandleSelected(row)"
|
|
200
|
-
(click)="onHandleSelect($event, row)"
|
|
201
|
-
*ngIf="selectable"
|
|
202
|
-
></monkey-checkbox>
|
|
203
|
-
<ng-container *ngTemplateOutlet="rowTemplate; context: { row: row.data }"></ng-container>
|
|
204
|
-
</mecx-monkey-table-body-row>
|
|
205
|
-
</mecx-monkey-table-body>
|
|
206
|
-
<mecx-monkey-table-body *ngIf="loading">
|
|
207
|
-
<mecx-monkey-table-body-row *ngFor="let loading of [1, 2, 3]">
|
|
208
|
-
<progress class="monkey-progress monkey-progress__grey-white"></progress>
|
|
209
|
-
</mecx-monkey-table-body-row>
|
|
210
|
-
</mecx-monkey-table-body>
|
|
211
|
-
<mecx-monkey-table-footer *ngIf="infoMessage || pagination">
|
|
212
|
-
<info>
|
|
213
|
-
{{ infoMessage }}
|
|
214
|
-
</info>
|
|
215
|
-
<action *ngIf="(pagination?.links) as links">
|
|
216
|
-
<monkey-button type="tertiary" color="theme" icon="double-arrow-left-32" size="sm"
|
|
217
|
-
[disabled]="(links?.first?.href === links?.self?.href) || loading" (click)="onPaginate.next('first')">
|
|
218
|
-
</monkey-button>
|
|
219
|
-
<monkey-button type="tertiary" color="theme" icon="arrow-left-32" size="sm"
|
|
220
|
-
[disabled]="!links?.prev || loading" (click)="onPaginate.next('prev')">
|
|
221
|
-
</monkey-button>
|
|
222
|
-
<monkey-button type="tertiary" color="theme" icon="arrow-right-32" size="sm"
|
|
223
|
-
[disabled]="!links?.next || loading" (click)="onPaginate.next('next')">
|
|
224
|
-
</monkey-button>
|
|
225
|
-
<monkey-button type="tertiary" color="theme" icon="double-arrow-right-32" size="sm"
|
|
226
|
-
[disabled]="(links?.last?.href === links?.self?.href) || loading" (click)="onPaginate.next('last')">
|
|
227
|
-
</monkey-button>
|
|
228
|
-
</action>
|
|
229
|
-
</mecx-monkey-table-footer>
|
|
230
|
-
</mecx-monkey-table>
|
|
231
|
-
`,
|
|
232
|
-
encapsulation: ViewEncapsulation.None,
|
|
233
|
-
}]
|
|
234
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { headers: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}], dataSource: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], loading: [{
|
|
239
|
-
type: Input
|
|
240
|
-
}], rowTemplate: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}], selectable: [{
|
|
243
|
-
type: Input
|
|
244
|
-
}], showSelectAll: [{
|
|
245
|
-
type: Input
|
|
246
|
-
}], callbackValidation: [{
|
|
247
|
-
type: Input
|
|
248
|
-
}], callbackValidationAll: [{
|
|
249
|
-
type: Input
|
|
250
|
-
}], selectedList: [{
|
|
251
|
-
type: Input
|
|
252
|
-
}], functionId: [{
|
|
253
|
-
type: Input
|
|
254
|
-
}], infoMessage: [{
|
|
255
|
-
type: Input
|
|
256
|
-
}], pagination: [{
|
|
257
|
-
type: Input
|
|
258
|
-
}], selection: [{
|
|
259
|
-
type: Output
|
|
260
|
-
}], selected: [{
|
|
261
|
-
type: Output
|
|
262
|
-
}], clicked: [{
|
|
263
|
-
type: Output
|
|
264
|
-
}], onPaginate: [{
|
|
265
|
-
type: Output
|
|
266
|
-
}] } });
|
|
267
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LXN0eWxlLWd1aWRlL3NyYy9saWIvY29tcG9uZW50cy90YWJsZS90YWJsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7NEJBSTRCO0FBQzVCLE9BQU8sRUFDTCxTQUFTLEVBRVQsWUFBWSxFQUNaLEtBQUssRUFHTCxNQUFNLEVBRU4saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxZQUFZLENBQUM7Ozs7O0FBMkR6QyxNQUFNLE9BQU8sb0JBQW9CO0lBK0MvQixZQUFtQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO1FBMUMzQixZQUFPLEdBQUcsS0FBSyxDQUFDO1FBSWhCLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFFbkIsa0JBQWEsR0FBRyxJQUFJLENBQUM7UUFFckIsdUJBQWtCLEdBQUcsSUFBSSxDQUFDO1FBRTFCLDBCQUFxQixHQUFHLElBQUksQ0FBQztRQUU3QixpQkFBWSxHQUFHLElBQUksQ0FBQztRQUlwQixnQkFBVyxHQUFXLEVBQUUsQ0FBQztRQUV6QixlQUFVLEdBUWYsSUFBSSxD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H0gZnJvbSAnLi4vLi4vY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ21vbmtleS10YWJsZScsXHJcbiAgdGVtcGxhdGU6IGBcclxuICAgIDxtZWN4LW1vbmtleS10YWJsZT5cclxuICAgICAgPG1lY3gtbW9ua2V5LXRhYmxlLWhlYWRlcj5cclxuICAgICAgICA8bW9ua2V5LWNoZWNrYm94XHJcbiAgICAgICAgICBbdmFsdWVdPVwib25IYW5kbGVTZWxlY3RlZEFsbCgpXCJcclxuICAgICAgICAgIChjbGljayk9XCJvbkhhbmRsZVNlbGVjdEFsbCgkZXZlbnQpXCJcclxuICAgICAgICAgICpuZ0lmPVwic2VsZWN0YWJsZSAmJiBzaG93U2VsZWN0QWxsXCJcclxuICAgICAgICA+PC9tb25rZXktY2hlY2tib3g+XHJcbiAgICAgICAgPGRpdiBjbGFzcz1cInNlbGVjdC1hbGwtZGlzYWJsZWRcIiAqbmdJZj1cInNlbGVjdGFibGUgJiYgIXNob3dTZWxlY3RBbGxcIj48L2Rpdj5cclxuICAgICAgICA8c3BhbiAqbmdGb3I9XCJsZXQgaGVhZGVyIG9mIGhlYWRlcnNcIiBbc3R5bGUud2lkdGhdPVwiX21heFdpZHRoICsgJyUnXCI+XHJcbiAgICAgICAgICB7eyBoZWFkZXIgfX1cclxuICAgICAgICA8L3NwYW4+XHJcbiAgICAgIDwvbWVjeC1tb25rZXktdGFibGUtaGVhZGVyPlxyXG4gICAgICA8bWVjeC1tb25rZXktdGFibGUtYm9keT5cclxuICAgICAgICA8bWVjeC1tb25rZXktdGFibGUtYm9keS1yb3dcclxuICAgICAgICAgIFtjbGFzcy5zZWxlY3RlZF09XCJvbkhhbmRsZVNlbGVjdGVkKHJvdylcIlxyXG4gICAgICAgICAgKm5nRm9yPVwibGV0IHJvdyBvZiBfbmV3RGF0YVNvdXJjZVwiXHJcbiAgICAgICAgICAoY2xpY2spPVwib25IYW5kbGVDbGlja2VkKHJvdylcIlxy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
|
+
/**************************
|
|
2
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
+
* This style guide was developed by Monkey Exchange Team
|
|
4
|
+
* MIT Licence
|
|
5
|
+
**************************/
|
|
6
|
+
import { Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
7
|
+
import { MonkeyUtils } from '../../core';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../checkbox/checkbox.component";
|
|
10
|
+
import * as i2 from "../button/button.component";
|
|
11
|
+
import * as i3 from "@angular/common";
|
|
12
|
+
export class MonkeyTableComponent {
|
|
13
|
+
constructor(elRef) {
|
|
14
|
+
this.elRef = elRef;
|
|
15
|
+
this.loading = false;
|
|
16
|
+
this.selectable = false;
|
|
17
|
+
this.showSelectAll = true;
|
|
18
|
+
this.callbackValidation = null;
|
|
19
|
+
this.callbackValidationAll = null;
|
|
20
|
+
this.selectedList = null;
|
|
21
|
+
this.infoMessage = '';
|
|
22
|
+
this.pagination = null;
|
|
23
|
+
this.selection = new EventEmitter();
|
|
24
|
+
this.selected = new EventEmitter();
|
|
25
|
+
this.clicked = new EventEmitter();
|
|
26
|
+
this.onPaginate = new EventEmitter();
|
|
27
|
+
this.list = [];
|
|
28
|
+
this._maxWidth = 100;
|
|
29
|
+
//not to do
|
|
30
|
+
}
|
|
31
|
+
emitSelection() {
|
|
32
|
+
this.selection.next(this.list);
|
|
33
|
+
}
|
|
34
|
+
handleDataSource() {
|
|
35
|
+
this._newDataSource = this.dataSource.map((data) => {
|
|
36
|
+
let id = null;
|
|
37
|
+
if (this.functionId) {
|
|
38
|
+
id = this.functionId(data);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
id = MonkeyUtils.getRandomString(20);
|
|
42
|
+
}
|
|
43
|
+
return { id, data };
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
ngOnInit() {
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
this._maxWidth = 100 / this.headers?.length;
|
|
49
|
+
this.elRef.nativeElement.style.setProperty('--mecx-table-column-width', `${this._maxWidth}%`);
|
|
50
|
+
}, 0);
|
|
51
|
+
this.handleDataSource();
|
|
52
|
+
if (this.selectedList) {
|
|
53
|
+
this.list = this.selectedList;
|
|
54
|
+
this.emitSelection();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
ngOnChanges() {
|
|
58
|
+
this.handleDataSource();
|
|
59
|
+
if (this.selectedList) {
|
|
60
|
+
this.list = this.selectedList;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
onHandleSelect(event, row) {
|
|
64
|
+
const { callbackValidation } = this;
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
const continueValidation = () => {
|
|
67
|
+
this.emitSelection();
|
|
68
|
+
this.selected.next({ row, selected: this.onHandleSelected(row) });
|
|
69
|
+
};
|
|
70
|
+
if (this.onHandleSelected(row)) {
|
|
71
|
+
this.list.splice(this.list.indexOf(row), 1);
|
|
72
|
+
continueValidation();
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
if (callbackValidation) {
|
|
76
|
+
callbackValidation(row, () => {
|
|
77
|
+
this.list.push(row);
|
|
78
|
+
continueValidation();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
continueValidation();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
onHandleSelectAll(event) {
|
|
87
|
+
const { callbackValidationAll } = this;
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
const continueValidation = () => {
|
|
90
|
+
this.emitSelection();
|
|
91
|
+
this.selected.next({ row: this.list });
|
|
92
|
+
};
|
|
93
|
+
if (!this.list.length) {
|
|
94
|
+
if (callbackValidationAll) {
|
|
95
|
+
callbackValidationAll(this._newDataSource, (newData = null) => {
|
|
96
|
+
if (newData) {
|
|
97
|
+
this.list = [...newData];
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.list = [...this._newDataSource];
|
|
101
|
+
}
|
|
102
|
+
continueValidation();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this.list = [];
|
|
108
|
+
continueValidation();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
onHandleSelected(row) {
|
|
112
|
+
return !!this.list.find((value) => value.id === row.id);
|
|
113
|
+
}
|
|
114
|
+
onHandleSelectedAll() {
|
|
115
|
+
return this.list.length === this._newDataSource.length;
|
|
116
|
+
}
|
|
117
|
+
onHandleClicked(row) {
|
|
118
|
+
this.clicked.next(row);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
MonkeyTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyTableComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
MonkeyTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyTableComponent, selector: "monkey-table", inputs: { headers: "headers", dataSource: "dataSource", loading: "loading", rowTemplate: "rowTemplate", selectable: "selectable", showSelectAll: "showSelectAll", callbackValidation: "callbackValidation", callbackValidationAll: "callbackValidationAll", selectedList: "selectedList", functionId: "functionId", infoMessage: "infoMessage", pagination: "pagination" }, outputs: { selection: "selection", selected: "selected", clicked: "clicked", onPaginate: "onPaginate" }, usesOnChanges: true, ngImport: i0, template: `
|
|
123
|
+
<mecx-monkey-table>
|
|
124
|
+
<mecx-monkey-table-header>
|
|
125
|
+
<monkey-checkbox
|
|
126
|
+
[value]="onHandleSelectedAll()"
|
|
127
|
+
(click)="onHandleSelectAll($event)"
|
|
128
|
+
*ngIf="selectable && showSelectAll"
|
|
129
|
+
></monkey-checkbox>
|
|
130
|
+
<div class="select-all-disabled" *ngIf="selectable && !showSelectAll"></div>
|
|
131
|
+
<span *ngFor="let header of headers" [style.width]="_maxWidth + '%'">
|
|
132
|
+
{{ header }}
|
|
133
|
+
</span>
|
|
134
|
+
</mecx-monkey-table-header>
|
|
135
|
+
<mecx-monkey-table-body>
|
|
136
|
+
<mecx-monkey-table-body-row
|
|
137
|
+
[class.selected]="onHandleSelected(row)"
|
|
138
|
+
*ngFor="let row of _newDataSource"
|
|
139
|
+
(click)="onHandleClicked(row)"
|
|
140
|
+
>
|
|
141
|
+
<monkey-checkbox
|
|
142
|
+
[value]="onHandleSelected(row)"
|
|
143
|
+
(click)="onHandleSelect($event, row)"
|
|
144
|
+
*ngIf="selectable"
|
|
145
|
+
></monkey-checkbox>
|
|
146
|
+
<ng-container *ngTemplateOutlet="rowTemplate; context: { row: row.data }"></ng-container>
|
|
147
|
+
</mecx-monkey-table-body-row>
|
|
148
|
+
</mecx-monkey-table-body>
|
|
149
|
+
<mecx-monkey-table-body *ngIf="loading">
|
|
150
|
+
<mecx-monkey-table-body-row *ngFor="let loading of [1, 2, 3]">
|
|
151
|
+
<progress class="monkey-progress monkey-progress__grey-white"></progress>
|
|
152
|
+
</mecx-monkey-table-body-row>
|
|
153
|
+
</mecx-monkey-table-body>
|
|
154
|
+
<mecx-monkey-table-footer *ngIf="infoMessage || pagination">
|
|
155
|
+
<info>
|
|
156
|
+
{{ infoMessage }}
|
|
157
|
+
</info>
|
|
158
|
+
<action *ngIf="(pagination?.links) as links">
|
|
159
|
+
<monkey-button type="tertiary" color="theme" icon="double-arrow-left-32" size="sm"
|
|
160
|
+
[disabled]="(links?.first?.href === links?.self?.href) || loading" (click)="onPaginate.next('first')">
|
|
161
|
+
</monkey-button>
|
|
162
|
+
<monkey-button type="tertiary" color="theme" icon="arrow-left-32" size="sm"
|
|
163
|
+
[disabled]="!links?.prev || loading" (click)="onPaginate.next('prev')">
|
|
164
|
+
</monkey-button>
|
|
165
|
+
<monkey-button type="tertiary" color="theme" icon="arrow-right-32" size="sm"
|
|
166
|
+
[disabled]="!links?.next || loading" (click)="onPaginate.next('next')">
|
|
167
|
+
</monkey-button>
|
|
168
|
+
<monkey-button type="tertiary" color="theme" icon="double-arrow-right-32" size="sm"
|
|
169
|
+
[disabled]="(links?.last?.href === links?.self?.href) || loading" (click)="onPaginate.next('last')">
|
|
170
|
+
</monkey-button>
|
|
171
|
+
</action>
|
|
172
|
+
</mecx-monkey-table-footer>
|
|
173
|
+
</mecx-monkey-table>
|
|
174
|
+
`, isInline: true, components: [{ type: i1.MonkeyCheckboxComponent, selector: "monkey-checkbox", inputs: ["label", "type", "helperMessage", "infoMessage", "errorMessage", "description", "value"], outputs: ["onChange"] }, { type: i2.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyTableComponent, decorators: [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{
|
|
178
|
+
selector: 'monkey-table',
|
|
179
|
+
template: `
|
|
180
|
+
<mecx-monkey-table>
|
|
181
|
+
<mecx-monkey-table-header>
|
|
182
|
+
<monkey-checkbox
|
|
183
|
+
[value]="onHandleSelectedAll()"
|
|
184
|
+
(click)="onHandleSelectAll($event)"
|
|
185
|
+
*ngIf="selectable && showSelectAll"
|
|
186
|
+
></monkey-checkbox>
|
|
187
|
+
<div class="select-all-disabled" *ngIf="selectable && !showSelectAll"></div>
|
|
188
|
+
<span *ngFor="let header of headers" [style.width]="_maxWidth + '%'">
|
|
189
|
+
{{ header }}
|
|
190
|
+
</span>
|
|
191
|
+
</mecx-monkey-table-header>
|
|
192
|
+
<mecx-monkey-table-body>
|
|
193
|
+
<mecx-monkey-table-body-row
|
|
194
|
+
[class.selected]="onHandleSelected(row)"
|
|
195
|
+
*ngFor="let row of _newDataSource"
|
|
196
|
+
(click)="onHandleClicked(row)"
|
|
197
|
+
>
|
|
198
|
+
<monkey-checkbox
|
|
199
|
+
[value]="onHandleSelected(row)"
|
|
200
|
+
(click)="onHandleSelect($event, row)"
|
|
201
|
+
*ngIf="selectable"
|
|
202
|
+
></monkey-checkbox>
|
|
203
|
+
<ng-container *ngTemplateOutlet="rowTemplate; context: { row: row.data }"></ng-container>
|
|
204
|
+
</mecx-monkey-table-body-row>
|
|
205
|
+
</mecx-monkey-table-body>
|
|
206
|
+
<mecx-monkey-table-body *ngIf="loading">
|
|
207
|
+
<mecx-monkey-table-body-row *ngFor="let loading of [1, 2, 3]">
|
|
208
|
+
<progress class="monkey-progress monkey-progress__grey-white"></progress>
|
|
209
|
+
</mecx-monkey-table-body-row>
|
|
210
|
+
</mecx-monkey-table-body>
|
|
211
|
+
<mecx-monkey-table-footer *ngIf="infoMessage || pagination">
|
|
212
|
+
<info>
|
|
213
|
+
{{ infoMessage }}
|
|
214
|
+
</info>
|
|
215
|
+
<action *ngIf="(pagination?.links) as links">
|
|
216
|
+
<monkey-button type="tertiary" color="theme" icon="double-arrow-left-32" size="sm"
|
|
217
|
+
[disabled]="(links?.first?.href === links?.self?.href) || loading" (click)="onPaginate.next('first')">
|
|
218
|
+
</monkey-button>
|
|
219
|
+
<monkey-button type="tertiary" color="theme" icon="arrow-left-32" size="sm"
|
|
220
|
+
[disabled]="!links?.prev || loading" (click)="onPaginate.next('prev')">
|
|
221
|
+
</monkey-button>
|
|
222
|
+
<monkey-button type="tertiary" color="theme" icon="arrow-right-32" size="sm"
|
|
223
|
+
[disabled]="!links?.next || loading" (click)="onPaginate.next('next')">
|
|
224
|
+
</monkey-button>
|
|
225
|
+
<monkey-button type="tertiary" color="theme" icon="double-arrow-right-32" size="sm"
|
|
226
|
+
[disabled]="(links?.last?.href === links?.self?.href) || loading" (click)="onPaginate.next('last')">
|
|
227
|
+
</monkey-button>
|
|
228
|
+
</action>
|
|
229
|
+
</mecx-monkey-table-footer>
|
|
230
|
+
</mecx-monkey-table>
|
|
231
|
+
`,
|
|
232
|
+
encapsulation: ViewEncapsulation.None,
|
|
233
|
+
}]
|
|
234
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { headers: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], dataSource: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], loading: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], rowTemplate: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], selectable: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], showSelectAll: [{
|
|
245
|
+
type: Input
|
|
246
|
+
}], callbackValidation: [{
|
|
247
|
+
type: Input
|
|
248
|
+
}], callbackValidationAll: [{
|
|
249
|
+
type: Input
|
|
250
|
+
}], selectedList: [{
|
|
251
|
+
type: Input
|
|
252
|
+
}], functionId: [{
|
|
253
|
+
type: Input
|
|
254
|
+
}], infoMessage: [{
|
|
255
|
+
type: Input
|
|
256
|
+
}], pagination: [{
|
|
257
|
+
type: Input
|
|
258
|
+
}], selection: [{
|
|
259
|
+
type: Output
|
|
260
|
+
}], selected: [{
|
|
261
|
+
type: Output
|
|
262
|
+
}], clicked: [{
|
|
263
|
+
type: Output
|
|
264
|
+
}], onPaginate: [{
|
|
265
|
+
type: Output
|
|
266
|
+
}] } });
|
|
267
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LXN0eWxlLWd1aWRlL3NyYy9saWIvY29tcG9uZW50cy90YWJsZS90YWJsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYX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YmICFzaG93U2VsZWN0QWxsXCI+PC9kaXY+XG4gICAgICAgIDxzcGFuICpuZ0Zvcj1cImxldCBoZWFkZXIgb2YgaGVhZGVyc1wiIFtzdHlsZS53aWR0aF09XCJfbWF4V2lkdGggKyAnJSdcIj5cbiAgICAgICAgICB7eyBoZWFkZXIgfX1cbiAgICAgICAgPC9zcGFuPlxuICAgICAgPC9tZWN4LW1vbmtleS10YWJsZS1oZWFkZXI+XG4gICAgICA8bWVjeC1tb25rZXktdGFibGUtYm9keT5cbiAgICAgICAgPG1lY3gtbW9ua2V5LXRhYmxlLWJvZHktcm93XG4gICAgICAgICAgW2NsYXNzLnNlbGVjdGVkXT1cIm9uSGFuZGxlU2VsZWN0ZWQocm93KVwiXG4gICAgICAgICAgKm5nRm9yPVwibGV0IHJvdyBvZiBfbmV3RGF0YVNvdXJjZVwiXG4gICAgICAgICAgKGNsaWNrKT1cIm9uSGFuZGxlQ2xpY2tlZChyb3cpXCJcbiAgICAgICAgPlxuICAgICAgICAgIDxtb25rZXktY2hlY2tib3hcbiAgICAgICAgICAgIFt2YWx1ZV09XCJvbkhhbmRsZVNlbGVjdGVkKHJvdylcIlxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uSGFuZGxlU2VsZWN0KCRldmVudCwgcm93KVwiXG4gICAgICAgICAgICAqbmdJZj1cInNlbGVjdGFibGVcIlxuICAgICAgICAgID48L21vbmtleS1jaGVja2JveD5cbiAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwicm93VGVtcGxhdGU7IGNvbnRleHQ6IHsgcm93OiByb3cuZGF0YSB9XCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgIDwvbWVjeC1tb25rZXktdGFibGUtYm9keS1yb3c+XG4gICAgICA8L21lY3gtbW9ua2V5LXRhYmxlLWJvZHk+XG4gICAgICA8bWVjeC1tb25rZXktdGFibGUtYm9keSAqbmdJZj1cImxvYWRpbmdcIj5cbiAgICAgICAgPG1lY3gtb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