@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,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
Input,
|
|
7
|
+
OnInit,
|
|
8
|
+
Output,
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import {FormsModule} from '@angular/forms';
|
|
11
|
+
import {NgOptimizedImage} from '@angular/common';
|
|
12
|
+
import {LibCommonInputTextComponent} from '../common/lib-common-input-text';
|
|
13
|
+
import {LibCardComponent} from '../lib-card/lib-card.component';
|
|
14
|
+
import {of, Subject} from 'rxjs';
|
|
15
|
+
import {debounceTime, delay, map, mergeMap, takeUntil} from 'rxjs/operators';
|
|
16
|
+
import {DestroyService, HighlightPipe, SafePipe} from "../core";
|
|
17
|
+
import {LibSvgIconComponent} from "../lib-svg-icon/lib-svg-icon.component";
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'dd-lib-search-input',
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [FormsModule, NgOptimizedImage, LibCardComponent, HighlightPipe, SafePipe, LibSvgIconComponent],
|
|
23
|
+
templateUrl: './lib-search-input.component.html',
|
|
24
|
+
styleUrl: './lib-search-input.component.scss',
|
|
25
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
providers: [DestroyService],
|
|
27
|
+
})
|
|
28
|
+
export class LibSearchInputComponent<T> extends LibCommonInputTextComponent implements OnInit {
|
|
29
|
+
@Input() public keyTitle = 'title';
|
|
30
|
+
@Input() public keyDesc = 'description';
|
|
31
|
+
@Input() public styleInput: 'round' | 'standard' = 'standard';
|
|
32
|
+
@Input() public inputStyle: 'white' | 'gray' = 'gray';
|
|
33
|
+
@Input() public searchData: T[] | null | undefined;
|
|
34
|
+
@Input() public debounceTime = 100;
|
|
35
|
+
@Input() public delay = 0;
|
|
36
|
+
@Input() public idClose: string | undefined;
|
|
37
|
+
@Output() public keyupEvent = new EventEmitter<string>();
|
|
38
|
+
@Output() public selectedItem = new EventEmitter();
|
|
39
|
+
public keyUp = new Subject<KeyboardEvent>();
|
|
40
|
+
|
|
41
|
+
constructor(
|
|
42
|
+
private destroy$: DestroyService,
|
|
43
|
+
changeDetection: ChangeDetectorRef,
|
|
44
|
+
private cdr: ChangeDetectorRef,
|
|
45
|
+
) {
|
|
46
|
+
super(changeDetection);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public ngOnInit(): void {
|
|
50
|
+
if (this.commitOnInput) {
|
|
51
|
+
this.keyUp
|
|
52
|
+
.pipe(
|
|
53
|
+
map(event => (event.target as HTMLInputElement)?.value),
|
|
54
|
+
debounceTime(this.debounceTime),
|
|
55
|
+
// distinctUntilChanged(), надо ли?
|
|
56
|
+
mergeMap(search => of(search).pipe(delay(this.delay))),
|
|
57
|
+
takeUntil(this.destroy$),
|
|
58
|
+
)
|
|
59
|
+
.subscribe(str => {
|
|
60
|
+
this.keyupEvent.emit(str);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public override forceChange(): void {
|
|
66
|
+
if (!this.commitOnInput) {
|
|
67
|
+
this.keyupEvent.emit(this.value);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public onClear(noEmit?: boolean): void {
|
|
72
|
+
this.value = '';
|
|
73
|
+
if (!noEmit) {
|
|
74
|
+
this.cleared.emit();
|
|
75
|
+
this.keyupEvent.emit('');
|
|
76
|
+
}
|
|
77
|
+
this.inputSearchElement?.nativeElement.focus();
|
|
78
|
+
this.cdr.detectChanges();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public onClickSearchItem(item: T): void {
|
|
82
|
+
this.onClear();
|
|
83
|
+
this.selectedItem.emit(item);
|
|
84
|
+
this.value = this.getTitle(item);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public getTitle(item: T): string {
|
|
88
|
+
return item[this.keyTitle as keyof typeof item] as string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public getDesc(item: T): string {
|
|
92
|
+
return item[this.keyDesc as keyof typeof item] as string;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<div class="lib-select" id="lib-select-{{ selectId }}">
|
|
2
|
+
<label [for]="id" class="lib-select__title">
|
|
3
|
+
{{ label }}
|
|
4
|
+
@if (required) {
|
|
5
|
+
<dd-lib-svg-icon icon="error_hint"></dd-lib-svg-icon>
|
|
6
|
+
}
|
|
7
|
+
</label>
|
|
8
|
+
|
|
9
|
+
<div class="pos-relative">
|
|
10
|
+
<input
|
|
11
|
+
#select
|
|
12
|
+
(change)="handleChange()"
|
|
13
|
+
(click)="notifyFocusEvent($event)"
|
|
14
|
+
(input)="handleInput($event)"
|
|
15
|
+
[(ngModel)]="inputValue"
|
|
16
|
+
[attr.id]="selectId"
|
|
17
|
+
[attr.name]="name"
|
|
18
|
+
[attr.placeholder]="placeholder"
|
|
19
|
+
[attr.tabIndex]="tabIndex"
|
|
20
|
+
[attr.type]="'text'"
|
|
21
|
+
[class.focused]="focused"
|
|
22
|
+
[class.invalid]="invalid"
|
|
23
|
+
[disabled]="disabled"
|
|
24
|
+
[readOnly]="readOnly"
|
|
25
|
+
[title]="inputValue"
|
|
26
|
+
class="text-select" />
|
|
27
|
+
<!-- (blur)="notifyFocusEvent($event)"-->
|
|
28
|
+
@if (!checkedItem) {
|
|
29
|
+
<dd-lib-svg-icon
|
|
30
|
+
(click)="notifyFocusEvent($event)"
|
|
31
|
+
[class.black-svg]="isShownList"
|
|
32
|
+
[class.disabled]="disabled"
|
|
33
|
+
[class.gray-svg]="!isShownList"
|
|
34
|
+
[class.up]="isShownList"
|
|
35
|
+
id="chevron-{{ selectId }}" class="chevron" icon="down_chevron"></dd-lib-svg-icon>
|
|
36
|
+
|
|
37
|
+
} @else {
|
|
38
|
+
<dd-lib-svg-icon
|
|
39
|
+
(click)="selectItem(checkedItem)"
|
|
40
|
+
class="clear"
|
|
41
|
+
id="chevron-{{ selectId }}" icon="clear"></dd-lib-svg-icon>
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
@if (errorText && invalid) {
|
|
47
|
+
<div class="lib-select__error">{{ errorText }}</div>
|
|
48
|
+
} @if (isShownList) {
|
|
49
|
+
<div
|
|
50
|
+
(ddClickOutside)="notifyFocusEvent($event)"
|
|
51
|
+
[elements]="['lib-select-' + selectId, 'chevron' + selectId]"
|
|
52
|
+
class="select-list-wrapper">
|
|
53
|
+
@if (data?.length) { @for (item of data | filterByKey: filterList.bind(this); track item) {
|
|
54
|
+
<div
|
|
55
|
+
(click)="selectItem(item)"
|
|
56
|
+
[class.active]="checkedItem?.[keyValue!] === item[keyValue!] || checkedItem === item"
|
|
57
|
+
class="select-data">
|
|
58
|
+
@if (!keyDesc && !keyTitle) {
|
|
59
|
+
<div [innerHTML]="item | highlight: inputValue | safe: 'html'" class="select-data__title"></div>
|
|
60
|
+
} @if (keyTitle) {
|
|
61
|
+
<div
|
|
62
|
+
[innerHTML]="item[keyTitle!] | highlight: inputValue | safe: 'html'"
|
|
63
|
+
class="select-data__title"></div>
|
|
64
|
+
} @if (keyDesc) {
|
|
65
|
+
<div
|
|
66
|
+
[innerHTML]="item[keyDesc!] | highlight: inputValue | safe: 'html'"
|
|
67
|
+
[title]="item[keyDesc]"
|
|
68
|
+
class="select-data__desc"></div>
|
|
69
|
+
} @if (checkedItem?.[keyValue!] === item?.[keyValue!] || checkedItem === item) {
|
|
70
|
+
<dd-lib-svg-icon
|
|
71
|
+
(click)="selectItem(checkedItem)"
|
|
72
|
+
class="checked"
|
|
73
|
+
id="chevron-{{ selectId }}" icon="check_green"></dd-lib-svg-icon>
|
|
74
|
+
}
|
|
75
|
+
</div>
|
|
76
|
+
} } @else {
|
|
77
|
+
<div class="select-loader">
|
|
78
|
+
<dd-lib-loader></dd-lib-loader>
|
|
79
|
+
</div>
|
|
80
|
+
}
|
|
81
|
+
</div>
|
|
82
|
+
}
|
|
83
|
+
</div>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.lib-select {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
input {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 48px;
|
|
7
|
+
padding: 15px 28px 15px 16px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
border: 1px solid var(--input-border-color);
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
border-color: var(--input-active-border-colort);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
border-color: var(--input-active-border-colort);
|
|
21
|
+
box-shadow: var(--input-active-border-shadow);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
border: none;
|
|
26
|
+
background-color: var(--input-disable-input);
|
|
27
|
+
color: var(--input-disable-text);
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
|
|
30
|
+
&::placeholder {
|
|
31
|
+
color: var(--input-placeholder);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.invalid {
|
|
36
|
+
border-color: var(--input-error-border-color);
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
border-color: var(--input-error-border-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:focus {
|
|
43
|
+
border-color: var(--input-error-border-color);
|
|
44
|
+
box-shadow: var(--input-error-border-shadow);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.clear {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
position: absolute;
|
|
52
|
+
right: 8px;
|
|
53
|
+
top: 12px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.chevron {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
position: absolute;
|
|
59
|
+
right: 16px;
|
|
60
|
+
top: 10px;
|
|
61
|
+
|
|
62
|
+
&.up {
|
|
63
|
+
transform: rotate(180deg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__title {
|
|
68
|
+
margin-bottom: 4px;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 24px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__error {
|
|
76
|
+
color: var(--primary-red-color);
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
line-height: 10px;
|
|
80
|
+
margin-top: 2px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.select-list-wrapper {
|
|
84
|
+
position: absolute;
|
|
85
|
+
display: block;
|
|
86
|
+
top: 80px;
|
|
87
|
+
z-index: 100;
|
|
88
|
+
width: 100%;
|
|
89
|
+
max-height: 300px;
|
|
90
|
+
overflow: auto;
|
|
91
|
+
border-radius: 8px;
|
|
92
|
+
box-shadow: var(--main-card-shadow);
|
|
93
|
+
background-color: var(--main-card-color);
|
|
94
|
+
|
|
95
|
+
.select-data {
|
|
96
|
+
padding: 12px 16px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
position: relative;
|
|
99
|
+
|
|
100
|
+
&__desc {
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
line-height: 24px;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
text-wrap: nowrap;
|
|
106
|
+
padding-top: 2px;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
color: var(--second-gray-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:hover {
|
|
112
|
+
background: var(--select-act-hov-bgc);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.active {
|
|
116
|
+
background: var(--select-act-hov-bgc);
|
|
117
|
+
|
|
118
|
+
.checked {
|
|
119
|
+
position: absolute;
|
|
120
|
+
right: 16px;
|
|
121
|
+
top: 10px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.select-loader {
|
|
127
|
+
padding: 24px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
forwardRef,
|
|
6
|
+
Host,
|
|
7
|
+
Input,
|
|
8
|
+
OnInit,
|
|
9
|
+
Optional,
|
|
10
|
+
SkipSelf,
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import {NgOptimizedImage} from '@angular/common';
|
|
13
|
+
import {
|
|
14
|
+
ControlContainer,
|
|
15
|
+
ControlValueAccessor,
|
|
16
|
+
FormsModule,
|
|
17
|
+
NG_VALUE_ACCESSOR,
|
|
18
|
+
ReactiveFormsModule,
|
|
19
|
+
} from '@angular/forms';
|
|
20
|
+
import {LibCommonInputTextComponent} from '../common/lib-common-input-text';
|
|
21
|
+
import {LibCardComponent} from '../lib-card/lib-card.component';
|
|
22
|
+
import {LibLoaderComponent} from '../lib-loader/lib-loader.component';
|
|
23
|
+
import {LibSvgIconComponent} from "../lib-svg-icon/lib-svg-icon.component";
|
|
24
|
+
import {ClickOutsideDirective, FilterByKeyPipe, HighlightPipe, SafePipe} from "../core";
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'dd-lib-select',
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [
|
|
30
|
+
NgOptimizedImage,
|
|
31
|
+
ReactiveFormsModule,
|
|
32
|
+
FormsModule,
|
|
33
|
+
HighlightPipe,
|
|
34
|
+
LibCardComponent,
|
|
35
|
+
SafePipe,
|
|
36
|
+
ClickOutsideDirective,
|
|
37
|
+
LibLoaderComponent,
|
|
38
|
+
FilterByKeyPipe,
|
|
39
|
+
LibSvgIconComponent,
|
|
40
|
+
],
|
|
41
|
+
templateUrl: './lib-select.component.html',
|
|
42
|
+
styleUrl: './lib-select.component.scss',
|
|
43
|
+
providers: [
|
|
44
|
+
{
|
|
45
|
+
provide: NG_VALUE_ACCESSOR,
|
|
46
|
+
useExisting: forwardRef(() => LibSelectComponent),
|
|
47
|
+
multi: true,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
|
+
})
|
|
52
|
+
export class LibSelectComponent<T>
|
|
53
|
+
extends LibCommonInputTextComponent
|
|
54
|
+
implements OnInit, ControlValueAccessor
|
|
55
|
+
{
|
|
56
|
+
public static idCounter = 1;
|
|
57
|
+
|
|
58
|
+
@Input() public selectId: string | undefined;
|
|
59
|
+
@Input() public data: any | undefined;
|
|
60
|
+
@Input() public keyTitle: string | undefined;
|
|
61
|
+
@Input() public keyDesc: string | undefined;
|
|
62
|
+
@Input() public keyValue: string | undefined;
|
|
63
|
+
@Input() public override placeholder = 'Выберите из списка';
|
|
64
|
+
public checkedItem: any;
|
|
65
|
+
public inputValue: string | undefined;
|
|
66
|
+
public searchValue: string | undefined;
|
|
67
|
+
public isShownList: boolean | undefined;
|
|
68
|
+
|
|
69
|
+
constructor(
|
|
70
|
+
changeDetection: ChangeDetectorRef,
|
|
71
|
+
@Optional() @Host() @SkipSelf() private controlContainer: ControlContainer,
|
|
72
|
+
) {
|
|
73
|
+
super(changeDetection);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public ngOnInit(): void {
|
|
77
|
+
if (!this.selectId) {
|
|
78
|
+
this.selectId = 'dd-select-' + LibSelectComponent.idCounter++;
|
|
79
|
+
}
|
|
80
|
+
if (this.keyTitle && !this.keyValue) {
|
|
81
|
+
this.keyValue = this.keyTitle;
|
|
82
|
+
}
|
|
83
|
+
this.control =
|
|
84
|
+
this.controlContainer && this.formControlName
|
|
85
|
+
? this.controlContainer?.control?.get(this.formControlName)
|
|
86
|
+
: null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public override registerOnChange(fn: any): void {
|
|
90
|
+
this.propagateChange = fn;
|
|
91
|
+
super.registerOnChange(fn)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public override registerOnTouched(fn: any): void {
|
|
95
|
+
this.onTouchedCallback = fn;
|
|
96
|
+
super.registerOnTouched(fn)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public override handleInput(e: Event): void {
|
|
100
|
+
this.isShownList = true;
|
|
101
|
+
this.searchValue = this.inputValue;
|
|
102
|
+
super.handleInput(e)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public override notifyFocusEvent(e: Event): void {
|
|
106
|
+
if (!this.disabled) {
|
|
107
|
+
this.isShownList = !this.isShownList;
|
|
108
|
+
}
|
|
109
|
+
super.notifyFocusEvent(e)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public writeValue(value: any): void {
|
|
113
|
+
this.value = value;
|
|
114
|
+
this.inputValue = value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public selectItem(item: any): void {
|
|
118
|
+
if (typeof item === 'string') {
|
|
119
|
+
if (!this.checkedItem) {
|
|
120
|
+
this.checkedItem = item;
|
|
121
|
+
this.inputValue = item;
|
|
122
|
+
this.value = item;
|
|
123
|
+
this.propagateChange(this.value);
|
|
124
|
+
} else {
|
|
125
|
+
this.checkedItem = null;
|
|
126
|
+
this.inputValue = undefined;
|
|
127
|
+
this.value = undefined;
|
|
128
|
+
this.propagateChange(undefined);
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
if (!this.checkedItem || item[this.keyValue!] !== this.checkedItem?.[this.keyValue!]) {
|
|
132
|
+
this.checkedItem = item;
|
|
133
|
+
this.inputValue = this.checkedItem[this.keyTitle!];
|
|
134
|
+
this.value = item[this.keyValue!];
|
|
135
|
+
this.propagateChange(this.value);
|
|
136
|
+
} else {
|
|
137
|
+
this.checkedItem = null;
|
|
138
|
+
this.inputValue = undefined;
|
|
139
|
+
this.value = undefined;
|
|
140
|
+
this.propagateChange(undefined);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
this.searchValue = undefined;
|
|
144
|
+
this.isShownList = false;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public filterList(item: any): any {
|
|
148
|
+
return item[this.keyTitle!]?.toLowerCase().includes(this.searchValue?.toLowerCase() || '');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
private propagateChange(_value: any) {}
|
|
152
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@if (_skeleton && _plugs.length) { @for (plug of _plugs; track plug) {
|
|
2
|
+
<div
|
|
3
|
+
[class.skeleton]="_skeleton"
|
|
4
|
+
[style.height]="_skeleton ? sHeight : ''"
|
|
5
|
+
[style.margin-bottom]="sMb"
|
|
6
|
+
class="skelet full-width full-height"></div>
|
|
7
|
+
} } @else {
|
|
8
|
+
<div [style.height]="_skeleton ? sHeight : ''" [class.skeleton]="_skeleton" [ddAutoHeight]="deepParent">
|
|
9
|
+
<ng-content></ng-content>
|
|
10
|
+
</div>
|
|
11
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
min-width: 100%;
|
|
3
|
+
}
|
|
4
|
+
.skeleton {
|
|
5
|
+
position: relative;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
min-height: 100%;
|
|
8
|
+
&::after {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
transform: translateX(-100%);
|
|
15
|
+
background-image: linear-gradient(
|
|
16
|
+
90deg,
|
|
17
|
+
rgba(#d0cdcd, 0) 0,
|
|
18
|
+
rgba(#d0cdcd, 0.2) 20%,
|
|
19
|
+
rgba(#d0cdcd, 0.5) 60%,
|
|
20
|
+
rgba(#d0cdcd, 0)
|
|
21
|
+
);
|
|
22
|
+
animation: shimmer 2s infinite;
|
|
23
|
+
content: '';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes shimmer {
|
|
27
|
+
100% {
|
|
28
|
+
transform: translateX(100%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.skelet {
|
|
33
|
+
min-height: 100%;
|
|
34
|
+
border-radius: 24px;
|
|
35
|
+
//margin-bottom: 12px;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input } from '@angular/core';
|
|
2
|
+
import {AutoHeightDirective} from "../core";
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'dd-lib-skeleton',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [AutoHeightDirective],
|
|
8
|
+
templateUrl: './lib-skeleton.component.html',
|
|
9
|
+
styleUrl: './lib-skeleton.component.scss',
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
})
|
|
12
|
+
export class LibSkeletonComponent {
|
|
13
|
+
@Input() public deepParent: number | undefined;
|
|
14
|
+
@Input() public sHeight: string | undefined = '200px';
|
|
15
|
+
@Input() public sMb: string | undefined;
|
|
16
|
+
|
|
17
|
+
@Input()
|
|
18
|
+
public set skeleton(s: boolean | undefined) {
|
|
19
|
+
if (s === true) {
|
|
20
|
+
this._skeleton = s;
|
|
21
|
+
this.cdr.detectChanges();
|
|
22
|
+
} else {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
this._skeleton = s;
|
|
25
|
+
this.cdr.detectChanges();
|
|
26
|
+
}, 1000);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
@Input() public set plugs(n: number | undefined) {
|
|
30
|
+
if (n && n > 0) {
|
|
31
|
+
this._plugs = Array.from(Array(n).keys());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public _plugs: number[] = [];
|
|
36
|
+
public _skeleton: boolean | undefined;
|
|
37
|
+
|
|
38
|
+
constructor(private cdr: ChangeDetectorRef) {}
|
|
39
|
+
|
|
40
|
+
protected readonly length = length;
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div class="pos-relative" id="js-sort-wrapper">
|
|
2
|
+
<div (click)="showSortList()" class="d-flex align-center cup">
|
|
3
|
+
<div class="text-plain green mr-12">Сортировка</div>
|
|
4
|
+
<div>
|
|
5
|
+
<dd-lib-svg-icon icon="sort"></dd-lib-svg-icon>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
@if (showSort) {
|
|
9
|
+
<div (ddClickOutside)="showSort = false" [elements]="['js-sort-wrapper']" class="sort-list-container">
|
|
10
|
+
<dd-lib-card type="small">
|
|
11
|
+
<div class="sort-list-container__list">
|
|
12
|
+
@for (item of sortItems; track item) {
|
|
13
|
+
<div (click)="onSort(item.value)" [class.green]="sort === item.value" class="mb-12 text-plain">
|
|
14
|
+
{{ item.name }}
|
|
15
|
+
</div>
|
|
16
|
+
}
|
|
17
|
+
</div>
|
|
18
|
+
</dd-lib-card>
|
|
19
|
+
</div>
|
|
20
|
+
}
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.sort-list-container {
|
|
6
|
+
position: absolute;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
top: 36px;
|
|
9
|
+
|
|
10
|
+
&__list {
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
|
|
13
|
+
.text-plain {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
color: var(--primary-green-color);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
|
2
|
+
import {LibCardComponent} from '../lib-card/lib-card.component';
|
|
3
|
+
import {NgOptimizedImage} from '@angular/common';
|
|
4
|
+
import {ClickOutsideDirective} from "../core";
|
|
5
|
+
import {LibSvgIconComponent} from "../lib-svg-icon/lib-svg-icon.component";
|
|
6
|
+
|
|
7
|
+
export interface ISort {
|
|
8
|
+
value: string;
|
|
9
|
+
name: string;
|
|
10
|
+
default?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const DefaultSort = [
|
|
14
|
+
{ name: 'По возрастанию', value: 'asc', default: true },
|
|
15
|
+
{ name: 'По убыванию', value: 'desc' },
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
@Component({
|
|
19
|
+
selector: 'dd-lib-sort',
|
|
20
|
+
standalone: true,
|
|
21
|
+
templateUrl: './lib-sort.component.html',
|
|
22
|
+
styleUrls: ['./lib-sort.component.scss'],
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
imports: [ClickOutsideDirective, LibCardComponent, NgOptimizedImage, LibSvgIconComponent],
|
|
25
|
+
})
|
|
26
|
+
export class LibSortComponent implements OnInit {
|
|
27
|
+
@Input() public sortItems: ISort[] = DefaultSort;
|
|
28
|
+
@Output() public sortEvent = new EventEmitter<string>();
|
|
29
|
+
|
|
30
|
+
public sort: string | undefined;
|
|
31
|
+
public showSort: boolean | undefined;
|
|
32
|
+
|
|
33
|
+
public ngOnInit(): void {
|
|
34
|
+
if (this.sortItems?.length) {
|
|
35
|
+
this.sort = this.sortItems?.find(f => f.default)?.value || this.sortItems[0]?.value;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public onSort(field: string): void {
|
|
40
|
+
if (field !== this.sort) {
|
|
41
|
+
this.sort = field;
|
|
42
|
+
this.sortEvent.emit(field);
|
|
43
|
+
this.showSort = false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public showSortList(): void {
|
|
48
|
+
if (this.sortItems?.length) {
|
|
49
|
+
this.showSort = !this.showSort;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import '../../../assets/scss/mixins';
|
|
2
|
+
@import '../../../assets/scss/vars';
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.step-badge {
|
|
9
|
+
padding: 8px 32px 8px 32px;
|
|
10
|
+
border-radius: 40px;
|
|
11
|
+
background-color: var(--low-bgc-color);
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: baseline;
|
|
14
|
+
|
|
15
|
+
@include below($mobile) {
|
|
16
|
+
width: 100%;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& span {
|
|
21
|
+
color: var(--primary-green-color);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'dd-lib-step',
|
|
5
|
+
standalone: true,
|
|
6
|
+
imports: [],
|
|
7
|
+
templateUrl: './lib-step.component.html',
|
|
8
|
+
styleUrl: './lib-step.component.scss',
|
|
9
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
+
})
|
|
11
|
+
export class LibStepComponent {
|
|
12
|
+
@Input() public step = 1;
|
|
13
|
+
@Input() public name = 'шаг';
|
|
14
|
+
}
|