{"id":293045,"date":"2019-08-06T15:01:11","date_gmt":"2019-08-06T15:01:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293045"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293045","title":{"rendered":"Material \u043a\u0430\u043a WebComponents"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a \u044f \u0443\u0436\u0435 \u043e\u0442\u043c\u0435\u0447\u0430\u043b \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/461153\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u0435\u0434\u0443\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 WebComponents \u043e\u0431\u0435\u0440\u0442\u043e\u043a \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 API. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435, \u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0435\u0433\u043e. \u0422\u0430\u043a\u0436\u0435 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044f \u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0447\u0435\u0440\u0435\u0437 API \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. <\/p>\n<p>  \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0432\u043d\u043e \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b\u0439 \u0433\u0440\u0438\u0434 \u0434\u043b\u044f \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0442\u0430\u043a\u043e\u0432\u043e\u0433\u043e, \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e, \u043d\u043e \u043f\u0440\u0438 \u0442\u043e\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 Polymer \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c. \u0412 \u043d\u0435\u0434\u0430\u043b\u0435\u043a\u043e\u043c \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u0434\u043e \u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0441 material\/cdk. \u0422\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0438 \u043f\u0435\u0439\u0434\u0436\u0435\u0440 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438\u043b\u0438 \u043c\u0440\u0430\u0447\u043d\u044b\u0445 \u0445\u0443\u043a\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0435\u0449\u0435 \u043d\u0435 \u0443\u0441\u043f\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u0432\u043e\u0442 \u043f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0440\u0435\u0448\u0438\u043b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e-\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 material \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0430\u043d\u0434\u043b \u0441 \u043a\u043e\u0434\u043e\u043c \u0438 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0440\u0435\u0441\u0443\u0440\u0441 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438, \u043f\u0440\u044f\u043c\u043e \u043a\u0430\u043a \u0443 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 VueJS. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0435 angular\/material \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"xml\">&lt;link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/material-components-web@latest\/dist\/material-components-web.min.css\"&gt; &lt;script src=\"https:\/\/unpkg.com\/material-components-web@latest\/dist\/material-components-web.min.js\"&gt;&lt;\/script&gt;  &lt;div class=\"mdc-text-field\"&gt;    &lt;input type=\"text\" id=\"my-text-field\" class=\"mdc-text-field__input\"&gt;    &lt;label class=\"mdc-floating-label\" for=\"my-text-field\"&gt;Label&lt;\/label&gt;    &lt;div class=\"mdc-line-ripple\"&gt;&lt;\/div&gt; &lt;\/div&gt;  &lt;script&gt;    mdc.textField.MDCTextField.attachTo(document.querySelector('.mdc-text-field')); &lt;\/script&gt; <\/code><\/pre>\n<p>  \u0418 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e <a href=\"https:\/\/github.com\/material-components\/material-components-web\/tree\/master\/packages\/mdc-data-table\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<pre><code class=\"xml\">&lt;div class=\"mdc-text-field\"&gt;    &lt;input type=\"text\" id=\"my-text-field\" class=\"mdc-text-field__input\"&gt;    &lt;label class=\"mdc-floating-label\" for=\"my-text-field\"&gt;Label&lt;\/label&gt;    &lt;div class=\"mdc-line-ripple\"&gt;&lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"mdc-data-table\"&gt;    &lt;table class=\"mdc-data-table__table\" aria-label=\"Dessert calories\"&gt;        &lt;thead&gt;        &lt;tr class=\"mdc-data-table__header-row\"&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Dessert&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Carbs (g)&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Protein (g)&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Comments&lt;\/th&gt;        &lt;\/tr&gt;        &lt;\/thead&gt;        &lt;tbody class=\"mdc-data-table__content\"&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Frozen yogurt&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;24&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;4.0&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Super tasty&lt;\/td&gt;        &lt;\/tr&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Ice cream sandwich&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;37&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;4.3&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;I like ice cream more&lt;\/td&gt;        &lt;\/tr&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Eclair&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;24&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;6.0&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;New filing flavor&lt;\/td&gt;        &lt;\/tr&gt;        &lt;\/tbody&gt;    &lt;\/table&gt; &lt;\/div&gt;  &lt;script src=\"https:\/\/unpkg.com\/material-components-web@latest\/dist\/material-components-web.min.js\"&gt;&lt;\/script&gt;  &lt;script type=\"module\"&gt;    let filterField = mdc.textField.MDCTextField.attachTo(document.querySelector('.mdc-text-field'));      let dataTable = new mdc.dataTable.MDCDataTable(document.querySelector('.mdc-data-table')); &lt;\/script&gt;  <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044f \u0438\u0437 \u0443\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u0430\u043d\u0434\u043b\u043e\u0432 \u0441 unpkg \u043c\u044b \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 WHATWG, \u0442.\u043a. \u044d\u0442\u0438 \u0431\u0430\u043d\u0434\u043b\u044b \u0431\u0438\u043d\u0434\u044f\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0438 \u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442 mdc, \u0430 \u043d\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 ES6. \u041d\u043e \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0435 \u043a\u043e\u043d\u0441\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c \u0438 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u0442\u0440\u0430\u043d\u0441\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jn\/fj\/be\/jnfjbet5xnbbngx6w0u_qjnipwk.png\"><\/p>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043e\u0442 \u0432 \u044d\u0442\u043e\u043c <a href=\"https:\/\/github.com\/material-components\/material-components-web\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a>.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0435 \u0438\u0437\u0432\u043d\u0435 \u0430\u043f\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0447\u0435\u043a\u0431\u043e\u043a\u0441\u0430\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0443\u0436\u0435 \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0440\u044f\u0434\u043e\u0432. <\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u043a\u0430 \u0441\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u043e\u0442 \u043d\u0430\u0441 \u0430\u043f\u0438, \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043e\u0431 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/angular.io\/guide\/elements\">Angular Elements<\/a>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u0441\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 API \u0438 \u0442\u0435 \u0436\u0435 CustomElements.<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 37.4995%;\"><iframe src=\"https:\/\/codepen.io\/jfily\/embed\/preview\/OzqmdV?height=300&amp;slug-hash=OzqmdV&amp;default-tabs=css,result&amp;host=https:\/\/codepen.io\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u042f \u0432\u0437\u044f\u043b \u043f\u0440\u0438\u043c\u0435\u0440 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0432\u043d\u0435\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u201c\u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e\u201d \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0438 \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043a\u0443\u0434\u0430 \u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438. \u041a\u043e\u0434\u0430 \u043c\u043d\u043e\u0433\u043e \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0441\u0432\u0435\u0440\u043d\u0443\u0442.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/material-components-web@latest\/dist\/material-components-web.min.css\"&gt;  &lt;div class=\"mdc-text-field\"&gt;    &lt;input type=\"text\" id=\"my-text-field\" class=\"mdc-text-field__input\"&gt;    &lt;label class=\"mdc-floating-label\" for=\"my-text-field\"&gt;Label&lt;\/label&gt;    &lt;div class=\"mdc-line-ripple\"&gt;&lt;\/div&gt; &lt;\/div&gt; &lt;div class=\"mdc-data-table\"&gt;    &lt;table class=\"mdc-data-table__table\" aria-label=\"Dessert calories\"&gt;        &lt;thead&gt;        &lt;tr class=\"mdc-data-table__header-row\"&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Dessert&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Carbs (g)&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Protein (g)&lt;\/th&gt;            &lt;th class=\"mdc-data-table__header-cell\" role=\"columnheader\" scope=\"col\"&gt;Comments&lt;\/th&gt;        &lt;\/tr&gt;        &lt;\/thead&gt;        &lt;tbody class=\"mdc-data-table__content\"&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Frozen yogurt&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;24&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;4.0&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Super tasty&lt;\/td&gt;        &lt;\/tr&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Ice cream sandwich&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;37&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;4.3&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;I like ice cream more&lt;\/td&gt;        &lt;\/tr&gt;        &lt;tr class=\"mdc-data-table__row\"&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;Eclair&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;24&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell mdc-data-table__cell--numeric\"&gt;6.0&lt;\/td&gt;            &lt;td class=\"mdc-data-table__cell\"&gt;New filing flavor&lt;\/td&gt;        &lt;\/tr&gt;        &lt;\/tbody&gt;    &lt;\/table&gt; &lt;\/div&gt;  &lt;script src=\"https:\/\/unpkg.com\/material-components-web@latest\/dist\/material-components-web.js\"&gt;&lt;\/script&gt;  &lt;script type=\"module\"&gt;    let filterField = mdc.textField.MDCTextField.attachTo(document.querySelector('.mdc-text-field'));     const DATATABLE_COLUMNS_SELECTOR = `.mdc-data-table thead`,        DATATABLE_DATA_SELECTOR = `tbody.mdc-data-table__content`,        DATATABLE_SORTABLE_SELECTOR = `.mdc-data-table--sortable`,        DATATABLE_COLUMNS_NUMERIC = `mdc-data-table--numeric`,        DATATABLE_COLUMNS_SORTABLE = `mdc-data-table--sortable`,        DATATABLE_COLUMNS_SORT_ASC = `mdc-data-table--sort-asc`,        DATATABLE_COLUMNS_SORT_DESC = `mdc-data-table--sort-desc`;     class MyDataTable extends mdc.dataTable.MDCDataTable {         get data() {            return this.foundation_.data;        }         set data(data) {            if (Array.isArray(data)) {                this.foundation_.setData(data);            } else {                throw new Error(`Expected an array`);            }        }         layout() {            if (this.foundation_.layout) {                this.foundation_.layout();            }        }         getDefaultFoundation() {             const getHeaderRow = () =&gt; {                let thead = this.root_.querySelector(DATATABLE_COLUMNS_SELECTOR),                    row = thead.querySelector(`tr`);                if (!row) {                    row = document.createElement(`tr`);                    row.setAttribute(`role`, `rowheader`);                    thead.appendChild(row);                }                return row;            },            getHeaderColumns = () =&gt; {                return getHeaderRow().querySelectorAll(`th`);            },            emptyHeaderColumns = () =&gt; {                getHeaderRow().remove();            },            getData = () =&gt; {                return this.root_.querySelector(DATATABLE_DATA_SELECTOR);            },            getDataRows = () =&gt; {                return getData().querySelectorAll(`tr`);            },            emptyData = () =&gt; {                Array.prototype.map.call(getDataRows(), row =&gt; {                    row.remove();                });            };             return new MyDataTableFoundation({                registerSortClickHandler: (handler) =&gt; this.root_.addEventListener(`click`, handler),                deregisterSortClickHandler: (handler) =&gt; this.root_.removeEventListener(`click`, handler),                \/\/ Reads the columns list                readColumns: () =&gt; {                    var cols = getHeaderColumns();                    return Array.prototype.map.call(cols, col =&gt; {                        return {                            text: col.textContent,                            description: col.getAttribute(`aria-label`),                            numeric: col.classList.contains(DATATABLE_COLUMNS_NUMERIC),                            sortable: col.classList.contains(DATATABLE_COLUMNS_SORTABLE),                            sort: col.classList.contains(DATATABLE_COLUMNS_SORT_ASC) ? 1 : col.classList.contains(DATATABLE_COLUMNS_SORT_DESC) ? -1 : 0                        };                    });                },                \/\/ Edit the columns                setColumns: (cols) =&gt; {                    emptyHeaderColumns();                    let row = getHeaderRow();                    cols.forEach(col =&gt; {                        let column = document.createElement(`th`);                        column.setAttribute(`role`, `columnheader`);                        \/\/ Add text                        column.textContent = col.text;                        column.setAttribute(`aria-label`, col.description);                        \/\/ Numeric                        if (col.numeric) {                            column.classList.add(DATATABLE_COLUMNS_NUMERIC);                        }                        \/\/ Sort                        if (col.sortable) {                            let ariaSort = `none`;                            column.classList.add(DATATABLE_COLUMNS_SORTABLE);                            if (col.sort === `asc` || col.sort === 1) {                                ariaSort = `ascending`;                                column.classList.add(DATATABLE_COLUMNS_SORT_ASC);                            } else if (col.sort === `desc` || col.sort === -1) {                                ariaSort = `descending`;                                column.classList.add(DATATABLE_COLUMNS_SORT_DESC);                            }                            column.setAttribute(`aria-sort`, ariaSort);                        }                        \/\/ Add to cols                        row.appendChild(column);                    });                },                \/\/ Read data                readData: () =&gt; {                    var rows = getDataRows();                    return Array.prototype.map.call(rows, row =&gt; {                        let cells = row.querySelectorAll(`td`);                        return Array.prototype.map.call(cells, cell =&gt; cell.textContent);                    });                },                \/\/ Edit the data                setData: (data) =&gt; {                    emptyData();                    let element = getData();                    \/\/ Sorting data                    let column = this.columns.find(el =&gt; el.sort);                    if (column) {                        let index = this.columns.indexOf(column);                        if (column.sortable) {                            let f = (params =&gt; {                                if (params.sort === `desc` || params.sort === -1) {                                    return params.numeric ? (a, b) =&gt; b[index] - a[index] : (a, b) =&gt; b[index].localeCompare(a[index]);                                } else {                                    return params.numeric ? (a, b) =&gt; a[index] - b[index] : (a, b) =&gt; a[index].localeCompare(b[index]);                                }                            })(column);                            data.sort(f);                        }                    }                    \/\/ For each data                    data.forEach(d =&gt; {                        \/\/ Create a new row                        let row = document.createElement(`tr`);                        row.setAttribute(`role`, `row`);                        \/\/ For each values                        d.forEach((val, i) =&gt; {                            \/\/ Create a new cell                            let cell = document.createElement(`td`);                            cell.setAttribute(`role`, `gridcell`);                            \/\/ Add numeric if needed                            if (this.columns[i].numeric) {                                cell.classList.add(DATATABLE_COLUMNS_NUMERIC);                            }                            \/\/ Add content                            if (val instanceof Element) {                                cell.appendChild(val);                            } else {                                cell.textContent = val;                            }                            row.appendChild(cell);                        });                        \/\/ Add to cols                        element.appendChild(row);                    });                },                \/\/ Redraw data table after edit                redraw: () =&gt; {                    this.foundation_.adapter_.setColumns(this.columns);                    this.foundation_.adapter_.setData(this.data);                }            });        }    }     mdc.autoInit.register(`MDCDataTable`, MyDataTable);     class MyDataTableFoundation extends mdc.base.MDCFoundation {         static get defaultAdapter() {            return {                registerSortClickHandler: ( \/* handler: EventListener *\/ ) =&gt; {},                deregisterSortClickHandler: ( \/* handler: EventListener *\/ ) =&gt; {},                readColumns: () =&gt; {},                setColumns: () =&gt; {},                readData: () =&gt; {},                setData: () =&gt; {},                redraw: () =&gt; {}            };        }         constructor(adapter) {            super(Object.assign(MyDataTableFoundation.defaultAdapter, adapter));            \/\/ Attributes            this.columns = [];            this.data = [];            \/\/ Methods            \/\/ On sort            this.sortClickHandler_ = (e) =&gt; {                let target = e.target.closest(DATATABLE_SORTABLE_SELECTOR);                if (target) {                    let index = Array.prototype.indexOf.call(target.parentElement.children, target);                    this.columns.forEach((col, i) =&gt; {                        if (i !== index) {                            col.sort = 0;                        } else {                            if (col.sort === `asc` || col.sort === 1) {                                col.sort = `desc`;                            } else {                                col.sort = `asc`;                            }                        }                    });                    this.adapter_.redraw();                }            };        }         init() {            \/\/ Read columns            this.columns = this.adapter_.readColumns();            \/\/ Read data            this.data = this.adapter_.readData();            \/\/ Click            this.adapter_.registerSortClickHandler(this.sortClickHandler_);        }         destroy() {            \/\/ Click            this.adapter_.deregisterSortClickHandler(this.sortClickHandler_);        }         setColumns(cols) {            this.adapter_.setColumns(cols);        }         setData(data) {            this.adapter_.setData(data);        }     }     let dataTable = new MyDataTable(document.querySelector('.mdc-data-table'));  &lt;\/script&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0432 \u0430\u043f\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0430\u043f\u0438. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u043d\u0435\u0434\u0440\u0430\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438.<\/p>\n<pre><code class=\"javascript\">let filterField = mdc.textField.MDCTextField.attachTo(document.querySelector('.mdc-text-field')); filterField.input_.oninput = (event) =&gt; {    dataTable.origData = dataTable.origData || dataTable.data.slice();    if (event.target.value == '') {        dataTable.data = dataTable.origData.slice();    } else {        let data = dataTable.origData.filter((row) =&gt; {            let rowIsOk = false;            for (let item of row) {                if (item.indexOf(event.target.value) &gt; 0) {                    rowIsOk = true;                }            }            return rowIsOk;        }) || [];        dataTable.data = data;        dataTable.getDefaultFoundation().redraw();    } }; <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u044f\u043c\u043e \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u0438 \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0438\u0437\u043a\u0438\u0435 \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0444\u0430\u0443\u043d\u0434\u0435\u0439\u0448\u0438\u043d\u0430 \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0434\u043d\u0430\u043a\u043e, \u043d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u0418 \u0443 \u043d\u0430\u0441 \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0434\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043d\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043e\u0431\u0449\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043a\u043e\u0434\u043e\u043c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/og\/t7\/j4\/ogt7j433dbcaznxn7boocqhyoeq.png\"><br \/>  \u043f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u043b\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u043e<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yf\/u_\/ot\/yfu_ot17v38t3ecibwn2wwweofi.png\"><br \/>  \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043d\u0430 \u0434\u0436\u0430\u0432\u0430\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b-\u043a\u043b\u0430\u0441\u0441\u044b, \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/460397\/\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0446\u0438\u043a\u043b\u0430<\/a>, \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0434\u043b\u044f \u0432\u0430\u0441, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b angular\/material cdk \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0443\u043b\u043a\u0438\u0442\u0430 \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u201c\u043a\u043e\u043b\u0445\u043e\u0437\u0438\u0442\u044c\u201d \u0432\u0441\u0435 \u0441 \u043d\u0443\u043b\u044f \u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432 \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u043d\u043e\u043b\u0438\u0442, \u0442.\u043a. \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u0430\u044e\u0442 \u043b\u0443\u0447\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043e\u043a.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/462695\/\"> https:\/\/habr.com\/ru\/post\/462695\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a \u044f \u0443\u0436\u0435 \u043e\u0442\u043c\u0435\u0447\u0430\u043b \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/461153\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u0435\u0434\u0443\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 WebComponents \u043e\u0431\u0435\u0440\u0442\u043e\u043a \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 API. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435, \u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0435\u0433\u043e. \u0422\u0430\u043a\u0436\u0435 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044f \u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0447\u0435\u0440\u0435\u0437 API \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. <\/p>\n<p>  \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0432\u043d\u043e \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b\u0439 \u0433\u0440\u0438\u0434 \u0434\u043b\u044f \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0442\u0430\u043a\u043e\u0432\u043e\u0433\u043e, \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e, \u043d\u043e \u043f\u0440\u0438 \u0442\u043e\u043c \u043d\u0435 \u043e\u0431\u044f\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 Polymer \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c. \u0412 \u043d\u0435\u0434\u0430\u043b\u0435\u043a\u043e\u043c \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u0434\u043e \u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0441 material\/cdk. \u0422\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0443\u0434\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0438 \u043f\u0435\u0439\u0434\u0436\u0435\u0440 \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0438\u043b\u0438 \u043c\u0440\u0430\u0447\u043d\u044b\u0445 \u0445\u0443\u043a\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0435\u0449\u0435 \u043d\u0435 \u0443\u0441\u043f\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u0432\u043e\u0442 \u043f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0440\u0435\u0448\u0438\u043b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u0432\u0435\u0431-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-293045","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293045"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293045\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}