@morozeckiy/dd-lib 0.1.1
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 +24 -0
- package/assets/fonts/ALS_Sirius_Bold_0.95.otf +0 -0
- package/assets/fonts/ALS_Sirius_Medium_1.6.otf +0 -0
- package/assets/fonts/ALS_Sirius_Regular_0.95.otf +0 -0
- package/assets/images/benefactors/cheese-king.svg +17 -0
- package/assets/images/benefactors/circle-dot.svg +15 -0
- package/assets/images/benefactors/grid-dots.svg +36 -0
- package/assets/images/benefactors/steam.svg +29 -0
- package/assets/images/claim-create/paperclip.svg +12 -0
- package/assets/images/footer/appgalery.svg +32 -0
- package/assets/images/footer/appstore.svg +26 -0
- package/assets/images/footer/google-app.svg +28 -0
- package/assets/images/footer/rustore.svg +35 -0
- package/assets/images/header/badges.svg +13 -0
- package/assets/images/header/benefactors.svg +21 -0
- package/assets/images/header/burger.svg +12 -0
- package/assets/images/header/chart-bar.svg +19 -0
- package/assets/images/header/checkbox.svg +13 -0
- package/assets/images/header/crane.svg +15 -0
- package/assets/images/header/districts.svg +16 -0
- package/assets/images/header/grid.svg +13 -0
- package/assets/images/header/info-circle.svg +14 -0
- package/assets/images/header/info.svg +14 -0
- package/assets/images/header/logo.svg +61 -0
- package/assets/images/header/moneybag.svg +15 -0
- package/assets/images/header/moon.svg +12 -0
- package/assets/images/header/news.svg +15 -0
- package/assets/images/header/project/dd-m.svg +11 -0
- package/assets/images/header/project/dd.svg +29 -0
- package/assets/images/header/project/eds-m.svg +31 -0
- package/assets/images/header/project/eds.svg +84 -0
- package/assets/images/header/project/health-m.svg +45 -0
- package/assets/images/header/project/health.svg +115 -0
- package/assets/images/header/project/my-m.svg +80 -0
- package/assets/images/header/project/my.svg +141 -0
- package/assets/images/header/project/pgu-mo-m.svg +306 -0
- package/assets/images/header/project/pgu-mo.svg +586 -0
- package/assets/images/header/sun.svg +14 -0
- package/assets/images/header/trees.svg +18 -0
- package/assets/images/header/user.svg +15 -0
- package/assets/images/main/button-ok.svg +4 -0
- package/assets/images/main/button-tg.svg +12 -0
- package/assets/images/main/button-vk.svg +12 -0
- package/assets/images/main/check-list.svg +17 -0
- package/assets/images/main/minus.svg +10 -0
- package/assets/images/main/mobilr-qr.svg +9 -0
- package/assets/images/main/news-big.svg +18 -0
- package/assets/images/main/plus.svg +11 -0
- package/assets/images/main/rupor.svg +12 -0
- package/assets/images/main/shared-logo-d.svg +29 -0
- package/assets/images/main/shared-logo.svg +29 -0
- package/assets/images/main/solve-problem-exampe.svg +9 -0
- package/assets/images/main/users.svg +21 -0
- package/assets/images/profile/circle-no.svg +11 -0
- package/assets/images/profile/esia-icon.svg +5 -0
- package/assets/images/profile/set-avatar.svg +14 -0
- package/assets/images/svg/404.svg +12 -0
- package/assets/images/svg/actogone-accept.svg +4 -0
- package/assets/images/svg/arrow/all.svg +4 -0
- package/assets/images/svg/arrow/arrow-down-red.svg +12 -0
- package/assets/images/svg/arrow/arrow-up-green.svg +12 -0
- package/assets/images/svg/arrow/back-arrow.svg +11 -0
- package/assets/images/svg/arrow/down-chevron.svg +11 -0
- package/assets/images/svg/arrow/left-chevron.svg +10 -0
- package/assets/images/svg/arrow/next.svg +6 -0
- package/assets/images/svg/arrow/prev.svg +6 -0
- package/assets/images/svg/arrow/right-chevron.svg +10 -0
- package/assets/images/svg/calendar.svg +13 -0
- package/assets/images/svg/check-green.svg +10 -0
- package/assets/images/svg/check-white.svg +5 -0
- package/assets/images/svg/clear.svg +11 -0
- package/assets/images/svg/close.svg +11 -0
- package/assets/images/svg/dobrodel.svg +15 -0
- package/assets/images/svg/entry.svg +5 -0
- package/assets/images/svg/error-hint.svg +5 -0
- package/assets/images/svg/eye-off.svg +12 -0
- package/assets/images/svg/eye.svg +15 -0
- package/assets/images/svg/mail-exclamation.svg +13 -0
- package/assets/images/svg/not-found.svg +12 -0
- package/assets/images/svg/plug-d.svg +61 -0
- package/assets/images/svg/plug.svg +61 -0
- package/assets/images/svg/question-white-g.svg +14 -0
- package/assets/images/svg/question.svg +14 -0
- package/assets/images/svg/red-close.svg +11 -0
- package/assets/images/svg/search.svg +13 -0
- package/assets/images/svg/send.svg +13 -0
- package/assets/images/svg/small-round-loader.svg +19 -0
- package/assets/images/svg/sort.svg +15 -0
- package/assets/images/svg/star.svg +10 -0
- package/assets/images/svg/tg.svg +5 -0
- package/assets/images/svg/trash.svg +14 -0
- package/assets/images/svg/vk.svg +5 -0
- package/assets/images/toast/danger-t.svg +3 -0
- package/assets/images/toast/info-t.svg +3 -0
- package/assets/images/toast/success-t.svg +3 -0
- package/assets/images/toast/warning-t.svg +3 -0
- package/assets/images/user/award.svg +12 -0
- package/assets/images/user/bell.svg +11 -0
- package/assets/images/user/circles.svg +12 -0
- package/assets/images/user/is-esia.svg +4 -0
- package/assets/images/user/list-search.svg +14 -0
- package/assets/images/user/logout.svg +12 -0
- package/assets/images/user/news.svg +13 -0
- package/assets/images/user/pen-edit.svg +11 -0
- package/assets/images/user/user.svg +11 -0
- package/assets/images/users/trophy.svg +21 -0
- package/assets/images/users/user-empty.svg +12 -0
- package/assets/json/rating.json +881 -0
- package/assets/scss/common.scss +229 -0
- package/assets/scss/fonts.scss +23 -0
- package/assets/scss/mixins.scss +75 -0
- package/assets/scss/modal.scss +89 -0
- package/assets/scss/normalize.scss +417 -0
- package/assets/scss/offsets.scss +101 -0
- package/assets/scss/reset.scss +141 -0
- package/assets/scss/theme.scss +20 -0
- package/assets/scss/titles.scss +197 -0
- package/assets/scss/vars-dark.scss +135 -0
- package/assets/scss/vars-light.scss +135 -0
- package/assets/scss/vars.scss +4 -0
- package/assets/styles.scss +13 -0
- package/assets/svg-icons/build/my-icons.model.d.ts +5 -0
- package/assets/svg-icons/build/my-icons.model.mjs +2 -0
- package/assets/svg-icons/build/svgIcon-404.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-404.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-actogone-accept.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-actogone-accept.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-all.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-all.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-appgalery.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-appgalery.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-appstore.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-appstore.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-arrow-down-red.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-arrow-down-red.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-arrow-up-green.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-arrow-up-green.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-award.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-award.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-back-arrow.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-back-arrow.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-badges.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-badges.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-bell.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-bell.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-benefactors.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-benefactors.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-burger.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-burger.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-button-ok.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-button-ok.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-button-tg.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-button-tg.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-button-vk.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-button-vk.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-calendar.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-calendar.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-chart-bar.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-chart-bar.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-check-green.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-check-green.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-check-list.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-check-list.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-check-white.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-check-white.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-checkbox.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-checkbox.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-cheese-king.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-cheese-king.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-circle-dot.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-circle-dot.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-circle-no.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-circle-no.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-circles.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-circles.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-clear.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-clear.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-close.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-close.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-crane.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-crane.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-danger-t.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-danger-t.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-dd-m.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-dd-m.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-dd.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-dd.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-districts.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-districts.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-dobrodel.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-dobrodel.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-down-chevron.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-down-chevron.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-eds-m.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-eds-m.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-eds.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-eds.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-entry.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-entry.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-error-hint.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-error-hint.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-esia-icon.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-esia-icon.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-eye-off.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-eye-off.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-eye.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-eye.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-google-app.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-google-app.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-grid-dots.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-grid-dots.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-grid.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-grid.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-health-m.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-health-m.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-health.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-health.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-info-circle.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-info-circle.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-info-t.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-info-t.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-info.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-info.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-is-esia.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-is-esia.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-left-chevron.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-left-chevron.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-list-search.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-list-search.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-logo.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-logo.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-logout.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-logout.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-mail-exclamation.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-mail-exclamation.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-minus.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-minus.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-mobilr-qr.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-mobilr-qr.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-moneybag.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-moneybag.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-moon.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-moon.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-my-m.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-my-m.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-my.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-my.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-news-big.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-news-big.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-news.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-news.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-next.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-next.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-not-found.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-not-found.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-paperclip.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-paperclip.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-pen-edit.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-pen-edit.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-pgu-mo-m.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-pgu-mo-m.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-pgu-mo.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-pgu-mo.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-plug-d.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-plug-d.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-plug.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-plug.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-plus.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-plus.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-prev.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-prev.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-question-white-g.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-question-white-g.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-question.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-question.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-red-close.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-red-close.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-right-chevron.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-right-chevron.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-rupor.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-rupor.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-rustore.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-rustore.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-search.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-search.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-send.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-send.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-set-avatar.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-set-avatar.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-shared-logo-d.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-shared-logo-d.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-shared-logo.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-shared-logo.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-small-round-loader.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-small-round-loader.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-solve-problem-exampe.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-solve-problem-exampe.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-sort.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-sort.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-star.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-star.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-steam.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-steam.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-success-t.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-success-t.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-sun.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-sun.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-tg.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-tg.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-trash.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-trash.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-trees.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-trees.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-trophy.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-trophy.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-user-empty.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-user-empty.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-user.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-user.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-users.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-users.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-vk.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-vk.icon.mjs +5 -0
- package/assets/svg-icons/build/svgIcon-warning-t.icon.d.ts +4 -0
- package/assets/svg-icons/build/svgIcon-warning-t.icon.mjs +5 -0
- package/assets/svg-icons/index.d.ts +142 -0
- package/assets/svg-icons/index.mjs +141 -0
- package/assets/svg-icons/my-icons.model.ts +146 -0
- package/ekgip-dd-lib-0.0.1.tgz +0 -0
- package/ng-package.json +8 -0
- package/package.json +17 -0
- package/src/lib/common/lib-common-button.ts +34 -0
- package/src/lib/common/lib-common-input-text.ts +154 -0
- package/src/lib/core/dialog/dialog-config.ts +19 -0
- package/src/lib/core/dialog/dialog-container.component.ts +38 -0
- package/src/lib/core/dialog/dialog-ref.ts +28 -0
- package/src/lib/core/dialog/dialog.service.ts +144 -0
- package/src/lib/core/directives/auto-height.directive.ts +29 -0
- package/src/lib/core/directives/click-outside.directive.ts +33 -0
- package/src/lib/core/directives/counter.directive.ts +54 -0
- package/src/lib/core/directives/declension.directive.ts +29 -0
- package/src/lib/core/directives/resize-textarea.directive.ts +16 -0
- package/src/lib/core/directives/triangle.directive.ts +56 -0
- package/src/lib/core/index.ts +27 -0
- package/src/lib/core/pipes/filter-tabs.pipe.ts +25 -0
- package/src/lib/core/pipes/filter.pipe.ts +36 -0
- package/src/lib/core/pipes/highlight.pipe.ts +17 -0
- package/src/lib/core/pipes/reverse.pipe.ts +11 -0
- package/src/lib/core/pipes/safe.pipe.ts +37 -0
- package/src/lib/core/services/date.service.ts +153 -0
- package/src/lib/core/services/destroy.service.ts +10 -0
- package/src/lib/core/services/fetcher.service.ts +109 -0
- package/src/lib/core/services/interceptors.service.ts +26 -0
- package/src/lib/core/services/svg-icons.service.ts +25 -0
- package/src/lib/core/services/theme-constructor.service.ts +68 -0
- package/src/lib/core/services/validators.service.ts +73 -0
- package/src/lib/core/tools.ts +159 -0
- package/src/lib/core/tooltip/tooltip.component.html +10 -0
- package/src/lib/core/tooltip/tooltip.component.scss +59 -0
- package/src/lib/core/tooltip/tooltip.component.ts +27 -0
- package/src/lib/core/tooltip/tooltip.directive.ts +137 -0
- package/src/lib/core/utils.ts +28 -0
- package/src/lib/lib-accordion/lib-accordion.component.html +15 -0
- package/src/lib/lib-accordion/lib-accordion.component.scss +23 -0
- package/src/lib/lib-accordion/lib-accordion.component.ts +17 -0
- package/src/lib/lib-back-button/lib-back-button.component.html +4 -0
- package/src/lib/lib-back-button/lib-back-button.component.scss +3 -0
- package/src/lib/lib-back-button/lib-back-button.component.ts +31 -0
- package/src/lib/lib-button/lib-button.component.html +30 -0
- package/src/lib/lib-button/lib-button.component.scss +89 -0
- package/src/lib/lib-button/lib-button.component.ts +33 -0
- package/src/lib/lib-calendar/lib-calendar.component.html +64 -0
- package/src/lib/lib-calendar/lib-calendar.component.scss +88 -0
- package/src/lib/lib-calendar/lib-calendar.component.ts +227 -0
- package/src/lib/lib-card/lib-card.component.html +23 -0
- package/src/lib/lib-card/lib-card.component.scss +64 -0
- package/src/lib/lib-card/lib-card.component.ts +32 -0
- package/src/lib/lib-checkbox/lib-checkbox.component.html +15 -0
- package/src/lib/lib-checkbox/lib-checkbox.component.scss +80 -0
- package/src/lib/lib-checkbox/lib-checkbox.component.ts +67 -0
- package/src/lib/lib-comment-input/lib-comment-input.component.html +32 -0
- package/src/lib/lib-comment-input/lib-comment-input.component.scss +28 -0
- package/src/lib/lib-comment-input/lib-comment-input.component.ts +20 -0
- package/src/lib/lib-file-upload/lib-file-upload.component.html +14 -0
- package/src/lib/lib-file-upload/lib-file-upload.component.scss +3 -0
- package/src/lib/lib-file-upload/lib-file-upload.component.ts +26 -0
- package/src/lib/lib-filter-button/lib-filter-button.component.html +46 -0
- package/src/lib/lib-filter-button/lib-filter-button.component.scss +62 -0
- package/src/lib/lib-filter-button/lib-filter-button.component.ts +45 -0
- package/src/lib/lib-image-loader/lib-image-loader.component.html +17 -0
- package/src/lib/lib-image-loader/lib-image-loader.component.scss +6 -0
- package/src/lib/lib-image-loader/lib-image-loader.component.ts +16 -0
- package/src/lib/lib-input/lib-input.component.html +32 -0
- package/src/lib/lib-input/lib-input.component.scss +72 -0
- package/src/lib/lib-input/lib-input.component.ts +62 -0
- package/src/lib/lib-loader/lib-loader.component.html +29 -0
- package/src/lib/lib-loader/lib-loader.component.scss +26 -0
- package/src/lib/lib-loader/lib-loader.component.ts +13 -0
- package/src/lib/lib-period/lib-period.component.html +41 -0
- package/src/lib/lib-period/lib-period.component.scss +77 -0
- package/src/lib/lib-period/lib-period.component.ts +131 -0
- package/src/lib/lib-radio/lib-radio.component.html +22 -0
- package/src/lib/lib-radio/lib-radio.component.scss +113 -0
- package/src/lib/lib-radio/lib-radio.component.ts +78 -0
- package/src/lib/lib-search-input/lib-search-input.component.html +48 -0
- package/src/lib/lib-search-input/lib-search-input.component.scss +86 -0
- package/src/lib/lib-search-input/lib-search-input.component.ts +94 -0
- package/src/lib/lib-select/lib-select.component.html +83 -0
- package/src/lib/lib-select/lib-select.component.scss +130 -0
- package/src/lib/lib-select/lib-select.component.ts +152 -0
- package/src/lib/lib-skeleton/lib-skeleton.component.html +11 -0
- package/src/lib/lib-skeleton/lib-skeleton.component.scss +36 -0
- package/src/lib/lib-skeleton/lib-skeleton.component.ts +41 -0
- package/src/lib/lib-sort/lib-sort.component.html +21 -0
- package/src/lib/lib-sort/lib-sort.component.scss +21 -0
- package/src/lib/lib-sort/lib-sort.component.ts +52 -0
- package/src/lib/lib-step/lib-step.component.html +4 -0
- package/src/lib/lib-step/lib-step.component.scss +23 -0
- package/src/lib/lib-step/lib-step.component.ts +14 -0
- package/src/lib/lib-svg/lib-svg.component.html +15 -0
- package/src/lib/lib-svg/lib-svg.component.scss +81 -0
- package/src/lib/lib-svg/lib-svg.component.ts +66 -0
- package/src/lib/lib-svg-icon/lib-svg-icon.component.css +0 -0
- package/src/lib/lib-svg-icon/lib-svg-icon.component.ts +58 -0
- package/src/lib/lib-tabs-fragment/lib-tabs-fragment.component.html +12 -0
- package/src/lib/lib-tabs-fragment/lib-tabs-fragment.component.scss +19 -0
- package/src/lib/lib-tabs-fragment/lib-tabs-fragment.component.ts +88 -0
- package/src/lib/lib-textarea/lib-textarea.component.html +37 -0
- package/src/lib/lib-textarea/lib-textarea.component.scss +77 -0
- package/src/lib/lib-textarea/lib-textarea.component.ts +49 -0
- package/src/lib/toast/toast-base/toast-base.component.html +7 -0
- package/src/lib/toast/toast-base/toast-base.component.scss +44 -0
- package/src/lib/toast/toast-base/toast-base.component.ts +38 -0
- package/src/lib/toast/toast-placeholder/toast-placeholder.component.ts +20 -0
- package/src/lib/toast/toast.service.ts +130 -0
- package/src/lib/utils/decorators.ts +124 -0
- package/src/public-api.ts +35 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Injectable, Renderer2, RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root',
|
|
6
|
+
})
|
|
7
|
+
export class ThemeConstructorService {
|
|
8
|
+
public get getTheme(): boolean {
|
|
9
|
+
return this.themeConfigurator.theme;
|
|
10
|
+
}
|
|
11
|
+
public isDarkTheme!: Observable<boolean>;
|
|
12
|
+
private readonly renderer: Renderer2;
|
|
13
|
+
private themeConfigurator!: ThemeConfigurator;
|
|
14
|
+
|
|
15
|
+
constructor(private rendererFactory: RendererFactory2) {
|
|
16
|
+
this.renderer = rendererFactory.createRenderer(null, null);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public setThemeConfiguratorRoot(document: Document): void {
|
|
20
|
+
this.themeConfigurator = new ThemeConfigurator(document, this.renderer);
|
|
21
|
+
this.isDarkTheme = this.themeConfigurator.isDarkThemeObservable;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public changeTheme(darkMode: boolean): void {
|
|
25
|
+
this.themeConfigurator.setTheme(darkMode);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public switchTheme(): void {
|
|
29
|
+
this.themeConfigurator.switchTheme();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class ThemeConfigurator {
|
|
34
|
+
public set theme(value: boolean) {
|
|
35
|
+
localStorage.setItem('theme', value.toString());
|
|
36
|
+
this.isDarkTheme$.next(value);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public get theme(): boolean {
|
|
40
|
+
return this.isDarkTheme$.getValue();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
private isDarkTheme$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
|
|
44
|
+
public isDarkThemeObservable: Observable<boolean> = this.isDarkTheme$.asObservable();
|
|
45
|
+
|
|
46
|
+
constructor(private document: Document, private renderer: Renderer2) {
|
|
47
|
+
this.isDarkThemeObservable.subscribe(ref => this.setTheme(ref));
|
|
48
|
+
const theme = localStorage.getItem('theme');
|
|
49
|
+
|
|
50
|
+
if (!theme) {
|
|
51
|
+
this.theme = false;
|
|
52
|
+
} else {
|
|
53
|
+
this.theme = localStorage.getItem('theme') !== 'false';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public switchTheme(): void {
|
|
58
|
+
this.theme = !this.theme;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public setTheme(isDarkMode: boolean): void {
|
|
62
|
+
if (!this.document) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const hostClass = isDarkMode ? 'theme-dark' : 'theme-light';
|
|
66
|
+
this.renderer.setAttribute(this.document.body, 'class', hostClass);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors, Validators } from '@angular/forms';
|
|
3
|
+
import { Observable, of } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
@Injectable({ providedIn: 'root' })
|
|
6
|
+
export class ValidatorsService {
|
|
7
|
+
constructor() {}
|
|
8
|
+
|
|
9
|
+
/** валидатор совпадения пароллей. При использовании указывать поля pswd & confPswd*/
|
|
10
|
+
public static passEqual(el: AbstractControl): ValidationErrors | null {
|
|
11
|
+
if (!el.get('pswd') || !el.get('oldPswd')) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
if (!(el.dirty || el.touched) || el.get('pswd')?.value === el.get('confPswd')?.value) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
passEqual: 'Пароли не совпадают',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public static passNotEqual(el: AbstractControl): ValidationErrors | null {
|
|
23
|
+
if (!el.get('pswd') || !el.get('oldPswd')) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
if (!(el.dirty || el.touched) || el.get('pswd')?.value !== el.get('oldPswd')?.value) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
passNotEqual: 'Старый и новый пароли не должны совпадать',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public static wrongLogin(): ValidationErrors {
|
|
35
|
+
return {
|
|
36
|
+
wrongMail: 'Неверный логин!',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static wrongLoginOrPswd(): ValidationErrors {
|
|
41
|
+
return {
|
|
42
|
+
wrongLogin: 'Неверный логин или пароль!',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static existLogin(): ValidationErrors {
|
|
47
|
+
return {
|
|
48
|
+
mailErr: 'Пользователь с таким адресом уже зарегистрирован.',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** валидатор имени*/
|
|
53
|
+
public static getNameValid() {
|
|
54
|
+
return [Validators.required, Validators.pattern(/^[A-ZА-Яa-zа-яЁё0-9- .]+$/), Validators.maxLength(35)];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** валидатор email*/
|
|
58
|
+
public static getMailValid(el?: AbstractControl): Observable<ValidationErrors | null> {
|
|
59
|
+
const pattern =
|
|
60
|
+
/^([A-Za-z0-9+_-]+\.)*[A-Za-z0-9+_-]+@[A-Za-z0-9+_-]+(\.[A-Za-z0-9+_-]+)*\.[A-Za-z]{2,6}$/;
|
|
61
|
+
if (!el?.value) {
|
|
62
|
+
return of({
|
|
63
|
+
required: 'Это поле обязательно для заполнения',
|
|
64
|
+
});
|
|
65
|
+
} else if (!pattern.test(el.value) && el.value !== 'test_admin' && el.value !== 'admin') {
|
|
66
|
+
return of({
|
|
67
|
+
email: 'Некорректно введены данные',
|
|
68
|
+
});
|
|
69
|
+
} else {
|
|
70
|
+
return of(null);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export function compare(field?: any, order?: number, ...args: undefined[]): any {
|
|
2
|
+
let len = args.length;
|
|
3
|
+
if (len === 0) {
|
|
4
|
+
return (a: number, b: number) => (a < b && -1) || (a > b && 1) || 0;
|
|
5
|
+
}
|
|
6
|
+
if (len === 1) {
|
|
7
|
+
switch (typeof field) {
|
|
8
|
+
case 'number':
|
|
9
|
+
return field < 0
|
|
10
|
+
? (a: number, b: number) => (a < b && 1) || (a > b && -1) || 0
|
|
11
|
+
: (a: number, b: number) => (a < b && -1) || (a > b && 1) || 0;
|
|
12
|
+
case 'string':
|
|
13
|
+
return (a: { [x: string]: string }, b: { [x: string]: string }) =>
|
|
14
|
+
(a[field] ? a[field].toLowerCase() : '' < b[field] ? b[field].toLowerCase() : '' && -1) ||
|
|
15
|
+
(a[field] ? a[field].toLowerCase() : '' > b[field] ? b[field].toLowerCase() : '' && 1) ||
|
|
16
|
+
0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (field && len === 2 && typeof order === 'number') {
|
|
20
|
+
return order < 0
|
|
21
|
+
? (
|
|
22
|
+
a: { [x: string]: any },
|
|
23
|
+
b: {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
},
|
|
26
|
+
) => (b[field] || '').toLowerCase().localeCompare((a[field] || '').toLowerCase())
|
|
27
|
+
: (
|
|
28
|
+
a: { [x: string]: any },
|
|
29
|
+
b: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
},
|
|
32
|
+
) => (a[field] || '').toLowerCase().localeCompare((b[field] || '').toLowerCase());
|
|
33
|
+
}
|
|
34
|
+
let fields: any[];
|
|
35
|
+
let orders: any[];
|
|
36
|
+
if (typeof field === 'object') {
|
|
37
|
+
fields = Object.getOwnPropertyNames(field);
|
|
38
|
+
orders = fields.map(key => field[key]);
|
|
39
|
+
len = fields.length;
|
|
40
|
+
} else {
|
|
41
|
+
fields = new Array(len);
|
|
42
|
+
orders = new Array(len);
|
|
43
|
+
for (let i = len; i--; ) {
|
|
44
|
+
fields[i] = args[i];
|
|
45
|
+
orders[i] = 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return (
|
|
49
|
+
a: { [x: string]: { toLowerCase: () => number } },
|
|
50
|
+
b: { [x: string]: { toLowerCase: () => number } },
|
|
51
|
+
) => {
|
|
52
|
+
for (let i = 0; i < len; i++) {
|
|
53
|
+
if (a[fields[i]].toLowerCase() < b[fields[i]].toLowerCase()) {
|
|
54
|
+
return orders[i];
|
|
55
|
+
}
|
|
56
|
+
if (a[fields[i]].toLowerCase() > b[fields[i]].toLowerCase()) {
|
|
57
|
+
return -orders[i];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return 0;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// export function parseDate(value) {
|
|
65
|
+
// if (value && value.length === 6) {
|
|
66
|
+
// const year = parseInt(value.slice(2, 6), 10);
|
|
67
|
+
// const month = parseInt(value.slice(0, 2), 10) - 1;
|
|
68
|
+
// return new Date(year, month);
|
|
69
|
+
// }
|
|
70
|
+
// }
|
|
71
|
+
|
|
72
|
+
export function rndRgb() {
|
|
73
|
+
const x = Math.floor(Math.random() * 256);
|
|
74
|
+
const y = Math.floor(Math.random() * 256);
|
|
75
|
+
const z = Math.floor(Math.random() * 256);
|
|
76
|
+
return 'rgb(' + x + ',' + y + ',' + z + ')';
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function setMinDate() {
|
|
80
|
+
let curYear = new Date().getFullYear();
|
|
81
|
+
let curMonth = new Date().getMonth();
|
|
82
|
+
const curDay = new Date().getDate();
|
|
83
|
+
if (curMonth < 6) {
|
|
84
|
+
curYear -= 1;
|
|
85
|
+
curMonth = curMonth - 6 + 12;
|
|
86
|
+
} else {
|
|
87
|
+
curMonth -= 6;
|
|
88
|
+
}
|
|
89
|
+
return new Date(curYear, curMonth, curDay);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function isNil(value: any): value is null | undefined {
|
|
93
|
+
return value === null || typeof value === 'undefined';
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function isString(value: any): value is string {
|
|
97
|
+
return typeof value === 'string';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function isObject(value: any): boolean {
|
|
101
|
+
return value !== null && typeof value === 'object';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function getProperty(value: { [key: string]: any }, key: string): any {
|
|
105
|
+
if (isNil(value) || !isObject(value)) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const keys: string[] = key.split('.');
|
|
110
|
+
let result: any = value[keys.shift()!];
|
|
111
|
+
|
|
112
|
+
for (const k of keys) {
|
|
113
|
+
if (isNil(result) || !isObject(result)) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
result = result[k];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function isMobile() {
|
|
124
|
+
return Android() || BlackBerry() || iOS() || Opera() || Windows();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function Android() {
|
|
128
|
+
return !!navigator.userAgent.match(/Android/i);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function BlackBerry() {
|
|
132
|
+
return !!navigator.userAgent.match(/BlackBerry/i);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function iOS() {
|
|
136
|
+
return !!navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function Opera() {
|
|
140
|
+
return !!navigator.userAgent.match(/Opera Mini/i);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function Windows() {
|
|
144
|
+
return !!navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function dataURLtoFile(dataUrl: string, filename: string) {
|
|
148
|
+
const arr = dataUrl.split(',');
|
|
149
|
+
const mime = (arr as any)[0].match(/:(.*?);/)[1];
|
|
150
|
+
const bstr = atob(arr[1]);
|
|
151
|
+
let n = bstr.length;
|
|
152
|
+
const u8arr = new Uint8Array(n);
|
|
153
|
+
|
|
154
|
+
while (n--) {
|
|
155
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return new File([u8arr], filename, { type: mime });
|
|
159
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<div class="tooltip-container">
|
|
2
|
+
@if (asString; as string) {
|
|
3
|
+
{{ string }}
|
|
4
|
+
} @if (asTemplate; as template) {
|
|
5
|
+
<ng-template [ngTemplateOutlet]="template"></ng-template>
|
|
6
|
+
}
|
|
7
|
+
<svg class="tooltip-container__triangle" width="16" height="16">
|
|
8
|
+
<polyline points="8,0 0,8 8,16"></polyline>
|
|
9
|
+
</svg>
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tooltip-container {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: block;
|
|
8
|
+
max-width: 312px;
|
|
9
|
+
padding: 6px 12px 6px 12px;
|
|
10
|
+
background: var(--white-color);
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
box-shadow: 0 14px 64px -4px #18274b0f, 0px 8px 22px -6px #18274b0f;
|
|
14
|
+
|
|
15
|
+
&__triangle {
|
|
16
|
+
width: 16px;
|
|
17
|
+
height: 16px;
|
|
18
|
+
position: absolute;
|
|
19
|
+
fill: rgb(255, 255, 255);
|
|
20
|
+
stroke: rgb(255, 255, 255);
|
|
21
|
+
box-shadow: rgba(24, 39, 75, 0.06) 0 14px 64px -4px, rgba(24, 39, 75, 0.06) 0px 8px 22px -6px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host-context(.left) {
|
|
26
|
+
//left: -35px;
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
top: calc(50% - 8px);
|
|
30
|
+
right: -8px;
|
|
31
|
+
rotate: 180deg;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host-context(.right) {
|
|
36
|
+
//right: -35px;
|
|
37
|
+
svg {
|
|
38
|
+
top: calc(50% - 8px);
|
|
39
|
+
left: -8px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host-context(.top) {
|
|
44
|
+
//margin-bottom: 16px;
|
|
45
|
+
svg {
|
|
46
|
+
right: calc(50% - 8px);
|
|
47
|
+
bottom: -8px;
|
|
48
|
+
rotate: -90deg;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host-context(.bottom) {
|
|
53
|
+
//margin-top: 16px;
|
|
54
|
+
svg {
|
|
55
|
+
right: calc(50% - 8px);
|
|
56
|
+
top: -8px;
|
|
57
|
+
rotate: 90deg;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {ChangeDetectionStrategy, Component, Inject, InjectionToken, TemplateRef} from '@angular/core';
|
|
2
|
+
import {CommonModule} from '@angular/common';
|
|
3
|
+
import {TriangleDirective} from "../directives/triangle.directive";
|
|
4
|
+
|
|
5
|
+
export type TooltipData = string | TemplateRef<void>;
|
|
6
|
+
export const TOOLTIP_DATA = new InjectionToken<TooltipData>('Подсказка');
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'dd-tooltip',
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [CommonModule, TriangleDirective],
|
|
12
|
+
templateUrl: './tooltip.component.html',
|
|
13
|
+
styleUrl: './tooltip.component.scss',
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
})
|
|
16
|
+
export class TooltipComponent {
|
|
17
|
+
public get asString(): string | false {
|
|
18
|
+
return typeof this.tooltipData === 'string' ? this.tooltipData : false;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public get asTemplate(): TemplateRef<void> | false {
|
|
22
|
+
return this.tooltipData instanceof TemplateRef ? this.tooltipData : false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
constructor(@Inject(TOOLTIP_DATA) public tooltipData: TooltipData) {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Directive,
|
|
3
|
+
ElementRef,
|
|
4
|
+
HostListener,
|
|
5
|
+
Injector,
|
|
6
|
+
Input,
|
|
7
|
+
OnDestroy,
|
|
8
|
+
Renderer2,
|
|
9
|
+
TemplateRef,
|
|
10
|
+
ViewContainerRef,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import { Overlay, OverlayRef, PositionStrategy } from '@angular/cdk/overlay';
|
|
13
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
14
|
+
import { TOOLTIP_DATA, TooltipComponent } from './tooltip.component';
|
|
15
|
+
|
|
16
|
+
@Directive({
|
|
17
|
+
selector: '[ddTooltip]',
|
|
18
|
+
standalone: true,
|
|
19
|
+
})
|
|
20
|
+
export class TooltipDirective implements OnDestroy {
|
|
21
|
+
@Input() public ddTooltip!: string | TemplateRef<void>;
|
|
22
|
+
@Input() public withClick = false;
|
|
23
|
+
private overlayRef: OverlayRef | null = null;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
private element: ElementRef,
|
|
27
|
+
private overlay: Overlay,
|
|
28
|
+
private viewContainer: ViewContainerRef,
|
|
29
|
+
private rdr: Renderer2,
|
|
30
|
+
) {}
|
|
31
|
+
|
|
32
|
+
@HostListener('document:click', ['$event'])
|
|
33
|
+
public onClick(targetElement: Event) {
|
|
34
|
+
const clickedInside = this.element.nativeElement.contains(targetElement.target);
|
|
35
|
+
|
|
36
|
+
if (!clickedInside) {
|
|
37
|
+
if (this.overlayRef?.hasAttached() === true) {
|
|
38
|
+
this.overlayRef?.detach();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@HostListener('click')
|
|
44
|
+
public showTooltipOnClick(): void {
|
|
45
|
+
const overlay = document.getElementsByClassName('cdk-overlay-container')?.[0];
|
|
46
|
+
if (overlay && overlay.firstChild) {
|
|
47
|
+
overlay.removeChild(overlay.firstChild);
|
|
48
|
+
}
|
|
49
|
+
if (this.overlayRef?.hasAttached() === true) {
|
|
50
|
+
this.overlayRef?.detach();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.attachTooltip();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@HostListener('mouseenter')
|
|
58
|
+
@HostListener('focus')
|
|
59
|
+
public showTooltip(): void {
|
|
60
|
+
if (this.withClick) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (this.overlayRef?.hasAttached() === true) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
this.attachTooltip();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@HostListener('mouseleave')
|
|
71
|
+
@HostListener('blur')
|
|
72
|
+
public hideTooltip(): void {
|
|
73
|
+
if (this.withClick) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (this.overlayRef?.hasAttached() === true) {
|
|
77
|
+
this.overlayRef?.detach();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public ngOnDestroy(): void {
|
|
82
|
+
this.overlayRef?.dispose();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private attachTooltip(): void {
|
|
86
|
+
if (this.overlayRef === null) {
|
|
87
|
+
const positionStrategy = this.getPositionStrategy();
|
|
88
|
+
this.overlayRef = this.overlay.create({ positionStrategy });
|
|
89
|
+
}
|
|
90
|
+
const injector = Injector.create({
|
|
91
|
+
providers: [
|
|
92
|
+
{
|
|
93
|
+
provide: TOOLTIP_DATA,
|
|
94
|
+
useValue: this.ddTooltip,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
const component = new ComponentPortal(TooltipComponent, this.viewContainer, injector);
|
|
99
|
+
this.overlayRef.attach(component);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private getPositionStrategy(): PositionStrategy {
|
|
103
|
+
return this.overlay
|
|
104
|
+
.position()
|
|
105
|
+
.flexibleConnectedTo(this.element)
|
|
106
|
+
.withPositions([
|
|
107
|
+
{
|
|
108
|
+
originX: 'start',
|
|
109
|
+
originY: 'center',
|
|
110
|
+
overlayX: 'start',
|
|
111
|
+
overlayY: 'center',
|
|
112
|
+
panelClass: 'right',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
originX: 'center',
|
|
116
|
+
originY: 'bottom',
|
|
117
|
+
overlayX: 'center',
|
|
118
|
+
overlayY: 'top',
|
|
119
|
+
panelClass: 'bottom',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
originX: 'center',
|
|
123
|
+
originY: 'top',
|
|
124
|
+
overlayX: 'center',
|
|
125
|
+
overlayY: 'bottom',
|
|
126
|
+
panelClass: 'top',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
originX: 'end',
|
|
130
|
+
originY: 'center',
|
|
131
|
+
overlayX: 'end',
|
|
132
|
+
overlayY: 'center',
|
|
133
|
+
panelClass: 'left',
|
|
134
|
+
},
|
|
135
|
+
]);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function isMobile() {
|
|
2
|
+
return Android() || BlackBerry() || iOS() || Opera() || Windows();
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export function Android() {
|
|
6
|
+
return !!navigator.userAgent.match(/Android/i);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function BlackBerry() {
|
|
10
|
+
return !!navigator.userAgent.match(/BlackBerry/i);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function iOS() {
|
|
14
|
+
return !!navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function Opera() {
|
|
18
|
+
return !!navigator.userAgent.match(/Opera Mini/i);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function Windows() {
|
|
22
|
+
return !!navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const objConverting = ([name, data]: [string, string]) => ({ name, data });
|
|
26
|
+
|
|
27
|
+
export const iconsToArray = (obj: { [key: string]: string }): { name: string, data: string }[] =>
|
|
28
|
+
Object.entries(obj).map(objConverting);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="accordion">
|
|
2
|
+
<div (click)="showAccordionContent = !showAccordionContent" class="accordion__header">
|
|
3
|
+
@if (accTitle) {
|
|
4
|
+
<div [innerHTML]="accTitle" class="accordion__title"></div>
|
|
5
|
+
}
|
|
6
|
+
<div>
|
|
7
|
+
<dd-lib-svg-icon class="cup" icon="{{ showAccordionContent ? 'minus' : 'plus' }}"></dd-lib-svg-icon>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
@if (showAccordionContent) {
|
|
11
|
+
<div class="mt-8">
|
|
12
|
+
<ng-content></ng-content>
|
|
13
|
+
</div>
|
|
14
|
+
}
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//@import '../../../assets/scss/mixins';
|
|
2
|
+
//@import '../../../assets/scss/vars';
|
|
3
|
+
//
|
|
4
|
+
//.accordion {
|
|
5
|
+
// &__header {
|
|
6
|
+
// display: flex;
|
|
7
|
+
// align-items: center;
|
|
8
|
+
// justify-content: space-between;
|
|
9
|
+
// cursor: pointer;
|
|
10
|
+
// }
|
|
11
|
+
//
|
|
12
|
+
// &__title {
|
|
13
|
+
// font-weight: 500;
|
|
14
|
+
// font-size: 20px;
|
|
15
|
+
// line-height: 28px;
|
|
16
|
+
// color: var(--light-black-color);
|
|
17
|
+
//
|
|
18
|
+
// @include below($mobile) {
|
|
19
|
+
// font-size: 16px;
|
|
20
|
+
// line-height: 24px;
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
23
|
+
//}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
|
|
2
|
+
import {NgOptimizedImage} from '@angular/common';
|
|
3
|
+
import {SafeHtml} from '@angular/platform-browser';
|
|
4
|
+
import {LibSvgIconComponent} from "../lib-svg-icon/lib-svg-icon.component";
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'dd-lib-accordion',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [NgOptimizedImage, LibSvgIconComponent],
|
|
10
|
+
templateUrl: './lib-accordion.component.html',
|
|
11
|
+
styleUrl: './lib-accordion.component.scss',
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
})
|
|
14
|
+
export class LibAccordionComponent {
|
|
15
|
+
@Input() public accTitle: string | SafeHtml | undefined;
|
|
16
|
+
public showAccordionContent: boolean | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
|
|
2
|
+
import {Location, NgOptimizedImage} from '@angular/common';
|
|
3
|
+
import {Router} from '@angular/router';
|
|
4
|
+
import {LibSvgIconComponent} from "../lib-svg-icon/lib-svg-icon.component";
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'dd-lib-back-button',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [NgOptimizedImage, LibSvgIconComponent],
|
|
10
|
+
templateUrl: './lib-back-button.component.html',
|
|
11
|
+
styleUrl: './lib-back-button.component.scss',
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
})
|
|
14
|
+
export class LibBackButtonComponent {
|
|
15
|
+
@Input() public backTitle = 'Назад';
|
|
16
|
+
@Input() public rout: string | undefined;
|
|
17
|
+
|
|
18
|
+
constructor(private location: Location, private router: Router) {}
|
|
19
|
+
|
|
20
|
+
public onBack(): void {
|
|
21
|
+
if (this.rout) {
|
|
22
|
+
this.router.navigate([this.rout]);
|
|
23
|
+
} else {
|
|
24
|
+
try {
|
|
25
|
+
this.location.back();
|
|
26
|
+
} catch (err) {
|
|
27
|
+
this.router.navigate(['/']);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|