monkey-style-guide 2.0.211 → 21.0.0
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 +13 -1285
- package/{public-api.d.ts → assets/scss/autocomplete/_index.scss} +1 -3
- package/assets/scss/autocomplete/_styles.scss +149 -0
- package/assets/scss/directives/_badge.scss +48 -0
- package/assets/scss/directives/_index.scss +8 -0
- package/assets/scss/directives/_popover.scss +102 -0
- package/assets/scss/directives/_styles.scss +99 -0
- package/assets/scss/input/_index.scss +6 -0
- package/assets/scss/input/_styles.scss +67 -0
- package/assets/scss/partials/_breakpoints.scss +134 -24
- package/assets/scss/partials/_grid-system.scss +5069 -0
- package/assets/scss/partials/_helper-classes.scss +373 -0
- package/assets/scss/partials/_index.scss +9 -8
- package/assets/scss/partials/_popover.scss +3 -0
- package/assets/scss/partials/_scrollbars.scss +29 -0
- package/assets/scss/partials/_skeleton-loading.scss +95 -0
- package/assets/scss/partials/_style-reset.scss +12 -6
- package/assets/scss/partials/_variables.scss +61 -163
- package/assets/scss/table/_index.scss +6 -0
- package/assets/scss/table/_styles.scss +11 -0
- package/assets/scss/theme.scss +14 -1
- package/assets/scss/typography/_index.scss +6 -0
- package/assets/scss/typography/_styles.scss +33 -0
- package/fesm2022/monkey-style-guide.mjs +9043 -0
- package/fesm2022/monkey-style-guide.mjs.map +1 -0
- package/monkey-style-guide-21.0.0.tgz +0 -0
- package/package.json +18 -23
- package/types/monkey-style-guide.d.ts +2045 -0
- package/assets/data/country-codes.json +0 -1466
- package/assets/icons/add-plus.svg +0 -5
- package/assets/icons/address-book.svg +0 -5
- package/assets/icons/arrow-down.svg +0 -3
- package/assets/icons/arrow-left.svg +0 -3
- package/assets/icons/arrow-line-right.svg +0 -5
- package/assets/icons/arrow-right.svg +0 -3
- package/assets/icons/arrow-up.svg +0 -3
- package/assets/icons/arrows.svg +0 -6
- package/assets/icons/auction.svg +0 -7
- package/assets/icons/average-tax.svg +0 -6
- package/assets/icons/bank-account.svg +0 -12
- package/assets/icons/bank-agency.svg +0 -8
- package/assets/icons/bank.svg +0 -3
- package/assets/icons/banknote-search.svg +0 -9
- package/assets/icons/bell.svg +0 -4
- package/assets/icons/block.svg +0 -4
- package/assets/icons/book-open-text.svg +0 -10
- package/assets/icons/book.svg +0 -4
- package/assets/icons/box.svg +0 -6
- package/assets/icons/build-approved.svg +0 -9
- package/assets/icons/build-person.svg +0 -10
- package/assets/icons/build-refused.svg +0 -9
- package/assets/icons/build-waiting.svg +0 -8
- package/assets/icons/calendar-box.svg +0 -10
- package/assets/icons/calendar.svg +0 -6
- package/assets/icons/camera.svg +0 -4
- package/assets/icons/card-machine.svg +0 -14
- package/assets/icons/card.svg +0 -5
- package/assets/icons/cash-banknote-coins.svg +0 -9
- package/assets/icons/cash-banknote-invoice.svg +0 -8
- package/assets/icons/certificate-medal.svg +0 -8
- package/assets/icons/chart-down-arrow.svg +0 -7
- package/assets/icons/chart-down.svg +0 -5
- package/assets/icons/chart-up-arrow.svg +0 -7
- package/assets/icons/chart-up.svg +0 -5
- package/assets/icons/chat.svg +0 -4
- package/assets/icons/check-circle-out.svg +0 -4
- package/assets/icons/check-circle.svg +0 -4
- package/assets/icons/check-grey.svg +0 -3
- package/assets/icons/check-white.svg +0 -4
- package/assets/icons/check.svg +0 -3
- package/assets/icons/clipboard.svg +0 -4
- package/assets/icons/clock-closed.svg +0 -6
- package/assets/icons/clock.svg +0 -4
- package/assets/icons/close-circle.svg +0 -5
- package/assets/icons/close.svg +0 -4
- package/assets/icons/cnpj.svg +0 -9
- package/assets/icons/codepen.svg +0 -7
- package/assets/icons/company-name.svg +0 -12
- package/assets/icons/contract-pen.svg +0 -7
- package/assets/icons/contract.svg +0 -14
- package/assets/icons/delete.svg +0 -5
- package/assets/icons/digital-certificate.svg +0 -6
- package/assets/icons/document.svg +0 -7
- package/assets/icons/dollar-sign-circle.svg +0 -7
- package/assets/icons/dollar-sign.svg +0 -5
- package/assets/icons/domain.svg +0 -9
- package/assets/icons/dots-menu.svg +0 -5
- package/assets/icons/double-arrow-left.svg +0 -4
- package/assets/icons/double-arrow-right.svg +0 -4
- package/assets/icons/download.svg +0 -5
- package/assets/icons/drag-drop.svg +0 -8
- package/assets/icons/edit-square.svg +0 -4
- package/assets/icons/edit.svg +0 -3
- package/assets/icons/email-send-fast.svg +0 -8
- package/assets/icons/email.svg +0 -4
- package/assets/icons/empty-doc.svg +0 -4
- package/assets/icons/error.svg +0 -5
- package/assets/icons/eye-closed.svg +0 -11
- package/assets/icons/eye-open.svg +0 -4
- package/assets/icons/filter-add.svg +0 -6
- package/assets/icons/filter.svg +0 -3
- package/assets/icons/grid.svg +0 -6
- package/assets/icons/hand-money-banknote.svg +0 -6
- package/assets/icons/hands-clap.svg +0 -10
- package/assets/icons/help.svg +0 -5
- package/assets/icons/hexagon.svg +0 -3
- package/assets/icons/high-rising-build.svg +0 -19
- package/assets/icons/home.svg +0 -4
- package/assets/icons/image-wave-square.svg +0 -5
- package/assets/icons/image.svg +0 -5
- package/assets/icons/info.svg +0 -7
- package/assets/icons/invoice.svg +0 -6
- package/assets/icons/invoices-anticipated.svg +0 -8
- package/assets/icons/invoices-approval.svg +0 -8
- package/assets/icons/invoices-refused.svg +0 -8
- package/assets/icons/lighting-circle.svg +0 -5
- package/assets/icons/list.svg +0 -8
- package/assets/icons/location-pin.svg +0 -4
- package/assets/icons/login.svg +0 -5
- package/assets/icons/logout.svg +0 -5
- package/assets/icons/mail-box-upload.svg +0 -6
- package/assets/icons/mail-letter-fast-circle.svg +0 -7
- package/assets/icons/mail-open-document.svg +0 -6
- package/assets/icons/medal.svg +0 -12
- package/assets/icons/menu.svg +0 -5
- package/assets/icons/money-banknote-calculator.svg +0 -13
- package/assets/icons/money-cedule.svg +0 -6
- package/assets/icons/money-discount.svg +0 -8
- package/assets/icons/money-hand.svg +0 -6
- package/assets/icons/money-net.svg +0 -8
- package/assets/icons/money-new.svg +0 -7
- package/assets/icons/money-percent.svg +0 -10
- package/assets/icons/money-refused.svg +0 -9
- package/assets/icons/money-sign.svg +0 -4
- package/assets/icons/money-waiting.svg +0 -8
- package/assets/icons/money.svg +0 -6
- package/assets/icons/more-circle.svg +0 -5
- package/assets/icons/more.svg +0 -4
- package/assets/icons/new-company.svg +0 -10
- package/assets/icons/offered.svg +0 -5
- package/assets/icons/office-work.svg +0 -10
- package/assets/icons/open-external.svg +0 -5
- package/assets/icons/password-edit-shield-protection.svg +0 -9
- package/assets/icons/password.svg +0 -4
- package/assets/icons/people.svg +0 -6
- package/assets/icons/percent-box.svg +0 -6
- package/assets/icons/percent.svg +0 -5
- package/assets/icons/person-document.svg +0 -10
- package/assets/icons/person-sad.svg +0 -6
- package/assets/icons/phone-call.svg +0 -4
- package/assets/icons/phone.svg +0 -3
- package/assets/icons/pin-navigation.svg +0 -5
- package/assets/icons/pork.svg +0 -5
- package/assets/icons/radio.svg +0 -4
- package/assets/icons/refresh.svg +0 -5
- package/assets/icons/registration.svg +0 -8
- package/assets/icons/repeat.svg +0 -4
- package/assets/icons/search.svg +0 -4
- package/assets/icons/second-warning.svg +0 -5
- package/assets/icons/settings.svg +0 -4
- package/assets/icons/shield-chekmark.svg +0 -4
- package/assets/icons/star-shining.svg +0 -13
- package/assets/icons/star.svg +0 -3
- package/assets/icons/store.svg +0 -8
- package/assets/icons/suppliers.svg +0 -11
- package/assets/icons/target-dart-arrow.svg +0 -7
- package/assets/icons/today.svg +0 -10
- package/assets/icons/trash.svg +0 -6
- package/assets/icons/trophy.svg +0 -8
- package/assets/icons/unfold-more.svg +0 -4
- package/assets/icons/upload.svg +0 -5
- package/assets/icons/user-group.svg +0 -8
- package/assets/icons/user.svg +0 -4
- package/assets/icons/waiting.svg +0 -17
- package/assets/icons/wallet.svg +0 -5
- package/assets/icons/warning.svg +0 -5
- package/assets/scss/partials/_forms.scss +0 -350
- package/assets/scss/partials/_loading.scss +0 -34
- package/assets/scss/partials/_radio-button.scss +0 -35
- package/assets/scss/partials/_typography.scss +0 -149
- package/assets/scss/partials/components/_badge.scss +0 -55
- package/assets/scss/partials/components/_buttons.scss +0 -831
- package/assets/scss/partials/components/_checkbox.scss +0 -69
- package/assets/scss/partials/components/_date-range-picker-v2.scss +0 -303
- package/assets/scss/partials/components/_date-range-picker.scss +0 -266
- package/assets/scss/partials/components/_expansion.scss +0 -96
- package/assets/scss/partials/components/_image-crop.scss +0 -305
- package/assets/scss/partials/components/_index.scss +0 -24
- package/assets/scss/partials/components/_input-phone.scss +0 -36
- package/assets/scss/partials/components/_input.scss +0 -65
- package/assets/scss/partials/components/_modal.scss +0 -285
- package/assets/scss/partials/components/_progressbar.scss +0 -112
- package/assets/scss/partials/components/_radiobutton.scss +0 -66
- package/assets/scss/partials/components/_select.scss +0 -356
- package/assets/scss/partials/components/_snackbar.scss +0 -204
- package/assets/scss/partials/components/_stepper.scss +0 -86
- package/assets/scss/partials/components/_tab.scss +0 -82
- package/assets/scss/partials/components/_table.scss +0 -148
- package/assets/scss/partials/components/_toggle.scss +0 -103
- package/assets/scss/partials/components/_wizard.scss +0 -112
- package/esm2020/lib/components/badge/badge.component.mjs +0 -43
- package/esm2020/lib/components/badge/badge.module.mjs +0 -19
- package/esm2020/lib/components/badge/index.mjs +0 -3
- package/esm2020/lib/components/button/button-avatar.component.mjs +0 -53
- package/esm2020/lib/components/button/button-dropdown.component.mjs +0 -121
- package/esm2020/lib/components/button/button.component.mjs +0 -154
- package/esm2020/lib/components/button/button.module.mjs +0 -23
- package/esm2020/lib/components/button/index.mjs +0 -5
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -165
- package/esm2020/lib/components/checkbox/checkbox.module.mjs +0 -20
- package/esm2020/lib/components/checkbox/index.mjs +0 -3
- package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +0 -677
- package/esm2020/lib/components/date-range-picker/date-range-picker.module.mjs +0 -22
- package/esm2020/lib/components/date-range-picker/index.mjs +0 -3
- package/esm2020/lib/components/date-range-picker-v2/date-range-picker.component.mjs +0 -688
- package/esm2020/lib/components/date-range-picker-v2/date-range-picker.module.mjs +0 -22
- package/esm2020/lib/components/date-range-picker-v2/index.mjs +0 -3
- package/esm2020/lib/components/expansion/expansion.component.mjs +0 -115
- package/esm2020/lib/components/expansion/expansion.module.mjs +0 -20
- package/esm2020/lib/components/expansion/index.mjs +0 -3
- package/esm2020/lib/components/file-upload/file-upload.component.mjs +0 -302
- package/esm2020/lib/components/file-upload/file-upload.module.mjs +0 -37
- package/esm2020/lib/components/file-upload/index.mjs +0 -3
- package/esm2020/lib/components/icon/icon-add-plus.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-address-book.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrow-down.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrow-left.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrow-line-right.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrow-right.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrow-up.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-arrows.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-auction.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-average-tax.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-bank-account.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-bank-agency.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-bank.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-banknote-search.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-bell.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-block.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-book-open-text.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-book.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-box.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-build-approved.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-build-person.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-build-refused.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-build-waiting.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-calendar-box.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-calendar.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-camera.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-card-machine.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-card.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-cash-banknote-coins.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-cash-banknote-invoice.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-certificate-medal.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-chart-down-arrow.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-chart-down.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-chart-up-arrow.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-chart-up.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-chat.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-check-circle-out.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-check-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-check-grey.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-check-white.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-check.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-clipboard.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-clock-closed.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-clock.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-close-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-close.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-cnpj.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-codepen.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-company-name.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-contract-pen.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-contract.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-delete.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-digital-certificate.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-document.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-dollar-sign-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-dollar-sign.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-domain.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-dots-menu.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-double-arrow-left.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-double-arrow-right.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-download.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-drag-drop.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-edit-square.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-edit.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-email-send-fast.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-email.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-empty-doc.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-error.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-eye-closed.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-eye-open.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-filter-add.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-filter.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-grid.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-hand-money-banknote.mjs +0 -15
- package/esm2020/lib/components/icon/icon-hands-clap.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-help.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-hexagon.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-high-rising-build.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-home.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-image-wave-square.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-image.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-info.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-invoice.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-invoices-anticipated.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-invoices-approval.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-invoices-refused.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-lighting-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-list.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-location-pin.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-login.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-logout.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-mail-box-upload.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-mail-letter-fast-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-mail-open-document.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-medal.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-menu.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-banknote-calculator.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-cedule.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-discount.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-hand.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-net.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-new.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-percent.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-refused.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-sign.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money-waiting.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-money.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-more-circle.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-more.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-new-company.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-offered.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-open-external.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-password-edit-shield-protection.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-password.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-people.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-percent-box.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-percent.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-person-document.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-person-sad.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-phone-call.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-phone.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-pin-navigation.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-pork.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-radio.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-refresh.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-registration.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-repeat.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-search.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-second-warning.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-settings.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-shield-chekmark.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-star-shining.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-star.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-store.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-suppliers.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-target-dart-arrow.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-today.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-trash.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-trophy.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-unfold-more.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-upload.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-user-group.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-user.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-waiting.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-wallet.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon-warning.component.mjs +0 -15
- package/esm2020/lib/components/icon/icon.component.mjs +0 -1991
- package/esm2020/lib/components/icon/icon.module.mjs +0 -322
- package/esm2020/lib/components/icon/index.mjs +0 -141
- package/esm2020/lib/components/image-crop/image-crop.component.mjs +0 -516
- package/esm2020/lib/components/image-crop/image-crop.module.mjs +0 -41
- package/esm2020/lib/components/image-crop/index.mjs +0 -3
- package/esm2020/lib/components/index.mjs +0 -21
- package/esm2020/lib/components/input/index.mjs +0 -4
- package/esm2020/lib/components/input/input-filter.component.mjs +0 -286
- package/esm2020/lib/components/input/input.component.mjs +0 -419
- package/esm2020/lib/components/input/input.module.mjs +0 -38
- package/esm2020/lib/components/input-phone/index.mjs +0 -3
- package/esm2020/lib/components/input-phone/input-phone.component.mjs +0 -309
- package/esm2020/lib/components/input-phone/input-phone.module.mjs +0 -45
- package/esm2020/lib/components/modal/index.mjs +0 -3
- package/esm2020/lib/components/modal/modal.component.mjs +0 -239
- package/esm2020/lib/components/modal/modal.module.mjs +0 -21
- package/esm2020/lib/components/option/index.mjs +0 -3
- package/esm2020/lib/components/option/option.component.mjs +0 -134
- package/esm2020/lib/components/option/option.module.mjs +0 -29
- package/esm2020/lib/components/radiobutton/index.mjs +0 -3
- package/esm2020/lib/components/radiobutton/radiobutton.component.mjs +0 -165
- package/esm2020/lib/components/radiobutton/radiobutton.module.mjs +0 -36
- package/esm2020/lib/components/select/index.mjs +0 -6
- package/esm2020/lib/components/select/select-filter.component.mjs +0 -197
- package/esm2020/lib/components/select/select-multiple.component.mjs +0 -304
- package/esm2020/lib/components/select/select-search.component.mjs +0 -306
- package/esm2020/lib/components/select/select.component.mjs +0 -245
- package/esm2020/lib/components/select/select.module.mjs +0 -61
- package/esm2020/lib/components/stepper/index.mjs +0 -3
- package/esm2020/lib/components/stepper/stepper.component.mjs +0 -57
- package/esm2020/lib/components/stepper/stepper.module.mjs +0 -20
- package/esm2020/lib/components/tab/index.mjs +0 -3
- package/esm2020/lib/components/tab/tab.component.mjs +0 -100
- package/esm2020/lib/components/tab/tab.module.mjs +0 -21
- package/esm2020/lib/components/table/index.mjs +0 -4
- package/esm2020/lib/components/table/table-column.component.mjs +0 -34
- package/esm2020/lib/components/table/table.component.mjs +0 -270
- package/esm2020/lib/components/table/table.module.mjs +0 -23
- package/esm2020/lib/components/toggle/index.mjs +0 -3
- package/esm2020/lib/components/toggle/toggle.component.mjs +0 -56
- package/esm2020/lib/components/toggle/toggle.module.mjs +0 -19
- package/esm2020/lib/components/wizard/index.mjs +0 -3
- package/esm2020/lib/components/wizard/wizard.component.mjs +0 -61
- package/esm2020/lib/components/wizard/wizard.module.mjs +0 -33
- package/esm2020/lib/core/index.mjs +0 -4
- package/esm2020/lib/core/interfaces/index.mjs +0 -3
- package/esm2020/lib/core/interfaces/monkey-modal-settings.mjs +0 -2
- package/esm2020/lib/core/interfaces/monkey-style-settings.mjs +0 -2
- package/esm2020/lib/core/services/index.mjs +0 -5
- package/esm2020/lib/core/services/modal/index.mjs +0 -3
- package/esm2020/lib/core/services/modal/monkey-style-guide-modal-fixed.service.mjs +0 -52
- package/esm2020/lib/core/services/modal/monkey-style-guide-modal.service.mjs +0 -55
- package/esm2020/lib/core/services/monkey-style-guide.service.mjs +0 -17
- package/esm2020/lib/core/services/settings/index.mjs +0 -2
- package/esm2020/lib/core/services/settings/monkey-style-guide-settings.service.mjs +0 -41
- package/esm2020/lib/core/services/settings/monkey-style-guide-theme-settings.service.mjs +0 -80
- package/esm2020/lib/core/services/snackbar/index.mjs +0 -2
- package/esm2020/lib/core/services/snackbar/mokey-style-guide-snackbar.service.mjs +0 -226
- package/esm2020/lib/core/utils/index.mjs +0 -2
- package/esm2020/lib/core/utils/utils.mjs +0 -240
- package/esm2020/lib/monkey-style-guide.module.mjs +0 -31
- package/esm2020/monkey-style-guide.mjs +0 -5
- package/esm2020/public-api.mjs +0 -9
- package/fesm2015/monkey-style-guide.mjs +0 -11078
- package/fesm2015/monkey-style-guide.mjs.map +0 -1
- package/fesm2020/monkey-style-guide.mjs +0 -11062
- package/fesm2020/monkey-style-guide.mjs.map +0 -1
- package/lib/components/badge/badge.component.d.ts +0 -8
- package/lib/components/badge/badge.module.d.ts +0 -8
- package/lib/components/badge/index.d.ts +0 -2
- package/lib/components/button/button-avatar.component.d.ts +0 -19
- package/lib/components/button/button-dropdown.component.d.ts +0 -23
- package/lib/components/button/button.component.d.ts +0 -22
- package/lib/components/button/button.module.d.ts +0 -12
- package/lib/components/button/index.d.ts +0 -4
- package/lib/components/checkbox/checkbox.component.d.ts +0 -32
- package/lib/components/checkbox/checkbox.module.d.ts +0 -9
- package/lib/components/checkbox/index.d.ts +0 -2
- package/lib/components/date-range-picker/date-range-picker.component.d.ts +0 -70
- package/lib/components/date-range-picker/date-range-picker.module.d.ts +0 -11
- package/lib/components/date-range-picker/index.d.ts +0 -2
- package/lib/components/date-range-picker-v2/date-range-picker.component.d.ts +0 -74
- package/lib/components/date-range-picker-v2/date-range-picker.module.d.ts +0 -11
- package/lib/components/date-range-picker-v2/index.d.ts +0 -2
- package/lib/components/expansion/expansion.component.d.ts +0 -20
- package/lib/components/expansion/expansion.module.d.ts +0 -9
- package/lib/components/expansion/index.d.ts +0 -2
- package/lib/components/file-upload/file-upload.component.d.ts +0 -53
- package/lib/components/file-upload/file-upload.module.d.ts +0 -11
- package/lib/components/file-upload/index.d.ts +0 -2
- package/lib/components/icon/icon-add-plus.component.d.ts +0 -7
- package/lib/components/icon/icon-address-book.component.d.ts +0 -7
- package/lib/components/icon/icon-arrow-down.component.d.ts +0 -7
- package/lib/components/icon/icon-arrow-left.component.d.ts +0 -7
- package/lib/components/icon/icon-arrow-line-right.component.d.ts +0 -7
- package/lib/components/icon/icon-arrow-right.component.d.ts +0 -7
- package/lib/components/icon/icon-arrow-up.component.d.ts +0 -7
- package/lib/components/icon/icon-arrows.component.d.ts +0 -7
- package/lib/components/icon/icon-auction.component.d.ts +0 -7
- package/lib/components/icon/icon-average-tax.component.d.ts +0 -7
- package/lib/components/icon/icon-bank-account.component.d.ts +0 -7
- package/lib/components/icon/icon-bank-agency.component.d.ts +0 -7
- package/lib/components/icon/icon-bank.component.d.ts +0 -7
- package/lib/components/icon/icon-banknote-search.component.d.ts +0 -7
- package/lib/components/icon/icon-bell.component.d.ts +0 -7
- package/lib/components/icon/icon-block.component.d.ts +0 -7
- package/lib/components/icon/icon-book-open-text.component.d.ts +0 -7
- package/lib/components/icon/icon-book.component.d.ts +0 -7
- package/lib/components/icon/icon-box.component.d.ts +0 -7
- package/lib/components/icon/icon-build-approved.component.d.ts +0 -7
- package/lib/components/icon/icon-build-person.component.d.ts +0 -7
- package/lib/components/icon/icon-build-refused.component.d.ts +0 -7
- package/lib/components/icon/icon-build-waiting.component.d.ts +0 -7
- package/lib/components/icon/icon-calendar-box.component.d.ts +0 -7
- package/lib/components/icon/icon-calendar.component.d.ts +0 -7
- package/lib/components/icon/icon-camera.component.d.ts +0 -7
- package/lib/components/icon/icon-card-machine.component.d.ts +0 -7
- package/lib/components/icon/icon-card.component.d.ts +0 -7
- package/lib/components/icon/icon-cash-banknote-coins.component.d.ts +0 -7
- package/lib/components/icon/icon-cash-banknote-invoice.component.d.ts +0 -7
- package/lib/components/icon/icon-certificate-medal.component.d.ts +0 -7
- package/lib/components/icon/icon-chart-down-arrow.component.d.ts +0 -7
- package/lib/components/icon/icon-chart-down.component.d.ts +0 -7
- package/lib/components/icon/icon-chart-up-arrow.component.d.ts +0 -7
- package/lib/components/icon/icon-chart-up.component.d.ts +0 -7
- package/lib/components/icon/icon-chat.component.d.ts +0 -7
- package/lib/components/icon/icon-check-circle-out.component.d.ts +0 -7
- package/lib/components/icon/icon-check-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-check-grey.component.d.ts +0 -7
- package/lib/components/icon/icon-check-white.component.d.ts +0 -7
- package/lib/components/icon/icon-check.component.d.ts +0 -7
- package/lib/components/icon/icon-clipboard.component.d.ts +0 -7
- package/lib/components/icon/icon-clock-closed.component.d.ts +0 -7
- package/lib/components/icon/icon-clock.component.d.ts +0 -7
- package/lib/components/icon/icon-close-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-close.component.d.ts +0 -7
- package/lib/components/icon/icon-cnpj.component.d.ts +0 -7
- package/lib/components/icon/icon-codepen.component.d.ts +0 -7
- package/lib/components/icon/icon-company-name.component.d.ts +0 -7
- package/lib/components/icon/icon-contract-pen.component.d.ts +0 -7
- package/lib/components/icon/icon-contract.component.d.ts +0 -7
- package/lib/components/icon/icon-delete.component.d.ts +0 -7
- package/lib/components/icon/icon-digital-certificate.component.d.ts +0 -7
- package/lib/components/icon/icon-document.component.d.ts +0 -7
- package/lib/components/icon/icon-dollar-sign-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-dollar-sign.component.d.ts +0 -7
- package/lib/components/icon/icon-domain.component.d.ts +0 -7
- package/lib/components/icon/icon-dots-menu.component.d.ts +0 -7
- package/lib/components/icon/icon-double-arrow-left.component.d.ts +0 -7
- package/lib/components/icon/icon-double-arrow-right.component.d.ts +0 -7
- package/lib/components/icon/icon-download.component.d.ts +0 -7
- package/lib/components/icon/icon-drag-drop.component.d.ts +0 -7
- package/lib/components/icon/icon-edit-square.component.d.ts +0 -7
- package/lib/components/icon/icon-edit.component.d.ts +0 -7
- package/lib/components/icon/icon-email-send-fast.component.d.ts +0 -7
- package/lib/components/icon/icon-email.component.d.ts +0 -7
- package/lib/components/icon/icon-empty-doc.component.d.ts +0 -7
- package/lib/components/icon/icon-error.component.d.ts +0 -7
- package/lib/components/icon/icon-eye-closed.component.d.ts +0 -7
- package/lib/components/icon/icon-eye-open.component.d.ts +0 -7
- package/lib/components/icon/icon-filter-add.component.d.ts +0 -7
- package/lib/components/icon/icon-filter.component.d.ts +0 -7
- package/lib/components/icon/icon-grid.component.d.ts +0 -7
- package/lib/components/icon/icon-hand-money-banknote.d.ts +0 -7
- package/lib/components/icon/icon-hands-clap.component.d.ts +0 -7
- package/lib/components/icon/icon-help.component.d.ts +0 -7
- package/lib/components/icon/icon-hexagon.component.d.ts +0 -7
- package/lib/components/icon/icon-high-rising-build.component.d.ts +0 -7
- package/lib/components/icon/icon-home.component.d.ts +0 -7
- package/lib/components/icon/icon-image-wave-square.component.d.ts +0 -7
- package/lib/components/icon/icon-image.component.d.ts +0 -7
- package/lib/components/icon/icon-info.component.d.ts +0 -7
- package/lib/components/icon/icon-invoice.component.d.ts +0 -7
- package/lib/components/icon/icon-invoices-anticipated.component.d.ts +0 -7
- package/lib/components/icon/icon-invoices-approval.component.d.ts +0 -7
- package/lib/components/icon/icon-invoices-refused.component.d.ts +0 -7
- package/lib/components/icon/icon-lighting-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-list.component.d.ts +0 -7
- package/lib/components/icon/icon-location-pin.component.d.ts +0 -7
- package/lib/components/icon/icon-login.component.d.ts +0 -7
- package/lib/components/icon/icon-logout.component.d.ts +0 -7
- package/lib/components/icon/icon-mail-box-upload.component.d.ts +0 -7
- package/lib/components/icon/icon-mail-letter-fast-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-mail-open-document.component.d.ts +0 -7
- package/lib/components/icon/icon-medal.component.d.ts +0 -7
- package/lib/components/icon/icon-menu.component.d.ts +0 -7
- package/lib/components/icon/icon-money-banknote-calculator.component.d.ts +0 -7
- package/lib/components/icon/icon-money-cedule.component.d.ts +0 -7
- package/lib/components/icon/icon-money-discount.component.d.ts +0 -7
- package/lib/components/icon/icon-money-hand.component.d.ts +0 -7
- package/lib/components/icon/icon-money-net.component.d.ts +0 -7
- package/lib/components/icon/icon-money-new.component.d.ts +0 -7
- package/lib/components/icon/icon-money-percent.component.d.ts +0 -7
- package/lib/components/icon/icon-money-refused.component.d.ts +0 -7
- package/lib/components/icon/icon-money-sign.component.d.ts +0 -7
- package/lib/components/icon/icon-money-waiting.component.d.ts +0 -7
- package/lib/components/icon/icon-money.component.d.ts +0 -7
- package/lib/components/icon/icon-more-circle.component.d.ts +0 -7
- package/lib/components/icon/icon-more.component.d.ts +0 -7
- package/lib/components/icon/icon-new-company.component.d.ts +0 -7
- package/lib/components/icon/icon-offered.component.d.ts +0 -7
- package/lib/components/icon/icon-open-external.component.d.ts +0 -7
- package/lib/components/icon/icon-password-edit-shield-protection.component.d.ts +0 -7
- package/lib/components/icon/icon-password.component.d.ts +0 -7
- package/lib/components/icon/icon-people.component.d.ts +0 -7
- package/lib/components/icon/icon-percent-box.component.d.ts +0 -7
- package/lib/components/icon/icon-percent.component.d.ts +0 -7
- package/lib/components/icon/icon-person-document.component.d.ts +0 -7
- package/lib/components/icon/icon-person-sad.component.d.ts +0 -7
- package/lib/components/icon/icon-phone-call.component.d.ts +0 -7
- package/lib/components/icon/icon-phone.component.d.ts +0 -7
- package/lib/components/icon/icon-pin-navigation.component.d.ts +0 -7
- package/lib/components/icon/icon-pork.component.d.ts +0 -7
- package/lib/components/icon/icon-radio.component.d.ts +0 -7
- package/lib/components/icon/icon-refresh.component.d.ts +0 -7
- package/lib/components/icon/icon-registration.component.d.ts +0 -7
- package/lib/components/icon/icon-repeat.component.d.ts +0 -7
- package/lib/components/icon/icon-search.component.d.ts +0 -7
- package/lib/components/icon/icon-second-warning.component.d.ts +0 -7
- package/lib/components/icon/icon-settings.component.d.ts +0 -7
- package/lib/components/icon/icon-shield-chekmark.component.d.ts +0 -7
- package/lib/components/icon/icon-star-shining.component.d.ts +0 -7
- package/lib/components/icon/icon-star.component.d.ts +0 -7
- package/lib/components/icon/icon-store.component.d.ts +0 -7
- package/lib/components/icon/icon-suppliers.component.d.ts +0 -7
- package/lib/components/icon/icon-target-dart-arrow.component.d.ts +0 -7
- package/lib/components/icon/icon-today.component.d.ts +0 -7
- package/lib/components/icon/icon-trash.component.d.ts +0 -7
- package/lib/components/icon/icon-trophy.component.d.ts +0 -7
- package/lib/components/icon/icon-unfold-more.component.d.ts +0 -7
- package/lib/components/icon/icon-upload.component.d.ts +0 -7
- package/lib/components/icon/icon-user-group.component.d.ts +0 -7
- package/lib/components/icon/icon-user.component.d.ts +0 -7
- package/lib/components/icon/icon-waiting.component.d.ts +0 -7
- package/lib/components/icon/icon-wallet.component.d.ts +0 -7
- package/lib/components/icon/icon-warning.component.d.ts +0 -7
- package/lib/components/icon/icon.component.d.ts +0 -27
- package/lib/components/icon/icon.module.d.ts +0 -154
- package/lib/components/icon/index.d.ts +0 -140
- package/lib/components/image-crop/image-crop.component.d.ts +0 -77
- package/lib/components/image-crop/image-crop.module.d.ts +0 -12
- package/lib/components/image-crop/index.d.ts +0 -2
- package/lib/components/index.d.ts +0 -20
- package/lib/components/input/index.d.ts +0 -3
- package/lib/components/input/input-filter.component.d.ts +0 -55
- package/lib/components/input/input.component.d.ts +0 -67
- package/lib/components/input/input.module.d.ts +0 -12
- package/lib/components/input-phone/index.d.ts +0 -2
- package/lib/components/input-phone/input-phone.component.d.ts +0 -62
- package/lib/components/input-phone/input-phone.module.d.ts +0 -13
- package/lib/components/modal/index.d.ts +0 -2
- package/lib/components/modal/modal.component.d.ts +0 -24
- package/lib/components/modal/modal.module.d.ts +0 -10
- package/lib/components/option/index.d.ts +0 -2
- package/lib/components/option/option.component.d.ts +0 -22
- package/lib/components/option/option.module.d.ts +0 -8
- package/lib/components/radiobutton/index.d.ts +0 -2
- package/lib/components/radiobutton/radiobutton.component.d.ts +0 -39
- package/lib/components/radiobutton/radiobutton.module.d.ts +0 -9
- package/lib/components/select/index.d.ts +0 -5
- package/lib/components/select/select-filter.component.d.ts +0 -41
- package/lib/components/select/select-multiple.component.d.ts +0 -48
- package/lib/components/select/select-search.component.d.ts +0 -56
- package/lib/components/select/select.component.d.ts +0 -48
- package/lib/components/select/select.module.d.ts +0 -15
- package/lib/components/stepper/index.d.ts +0 -2
- package/lib/components/stepper/stepper.component.d.ts +0 -18
- package/lib/components/stepper/stepper.module.d.ts +0 -9
- package/lib/components/tab/index.d.ts +0 -2
- package/lib/components/tab/tab.component.d.ts +0 -24
- package/lib/components/tab/tab.module.d.ts +0 -10
- package/lib/components/table/index.d.ts +0 -3
- package/lib/components/table/table-column.component.d.ts +0 -5
- package/lib/components/table/table.component.d.ts +0 -59
- package/lib/components/table/table.module.d.ts +0 -12
- package/lib/components/toggle/index.d.ts +0 -2
- package/lib/components/toggle/toggle.component.d.ts +0 -18
- package/lib/components/toggle/toggle.module.d.ts +0 -8
- package/lib/components/wizard/index.d.ts +0 -2
- package/lib/components/wizard/wizard.component.d.ts +0 -18
- package/lib/components/wizard/wizard.module.d.ts +0 -9
- package/lib/core/index.d.ts +0 -3
- package/lib/core/interfaces/index.d.ts +0 -2
- package/lib/core/interfaces/monkey-modal-settings.d.ts +0 -61
- package/lib/core/interfaces/monkey-style-settings.d.ts +0 -59
- package/lib/core/services/index.d.ts +0 -4
- package/lib/core/services/modal/index.d.ts +0 -2
- package/lib/core/services/modal/monkey-style-guide-modal-fixed.service.d.ts +0 -16
- package/lib/core/services/modal/monkey-style-guide-modal.service.d.ts +0 -18
- package/lib/core/services/monkey-style-guide.service.d.ts +0 -10
- package/lib/core/services/settings/index.d.ts +0 -1
- package/lib/core/services/settings/monkey-style-guide-settings.service.d.ts +0 -15
- package/lib/core/services/settings/monkey-style-guide-theme-settings.service.d.ts +0 -12
- package/lib/core/services/snackbar/index.d.ts +0 -1
- package/lib/core/services/snackbar/mokey-style-guide-snackbar.service.d.ts +0 -58
- package/lib/core/utils/index.d.ts +0 -1
- package/lib/core/utils/utils.d.ts +0 -29
- package/lib/monkey-style-guide.module.d.ts +0 -8
- package/monkey-style-guide-2.0.211.tgz +0 -0
- package/monkey-style-guide.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,1296 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
[![MIT License][license-shield]][license-url]
|
|
3
|
-
[![LinkedIn][linkedin-shield]][linkedin-url]
|
|
1
|
+
# MonkeyStyleGuideV2
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="https:monkey.exchange">
|
|
8
|
-
<img src="https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/logo.png" alt="Monkey Logo" width="80" height="80">
|
|
9
|
-
</a>
|
|
10
|
-
<h3 align="center">Monkey Style Guide</h3>
|
|
11
|
-
<p align="center">
|
|
12
|
-
An style guide template to boost your projects.
|
|
13
|
-
<br />
|
|
14
|
-
<br />
|
|
15
|
-
<a href="https://www.monkey.exchange/who-we-are.html">Who We Are?</a>
|
|
16
|
-
</p>
|
|
17
|
-
</p>
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
|
|
18
4
|
|
|
19
|
-
##
|
|
5
|
+
## Code scaffolding
|
|
20
6
|
|
|
21
|
-
|
|
7
|
+
Run `ng generate component component-name --project monkey-style-guide` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project monkey-style-guide`.
|
|
8
|
+
> Note: Don't forget to add `--project monkey-style-guide` or else it will be added to the default project in your `angular.json` file.
|
|
22
9
|
|
|
23
|
-
|
|
10
|
+
## Build
|
|
24
11
|
|
|
25
|
-
|
|
12
|
+
Run `ng build monkey-style-guide` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
26
13
|
|
|
27
|
-
|
|
28
|
-
First developed on Angular 10, this color guide contains the following components:
|
|
14
|
+
## Publishing
|
|
29
15
|
|
|
30
|
-
|
|
16
|
+
After building your library with `ng build monkey-style-guide`, go to the dist folder `cd dist/monkey-style-guide` and run `npm publish`.
|
|
31
17
|
|
|
32
|
-
|
|
18
|
+
## Running unit tests
|
|
33
19
|
|
|
34
|
-
|
|
20
|
+
Run `ng test monkey-style-guide` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
35
21
|
|
|
36
|
-
|
|
22
|
+
## Further help
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
- **pulseOn** (boolean)(default: false) is used to define if badge has to pulse like a bell.
|
|
40
|
-
|
|
41
|
-
Example:
|
|
42
|
-
|
|
43
|
-
`example.module.ts`
|
|
44
|
-
|
|
45
|
-
```Typescript
|
|
46
|
-
import { MonkeyBadgeModule } from 'monkey-style-guide';
|
|
47
|
-
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
@NgModule({
|
|
51
|
-
imports: [MonkeyBadgeModule]
|
|
52
|
-
})
|
|
53
|
-
...
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
`example.component.html`
|
|
57
|
-
|
|
58
|
-
```HTML
|
|
59
|
-
<monkey-badge count="3" [pulseOn]="true"></monkey-badge>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
### **Button**
|
|
65
|
-
|
|
66
|
-
![Button Demo Screen Shot][buttons-screenshot]
|
|
67
|
-
|
|
68
|
-
Parameters:
|
|
69
|
-
|
|
70
|
-
- **color** (string) can be _theme_, _error_, _warning_ or _success_
|
|
71
|
-
- **disabled** (boolean)(default: false) to disable any action
|
|
72
|
-
- **icon** (optional)(string) define the icon for button
|
|
73
|
-
- **iconPoition** (string)(default: 'left') define the icon position. Can be _left_ or _right_
|
|
74
|
-
- **label** (string) define the label that will be displayed inside the button
|
|
75
|
-
- **type** (string) can be _primary_, _secondary_, _tertiary_
|
|
76
|
-
|
|
77
|
-
Example:
|
|
78
|
-
|
|
79
|
-
`example.module.ts`
|
|
80
|
-
|
|
81
|
-
```Typescript
|
|
82
|
-
import { MonkeyButtonModule } from 'monkey-style-guide';
|
|
83
|
-
|
|
84
|
-
...
|
|
85
|
-
|
|
86
|
-
@NgModule({
|
|
87
|
-
imports: [MonkeyButtonModule]
|
|
88
|
-
})
|
|
89
|
-
...
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
`example.component.html`
|
|
93
|
-
|
|
94
|
-
```HTML
|
|
95
|
-
<monkey-button color="theme" label="Primary" type="primary"></monkey-button>
|
|
96
|
-
<monkey-button color="error" label="Secondary" type="secondary"></monkey-button>
|
|
97
|
-
<monkey-button color="warning" label="Tertiary" type="tertiary"></monkey-button>
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
There are other variations with buttons:
|
|
103
|
-
|
|
104
|
-
### **Button Avatar**
|
|
105
|
-
|
|
106
|
-
![Button Avatar Demo Screen Shot][button-avatar-screenshot]
|
|
107
|
-
|
|
108
|
-
Parameters:
|
|
109
|
-
|
|
110
|
-
- **label** (string) define the label that will be displayed inside the button
|
|
111
|
-
- **size** (string) define the size of the button
|
|
112
|
-
- **type** (string) can be _theme_, _theme-100_ or _none_
|
|
113
|
-
|
|
114
|
-
Example:
|
|
115
|
-
|
|
116
|
-
`example.component.html`
|
|
117
|
-
|
|
118
|
-
```HTML
|
|
119
|
-
<monkey-button-avatar label="Amilson" size="sm" type="theme"></monkey-button-avatar>
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### **Button Dropdown**
|
|
123
|
-
|
|
124
|
-
![Button Dropdown Demo Screen Shot][button-dropdown-screenshot1]
|
|
125
|
-
|
|
126
|
-
![Button Dropdown Demo Screen Shot][button-dropdown-screenshot2]
|
|
127
|
-
|
|
128
|
-
Parameters:
|
|
129
|
-
|
|
130
|
-
- **label** (ng-template) the label that will be displayed inside the button. For this particular component, label has be a ng-template.
|
|
131
|
-
- **listenClicks** (boolean)(default: true) can be used to define if the dropdown will be closed with clicks inside
|
|
132
|
-
- **type** (string)(default: 'filled') can be _unfilled_ or _filled_
|
|
133
|
-
|
|
134
|
-
Example:
|
|
135
|
-
|
|
136
|
-
`example.component.html`
|
|
137
|
-
|
|
138
|
-
```HTML
|
|
139
|
-
<monkey-button-dropdown [label]="profileButton">
|
|
140
|
-
<div class="mt-2">
|
|
141
|
-
<monkey-button
|
|
142
|
-
color="theme"
|
|
143
|
-
label="Profile"
|
|
144
|
-
type="tertiary"
|
|
145
|
-
[routerLink]="'/app/user/profile/edit'"
|
|
146
|
-
>
|
|
147
|
-
</monkey-button>
|
|
148
|
-
</div>
|
|
149
|
-
<div class="mt-2">
|
|
150
|
-
<monkey-button color="theme" label="Logout" type="tertiary"></monkey-button>
|
|
151
|
-
</div>
|
|
152
|
-
</monkey-button-dropdown>
|
|
153
|
-
|
|
154
|
-
<ng-template #profileButton>
|
|
155
|
-
<monkey-button-avatar label="Monkey" size="sm" type="theme"></monkey-button-avatar>
|
|
156
|
-
</ng-template>
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
### **Checkbox**
|
|
162
|
-
|
|
163
|
-
![Checkbox Demo Screen Shot][checkbox-screenshot]
|
|
164
|
-
|
|
165
|
-
Parameters:
|
|
166
|
-
|
|
167
|
-
- **description** (optional)(string) description to be displayed by side of the checkbox
|
|
168
|
-
- **errorMessage** (string) message to alert user
|
|
169
|
-
- **helperMessage** (optional)(string) can be used with type single, for formfield purpose
|
|
170
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
171
|
-
- **label** (string) define the label that will be displayed inside
|
|
172
|
-
- **type** (string)(default: 'single') can be _single_ or _multiple_. Will be used to render checkbox with formfield body or not.
|
|
173
|
-
|
|
174
|
-
Events:
|
|
175
|
-
|
|
176
|
-
- **onChange** event emited when user make changes
|
|
177
|
-
|
|
178
|
-
Example:
|
|
179
|
-
|
|
180
|
-
`example.module.ts`
|
|
181
|
-
|
|
182
|
-
```Typescript
|
|
183
|
-
import { MonkeyCheckboxModule } from 'monkey-style-guide';
|
|
184
|
-
|
|
185
|
-
...
|
|
186
|
-
|
|
187
|
-
@NgModule({
|
|
188
|
-
imports: [MonkeyCheckboxModule]
|
|
189
|
-
})
|
|
190
|
-
...
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
`example.component.html`
|
|
194
|
-
|
|
195
|
-
```HTML
|
|
196
|
-
<monkey-checkbox
|
|
197
|
-
description="I Agree to Terms"
|
|
198
|
-
errorMessage="Validation Message"
|
|
199
|
-
formControlName="terms"
|
|
200
|
-
helperMessage="Mandatory"
|
|
201
|
-
infoMessage="Info message"
|
|
202
|
-
label="Terms and Conditions"
|
|
203
|
-
type="single">
|
|
204
|
-
</monkey-checkbox>
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
### **Date Range Picker**
|
|
210
|
-
|
|
211
|
-
![Date Range Picker Demo Screen Shot][date-range-picker]
|
|
212
|
-
|
|
213
|
-
Parameters:
|
|
214
|
-
|
|
215
|
-
- **errorMessage** (string) message to alert user
|
|
216
|
-
- **helperMessage** (optional)(string) can be used with type single, for formfield purpose
|
|
217
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
218
|
-
- **label** (string) define the label that will be displayed inside
|
|
219
|
-
- **i18n** (Object) an i18n object (see example)
|
|
220
|
-
|
|
221
|
-
Events:
|
|
222
|
-
|
|
223
|
-
- **onChange** event emited when user select a range of dates or when clicked on some action
|
|
224
|
-
|
|
225
|
-
Example:
|
|
226
|
-
|
|
227
|
-
`example.module.ts`
|
|
228
|
-
|
|
229
|
-
```Typescript
|
|
230
|
-
import { MonkeyDateRangePicker } from 'monkey-style-guide';
|
|
231
|
-
|
|
232
|
-
...
|
|
233
|
-
|
|
234
|
-
@NgModule({
|
|
235
|
-
imports: [MonkeyDateRangePicker]
|
|
236
|
-
})
|
|
237
|
-
...
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
`example.component.html`
|
|
241
|
-
|
|
242
|
-
```HTML
|
|
243
|
-
<monkey-date-range-picker
|
|
244
|
-
errorMessage="Error Message"
|
|
245
|
-
helperMessage="Helper Message"
|
|
246
|
-
infoMessage="Info Message"
|
|
247
|
-
label="Label"
|
|
248
|
-
[i18n]="i18n">
|
|
249
|
-
</monkey-date-range-picker>
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
`example.component.ts`
|
|
253
|
-
|
|
254
|
-
```Typescript
|
|
255
|
-
...
|
|
256
|
-
i18n = {
|
|
257
|
-
months: {
|
|
258
|
-
'1': 'January',
|
|
259
|
-
'2': 'Febuary',
|
|
260
|
-
'3': 'March',
|
|
261
|
-
'4': 'April',
|
|
262
|
-
'5': 'May',
|
|
263
|
-
'6': 'June',
|
|
264
|
-
'7': 'July',
|
|
265
|
-
'8': 'August',
|
|
266
|
-
'9': 'September',
|
|
267
|
-
'10': 'October',
|
|
268
|
-
'11': 'November',
|
|
269
|
-
'12': 'December'
|
|
270
|
-
},
|
|
271
|
-
days: {
|
|
272
|
-
'1': 'Sun.',
|
|
273
|
-
'2': 'Mon.',
|
|
274
|
-
'3': 'Tue.',
|
|
275
|
-
'4': 'Wed.',
|
|
276
|
-
'5': 'Thu.',
|
|
277
|
-
'6': 'Fri.',
|
|
278
|
-
'7': 'Sat.'
|
|
279
|
-
},
|
|
280
|
-
actions: {
|
|
281
|
-
'30': '30 days',
|
|
282
|
-
'60': '60 days',
|
|
283
|
-
'90': '90 days'
|
|
284
|
-
},
|
|
285
|
-
today: 'Today'
|
|
286
|
-
};
|
|
287
|
-
...
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
---
|
|
291
|
-
|
|
292
|
-
### **Expansion**
|
|
293
|
-
|
|
294
|
-
![Expansion Demo Screen Shot][expansion-screenshot1]
|
|
295
|
-
|
|
296
|
-
![Expansion Demo Screen Shot][expansion-screenshot2]
|
|
297
|
-
|
|
298
|
-
Parameters:
|
|
299
|
-
|
|
300
|
-
- **color** (string) can be _theme_, _error_, _warning_ or _success_
|
|
301
|
-
- **disabled** (boolean)(default: false) to disable any action
|
|
302
|
-
- **helperMessage** (optional)(string) can be used with type single, for formfield purpose
|
|
303
|
-
- **label** (string) define the label that will be displayed inside
|
|
304
|
-
- **open** (boolean)(default: false) make expansion open or not
|
|
305
|
-
|
|
306
|
-
Events:
|
|
307
|
-
|
|
308
|
-
- **onChange** event emited when user make changes
|
|
309
|
-
|
|
310
|
-
Example:
|
|
311
|
-
|
|
312
|
-
`example.module.ts`
|
|
313
|
-
|
|
314
|
-
```Typescript
|
|
315
|
-
import { MonkeyExpansionModule } from 'monkey-style-guide';
|
|
316
|
-
|
|
317
|
-
...
|
|
318
|
-
|
|
319
|
-
@NgModule({
|
|
320
|
-
imports: [MonkeyExpansionModule]
|
|
321
|
-
})
|
|
322
|
-
...
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
`example.component.html`
|
|
326
|
-
|
|
327
|
-
```HTML
|
|
328
|
-
<monkey-expansion
|
|
329
|
-
color="theme"
|
|
330
|
-
label="Expansion"
|
|
331
|
-
[helperMessage]="'helperMessage'"
|
|
332
|
-
>
|
|
333
|
-
<div>Content 1</div>
|
|
334
|
-
<div>Content 2</div>
|
|
335
|
-
</monkey-expansion>
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
### **File Upload**
|
|
341
|
-
|
|
342
|
-
![File Upload Demo Screen Shot][file-upload-screenshot1]
|
|
343
|
-
|
|
344
|
-
Parameters:
|
|
345
|
-
|
|
346
|
-
- **allowedExtensions** (array of string) for example ['.jpg', '.jpeg', '.png']
|
|
347
|
-
- **allowedExtensionErrorMessage** (string) message to be displayed if the file extension is wrong
|
|
348
|
-
- **errorMessage** (string) message to alert user
|
|
349
|
-
- **fileUpload** (function) function to be used to upload file
|
|
350
|
-
- **helperMessage** (optional)(string) message to help user to know what to do
|
|
351
|
-
- **infoMessage** (optional)(string) required message
|
|
352
|
-
- **label** (string) define the label that will be displayed inside
|
|
353
|
-
- **listenFiles** (boolean)(default: false) if true, emit event to onHandleFilesReady with the selected file
|
|
354
|
-
- **maxSize** (number) max file size in kbytes (1 \* 1024 \* 1024)
|
|
355
|
-
- **maxSizeErrorMessage** (string) message to be displayed if the file size is wrong
|
|
356
|
-
- **name** (string) name to identify the input
|
|
357
|
-
- **placeholder** (optional)(string) message to help user that will be displayed inside the input
|
|
358
|
-
- **uploadOngoingMessage** (string) message to be used when upload starts
|
|
359
|
-
|
|
360
|
-
Events:
|
|
361
|
-
|
|
362
|
-
- **onChange** event emited when user make changes
|
|
363
|
-
- **onHandleFilesReady** event emited when listenFiled is true
|
|
364
|
-
|
|
365
|
-
Example:
|
|
366
|
-
|
|
367
|
-
`example.module.ts`
|
|
368
|
-
|
|
369
|
-
```Typescript
|
|
370
|
-
import { MonkeyFileUploadModule } from 'monkey-style-guide';
|
|
371
|
-
|
|
372
|
-
...
|
|
373
|
-
|
|
374
|
-
@NgModule({
|
|
375
|
-
imports: [MonkeyFileUploadModule]
|
|
376
|
-
})
|
|
377
|
-
...
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
`example.component.ts`
|
|
381
|
-
|
|
382
|
-
```Typescript
|
|
383
|
-
...
|
|
384
|
-
|
|
385
|
-
uploadFunction: Function = (file: any, callback?: Function) => {
|
|
386
|
-
this.uploadService.uploadFile(file, callback);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
service.uploadFile(file: File, callback?: Function) {
|
|
390
|
-
const { httpClient, headers } = this;
|
|
391
|
-
const formData = new FormData();
|
|
392
|
-
formData.append('file', file);
|
|
393
|
-
|
|
394
|
-
httpClient.post<any>('endpoint/upload', formData, {
|
|
395
|
-
headers,
|
|
396
|
-
reportProgress: true,
|
|
397
|
-
observe: 'events'
|
|
398
|
-
}).subscribe((event: any) => {
|
|
399
|
-
const { loaded, total, body } = event;
|
|
400
|
-
switch (event.type) {
|
|
401
|
-
case HttpEventType.UploadProgress:
|
|
402
|
-
const progress = Math.round((loaded / total * 100));
|
|
403
|
-
if (callback) callback(progress);
|
|
404
|
-
break;
|
|
405
|
-
case HttpEventType.Response:
|
|
406
|
-
const { filename, _links: { file: { href } } } = body;
|
|
407
|
-
if (callback) {
|
|
408
|
-
callback(null, {
|
|
409
|
-
fileName: filename,
|
|
410
|
-
url: href
|
|
411
|
-
}, null);
|
|
412
|
-
}
|
|
413
|
-
break;
|
|
414
|
-
default:
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
}, (err: HttpErrorResponse) => {
|
|
418
|
-
const { error } = err;
|
|
419
|
-
callback(null, error?.notifications?.join(''));
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
`example.component.html`
|
|
425
|
-
|
|
426
|
-
```HTML
|
|
427
|
-
<monkey-file-upload
|
|
428
|
-
allowedExtensionErrorMessage="Extension not allowed"
|
|
429
|
-
icon="upload-20"
|
|
430
|
-
label="upload"
|
|
431
|
-
maxSize="5242880"
|
|
432
|
-
maxSizeErrorMessage="Max file size is 5mb"
|
|
433
|
-
placeholder="Add File"
|
|
434
|
-
[fileUpload]="uploadFunction"
|
|
435
|
-
></monkey-file-upload>
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
### **Icon**
|
|
441
|
-
|
|
442
|
-
![Icons Demo Screen Shot][icons-screenshot1]
|
|
443
|
-
|
|
444
|
-
Parameters:
|
|
445
|
-
|
|
446
|
-
- **color** (string) define color. Can be _theme_ or _#ffffff_ (hex value)
|
|
447
|
-
- **icon** (string) icon name and size separeted by hyfhen
|
|
448
|
-
|
|
449
|
-
Icons Options:
|
|
450
|
-
|
|
451
|
-
- **add-plus**
|
|
452
|
-
- **address-book**
|
|
453
|
-
- **arrow-down**
|
|
454
|
-
- **arrow-left**
|
|
455
|
-
- **arrow-line-right**
|
|
456
|
-
- **arrow-right**
|
|
457
|
-
- **arrow-up**
|
|
458
|
-
- **arrows**
|
|
459
|
-
- **auction**
|
|
460
|
-
- **average-tax**
|
|
461
|
-
- **bank-account**
|
|
462
|
-
- **bank-agency**
|
|
463
|
-
- **bank**
|
|
464
|
-
- **banknote-search**
|
|
465
|
-
- **bell**
|
|
466
|
-
- **block**
|
|
467
|
-
- **book-open-text**
|
|
468
|
-
- **book**
|
|
469
|
-
- **box**
|
|
470
|
-
- **build-approved**
|
|
471
|
-
- **build-person**
|
|
472
|
-
- **build-refused**
|
|
473
|
-
- **build-waiting**
|
|
474
|
-
- **calendar**
|
|
475
|
-
- **calendar-box**
|
|
476
|
-
- **camera**
|
|
477
|
-
- **card-machine**
|
|
478
|
-
- **card**
|
|
479
|
-
- **cash-banknote-coins**
|
|
480
|
-
- **cash-banknote-invoice**
|
|
481
|
-
- **certificate-medal**
|
|
482
|
-
- **chart-down**
|
|
483
|
-
- **chart-down-arrow**
|
|
484
|
-
- **chart-up**
|
|
485
|
-
- **chart-up-arrow**
|
|
486
|
-
- **chat**
|
|
487
|
-
- **check-circle-out**
|
|
488
|
-
- **check-circle**
|
|
489
|
-
- **check-grey**
|
|
490
|
-
- **check-white**
|
|
491
|
-
- **check**
|
|
492
|
-
- **clipboard**
|
|
493
|
-
- **clock-closed**
|
|
494
|
-
- **clock**
|
|
495
|
-
- **close-circle**
|
|
496
|
-
- **close**
|
|
497
|
-
- **cnpj**
|
|
498
|
-
- **codepen**
|
|
499
|
-
- **company-name**
|
|
500
|
-
- **contract-pen**
|
|
501
|
-
- **contract**
|
|
502
|
-
- **delete**
|
|
503
|
-
- **digital-certificate**
|
|
504
|
-
- **document**
|
|
505
|
-
- **dollar-sign-circle**
|
|
506
|
-
- **dollar-sign**
|
|
507
|
-
- **domain**
|
|
508
|
-
- **dots-menu**
|
|
509
|
-
- **double-arrow-left**
|
|
510
|
-
- **double-arrow-right**
|
|
511
|
-
- **download**
|
|
512
|
-
- **drag-drop**
|
|
513
|
-
- **edit-square**
|
|
514
|
-
- **edit**
|
|
515
|
-
- **email-send-fast**
|
|
516
|
-
- **email**
|
|
517
|
-
- **empty-doc**
|
|
518
|
-
- **error**
|
|
519
|
-
- **eye-closed**
|
|
520
|
-
- **eye-open**
|
|
521
|
-
- **filter-add**
|
|
522
|
-
- **filter**
|
|
523
|
-
- **grid**
|
|
524
|
-
- **hand-money-banknote**
|
|
525
|
-
- **hands-clap**
|
|
526
|
-
- **help**
|
|
527
|
-
- **hexagon**
|
|
528
|
-
- **high-rising-build**
|
|
529
|
-
- **home**
|
|
530
|
-
- **image**
|
|
531
|
-
- **image-wave-square**
|
|
532
|
-
- **info**
|
|
533
|
-
- **invoice**
|
|
534
|
-
- **invoices-anticipated**
|
|
535
|
-
- **invoices-approval**
|
|
536
|
-
- **invoices-refused**
|
|
537
|
-
- **lighting-circle**
|
|
538
|
-
- **list**
|
|
539
|
-
- **location-pin**
|
|
540
|
-
- **login**
|
|
541
|
-
- **logout**
|
|
542
|
-
- **mail-box-upload**
|
|
543
|
-
- **mail-letter-fast-circle**
|
|
544
|
-
- **mail-open-document**
|
|
545
|
-
- **medal**
|
|
546
|
-
- **menu**
|
|
547
|
-
- **money-banknote-calculator**
|
|
548
|
-
- **money-cedule**
|
|
549
|
-
- **money-discount**
|
|
550
|
-
- **money-hand**
|
|
551
|
-
- **money-net**
|
|
552
|
-
- **money-new**
|
|
553
|
-
- **money-percent**
|
|
554
|
-
- **money-refused**
|
|
555
|
-
- **money-sign**
|
|
556
|
-
- **money**
|
|
557
|
-
- **money-waiting**
|
|
558
|
-
- **more-circle**
|
|
559
|
-
- **more**
|
|
560
|
-
- **new-company**
|
|
561
|
-
- **offered**
|
|
562
|
-
- **open-external**
|
|
563
|
-
- **password**
|
|
564
|
-
- **password-edit-protection**
|
|
565
|
-
- **people**
|
|
566
|
-
- **percent**
|
|
567
|
-
- **percent-box**
|
|
568
|
-
- **person-document**
|
|
569
|
-
- **person-sad**
|
|
570
|
-
- **phone-call**
|
|
571
|
-
- **phone**
|
|
572
|
-
- **pin-navigation**
|
|
573
|
-
- **pork**
|
|
574
|
-
- **radio**
|
|
575
|
-
- **refresh**
|
|
576
|
-
- **registration**
|
|
577
|
-
- **repeat**
|
|
578
|
-
- **search**
|
|
579
|
-
- **second-warning**
|
|
580
|
-
- **settings**
|
|
581
|
-
- **shield-chekmark**
|
|
582
|
-
- **star-shining**
|
|
583
|
-
- **star**
|
|
584
|
-
- **store**
|
|
585
|
-
- **suppliers**
|
|
586
|
-
- **target-dart-arrow**
|
|
587
|
-
- **today**
|
|
588
|
-
- **trash**
|
|
589
|
-
- **trophy**
|
|
590
|
-
- **unfold-more**
|
|
591
|
-
- **upload**
|
|
592
|
-
- **user-group**
|
|
593
|
-
- **user**
|
|
594
|
-
- **wallet**
|
|
595
|
-
- **warning**
|
|
596
|
-
|
|
597
|
-
Example:
|
|
598
|
-
|
|
599
|
-
`example.module.ts`
|
|
600
|
-
|
|
601
|
-
```Typescript
|
|
602
|
-
import { MonkeyIconModule } from 'monkey-style-guide';
|
|
603
|
-
|
|
604
|
-
...
|
|
605
|
-
|
|
606
|
-
@NgModule({
|
|
607
|
-
imports: [MonkeyIconModule]
|
|
608
|
-
})
|
|
609
|
-
...
|
|
610
|
-
```
|
|
611
|
-
|
|
612
|
-
`example.component.html`
|
|
613
|
-
|
|
614
|
-
```HTML
|
|
615
|
-
<monkey-icon color="#000000" icon="password-16"></monkey-icon>
|
|
616
|
-
```
|
|
617
|
-
|
|
618
|
-
---
|
|
619
|
-
|
|
620
|
-
### **Input**
|
|
621
|
-
|
|
622
|
-
![Input Demo Screen Shot][input-screenshot]
|
|
623
|
-
|
|
624
|
-
Parameters:
|
|
625
|
-
|
|
626
|
-
- **capitalize** (optional)(boolean) makes the value capitalcase
|
|
627
|
-
- **currency** (optional)(boolean) transforms the input in currency input
|
|
628
|
-
- **errorMessage** (string) message to alert user
|
|
629
|
-
- **helperMessage** (optional)(string) message to help user to know what to do
|
|
630
|
-
- **icon** (optional)(string) icon name and size separeted by hyfhen
|
|
631
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
632
|
-
- **label** (string) define the label that will be displayed inside
|
|
633
|
-
- **lowerCase** (optional)(boolean) makes the value lowercase
|
|
634
|
-
- **mask** (optional)(string) mask pattern to mask the input
|
|
635
|
-
- **maxLength** (optional)(number) max 255
|
|
636
|
-
- **name** (optional)(string) name to identify the input
|
|
637
|
-
- **onlyNumber** (optional)(boolean) makes the input accept only number
|
|
638
|
-
- **onlyAlphaNumeric** (optional)(boolean) makes the input accept only alphanumeric characters
|
|
639
|
-
- **placeholder** (optional)(string) message to help user that will be displayed inside the input
|
|
640
|
-
- **prefix** (optional)(string) prefix value for input
|
|
641
|
-
- **type** (string) can be _text_ or _password_
|
|
642
|
-
- **upperCase** (optional)(boolean) makes the value uppercase
|
|
643
|
-
|
|
644
|
-
Events:
|
|
645
|
-
|
|
646
|
-
- **onChange** event emited when user make changes
|
|
647
|
-
|
|
648
|
-
Example:
|
|
649
|
-
|
|
650
|
-
`example.module.ts`
|
|
651
|
-
|
|
652
|
-
```Typescript
|
|
653
|
-
import { MonkeyInputModule } from 'monkey-style-guide';
|
|
654
|
-
|
|
655
|
-
...
|
|
656
|
-
|
|
657
|
-
@NgModule({
|
|
658
|
-
imports: [MonkeyInputModule]
|
|
659
|
-
})
|
|
660
|
-
...
|
|
661
|
-
```
|
|
662
|
-
|
|
663
|
-
`example.component.html`
|
|
664
|
-
|
|
665
|
-
```HTML
|
|
666
|
-
<monkey-input
|
|
667
|
-
errorMessage="Validation Message"
|
|
668
|
-
formControlName="name"
|
|
669
|
-
helperMessage="Mandatory"
|
|
670
|
-
icon="user-20"
|
|
671
|
-
infoMessage="Info message"
|
|
672
|
-
label="Name"
|
|
673
|
-
placeholder="Input your full name">
|
|
674
|
-
</monkey-input>
|
|
675
|
-
```
|
|
676
|
-
|
|
677
|
-
---
|
|
678
|
-
|
|
679
|
-
### **Input Filter**
|
|
680
|
-
|
|
681
|
-
![Input Filter Demo Screen Shot][input-filter-screenshot]
|
|
682
|
-
|
|
683
|
-
Parameters:
|
|
684
|
-
|
|
685
|
-
- **helperMessage** (optional)(string) message to help user to know what to do
|
|
686
|
-
- **icon** (optional)(string) icon name and size separeted by hyfhen
|
|
687
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
688
|
-
- **label** (string) define the label that will be displayed inside
|
|
689
|
-
- **maxLength** (optional)(number) max 255
|
|
690
|
-
- **name** (optional)(string) name to identify the input
|
|
691
|
-
- **placeholder** (optional)(string) message to help user that will be displayed inside the input
|
|
692
|
-
|
|
693
|
-
Events:
|
|
694
|
-
|
|
695
|
-
- **onChange** event emited when user make changes
|
|
696
|
-
|
|
697
|
-
Example:
|
|
698
|
-
|
|
699
|
-
`example.module.ts`
|
|
700
|
-
|
|
701
|
-
```Typescript
|
|
702
|
-
import { MonkeyInputModule } from 'monkey-style-guide';
|
|
703
|
-
|
|
704
|
-
...
|
|
705
|
-
|
|
706
|
-
@NgModule({
|
|
707
|
-
imports: [MonkeyInputModule]
|
|
708
|
-
})
|
|
709
|
-
...
|
|
710
|
-
```
|
|
711
|
-
|
|
712
|
-
`example.component.html`
|
|
713
|
-
|
|
714
|
-
```HTML
|
|
715
|
-
<monkey-input-filter
|
|
716
|
-
formControlName="name"
|
|
717
|
-
helperMessage="Mandatory"
|
|
718
|
-
icon="user-20"
|
|
719
|
-
infoMessage="Info message"
|
|
720
|
-
label="Name"
|
|
721
|
-
placeholder="Input your full name">
|
|
722
|
-
</monkey-input-filter>
|
|
723
|
-
```
|
|
724
|
-
|
|
725
|
-
---
|
|
726
|
-
|
|
727
|
-
### **Modal**
|
|
728
|
-
|
|
729
|
-
![Modal Demo Screen Shot][modal-screenshot]
|
|
730
|
-
|
|
731
|
-
Parameters:
|
|
732
|
-
|
|
733
|
-
- **config** (MonkeyModalConfig) the configuration of modal
|
|
734
|
-
- **modalRef** (MonkeyModalRefs) the modal reference
|
|
735
|
-
- **onHandleConfirm** (EventEmitter) will emit and event when you click confirm
|
|
736
|
-
|
|
737
|
-
Example:
|
|
738
|
-
|
|
739
|
-
`example.module.ts`
|
|
740
|
-
|
|
741
|
-
```Typescript
|
|
742
|
-
import {
|
|
743
|
-
MonkeyModalModule,
|
|
744
|
-
MonkeyStyleGuideModalService
|
|
745
|
-
} from 'monkey-style-guide';
|
|
746
|
-
|
|
747
|
-
...
|
|
748
|
-
|
|
749
|
-
@NgModule({
|
|
750
|
-
imports: [MonkeyModalModule],
|
|
751
|
-
providers: [MonkeyStyleGuideModalService]
|
|
752
|
-
})
|
|
753
|
-
...
|
|
754
|
-
```
|
|
755
|
-
|
|
756
|
-
`parent.component.ts`
|
|
757
|
-
|
|
758
|
-
```Typescript
|
|
759
|
-
...
|
|
760
|
-
import { MonkeyStyleGuideModalService } from 'monkey-style-guide';
|
|
761
|
-
import { ModalComponent } from './modal/modal.component';
|
|
762
|
-
|
|
763
|
-
...
|
|
764
|
-
|
|
765
|
-
constructor(private modalService: MonkeyStyleGuideModalService) {}
|
|
766
|
-
|
|
767
|
-
openModal() {
|
|
768
|
-
this.modalService.open(ModalComponent, {
|
|
769
|
-
color: 'theme',
|
|
770
|
-
size: 'md',
|
|
771
|
-
action: {
|
|
772
|
-
cancel: {
|
|
773
|
-
actionColor: 'theme',
|
|
774
|
-
actionType: 'tertiary',
|
|
775
|
-
label: 'Cancel',
|
|
776
|
-
},
|
|
777
|
-
confirm: {
|
|
778
|
-
actionColor: 'theme',
|
|
779
|
-
actionType: 'primary',
|
|
780
|
-
label: 'Confirm',
|
|
781
|
-
},
|
|
782
|
-
},
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
```
|
|
786
|
-
|
|
787
|
-
`modal.component.ts`
|
|
788
|
-
|
|
789
|
-
```Typescript
|
|
790
|
-
import { Component, EventEmitter, Input } from '@angular/core';
|
|
791
|
-
import {
|
|
792
|
-
MonkeyModalConfig,
|
|
793
|
-
MonkeyModalRefs,
|
|
794
|
-
MonkeyStyleGuideModalService
|
|
795
|
-
} from 'monkey-style-guide';
|
|
796
|
-
|
|
797
|
-
@Component({
|
|
798
|
-
selector: 'mk-modal',
|
|
799
|
-
template: `
|
|
800
|
-
<monkey-modal
|
|
801
|
-
[config]="config"
|
|
802
|
-
[modalRef]="modalRef"
|
|
803
|
-
[onHandleConfirm]="onHandleConfirm"
|
|
804
|
-
>
|
|
805
|
-
<div style="align-items: center; display: flex; justify-content: center;">
|
|
806
|
-
<img
|
|
807
|
-
src="https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/logo.png"
|
|
808
|
-
/>
|
|
809
|
-
</div>
|
|
810
|
-
</monkey-modal>
|
|
811
|
-
`,
|
|
812
|
-
})
|
|
813
|
-
export class ModalComponent {
|
|
814
|
-
@Input() config: MonkeyModalConfig;
|
|
815
|
-
@Input() modalRef: MonkeyModalRefs<this>;
|
|
816
|
-
@Input() onHandleConfirm = new EventEmitter<any>();
|
|
817
|
-
|
|
818
|
-
constructor(private modalService: MonkeyStyleGuideModalService) {
|
|
819
|
-
this.onHandleConfirm.subscribe(() => {
|
|
820
|
-
console.log('Confirm clicked!');
|
|
821
|
-
|
|
822
|
-
this.modalService.closeAll();
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
```
|
|
827
|
-
|
|
828
|
-
In case you need the logic in your parent component you can simply pass the `action` key to `MonkeyModalConfig` and remove `onHandleConfirm` of your modal component like this:
|
|
829
|
-
|
|
830
|
-
```Typescript
|
|
831
|
-
...
|
|
832
|
-
|
|
833
|
-
openModal() {
|
|
834
|
-
this.modalService.open(ModalComponent, {
|
|
835
|
-
color: 'theme',
|
|
836
|
-
size: 'md',
|
|
837
|
-
action: {
|
|
838
|
-
cancel: {
|
|
839
|
-
actionColor: 'theme',
|
|
840
|
-
actionType: 'tertiary',
|
|
841
|
-
label: 'Cancel',
|
|
842
|
-
},
|
|
843
|
-
confirm: {
|
|
844
|
-
action: () => {
|
|
845
|
-
console.log('Modal closed!');
|
|
846
|
-
},
|
|
847
|
-
actionColor: 'theme',
|
|
848
|
-
actionType: 'primary',
|
|
849
|
-
label: 'Confirm',
|
|
850
|
-
},
|
|
851
|
-
},
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
```
|
|
855
|
-
|
|
856
|
-
```Typescript
|
|
857
|
-
...
|
|
858
|
-
|
|
859
|
-
export class ModalComponent {
|
|
860
|
-
@Input() config: MonkeyModalConfig;
|
|
861
|
-
@Input() modalRef: MonkeyModalRefs<this>;
|
|
862
|
-
|
|
863
|
-
constructor() {}
|
|
864
|
-
}
|
|
865
|
-
```
|
|
866
|
-
|
|
867
|
-
---
|
|
868
|
-
|
|
869
|
-
### **Radiobutton**
|
|
870
|
-
|
|
871
|
-
![Radiobutton Demo Screen Shot][radiobutton-screenshot]
|
|
872
|
-
|
|
873
|
-
Parameters:
|
|
874
|
-
|
|
875
|
-
- **errorMessage** (string) message to alert user
|
|
876
|
-
- **helperMessage** (optional)(string) message to help user to know what to do
|
|
877
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
878
|
-
- **label** (string) define the label that will be displayed inside
|
|
879
|
-
- **placeholder** (optional)(string) message to help user that will be displayed inside the input
|
|
880
|
-
|
|
881
|
-
Events:
|
|
882
|
-
|
|
883
|
-
- **onChange** event emited when user make changes
|
|
884
|
-
|
|
885
|
-
Example:
|
|
886
|
-
|
|
887
|
-
`example.module.ts`
|
|
888
|
-
|
|
889
|
-
```Typescript
|
|
890
|
-
import { MonkeyRadioButtonModule } from 'monkey-style-guide';
|
|
891
|
-
|
|
892
|
-
...
|
|
893
|
-
|
|
894
|
-
@NgModule({
|
|
895
|
-
imports: [MonkeyRadioButtonModule]
|
|
896
|
-
})
|
|
897
|
-
...
|
|
898
|
-
```
|
|
899
|
-
|
|
900
|
-
`example.component.html`
|
|
901
|
-
|
|
902
|
-
```HTML
|
|
903
|
-
<monkey-radiobutton
|
|
904
|
-
formControlName="gender"
|
|
905
|
-
label="Gender"
|
|
906
|
-
helperMessage="Mandatory"
|
|
907
|
-
icon="help-20"
|
|
908
|
-
infoMessage="Info message"
|
|
909
|
-
errorMessage="Validation message"
|
|
910
|
-
>
|
|
911
|
-
<monkey-option label="Female" value="female"></monkey-option>
|
|
912
|
-
<monkey-option label="Male" value="male"></monkey-option>
|
|
913
|
-
<monkey-option label="I prefer not to choose" value="not_choose"></monkey-option>
|
|
914
|
-
</monkey-radiobutton>
|
|
915
|
-
```
|
|
916
|
-
|
|
917
|
-
---
|
|
918
|
-
|
|
919
|
-
### **Select**
|
|
920
|
-
|
|
921
|
-
![Select Demo Screen Shot][select-screenshot]
|
|
922
|
-
|
|
923
|
-
Parameters:
|
|
924
|
-
|
|
925
|
-
- **errorMessage** (string) message to alert user
|
|
926
|
-
- **helperMessage** (optional)(string) message to help user to know what to do
|
|
927
|
-
- **icon** (optional)(string) icon name and size separeted by hyfhen
|
|
928
|
-
- **infoMessage** (optional)(string) message to help user knows about this component purpose
|
|
929
|
-
- **label** (string) define the label that will be displayed inside
|
|
930
|
-
- **placeholder** (optional)(string) message to help user that will be displayed inside the input
|
|
931
|
-
|
|
932
|
-
Events:
|
|
933
|
-
|
|
934
|
-
- **onChange** event emited when user make changes
|
|
935
|
-
|
|
936
|
-
Example:
|
|
937
|
-
|
|
938
|
-
`example.module.ts`
|
|
939
|
-
|
|
940
|
-
```Typescript
|
|
941
|
-
import {
|
|
942
|
-
MonkeyOptionModule,
|
|
943
|
-
MonkeySelectModule
|
|
944
|
-
} from 'monkey-style-guide';
|
|
945
|
-
|
|
946
|
-
...
|
|
947
|
-
|
|
948
|
-
@NgModule({
|
|
949
|
-
imports: [
|
|
950
|
-
MonkeyOptionModule,
|
|
951
|
-
MonkeySelectModule
|
|
952
|
-
]
|
|
953
|
-
})
|
|
954
|
-
...
|
|
955
|
-
```
|
|
956
|
-
|
|
957
|
-
`example.component.html`
|
|
958
|
-
|
|
959
|
-
```HTML
|
|
960
|
-
<monkey-select
|
|
961
|
-
errorMessage="Validation Message"
|
|
962
|
-
formControlName="documentType"
|
|
963
|
-
helperMessage="Mandatory"
|
|
964
|
-
icon="upload-20"
|
|
965
|
-
infoMessage="Info message"
|
|
966
|
-
label="Select the document type to upload"
|
|
967
|
-
>
|
|
968
|
-
<monkey-option label="Personal Document" value="personal_document">
|
|
969
|
-
</monkey-option>
|
|
970
|
-
<monkey-option label="Social Contract" value="social_contract">
|
|
971
|
-
</monkey-option>
|
|
972
|
-
<monkey-option label="Procuraction Contract" value="procuration_contract">
|
|
973
|
-
</monkey-option>
|
|
974
|
-
</monkey-select>
|
|
975
|
-
```
|
|
976
|
-
|
|
977
|
-
---
|
|
978
|
-
|
|
979
|
-
### **Table**
|
|
980
|
-
|
|
981
|
-
![Table Demo Screen Shot][table-screenshot]
|
|
982
|
-
|
|
983
|
-
Parameters:
|
|
984
|
-
|
|
985
|
-
- **dataSource** (array) the data to be displayed
|
|
986
|
-
- **headers** (array) column headers
|
|
987
|
-
- **loading** (optional)(boolean) show loading progress
|
|
988
|
-
- **rowTemplate** (TemplateRef) the template to show rows
|
|
989
|
-
- **selectable** (optional)(boolean) enable row selection
|
|
990
|
-
|
|
991
|
-
Events:
|
|
992
|
-
|
|
993
|
-
- **selection** returns an array with selected rows
|
|
994
|
-
|
|
995
|
-
Example:
|
|
996
|
-
|
|
997
|
-
`example.module.ts`
|
|
998
|
-
|
|
999
|
-
```Typescript
|
|
1000
|
-
import { MonkeyTableModule } from 'monkey-style-guide';
|
|
1001
|
-
|
|
1002
|
-
...
|
|
1003
|
-
|
|
1004
|
-
@NgModule({
|
|
1005
|
-
imports: [MonkeyTableModule]
|
|
1006
|
-
})
|
|
1007
|
-
...
|
|
1008
|
-
```
|
|
1009
|
-
|
|
1010
|
-
`example.component.ts`
|
|
1011
|
-
|
|
1012
|
-
```Typecript
|
|
1013
|
-
_dataSourceHeaders = ['column1', 'column2', 'column3', 'column4'];
|
|
1014
|
-
_dataSource = [
|
|
1015
|
-
[1, 2, 3, 4, 5, 6],
|
|
1016
|
-
[5, 6, 7, 8, 9, 10],
|
|
1017
|
-
[5, 6, 7, 8, 9, 10],
|
|
1018
|
-
[5, 6, 7, 8, 9, 10],
|
|
1019
|
-
];
|
|
1020
|
-
```
|
|
1021
|
-
|
|
1022
|
-
`example.component.html`
|
|
1023
|
-
|
|
1024
|
-
```HTML
|
|
1025
|
-
<monkey-table
|
|
1026
|
-
[dataSource]="_dataSource"
|
|
1027
|
-
[headers]="_dataSourceHeaders"
|
|
1028
|
-
[loading]="true"
|
|
1029
|
-
[rowTemplate]="rowTemplate"
|
|
1030
|
-
[selectable]="true"
|
|
1031
|
-
(selection)="onHandleSelection($event)"
|
|
1032
|
-
>
|
|
1033
|
-
<ng-template #rowTemplate let-row="row">
|
|
1034
|
-
<monkey-table-column>{{ row[0] }}</monkey-table-column>
|
|
1035
|
-
<monkey-table-column>{{ row[1] }}</monkey-table-column>
|
|
1036
|
-
<monkey-table-column>{{ row[2] }}</monkey-table-column>
|
|
1037
|
-
<monkey-table-column>{{ row[3] }}</monkey-table-column>
|
|
1038
|
-
</ng-template>
|
|
1039
|
-
</monkey-table>
|
|
1040
|
-
```
|
|
1041
|
-
|
|
1042
|
-
---
|
|
1043
|
-
|
|
1044
|
-
### **Toggle**
|
|
1045
|
-
|
|
1046
|
-
![Toggle Demo Screen Shot][toggle-screenshot]
|
|
1047
|
-
|
|
1048
|
-
Parameters:
|
|
1049
|
-
|
|
1050
|
-
- **value** (boolean)(default: false)
|
|
1051
|
-
- **disabled** (boolean)(default: false) to disable any action
|
|
1052
|
-
|
|
1053
|
-
Events:
|
|
1054
|
-
|
|
1055
|
-
- **onChange** event emited when user make changes
|
|
1056
|
-
|
|
1057
|
-
Example:
|
|
1058
|
-
|
|
1059
|
-
`example.module.ts`
|
|
1060
|
-
|
|
1061
|
-
```Typescript
|
|
1062
|
-
import { MonkeyToggleModule } from 'monkey-style-guide';
|
|
1063
|
-
|
|
1064
|
-
...
|
|
1065
|
-
|
|
1066
|
-
@NgModule({
|
|
1067
|
-
imports: [MonkeyToggleModule]
|
|
1068
|
-
})
|
|
1069
|
-
...
|
|
1070
|
-
```
|
|
1071
|
-
|
|
1072
|
-
`example.component.html`
|
|
1073
|
-
|
|
1074
|
-
```HTML
|
|
1075
|
-
<monkey-toggle [value]="_form?.get('smsNotification').value"
|
|
1076
|
-
(onChange)="onHandleToggleSMS($event)">
|
|
1077
|
-
</monkey-toggle>
|
|
1078
|
-
```
|
|
1079
|
-
|
|
1080
|
-
## Prerequisites
|
|
1081
|
-
|
|
1082
|
-
The main feature of this project is to allow changing the application theme, such as primary colors and error colors.
|
|
1083
|
-
For this, it is necessary to have a file called monkey-style-guide-settings.json at the root of your project's assets folder.
|
|
1084
|
-
|
|
1085
|
-
For example:
|
|
1086
|
-
|
|
1087
|
-
![Settings Json Screen Shot][settings-screenshot]
|
|
1088
|
-
|
|
1089
|
-
Content of monkey-style-guide-settings.json:
|
|
1090
|
-
|
|
1091
|
-
```JSON
|
|
1092
|
-
{
|
|
1093
|
-
"theme": {
|
|
1094
|
-
"title": "Monkey Exchange",
|
|
1095
|
-
"favicon": "assets/favicon.svg"
|
|
1096
|
-
},
|
|
1097
|
-
"colors": {
|
|
1098
|
-
"theme": {
|
|
1099
|
-
"main": "#034EA2",
|
|
1100
|
-
"100": "#F5FAFF",
|
|
1101
|
-
"200": "#D7EAFE",
|
|
1102
|
-
"300": "#A5CFFE",
|
|
1103
|
-
"400": "#72B4FD",
|
|
1104
|
-
"500": "#4099FC",
|
|
1105
|
-
"600": "#0F7EFB",
|
|
1106
|
-
"700": "#0465D2",
|
|
1107
|
-
"800": "#023064",
|
|
1108
|
-
"900": "#023064",
|
|
1109
|
-
"contrast": {
|
|
1110
|
-
"main": "white",
|
|
1111
|
-
"100": "rgba(black, 0.87)",
|
|
1112
|
-
"200": "white",
|
|
1113
|
-
"300": "white",
|
|
1114
|
-
"400": "white",
|
|
1115
|
-
"500": "white",
|
|
1116
|
-
"600": "white",
|
|
1117
|
-
"700": "white",
|
|
1118
|
-
"800": "white",
|
|
1119
|
-
"900": "white"
|
|
1120
|
-
}
|
|
1121
|
-
},
|
|
1122
|
-
"error": {
|
|
1123
|
-
"main": "#e70c0c",
|
|
1124
|
-
"100": "#fbb5b5",
|
|
1125
|
-
"200": "#f87f7f",
|
|
1126
|
-
"300": "#f53b3b",
|
|
1127
|
-
"400": "#f31e1e",
|
|
1128
|
-
"500": "#e70c0c",
|
|
1129
|
-
"600": "#ca0a0a",
|
|
1130
|
-
"700": "#ad0909",
|
|
1131
|
-
"800": "#900707",
|
|
1132
|
-
"900": "#730606",
|
|
1133
|
-
"contrast": {
|
|
1134
|
-
"main": "white",
|
|
1135
|
-
"100": "rgba(black, 0.87)",
|
|
1136
|
-
"200": "rgba(black, 0.87)",
|
|
1137
|
-
"300": "white",
|
|
1138
|
-
"400": "white",
|
|
1139
|
-
"500": "white",
|
|
1140
|
-
"600": "white",
|
|
1141
|
-
"700": "white",
|
|
1142
|
-
"800": "white",
|
|
1143
|
-
"900": "white"
|
|
1144
|
-
}
|
|
1145
|
-
},
|
|
1146
|
-
"warning": {
|
|
1147
|
-
"main": "#efa30e",
|
|
1148
|
-
"100": "#fbe7be",
|
|
1149
|
-
"200": "#f8d389",
|
|
1150
|
-
"300": "#f4b946",
|
|
1151
|
-
"400": "#f2ae29",
|
|
1152
|
-
"500": "#efa30e",
|
|
1153
|
-
"600": "#d28f0c",
|
|
1154
|
-
"700": "#b57c0b",
|
|
1155
|
-
"800": "#986809",
|
|
1156
|
-
"900": "#7b5407",
|
|
1157
|
-
"contrast": {
|
|
1158
|
-
"main": "rgba(black, 0.87)",
|
|
1159
|
-
"100": "rgba(black, 0.87)",
|
|
1160
|
-
"200": "rgba(black, 0.87)",
|
|
1161
|
-
"300": "rgba(black, 0.87)",
|
|
1162
|
-
"400": "rgba(black, 0.87)",
|
|
1163
|
-
"500": "rgba(black, 0.87)",
|
|
1164
|
-
"600": "rgba(black, 0.87)",
|
|
1165
|
-
"700": "rgba(black, 0.87)",
|
|
1166
|
-
"800": "white",
|
|
1167
|
-
"900": "white"
|
|
1168
|
-
}
|
|
1169
|
-
},
|
|
1170
|
-
"success": {
|
|
1171
|
-
"main": "#00875a",
|
|
1172
|
-
"100": "#45ffc1",
|
|
1173
|
-
"200": "#0dffae",
|
|
1174
|
-
"300": "#00c483",
|
|
1175
|
-
"400": "#00a66e",
|
|
1176
|
-
"500": "#00875a",
|
|
1177
|
-
"600": "#006846",
|
|
1178
|
-
"700": "#004a31",
|
|
1179
|
-
"800": "#002b1d",
|
|
1180
|
-
"900": "#000d08",
|
|
1181
|
-
"contrast": {
|
|
1182
|
-
"main": "white",
|
|
1183
|
-
"100": "rgba(black, 0.87)",
|
|
1184
|
-
"200": "rgba(black, 0.87)",
|
|
1185
|
-
"300": "rgba(black, 0.87)",
|
|
1186
|
-
"400": "white",
|
|
1187
|
-
"500": "white",
|
|
1188
|
-
"600": "white",
|
|
1189
|
-
"700": "white",
|
|
1190
|
-
"800": "white",
|
|
1191
|
-
"900": "white"
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
"question": {
|
|
1195
|
-
"main": "#8D38FA",
|
|
1196
|
-
"100": "#F4EBFF",
|
|
1197
|
-
"200": "#E8D7FE",
|
|
1198
|
-
"300": "#D2AFFD",
|
|
1199
|
-
"400": "#A460FB",
|
|
1200
|
-
"500": "#8D38FA",
|
|
1201
|
-
"600": "#7710F9",
|
|
1202
|
-
"700": "#5104B3",
|
|
1203
|
-
"800": "#2D0264",
|
|
1204
|
-
"900": "#1B013C",
|
|
1205
|
-
"contrast": {
|
|
1206
|
-
"main": "white",
|
|
1207
|
-
"100": "rgba(black, 0.87)",
|
|
1208
|
-
"200": "rgba(black, 0.87)",
|
|
1209
|
-
"300": "rgba(black, 0.87)",
|
|
1210
|
-
"400": "white",
|
|
1211
|
-
"500": "white",
|
|
1212
|
-
"600": "white",
|
|
1213
|
-
"700": "white",
|
|
1214
|
-
"800": "white",
|
|
1215
|
-
"900": "white"
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
```
|
|
1221
|
-
|
|
1222
|
-
## Installation
|
|
1223
|
-
|
|
1224
|
-
1. Install NPM packages:
|
|
1225
|
-
|
|
1226
|
-
```sh
|
|
1227
|
-
npm install monkey-style-guide
|
|
1228
|
-
```
|
|
1229
|
-
|
|
1230
|
-
## Usage
|
|
1231
|
-
|
|
1232
|
-
Import `monkey-style-guide` in your `style.scss`
|
|
1233
|
-
|
|
1234
|
-
```scss
|
|
1235
|
-
@import '~monkey-style-guide/assets/scss/theme';
|
|
1236
|
-
```
|
|
1237
|
-
|
|
1238
|
-
Import `MonkeyStyleGuideModule` in your `app.module.ts`
|
|
1239
|
-
|
|
1240
|
-
```Typescript
|
|
1241
|
-
import { MonkeyStyleGuideModule } from 'monkey-style-guide';
|
|
1242
|
-
|
|
1243
|
-
@NgModule({
|
|
1244
|
-
declarations: [AppComponent],
|
|
1245
|
-
imports: [MonkeyStyleGuideModule],
|
|
1246
|
-
bootstrap: [AppComponent],
|
|
1247
|
-
})
|
|
1248
|
-
export class AppModule {}
|
|
1249
|
-
```
|
|
1250
|
-
|
|
1251
|
-
Than call the `bootstrap` method in your `app.component.ts`
|
|
1252
|
-
|
|
1253
|
-
```Typescript
|
|
1254
|
-
import { Component } from '@angular/core';
|
|
1255
|
-
import { MonkeyStyleGuideSettingsService } from 'monkey-style-guide';
|
|
1256
|
-
|
|
1257
|
-
@Component({
|
|
1258
|
-
selector: 'app-root',
|
|
1259
|
-
templateUrl: './app.component.html',
|
|
1260
|
-
styleUrls: ['./app.component.scss'],
|
|
1261
|
-
})
|
|
1262
|
-
export class AppComponent {
|
|
1263
|
-
constructor(private settingsService: MonkeyStyleGuideSettingsService) {
|
|
1264
|
-
this.settingsService.bootstrap('');
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
```
|
|
1268
|
-
|
|
1269
|
-
<!-- MARKDOWN LINKS & IMAGES -->
|
|
1270
|
-
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
1271
|
-
|
|
1272
|
-
[badge-screenshot]: https://user-images.githubusercontent.com/10110065/111625441-9e5df280-87cb-11eb-905c-008607cf859e.png
|
|
1273
|
-
[button-avatar-screenshot]: https://user-images.githubusercontent.com/10110065/111626956-50e28500-87cd-11eb-85c1-aaa8c06bb4e0.png
|
|
1274
|
-
[button-dropdown-screenshot1]: https://user-images.githubusercontent.com/10110065/111631407-1e875680-87d2-11eb-9631-d1d2ccf8f076.png
|
|
1275
|
-
[button-dropdown-screenshot2]: https://user-images.githubusercontent.com/10110065/111631726-82118400-87d2-11eb-9653-4502c3d82d51.png
|
|
1276
|
-
[buttons-screenshot]: https://user-images.githubusercontent.com/10110065/142933460-7a84ad76-b57f-40a0-b809-292af31c1e8f.png
|
|
1277
|
-
[checkbox-screenshot]: https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/checkbox.png
|
|
1278
|
-
[contributors-shield]: https://img.shields.io/badge/Contributors-2-brightgreen?style=flat
|
|
1279
|
-
[contributors-url]: https://github.com/MonkeyECX/monkey-style-guide/graphs/contributors
|
|
1280
|
-
[date-range-picker]: https://user-images.githubusercontent.com/12416871/146080473-8543b9ae-7186-42ee-8ec8-bfd1eef09df6.png
|
|
1281
|
-
[expansion-screenshot1]: https://user-images.githubusercontent.com/10110065/111636157-f8b08080-87d6-11eb-86ab-86839297d068.png
|
|
1282
|
-
[expansion-screenshot2]: https://user-images.githubusercontent.com/10110065/111636340-24336b00-87d7-11eb-9f19-504ab96cc9af.png
|
|
1283
|
-
[file-upload-screenshot1]: https://user-images.githubusercontent.com/10110065/111640018-8b065380-87da-11eb-8d47-87ddea29b943.png
|
|
1284
|
-
[icons-screenshot1]: https://github.com/MonkeyECX/monkey-style-guide/assets/12416871/a71f2dcf-b9d2-4868-9868-9ac798ffe28a
|
|
1285
|
-
[input-filter-screenshot]: https://user-images.githubusercontent.com/32619691/163216159-3a9f985e-3ba9-4e10-8ba4-0f60931f83d1.png
|
|
1286
|
-
[input-screenshot]: https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/input.png
|
|
1287
|
-
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=flat-square
|
|
1288
|
-
[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt
|
|
1289
|
-
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=157
|
|
1290
|
-
[linkedin-url]: https://www.linkedin.com/company/monkeyexchange
|
|
1291
|
-
[modal-screenshot]: https://user-images.githubusercontent.com/12416871/119838920-2c480f00-beda-11eb-9e44-e42262f39c34.png
|
|
1292
|
-
[radiobutton-screenshot]: https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/radiobutton.png
|
|
1293
|
-
[select-screenshot]: https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/select.png
|
|
1294
|
-
[settings-screenshot]: https://dev-monkey-emails.s3-us-west-2.amazonaws.com/monkey-style-guide/demos/images/style-settings-json.png
|
|
1295
|
-
[table-screenshot]: https://user-images.githubusercontent.com/12416871/119574643-29d79f00-bd8c-11eb-9747-2e6dc86410da.png
|
|
1296
|
-
[toggle-screenshot]: https://user-images.githubusercontent.com/12416871/119849813-53570e80-bee3-11eb-87f8-0871f8e26f58.png
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|