@ptsecurity/mosaic 11.5.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +409 -100
- package/_visual.scss +66 -23
- package/autocomplete/autocomplete-origin.directive.d.ts +3 -0
- package/autocomplete/autocomplete-trigger.directive.d.ts +3 -0
- package/autocomplete/autocomplete.component.d.ts +3 -0
- package/autocomplete/autocomplete.module.d.ts +10 -0
- package/autocomplete/package.json +0 -1
- package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +1 -0
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +178 -114
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +107 -71
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +106 -77
- package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +74 -43
- package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +114 -69
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +804 -256
- package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +601 -421
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +108 -26
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +55 -28
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +263 -187
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +200 -125
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +79 -41
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +222 -124
- package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +76 -45
- package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +354 -202
- package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +324 -220
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +289 -208
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +346 -640
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +126 -81
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +276 -154
- package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +105 -68
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +236 -158
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +112 -83
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +77 -44
- package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +894 -687
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +313 -209
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +107 -53
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +117 -72
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +97 -58
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +347 -615
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +223 -118
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +1162 -344
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic.umd.js +2 -2
- package/button/button.component.d.ts +7 -0
- package/button/button.module.d.ts +8 -0
- package/button/package.json +0 -1
- package/button/ptsecurity-mosaic-button.d.ts +1 -0
- package/button-toggle/button-toggle.component.d.ts +5 -0
- package/button-toggle/button-toggle.module.d.ts +7 -0
- package/button-toggle/package.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +1 -0
- package/card/card.component.d.ts +3 -0
- package/card/card.module.d.ts +8 -0
- package/card/package.json +0 -1
- package/card/ptsecurity-mosaic-card.d.ts +1 -0
- package/checkbox/checkbox-module.d.ts +7 -0
- package/checkbox/checkbox-required-validator.d.ts +3 -0
- package/checkbox/checkbox.d.ts +3 -0
- package/checkbox/package.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.d.ts +1 -0
- package/core/common-behaviors/color.d.ts +3 -3
- package/core/common-behaviors/common-module.d.ts +5 -0
- package/core/common-behaviors/disabled.d.ts +4 -3
- package/core/common-behaviors/tabindex.d.ts +2 -1
- package/core/error/error-options.d.ts +5 -0
- package/core/formatters/date/formatter.d.ts +3 -0
- package/core/formatters/index.d.ts +5 -0
- package/core/formatters/number/formatter.d.ts +4 -0
- package/core/forms/forms-module.d.ts +5 -0
- package/core/forms/forms.directive.d.ts +5 -0
- package/core/highlight/highlight.pipe.d.ts +3 -0
- package/core/highlight/index.d.ts +6 -0
- package/core/line/line.d.ts +6 -0
- package/core/option/action.d.ts +42 -0
- package/core/option/index.d.ts +1 -0
- package/core/option/optgroup.d.ts +3 -0
- package/core/option/option-module.d.ts +9 -0
- package/core/option/option.d.ts +3 -0
- package/core/overlay/overlay-position-map.d.ts +0 -4
- package/core/package.json +0 -1
- package/core/pop-up/constants.d.ts +29 -0
- package/core/pop-up/index.d.ts +3 -0
- package/core/pop-up/pop-up-trigger.d.ts +70 -0
- package/core/pop-up/pop-up.d.ts +35 -0
- package/core/ptsecurity-mosaic-core.d.ts +1 -1
- package/core/public-api.d.ts +1 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +6 -0
- package/core/services/measure-scrollbar.service.d.ts +3 -0
- package/datepicker/calendar-body.component.d.ts +5 -6
- package/datepicker/calendar.component.d.ts +5 -0
- package/datepicker/datepicker-input.directive.d.ts +6 -2
- package/datepicker/datepicker-intl.d.ts +3 -0
- package/datepicker/datepicker-module.d.ts +18 -0
- package/datepicker/datepicker-toggle.component.d.ts +5 -0
- package/datepicker/datepicker.component.d.ts +5 -0
- package/datepicker/month-view.component.d.ts +3 -0
- package/datepicker/multi-year-view.component.d.ts +3 -0
- package/datepicker/package.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.d.ts +1 -0
- package/datepicker/year-view.component.d.ts +3 -0
- package/design-tokens/package.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +1 -0
- package/design-tokens/tokens/components/list.json5 +0 -4
- package/design-tokens/tokens/components/popover.json5 +32 -4
- package/design-tokens/tokens/components/tooltip.json5 +49 -3
- package/design-tokens/tokens/components/tree.json5 +3 -3
- package/design-tokens/tokens/properties/globals.json5 +1 -1
- package/design-tokens/tokens.d.ts +56 -15
- package/divider/divider.component.d.ts +3 -0
- package/divider/divider.module.d.ts +6 -0
- package/divider/package.json +0 -1
- package/divider/ptsecurity-mosaic-divider.d.ts +1 -0
- package/dropdown/dropdown-content.directive.d.ts +3 -0
- package/dropdown/dropdown-item.component.d.ts +3 -0
- package/dropdown/dropdown-trigger.directive.d.ts +6 -8
- package/dropdown/dropdown.component.d.ts +5 -1
- package/dropdown/dropdown.module.d.ts +11 -0
- package/dropdown/package.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.d.ts +1 -0
- package/esm2015/autocomplete/autocomplete-origin.directive.js +11 -11
- package/esm2015/autocomplete/autocomplete-trigger.directive.js +53 -38
- package/esm2015/autocomplete/autocomplete.component.js +56 -37
- package/esm2015/autocomplete/autocomplete.module.js +25 -15
- package/esm2015/button/button.component.js +52 -56
- package/esm2015/button/button.module.js +35 -20
- package/esm2015/button-toggle/button-toggle.component.js +76 -55
- package/esm2015/button-toggle/button-toggle.module.js +13 -8
- package/esm2015/card/card.component.js +32 -30
- package/esm2015/card/card.module.js +23 -12
- package/esm2015/checkbox/checkbox-module.js +13 -8
- package/esm2015/checkbox/checkbox-required-validator.js +12 -8
- package/esm2015/checkbox/checkbox.js +61 -44
- package/esm2015/core/common-behaviors/color.js +2 -5
- package/esm2015/core/common-behaviors/common-module.js +17 -11
- package/esm2015/core/common-behaviors/disabled.js +1 -1
- package/esm2015/core/common-behaviors/tabindex.js +4 -13
- package/esm2015/core/error/error-options.js +12 -8
- package/esm2015/core/formatters/date/formatter.js +13 -10
- package/esm2015/core/formatters/index.js +13 -8
- package/esm2015/core/formatters/number/formatter.js +16 -10
- package/esm2015/core/forms/forms-module.js +20 -13
- package/esm2015/core/forms/forms.directive.js +32 -29
- package/esm2015/core/highlight/highlight.pipe.js +8 -4
- package/esm2015/core/highlight/index.js +13 -8
- package/esm2015/core/line/line.js +22 -14
- package/esm2015/core/option/action.js +131 -0
- package/esm2015/core/option/index.js +2 -1
- package/esm2015/core/option/optgroup.js +22 -19
- package/esm2015/core/option/option-module.js +14 -8
- package/esm2015/core/option/option.js +44 -35
- package/esm2015/core/overlay/overlay-position-map.js +16 -18
- package/esm2015/core/pop-up/constants.js +34 -0
- package/esm2015/core/pop-up/index.js +4 -0
- package/esm2015/core/pop-up/pop-up-trigger.js +241 -0
- package/esm2015/core/pop-up/pop-up.js +87 -0
- package/esm2015/core/ptsecurity-mosaic-core.js +1 -2
- package/esm2015/core/public-api.js +2 -1
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +25 -21
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +13 -8
- package/esm2015/core/services/measure-scrollbar.service.js +12 -12
- package/esm2015/datepicker/calendar-body.component.js +39 -32
- package/esm2015/datepicker/calendar.component.js +92 -58
- package/esm2015/datepicker/datepicker-input.directive.js +94 -62
- package/esm2015/datepicker/datepicker-intl.js +7 -5
- package/esm2015/datepicker/datepicker-module.js +89 -48
- package/esm2015/datepicker/datepicker-toggle.component.js +44 -32
- package/esm2015/datepicker/datepicker.component.js +88 -63
- package/esm2015/datepicker/month-view.component.js +48 -29
- package/esm2015/datepicker/multi-year-view.component.js +40 -27
- package/esm2015/datepicker/year-view.component.js +45 -28
- package/esm2015/design-tokens/tokens.js +57 -16
- package/esm2015/divider/divider.component.js +24 -20
- package/esm2015/divider/divider.module.js +13 -8
- package/esm2015/dropdown/dropdown-content.directive.js +13 -15
- package/esm2015/dropdown/dropdown-item.component.js +40 -30
- package/esm2015/dropdown/dropdown-trigger.directive.js +75 -67
- package/esm2015/dropdown/dropdown.component.js +63 -38
- package/esm2015/dropdown/dropdown.module.js +40 -23
- package/esm2015/form-field/cleaner.js +20 -11
- package/esm2015/form-field/form-field.js +77 -53
- package/esm2015/form-field/form-field.module.js +41 -24
- package/esm2015/form-field/hint.js +16 -13
- package/esm2015/form-field/prefix.js +10 -6
- package/esm2015/form-field/stepper.js +22 -11
- package/esm2015/form-field/suffix.js +10 -6
- package/esm2015/icon/icon.component.js +27 -22
- package/esm2015/icon/icon.module.js +31 -18
- package/esm2015/input/input-number-validators.js +48 -29
- package/esm2015/input/input-number.js +42 -28
- package/esm2015/input/input.js +94 -52
- package/esm2015/input/input.module.js +13 -8
- package/esm2015/link/link.component.js +38 -34
- package/esm2015/link/link.module.js +20 -11
- package/esm2015/list/list-selection.component.js +234 -124
- package/esm2015/list/list.component.js +35 -32
- package/esm2015/list/list.module.js +47 -25
- package/esm2015/modal/css-unit.pipe.js +10 -6
- package/esm2015/modal/modal-control.service.js +11 -8
- package/esm2015/modal/modal.component.js +107 -61
- package/esm2015/modal/modal.directive.js +43 -30
- package/esm2015/modal/modal.module.js +59 -31
- package/esm2015/modal/modal.service.js +9 -9
- package/esm2015/modal/ptsecurity-mosaic-modal.js +1 -3
- package/esm2015/navbar/navbar-item.component.js +111 -95
- package/esm2015/navbar/navbar.component.js +40 -30
- package/esm2015/navbar/navbar.module.js +66 -35
- package/esm2015/navbar/ptsecurity-mosaic-navbar.js +1 -2
- package/esm2015/navbar/vertical-navbar.component.js +68 -46
- package/esm2015/popover/popover-confirm.component.js +115 -0
- package/esm2015/popover/popover.component.js +180 -587
- package/esm2015/popover/popover.module.js +18 -12
- package/esm2015/popover/public-api.js +2 -1
- package/esm2015/progress-bar/progress-bar.component.js +26 -24
- package/esm2015/progress-bar/progress-bar.module.js +24 -15
- package/esm2015/progress-spinner/progress-spinner.component.js +26 -24
- package/esm2015/progress-spinner/progress-spinner.module.js +24 -15
- package/esm2015/radio/radio.component.js +87 -67
- package/esm2015/radio/radio.module.js +13 -8
- package/esm2015/select/select.component.js +181 -105
- package/esm2015/select/select.module.js +54 -28
- package/esm2015/sidebar/ptsecurity-mosaic-sidebar.js +1 -2
- package/esm2015/sidebar/sidebar.component.js +61 -50
- package/esm2015/sidebar/sidebar.module.js +25 -16
- package/esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js +1 -2
- package/esm2015/sidepanel/sidepanel-container.component.js +46 -40
- package/esm2015/sidepanel/sidepanel-directives.js +87 -57
- package/esm2015/sidepanel/sidepanel.module.js +63 -30
- package/esm2015/sidepanel/sidepanel.service.js +20 -12
- package/esm2015/splitter/splitter.component.js +62 -64
- package/esm2015/splitter/splitter.module.js +32 -19
- package/esm2015/table/table.component.js +13 -9
- package/esm2015/table/table.module.js +23 -12
- package/esm2015/tabs/paginated-tab-header.js +20 -18
- package/esm2015/tabs/ptsecurity-mosaic-tabs.js +1 -6
- package/esm2015/tabs/tab-body.component.js +52 -42
- package/esm2015/tabs/tab-content.directive.js +8 -8
- package/esm2015/tabs/tab-group.component.js +145 -74
- package/esm2015/tabs/tab-header.component.js +50 -36
- package/esm2015/tabs/tab-label-wrapper.directive.js +30 -16
- package/esm2015/tabs/tab-label.directive.js +11 -7
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +46 -46
- package/esm2015/tabs/tab.component.js +67 -33
- package/esm2015/tabs/tabs.module.js +87 -45
- package/esm2015/tags/tag-input.js +48 -34
- package/esm2015/tags/tag-list.component.js +93 -56
- package/esm2015/tags/tag.component.js +90 -73
- package/esm2015/tags/tag.module.js +46 -29
- package/esm2015/textarea/textarea.component.js +70 -41
- package/esm2015/textarea/textarea.module.js +13 -8
- package/esm2015/timepicker/timepicker.directive.js +66 -54
- package/esm2015/timepicker/timepicker.module.js +26 -13
- package/esm2015/toggle/toggle.component.js +65 -47
- package/esm2015/toggle/toggle.module.js +13 -8
- package/esm2015/tooltip/tooltip.animations.js +19 -0
- package/esm2015/tooltip/tooltip.component.js +239 -555
- package/esm2015/tooltip/tooltip.module.js +38 -11
- package/esm2015/tree/control/base-tree-control.js +60 -0
- package/esm2015/tree/control/flat-tree-control.js +123 -0
- package/esm2015/tree/control/nested-tree-control.js +41 -0
- package/esm2015/tree/control/tree-control.js +2 -0
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +31 -0
- package/esm2015/tree/outlet.js +15 -0
- package/esm2015/tree/padding.directive.js +98 -25
- package/esm2015/tree/public-api.js +9 -2
- package/esm2015/tree/toggle.js +65 -70
- package/esm2015/tree/tree-base.js +243 -0
- package/esm2015/tree/tree-errors.js +36 -0
- package/esm2015/tree/tree-option.component.js +102 -56
- package/esm2015/tree/tree-selection.component.js +180 -115
- package/esm2015/tree/tree.js +23 -0
- package/esm2015/tree/tree.module.js +38 -12
- package/esm2015/tree-select/tree-select.component.js +153 -85
- package/esm2015/tree-select/tree-select.module.js +33 -18
- package/fesm2015/ptsecurity-mosaic-autocomplete.js +140 -102
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js +87 -63
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.js +86 -76
- package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.js +54 -42
- package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js +82 -59
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.js +758 -239
- package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js +546 -377
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +57 -16
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +34 -26
- package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +219 -171
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +184 -119
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +56 -39
- package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.js +191 -116
- package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.js +57 -45
- package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.js +311 -179
- package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.js +243 -159
- package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +280 -205
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +297 -597
- package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.js +99 -76
- package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.js +236 -136
- package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js +85 -66
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js +207 -139
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +92 -82
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.js +33 -19
- package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js +557 -387
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.js +273 -192
- package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js +83 -50
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +89 -66
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js +77 -55
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +293 -566
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js +188 -106
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.js +1001 -279
- package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
- package/form-field/cleaner.d.ts +5 -0
- package/form-field/form-field.d.ts +5 -0
- package/form-field/form-field.module.d.ts +12 -0
- package/form-field/hint.d.ts +3 -0
- package/form-field/package.json +0 -1
- package/form-field/prefix.d.ts +3 -0
- package/form-field/ptsecurity-mosaic-form-field.d.ts +1 -0
- package/form-field/stepper.d.ts +3 -0
- package/form-field/suffix.d.ts +3 -0
- package/icon/icon.component.d.ts +5 -0
- package/icon/icon.module.d.ts +8 -0
- package/icon/package.json +0 -1
- package/icon/ptsecurity-mosaic-icon.d.ts +1 -0
- package/input/input-number-validators.d.ts +7 -2
- package/input/input-number.d.ts +3 -0
- package/input/input.d.ts +5 -0
- package/input/input.module.d.ts +11 -0
- package/input/package.json +0 -1
- package/input/ptsecurity-mosaic-input.d.ts +1 -0
- package/link/link.component.d.ts +3 -0
- package/link/link.module.d.ts +7 -0
- package/link/package.json +0 -1
- package/link/ptsecurity-mosaic-link.d.ts +1 -0
- package/list/list-selection.component.d.ts +30 -3
- package/list/list.component.d.ts +5 -0
- package/list/list.module.d.ts +9 -0
- package/list/package.json +0 -1
- package/list/ptsecurity-mosaic-list.d.ts +1 -0
- package/modal/css-unit.pipe.d.ts +3 -0
- package/modal/modal-control.service.d.ts +3 -0
- package/modal/modal.component.d.ts +5 -0
- package/modal/modal.directive.d.ts +9 -0
- package/modal/modal.module.d.ts +12 -0
- package/modal/modal.service.d.ts +3 -0
- package/modal/package.json +0 -1
- package/modal/ptsecurity-mosaic-modal.d.ts +1 -2
- package/navbar/navbar-item.component.d.ts +13 -0
- package/navbar/navbar.component.d.ts +5 -0
- package/navbar/navbar.module.d.ts +11 -0
- package/navbar/package.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.d.ts +1 -1
- package/navbar/vertical-navbar.component.d.ts +5 -0
- package/package.json +8 -9
- package/popover/package.json +0 -1
- package/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +50 -136
- package/popover/popover.module.d.ts +9 -0
- package/popover/ptsecurity-mosaic-popover.d.ts +1 -0
- package/popover/public-api.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-bar/package.json +0 -1
- package/progress-bar/progress-bar.component.d.ts +3 -0
- package/progress-bar/progress-bar.module.d.ts +7 -0
- package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +1 -0
- package/progress-spinner/package.json +0 -1
- package/progress-spinner/progress-spinner.component.d.ts +3 -0
- package/progress-spinner/progress-spinner.module.d.ts +7 -0
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +1 -0
- package/ptsecurity-mosaic.d.ts +1 -0
- package/radio/package.json +0 -1
- package/radio/ptsecurity-mosaic-radio.d.ts +1 -0
- package/radio/radio.component.d.ts +5 -0
- package/radio/radio.module.d.ts +8 -0
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +6 -3
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/select/package.json +0 -1
- package/select/ptsecurity-mosaic-select.d.ts +1 -0
- package/select/select.component.d.ts +11 -7
- package/select/select.module.d.ts +11 -0
- package/sidebar/package.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +7 -0
- package/sidebar/sidebar.module.d.ts +6 -0
- package/sidepanel/package.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +1 -1
- package/sidepanel/sidepanel-container.component.d.ts +3 -0
- package/sidepanel/sidepanel-directives.d.ts +13 -0
- package/sidepanel/sidepanel.module.d.ts +13 -0
- package/sidepanel/sidepanel.service.d.ts +3 -0
- package/splitter/package.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.d.ts +1 -0
- package/splitter/splitter.component.d.ts +7 -0
- package/splitter/splitter.module.d.ts +7 -0
- package/table/package.json +0 -1
- package/table/ptsecurity-mosaic-table.d.ts +1 -0
- package/table/table.component.d.ts +3 -0
- package/table/table.module.d.ts +8 -0
- package/tabs/package.json +0 -1
- package/tabs/paginated-tab-header.d.ts +3 -0
- package/tabs/ptsecurity-mosaic-tabs.d.ts +1 -5
- package/tabs/tab-body.component.d.ts +5 -0
- package/tabs/tab-content.directive.d.ts +3 -0
- package/tabs/tab-group.component.d.ts +24 -4
- package/tabs/tab-header.component.d.ts +3 -0
- package/tabs/tab-label-wrapper.directive.d.ts +9 -0
- package/tabs/tab-label.directive.d.ts +3 -0
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +5 -0
- package/tabs/tab.component.d.ts +12 -3
- package/tabs/tabs.module.d.ts +18 -0
- package/tags/package.json +0 -1
- package/tags/ptsecurity-mosaic-tags.d.ts +1 -0
- package/tags/tag-input.d.ts +3 -0
- package/tags/tag-list.component.d.ts +3 -0
- package/tags/tag.component.d.ts +9 -0
- package/tags/tag.module.d.ts +9 -0
- package/textarea/package.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.d.ts +1 -0
- package/textarea/textarea.component.d.ts +3 -0
- package/textarea/textarea.module.d.ts +9 -0
- package/timepicker/package.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.d.ts +1 -0
- package/timepicker/timepicker.directive.d.ts +5 -2
- package/timepicker/timepicker.module.d.ts +9 -0
- package/toggle/package.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.d.ts +1 -0
- package/toggle/toggle.component.d.ts +3 -0
- package/toggle/toggle.module.d.ts +8 -0
- package/tooltip/package.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.d.ts +1 -0
- package/tooltip/tooltip.animations.d.ts +8 -0
- package/tooltip/tooltip.component.d.ts +74 -134
- package/tooltip/tooltip.module.d.ts +7 -0
- package/tree/control/base-tree-control.d.ts +40 -0
- package/tree/control/flat-tree-control.d.ts +48 -0
- package/tree/control/nested-tree-control.d.ts +19 -0
- package/tree/control/tree-control.d.ts +44 -0
- package/tree/data-source/flat-data-source.d.ts +2 -1
- package/tree/node.d.ts +34 -0
- package/tree/outlet.d.ts +9 -0
- package/tree/package.json +0 -1
- package/tree/padding.directive.d.ts +36 -5
- package/tree/ptsecurity-mosaic-tree.d.ts +1 -0
- package/tree/public-api.d.ts +8 -1
- package/tree/toggle.d.ts +20 -15
- package/tree/tree-base.d.ts +97 -0
- package/tree/tree-errors.d.ts +25 -0
- package/tree/tree-option.component.d.ts +15 -4
- package/tree/tree-selection.component.d.ts +46 -24
- package/tree/tree.d.ts +6 -0
- package/tree/tree.module.d.ts +14 -0
- package/tree-select/package.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.d.ts +1 -0
- package/tree-select/tree-select.component.d.ts +8 -8
- package/tree-select/tree-select.module.d.ts +11 -0
- package/autocomplete/ptsecurity-mosaic-autocomplete.metadata.json +0 -1
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-card.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-core.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-divider.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-icon.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-input.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-link.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-list.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-modal.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-popover.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-radio.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-table.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tags.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic.umd.min.js.map +0 -1
- package/button/ptsecurity-mosaic-button.metadata.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.metadata.json +0 -1
- package/card/ptsecurity-mosaic-card.metadata.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.metadata.json +0 -1
- package/core/ptsecurity-mosaic-core.metadata.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.metadata.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +0 -1
- package/divider/ptsecurity-mosaic-divider.metadata.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +0 -1
- package/esm2015/tree/node.directive.js +0 -15
- package/form-field/ptsecurity-mosaic-form-field.metadata.json +0 -1
- package/icon/ptsecurity-mosaic-icon.metadata.json +0 -1
- package/input/ptsecurity-mosaic-input.metadata.json +0 -1
- package/link/ptsecurity-mosaic-link.metadata.json +0 -1
- package/list/ptsecurity-mosaic-list.metadata.json +0 -1
- package/modal/ptsecurity-mosaic-modal.metadata.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.metadata.json +0 -1
- package/popover/ptsecurity-mosaic-popover.metadata.json +0 -1
- package/progress-bar/ptsecurity-mosaic-progress-bar.metadata.json +0 -1
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.metadata.json +0 -1
- package/ptsecurity-mosaic.metadata.json +0 -1
- package/radio/ptsecurity-mosaic-radio.metadata.json +0 -1
- package/select/ptsecurity-mosaic-select.metadata.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.metadata.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.metadata.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.metadata.json +0 -1
- package/table/ptsecurity-mosaic-table.metadata.json +0 -1
- package/tabs/ptsecurity-mosaic-tabs.metadata.json +0 -1
- package/tags/ptsecurity-mosaic-tags.metadata.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.metadata.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.metadata.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.metadata.json +0 -1
- package/tree/node.directive.d.ts +0 -4
- package/tree/ptsecurity-mosaic-tree.metadata.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.metadata.json +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"secondary-entry-points-migration.js","sourceRoot":"","sources":["../../../../../packages/mosaic/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,wDAAmE;AACnE,iCAAiC;AAGjC,MAAM,2BAA2B,GAAG,qDAAqD;IACrF,4DAA4D,CAAC;AAEjE,MAAM,mCAAmC,GAAG,oCAAoC;IAC5E,4DAA4D,CAAC;AAGjE,MAAM,2BAA2B,GAAG,oBAAoB,CAAC;AACzD,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAE1D,MAAM,wBAAwB,GAAG,IAAI,MAAM,CACvC,GAAG,2BAA2B,SAAS,CAC1C,CAAC;AAEF,2CAA2C;AAC3C,MAAM,oBAAoB,GAA6B,OAAO,CAAC,uBAAuB,CAAC,CAAC;AA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nimport * as ts from 'typescript';\n\n\nconst ONLY_SUBPACKAGE_FAILURE_STR = `Importing from \"@ptsecurity/mosaic\" is deprecated. ` +\n `Instead import from the entry-point the symbol belongs to.`;\n\nconst NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR = `Imports from Mosaic should import ` +\n `specific symbols rather than importing the entire library.`;\n\n\nconst legacyMosaicModuleSpecifier = '@ptsecurity/mosaic';\nconst currentMosaicModuleSpecifier = '@ptsecurity/mosaic';\n\nconst MOSAIC_AC_FILEPATH_REGEX = new RegExp(\n `${legacyMosaicModuleSpecifier}/(.*?)/`\n);\n\n// tslint:disable-next-line:no-var-requires\nconst ENTRY_POINT_MAPPINGS: {[name: string]: string} = require('./mosaic-symbols.json');\n\n\n// tslint:disable-next-line:no-null-keyword\nexport class SecondaryEntryPointsMigration extends Migration<null> {\n\n printer = ts.createPrinter();\n\n // Only enable this rule if the migration targets version 8.\n enabled = this.targetVersion === TargetVersion.V8 || this.targetVersion === TargetVersion.V9;\n\n // tslint:disable-next-line:max-func-body-length\n visitNode(declaration: ts.Node): void {\n\n if (\n !ts.isImportDeclaration(declaration) ||\n !ts.isStringLiteralLike(declaration.moduleSpecifier)\n ) {\n return;\n }\n\n const importLocation = declaration.moduleSpecifier.text;\n // skip check - if the import module is not @ptsecurity/mosaic\n if (importLocation !== legacyMosaicModuleSpecifier) {\n return;\n }\n\n // If no import clause is found, or nothing is named as a binding in the\n // import, add failure saying to import symbols in clause.\n if (!declaration.importClause || !declaration.importClause.namedBindings) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // All named bindings in import clauses must be named symbols, otherwise add\n // failure saying to import symbols in clause.\n if (!ts.isNamedImports(declaration.importClause.namedBindings)) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // If no symbols are in the named bindings then add failure saying to\n // import symbols in clause.\n if (!declaration.importClause.namedBindings.elements.length) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // Map which consists of secondary entry-points and import specifiers which are used\n // within the current import declaration.\n const importMap = new Map<string, ts.ImportSpecifier[]>();\n\n // Determine the subpackage each symbol in the namedBinding comes from.\n for (const element of declaration.importClause.namedBindings.elements) {\n\n const elementName = element.propertyName ? element.propertyName : element.name;\n\n const moduleName = resolveModuleName(elementName, this.typeChecker) ||\n // tslint:disable-next-line:no-null-keyword\n ENTRY_POINT_MAPPINGS[elementName.text] || null;\n\n if (!moduleName) {\n\n this.createFailureAtNode(\n element, `\"${element.getText()}\" was not found in the Mosaic library.`);\n\n return;\n }\n\n // The module name where the symbol is defined e.g. card, dialog. The\n // first capture group is contains the module name.\n if (importMap.has(moduleName)) {\n importMap.get(moduleName)!.push(element);\n } else {\n importMap.set(moduleName, [element]);\n }\n }\n\n const singleQuoteImport = declaration.moduleSpecifier.getText()[0] === `'`;\n\n // Transforms the import declaration into multiple import declarations that import\n // the given symbols from the individual secondary entry-points. For example:\n // import { McCardModule } from '@ptsecurity/mosaic/card';\n // import { McRadioModule } from '@ptsecurity/mosaic/radio';\n const newImportStatements =\n Array.from(importMap.entries())\n .sort()\n .map(([name, elements]) => {\n const newImport = ts.createImportDeclaration(\n undefined, undefined,\n ts.createImportClause(undefined, ts.createNamedImports(elements)),\n createStringLiteral(`${currentMosaicModuleSpecifier}/${name}`, singleQuoteImport));\n\n return this.printer.printNode(\n ts.EmitHint.Unspecified, newImport, declaration.getSourceFile());\n })\n .join('\\n');\n\n // Without any import statements that were generated, we can assume that this was an empty\n // import declaration. We still want to add a failure in order to make developers aware that\n // importing from \"@ptsecurity/mosaic\" is deprecated.\n if (!newImportStatements) {\n this.createFailureAtNode(declaration.moduleSpecifier, ONLY_SUBPACKAGE_FAILURE_STR);\n\n return;\n }\n\n const filePath = this.fileSystem.resolve(\n declaration.moduleSpecifier.getSourceFile().fileName);\n\n const recorder = this.fileSystem.edit(filePath);\n\n // Perform the replacement that switches the primary entry-point import to\n // the individual secondary entry-point imports.\n recorder.remove(declaration.getStart(), declaration.getWidth());\n recorder.insertRight(declaration.getStart(), newImportStatements);\n }\n}\n\n/**\n * Creates a string literal from the specified text.\n * @param text Text of the string literal.\n * @param singleQuotes Whether single quotes should be used when printing the literal node.\n */\nfunction createStringLiteral(text: string, singleQuotes: boolean): ts.StringLiteral {\n const literal = ts.createStringLiteral(text);\n // See: https://github.com/microsoft/TypeScript/blob/master/src/compiler/utilities.ts#L584-L590\n // tslint:disable-next-line: no-string-literal\n literal['singleQuote'] = singleQuotes;\n\n return literal;\n}\n\nfunction getDeclarationSymbolOfNode(node: ts.Node, checker: ts.TypeChecker): ts.Symbol | undefined {\n // tslint:disable-next-line:no-reserved-keywords\n const symbol = checker.getSymbolAtLocation(node);\n\n // Symbols can be aliases of the declaration symbol. e.g. in named import specifiers.\n // We need to resolve the aliased symbol back to the declaration symbol.\n // tslint:disable-next-line:no-bitwise\n if (symbol && (symbol.flags & ts.SymbolFlags.Alias) !== 0) {\n return checker.getAliasedSymbol(symbol);\n }\n\n return symbol;\n}\n\nfunction resolveModuleName(node: ts.Identifier, typeChecker: ts.TypeChecker) {\n // Get the symbol for the named binding element. Note that we cannot determine the\n // value declaration based on the type of the element as types are not necessarily\n // specific to a given secondary entry-point (e.g. exports with the type of \"string\")\n // would resolve to the module types provided by TypeScript itself.\n // tslint:disable-next-line:no-reserved-keywords\n const symbol = getDeclarationSymbolOfNode(node, typeChecker);\n\n // If the symbol can't be found, or no declaration could be found within\n // the symbol, add failure to report that the given symbol can't be found.\n if (!symbol ||\n !(symbol.valueDeclaration || (symbol.declarations && symbol.declarations.length !== 0))) {\n // tslint:disable-next-line:no-null-keyword\n return null;\n }\n\n // The filename for the source file of the node that contains the\n // first declaration of the symbol. All symbol declarations must be\n // part of a defining node, so parent can be asserted to be defined.\n const resolvedNode = symbol.valueDeclaration || symbol.declarations[0];\n const sourceFile = resolvedNode.getSourceFile().fileName;\n\n // File the module the symbol belongs to from a regex match of the\n // filename. This will always match since only \"@ptsecurity/mosaic\"\n // elements are analyzed.\n const matches = sourceFile.match(MOSAIC_AC_FILEPATH_REGEX);\n\n // tslint:disable-next-line:no-null-keyword\n return matches ? matches[1] : null;\n}\n"]}
|
1
|
+
{"version":3,"file":"secondary-entry-points-migration.js","sourceRoot":"","sources":["../../../../../packages/mosaic/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.ts"],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,wDAAmE;AACnE,iCAAiC;AAGjC,MAAM,2BAA2B,GAAG,qDAAqD;IACrF,4DAA4D,CAAC;AAEjE,MAAM,mCAAmC,GAAG,oCAAoC;IAC5E,4DAA4D,CAAC;AAGjE,MAAM,2BAA2B,GAAG,oBAAoB,CAAC;AACzD,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAE1D,MAAM,wBAAwB,GAAG,IAAI,MAAM,CACvC,GAAG,2BAA2B,SAAS,CAC1C,CAAC;AAEF,2CAA2C;AAC3C,MAAM,oBAAoB,GAA6B,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAGxF,2CAA2C;AAC3C,MAAa,6BAA8B,SAAQ,sBAAe;IAAlE;;QAEI,YAAO,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC;QAE7B,4DAA4D;QAC5D,YAAO,GAAG,IAAI,CAAC,aAAa,KAAK,0BAAa,CAAC,EAAE,IAAI,IAAI,CAAC,aAAa,KAAK,0BAAa,CAAC,EAAE,CAAC;IA+GjG,CAAC;IA7GG,gDAAgD;IAChD,SAAS,CAAC,WAAoB;QAE1B,IACI,CAAC,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC;YACpC,CAAC,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,eAAe,CAAC,EACtD;YACE,OAAO;SACV;QAED,MAAM,cAAc,GAAG,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC;QACxD,8DAA8D;QAC9D,IAAI,cAAc,KAAK,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AA0E;IAC1E,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,gBAAgB,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,EAAE;QACpG,2CAA2C;QAC3C,OAAO,IAAI,CAAC;KACf;IAED,iEAAiE;IACjE,mEAAmE;IACnE,oEAAoE;IACpE,MAAM,YAAY,GAAG,MAAM,CAAC,gBAAgB,KAAI,MAAA,MAAM,CAAC,YAAY,0CAAG,CAAC,CAAC,CAAA,CAAC;IAEzE,IAAI,CAAC,YAAY,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IAEnC,MAAM,UAAU,GAAG,YAAY,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC;IAEzD,kEAAkE;IAClE,mEAAmE;IACnE,yBAAyB;IACzB,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAE3D,2CAA2C;IAC3C,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvC,CAAC","sourcesContent":["// tslint:disable\nimport { Migration, TargetVersion } from '@angular/cdk/schematics';\nimport * as ts from 'typescript';\n\n\nconst ONLY_SUBPACKAGE_FAILURE_STR = `Importing from \"@ptsecurity/mosaic\" is deprecated. ` +\n `Instead import from the entry-point the symbol belongs to.`;\n\nconst NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR = `Imports from Mosaic should import ` +\n `specific symbols rather than importing the entire library.`;\n\n\nconst legacyMosaicModuleSpecifier = '@ptsecurity/mosaic';\nconst currentMosaicModuleSpecifier = '@ptsecurity/mosaic';\n\nconst MOSAIC_AC_FILEPATH_REGEX = new RegExp(\n `${legacyMosaicModuleSpecifier}/(.*?)/`\n);\n\n// tslint:disable-next-line:no-var-requires\nconst ENTRY_POINT_MAPPINGS: {[name: string]: string} = require('./mosaic-symbols.json');\n\n\n// tslint:disable-next-line:no-null-keyword\nexport class SecondaryEntryPointsMigration extends Migration<null> {\n\n printer = ts.createPrinter();\n\n // Only enable this rule if the migration targets version 8.\n enabled = this.targetVersion === TargetVersion.V8 || this.targetVersion === TargetVersion.V9;\n\n // tslint:disable-next-line:max-func-body-length\n visitNode(declaration: ts.Node): void {\n\n if (\n !ts.isImportDeclaration(declaration) ||\n !ts.isStringLiteralLike(declaration.moduleSpecifier)\n ) {\n return;\n }\n\n const importLocation = declaration.moduleSpecifier.text;\n // skip check - if the import module is not @ptsecurity/mosaic\n if (importLocation !== legacyMosaicModuleSpecifier) {\n return;\n }\n\n // If no import clause is found, or nothing is named as a binding in the\n // import, add failure saying to import symbols in clause.\n if (!declaration.importClause || !declaration.importClause.namedBindings) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // All named bindings in import clauses must be named symbols, otherwise add\n // failure saying to import symbols in clause.\n if (!ts.isNamedImports(declaration.importClause.namedBindings)) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // If no symbols are in the named bindings then add failure saying to\n // import symbols in clause.\n if (!declaration.importClause.namedBindings.elements.length) {\n this.createFailureAtNode(declaration, NO_IMPORT_NAMED_SYMBOLS_FAILURE_STR);\n\n return;\n }\n\n // Map which consists of secondary entry-points and import specifiers which are used\n // within the current import declaration.\n const importMap = new Map<string, ts.ImportSpecifier[]>();\n\n // Determine the subpackage each symbol in the namedBinding comes from.\n for (const element of declaration.importClause.namedBindings.elements) {\n\n const elementName = element.propertyName ? element.propertyName : element.name;\n\n const moduleName = resolveModuleName(elementName, this.typeChecker) ||\n // tslint:disable-next-line:no-null-keyword\n ENTRY_POINT_MAPPINGS[elementName.text] || null;\n\n if (!moduleName) {\n\n this.createFailureAtNode(\n element, `\"${element.getText()}\" was not found in the Mosaic library.`);\n\n return;\n }\n\n // The module name where the symbol is defined e.g. card, dialog. The\n // first capture group is contains the module name.\n if (importMap.has(moduleName)) {\n importMap.get(moduleName)!.push(element);\n } else {\n importMap.set(moduleName, [element]);\n }\n }\n\n const singleQuoteImport = declaration.moduleSpecifier.getText()[0] === `'`;\n\n // Transforms the import declaration into multiple import declarations that import\n // the given symbols from the individual secondary entry-points. For example:\n // import { McCardModule } from '@ptsecurity/mosaic/card';\n // import { McRadioModule } from '@ptsecurity/mosaic/radio';\n const newImportStatements =\n Array.from(importMap.entries())\n .sort()\n .map(([name, elements]) => {\n const newImport = ts.createImportDeclaration(\n undefined, undefined,\n ts.createImportClause(undefined, ts.createNamedImports(elements)),\n createStringLiteral(`${currentMosaicModuleSpecifier}/${name}`, singleQuoteImport));\n\n return this.printer.printNode(\n ts.EmitHint.Unspecified, newImport, declaration.getSourceFile());\n })\n .join('\\n');\n\n // Without any import statements that were generated, we can assume that this was an empty\n // import declaration. We still want to add a failure in order to make developers aware that\n // importing from \"@ptsecurity/mosaic\" is deprecated.\n if (!newImportStatements) {\n this.createFailureAtNode(declaration.moduleSpecifier, ONLY_SUBPACKAGE_FAILURE_STR);\n\n return;\n }\n\n const filePath = this.fileSystem.resolve(\n declaration.moduleSpecifier.getSourceFile().fileName);\n\n const recorder = this.fileSystem.edit(filePath);\n\n // Perform the replacement that switches the primary entry-point import to\n // the individual secondary entry-point imports.\n recorder.remove(declaration.getStart(), declaration.getWidth());\n recorder.insertRight(declaration.getStart(), newImportStatements);\n }\n}\n\n/**\n * Creates a string literal from the specified text.\n * @param text Text of the string literal.\n * @param singleQuotes Whether single quotes should be used when printing the literal node.\n */\nfunction createStringLiteral(text: string, singleQuotes: boolean): ts.StringLiteral {\n const literal = ts.createStringLiteral(text);\n // See: https://github.com/microsoft/TypeScript/blob/master/src/compiler/utilities.ts#L584-L590\n // tslint:disable-next-line: no-string-literal\n literal['singleQuote'] = singleQuotes;\n\n return literal;\n}\n\nfunction getDeclarationSymbolOfNode(node: ts.Node, checker: ts.TypeChecker): ts.Symbol | undefined {\n // tslint:disable-next-line:no-reserved-keywords\n const symbol = checker.getSymbolAtLocation(node);\n\n // Symbols can be aliases of the declaration symbol. e.g. in named import specifiers.\n // We need to resolve the aliased symbol back to the declaration symbol.\n // tslint:disable-next-line:no-bitwise\n if (symbol && (symbol.flags & ts.SymbolFlags.Alias) !== 0) {\n return checker.getAliasedSymbol(symbol);\n }\n\n return symbol;\n}\n\nfunction resolveModuleName(node: ts.Identifier, typeChecker: ts.TypeChecker) {\n // Get the symbol for the named binding element. Note that we cannot determine the\n // value declaration based on the type of the element as types are not necessarily\n // specific to a given secondary entry-point (e.g. exports with the type of \"string\")\n // would resolve to the module types provided by TypeScript itself.\n // tslint:disable-next-line:no-reserved-keywords\n const symbol = getDeclarationSymbolOfNode(node, typeChecker);\n\n // If the symbol can't be found, or no declaration could be found within\n // the symbol, add failure to report that the given symbol can't be found.\n if (!symbol || !(symbol.valueDeclaration || (symbol.declarations && symbol.declarations.length !== 0))) {\n // tslint:disable-next-line:no-null-keyword\n return null;\n }\n\n // The filename for the source file of the node that contains the\n // first declaration of the symbol. All symbol declarations must be\n // part of a defining node, so parent can be asserted to be defined.\n const resolvedNode = symbol.valueDeclaration || symbol.declarations?.[0];\n\n if (!resolvedNode) { return null; }\n\n const sourceFile = resolvedNode.getSourceFile().fileName;\n\n // File the module the symbol belongs to from a regex match of the\n // filename. This will always match since only \"@ptsecurity/mosaic\"\n // elements are analyzed.\n const matches = sourceFile.match(MOSAIC_AC_FILEPATH_REGEX);\n\n // tslint:disable-next-line:no-null-keyword\n return matches ? matches[1] : null;\n}\n"]}
|
package/select/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/select/ptsecurity-mosaic-select.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-select.js",
|
7
7
|
"typings": "ptsecurity-mosaic-select.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-select.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/select"
|
11
10
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
3
|
-
import { CdkConnectedOverlay } from '@angular/cdk/overlay';
|
3
|
+
import { CdkConnectedOverlay, ConnectedPosition } from '@angular/cdk/overlay';
|
4
4
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
5
5
|
import { ControlValueAccessor, FormControlName, FormGroupDirective, NgControl, NgForm, NgModel, Validator } from '@angular/forms';
|
6
6
|
import { ActiveDescendantKeyManager } from '@ptsecurity/cdk/a11y';
|
@@ -9,6 +9,7 @@ import { McCleaner, McFormField, McFormFieldControl } from '@ptsecurity/mosaic/f
|
|
9
9
|
import { McInput } from '@ptsecurity/mosaic/input';
|
10
10
|
import { McTag } from '@ptsecurity/mosaic/tags';
|
11
11
|
import { Observable, Subject, Subscription } from 'rxjs';
|
12
|
+
import * as i0 from "@angular/core";
|
12
13
|
/** Change event object that is emitted when the select value has changed. */
|
13
14
|
export declare class McSelectChange {
|
14
15
|
source: McSelect;
|
@@ -25,10 +26,16 @@ export declare class McSelectSearch implements AfterContentInit, OnDestroy {
|
|
25
26
|
ngAfterContentInit(): void;
|
26
27
|
ngOnDestroy(): void;
|
27
28
|
handleKeydown(event: KeyboardEvent): void;
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearch, never>;
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearch, "[mcSelectSearch]", ["mcSelectSearch"], {}, {}, ["input"]>;
|
28
31
|
}
|
29
32
|
export declare class McSelectSearchEmptyResult {
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearchEmptyResult, never>;
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearchEmptyResult, "[mc-select-search-empty-result]", ["mcSelectSearchEmptyResult"], {}, {}, never>;
|
30
35
|
}
|
31
36
|
export declare class McSelectTrigger {
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectTrigger, never>;
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectTrigger, "mc-select-trigger", never, {}, {}, never>;
|
32
39
|
}
|
33
40
|
export declare class McSelectBase {
|
34
41
|
elementRef: ElementRef;
|
@@ -80,12 +87,7 @@ export declare class McSelect extends McSelectMixinBase implements AfterContentI
|
|
80
87
|
* the trigger completely). If the panel cannot fit below the trigger, it
|
81
88
|
* will fall back to a position above the trigger.
|
82
89
|
*/
|
83
|
-
positions:
|
84
|
-
originX: string;
|
85
|
-
originY: string;
|
86
|
-
overlayX: string;
|
87
|
-
overlayY: string;
|
88
|
-
}[];
|
90
|
+
positions: ConnectedPosition[];
|
89
91
|
trigger: ElementRef;
|
90
92
|
panel: ElementRef;
|
91
93
|
optionsContainer: ElementRef;
|
@@ -299,5 +301,7 @@ export declare class McSelect extends McSelectMixinBase implements AfterContentI
|
|
299
301
|
private getOverlayWidth;
|
300
302
|
/** Comparison function to specify which option is displayed. Defaults to object equality. */
|
301
303
|
private _compareWith;
|
304
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelect, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }, null, { optional: true; }]>;
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McSelect, "mc-select", ["mcSelect"], { "disabled": "disabled"; "tabIndex": "tabIndex"; "hiddenItemsText": "hiddenItemsText"; "panelClass": "panelClass"; "backdropClass": "backdropClass"; "errorStateMatcher": "errorStateMatcher"; "sortComparator": "sortComparator"; "hasBackdrop": "hasBackdrop"; "placeholder": "placeholder"; "required": "required"; "multiple": "multiple"; "compareWith": "compareWith"; "value": "value"; "id": "id"; "hiddenItemsTextFormatter": "hiddenItemsTextFormatter"; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["customTrigger", "cleaner", "search", "options", "optionGroups"], ["mc-select-trigger", "mc-cleaner", "[mcSelectSearch]", "[mc-select-search-empty-result]", "*"]>;
|
302
306
|
}
|
303
307
|
export {};
|
@@ -1,2 +1,13 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./select.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/cdk/overlay";
|
5
|
+
import * as i4 from "@ptsecurity/mosaic/core";
|
6
|
+
import * as i5 from "@ptsecurity/mosaic/icon";
|
7
|
+
import * as i6 from "@ptsecurity/mosaic/tags";
|
8
|
+
import * as i7 from "@ptsecurity/mosaic/form-field";
|
1
9
|
export declare class McSelectModule {
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectModule, never>;
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McSelectModule, [typeof i1.McSelect, typeof i1.McSelectSearch, typeof i1.McSelectSearchEmptyResult, typeof i1.McSelectTrigger], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.McOptionModule, typeof i5.McIconModule, typeof i6.McTagsModule], [typeof i7.McFormFieldModule, typeof i1.McSelect, typeof i1.McSelectSearch, typeof i1.McSelectSearchEmptyResult, typeof i1.McSelectTrigger, typeof i4.McOptionModule, typeof i2.CommonModule]>;
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McSelectModule>;
|
2
13
|
}
|
package/sidebar/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/sidebar/ptsecurity-mosaic-sidebar.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-sidebar.js",
|
7
7
|
"typings": "ptsecurity-mosaic-sidebar.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-sidebar.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/sidebar"
|
11
10
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { AfterContentInit, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { McSidebarAnimationState } from './sidebar-animations';
|
3
|
+
import * as i0 from "@angular/core";
|
3
4
|
export declare enum SidebarPositions {
|
4
5
|
Left = "left",
|
5
6
|
Right = "right"
|
@@ -14,9 +15,13 @@ export declare class McSidebarOpened {
|
|
14
15
|
minWidth: string;
|
15
16
|
width: string;
|
16
17
|
maxWidth: string;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidebarOpened, never>;
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidebarOpened, "[mc-sidebar-opened]", ["mcSidebarOpened"], { "minWidth": "minWidth"; "width": "width"; "maxWidth": "maxWidth"; }, {}, never>;
|
17
20
|
}
|
18
21
|
export declare class McSidebarClosed {
|
19
22
|
width: string;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidebarClosed, never>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidebarClosed, "[mc-sidebar-closed]", ["mcSidebarClosed"], { "width": "width"; }, {}, never>;
|
20
25
|
}
|
21
26
|
export declare class McSidebar implements OnDestroy, OnInit, AfterContentInit {
|
22
27
|
private ngZone;
|
@@ -42,5 +47,7 @@ export declare class McSidebar implements OnDestroy, OnInit, AfterContentInit {
|
|
42
47
|
private registerKeydownListener;
|
43
48
|
private unRegisterKeydownListener;
|
44
49
|
private saveWidth;
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidebar, never>;
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McSidebar, "mc-sidebar", ["mcSidebar"], { "opened": "opened"; "position": "position"; }, { "stateChanged": "stateChanged"; }, ["openedContent", "closedContent"], ["[mc-sidebar-opened]", "[mc-sidebar-closed]"]>;
|
45
52
|
}
|
46
53
|
export {};
|
@@ -1,2 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sidebar.component";
|
3
|
+
import * as i2 from "@angular/common";
|
1
4
|
export declare class McSidebarModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidebarModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McSidebarModule, [typeof i1.McSidebarClosed, typeof i1.McSidebarOpened, typeof i1.McSidebar], [typeof i2.CommonModule], [typeof i1.McSidebarClosed, typeof i1.McSidebarOpened, typeof i1.McSidebar]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McSidebarModule>;
|
2
8
|
}
|
package/sidepanel/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-sidepanel.js",
|
7
7
|
"typings": "ptsecurity-mosaic-sidepanel.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-sidepanel.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/sidepanel"
|
11
10
|
}
|
@@ -3,6 +3,7 @@ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } fr
|
|
3
3
|
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, InjectionToken, OnDestroy } from '@angular/core';
|
4
4
|
import { McSidepanelAnimationState } from './sidepanel-animations';
|
5
5
|
import { McSidepanelConfig } from './sidepanel-config';
|
6
|
+
import * as i0 from "@angular/core";
|
6
7
|
export declare const MC_SIDEPANEL_WITH_INDENT: InjectionToken<boolean>;
|
7
8
|
export declare const MC_SIDEPANEL_WITH_SHADOW: InjectionToken<boolean>;
|
8
9
|
export declare class McSidepanelContainerComponent extends BasePortalOutlet implements OnDestroy {
|
@@ -39,4 +40,6 @@ export declare class McSidepanelContainerComponent extends BasePortalOutlet impl
|
|
39
40
|
private setAnimation;
|
40
41
|
private setPanelClass;
|
41
42
|
private validatePortalAttached;
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelContainerComponent, never>;
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McSidepanelContainerComponent, "mc-sidepanel-container", never, {}, {}, never, never>;
|
42
45
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2
|
+
import { ThemePalette } from '@ptsecurity/mosaic/core';
|
2
3
|
import { McSidepanelRef } from './sidepanel-ref';
|
3
4
|
import { McSidepanelService } from './sidepanel.service';
|
5
|
+
import * as i0 from "@angular/core";
|
4
6
|
/**
|
5
7
|
* Button that will close the current sidepanel.
|
6
8
|
*/
|
@@ -13,25 +15,36 @@ export declare class McSidepanelClose implements OnInit, OnChanges {
|
|
13
15
|
constructor(sidepanelRef: McSidepanelRef, elementRef: ElementRef<HTMLElement>, sidepanelService: McSidepanelService);
|
14
16
|
ngOnInit(): void;
|
15
17
|
ngOnChanges(changes: SimpleChanges): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelClose, [{ optional: true; }, null, null]>;
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidepanelClose, "button[mc-sidepanel-close], button[mcSidepanelClose]", never, { "sidepanelResult": "mc-sidepanel-close"; "mcSidepanelClose": "mcSidepanelClose"; }, {}, never>;
|
16
20
|
}
|
17
21
|
/**
|
18
22
|
* Header of a sidepanel.
|
19
23
|
*/
|
20
24
|
export declare class McSidepanelHeader {
|
25
|
+
themePalette: typeof ThemePalette;
|
21
26
|
closeable: boolean;
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelHeader, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McSidepanelHeader, "mc-sidepanel-header", never, { "closeable": "closeable"; }, {}, never, ["*"]>;
|
22
29
|
}
|
23
30
|
/**
|
24
31
|
* Scrollable content container of a sidepanel.
|
25
32
|
*/
|
26
33
|
export declare class McSidepanelBody {
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelBody, never>;
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidepanelBody, "mc-sidepanel-body, [mc-sidepanel-body], mcSidepanelBody", never, {}, {}, never>;
|
27
36
|
}
|
28
37
|
/**
|
29
38
|
* Footer of a sidepanel.
|
30
39
|
*/
|
31
40
|
export declare class McSidepanelFooter {
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelFooter, never>;
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidepanelFooter, "mc-sidepanel-footer, [mc-sidepanel-footer], mcSidepanelFooter", never, {}, {}, never>;
|
32
43
|
}
|
33
44
|
/**
|
34
45
|
* Actions block of a sidepanel footer.
|
35
46
|
*/
|
36
47
|
export declare class McSidepanelActions {
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelActions, never>;
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSidepanelActions, "mc-sidepanel-actions, [mc-sidepanel-actions], mcSidepanelActions", never, {}, {}, never>;
|
37
50
|
}
|
@@ -1,2 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./sidepanel-container.component";
|
3
|
+
import * as i2 from "./sidepanel-directives";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@angular/cdk/overlay";
|
6
|
+
import * as i5 from "@angular/cdk/portal";
|
7
|
+
import * as i6 from "@ptsecurity/mosaic/core";
|
8
|
+
import * as i7 from "@ptsecurity/mosaic/button";
|
9
|
+
import * as i8 from "@ptsecurity/mosaic/icon";
|
10
|
+
import * as i9 from "@angular/cdk/a11y";
|
1
11
|
export declare class McSidepanelModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McSidepanelModule, [typeof i1.McSidepanelContainerComponent, typeof i2.McSidepanelClose, typeof i2.McSidepanelHeader, typeof i2.McSidepanelBody, typeof i2.McSidepanelFooter, typeof i2.McSidepanelActions], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.McCommonModule, typeof i7.McButtonModule, typeof i8.McIconModule, typeof i9.A11yModule], [typeof i1.McSidepanelContainerComponent, typeof i2.McSidepanelClose, typeof i2.McSidepanelHeader, typeof i2.McSidepanelBody, typeof i2.McSidepanelFooter, typeof i2.McSidepanelActions]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McSidepanelModule>;
|
2
15
|
}
|
@@ -3,6 +3,7 @@ import { ComponentType } from '@angular/cdk/portal';
|
|
3
3
|
import { InjectionToken, Injector, OnDestroy, TemplateRef } from '@angular/core';
|
4
4
|
import { McSidepanelConfig } from './sidepanel-config';
|
5
5
|
import { McSidepanelRef } from './sidepanel-ref';
|
6
|
+
import * as i0 from "@angular/core";
|
6
7
|
/** Injection token that can be used to specify default sidepanel options. */
|
7
8
|
export declare const MC_SIDEPANEL_DEFAULT_OPTIONS: InjectionToken<McSidepanelConfig<any>>;
|
8
9
|
export declare class McSidepanelService implements OnDestroy {
|
@@ -51,4 +52,6 @@ export declare class McSidepanelService implements OnDestroy {
|
|
51
52
|
* @param sidepanelRef Sidepanel to be removed.
|
52
53
|
*/
|
53
54
|
private removeOpenSidepanel;
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSidepanelService, [null, null, { optional: true; }, { optional: true; skipSelf: true; }]>;
|
56
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<McSidepanelService>;
|
54
57
|
}
|
package/splitter/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/splitter/ptsecurity-mosaic-splitter.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-splitter.js",
|
7
7
|
"typings": "ptsecurity-mosaic-splitter.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-splitter.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/splitter"
|
11
10
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
2
3
|
interface IArea {
|
3
4
|
area: McSplitterAreaDirective;
|
4
5
|
index: number;
|
@@ -26,6 +27,8 @@ export declare class McGutterDirective implements OnInit {
|
|
26
27
|
ngOnInit(): void;
|
27
28
|
isVertical(): boolean;
|
28
29
|
private setStyle;
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McGutterDirective, never>;
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McGutterDirective, "mc-gutter", never, { "direction": "direction"; "order": "order"; "size": "size"; }, {}, never>;
|
29
32
|
}
|
30
33
|
export declare class McSplitterComponent implements OnInit {
|
31
34
|
elementRef: ElementRef;
|
@@ -59,6 +62,8 @@ export declare class McSplitterComponent implements OnInit {
|
|
59
62
|
private onMouseMove;
|
60
63
|
private onMouseUp;
|
61
64
|
private setStyle;
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSplitterComponent, never>;
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McSplitterComponent, "mc-splitter", ["mcSplitter"], { "hideGutters": "hideGutters"; "direction": "direction"; "disabled": "disabled"; "gutterSize": "gutterSize"; }, {}, never, ["*"]>;
|
62
67
|
}
|
63
68
|
export declare class McSplitterAreaDirective implements OnInit, OnDestroy {
|
64
69
|
private elementRef;
|
@@ -78,5 +83,7 @@ export declare class McSplitterAreaDirective implements OnInit, OnDestroy {
|
|
78
83
|
private getSizeProperty;
|
79
84
|
private setStyle;
|
80
85
|
private removeStyle;
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSplitterAreaDirective, never>;
|
87
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSplitterAreaDirective, "[mc-splitter-area]", never, {}, {}, never>;
|
81
88
|
}
|
82
89
|
export {};
|
@@ -1,2 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./splitter.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@ptsecurity/mosaic/icon";
|
1
5
|
export declare class McSplitterModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSplitterModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McSplitterModule, [typeof i1.McGutterDirective, typeof i1.McSplitterAreaDirective, typeof i1.McSplitterComponent], [typeof i2.CommonModule, typeof i3.McIconModule], [typeof i1.McGutterDirective, typeof i1.McSplitterAreaDirective, typeof i1.McSplitterComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McSplitterModule>;
|
2
9
|
}
|
package/table/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/table/ptsecurity-mosaic-table.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-table.js",
|
7
7
|
"typings": "ptsecurity-mosaic-table.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-table.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/table"
|
11
10
|
}
|
package/table/table.module.d.ts
CHANGED
@@ -1,2 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./table.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/cdk/a11y";
|
5
|
+
import * as i4 from "@angular/cdk/platform";
|
1
6
|
export declare class McTableModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTableModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McTableModule, [typeof i1.McTable], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.McTable]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<McTableModule>;
|
2
10
|
}
|
package/tabs/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
"esm2015": "../esm2015/tabs/ptsecurity-mosaic-tabs.js",
|
6
6
|
"fesm2015": "../fesm2015/ptsecurity-mosaic-tabs.js",
|
7
7
|
"typings": "ptsecurity-mosaic-tabs.d.ts",
|
8
|
-
"metadata": "ptsecurity-mosaic-tabs.metadata.json",
|
9
8
|
"sideEffects": false,
|
10
9
|
"name": "@ptsecurity/mosaic/tabs"
|
11
10
|
}
|
@@ -4,6 +4,7 @@ import { Platform } from '@angular/cdk/platform';
|
|
4
4
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
5
5
|
import { ChangeDetectorRef, ElementRef, NgZone, QueryList, EventEmitter, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
|
6
6
|
import { Subject } from 'rxjs';
|
7
|
+
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
|
9
10
|
* will scroll the header towards the end of the tabs list and 'before' will scroll towards the
|
@@ -173,4 +174,6 @@ export declare abstract class McPaginatedTabHeader implements AfterContentChecke
|
|
173
174
|
* @returns Information on the current scroll distance and the maximum.
|
174
175
|
*/
|
175
176
|
private scrollTo;
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McPaginatedTabHeader, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
178
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McPaginatedTabHeader, never, never, { "disablePagination": "disablePagination"; }, {}, never>;
|
176
179
|
}
|
@@ -1,9 +1,5 @@
|
|
1
1
|
/**
|
2
2
|
* Generated bundle index. Do not edit.
|
3
3
|
*/
|
4
|
+
/// <amd-module name="@ptsecurity/mosaic/tabs" />
|
4
5
|
export * from './index';
|
5
|
-
export { McPaginatedTabHeader as ɵh } from './paginated-tab-header';
|
6
|
-
export { McTabLabelWrapperBase as ɵa, McTabLabelWrapperMixinBase as ɵb } from './tab-label-wrapper.directive';
|
7
|
-
export { MC_TAB_LABEL as ɵe } from './tab-label.directive';
|
8
|
-
export { McTabLinkBase as ɵf, McTabLinkMixinBase as ɵg } from './tab-nav-bar/tab-nav-bar';
|
9
|
-
export { McTabBase as ɵc, McTabMixinBase as ɵd } from './tab.component';
|
@@ -2,6 +2,7 @@ import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { Directionality, Direction } from '@angular/cdk/bidi';
|
3
3
|
import { TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
4
4
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, ElementRef, ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
|
5
|
+
import * as i0 from "@angular/core";
|
5
6
|
/**
|
6
7
|
* These position states are used internally as animation states for the tab body. Setting the
|
7
8
|
* position state to left, right, or center will transition the tab body from its current
|
@@ -71,6 +72,8 @@ export declare class McTabBody implements OnInit, OnDestroy {
|
|
71
72
|
* tab is becoming visible immediately after creation.
|
72
73
|
*/
|
73
74
|
private computePositionFromOrigin;
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTabBody, [null, { optional: true; }, null]>;
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McTabBody, "mc-tab-body", never, { "position": "position"; "content": "content"; "origin": "origin"; "animationDuration": "animationDuration"; }, { "onCentering": "onCentering"; "beforeCentering": "beforeCentering"; "afterLeavingCenter": "afterLeavingCenter"; "onCentered": "onCentered"; }, never, never>;
|
74
77
|
}
|
75
78
|
/**
|
76
79
|
* The portal host directive for the contents of the tab.
|
@@ -87,4 +90,6 @@ export declare class McTabBodyPortal extends CdkPortalOutlet implements OnInit,
|
|
87
90
|
ngOnInit(): void;
|
88
91
|
/** Clean up centering subscription. */
|
89
92
|
ngOnDestroy(): void;
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTabBodyPortal, never>;
|
94
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McTabBodyPortal, "[mcTabBodyHost]", never, {}, {}, never>;
|
90
95
|
}
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
2
3
|
/** Decorates the `ng-template` tags and reads out the template from it. */
|
3
4
|
export declare class McTabContent {
|
4
5
|
template: TemplateRef<any>;
|
5
6
|
constructor(template: TemplateRef<any>);
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTabContent, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McTabContent, "[mcTabContent]", never, {}, {}, never>;
|
6
9
|
}
|
@@ -1,16 +1,28 @@
|
|
1
|
-
import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, InjectionToken } from '@angular/core';
|
1
|
+
import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, InjectionToken, AfterViewInit } from '@angular/core';
|
2
2
|
import { CanDisableCtor } from '@ptsecurity/mosaic/core';
|
3
|
+
import { Subject } from 'rxjs';
|
3
4
|
import { McTabHeader } from './tab-header.component';
|
4
5
|
import { McTab } from './tab.component';
|
6
|
+
import * as i0 from "@angular/core";
|
5
7
|
export declare class McOldTabsCssStyler {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McOldTabsCssStyler, never>;
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McOldTabsCssStyler, "mc-tab-group[mc-old-tabs]", never, {}, {}, never>;
|
6
10
|
}
|
7
11
|
export declare class McAlignTabsCenterCssStyler {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McAlignTabsCenterCssStyler, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McAlignTabsCenterCssStyler, "mc-tab-group[mc-align-tabs-center], [mc-tab-nav-bar][mc-align-tabs-center]", never, {}, {}, never>;
|
8
14
|
}
|
9
15
|
export declare class McAlignTabsEndCssStyler {
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McAlignTabsEndCssStyler, never>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McAlignTabsEndCssStyler, "mc-tab-group[mc-align-tabs-end], [mc-tab-nav-bar][mc-align-tabs-end]", never, {}, {}, never>;
|
10
18
|
}
|
11
19
|
export declare class McStretchTabsCssStyler {
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McStretchTabsCssStyler, never>;
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McStretchTabsCssStyler, "mc-tab-group[mc-stretch-tabs], [mc-tab-nav-bar][mc-stretch-tabs]", never, {}, {}, never>;
|
12
22
|
}
|
13
23
|
export declare class McVerticalTabsCssStyler {
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McVerticalTabsCssStyler, never>;
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McVerticalTabsCssStyler, "mc-tab-group[vertical], [mc-tab-nav-bar][vertical]", never, {}, {}, never>;
|
14
26
|
}
|
15
27
|
/** A simple change event emitted on focus or selection changes. */
|
16
28
|
export declare class McTabChangeEvent {
|
@@ -38,8 +50,9 @@ export declare const McTabGroupMixinBase: CanDisableCtor & typeof McTabGroupBase
|
|
38
50
|
* Tab-group component. Supports basic tab pairs (label + content) and includes
|
39
51
|
* keyboard navigation.
|
40
52
|
*/
|
41
|
-
export declare class McTabGroup extends McTabGroupMixinBase implements AfterContentInit, AfterContentChecked, OnDestroy {
|
53
|
+
export declare class McTabGroup extends McTabGroupMixinBase implements AfterContentInit, AfterViewInit, AfterContentChecked, OnDestroy {
|
42
54
|
private readonly changeDetectorRef;
|
55
|
+
readonly resizeStream: Subject<Event>;
|
43
56
|
oldTab: boolean;
|
44
57
|
vertical: boolean;
|
45
58
|
tabs: QueryList<McTab>;
|
@@ -48,9 +61,11 @@ export declare class McTabGroup extends McTabGroupMixinBase implements AfterCont
|
|
48
61
|
/** Whether the tab group should grow to the size of the active tab. */
|
49
62
|
get dynamicHeight(): boolean;
|
50
63
|
set dynamicHeight(value: boolean);
|
64
|
+
private _dynamicHeight;
|
51
65
|
/** The index of the active tab. */
|
52
66
|
get selectedIndex(): number | null;
|
53
67
|
set selectedIndex(value: number | null);
|
68
|
+
private _selectedIndex;
|
54
69
|
/** Position of the tab header. */
|
55
70
|
headerPosition: McTabHeaderPosition;
|
56
71
|
/** Duration for the tab animation. Must be a valid CSS value (e.g. 600ms). */
|
@@ -71,9 +86,9 @@ export declare class McTabGroup extends McTabGroupMixinBase implements AfterCont
|
|
71
86
|
private tabsSubscription;
|
72
87
|
/** Subscription to changes in the tab labels. */
|
73
88
|
private tabLabelSubscription;
|
74
|
-
private
|
75
|
-
private _selectedIndex;
|
89
|
+
private resizeSubscription;
|
76
90
|
private readonly groupId;
|
91
|
+
private readonly resizeDebounceInterval;
|
77
92
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, lightTabs: string, vertical: string, defaultConfig?: IMcTabsConfig);
|
78
93
|
/**
|
79
94
|
* After the content is checked, this component knows what tabs have been defined
|
@@ -83,6 +98,7 @@ export declare class McTabGroup extends McTabGroupMixinBase implements AfterCont
|
|
83
98
|
*/
|
84
99
|
ngAfterContentChecked(): void;
|
85
100
|
ngAfterContentInit(): void;
|
101
|
+
ngAfterViewInit(): void;
|
86
102
|
ngOnDestroy(): void;
|
87
103
|
focusChanged(index: number): void;
|
88
104
|
/** Returns a unique id for each tab label element */
|
@@ -100,6 +116,7 @@ export declare class McTabGroup extends McTabGroupMixinBase implements AfterCont
|
|
100
116
|
handleClick(tab: McTab, tabHeader: McTabHeader, index: number): void;
|
101
117
|
/** Retrieves the tabindex for the tab. */
|
102
118
|
getTabIndex(tab: McTab, index: number): number | null;
|
119
|
+
private checkOverflow;
|
103
120
|
private createChangeEvent;
|
104
121
|
/**
|
105
122
|
* Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
|
@@ -108,6 +125,9 @@ export declare class McTabGroup extends McTabGroupMixinBase implements AfterCont
|
|
108
125
|
* manually.
|
109
126
|
*/
|
110
127
|
private subscribeToTabLabels;
|
128
|
+
private subscribeToResize;
|
111
129
|
/** Clamps the given index to the bounds of 0 and the tabs length. */
|
112
130
|
private clampTabIndex;
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTabGroup, [null, null, { attribute: "mc-old-tabs"; }, { attribute: "vertical"; }, { optional: true; }]>;
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McTabGroup, "mc-tab-group", ["mcTabGroup"], { "disabled": "disabled"; "dynamicHeight": "dynamicHeight"; "selectedIndex": "selectedIndex"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, ["tabs"], never>;
|
113
133
|
}
|
@@ -4,6 +4,7 @@ import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
4
|
import { ChangeDetectorRef, ElementRef, NgZone, QueryList } from '@angular/core';
|
5
5
|
import { McPaginatedTabHeader } from './paginated-tab-header';
|
6
6
|
import { McTabLabelWrapper } from './tab-label-wrapper.directive';
|
7
|
+
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
|
9
10
|
* will scroll the header towards the end of the tabs list and 'before' will scroll towards the
|
@@ -29,4 +30,6 @@ export declare class McTabHeader extends McPaginatedTabHeader {
|
|
29
30
|
previousPaginator: ElementRef<HTMLElement>;
|
30
31
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, ngZone: NgZone, platform: Platform, dir: Directionality, animationMode?: string);
|
31
32
|
itemSelected(event: KeyboardEvent): void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTabHeader, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<McTabHeader, "mc-tab-header", never, { "selectedIndex": "selectedIndex"; "vertical": "vertical"; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, ["items"], ["*"]>;
|
32
35
|
}
|