@ptsecurity/mosaic 14.6.1 → 14.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/_theming.scss +3790 -2072
  2. package/_visual.scss +341 -0
  3. package/button/button.component.d.ts +2 -0
  4. package/card/card.component.d.ts +2 -0
  5. package/checkbox/checkbox.d.ts +1 -0
  6. package/code-block/README.md +32 -0
  7. package/code-block/actionbar.component.d.ts +22 -0
  8. package/code-block/code-block.component.d.ts +74 -0
  9. package/code-block/code-block.module.d.ts +14 -0
  10. package/code-block/code-block.types.d.ts +17 -0
  11. package/code-block/index.d.ts +1 -0
  12. package/code-block/public-api.d.ts +3 -0
  13. package/core/formatters/date/formatter.d.ts +55 -1
  14. package/core/option/action.d.ts +2 -0
  15. package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +1 -0
  16. package/datepicker/calendar-body.component.d.ts +3 -11
  17. package/datepicker/calendar-header.component.d.ts +45 -0
  18. package/datepicker/calendar.component.d.ts +10 -81
  19. package/datepicker/datepicker-input.directive.d.ts +3 -3
  20. package/datepicker/datepicker-module.d.ts +8 -8
  21. package/datepicker/datepicker.component.d.ts +2 -12
  22. package/datepicker/month-view.component.d.ts +7 -26
  23. package/datepicker/public-api.d.ts +1 -2
  24. package/design-tokens/legacy-2017/tokens/components/code-block.json5 +704 -0
  25. package/design-tokens/legacy-2017/tokens.d.ts +341 -0
  26. package/design-tokens/pt-2022/tokens/components/code-block.json5 +697 -0
  27. package/design-tokens/pt-2022/tokens.d.ts +341 -0
  28. package/design-tokens/style-dictionary/configs/index.js +6 -8
  29. package/dropdown/dropdown-item.component.d.ts +1 -0
  30. package/esm2020/button/button.component.mjs +3 -3
  31. package/esm2020/card/card.component.mjs +3 -3
  32. package/esm2020/checkbox/checkbox.mjs +2 -2
  33. package/esm2020/code-block/actionbar.component.mjs +67 -0
  34. package/esm2020/code-block/code-block.component.mjs +157 -0
  35. package/esm2020/code-block/code-block.module.mjs +60 -0
  36. package/esm2020/code-block/code-block.types.mjs +2 -0
  37. package/esm2020/code-block/index.mjs +2 -0
  38. package/esm2020/code-block/ptsecurity-mosaic-code-block.mjs +5 -0
  39. package/esm2020/code-block/public-api.mjs +4 -0
  40. package/esm2020/core/formatters/date/formatter.mjs +77 -1
  41. package/esm2020/core/formatters/date/templates/en-US.mjs +56 -1
  42. package/esm2020/core/formatters/date/templates/ru-RU.mjs +92 -1
  43. package/esm2020/core/option/action.mjs +3 -2
  44. package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
  45. package/esm2020/core/version.mjs +2 -2
  46. package/esm2020/datepicker/calendar-body.component.mjs +9 -28
  47. package/esm2020/datepicker/calendar-header.component.mjs +135 -0
  48. package/esm2020/datepicker/calendar.component.mjs +25 -212
  49. package/esm2020/datepicker/datepicker-input.directive.mjs +54 -54
  50. package/esm2020/datepicker/datepicker-module.mjs +13 -17
  51. package/esm2020/datepicker/datepicker.component.mjs +10 -21
  52. package/esm2020/datepicker/month-view.component.mjs +32 -131
  53. package/esm2020/datepicker/public-api.mjs +2 -3
  54. package/esm2020/design-tokens/legacy-2017/tokens.mjs +342 -1
  55. package/esm2020/design-tokens/pt-2022/tokens.mjs +342 -1
  56. package/esm2020/dropdown/dropdown-item.component.mjs +2 -2
  57. package/esm2020/form-field/form-field.mjs +3 -2
  58. package/esm2020/form-field/hint.mjs +3 -2
  59. package/esm2020/icon/icon.component.mjs +3 -2
  60. package/esm2020/input/input-number-validators.mjs +3 -7
  61. package/esm2020/input/input.mjs +3 -2
  62. package/esm2020/link/link.component.mjs +3 -2
  63. package/esm2020/list/list-selection.component.mjs +3 -2
  64. package/esm2020/modal/modal.component.mjs +4 -3
  65. package/esm2020/progress-bar/progress-bar.component.mjs +3 -2
  66. package/esm2020/progress-spinner/progress-spinner.component.mjs +3 -2
  67. package/esm2020/radio/radio.component.mjs +3 -4
  68. package/esm2020/select/select.component.mjs +18 -6
  69. package/esm2020/select/select.module.mjs +6 -2
  70. package/esm2020/tabs/tab-group.component.mjs +2 -2
  71. package/esm2020/tabs/tab-label-wrapper.directive.mjs +2 -2
  72. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +3 -2
  73. package/esm2020/tabs/tab.component.mjs +3 -2
  74. package/esm2020/tags/tag-list.component.mjs +3 -2
  75. package/esm2020/tags/tag.component.mjs +3 -2
  76. package/esm2020/textarea/textarea.component.mjs +3 -2
  77. package/esm2020/timezone/timezone-select.component.mjs +2 -2
  78. package/esm2020/toggle/toggle.component.mjs +3 -2
  79. package/esm2020/tree/control/flat-tree-control.mjs +1 -1
  80. package/esm2020/tree/toggle.mjs +3 -2
  81. package/esm2020/tree/tree-base.mjs +1 -1
  82. package/esm2020/tree-select/tree-select.component.mjs +3 -2
  83. package/fesm2015/ptsecurity-mosaic-button.mjs +2 -2
  84. package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
  85. package/fesm2015/ptsecurity-mosaic-card.mjs +2 -2
  86. package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
  87. package/fesm2015/ptsecurity-mosaic-checkbox.mjs +1 -1
  88. package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  89. package/fesm2015/ptsecurity-mosaic-code-block.mjs +280 -0
  90. package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +1 -0
  91. package/fesm2015/ptsecurity-mosaic-core.mjs +226 -3
  92. package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
  93. package/fesm2015/ptsecurity-mosaic-datepicker.mjs +272 -906
  94. package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  95. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +1024 -1
  96. package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  97. package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1 -1
  98. package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  99. package/fesm2015/ptsecurity-mosaic-form-field.mjs +4 -2
  100. package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
  101. package/fesm2015/ptsecurity-mosaic-icon.mjs +2 -1
  102. package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
  103. package/fesm2015/ptsecurity-mosaic-input.mjs +4 -7
  104. package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
  105. package/fesm2015/ptsecurity-mosaic-link.mjs +2 -1
  106. package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
  107. package/fesm2015/ptsecurity-mosaic-list.mjs +2 -1
  108. package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
  109. package/fesm2015/ptsecurity-mosaic-modal.mjs +3 -2
  110. package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
  111. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +2 -1
  112. package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  113. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +2 -1
  114. package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  115. package/fesm2015/ptsecurity-mosaic-radio.mjs +2 -3
  116. package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
  117. package/fesm2015/ptsecurity-mosaic-select.mjs +22 -6
  118. package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
  119. package/fesm2015/ptsecurity-mosaic-tabs.mjs +6 -4
  120. package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
  121. package/fesm2015/ptsecurity-mosaic-tags.mjs +4 -2
  122. package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
  123. package/fesm2015/ptsecurity-mosaic-textarea.mjs +2 -1
  124. package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
  125. package/fesm2015/ptsecurity-mosaic-timezone.mjs +2 -2
  126. package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -1
  127. package/fesm2015/ptsecurity-mosaic-toggle.mjs +2 -1
  128. package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
  129. package/fesm2015/ptsecurity-mosaic-tree-select.mjs +2 -1
  130. package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  131. package/fesm2015/ptsecurity-mosaic-tree.mjs +2 -1
  132. package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
  133. package/fesm2020/ptsecurity-mosaic-button.mjs +2 -2
  134. package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
  135. package/fesm2020/ptsecurity-mosaic-card.mjs +2 -2
  136. package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
  137. package/fesm2020/ptsecurity-mosaic-checkbox.mjs +1 -1
  138. package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
  139. package/fesm2020/ptsecurity-mosaic-code-block.mjs +278 -0
  140. package/fesm2020/ptsecurity-mosaic-code-block.mjs.map +1 -0
  141. package/fesm2020/ptsecurity-mosaic-core.mjs +226 -3
  142. package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
  143. package/fesm2020/ptsecurity-mosaic-datepicker.mjs +270 -901
  144. package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  145. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +1024 -1
  146. package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
  147. package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1 -1
  148. package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  149. package/fesm2020/ptsecurity-mosaic-form-field.mjs +4 -2
  150. package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
  151. package/fesm2020/ptsecurity-mosaic-icon.mjs +2 -1
  152. package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
  153. package/fesm2020/ptsecurity-mosaic-input.mjs +4 -7
  154. package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
  155. package/fesm2020/ptsecurity-mosaic-link.mjs +2 -1
  156. package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
  157. package/fesm2020/ptsecurity-mosaic-list.mjs +2 -1
  158. package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
  159. package/fesm2020/ptsecurity-mosaic-modal.mjs +3 -2
  160. package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
  161. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +2 -1
  162. package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
  163. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +2 -1
  164. package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
  165. package/fesm2020/ptsecurity-mosaic-radio.mjs +2 -3
  166. package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
  167. package/fesm2020/ptsecurity-mosaic-select.mjs +22 -6
  168. package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
  169. package/fesm2020/ptsecurity-mosaic-tabs.mjs +6 -4
  170. package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
  171. package/fesm2020/ptsecurity-mosaic-tags.mjs +4 -2
  172. package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
  173. package/fesm2020/ptsecurity-mosaic-textarea.mjs +2 -1
  174. package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
  175. package/fesm2020/ptsecurity-mosaic-timezone.mjs +2 -2
  176. package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -1
  177. package/fesm2020/ptsecurity-mosaic-toggle.mjs +2 -1
  178. package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
  179. package/fesm2020/ptsecurity-mosaic-tree-select.mjs +2 -1
  180. package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  181. package/fesm2020/ptsecurity-mosaic-tree.mjs +2 -1
  182. package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
  183. package/form-field/form-field.d.ts +2 -0
  184. package/form-field/hint.d.ts +2 -0
  185. package/icon/icon.component.d.ts +2 -0
  186. package/input/input-number-validators.d.ts +2 -6
  187. package/input/input.d.ts +2 -0
  188. package/link/link.component.d.ts +2 -0
  189. package/list/list-selection.component.d.ts +2 -0
  190. package/package.json +12 -4
  191. package/prebuilt-themes/dark-theme.css +1 -1
  192. package/prebuilt-themes/default-theme.css +1 -1
  193. package/progress-bar/progress-bar.component.d.ts +2 -0
  194. package/progress-spinner/progress-spinner.component.d.ts +2 -0
  195. package/radio/radio.component.d.ts +2 -0
  196. package/select/select.component.d.ts +9 -2
  197. package/select/select.module.d.ts +1 -1
  198. package/tabs/tab-group.component.d.ts +1 -0
  199. package/tabs/tab-label-wrapper.directive.d.ts +1 -0
  200. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -0
  201. package/tabs/tab.component.d.ts +2 -0
  202. package/tags/tag-list.component.d.ts +2 -0
  203. package/tags/tag.component.d.ts +2 -0
  204. package/textarea/textarea.component.d.ts +2 -0
  205. package/toggle/toggle.component.d.ts +2 -0
  206. package/tree/control/flat-tree-control.d.ts +4 -4
  207. package/tree/toggle.d.ts +2 -0
  208. package/tree-select/tree-select.component.d.ts +2 -0
  209. package/datepicker/multi-year-view.component.d.ts +0 -72
  210. package/datepicker/year-view.component.d.ts +0 -90
  211. package/esm2020/datepicker/multi-year-view.component.mjs +0 -218
  212. package/esm2020/datepicker/year-view.component.mjs +0 -253
package/_visual.scss CHANGED
@@ -627,6 +627,347 @@ $checkbox-size-border-width: 1px;
627
627
  $checkbox-size-border-radius: 4px;
628
628
  $checkbox-size-toggle-box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.2);
629
629
  $checkbox-font-default: body;
630
+ $code-block-light-color-scheme-background: white;
631
+ $code-block-light-color-scheme-border: #d7dee4;
632
+ $code-block-light-color-scheme-color: #19252f;
633
+ $code-block-light-color-scheme-actionbar-background: rgba(white, 0.5);
634
+ $code-block-light-color-scheme-actionbar-border: null;
635
+ $code-block-light-color-scheme-line-numbers-background: null;
636
+ $code-block-light-color-scheme-line-numbers-border: null;
637
+ $code-block-light-color-scheme-line-numbers-color: #8c99a5;
638
+ $code-block-light-color-scheme-decoration-less-contrast-background: #f2f5f9;
639
+ $code-block-light-color-scheme-decoration-less-contrast-border: #d7dee4;
640
+ $code-block-light-color-scheme-decoration-less-contrast-actionbar-background: #f2f5f9;
641
+ $code-block-light-color-scheme-decoration-less-contrast-actionbar-border: null;
642
+ $code-block-light-color-scheme-hljs-addition-background: #d2f7db;
643
+ $code-block-light-color-scheme-hljs-addition-color: #103920;
644
+ $code-block-light-color-scheme-hljs-attr-background: null;
645
+ $code-block-light-color-scheme-hljs-attr-color: null;
646
+ $code-block-light-color-scheme-hljs-attribute-background: null;
647
+ $code-block-light-color-scheme-hljs-attribute-color: null;
648
+ $code-block-light-color-scheme-hljs-built-in-background: null;
649
+ $code-block-light-color-scheme-hljs-built-in-color: null;
650
+ $code-block-light-color-scheme-hljs-bullet-background: null;
651
+ $code-block-light-color-scheme-hljs-bullet-color: null;
652
+ $code-block-light-color-scheme-hljs-char-escape-background: null;
653
+ $code-block-light-color-scheme-hljs-char-escape-color: null;
654
+ $code-block-light-color-scheme-hljs-class-background: null;
655
+ $code-block-light-color-scheme-hljs-class-color: null;
656
+ $code-block-light-color-scheme-hljs-code-background: null;
657
+ $code-block-light-color-scheme-hljs-code-color: null;
658
+ $code-block-light-color-scheme-hljs-comment-background: null;
659
+ $code-block-light-color-scheme-hljs-comment-color: #6d7a86;
660
+ $code-block-light-color-scheme-hljs-deletion-background: #ffeaea;
661
+ $code-block-light-color-scheme-hljs-deletion-color: #621420;
662
+ $code-block-light-color-scheme-hljs-doctag-background: null;
663
+ $code-block-light-color-scheme-hljs-doctag-color: null;
664
+ $code-block-light-color-scheme-hljs-emphasis-background: null;
665
+ $code-block-light-color-scheme-hljs-emphasis-color: null;
666
+ $code-block-light-color-scheme-hljs-formula-background: null;
667
+ $code-block-light-color-scheme-hljs-formula-color: null;
668
+ $code-block-light-color-scheme-hljs-function-background: null;
669
+ $code-block-light-color-scheme-hljs-function-color: null;
670
+ $code-block-light-color-scheme-hljs-keyword-background: null;
671
+ $code-block-light-color-scheme-hljs-keyword-color: null;
672
+ $code-block-light-color-scheme-hljs-link-background: null;
673
+ $code-block-light-color-scheme-hljs-link-color: null;
674
+ $code-block-light-color-scheme-hljs-literal-background: null;
675
+ $code-block-light-color-scheme-hljs-literal-color: #864775;
676
+ $code-block-light-color-scheme-hljs-meta-background: null;
677
+ $code-block-light-color-scheme-hljs-meta-color: #0059b8;
678
+ $code-block-light-color-scheme-hljs-meta-keyword-background: null;
679
+ $code-block-light-color-scheme-hljs-meta-keyword-color: null;
680
+ $code-block-light-color-scheme-hljs-meta-string-background: null;
681
+ $code-block-light-color-scheme-hljs-meta-string-color: #0374eb;
682
+ $code-block-light-color-scheme-hljs-meta-prompt-background: null;
683
+ $code-block-light-color-scheme-hljs-meta-prompt-color: null;
684
+ $code-block-light-color-scheme-hljs-name-background: null;
685
+ $code-block-light-color-scheme-hljs-name-color: #0059b8;
686
+ $code-block-light-color-scheme-hljs-number-background: null;
687
+ $code-block-light-color-scheme-hljs-number-color: #864775;
688
+ $code-block-light-color-scheme-hljs-operator-background: null;
689
+ $code-block-light-color-scheme-hljs-operator-color: null;
690
+ $code-block-light-color-scheme-hljs-params-background: null;
691
+ $code-block-light-color-scheme-hljs-params-color: null;
692
+ $code-block-light-color-scheme-hljs-property-background: null;
693
+ $code-block-light-color-scheme-hljs-property-color: null;
694
+ $code-block-light-color-scheme-hljs-punctuation-background: null;
695
+ $code-block-light-color-scheme-hljs-punctuation-color: null;
696
+ $code-block-light-color-scheme-hljs-quote-background: null;
697
+ $code-block-light-color-scheme-hljs-quote-color: null;
698
+ $code-block-light-color-scheme-hljs-regexp-background: null;
699
+ $code-block-light-color-scheme-hljs-regexp-color: #028b49;
700
+ $code-block-light-color-scheme-hljs-section-background: null;
701
+ $code-block-light-color-scheme-hljs-section-color: null;
702
+ $code-block-light-color-scheme-hljs-selector-attr-background: null;
703
+ $code-block-light-color-scheme-hljs-selector-attr-color: null;
704
+ $code-block-light-color-scheme-hljs-selector-class-background: null;
705
+ $code-block-light-color-scheme-hljs-selector-class-color: null;
706
+ $code-block-light-color-scheme-hljs-selector-id-background: null;
707
+ $code-block-light-color-scheme-hljs-selector-id-color: null;
708
+ $code-block-light-color-scheme-hljs-selector-pseudo-background: null;
709
+ $code-block-light-color-scheme-hljs-selector-pseudo-color: null;
710
+ $code-block-light-color-scheme-hljs-selector-tag-background: null;
711
+ $code-block-light-color-scheme-hljs-selector-tag-color: #0059b8;
712
+ $code-block-light-color-scheme-hljs-string-background: null;
713
+ $code-block-light-color-scheme-hljs-string-color: #028b49;
714
+ $code-block-light-color-scheme-hljs-strong-background: null;
715
+ $code-block-light-color-scheme-hljs-strong-color: null;
716
+ $code-block-light-color-scheme-hljs-subst-background: null;
717
+ $code-block-light-color-scheme-hljs-subst-color: null;
718
+ $code-block-light-color-scheme-hljs-symbol-background: null;
719
+ $code-block-light-color-scheme-hljs-symbol-color: #0059b8;
720
+ $code-block-light-color-scheme-hljs-tag-background: null;
721
+ $code-block-light-color-scheme-hljs-tag-color: null;
722
+ $code-block-light-color-scheme-hljs-template-tag-background: null;
723
+ $code-block-light-color-scheme-hljs-template-tag-color: null;
724
+ $code-block-light-color-scheme-hljs-template-variable-background: null;
725
+ $code-block-light-color-scheme-hljs-template-variable-color: null;
726
+ $code-block-light-color-scheme-hljs-title-background: null;
727
+ $code-block-light-color-scheme-hljs-title-color: #0059b8;
728
+ $code-block-light-color-scheme-hljs-title-class-background: null;
729
+ $code-block-light-color-scheme-hljs-title-class-color: null;
730
+ $code-block-light-color-scheme-hljs-title-class-inherited-background: null;
731
+ $code-block-light-color-scheme-hljs-title-class-inherited-color: null;
732
+ $code-block-light-color-scheme-hljs-title-function-background: null;
733
+ $code-block-light-color-scheme-hljs-title-function-color: null;
734
+ $code-block-light-color-scheme-hljs-title-function-invoke-background: null;
735
+ $code-block-light-color-scheme-hljs-title-function-invoke-color: null;
736
+ $code-block-light-color-scheme-hljs-type-background: null;
737
+ $code-block-light-color-scheme-hljs-type-color: null;
738
+ $code-block-light-color-scheme-hljs-variable-background: null;
739
+ $code-block-light-color-scheme-hljs-variable-color: null;
740
+ $code-block-light-color-scheme-hljs-variable-constant-background: null;
741
+ $code-block-light-color-scheme-hljs-variable-constant-color: null;
742
+ $code-block-light-color-scheme-hljs-variable-language-background: null;
743
+ $code-block-light-color-scheme-hljs-variable-language-color: null;
744
+ $code-block-dark-color-scheme-background: #19252f;
745
+ $code-block-dark-color-scheme-border: mix(#515e69, transparent, 50%);
746
+ $code-block-dark-color-scheme-color: #d7dee4;
747
+ $code-block-dark-color-scheme-actionbar-background: #19252f;
748
+ $code-block-dark-color-scheme-actionbar-border: null;
749
+ $code-block-dark-color-scheme-line-numbers-background: null;
750
+ $code-block-dark-color-scheme-line-numbers-border: null;
751
+ $code-block-dark-color-scheme-line-numbers-color: #6d7a86;
752
+ $code-block-dark-color-scheme-decoration-less-contrast-background: #27333e;
753
+ $code-block-dark-color-scheme-decoration-less-contrast-border: mix(#515e69, transparent, 50%);
754
+ $code-block-dark-color-scheme-decoration-less-contrast-actionbar-background: #27333e;
755
+ $code-block-dark-color-scheme-decoration-less-contrast-actionbar-border: null;
756
+ $code-block-dark-color-scheme-hljs-addition-background: #103920;
757
+ $code-block-dark-color-scheme-hljs-addition-color: #8ed5a1;
758
+ $code-block-dark-color-scheme-hljs-attr-background: null;
759
+ $code-block-dark-color-scheme-hljs-attr-color: null;
760
+ $code-block-dark-color-scheme-hljs-attribute-background: null;
761
+ $code-block-dark-color-scheme-hljs-attribute-color: null;
762
+ $code-block-dark-color-scheme-hljs-built-in-background: null;
763
+ $code-block-dark-color-scheme-hljs-built-in-color: null;
764
+ $code-block-dark-color-scheme-hljs-bullet-background: null;
765
+ $code-block-dark-color-scheme-hljs-bullet-color: null;
766
+ $code-block-dark-color-scheme-hljs-char-escape-background: null;
767
+ $code-block-dark-color-scheme-hljs-char-escape-color: null;
768
+ $code-block-dark-color-scheme-hljs-class-background: null;
769
+ $code-block-dark-color-scheme-hljs-class-color: null;
770
+ $code-block-dark-color-scheme-hljs-code-background: null;
771
+ $code-block-dark-color-scheme-hljs-code-color: null;
772
+ $code-block-dark-color-scheme-hljs-comment-background: null;
773
+ $code-block-dark-color-scheme-hljs-comment-color: #6d7a86;
774
+ $code-block-dark-color-scheme-hljs-deletion-background: #621420;
775
+ $code-block-dark-color-scheme-hljs-deletion-color: #fcb2b4;
776
+ $code-block-dark-color-scheme-hljs-doctag-background: null;
777
+ $code-block-dark-color-scheme-hljs-doctag-color: null;
778
+ $code-block-dark-color-scheme-hljs-emphasis-background: null;
779
+ $code-block-dark-color-scheme-hljs-emphasis-color: null;
780
+ $code-block-dark-color-scheme-hljs-formula-background: null;
781
+ $code-block-dark-color-scheme-hljs-formula-color: null;
782
+ $code-block-dark-color-scheme-hljs-function-background: null;
783
+ $code-block-dark-color-scheme-hljs-function-color: null;
784
+ $code-block-dark-color-scheme-hljs-keyword-background: null;
785
+ $code-block-dark-color-scheme-hljs-keyword-color: null;
786
+ $code-block-dark-color-scheme-hljs-link-background: null;
787
+ $code-block-dark-color-scheme-hljs-link-color: null;
788
+ $code-block-dark-color-scheme-hljs-literal-background: null;
789
+ $code-block-dark-color-scheme-hljs-literal-color: #c692b5;
790
+ $code-block-dark-color-scheme-hljs-meta-background: null;
791
+ $code-block-dark-color-scheme-hljs-meta-color: #5697ff;
792
+ $code-block-dark-color-scheme-hljs-meta-keyword-background: null;
793
+ $code-block-dark-color-scheme-hljs-meta-keyword-color: null;
794
+ $code-block-dark-color-scheme-hljs-meta-string-background: null;
795
+ $code-block-dark-color-scheme-hljs-meta-string-color: #4ba96c;
796
+ $code-block-dark-color-scheme-hljs-meta-prompt-background: null;
797
+ $code-block-dark-color-scheme-hljs-meta-prompt-color: null;
798
+ $code-block-dark-color-scheme-hljs-name-background: null;
799
+ $code-block-dark-color-scheme-hljs-name-color: #5697ff;
800
+ $code-block-dark-color-scheme-hljs-number-background: null;
801
+ $code-block-dark-color-scheme-hljs-number-color: #c692b5;
802
+ $code-block-dark-color-scheme-hljs-operator-background: null;
803
+ $code-block-dark-color-scheme-hljs-operator-color: null;
804
+ $code-block-dark-color-scheme-hljs-params-background: null;
805
+ $code-block-dark-color-scheme-hljs-params-color: null;
806
+ $code-block-dark-color-scheme-hljs-property-background: null;
807
+ $code-block-dark-color-scheme-hljs-property-color: null;
808
+ $code-block-dark-color-scheme-hljs-punctuation-background: null;
809
+ $code-block-dark-color-scheme-hljs-punctuation-color: null;
810
+ $code-block-dark-color-scheme-hljs-quote-background: null;
811
+ $code-block-dark-color-scheme-hljs-quote-color: null;
812
+ $code-block-dark-color-scheme-hljs-regexp-background: null;
813
+ $code-block-dark-color-scheme-hljs-regexp-color: #4ba96c;
814
+ $code-block-dark-color-scheme-hljs-section-background: null;
815
+ $code-block-dark-color-scheme-hljs-section-color: null;
816
+ $code-block-dark-color-scheme-hljs-selector-attr-background: null;
817
+ $code-block-dark-color-scheme-hljs-selector-attr-color: null;
818
+ $code-block-dark-color-scheme-hljs-selector-class-background: null;
819
+ $code-block-dark-color-scheme-hljs-selector-class-color: null;
820
+ $code-block-dark-color-scheme-hljs-selector-id-background: null;
821
+ $code-block-dark-color-scheme-hljs-selector-id-color: null;
822
+ $code-block-dark-color-scheme-hljs-selector-pseudo-background: null;
823
+ $code-block-dark-color-scheme-hljs-selector-pseudo-color: null;
824
+ $code-block-dark-color-scheme-hljs-selector-tag-background: null;
825
+ $code-block-dark-color-scheme-hljs-selector-tag-color: #5697ff;
826
+ $code-block-dark-color-scheme-hljs-string-background: null;
827
+ $code-block-dark-color-scheme-hljs-string-color: #4ba96c;
828
+ $code-block-dark-color-scheme-hljs-strong-background: null;
829
+ $code-block-dark-color-scheme-hljs-strong-color: null;
830
+ $code-block-dark-color-scheme-hljs-subst-background: null;
831
+ $code-block-dark-color-scheme-hljs-subst-color: null;
832
+ $code-block-dark-color-scheme-hljs-symbol-background: null;
833
+ $code-block-dark-color-scheme-hljs-symbol-color: #5697ff;
834
+ $code-block-dark-color-scheme-hljs-tag-background: null;
835
+ $code-block-dark-color-scheme-hljs-tag-color: null;
836
+ $code-block-dark-color-scheme-hljs-template-tag-background: null;
837
+ $code-block-dark-color-scheme-hljs-template-tag-color: null;
838
+ $code-block-dark-color-scheme-hljs-template-variable-background: null;
839
+ $code-block-dark-color-scheme-hljs-template-variable-color: null;
840
+ $code-block-dark-color-scheme-hljs-title-background: null;
841
+ $code-block-dark-color-scheme-hljs-title-color: #5697ff;
842
+ $code-block-dark-color-scheme-hljs-title-class-background: null;
843
+ $code-block-dark-color-scheme-hljs-title-class-color: null;
844
+ $code-block-dark-color-scheme-hljs-title-class-inherited-background: null;
845
+ $code-block-dark-color-scheme-hljs-title-class-inherited-color: null;
846
+ $code-block-dark-color-scheme-hljs-title-function-background: null;
847
+ $code-block-dark-color-scheme-hljs-title-function-color: null;
848
+ $code-block-dark-color-scheme-hljs-title-function-invoke-background: null;
849
+ $code-block-dark-color-scheme-hljs-title-function-invoke-color: null;
850
+ $code-block-dark-color-scheme-hljs-type-background: null;
851
+ $code-block-dark-color-scheme-hljs-type-color: null;
852
+ $code-block-dark-color-scheme-hljs-variable-background: null;
853
+ $code-block-dark-color-scheme-hljs-variable-color: null;
854
+ $code-block-dark-color-scheme-hljs-variable-constant-background: null;
855
+ $code-block-dark-color-scheme-hljs-variable-constant-color: null;
856
+ $code-block-dark-color-scheme-hljs-variable-language-background: null;
857
+ $code-block-dark-color-scheme-hljs-variable-language-color: null;
858
+ $code-block-size-border-radius: 4px;
859
+ $code-block-size-padding: 12px;
860
+ $code-block-size-actionbar-border-radius: 4px;
861
+ $code-block-size-actionbar-gap: 0;
862
+ $code-block-size-actionbar-header-gap: 8px;
863
+ $code-block-size-actionbar-margin-top: 6px;
864
+ $code-block-size-actionbar-margin-right: 6px;
865
+ $code-block-size-actionbar-padding: 8px;
866
+ $code-block-size-line-numbers-padding: 2px 12px 0 0 ;
867
+ $code-block-size-line-numbers-border-width: 0;
868
+ $code-block-font-default: body-mono;
869
+ $code-block-font-hljs-addition-font-style: null;
870
+ $code-block-font-hljs-addition-font-weight: null;
871
+ $code-block-font-hljs-attr-font-style: null;
872
+ $code-block-font-hljs-attr-font-weight: null;
873
+ $code-block-font-hljs-attribute-font-style: null;
874
+ $code-block-font-hljs-attribute-font-weight: null;
875
+ $code-block-font-hljs-built-in-font-style: null;
876
+ $code-block-font-hljs-built-in-font-weight: null;
877
+ $code-block-font-hljs-bullet-font-style: null;
878
+ $code-block-font-hljs-bullet-font-weight: null;
879
+ $code-block-font-hljs-char-escape-font-style: null;
880
+ $code-block-font-hljs-char-escape-font-weight: null;
881
+ $code-block-font-hljs-class-font-style: null;
882
+ $code-block-font-hljs-class-font-weight: null;
883
+ $code-block-font-hljs-code-font-style: null;
884
+ $code-block-font-hljs-code-font-weight: null;
885
+ $code-block-font-hljs-comment-font-style: null;
886
+ $code-block-font-hljs-comment-font-weight: null;
887
+ $code-block-font-hljs-deletion-font-style: null;
888
+ $code-block-font-hljs-deletion-font-weight: null;
889
+ $code-block-font-hljs-doctag-font-style: null;
890
+ $code-block-font-hljs-doctag-font-weight: null;
891
+ $code-block-font-hljs-emphasis-font-style: null;
892
+ $code-block-font-hljs-emphasis-font-weight: null;
893
+ $code-block-font-hljs-formula-font-style: null;
894
+ $code-block-font-hljs-formula-font-weight: null;
895
+ $code-block-font-hljs-function-font-style: null;
896
+ $code-block-font-hljs-function-font-weight: null;
897
+ $code-block-font-hljs-keyword-font-style: null;
898
+ $code-block-font-hljs-keyword-font-weight: null;
899
+ $code-block-font-hljs-link-font-style: null;
900
+ $code-block-font-hljs-link-font-weight: null;
901
+ $code-block-font-hljs-literal-font-style: null;
902
+ $code-block-font-hljs-literal-font-weight: null;
903
+ $code-block-font-hljs-meta-font-style: null;
904
+ $code-block-font-hljs-meta-font-weight: null;
905
+ $code-block-font-hljs-meta-keyword-font-style: null;
906
+ $code-block-font-hljs-meta-keyword-font-weight: null;
907
+ $code-block-font-hljs-meta-string-font-style: null;
908
+ $code-block-font-hljs-meta-string-font-weight: null;
909
+ $code-block-font-hljs-meta-prompt-font-style: null;
910
+ $code-block-font-hljs-meta-prompt-font-weight: null;
911
+ $code-block-font-hljs-name-font-style: null;
912
+ $code-block-font-hljs-name-font-weight: null;
913
+ $code-block-font-hljs-number-font-style: null;
914
+ $code-block-font-hljs-number-font-weight: null;
915
+ $code-block-font-hljs-operator-font-style: null;
916
+ $code-block-font-hljs-operator-font-weight: null;
917
+ $code-block-font-hljs-params-font-style: null;
918
+ $code-block-font-hljs-params-font-weight: null;
919
+ $code-block-font-hljs-property-font-style: null;
920
+ $code-block-font-hljs-property-font-weight: null;
921
+ $code-block-font-hljs-punctuation-font-style: null;
922
+ $code-block-font-hljs-punctuation-font-weight: null;
923
+ $code-block-font-hljs-quote-font-style: null;
924
+ $code-block-font-hljs-quote-font-weight: null;
925
+ $code-block-font-hljs-regexp-font-style: null;
926
+ $code-block-font-hljs-regexp-font-weight: null;
927
+ $code-block-font-hljs-section-font-style: null;
928
+ $code-block-font-hljs-section-font-weight: null;
929
+ $code-block-font-hljs-selector-attr-font-style: null;
930
+ $code-block-font-hljs-selector-attr-font-weight: null;
931
+ $code-block-font-hljs-selector-class-font-style: null;
932
+ $code-block-font-hljs-selector-class-font-weight: null;
933
+ $code-block-font-hljs-selector-id-font-style: null;
934
+ $code-block-font-hljs-selector-id-font-weight: null;
935
+ $code-block-font-hljs-selector-pseudo-font-style: null;
936
+ $code-block-font-hljs-selector-pseudo-font-weight: null;
937
+ $code-block-font-hljs-selector-tag-font-style: null;
938
+ $code-block-font-hljs-selector-tag-font-weight: null;
939
+ $code-block-font-hljs-string-font-style: null;
940
+ $code-block-font-hljs-string-font-weight: null;
941
+ $code-block-font-hljs-strong-font-style: null;
942
+ $code-block-font-hljs-strong-font-weight: null;
943
+ $code-block-font-hljs-subst-font-style: null;
944
+ $code-block-font-hljs-subst-font-weight: null;
945
+ $code-block-font-hljs-symbol-font-style: null;
946
+ $code-block-font-hljs-symbol-font-weight: null;
947
+ $code-block-font-hljs-tag-font-style: null;
948
+ $code-block-font-hljs-tag-font-weight: null;
949
+ $code-block-font-hljs-template-tag-font-style: null;
950
+ $code-block-font-hljs-template-tag-font-weight: null;
951
+ $code-block-font-hljs-template-variable-font-style: null;
952
+ $code-block-font-hljs-template-variable-font-weight: null;
953
+ $code-block-font-hljs-title-font-style: null;
954
+ $code-block-font-hljs-title-font-weight: null;
955
+ $code-block-font-hljs-title-class-font-style: normal;
956
+ $code-block-font-hljs-title-class-font-weight: 500;
957
+ $code-block-font-hljs-title-class-inherited-font-style: null;
958
+ $code-block-font-hljs-title-class-inherited-font-weight: null;
959
+ $code-block-font-hljs-title-function-font-style: null;
960
+ $code-block-font-hljs-title-function-font-weight: null;
961
+ $code-block-font-hljs-title-function-invoke-font-style: null;
962
+ $code-block-font-hljs-title-function-invoke-font-weight: null;
963
+ $code-block-font-hljs-type-font-style: null;
964
+ $code-block-font-hljs-type-font-weight: null;
965
+ $code-block-font-hljs-variable-font-style: null;
966
+ $code-block-font-hljs-variable-font-weight: null;
967
+ $code-block-font-hljs-variable-constant-font-style: null;
968
+ $code-block-font-hljs-variable-constant-font-weight: null;
969
+ $code-block-font-hljs-variable-language-font-style: null;
970
+ $code-block-font-hljs-variable-language-font-weight: null;
630
971
  $datepicker-toggle-size-width: 30px;
631
972
  $datepicker-toggle-size-height: 30px;
632
973
  $datepicker-body-light-color-scheme-states-today-color: #0374eb;
@@ -14,10 +14,12 @@ export declare class McButtonCssStyler implements AfterContentInit {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<McButtonCssStyler, never>;
15
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<McButtonCssStyler, "[mc-button]", never, {}, {}, ["icons"], never, false>;
16
16
  }
17
+ /** @docs-private */
17
18
  export declare class McButtonBase {
18
19
  elementRef: ElementRef;
19
20
  constructor(elementRef: ElementRef);
20
21
  }
22
+ /** @docs-private */
21
23
  export declare const McButtonMixinBase: HasTabIndexCtor & CanColorCtor & typeof McButtonBase;
22
24
  export declare class McButton extends McButtonMixinBase implements OnDestroy, CanDisable, CanColor {
23
25
  private focusMonitor;
@@ -2,10 +2,12 @@ import { FocusMonitor } from '@angular/cdk/a11y';
2
2
  import { ElementRef, OnDestroy, EventEmitter } from '@angular/core';
3
3
  import { CanColorCtor } from '@ptsecurity/mosaic/core';
4
4
  import * as i0 from "@angular/core";
5
+ /** @docs-private */
5
6
  export declare class McCardBase {
6
7
  elementRef: ElementRef;
7
8
  constructor(elementRef: ElementRef);
8
9
  }
10
+ /** @docs-private */
9
11
  export declare const McCardBaseMixin: CanColorCtor & typeof McCardBase;
10
12
  export declare class McCard extends McCardBaseMixin implements OnDestroy {
11
13
  private _focusMonitor;
@@ -36,6 +36,7 @@ export declare class McCheckboxBase {
36
36
  elementRef: ElementRef;
37
37
  constructor(elementRef: ElementRef);
38
38
  }
39
+ /** @docs-private */
39
40
  export declare const McCheckboxMixinBase: HasTabIndexCtor & CanColorCtor & CanDisableCtor & typeof McCheckboxBase;
40
41
  /**
41
42
  * A mosaic checkbox component. Supports all of the functionality of an HTML5 checkbox,
@@ -0,0 +1,32 @@
1
+ # Popover component
2
+
3
+ ## API
4
+
5
+ | Property | Description | Type | Default |
6
+ |------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|---------|
7
+ | mcPlacement | Место для показа относительно элемента, к которому он привязан. Возможные значения: top, bottom, left, right | string | bottom |
8
+ | mcTrigger | Триггер для показа Возможные значения: hover, manual, click, focus | string | hover |
9
+ | mcVisible | Ручное управление показом, используется только при mcTrigger="manual" | boolean | false |
10
+ | mcPopoverHeader | Содержимое шапки Обрати внимание: если используешь строку, то используй аккуратно, желательно предварительно сделать escape строки, чтобы избежать потенциальной XSS уязвимости. | string | ng-template | – |
11
+ | mcPopoverContent | Содержимое компонента Обрати внимание: если используешь строку, то используй аккуратно, желательно предварительно сделать escape строки, чтобы избежать потенциальной XSS уязвимости. | string | ng-template | – |
12
+ | mcPopoverFooter | Содержимое подвала Обрати внимание: если используешь строку, то используй аккуратно, желательно предварительно сделать escape строки, чтобы избежать потенциальной XSS уязвимости. | string | ng-template | – |
13
+ | mcPopoverDisabled | Флаг для запрета показа | boolean | false |
14
+ | mcPopoverClass | Добавление своих классов | string | string[] | – |
15
+ | mcVisibleChange | Callback на изменение видимости компонента | EventEmitter<boolean> | – |
16
+
17
+ ## Example
18
+
19
+ ```html
20
+ <ng-template #customContent>
21
+ Э́йяфьядлайё̀кюдль — шестой по величине ледник Исландии. Расположен на юге Исландии в 125 км к востоку от Рейкьявика. Под этим ледником находится одноимённый вулкан конической формы.
22
+ </ng-template>
23
+
24
+ <button
25
+ mcPopover
26
+ [mcTrigger]="'hover'"
27
+ [mcPlacement]="'top'"
28
+ [mcPopoverHeader]="'Это header'"
29
+ [mcPopoverContent]="customContent">
30
+ Найти Эйяфьядлайёкюдль
31
+ </button>
32
+ ```
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, EventEmitter } from '@angular/core';
2
+ import { McTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
3
+ import { McCodeBlockConfiguration, McCodeFile } from './code-block.types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class McActionBarComponent implements AfterViewInit {
6
+ copyTooltip: McTooltipTrigger;
7
+ config: McCodeBlockConfiguration;
8
+ codeFiles: McCodeFile[];
9
+ lessContrast: boolean;
10
+ selectedTabIndex: number;
11
+ multiLine: boolean;
12
+ softWrap: boolean;
13
+ toggleSoftWrap: EventEmitter<void>;
14
+ downloadCode: EventEmitter<void>;
15
+ copyCode: EventEmitter<void>;
16
+ openExternalSystem: EventEmitter<void>;
17
+ copyTooltipText: string;
18
+ ngAfterViewInit(): void;
19
+ onCopy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<McActionBarComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<McActionBarComponent, "mc-actionbar-block", never, { "config": "config"; "codeFiles": "codeFiles"; "lessContrast": "lessContrast"; "selectedTabIndex": "selectedTabIndex"; "multiLine": "multiLine"; "softWrap": "softWrap"; }, { "toggleSoftWrap": "toggleSoftWrap"; "downloadCode": "downloadCode"; "copyCode": "copyCode"; "openExternalSystem": "openExternalSystem"; }, never, never, false>;
22
+ }
@@ -0,0 +1,74 @@
1
+ import { Clipboard } from '@angular/cdk/clipboard';
2
+ import { InjectionToken, ElementRef, ChangeDetectorRef, OnDestroy, Renderer2 } from '@angular/core';
3
+ import { McTabChangeEvent, McTabGroup } from '@ptsecurity/mosaic/tabs';
4
+ import { Subject } from 'rxjs';
5
+ import { McCodeBlockConfiguration, McCodeFile } from './code-block.types';
6
+ import * as i0 from "@angular/core";
7
+ export declare const COPIED_MESSAGE_TOOLTIP_TIMEOUT = 100;
8
+ export declare const DEFAULT_EXTENSION = "txt";
9
+ export declare const LANGUAGES_EXTENSIONS: {
10
+ html: string;
11
+ css: string;
12
+ php: string;
13
+ java: string;
14
+ bash: string;
15
+ javascript: string;
16
+ typescript: string;
17
+ python: string;
18
+ ruby: string;
19
+ c: string;
20
+ 'c++': string;
21
+ 'c#': string;
22
+ csharp: string;
23
+ lua: string;
24
+ xml: string;
25
+ json: string;
26
+ };
27
+ export declare const MC_CODE_BLOCK_CONFIGURATION: InjectionToken<any>;
28
+ export declare const MC_CODE_BLOCK_DEFAULT_CONFIGURATION: {
29
+ softWrapOnTooltip: string;
30
+ softWrapOffTooltip: string;
31
+ downloadTooltip: string;
32
+ copiedTooltip: string;
33
+ copyTooltip: string;
34
+ viewAllText: string;
35
+ viewLessText: string;
36
+ openExternalSystemTooltip: string;
37
+ };
38
+ export declare class McCodeBlockComponent implements OnDestroy {
39
+ private elementRef;
40
+ private changeDetectorRef;
41
+ private clipboard;
42
+ private renderer;
43
+ config: McCodeBlockConfiguration;
44
+ tabGroup: McTabGroup;
45
+ lineNumbers: boolean;
46
+ codeFiles: McCodeFile[];
47
+ lessContrast: boolean;
48
+ maxHeight: number;
49
+ softWrap: boolean;
50
+ get noHeader(): any;
51
+ get singleFile(): boolean;
52
+ selectedTabIndex: number;
53
+ copied: boolean;
54
+ viewAll: boolean;
55
+ multiLine: boolean;
56
+ readonly resizeStream: Subject<Event>;
57
+ private readonly resizeDebounceInterval;
58
+ private resizeSubscription;
59
+ constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, clipboard: Clipboard, renderer: Renderer2, config: McCodeBlockConfiguration);
60
+ ngOnDestroy(): void;
61
+ updateHeader: () => void;
62
+ toggleSoftWrap(): void;
63
+ toggleViewAll(): void;
64
+ downloadCode(): void;
65
+ copyCode(): void;
66
+ openExternalSystem(): void;
67
+ onHighlighted(): void;
68
+ getMaxHeight(): string;
69
+ onSelectTab($event: McTabChangeEvent): void;
70
+ private updateMultiline;
71
+ private getFullFileName;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<McCodeBlockComponent, [null, null, null, null, { optional: true; }]>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<McCodeBlockComponent, "mc-code-block", ["mcCodeBlock"], { "lineNumbers": "lineNumbers"; "codeFiles": "codeFiles"; "lessContrast": "lessContrast"; "maxHeight": "maxHeight"; "softWrap": "softWrap"; }, {}, never, never, false>;
74
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./code-block.component";
3
+ import * as i2 from "./actionbar.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@ptsecurity/mosaic/button";
6
+ import * as i5 from "@ptsecurity/mosaic/tooltip";
7
+ import * as i6 from "@ptsecurity/mosaic/icon";
8
+ import * as i7 from "ngx-highlightjs";
9
+ import * as i8 from "@ptsecurity/mosaic/tabs";
10
+ export declare class McCodeBlockModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<McCodeBlockModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<McCodeBlockModule, [typeof i1.McCodeBlockComponent, typeof i2.McActionBarComponent], [typeof i3.CommonModule, typeof i4.McButtonModule, typeof i5.McToolTipModule, typeof i6.McIconModule, typeof i7.HighlightModule, typeof i8.McTabsModule], [typeof i1.McCodeBlockComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<McCodeBlockModule>;
14
+ }
@@ -0,0 +1,17 @@
1
+ export interface McCodeBlockConfiguration {
2
+ softWrapOnTooltip: string;
3
+ softWrapOffTooltip: string;
4
+ downloadTooltip: string;
5
+ copiedTooltip: string;
6
+ copyTooltip: string;
7
+ viewAllText: string;
8
+ viewLessText: string;
9
+ openExternalSystemTooltip: string;
10
+ }
11
+ export interface McCodeFile {
12
+ filename: string;
13
+ content: string;
14
+ language: string;
15
+ code?: string;
16
+ link?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ export * from './code-block.module';
2
+ export * from './code-block.types';
3
+ export * from './code-block.component';
@@ -1,4 +1,4 @@
1
- import { DateAdapter } from '@ptsecurity/cdk/datetime';
1
+ import { DateAdapter, DurationUnit } from '@ptsecurity/cdk/datetime';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * interface for absolute date or datetime formatter template
@@ -37,6 +37,34 @@ export interface FormatterRelativeTemplate {
37
37
  TOMORROW: string;
38
38
  AFTER_TOMORROW: string;
39
39
  }
40
+ /**
41
+ * interface for duration of dates numeric formatter template
42
+ */
43
+ export interface FormatterDurationNumbersTemplate {
44
+ variables?: {
45
+ [name: string]: string;
46
+ };
47
+ FULL: string;
48
+ ONLY_MINUTES: string;
49
+ }
50
+ /**
51
+ * interface for duration of dates text formatter template
52
+ */
53
+ export interface FormatterDurationTemplate {
54
+ variables?: {
55
+ [name: string]: string;
56
+ };
57
+ YEARS: string;
58
+ MONTHS: string;
59
+ WEEKS: string;
60
+ DAYS: string;
61
+ HOURS: string;
62
+ MINUTES: string;
63
+ SECONDS: string;
64
+ SEPARATOR: string;
65
+ YEARS_FRACTION: string;
66
+ MONTHS_FRACTION: string;
67
+ }
40
68
  export interface DateTimeOptions {
41
69
  seconds?: boolean;
42
70
  milliseconds?: boolean;
@@ -62,6 +90,11 @@ export interface FormatterConfig {
62
90
  long: FormatterRangeTemplate;
63
91
  };
64
92
  };
93
+ durationTemplates: {
94
+ shortest: FormatterDurationNumbersTemplate;
95
+ short: FormatterDurationTemplate;
96
+ long: FormatterDurationTemplate;
97
+ };
65
98
  }
66
99
  export declare class DateFormatter<D> {
67
100
  private readonly adapter;
@@ -198,6 +231,27 @@ export declare class DateFormatter<D> {
198
231
  * @returns range middle date with time
199
232
  */
200
233
  rangeMiddleDateTime(startDate: D, endDate: D, options?: DateTimeOptions): string;
234
+ /**
235
+ * @param startDate - start date
236
+ * @param endDate - end date
237
+ * @param seconds - add seconds to formatted value
238
+ * @param milliseconds - add milliseconds to formatted value
239
+ * @returns formatted duration as string like 48:02:25
240
+ */
241
+ durationShortest(startDate: D, endDate: D, seconds?: boolean, milliseconds?: boolean): string;
242
+ /**
243
+ * @param startDate - start date
244
+ * @param endDate - end date
245
+ * @param units - if defined, units to show will be specified
246
+ * @param fraction - shows fraction part for years and months
247
+ * @param template - specify template
248
+ * @returns formatted duration as string
249
+ */
250
+ duration(startDate: D, endDate: D, units: DurationUnit[], fraction: any, template: FormatterDurationTemplate): string;
251
+ durationLong(startDate: D, endDate: D, units?: DurationUnit[], fraction?: boolean): string;
252
+ durationShort(startDate: D, endDate: D, units?: DurationUnit[], fraction?: boolean): string;
253
+ private checkDates;
254
+ private compileMessage;
201
255
  /**
202
256
  * @param date - date for compile
203
257
  * @param variables - date template variables
@@ -17,8 +17,10 @@ export interface McOptionActionParent {
17
17
  focus(): void;
18
18
  }
19
19
  export declare const MC_OPTION_ACTION_PARENT: InjectionToken<McOptionActionParent>;
20
+ /** @docs-private */
20
21
  export declare class McOptionActionBase {
21
22
  }
23
+ /** @docs-private */
22
24
  export declare const McOptionActionMixinBase: HasTabIndexCtor & CanDisableCtor & typeof McOptionActionBase;
23
25
  export declare class McOptionActionComponent extends McOptionActionMixinBase implements AfterViewInit, OnDestroy {
24
26
  private elementRef;
@@ -7,6 +7,7 @@ export declare class McPseudoCheckboxBase {
7
7
  elementRef: ElementRef;
8
8
  constructor(elementRef: ElementRef);
9
9
  }
10
+ /** @docs-private */
10
11
  export declare const McPseudoCheckboxMixinBase: CanColorCtor & CanDisableCtor & typeof McPseudoCheckboxBase;
11
12
  /**
12
13
  * Component that shows a simplified checkbox without including any kind of "real" checkbox.