monkey-style-guide 2.0.171 → 2.0.172
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 +1267 -1267
- package/assets/data/country-codes.json +1466 -1466
- package/assets/icons/add-plus.svg +5 -5
- 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-person.svg +9 -9
- 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-invoice.svg +8 -8
- 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/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.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/hands-clap.svg +10 -10
- package/assets/icons/help.svg +5 -5
- package/assets/icons/hexagon.svg +3 -3
- package/assets/icons/home.svg +4 -4
- 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/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/medal.svg +12 -12
- package/assets/icons/menu.svg +5 -5
- 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-sign.svg +4 -4
- 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.svg +4 -4
- package/assets/icons/people.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.svg +3 -3
- package/assets/icons/store.svg +8 -8
- 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 +184 -184
- 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.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 +23 -23
- 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 +282 -282
- 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/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 +294 -294
- 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-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.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bank-account.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-bank-agency.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-person.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-invoice.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-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.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-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-home.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-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-medal.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-menu.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-cedule.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-discount.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-hand.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-net.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-new.mjs +15 -15
- package/esm2020/lib/components/icon/icon-money-sign.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.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-people.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.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.component.mjs +15 -15
- package/esm2020/lib/components/icon/icon-store.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 +1614 -1614
- package/esm2020/lib/components/icon/icon.module.mjs +372 -372
- package/esm2020/lib/components/icon/index.mjs +109 -109
- 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 +20 -20
- 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 +236 -236
- 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 +4 -4
- 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 +9452 -9452
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +9441 -9441
- 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/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 +51 -51
- 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-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.d.ts +7 -7
- package/lib/components/icon/icon-bank-account.component.d.ts +7 -7
- package/lib/components/icon/icon-bank-agency.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-person.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-invoice.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-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.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-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-home.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-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-medal.component.d.ts +7 -7
- package/lib/components/icon/icon-menu.component.d.ts +7 -7
- package/lib/components/icon/icon-money-cedule.component.d.ts +7 -7
- package/lib/components/icon/icon-money-discount.d.ts +7 -7
- package/lib/components/icon/icon-money-hand.component.d.ts +7 -7
- package/lib/components/icon/icon-money-net.d.ts +7 -7
- package/lib/components/icon/icon-money-new.d.ts +7 -7
- package/lib/components/icon/icon-money-sign.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.component.d.ts +7 -7
- package/lib/components/icon/icon-people.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.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.component.d.ts +7 -7
- package/lib/components/icon/icon-store.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 +125 -125
- package/lib/components/icon/index.d.ts +108 -108
- 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 +19 -19
- 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 +58 -58
- package/lib/core/interfaces/monkey-style-settings.d.ts +59 -59
- package/lib/core/services/index.d.ts +3 -3
- 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.172.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.171.tgz +0 -0
|
@@ -1,121 +1,121 @@
|
|
|
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, ViewEncapsulation, Input, HostListener, } from '@angular/core';
|
|
7
|
-
import { MonkeyUtils } from '../../core/utils';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../icon/icon.component";
|
|
10
|
-
import * as i2 from "@angular/common";
|
|
11
|
-
export class MonkeyButtonDropdownComponent {
|
|
12
|
-
constructor(cdr) {
|
|
13
|
-
this.cdr = cdr;
|
|
14
|
-
this.type = 'filled';
|
|
15
|
-
this.listenClicks = true;
|
|
16
|
-
this._customClass = 'trigger';
|
|
17
|
-
this._opened = false;
|
|
18
|
-
this._id = `mecx-button-dropdown-${MonkeyUtils.getRandomString(10)}`;
|
|
19
|
-
this._disabled = false;
|
|
20
|
-
//not to do
|
|
21
|
-
}
|
|
22
|
-
clickout(event) {
|
|
23
|
-
this.close();
|
|
24
|
-
}
|
|
25
|
-
clickon(event) {
|
|
26
|
-
event.preventDefault();
|
|
27
|
-
event.stopPropagation();
|
|
28
|
-
if (this._opened && this.listenClicks) {
|
|
29
|
-
this.close();
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this._opened = true;
|
|
33
|
-
this.cdr.detectChanges();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
close() {
|
|
37
|
-
setTimeout(() => {
|
|
38
|
-
this._opened = false;
|
|
39
|
-
this.cdr.detectChanges();
|
|
40
|
-
}, 20);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
MonkeyButtonDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
MonkeyButtonDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonDropdownComponent, selector: "monkey-button-dropdown", inputs: { label: "label", type: "type", listenClicks: "listenClicks" }, host: { listeners: { "document:click": "clickout($event)", "click": "clickon($event)" } }, ngImport: i0, template: `
|
|
45
|
-
<mecx-button-dropdown
|
|
46
|
-
[ngClass]="{
|
|
47
|
-
trigger: type === 'filled',
|
|
48
|
-
open: _opened
|
|
49
|
-
}"
|
|
50
|
-
>
|
|
51
|
-
<mecx-button-dropdown__trigger>
|
|
52
|
-
<ng-container *ngTemplateOutlet="label"></ng-container>
|
|
53
|
-
<monkey-icon
|
|
54
|
-
icon="arrow-down-16"
|
|
55
|
-
[color]="'#4B4A53'"
|
|
56
|
-
*ngIf="!_opened && type === 'filled'"
|
|
57
|
-
></monkey-icon>
|
|
58
|
-
<monkey-icon
|
|
59
|
-
icon="arrow-up-16"
|
|
60
|
-
[color]="'#4B4A53'"
|
|
61
|
-
*ngIf="_opened && type === 'filled'"
|
|
62
|
-
></monkey-icon>
|
|
63
|
-
</mecx-button-dropdown__trigger>
|
|
64
|
-
</mecx-button-dropdown>
|
|
65
|
-
<mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
|
|
66
|
-
</mecx-button-dropdown-backdrop>
|
|
67
|
-
<mecx-button-dropdown [ngClass]="{ open: _opened }">
|
|
68
|
-
<mecx-button-dropdown-options>
|
|
69
|
-
<ng-content></ng-content>
|
|
70
|
-
</mecx-button-dropdown-options>
|
|
71
|
-
</mecx-button-dropdown>
|
|
72
|
-
`, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{
|
|
76
|
-
selector: 'monkey-button-dropdown',
|
|
77
|
-
template: `
|
|
78
|
-
<mecx-button-dropdown
|
|
79
|
-
[ngClass]="{
|
|
80
|
-
trigger: type === 'filled',
|
|
81
|
-
open: _opened
|
|
82
|
-
}"
|
|
83
|
-
>
|
|
84
|
-
<mecx-button-dropdown__trigger>
|
|
85
|
-
<ng-container *ngTemplateOutlet="label"></ng-container>
|
|
86
|
-
<monkey-icon
|
|
87
|
-
icon="arrow-down-16"
|
|
88
|
-
[color]="'#4B4A53'"
|
|
89
|
-
*ngIf="!_opened && type === 'filled'"
|
|
90
|
-
></monkey-icon>
|
|
91
|
-
<monkey-icon
|
|
92
|
-
icon="arrow-up-16"
|
|
93
|
-
[color]="'#4B4A53'"
|
|
94
|
-
*ngIf="_opened && type === 'filled'"
|
|
95
|
-
></monkey-icon>
|
|
96
|
-
</mecx-button-dropdown__trigger>
|
|
97
|
-
</mecx-button-dropdown>
|
|
98
|
-
<mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
|
|
99
|
-
</mecx-button-dropdown-backdrop>
|
|
100
|
-
<mecx-button-dropdown [ngClass]="{ open: _opened }">
|
|
101
|
-
<mecx-button-dropdown-options>
|
|
102
|
-
<ng-content></ng-content>
|
|
103
|
-
</mecx-button-dropdown-options>
|
|
104
|
-
</mecx-button-dropdown>
|
|
105
|
-
`,
|
|
106
|
-
encapsulation: ViewEncapsulation.None,
|
|
107
|
-
}]
|
|
108
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { label: [{
|
|
109
|
-
type: Input
|
|
110
|
-
}], type: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], listenClicks: [{
|
|
113
|
-
type: Input
|
|
114
|
-
}], clickout: [{
|
|
115
|
-
type: HostListener,
|
|
116
|
-
args: ['document:click', ['$event']]
|
|
117
|
-
}], clickon: [{
|
|
118
|
-
type: HostListener,
|
|
119
|
-
args: ['click', ['$event']]
|
|
120
|
-
}] } });
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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, ViewEncapsulation, Input, HostListener, } from '@angular/core';
|
|
7
|
+
import { MonkeyUtils } from '../../core/utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../icon/icon.component";
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
11
|
+
export class MonkeyButtonDropdownComponent {
|
|
12
|
+
constructor(cdr) {
|
|
13
|
+
this.cdr = cdr;
|
|
14
|
+
this.type = 'filled';
|
|
15
|
+
this.listenClicks = true;
|
|
16
|
+
this._customClass = 'trigger';
|
|
17
|
+
this._opened = false;
|
|
18
|
+
this._id = `mecx-button-dropdown-${MonkeyUtils.getRandomString(10)}`;
|
|
19
|
+
this._disabled = false;
|
|
20
|
+
//not to do
|
|
21
|
+
}
|
|
22
|
+
clickout(event) {
|
|
23
|
+
this.close();
|
|
24
|
+
}
|
|
25
|
+
clickon(event) {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
event.stopPropagation();
|
|
28
|
+
if (this._opened && this.listenClicks) {
|
|
29
|
+
this.close();
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this._opened = true;
|
|
33
|
+
this.cdr.detectChanges();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
close() {
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
this._opened = false;
|
|
39
|
+
this.cdr.detectChanges();
|
|
40
|
+
}, 20);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
MonkeyButtonDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
MonkeyButtonDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonDropdownComponent, selector: "monkey-button-dropdown", inputs: { label: "label", type: "type", listenClicks: "listenClicks" }, host: { listeners: { "document:click": "clickout($event)", "click": "clickon($event)" } }, ngImport: i0, template: `
|
|
45
|
+
<mecx-button-dropdown
|
|
46
|
+
[ngClass]="{
|
|
47
|
+
trigger: type === 'filled',
|
|
48
|
+
open: _opened
|
|
49
|
+
}"
|
|
50
|
+
>
|
|
51
|
+
<mecx-button-dropdown__trigger>
|
|
52
|
+
<ng-container *ngTemplateOutlet="label"></ng-container>
|
|
53
|
+
<monkey-icon
|
|
54
|
+
icon="arrow-down-16"
|
|
55
|
+
[color]="'#4B4A53'"
|
|
56
|
+
*ngIf="!_opened && type === 'filled'"
|
|
57
|
+
></monkey-icon>
|
|
58
|
+
<monkey-icon
|
|
59
|
+
icon="arrow-up-16"
|
|
60
|
+
[color]="'#4B4A53'"
|
|
61
|
+
*ngIf="_opened && type === 'filled'"
|
|
62
|
+
></monkey-icon>
|
|
63
|
+
</mecx-button-dropdown__trigger>
|
|
64
|
+
</mecx-button-dropdown>
|
|
65
|
+
<mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
|
|
66
|
+
</mecx-button-dropdown-backdrop>
|
|
67
|
+
<mecx-button-dropdown [ngClass]="{ open: _opened }">
|
|
68
|
+
<mecx-button-dropdown-options>
|
|
69
|
+
<ng-content></ng-content>
|
|
70
|
+
</mecx-button-dropdown-options>
|
|
71
|
+
</mecx-button-dropdown>
|
|
72
|
+
`, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: 'monkey-button-dropdown',
|
|
77
|
+
template: `
|
|
78
|
+
<mecx-button-dropdown
|
|
79
|
+
[ngClass]="{
|
|
80
|
+
trigger: type === 'filled',
|
|
81
|
+
open: _opened
|
|
82
|
+
}"
|
|
83
|
+
>
|
|
84
|
+
<mecx-button-dropdown__trigger>
|
|
85
|
+
<ng-container *ngTemplateOutlet="label"></ng-container>
|
|
86
|
+
<monkey-icon
|
|
87
|
+
icon="arrow-down-16"
|
|
88
|
+
[color]="'#4B4A53'"
|
|
89
|
+
*ngIf="!_opened && type === 'filled'"
|
|
90
|
+
></monkey-icon>
|
|
91
|
+
<monkey-icon
|
|
92
|
+
icon="arrow-up-16"
|
|
93
|
+
[color]="'#4B4A53'"
|
|
94
|
+
*ngIf="_opened && type === 'filled'"
|
|
95
|
+
></monkey-icon>
|
|
96
|
+
</mecx-button-dropdown__trigger>
|
|
97
|
+
</mecx-button-dropdown>
|
|
98
|
+
<mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
|
|
99
|
+
</mecx-button-dropdown-backdrop>
|
|
100
|
+
<mecx-button-dropdown [ngClass]="{ open: _opened }">
|
|
101
|
+
<mecx-button-dropdown-options>
|
|
102
|
+
<ng-content></ng-content>
|
|
103
|
+
</mecx-button-dropdown-options>
|
|
104
|
+
</mecx-button-dropdown>
|
|
105
|
+
`,
|
|
106
|
+
encapsulation: ViewEncapsulation.None,
|
|
107
|
+
}]
|
|
108
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { label: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], type: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], listenClicks: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], clickout: [{
|
|
115
|
+
type: HostListener,
|
|
116
|
+
args: ['document:click', ['$event']]
|
|
117
|
+
}], clickon: [{
|
|
118
|
+
type: HostListener,
|
|
119
|
+
args: ['click', ['$event']]
|
|
120
|
+
}] } });
|
|
121
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWRyb3Bkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb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NSVQgTGljZW5jZVxyXG4gKioqKioqKioqKioqKioqKioqKioqKioqKiovXHJcbmltcG9ydCB7XHJcbiAgQ29tcG9uZW50LFxyXG4gIFZpZXdFbmNhcHN1bGF0aW9uLFxyXG4gIElucHV0LFxyXG4gIEhvc3RMaXN0ZW5lcixcclxuICBDaGFuZ2VEZXRlY3RvclJlZixcclxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgTW9ua2V5VXRpbHMgfSBmcm9tICcuLi8uLi9jb3JlL3V0aWxzJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnbW9ua2V5LWJ1dHRvbi1kcm9wZG93bicsXHJcbiAgdGVtcGxhdGU6IGBcclxuICAgIDxtZWN4LWJ1dHRvbi1kcm9wZG93blxyXG4gICAgICBbbmdDbGFzc109XCJ7XHJcbiAgICAgICAgdHJpZ2dlcjogdHlwZSA9PT0gJ2ZpbGxlZCcsXHJcbiAgICAgICAgb3BlbjogX29wZW5lZFxyXG4gICAgICB9XCJcclxuICAgID5cclxuICAgICAgPG1lY3gtYnV0dG9uLWRyb3Bkb3duX190cmlnZ2VyPlxyXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJsYWJlbFwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICAgIDxtb25rZXktaWNvblxyXG4gICAgICAgICAgaWNvbj1cImFycm93LWRvd24tMTZcIlxyXG4gICAgICAgICAgW2NvbG9yXT1cIicjNEI0QTUzJ1wiXHJcbiAgICAgICAgICAqbmdJZj1cIiFfb3BlbmVkICYmIHR5cGUgPT09ICdmaWxsZWQnXCJcclxuICAgICAgICA+PC9tb25rZXktaWNvbj5cclxuICAgICAgICA8bW9ua2V5LWljb25cclxuICAgICAgICAgIGljb249XCJhcnJvdy11cC0xNlwiXHJcbiAgICAgICAgICBbY29sb3JdPVwiJyM0QjRBNTMnXCJcclxuICAgICAgICAgICpuZ0lmPVwiX29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XRpbHMuZ2V0UmFuZG9tU3RyaW5nKDEwKX1gO1xyXG4gIHB1YmxpYyBfZGlzYWJsZWQ6IGJvb2xlYW4gPSBmYWxzZTtcclxuXHJcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBjZHI6IENoYW5nZURldGVjdG9yUmVmKSB7XHJcbiAgICAvL25vdCB0byBkb1xyXG4gIH1cclxuXHJcbiAgQEhvc3RMaXN0ZW5lcignZG9jdW1lbnQ6Y2xpY2snLCBbJyRldmVudCddKVxyXG4gIGNsaWNrb3V0KGV2ZW50OiBhbnkpIHtcclxuICAgIHRoaXMuY2xvc2UoKTtcclxuICB9XHJcblxyXG4gIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJywgWyckZXZlbnQnXSlcclxuICBjbGlja29uKGV2ZW50OiBhbnkpIHtcclxuICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XHJcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcclxuICAgIGlmICh0aGlzLl9vcGVuZWQgJiYgdGhpcy5saXN0ZW5DbGlja3MpIHtcclxuICAgICAgdGhpcy5jbG9zZSgpO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgdGhpcy5fb3BlbmVkID0gdHJ1ZTtcclxuICAgICAgdGhpcy5jZHIuZGV0ZWN0Q2hhbmdlcygpO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgY2xvc2UoKSB7XHJcbiAgICBzZXRUaW1lb3V0KCgpID0+IHtcclxuICAgICAgdGhpcy5fb3BlbmVkID0gZmFsc2U7XHJcbiAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcclxuICAgIH0sIDIwKTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,154 +1,154 @@
|
|
|
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, ViewEncapsulation, Input, HostListener } from '@angular/core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../icon/icon.component";
|
|
9
|
-
import * as i2 from "@angular/common";
|
|
10
|
-
export class MonkeyButtonComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.iconPosition = 'left';
|
|
13
|
-
this.disabled = false;
|
|
14
|
-
this.size = 'md';
|
|
15
|
-
this._useContrast = false;
|
|
16
|
-
}
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
const { type } = this;
|
|
19
|
-
if (type === 'primary') {
|
|
20
|
-
this._useContrast = true;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
onClick(event) {
|
|
24
|
-
if (this.disabled) {
|
|
25
|
-
event.stopPropagation();
|
|
26
|
-
event.preventDefault();
|
|
27
|
-
event.stopImmediatePropagation();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
MonkeyButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
MonkeyButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonComponent, selector: "monkey-button", inputs: { label: "label", icon: "icon", iconPosition: "iconPosition", type: "type", color: "color", disabled: "disabled", size: "size" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: `
|
|
33
|
-
<button
|
|
34
|
-
[ngClass]="
|
|
35
|
-
'mecx-button-' +
|
|
36
|
-
type +
|
|
37
|
-
' mecx-button-' +
|
|
38
|
-
type +
|
|
39
|
-
'__' +
|
|
40
|
-
color +
|
|
41
|
-
(icon ? ' with-icon' : ' no-icon') +
|
|
42
|
-
' ' +
|
|
43
|
-
size
|
|
44
|
-
"
|
|
45
|
-
type="button"
|
|
46
|
-
[disabled]="disabled"
|
|
47
|
-
>
|
|
48
|
-
<monkey-icon
|
|
49
|
-
[icon]="icon"
|
|
50
|
-
[color]="
|
|
51
|
-
disabled
|
|
52
|
-
? '#999999'
|
|
53
|
-
: type === 'filter'
|
|
54
|
-
? '#4b4a53'
|
|
55
|
-
: type === 'nav-active'
|
|
56
|
-
? 'theme'
|
|
57
|
-
: 'theme-800'
|
|
58
|
-
"
|
|
59
|
-
[contrast]="_useContrast"
|
|
60
|
-
[disabled]="disabled"
|
|
61
|
-
*ngIf="iconPosition === 'left' && icon"
|
|
62
|
-
></monkey-icon>
|
|
63
|
-
{{ label }}
|
|
64
|
-
<ng-content></ng-content>
|
|
65
|
-
<monkey-icon
|
|
66
|
-
[icon]="icon"
|
|
67
|
-
[color]="
|
|
68
|
-
disabled
|
|
69
|
-
? '#999999'
|
|
70
|
-
: type === 'filter'
|
|
71
|
-
? '#4b4a53'
|
|
72
|
-
: type === 'nav-active'
|
|
73
|
-
? 'theme'
|
|
74
|
-
: 'theme-800'
|
|
75
|
-
"
|
|
76
|
-
[disabled]="disabled"
|
|
77
|
-
*ngIf="iconPosition === 'right' && icon"
|
|
78
|
-
></monkey-icon>
|
|
79
|
-
</button>
|
|
80
|
-
`, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonComponent, decorators: [{
|
|
82
|
-
type: Component,
|
|
83
|
-
args: [{
|
|
84
|
-
selector: 'monkey-button',
|
|
85
|
-
template: `
|
|
86
|
-
<button
|
|
87
|
-
[ngClass]="
|
|
88
|
-
'mecx-button-' +
|
|
89
|
-
type +
|
|
90
|
-
' mecx-button-' +
|
|
91
|
-
type +
|
|
92
|
-
'__' +
|
|
93
|
-
color +
|
|
94
|
-
(icon ? ' with-icon' : ' no-icon') +
|
|
95
|
-
' ' +
|
|
96
|
-
size
|
|
97
|
-
"
|
|
98
|
-
type="button"
|
|
99
|
-
[disabled]="disabled"
|
|
100
|
-
>
|
|
101
|
-
<monkey-icon
|
|
102
|
-
[icon]="icon"
|
|
103
|
-
[color]="
|
|
104
|
-
disabled
|
|
105
|
-
? '#999999'
|
|
106
|
-
: type === 'filter'
|
|
107
|
-
? '#4b4a53'
|
|
108
|
-
: type === 'nav-active'
|
|
109
|
-
? 'theme'
|
|
110
|
-
: 'theme-800'
|
|
111
|
-
"
|
|
112
|
-
[contrast]="_useContrast"
|
|
113
|
-
[disabled]="disabled"
|
|
114
|
-
*ngIf="iconPosition === 'left' && icon"
|
|
115
|
-
></monkey-icon>
|
|
116
|
-
{{ label }}
|
|
117
|
-
<ng-content></ng-content>
|
|
118
|
-
<monkey-icon
|
|
119
|
-
[icon]="icon"
|
|
120
|
-
[color]="
|
|
121
|
-
disabled
|
|
122
|
-
? '#999999'
|
|
123
|
-
: type === 'filter'
|
|
124
|
-
? '#4b4a53'
|
|
125
|
-
: type === 'nav-active'
|
|
126
|
-
? 'theme'
|
|
127
|
-
: 'theme-800'
|
|
128
|
-
"
|
|
129
|
-
[disabled]="disabled"
|
|
130
|
-
*ngIf="iconPosition === 'right' && icon"
|
|
131
|
-
></monkey-icon>
|
|
132
|
-
</button>
|
|
133
|
-
`,
|
|
134
|
-
encapsulation: ViewEncapsulation.None,
|
|
135
|
-
}]
|
|
136
|
-
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
137
|
-
type: Input
|
|
138
|
-
}], icon: [{
|
|
139
|
-
type: Input
|
|
140
|
-
}], iconPosition: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], type: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], color: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], disabled: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], size: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], onClick: [{
|
|
151
|
-
type: HostListener,
|
|
152
|
-
args: ['click', ['$event']]
|
|
153
|
-
}] } });
|
|
154
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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, ViewEncapsulation, Input, HostListener } from '@angular/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../icon/icon.component";
|
|
9
|
+
import * as i2 from "@angular/common";
|
|
10
|
+
export class MonkeyButtonComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.iconPosition = 'left';
|
|
13
|
+
this.disabled = false;
|
|
14
|
+
this.size = 'md';
|
|
15
|
+
this._useContrast = false;
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
const { type } = this;
|
|
19
|
+
if (type === 'primary') {
|
|
20
|
+
this._useContrast = true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
onClick(event) {
|
|
24
|
+
if (this.disabled) {
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
event.stopImmediatePropagation();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
MonkeyButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
MonkeyButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonComponent, selector: "monkey-button", inputs: { label: "label", icon: "icon", iconPosition: "iconPosition", type: "type", color: "color", disabled: "disabled", size: "size" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0, template: `
|
|
33
|
+
<button
|
|
34
|
+
[ngClass]="
|
|
35
|
+
'mecx-button-' +
|
|
36
|
+
type +
|
|
37
|
+
' mecx-button-' +
|
|
38
|
+
type +
|
|
39
|
+
'__' +
|
|
40
|
+
color +
|
|
41
|
+
(icon ? ' with-icon' : ' no-icon') +
|
|
42
|
+
' ' +
|
|
43
|
+
size
|
|
44
|
+
"
|
|
45
|
+
type="button"
|
|
46
|
+
[disabled]="disabled"
|
|
47
|
+
>
|
|
48
|
+
<monkey-icon
|
|
49
|
+
[icon]="icon"
|
|
50
|
+
[color]="
|
|
51
|
+
disabled
|
|
52
|
+
? '#999999'
|
|
53
|
+
: type === 'filter'
|
|
54
|
+
? '#4b4a53'
|
|
55
|
+
: type === 'nav-active'
|
|
56
|
+
? 'theme'
|
|
57
|
+
: 'theme-800'
|
|
58
|
+
"
|
|
59
|
+
[contrast]="_useContrast"
|
|
60
|
+
[disabled]="disabled"
|
|
61
|
+
*ngIf="iconPosition === 'left' && icon"
|
|
62
|
+
></monkey-icon>
|
|
63
|
+
{{ label }}
|
|
64
|
+
<ng-content></ng-content>
|
|
65
|
+
<monkey-icon
|
|
66
|
+
[icon]="icon"
|
|
67
|
+
[color]="
|
|
68
|
+
disabled
|
|
69
|
+
? '#999999'
|
|
70
|
+
: type === 'filter'
|
|
71
|
+
? '#4b4a53'
|
|
72
|
+
: type === 'nav-active'
|
|
73
|
+
? 'theme'
|
|
74
|
+
: 'theme-800'
|
|
75
|
+
"
|
|
76
|
+
[disabled]="disabled"
|
|
77
|
+
*ngIf="iconPosition === 'right' && icon"
|
|
78
|
+
></monkey-icon>
|
|
79
|
+
</button>
|
|
80
|
+
`, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonComponent, decorators: [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'monkey-button',
|
|
85
|
+
template: `
|
|
86
|
+
<button
|
|
87
|
+
[ngClass]="
|
|
88
|
+
'mecx-button-' +
|
|
89
|
+
type +
|
|
90
|
+
' mecx-button-' +
|
|
91
|
+
type +
|
|
92
|
+
'__' +
|
|
93
|
+
color +
|
|
94
|
+
(icon ? ' with-icon' : ' no-icon') +
|
|
95
|
+
' ' +
|
|
96
|
+
size
|
|
97
|
+
"
|
|
98
|
+
type="button"
|
|
99
|
+
[disabled]="disabled"
|
|
100
|
+
>
|
|
101
|
+
<monkey-icon
|
|
102
|
+
[icon]="icon"
|
|
103
|
+
[color]="
|
|
104
|
+
disabled
|
|
105
|
+
? '#999999'
|
|
106
|
+
: type === 'filter'
|
|
107
|
+
? '#4b4a53'
|
|
108
|
+
: type === 'nav-active'
|
|
109
|
+
? 'theme'
|
|
110
|
+
: 'theme-800'
|
|
111
|
+
"
|
|
112
|
+
[contrast]="_useContrast"
|
|
113
|
+
[disabled]="disabled"
|
|
114
|
+
*ngIf="iconPosition === 'left' && icon"
|
|
115
|
+
></monkey-icon>
|
|
116
|
+
{{ label }}
|
|
117
|
+
<ng-content></ng-content>
|
|
118
|
+
<monkey-icon
|
|
119
|
+
[icon]="icon"
|
|
120
|
+
[color]="
|
|
121
|
+
disabled
|
|
122
|
+
? '#999999'
|
|
123
|
+
: type === 'filter'
|
|
124
|
+
? '#4b4a53'
|
|
125
|
+
: type === 'nav-active'
|
|
126
|
+
? 'theme'
|
|
127
|
+
: 'theme-800'
|
|
128
|
+
"
|
|
129
|
+
[disabled]="disabled"
|
|
130
|
+
*ngIf="iconPosition === 'right' && icon"
|
|
131
|
+
></monkey-icon>
|
|
132
|
+
</button>
|
|
133
|
+
`,
|
|
134
|
+
encapsulation: ViewEncapsulation.None,
|
|
135
|
+
}]
|
|
136
|
+
}], ctorParameters: function () { return []; }, propDecorators: { label: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], icon: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], iconPosition: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], type: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], color: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], disabled: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], size: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], onClick: [{
|
|
151
|
+
type: HostListener,
|
|
152
|
+
args: ['click', ['$event']]
|
|
153
|
+
}] } });
|
|
154
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1zdHlsZS1ndWlkZS9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7NEJBSTRCO0FBQzVCLE9BQU8sRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsS0FBSyxFQUFVLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQXVEMUYsTUFBTSxPQUFPLHFCQUFxQjtJQVVoQztRQVBTLGlCQUFZLEdBQVcsTUFBTSxDQUFDO1FBRzlCLGFBQVEsR0FBWSxLQUFLLENBQUM7UUFDMUIsU0FBSSxHQUF1QixJQUFJLENBQUM7UUFFekMsaUJBQVksR0FBRyxLQUFLLENBQUM7SUFDTixDQUFDO0lBRWhCLFFBQVE7UUFDTixNQUFNLEVBQUUsSUFBSSxFQUFFLEdBQUc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29weXJpZ2h0IE1vbmtleSBFeGNoYW5nZS4gQWxsIFJpZ2h0cyBSZXNlcnZlZFxyXG4gKiBUaGlzIHN0eWxlIGd1aWRlIHdhcyBkZXZlbG9wZWQgYnkgTW9ua2V5IEV4Y2hhbmdlIFRlYW1cclxuICogTUlUIExpY2VuY2VcclxuICoqKioqKioqKioqKioqKioqKioqKioqKioqL1xyXG5pbXBvcnQgeyBDb21wb25lbnQsIFZpZXdFbmNhcHN1bGF0aW9uLCBJbnB1dCwgT25Jbml0LCBIb3N0TGlzdGVuZXIgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnbW9ua2V5LWJ1dHRvbicsXHJcbiAgdGVtcGxhdGU6IGBcclxuICAgIDxidXR0b25cclxuICAgICAgW25nQ2xhc3NdPVwiXHJcbiAgICAgICAgJ21lY3gtYnV0dG9uLScgK1xyXG4gICAgICAgIHR5cGUgK1xyXG4gICAgICAgICcgbWVjeC1idXR0b24tJyArXHJcbiAgICAgICAgdHlwZSArXHJcbiAgICAgICAgJ19fJyArXHJcbiAgICAgICAgY29sb3IgK1xyXG4gICAgICAgIChpY29uID8gJyB3aXRoLWljb24nIDogJyBuby1pY29uJykgK1xyXG4gICAgICAgICcgJyArXHJcbiAgICAgICAgc2l6ZVxyXG4gICAgICBcIlxyXG4gICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcclxuICAgID5cclxuICAgICAgPG1vbmtleS1pY29uXHJcbiAgICAgICAgW2ljb25dPVwiaWNvblwiXHJcbiAgICAgICAgW2NvbG9yXT1cIlxyXG4gICAgICAgICAgZGlzYWJsZWRcclxuICAgICAgICAgICAgPyAnIzk5OTk5OSdcclxuICAgICAgICAgICAgOiB0eXBlID09PSAnZmlsdGVyJ1xyXG4gICAgICAgICAgICA/ICcjNGI0YTUzJ1xyXG4gICAgICAgICAgICA6IHR5cGUgPT09ICduYXYtYWN0aXZlJ1xyXG4gICAgICAgICAgICA/ICd0aGVtZSdcclxuICAgICAgICAgICAgOiAndGhlbWUtODAwJ1xyXG4gICAgICAgIFwiXHJcbiAgICAgICAgW2NvbnRyYXN0XT1cIl91c2VDb250cmFzdFwiXHJcbiAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcclxuICAgICAgICAqbmdJZj1cImljb25Qb3NpdGlvbiA9PT0gJ2xlZnQnICYmIGljb25cIlxyXG4gICAgICA+PC9tb25rZXktaWNvbj5cclxuICAgICAge3sgbGFiZWwgfX1cclxuICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gICAgICA8bW9ua2V5LWljb25cclxuICAgICAgICBbaWNvbl09XCJpY29uXCJcclxuICAgICAgICBbY29sb3JdPVwiXHJcbiAgICAgICAgICBkaXNhYmxlZFxyXG4gICAgICAgICAgICA/ICcjOTk5OTk5J1xyXG4gICAgICAgICAgICA6IHR5cGUgPT09ICdmaWx0ZXInXHJcbiAgICAgICAgICAgID8gJyM0YjRhNTMnXHJcbiAgICAgICAgICAgIDogdHlwZSA9PT0gJ25hdi1hY3RpdmUnXHJcbiAgICAgICAgICAgID8gJ3RoZW1lJ1xyXG4gICAgICAgICAgICA6ICd0aGVtZS04MDAnXHJcbiAgICAgICAgXCJcclxuICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxyXG4gICAgICAgICpuZ0lmPVwiaWNvblBvc2l0aW9uID09PSAncmlnaHQnICYmIGljb25cIlxyXG4gICAgICA+PC9tb25rZXktaWNvbj5cclxuICAgIDwvYnV0dG9uPlxyXG4gIGAsXHJcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcclxufSlcclxuZXhwb3J0IGNsYXNzIE1vbmtleUJ1dHRvbkNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcbiAgQElucHV0KCkgbGFiZWw6IHN0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