@fundamental-ngx/core 0.44.1-rc.3 → 0.45.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/action-sheet/action-sheet.module.d.ts +5 -6
- package/action-sheet/index.d.ts +0 -1
- package/avatar/avatar.component.d.ts +1 -6
- package/bar/bar.module.d.ts +4 -6
- package/bar/directives/bar-element.directive.d.ts +1 -6
- package/bar/index.d.ts +0 -2
- package/breadcrumb/breadcrumb.component.d.ts +1 -9
- package/breadcrumb/breadcrumb.module.d.ts +12 -13
- package/breadcrumb/index.d.ts +0 -1
- package/button/button.module.d.ts +4 -5
- package/button/index.d.ts +0 -1
- package/calendar/calendar.module.d.ts +5 -6
- package/calendar/index.d.ts +0 -1
- package/card/card.module.d.ts +6 -7
- package/card/index.d.ts +0 -1
- package/carousel/carousel.component.d.ts +1 -13
- package/checkbox/checkbox.module.d.ts +4 -5
- package/checkbox/index.d.ts +0 -1
- package/combobox/combobox.module.d.ts +12 -13
- package/combobox/index.d.ts +0 -1
- package/content-density/index.d.ts +0 -4
- package/date-picker/date-picker.component.d.ts +1 -62
- package/date-picker/date-picker.module.d.ts +12 -13
- package/date-picker/index.d.ts +0 -1
- package/datetime-picker/datetime-picker.component.d.ts +1 -49
- package/datetime-picker/datetime-picker.module.d.ts +14 -15
- package/datetime-picker/index.d.ts +0 -1
- package/dialog/dialog.module.d.ts +14 -16
- package/dialog/index.d.ts +0 -2
- package/dialog/utils/dialog-config.class.d.ts +0 -2
- package/dynamic-page/dynamic-page.module.d.ts +10 -11
- package/dynamic-page/index.d.ts +0 -1
- package/esm2022/action-sheet/action-sheet.module.mjs +3 -8
- package/esm2022/action-sheet/index.mjs +1 -2
- package/esm2022/avatar/avatar.component.mjs +3 -13
- package/esm2022/bar/bar.module.mjs +3 -13
- package/esm2022/bar/directives/bar-element.directive.mjs +3 -16
- package/esm2022/bar/index.mjs +1 -3
- package/esm2022/breadcrumb/breadcrumb.component.mjs +5 -19
- package/esm2022/breadcrumb/breadcrumb.module.mjs +6 -18
- package/esm2022/breadcrumb/index.mjs +1 -2
- package/esm2022/button/button.module.mjs +4 -5
- package/esm2022/button/index.mjs +1 -2
- package/esm2022/calendar/calendar.module.mjs +3 -8
- package/esm2022/calendar/index.mjs +1 -2
- package/esm2022/card/card.module.mjs +4 -8
- package/esm2022/card/index.mjs +1 -2
- package/esm2022/carousel/carousel.component.mjs +4 -30
- package/esm2022/checkbox/checkbox.module.mjs +4 -5
- package/esm2022/checkbox/index.mjs +1 -2
- package/esm2022/combobox/combobox-mobile/combobox-mobile.component.mjs +1 -1
- package/esm2022/combobox/combobox.component.mjs +1 -1
- package/esm2022/combobox/combobox.module.mjs +6 -8
- package/esm2022/combobox/index.mjs +1 -2
- package/esm2022/content-density/index.mjs +1 -5
- package/esm2022/date-picker/date-picker.component.mjs +4 -104
- package/esm2022/date-picker/date-picker.module.mjs +5 -6
- package/esm2022/date-picker/index.mjs +1 -2
- package/esm2022/datetime-picker/datetime-picker.component.mjs +4 -83
- package/esm2022/datetime-picker/datetime-picker.module.mjs +5 -6
- package/esm2022/datetime-picker/index.mjs +1 -2
- package/esm2022/dialog/dialog-default/dialog-default.component.mjs +1 -1
- package/esm2022/dialog/dialog-header/dialog-header.component.mjs +1 -1
- package/esm2022/dialog/dialog.component.mjs +3 -3
- package/esm2022/dialog/dialog.module.mjs +1 -9
- package/esm2022/dialog/index.mjs +1 -3
- package/esm2022/dialog/utils/dialog-config.class.mjs +1 -1
- package/esm2022/dynamic-page/dynamic-page-header/actions/dynamic-page-title-content.component.mjs +1 -1
- package/esm2022/dynamic-page/dynamic-page-header/header/dynamic-page-header.component.mjs +1 -1
- package/esm2022/dynamic-page/dynamic-page.module.mjs +3 -8
- package/esm2022/dynamic-page/index.mjs +1 -2
- package/esm2022/facets/facet/facet.component.mjs +1 -1
- package/esm2022/feed-list-item/components/item/feed-list-item.component.mjs +14 -40
- package/esm2022/file-uploader/file-uploader.module.mjs +4 -23
- package/esm2022/file-uploader/index.mjs +1 -2
- package/esm2022/form/form-control/form-control.module.mjs +4 -23
- package/esm2022/form/form-label/form-label.component.mjs +3 -40
- package/esm2022/form/form-message/form-message.component.mjs +1 -1
- package/esm2022/form/form-message/popover-form-message.service.mjs +1 -1
- package/esm2022/form/index.mjs +1 -2
- package/esm2022/fundamental-ngx.module.mjs +1 -5
- package/esm2022/grid-list/components/grid-list-filter-bar/grid-list-filter-bar.component.mjs +1 -1
- package/esm2022/grid-list/components/grid-list-title-bar/grid-list-title-bar.component.mjs +1 -1
- package/esm2022/index.mjs +1 -2
- package/esm2022/inline-help/inline-help.directive.mjs +3 -18
- package/esm2022/input-group/index.mjs +1 -2
- package/esm2022/input-group/input-group.component.mjs +6 -28
- package/esm2022/input-group/input-group.module.mjs +1 -6
- package/esm2022/link/link.component.mjs +5 -8
- package/esm2022/list/index.mjs +1 -2
- package/esm2022/list/list-item/list-item.component.mjs +3 -46
- package/esm2022/list/list-message.directive.mjs +1 -1
- package/esm2022/list/list.module.mjs +3 -8
- package/esm2022/menu/index.mjs +1 -2
- package/esm2022/menu/menu-mobile/menu-mobile.component.mjs +1 -1
- package/esm2022/menu/menu.module.mjs +3 -8
- package/esm2022/message-box/index.mjs +1 -3
- package/esm2022/message-box/message-box-default/message-box-default.component.mjs +1 -1
- package/esm2022/message-box/message-box-header/message-box-header.component.mjs +1 -1
- package/esm2022/message-box/message-box.module.mjs +3 -11
- package/esm2022/message-strip/alert/message-strip-alert/message-strip-alert.component.mjs +3 -3
- package/esm2022/message-strip/alert/message-strip-alert.service.mjs +8 -2
- package/esm2022/message-strip/message-strip.component.mjs +3 -16
- package/esm2022/micro-process-flow/index.mjs +1 -2
- package/esm2022/micro-process-flow/micro-process-flow.module.mjs +5 -10
- package/esm2022/multi-combobox/mobile/mobile-multi-combobox.component.mjs +1 -1
- package/esm2022/multi-combobox/multi-combobox.component.mjs +1 -1
- package/esm2022/multi-combobox/select-all-toggler/select-all-toggler.component.mjs +1 -1
- package/esm2022/multi-input/index.mjs +1 -2
- package/esm2022/multi-input/multi-input-mobile/multi-input-mobile.component.mjs +1 -1
- package/esm2022/multi-input/multi-input.component.mjs +1 -1
- package/esm2022/multi-input/multi-input.module.mjs +6 -8
- package/esm2022/nested-list/index.mjs +1 -2
- package/esm2022/nested-list/nested-list.module.mjs +3 -8
- package/esm2022/object-number/object-number.component.mjs +3 -3
- package/esm2022/overflow-layout/overflow-layout.component.mjs +3 -3
- package/esm2022/pagination/index.mjs +1 -2
- package/esm2022/pagination/pagination.component.mjs +8 -186
- package/esm2022/pagination/pagination.module.mjs +6 -7
- package/esm2022/panel/index.mjs +1 -2
- package/esm2022/panel/panel.module.mjs +4 -15
- package/esm2022/popover/base/base-popover.class.mjs +2 -33
- package/esm2022/popover/popover.component.mjs +1 -19
- package/esm2022/product-switch/product-switch/product-switch.component.mjs +4 -17
- package/esm2022/product-switch/product-switch-body/product-switch-body.component.mjs +1 -1
- package/esm2022/product-switch/product-switch-body/product-switch.item.mjs +1 -1
- package/esm2022/quick-view/quick-view-group-item-label/quick-view-group-item-label.component.mjs +1 -1
- package/esm2022/quick-view/quick-view-title/quick-view-title.component.mjs +1 -1
- package/esm2022/radio/index.mjs +1 -2
- package/esm2022/radio/radio.module.mjs +4 -5
- package/esm2022/rating-indicator/components/rating-indicator.component.mjs +3 -3
- package/esm2022/select/index.mjs +1 -2
- package/esm2022/select/select.component.mjs +1 -1
- package/esm2022/select/select.module.mjs +5 -6
- package/esm2022/shellbar/index.mjs +1 -2
- package/esm2022/shellbar/shellbar-actions/shellbar-actions.component.mjs +3 -17
- package/esm2022/shellbar/shellbar-actions-mobile/shellbar-actions-mobile.component.mjs +3 -5
- package/esm2022/shellbar/shellbar.module.mjs +3 -8
- package/esm2022/shellbar/user-menu/shellbar-user-menu.component.mjs +1 -1
- package/esm2022/slider/index.mjs +1 -2
- package/esm2022/slider/slider.component.mjs +3 -49
- package/esm2022/slider/slider.module.mjs +4 -5
- package/esm2022/split-button/index.mjs +1 -2
- package/esm2022/split-button/split-button.component.mjs +3 -27
- package/esm2022/split-button/split-button.module.mjs +4 -5
- package/esm2022/splitter/splitter-pagination/splitter-pagination.component.mjs +3 -10
- package/esm2022/splitter/splitter.component.mjs +2 -16
- package/esm2022/step-input/index.mjs +1 -2
- package/esm2022/step-input/step-input.component.mjs +5 -31
- package/esm2022/step-input/step-input.module.mjs +5 -6
- package/esm2022/switch/index.mjs +1 -2
- package/esm2022/switch/switch.component.mjs +5 -43
- package/esm2022/switch/switch.module.mjs +4 -5
- package/esm2022/table/index.mjs +1 -3
- package/esm2022/table/table.module.mjs +3 -13
- package/esm2022/tabs/index.mjs +1 -2
- package/esm2022/tabs/tab-item-expand/tab-item-expand.component.mjs +8 -22
- package/esm2022/tabs/tab-list.component.mjs +5 -18
- package/esm2022/tabs/tabs.module.mjs +3 -8
- package/esm2022/text/text.component.mjs +3 -29
- package/esm2022/time/index.mjs +1 -3
- package/esm2022/time/time.component.mjs +8 -65
- package/esm2022/time/time.module.mjs +5 -6
- package/esm2022/time-picker/index.mjs +1 -2
- package/esm2022/time-picker/time-picker.component.mjs +1 -1
- package/esm2022/time-picker/time-picker.module.mjs +6 -22
- package/esm2022/timeline/components/timeline-node-body/timeline-node-body.component.mjs +1 -1
- package/esm2022/timeline/timeline.component.mjs +1 -1
- package/esm2022/token/index.mjs +1 -2
- package/esm2022/token/token.component.mjs +4 -30
- package/esm2022/token/token.module.mjs +5 -24
- package/esm2022/token/tokenizer.component.mjs +3 -3
- package/esm2022/toolbar/toolbar.component.mjs +8 -24
- package/esm2022/tree/tree.component.mjs +1 -1
- package/esm2022/upload-collection/upload-collection-button-group/upload-collection-button-group.component.mjs +9 -87
- package/esm2022/upload-collection/upload-collection-form-item/upload-collection-form-item.component.mjs +9 -21
- package/esm2022/upload-collection/upload-collection-item.directive.mjs +4 -3
- package/esm2022/upload-collection/upload-collection-simple.directives.mjs +22 -15
- package/esm2022/upload-collection/upload-collection.component.mjs +5 -4
- package/esm2022/upload-collection/upload-collection.module.mjs +7 -13
- package/esm2022/wizard/index.mjs +1 -2
- package/esm2022/wizard/wizard.module.mjs +3 -8
- package/feed-list-item/components/item/feed-list-item.component.d.ts +9 -25
- package/fesm2022/fundamental-ngx-core-action-sheet.mjs +5 -36
- package/fesm2022/fundamental-ngx-core-action-sheet.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-avatar.mjs +2 -12
- package/fesm2022/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-bar.mjs +7 -81
- package/fesm2022/fundamental-ngx-core-bar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs +11 -63
- package/fesm2022/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-button.mjs +6 -33
- package/fesm2022/fundamental-ngx-core-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-calendar.mjs +4 -35
- package/fesm2022/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-card.mjs +6 -36
- package/fesm2022/fundamental-ngx-core-card.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-carousel.mjs +3 -29
- package/fesm2022/fundamental-ngx-core-carousel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-checkbox.mjs +6 -33
- package/fesm2022/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +9 -37
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-content-density.mjs +1 -148
- package/fesm2022/fundamental-ngx-core-content-density.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-date-picker.mjs +10 -137
- package/fesm2022/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs +10 -116
- package/fesm2022/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +6 -57
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs +7 -38
- package/fesm2022/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-facets.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-facets.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-feed-list-item.mjs +13 -39
- package/fesm2022/fundamental-ngx-core-feed-list-item.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-file-uploader.mjs +5 -50
- package/fesm2022/fundamental-ngx-core-file-uploader.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-form.mjs +7 -88
- package/fesm2022/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-grid-list.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-grid-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-inline-help.mjs +2 -17
- package/fesm2022/fundamental-ngx-core-inline-help.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-input-group.mjs +8 -60
- package/fesm2022/fundamental-ngx-core-input-group.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-link.mjs +4 -7
- package/fesm2022/fundamental-ngx-core-link.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-list.mjs +6 -80
- package/fesm2022/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-menu.mjs +7 -38
- package/fesm2022/fundamental-ngx-core-menu.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-box.mjs +7 -59
- package/fesm2022/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-message-strip.mjs +11 -19
- package/fesm2022/fundamental-ngx-core-message-strip.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs +7 -38
- package/fesm2022/fundamental-ngx-core-micro-process-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +3 -3
- package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-multi-input.mjs +9 -36
- package/fesm2022/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-nested-list.mjs +4 -34
- package/fesm2022/fundamental-ngx-core-nested-list.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-number.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-number.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-overflow-layout.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-pagination.mjs +14 -219
- package/fesm2022/fundamental-ngx-core-pagination.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-panel.mjs +6 -43
- package/fesm2022/fundamental-ngx-core-panel.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +2 -50
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-product-switch.mjs +6 -18
- package/fesm2022/fundamental-ngx-core-product-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-quick-view.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-quick-view.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-radio.mjs +6 -33
- package/fesm2022/fundamental-ngx-core-radio.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-rating-indicator.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-rating-indicator.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-select.mjs +7 -34
- package/fesm2022/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-shellbar.mjs +11 -57
- package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-slider.mjs +8 -70
- package/fesm2022/fundamental-ngx-core-slider.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-split-button.mjs +8 -59
- package/fesm2022/fundamental-ngx-core-split-button.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-splitter.mjs +4 -24
- package/fesm2022/fundamental-ngx-core-splitter.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-step-input.mjs +11 -64
- package/fesm2022/fundamental-ngx-core-step-input.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-switch.mjs +9 -74
- package/fesm2022/fundamental-ngx-core-switch.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-table.mjs +5 -65
- package/fesm2022/fundamental-ngx-core-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tabs.mjs +14 -69
- package/fesm2022/fundamental-ngx-core-tabs.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-text.mjs +2 -28
- package/fesm2022/fundamental-ngx-core-text.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time-picker.mjs +9 -51
- package/fesm2022/fundamental-ngx-core-time-picker.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-time.mjs +12 -143
- package/fesm2022/fundamental-ngx-core-time.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-timeline.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-timeline.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-token.mjs +11 -82
- package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-toolbar.mjs +6 -22
- package/fesm2022/fundamental-ngx-core-toolbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-tree.mjs +1 -1
- package/fesm2022/fundamental-ngx-core-tree.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs +46 -131
- package/fesm2022/fundamental-ngx-core-upload-collection.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-wizard.mjs +5 -36
- package/fesm2022/fundamental-ngx-core-wizard.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core.mjs +0 -5
- package/fesm2022/fundamental-ngx-core.mjs.map +1 -1
- package/file-uploader/file-uploader.module.d.ts +6 -7
- package/file-uploader/index.d.ts +0 -1
- package/form/form-control/form-control.module.d.ts +3 -4
- package/form/form-label/form-label.component.d.ts +1 -16
- package/form/form-message/form-message.component.d.ts +0 -2
- package/form/form-message/popover-form-message.service.d.ts +2 -2
- package/form/index.d.ts +0 -1
- package/fundamental-ngx-core-v0.45.0.tgz +0 -0
- package/fundamental-ngx.module.d.ts +89 -90
- package/index.d.ts +0 -1
- package/inline-help/inline-help.directive.d.ts +1 -7
- package/input-group/index.d.ts +0 -1
- package/input-group/input-group.component.d.ts +6 -13
- package/input-group/input-group.module.d.ts +6 -7
- package/link/link.component.d.ts +1 -1
- package/list/index.d.ts +0 -1
- package/list/list-item/list-item.component.d.ts +1 -25
- package/list/list-message.directive.d.ts +2 -2
- package/list/list.module.d.ts +5 -6
- package/menu/index.d.ts +0 -1
- package/menu/menu.module.d.ts +6 -7
- package/message-box/index.d.ts +0 -2
- package/message-box/message-box.module.d.ts +15 -17
- package/message-strip/message-strip.component.d.ts +1 -9
- package/micro-process-flow/index.d.ts +0 -1
- package/micro-process-flow/micro-process-flow.module.d.ts +4 -5
- package/multi-input/index.d.ts +0 -1
- package/multi-input/multi-input.module.d.ts +12 -13
- package/nested-list/index.d.ts +0 -1
- package/nested-list/nested-list.module.d.ts +6 -7
- package/package.json +3 -9
- package/pagination/index.d.ts +0 -1
- package/pagination/pagination.component.d.ts +2 -111
- package/pagination/pagination.module.d.ts +10 -11
- package/panel/index.d.ts +0 -1
- package/panel/panel.module.d.ts +4 -5
- package/popover/base/base-popover.class.d.ts +1 -16
- package/popover/popover.component.d.ts +0 -11
- package/product-switch/product-switch/product-switch.component.d.ts +1 -8
- package/product-switch/product-switch-body/product-switch.item.d.ts +0 -4
- package/radio/index.d.ts +0 -1
- package/radio/radio.module.d.ts +4 -5
- package/schematics/add-dependencies/index.js +4 -4
- package/select/index.d.ts +0 -1
- package/select/select.component.d.ts +0 -2
- package/select/select.module.d.ts +9 -10
- package/shellbar/index.d.ts +0 -1
- package/shellbar/shellbar-actions/shellbar-actions.component.d.ts +1 -9
- package/shellbar/shellbar-actions-mobile/shellbar-actions-mobile.component.d.ts +3 -5
- package/shellbar/shellbar.module.d.ts +14 -15
- package/slider/index.d.ts +0 -1
- package/slider/slider.component.d.ts +1 -31
- package/slider/slider.module.d.ts +7 -8
- package/split-button/index.d.ts +0 -1
- package/split-button/split-button.component.d.ts +3 -12
- package/split-button/split-button.module.d.ts +6 -7
- package/splitter/splitter-pagination/splitter-pagination.component.d.ts +0 -5
- package/splitter/splitter.component.d.ts +1 -9
- package/step-input/index.d.ts +0 -1
- package/step-input/step-input.component.d.ts +1 -17
- package/step-input/step-input.module.d.ts +7 -8
- package/switch/index.d.ts +0 -1
- package/switch/switch.component.d.ts +1 -19
- package/switch/switch.module.d.ts +5 -6
- package/table/index.d.ts +0 -2
- package/table/table.module.d.ts +4 -6
- package/tabs/index.d.ts +0 -1
- package/tabs/tab-item-expand/tab-item-expand.component.d.ts +1 -8
- package/tabs/tab-list.component.d.ts +1 -9
- package/tabs/tabs.module.d.ts +12 -13
- package/text/text.component.d.ts +1 -17
- package/time/index.d.ts +0 -2
- package/time/time.component.d.ts +2 -15
- package/time/time.module.d.ts +9 -10
- package/time-picker/index.d.ts +0 -1
- package/time-picker/time-picker.module.d.ts +9 -10
- package/token/index.d.ts +0 -1
- package/token/token.component.d.ts +1 -17
- package/token/token.module.d.ts +8 -9
- package/toolbar/toolbar.component.d.ts +4 -12
- package/upload-collection/upload-collection-button-group/upload-collection-button-group.component.d.ts +2 -50
- package/upload-collection/upload-collection-form-item/upload-collection-form-item.component.d.ts +1 -9
- package/upload-collection/upload-collection-item.directive.d.ts +1 -1
- package/upload-collection/upload-collection-simple.directives.d.ts +7 -7
- package/upload-collection/upload-collection.component.d.ts +1 -1
- package/upload-collection/upload-collection.module.d.ts +1 -8
- package/wizard/index.d.ts +0 -1
- package/wizard/wizard.module.d.ts +8 -9
- package/action-sheet/deprecated-action-sheet-compact.directive.d.ts +0 -8
- package/alert/README.md +0 -25
- package/alert/alert-service/alert.service.d.ts +0 -41
- package/alert/alert-utils/alert-animations.d.ts +0 -8
- package/alert/alert-utils/alert-config.d.ts +0 -34
- package/alert/alert-utils/alert-container.component.d.ts +0 -14
- package/alert/alert-utils/alert-ref.d.ts +0 -26
- package/alert/alert.component.d.ts +0 -87
- package/alert/alert.module.d.ts +0 -18
- package/alert/index.d.ts +0 -7
- package/bar/deprecated-bar-button-content-density.directive.d.ts +0 -8
- package/bar/deprecated-bar-content-density.directive.d.ts +0 -8
- package/breadcrumb/deprecated-breadcrumbs-compact.directive.d.ts +0 -8
- package/button/deprecated-button-content-density.directive.d.ts +0 -8
- package/calendar/deprecated-calendar-content-density.directive.d.ts +0 -8
- package/card/deprecated-card-content-density.directive.d.ts +0 -8
- package/checkbox/deprecated-checkbox-content-density.directive.d.ts +0 -8
- package/combobox/deprecated-combobox-content-density.directive.d.ts +0 -10
- package/content-density/classes/deprecated-compact.directive.d.ts +0 -26
- package/content-density/classes/deprecated-condensed.directive.d.ts +0 -26
- package/content-density/classes/deprecated-content-density.directive.d.ts +0 -26
- package/content-density/classes/deprecated-cozy.directive.d.ts +0 -26
- package/date-picker/deprecated-date-picker-compact.directive.d.ts +0 -8
- package/datetime-picker/deprecated-date-time-picker-content-density.directive.d.ts +0 -8
- package/dialog/dialog-footer-button/dialog-footer-button.component.d.ts +0 -12
- package/dialog/directives/dialog-decisive-button.directive.d.ts +0 -11
- package/dynamic-page/deprecated-dynamic-page-compact.directive.d.ts +0 -8
- package/esm2022/action-sheet/deprecated-action-sheet-compact.directive.mjs +0 -30
- package/esm2022/alert/alert-service/alert.service.mjs +0 -85
- package/esm2022/alert/alert-utils/alert-animations.mjs +0 -38
- package/esm2022/alert/alert-utils/alert-config.mjs +0 -27
- package/esm2022/alert/alert-utils/alert-container.component.mjs +0 -29
- package/esm2022/alert/alert-utils/alert-ref.mjs +0 -29
- package/esm2022/alert/alert.component.mjs +0 -212
- package/esm2022/alert/alert.module.mjs +0 -33
- package/esm2022/alert/fundamental-ngx-core-alert.mjs +0 -5
- package/esm2022/alert/index.mjs +0 -8
- package/esm2022/bar/deprecated-bar-button-content-density.directive.mjs +0 -30
- package/esm2022/bar/deprecated-bar-content-density.directive.mjs +0 -29
- package/esm2022/breadcrumb/deprecated-breadcrumbs-compact.directive.mjs +0 -30
- package/esm2022/button/deprecated-button-content-density.directive.mjs +0 -30
- package/esm2022/calendar/deprecated-calendar-content-density.directive.mjs +0 -30
- package/esm2022/card/deprecated-card-content-density.directive.mjs +0 -30
- package/esm2022/checkbox/deprecated-checkbox-content-density.directive.mjs +0 -30
- package/esm2022/combobox/deprecated-combobox-content-density.directive.mjs +0 -31
- package/esm2022/content-density/classes/deprecated-compact.directive.mjs +0 -39
- package/esm2022/content-density/classes/deprecated-condensed.directive.mjs +0 -39
- package/esm2022/content-density/classes/deprecated-content-density.directive.mjs +0 -49
- package/esm2022/content-density/classes/deprecated-cozy.directive.mjs +0 -39
- package/esm2022/date-picker/deprecated-date-picker-compact.directive.mjs +0 -30
- package/esm2022/datetime-picker/deprecated-date-time-picker-content-density.directive.mjs +0 -30
- package/esm2022/dialog/dialog-footer-button/dialog-footer-button.component.mjs +0 -25
- package/esm2022/dialog/directives/dialog-decisive-button.directive.mjs +0 -26
- package/esm2022/dynamic-page/deprecated-dynamic-page-compact.directive.mjs +0 -30
- package/esm2022/file-uploader/deprecated-file-uploader-content-density.directive.mjs +0 -30
- package/esm2022/form/form-control/deprecated-form-control-content-density.directive.mjs +0 -29
- package/esm2022/input-group/deprecated-input-group-compact.directive.mjs +0 -30
- package/esm2022/list/deprecated-list-content-density,directive.mjs +0 -30
- package/esm2022/menu/directives/deprecated-menu-compact.directive.mjs +0 -30
- package/esm2022/message-box/directives/message-box-decisive-button.directive.mjs +0 -27
- package/esm2022/message-box/message-box-footer-button/message-box-footer-button.component.mjs +0 -25
- package/esm2022/micro-process-flow/components/micro-process-flow/deprecated-micro-process-flow-content-density.directive.mjs +0 -30
- package/esm2022/multi-input/deprecated-multi-input-compact.directive.mjs +0 -30
- package/esm2022/nested-list/deprecated-nested-list-compact.directive.mjs +0 -29
- package/esm2022/pagination/deprecated-pagination-compact.directive.mjs +0 -30
- package/esm2022/panel/deprecated-panel-compact.directive.mjs +0 -30
- package/esm2022/radio/deprecated-radio-button-compact.directive.mjs +0 -30
- package/esm2022/select/deprecated-select-compact.directive.mjs +0 -30
- package/esm2022/shellbar/deprecated-shellbar-compact.directive.mjs +0 -30
- package/esm2022/slider/deprecated-slider-cozy.directive.mjs +0 -20
- package/esm2022/split-button/deprecated-split-button-compact.directive.mjs +0 -30
- package/esm2022/step-input/deprecated-step-input-compact.directive.mjs +0 -30
- package/esm2022/switch/deprecated-switch-compact.directive.mjs +0 -30
- package/esm2022/table/deprecated-table-compact.directive.mjs +0 -29
- package/esm2022/table/deprecated-table-condensed.directive.mjs +0 -29
- package/esm2022/tabs/deprecated-tabs-compact.directive.mjs +0 -29
- package/esm2022/time/deprecated-time-content-density.directive.mjs +0 -30
- package/esm2022/time/i18n/time-i18n.mjs +0 -52
- package/esm2022/time-picker/deprecated-timepicker-compact.directive.mjs +0 -30
- package/esm2022/token/deprecated-tokenizer-content-density.directive.mjs +0 -30
- package/esm2022/wizard/deprecated-wizard-compact.directive.mjs +0 -30
- package/fesm2022/fundamental-ngx-core-alert.mjs +0 -437
- package/fesm2022/fundamental-ngx-core-alert.mjs.map +0 -1
- package/file-uploader/deprecated-file-uploader-content-density.directive.d.ts +0 -8
- package/form/form-control/deprecated-form-control-content-density.directive.d.ts +0 -8
- package/fundamental-ngx-core-v0.44.1-rc.3.tgz +0 -0
- package/input-group/deprecated-input-group-compact.directive.d.ts +0 -8
- package/list/deprecated-list-content-density,directive.d.ts +0 -8
- package/menu/directives/deprecated-menu-compact.directive.d.ts +0 -8
- package/message-box/directives/message-box-decisive-button.directive.d.ts +0 -11
- package/message-box/message-box-footer-button/message-box-footer-button.component.d.ts +0 -12
- package/micro-process-flow/components/micro-process-flow/deprecated-micro-process-flow-content-density.directive.d.ts +0 -8
- package/multi-input/deprecated-multi-input-compact.directive.d.ts +0 -8
- package/nested-list/deprecated-nested-list-compact.directive.d.ts +0 -8
- package/pagination/deprecated-pagination-compact.directive.d.ts +0 -8
- package/panel/deprecated-panel-compact.directive.d.ts +0 -8
- package/radio/deprecated-radio-button-compact.directive.d.ts +0 -8
- package/select/deprecated-select-compact.directive.d.ts +0 -8
- package/shellbar/deprecated-shellbar-compact.directive.d.ts +0 -8
- package/slider/deprecated-slider-cozy.directive.d.ts +0 -8
- package/split-button/deprecated-split-button-compact.directive.d.ts +0 -8
- package/step-input/deprecated-step-input-compact.directive.d.ts +0 -8
- package/switch/deprecated-switch-compact.directive.d.ts +0 -8
- package/table/deprecated-table-compact.directive.d.ts +0 -8
- package/table/deprecated-table-condensed.directive.d.ts +0 -8
- package/tabs/deprecated-tabs-compact.directive.d.ts +0 -8
- package/time/deprecated-time-content-density.directive.d.ts +0 -8
- package/time/i18n/time-i18n.d.ts +0 -42
- package/time-picker/deprecated-timepicker-compact.directive.d.ts +0 -8
- package/token/deprecated-tokenizer-content-density.directive.d.ts +0 -8
- package/wizard/deprecated-wizard-compact.directive.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, EventEmitter, TemplateRef, ElementRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild,
|
|
2
|
+
import { Directive, EventEmitter, TemplateRef, ElementRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { Subscription, tap } from 'rxjs';
|
|
@@ -7,9 +7,8 @@ import { first } from 'rxjs/operators';
|
|
|
7
7
|
import * as i4 from '@fundamental-ngx/core/menu';
|
|
8
8
|
import { MenuComponent, MenuModule } from '@fundamental-ngx/core/menu';
|
|
9
9
|
import * as i1 from '@fundamental-ngx/core/content-density';
|
|
10
|
-
import { contentDensityObserverProviders,
|
|
10
|
+
import { contentDensityObserverProviders, ContentDensityModule } from '@fundamental-ngx/core/content-density';
|
|
11
11
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
12
|
-
import { warnOnce } from '@fundamental-ngx/cdk/utils';
|
|
13
12
|
import * as i3 from '@fundamental-ngx/core/button';
|
|
14
13
|
import { ButtonModule } from '@fundamental-ngx/core/button';
|
|
15
14
|
import * as i5 from '@fundamental-ngx/i18n';
|
|
@@ -78,25 +77,6 @@ const splitButtonTextClasses = [splitButtonTextClass];
|
|
|
78
77
|
* ```
|
|
79
78
|
*/
|
|
80
79
|
class SplitButtonComponent {
|
|
81
|
-
/** @deprecated The Title for main action button. This will be deprecated as an input but will remain a property on this component. */
|
|
82
|
-
set mainActionTitle(value) {
|
|
83
|
-
warnOnce("Property mainActionTitle is deprecated. Use MenuItemComponent's title component text content instead.");
|
|
84
|
-
this._mainActionTitle = value;
|
|
85
|
-
}
|
|
86
|
-
get mainActionTitle() {
|
|
87
|
-
return this._mainActionTitle;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated use i18n capabilities instead
|
|
91
|
-
* Aria-label attribute used to describe expand button
|
|
92
|
-
*/
|
|
93
|
-
set expandButtonAriaLabel(value) {
|
|
94
|
-
warnOnce("Property expandButtonAriaLabel is deprecated. Use i18n capabilities 'coreSplitButton.expandButtonAriaLabel' key instead.");
|
|
95
|
-
this._expandButtonAriaLabel = value;
|
|
96
|
-
}
|
|
97
|
-
get expandButtonAriaLabel() {
|
|
98
|
-
return this._expandButtonAriaLabel;
|
|
99
|
-
}
|
|
100
80
|
/** @hidden */
|
|
101
81
|
get typeClass() {
|
|
102
82
|
return this.fdType ? `fd-button-split--${this.fdType}` : '';
|
|
@@ -256,21 +236,17 @@ class SplitButtonComponent {
|
|
|
256
236
|
this.menuActionBtn?.nativeElement.focus();
|
|
257
237
|
}
|
|
258
238
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.DestroyRef }, { token: i1.ContentDensityObserver }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitButtonComponent, selector: "fd-split-button", inputs: { glyph: "glyph", disabled: "disabled", mainActionTitle: "mainActionTitle", fdType: "fdType", expandButtonAriaLabel: "expandButtonAriaLabel", expandButtonTitle: "expandButtonTitle", selected: "selected", fixedWidth: "fixedWidth", mainAction: "mainAction", arialLabel: "arialLabel" }, outputs: { primaryButtonClicked: "primaryButtonClicked" }, providers: [contentDensityObserverProviders()], queries: [{ propertyName: "titleTemplate", first: true, predicate: SplitButtonActionTitle, descendants: true, read: TemplateRef }, { propertyName: "menu", first: true, predicate: MenuComponent, descendants: true }], viewQueries: [{ propertyName: "mainActionBtn", first: true, predicate: ["mainActionButton"], descendants: true, read: ElementRef }, { propertyName: "menuActionBtn", first: true, predicate: ["menuActionButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i4.MenuTriggerDirective, selector: "[fdMenuTrigger]", inputs: ["fdMenuTrigger"] }, { kind: "pipe", type: i5.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
239
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitButtonComponent, selector: "fd-split-button", inputs: { glyph: "glyph", disabled: "disabled", fdType: "fdType", expandButtonTitle: "expandButtonTitle", selected: "selected", fixedWidth: "fixedWidth", mainAction: "mainAction", arialLabel: "arialLabel" }, outputs: { primaryButtonClicked: "primaryButtonClicked" }, providers: [contentDensityObserverProviders()], queries: [{ propertyName: "titleTemplate", first: true, predicate: SplitButtonActionTitle, descendants: true, read: TemplateRef }, { propertyName: "menu", first: true, predicate: MenuComponent, descendants: true }], viewQueries: [{ propertyName: "mainActionBtn", first: true, predicate: ["mainActionButton"], descendants: true, read: ElementRef }, { propertyName: "menuActionBtn", first: true, predicate: ["menuActionButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [attr.title]=\"expandButtonTitle || 'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i4.MenuTriggerDirective, selector: "[fdMenuTrigger]", inputs: ["fdMenuTrigger"] }, { kind: "pipe", type: i5.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
260
240
|
}
|
|
261
241
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
262
242
|
type: Component,
|
|
263
|
-
args: [{ selector: 'fd-split-button', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [contentDensityObserverProviders()], template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"] }]
|
|
243
|
+
args: [{ selector: 'fd-split-button', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [contentDensityObserverProviders()], template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [attr.title]=\"expandButtonTitle || 'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"] }]
|
|
264
244
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }, { type: i1.ContentDensityObserver }, { type: i0.Renderer2 }]; }, propDecorators: { glyph: [{
|
|
265
245
|
type: Input
|
|
266
246
|
}], disabled: [{
|
|
267
247
|
type: Input
|
|
268
|
-
}], mainActionTitle: [{
|
|
269
|
-
type: Input
|
|
270
248
|
}], fdType: [{
|
|
271
249
|
type: Input
|
|
272
|
-
}], expandButtonAriaLabel: [{
|
|
273
|
-
type: Input
|
|
274
250
|
}], expandButtonTitle: [{
|
|
275
251
|
type: Input
|
|
276
252
|
}], selected: [{
|
|
@@ -297,44 +273,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
297
273
|
args: ['menuActionButton', { read: ElementRef }]
|
|
298
274
|
}] } });
|
|
299
275
|
|
|
300
|
-
class DeprecatedSplitButtonCompactDirective extends DeprecatedCompactDirective {
|
|
301
|
-
/** @hidden */
|
|
302
|
-
constructor() {
|
|
303
|
-
super('fd-split-button');
|
|
304
|
-
}
|
|
305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedSplitButtonCompactDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
306
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedSplitButtonCompactDirective, selector: "fd-split-button[compact]", providers: [
|
|
307
|
-
{
|
|
308
|
-
provide: CONTENT_DENSITY_DIRECTIVE,
|
|
309
|
-
useExisting: forwardRef(() => DeprecatedSplitButtonCompactDirective)
|
|
310
|
-
}
|
|
311
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
312
|
-
}
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedSplitButtonCompactDirective, decorators: [{
|
|
314
|
-
type: Directive,
|
|
315
|
-
args: [{
|
|
316
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
317
|
-
selector: 'fd-split-button[compact]',
|
|
318
|
-
providers: [
|
|
319
|
-
{
|
|
320
|
-
provide: CONTENT_DENSITY_DIRECTIVE,
|
|
321
|
-
useExisting: forwardRef(() => DeprecatedSplitButtonCompactDirective)
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
}]
|
|
325
|
-
}], ctorParameters: function () { return []; } });
|
|
326
|
-
|
|
327
276
|
class SplitButtonModule {
|
|
328
277
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
329
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent, SplitButtonActionTitle
|
|
278
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent, SplitButtonActionTitle], imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule], exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule] }); }
|
|
330
279
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonModule, imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule, ContentDensityModule] }); }
|
|
331
280
|
}
|
|
332
281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
333
282
|
type: NgModule,
|
|
334
283
|
args: [{
|
|
335
284
|
imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule],
|
|
336
|
-
declarations: [SplitButtonComponent, SplitButtonActionTitle
|
|
337
|
-
exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule
|
|
285
|
+
declarations: [SplitButtonComponent, SplitButtonActionTitle],
|
|
286
|
+
exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule]
|
|
338
287
|
}]
|
|
339
288
|
}] });
|
|
340
289
|
|
|
@@ -342,5 +291,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
342
291
|
* Generated bundle index. Do not edit.
|
|
343
292
|
*/
|
|
344
293
|
|
|
345
|
-
export {
|
|
294
|
+
export { SplitButtonActionTitle, SplitButtonComponent, SplitButtonModule, splitButtonTextClass };
|
|
346
295
|
//# sourceMappingURL=fundamental-ngx-core-split-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundamental-ngx-core-split-button.mjs","sources":["../../../../libs/core/src/lib/split-button/split-button-utils/split-button.directives.ts","../../../../libs/core/src/lib/split-button/split-button.component.ts","../../../../libs/core/src/lib/split-button/split-button.component.html","../../../../libs/core/src/lib/split-button/deprecated-split-button-compact.directive.ts","../../../../libs/core/src/lib/split-button/split-button.module.ts","../../../../libs/core/src/lib/split-button/fundamental-ngx-core-split-button.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Directive used to identify the template which will populate the main action button.\n * Used to achieve complex buttons that require more than a string.\n *```html\n * <fd-button-split>\n * <ng-template fd-button-split-action-title>\n * <p>Paragraph 1</p>\n * <p>Paragraph 2</p>\n * </ng-template>\n * <fd-menu>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * </fd-menu>\n * </fd-button-split>\n *</fd-button-split>\n *```\n */\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-split-button-action-title]'\n})\n// eslint-disable-next-line @angular-eslint/directive-class-suffix\nexport class SplitButtonActionTitle {}\n","import {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subscription, tap } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { ButtonType } from '@fundamental-ngx/core/button';\nimport { MenuComponent, MenuItemComponent } from '@fundamental-ngx/core/menu';\n\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MainAction } from './main-action';\nimport { ContentDensityObserver, contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { warnOnce } from '@fundamental-ngx/cdk/utils';\n\nexport const splitButtonTextClass = 'fd-button-split__text';\nconst splitButtonTextClasses = [splitButtonTextClass];\n\n/**\n * Split Button component, used to enhance standard HTML button and add possibility to put some dropdown with\n * additional options.\n *\n * ```html\n * <fd-split-button>\n * <fd-menu>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 1</span>\n * </div>\n * </li>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 2</span>\n * </div>\n * </li>\n * </fd-menu>\n *</fd-split-button>\n * ```\n */\n@Component({\n selector: 'fd-split-button',\n templateUrl: 'split-button.component.html',\n styleUrls: ['./split-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [contentDensityObserverProviders()]\n})\nexport class SplitButtonComponent implements AfterContentInit, OnChanges, OnDestroy, AfterViewInit {\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n glyph = 'slim-arrow-down';\n\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n disabled: boolean;\n\n /** @deprecated The Title for main action button. This will be deprecated as an input but will remain a property on this component. */\n @Input()\n set mainActionTitle(value: string) {\n warnOnce(\n \"Property mainActionTitle is deprecated. Use MenuItemComponent's title component text content instead.\"\n );\n this._mainActionTitle = value;\n }\n\n get mainActionTitle(): string {\n return this._mainActionTitle;\n }\n\n /** The type of the button. Types include 'standard', 'positive', 'medium', and 'negative'.\n * Leave empty for default (Action button).'*/\n @Input()\n fdType: ButtonType;\n\n /**\n * @deprecated use i18n capabilities instead\n * Aria-label attribute used to describe expand button\n */\n @Input()\n set expandButtonAriaLabel(value: string) {\n warnOnce(\n \"Property expandButtonAriaLabel is deprecated. Use i18n capabilities 'coreSplitButton.expandButtonAriaLabel' key instead.\"\n );\n this._expandButtonAriaLabel = value;\n }\n\n get expandButtonAriaLabel(): string {\n return this._expandButtonAriaLabel;\n }\n\n /** Title attribute used to describe expand button */\n @Input()\n expandButtonTitle: string;\n\n /** Selected menu item */\n @Input()\n selected: MenuItemComponent;\n\n /** Whether or not the element should keep a fixed width. The width could change if the text changes length. */\n @Input()\n fixedWidth = true;\n\n /**\n * The object that contains the mainActionTitle, keepMainAction option and the callback function that should be\n * executed when the button is clicked.\n */\n @Input()\n mainAction: MainAction;\n\n /** aria-label attribute */\n @Input()\n arialLabel: string;\n\n /** Event sent when primary button is clicked */\n @Output()\n readonly primaryButtonClicked: EventEmitter<Event> = new EventEmitter<Event>();\n\n /** @hidden */\n @ContentChild(SplitButtonActionTitle, { read: TemplateRef })\n titleTemplate: TemplateRef<any> | null;\n\n /** @hidden */\n @ContentChild(MenuComponent)\n menu: MenuComponent;\n\n /** @hidden */\n @ViewChild('mainActionButton', { read: ElementRef })\n mainActionBtn: ElementRef;\n\n /** @hidden */\n @ViewChild('menuActionButton', { read: ElementRef })\n menuActionBtn: ElementRef;\n\n /** @hidden */\n mainButtonWidth: string;\n\n /** @hidden */\n get typeClass(): string {\n return this.fdType ? `fd-button-split--${this.fdType}` : '';\n }\n\n /** @hidden */\n private _expandButtonAriaLabel: string;\n\n /** @hidden */\n private _mainActionTitle: string;\n\n /** @hidden */\n private _menuItemSubscriptions = new Subscription();\n\n /** @hidden */\n private _menuSubscription = new Subscription();\n\n /** @hidden */\n private _contentDensitySubscription = new Subscription();\n\n /** @hidden */\n private _menuActivePathSubscription = new Subscription();\n\n /** @hidden */\n constructor(\n private _cdRef: ChangeDetectorRef,\n private _destroyRef: DestroyRef,\n private _contentDensityObserver: ContentDensityObserver,\n private _renderer: Renderer2\n ) {}\n\n /** @hidden Emits event when main button is clicked */\n onMainButtonClick(event: MouseEvent): void {\n this.primaryButtonClicked.emit(event);\n if (this.selected) {\n this.selected.elementRef.nativeElement.click();\n } else if (this.mainAction && this.mainAction.callback) {\n this.mainAction.callback();\n }\n event.stopPropagation();\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.menu._menuItems.forEach((item) => {\n item.menuInteractive._fromSplitButton = true;\n });\n this._setupMenuSubscription();\n this._setupMenuItemSubscriptions();\n this._handleMainActionObject();\n\n if (!this.mainActionTitle && !this.titleTemplate && !this.selected) {\n this.selectMenuItem(this.menu._menuItems.first);\n } else if (!this.mainActionTitle && this.selected) {\n this.selectMenuItem(this.selected);\n }\n\n this._menuActivePathSubscription.add(\n this.menu.activePath.subscribe((items) => {\n const lastItem = items[items.length - 1];\n if (lastItem && !lastItem.submenu) {\n this.menu.close();\n this._focusTriggerElement();\n }\n })\n );\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n this._contentDensityObserver.isCompact$\n .pipe(tap(this._addButtonTextClass), takeUntilDestroyed(this._destroyRef))\n .subscribe();\n }\n\n /** @hidden */\n ngOnChanges(changes: SimpleChanges): void {\n if ('selected' in changes) {\n this.selectMenuItem(this.selected);\n }\n if ('mainAction' in changes) {\n this._handleMainActionObject();\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._menuItemSubscriptions.unsubscribe();\n this._menuSubscription.unsubscribe();\n this._contentDensitySubscription.unsubscribe();\n this._menuActivePathSubscription.unsubscribe();\n }\n\n /** Function called to select a menu item for the split button. */\n selectMenuItem(menuItem: MenuItemComponent): void {\n if (menuItem && (!this.mainAction || !this.mainAction.keepMainAction)) {\n menuItem.setSelected(true);\n }\n }\n\n /**\n * Wrapper gets focused programmatically by menu\n * when the \"escape\" button is pressed.\n * In this case we need to transit focus to the \"more actions\" button\n */\n _onGroupFocused(): void {\n this._focusTriggerElement();\n }\n\n /** @hidden */\n private _getMainButtonWidth(): void {\n if (this.mainActionBtn && this.mainActionBtn.nativeElement) {\n this.mainButtonWidth = this.mainActionBtn.nativeElement.getBoundingClientRect().width + 'px';\n }\n }\n\n /** @hidden */\n private _setupMenuItemSubscriptions(): void {\n this.menu._menuItems.forEach((menuItem) => {\n menuItem.onSelect.pipe(first()).subscribe(() => {\n if (this.fixedWidth) {\n this._getMainButtonWidth();\n }\n });\n this._menuItemSubscriptions.add(\n menuItem.onSelect.subscribe(() => {\n this._handleMenuItemSelection(menuItem);\n })\n );\n });\n }\n\n /** @hidden */\n private _handleMenuItemSelection(menuItem: MenuItemComponent): void {\n if (!this.mainAction || !this.mainAction.keepMainAction) {\n this.selected = menuItem;\n this.menu._menuItems.forEach((item) => {\n item.setSelected(false, true);\n });\n menuItem.setSelected(true, true);\n this.titleTemplate = null;\n this.mainActionTitle = menuItem.menuItemTitle.title;\n this._cdRef.detectChanges();\n }\n }\n\n /** @hidden */\n private _setupMenuSubscription(): void {\n this._menuSubscription = this.menu._menuItems.changes.subscribe(() => {\n this._menuItemSubscriptions.unsubscribe();\n this._menuItemSubscriptions.closed = false;\n this._setupMenuItemSubscriptions();\n });\n // call markForCheck once menu open state gets changed\n this._menuSubscription.add(this.menu.isOpenChange.subscribe(() => this._cdRef.markForCheck()));\n }\n\n /** @hidden */\n private _handleMainActionObject(): void {\n if (this.mainAction && typeof this.mainAction.mainActionTitle === 'string') {\n this.mainActionTitle = this.mainAction.mainActionTitle;\n } else if (this.mainAction && this.mainAction.mainActionTitle instanceof TemplateRef) {\n this.titleTemplate = this.mainAction.mainActionTitle;\n }\n }\n\n /** @hidden */\n private _addButtonTextClass = (compact: boolean): void => {\n const textSpanElement = this.mainActionBtn?.nativeElement.querySelector('.fd-button__text');\n if (!textSpanElement) {\n return;\n }\n splitButtonTextClasses.forEach((_class) => this._renderer.removeClass(textSpanElement, _class));\n this._renderer.addClass(textSpanElement, splitButtonTextClass);\n };\n\n /** @hidden */\n private _focusTriggerElement(): void {\n this.menuActionBtn?.nativeElement.focus();\n }\n}\n","<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n","import { CONTENT_DENSITY_DIRECTIVE, DeprecatedCompactDirective } from '@fundamental-ngx/core/content-density';\nimport { Directive, forwardRef } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'fd-split-button[compact]',\n providers: [\n {\n provide: CONTENT_DENSITY_DIRECTIVE,\n useExisting: forwardRef(() => DeprecatedSplitButtonCompactDirective)\n }\n ]\n})\nexport class DeprecatedSplitButtonCompactDirective extends DeprecatedCompactDirective {\n /** @hidden */\n constructor() {\n super('fd-split-button');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SplitButtonComponent } from './split-button.component';\nimport { ButtonModule } from '@fundamental-ngx/core/button';\nimport { I18nModule } from '@fundamental-ngx/i18n';\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MenuModule } from '@fundamental-ngx/core/menu';\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\nimport { DeprecatedSplitButtonCompactDirective } from './deprecated-split-button-compact.directive';\n\n@NgModule({\n imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule],\n declarations: [SplitButtonComponent, SplitButtonActionTitle, DeprecatedSplitButtonCompactDirective],\n exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule, DeprecatedSplitButtonCompactDirective]\n})\nexport class SplitButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAMH;MACa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGP,oBAAA,QAAQ,EAAE,gCAAgC;AAC7C,iBAAA,CAAA;;;ACAM,MAAM,oBAAoB,GAAG,wBAAwB;AAC5D,MAAM,sBAAsB,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;AAoBG;MASU,oBAAoB,CAAA;;IAU7B,IACI,eAAe,CAAC,KAAa,EAAA;QAC7B,QAAQ,CACJ,uGAAuG,CAC1G,CAAC;AACF,QAAA,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;KACjC;AAED,IAAA,IAAI,eAAe,GAAA;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;KAChC;AAOD;;;AAGG;IACH,IACI,qBAAqB,CAAC,KAAa,EAAA;QACnC,QAAQ,CACJ,0HAA0H,CAC7H,CAAC;AACF,QAAA,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;KACvC;AAED,IAAA,IAAI,qBAAqB,GAAA;QACrB,OAAO,IAAI,CAAC,sBAAsB,CAAC;KACtC;;AAiDD,IAAA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4BAAA,WAAW,EAAE,UAAU,CAAC,2CAA2C,CAAC;AACvE,yBAAA;AACJ,qBAAA;AACJ,iBAAA,CAAA;;;MCIY,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAjB,iBAAiB,EAAA,YAAA,EAAA,CAHX,oBAAoB,EAAE,sBAAsB,EAAE,qCAAqC,CAAA,EAAA,OAAA,EAAA,CADxF,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAExE,EAAA,OAAA,EAAA,CAAA,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qCAAqC,CAAA,EAAA,CAAA,CAAA,EAAA;+GAE1G,iBAAiB,EAAA,OAAA,EAAA,CAJhB,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAE1B,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEnE,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAAC;AACnF,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,qCAAqC,CAAC;oBACnG,OAAO,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qCAAqC,CAAC;AACvH,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-core-split-button.mjs","sources":["../../../../libs/core/src/lib/split-button/split-button-utils/split-button.directives.ts","../../../../libs/core/src/lib/split-button/split-button.component.ts","../../../../libs/core/src/lib/split-button/split-button.component.html","../../../../libs/core/src/lib/split-button/split-button.module.ts","../../../../libs/core/src/lib/split-button/fundamental-ngx-core-split-button.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Directive used to identify the template which will populate the main action button.\n * Used to achieve complex buttons that require more than a string.\n *```html\n * <fd-button-split>\n * <ng-template fd-button-split-action-title>\n * <p>Paragraph 1</p>\n * <p>Paragraph 2</p>\n * </ng-template>\n * <fd-menu>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * </fd-menu>\n * </fd-button-split>\n *</fd-button-split>\n *```\n */\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-split-button-action-title]'\n})\n// eslint-disable-next-line @angular-eslint/directive-class-suffix\nexport class SplitButtonActionTitle {}\n","import {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subscription, tap } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { ButtonType } from '@fundamental-ngx/core/button';\nimport { MenuComponent, MenuItemComponent } from '@fundamental-ngx/core/menu';\n\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MainAction } from './main-action';\nimport { ContentDensityObserver, contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nexport const splitButtonTextClass = 'fd-button-split__text';\nconst splitButtonTextClasses = [splitButtonTextClass];\n\n/**\n * Split Button component, used to enhance standard HTML button and add possibility to put some dropdown with\n * additional options.\n *\n * ```html\n * <fd-split-button>\n * <fd-menu>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 1</span>\n * </div>\n * </li>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 2</span>\n * </div>\n * </li>\n * </fd-menu>\n *</fd-split-button>\n * ```\n */\n@Component({\n selector: 'fd-split-button',\n templateUrl: 'split-button.component.html',\n styleUrls: ['./split-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [contentDensityObserverProviders()]\n})\nexport class SplitButtonComponent implements AfterContentInit, OnChanges, OnDestroy, AfterViewInit {\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n glyph = 'slim-arrow-down';\n\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n disabled: boolean;\n\n /** The type of the button. Types include 'standard', 'positive', 'medium', and 'negative'.\n * Leave empty for default (Action button).'*/\n @Input()\n fdType: ButtonType;\n\n /** Title attribute used to describe expand button */\n @Input()\n expandButtonTitle: string;\n\n /** Selected menu item */\n @Input()\n selected: MenuItemComponent;\n\n /** Whether or not the element should keep a fixed width. The width could change if the text changes length. */\n @Input()\n fixedWidth = true;\n\n /**\n * The object that contains the mainActionTitle, keepMainAction option and the callback function that should be\n * executed when the button is clicked.\n */\n @Input()\n mainAction: MainAction;\n\n /** aria-label attribute */\n @Input()\n arialLabel: string;\n\n /** Event sent when primary button is clicked */\n @Output()\n readonly primaryButtonClicked: EventEmitter<Event> = new EventEmitter<Event>();\n\n /** @hidden */\n @ContentChild(SplitButtonActionTitle, { read: TemplateRef })\n titleTemplate: TemplateRef<any> | null;\n\n /** @hidden */\n @ContentChild(MenuComponent)\n menu: MenuComponent;\n\n /** @hidden */\n @ViewChild('mainActionButton', { read: ElementRef })\n mainActionBtn: ElementRef;\n\n /** @hidden */\n @ViewChild('menuActionButton', { read: ElementRef })\n menuActionBtn: ElementRef;\n\n /** The Title for main action button */\n mainActionTitle: string;\n\n /** @hidden */\n mainButtonWidth: string;\n\n /** @hidden */\n get typeClass(): string {\n return this.fdType ? `fd-button-split--${this.fdType}` : '';\n }\n\n /** @hidden */\n private _mainActionTitle: string;\n\n /** @hidden */\n private _menuItemSubscriptions = new Subscription();\n\n /** @hidden */\n private _menuSubscription = new Subscription();\n\n /** @hidden */\n private _contentDensitySubscription = new Subscription();\n\n /** @hidden */\n private _menuActivePathSubscription = new Subscription();\n\n /** @hidden */\n constructor(\n private _cdRef: ChangeDetectorRef,\n private _destroyRef: DestroyRef,\n private _contentDensityObserver: ContentDensityObserver,\n private _renderer: Renderer2\n ) {}\n\n /** @hidden Emits event when main button is clicked */\n onMainButtonClick(event: MouseEvent): void {\n this.primaryButtonClicked.emit(event);\n if (this.selected) {\n this.selected.elementRef.nativeElement.click();\n } else if (this.mainAction && this.mainAction.callback) {\n this.mainAction.callback();\n }\n event.stopPropagation();\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.menu._menuItems.forEach((item) => {\n item.menuInteractive._fromSplitButton = true;\n });\n this._setupMenuSubscription();\n this._setupMenuItemSubscriptions();\n this._handleMainActionObject();\n\n if (!this.mainActionTitle && !this.titleTemplate && !this.selected) {\n this.selectMenuItem(this.menu._menuItems.first);\n } else if (!this.mainActionTitle && this.selected) {\n this.selectMenuItem(this.selected);\n }\n\n this._menuActivePathSubscription.add(\n this.menu.activePath.subscribe((items) => {\n const lastItem = items[items.length - 1];\n if (lastItem && !lastItem.submenu) {\n this.menu.close();\n this._focusTriggerElement();\n }\n })\n );\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n this._contentDensityObserver.isCompact$\n .pipe(tap(this._addButtonTextClass), takeUntilDestroyed(this._destroyRef))\n .subscribe();\n }\n\n /** @hidden */\n ngOnChanges(changes: SimpleChanges): void {\n if ('selected' in changes) {\n this.selectMenuItem(this.selected);\n }\n if ('mainAction' in changes) {\n this._handleMainActionObject();\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._menuItemSubscriptions.unsubscribe();\n this._menuSubscription.unsubscribe();\n this._contentDensitySubscription.unsubscribe();\n this._menuActivePathSubscription.unsubscribe();\n }\n\n /** Function called to select a menu item for the split button. */\n selectMenuItem(menuItem: MenuItemComponent): void {\n if (menuItem && (!this.mainAction || !this.mainAction.keepMainAction)) {\n menuItem.setSelected(true);\n }\n }\n\n /**\n * Wrapper gets focused programmatically by menu\n * when the \"escape\" button is pressed.\n * In this case we need to transit focus to the \"more actions\" button\n */\n _onGroupFocused(): void {\n this._focusTriggerElement();\n }\n\n /** @hidden */\n private _getMainButtonWidth(): void {\n if (this.mainActionBtn && this.mainActionBtn.nativeElement) {\n this.mainButtonWidth = this.mainActionBtn.nativeElement.getBoundingClientRect().width + 'px';\n }\n }\n\n /** @hidden */\n private _setupMenuItemSubscriptions(): void {\n this.menu._menuItems.forEach((menuItem) => {\n menuItem.onSelect.pipe(first()).subscribe(() => {\n if (this.fixedWidth) {\n this._getMainButtonWidth();\n }\n });\n this._menuItemSubscriptions.add(\n menuItem.onSelect.subscribe(() => {\n this._handleMenuItemSelection(menuItem);\n })\n );\n });\n }\n\n /** @hidden */\n private _handleMenuItemSelection(menuItem: MenuItemComponent): void {\n if (!this.mainAction || !this.mainAction.keepMainAction) {\n this.selected = menuItem;\n this.menu._menuItems.forEach((item) => {\n item.setSelected(false, true);\n });\n menuItem.setSelected(true, true);\n this.titleTemplate = null;\n this.mainActionTitle = menuItem.menuItemTitle.title;\n this._cdRef.detectChanges();\n }\n }\n\n /** @hidden */\n private _setupMenuSubscription(): void {\n this._menuSubscription = this.menu._menuItems.changes.subscribe(() => {\n this._menuItemSubscriptions.unsubscribe();\n this._menuItemSubscriptions.closed = false;\n this._setupMenuItemSubscriptions();\n });\n // call markForCheck once menu open state gets changed\n this._menuSubscription.add(this.menu.isOpenChange.subscribe(() => this._cdRef.markForCheck()));\n }\n\n /** @hidden */\n private _handleMainActionObject(): void {\n if (this.mainAction && typeof this.mainAction.mainActionTitle === 'string') {\n this.mainActionTitle = this.mainAction.mainActionTitle;\n } else if (this.mainAction && this.mainAction.mainActionTitle instanceof TemplateRef) {\n this.titleTemplate = this.mainAction.mainActionTitle;\n }\n }\n\n /** @hidden */\n private _addButtonTextClass = (compact: boolean): void => {\n const textSpanElement = this.mainActionBtn?.nativeElement.querySelector('.fd-button__text');\n if (!textSpanElement) {\n return;\n }\n splitButtonTextClasses.forEach((_class) => this._renderer.removeClass(textSpanElement, _class));\n this._renderer.addClass(textSpanElement, splitButtonTextClass);\n };\n\n /** @hidden */\n private _focusTriggerElement(): void {\n this.menuActionBtn?.nativeElement.focus();\n }\n}\n","<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [attr.title]=\"expandButtonTitle || 'coreSplitButton.expandButtonAriaLabel' | fdTranslate\"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SplitButtonComponent } from './split-button.component';\nimport { ButtonModule } from '@fundamental-ngx/core/button';\nimport { I18nModule } from '@fundamental-ngx/i18n';\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MenuModule } from '@fundamental-ngx/core/menu';\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\n\n@NgModule({\n imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule],\n declarations: [SplitButtonComponent, SplitButtonActionTitle],\n exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule]\n})\nexport class SplitButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAMH;MACa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGP,oBAAA,QAAQ,EAAE,gCAAgC;AAC7C,iBAAA,CAAA;;;ACDM,MAAM,oBAAoB,GAAG,wBAAwB;AAC5D,MAAM,sBAAsB,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;AAoBG;MASU,oBAAoB,CAAA;;AAgE7B,IAAA,IAAI,SAAS,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAA,iBAAA,EAAoB,IAAI,CAAC,MAAM,CAAE,CAAA,GAAG,EAAE,CAAC;KAC/D;;AAkBD,IAAA,WAAA,CACY,MAAyB,EACzB,WAAuB,EACvB,uBAA+C,EAC/C,SAAoB,EAAA;QAHpB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAmB;QACzB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;QACvB,IAAuB,CAAA,uBAAA,GAAvB,uBAAuB,CAAwB;QAC/C,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;;QArFhC,IAAK,CAAA,KAAA,G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EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,iBAHX,oBAAoB,EAAE,sBAAsB,CADjD,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAExE,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEnE,iBAAiB,EAAA,OAAA,EAAA,CAJhB,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAE1B,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEnE,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAAC;AACnF,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,CAAC;AAChF,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -14,7 +14,7 @@ import { Subject, fromEvent, throttleTime, Subscription } from 'rxjs';
|
|
|
14
14
|
import * as i1 from '@angular/cdk/scrolling';
|
|
15
15
|
import { takeUntil, take, filter } from 'rxjs/operators';
|
|
16
16
|
import * as i3$1 from '@fundamental-ngx/cdk/utils';
|
|
17
|
-
import {
|
|
17
|
+
import { KeyUtil } from '@fundamental-ngx/cdk/utils';
|
|
18
18
|
import { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';
|
|
19
19
|
|
|
20
20
|
const PANE_AUTO_SIZE = 'auto';
|
|
@@ -158,17 +158,6 @@ class SplitterComponent {
|
|
|
158
158
|
get defaultPaneId() {
|
|
159
159
|
return this._defaultPaneId;
|
|
160
160
|
}
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated use i18n capabilities instead
|
|
163
|
-
* aria-label for the pagination item.
|
|
164
|
-
*/
|
|
165
|
-
set paginationItemAriaLabel(value) {
|
|
166
|
-
warnOnce("Property paginationItemAriaLabel is deprecated. Use i18n capabilities 'coreSplitter.paginationItemAriaLabel' key instead.");
|
|
167
|
-
this._paginationItemAriaLabel = value;
|
|
168
|
-
}
|
|
169
|
-
get paginationItemAriaLabel() {
|
|
170
|
-
return this._paginationItemAriaLabel;
|
|
171
|
-
}
|
|
172
161
|
/** Check whether certain pane is on canvas. */
|
|
173
162
|
isPaneOnCanvas(paneId) {
|
|
174
163
|
if (!this._panes.length) {
|
|
@@ -194,7 +183,7 @@ class SplitterComponent {
|
|
|
194
183
|
paneToShow?.showOnCanvas();
|
|
195
184
|
}
|
|
196
185
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
197
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitterComponent, selector: "fd-splitter", inputs: { defaultPaneId: "defaultPaneId", paginationItemAriaLabel: "paginationItemAriaLabel" }, host: { classAttribute: "fd-splitter" }, queries: [{ propertyName: "_panes", predicate: SplitterSplitPaneComponent, descendants: true }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n */.fd-splitter{display:flex;flex-direction:row;height:100%;width:100%}.fd-splitter,.fd-splitter__pagination,.fd-splitter__pagination-item-dot,.fd-splitter__pane,.fd-splitter__pane-container,.fd-splitter__resizer,.fd-splitter__resizer-decoration-after,.fd-splitter__resizer-decoration-before,.fd-splitter__resizer-grip-icon{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0}.fd-splitter:after,.fd-splitter:before,.fd-splitter__pagination-item-dot:after,.fd-splitter__pagination-item-dot:before,.fd-splitter__pagination:after,.fd-splitter__pagination:before,.fd-splitter__pane-container:after,.fd-splitter__pane-container:before,.fd-splitter__pane:after,.fd-splitter__pane:before,.fd-splitter__resizer-decoration-after:after,.fd-splitter__resizer-decoration-after:before,.fd-splitter__resizer-decoration-before:after,.fd-splitter__resizer-decoration-before:before,.fd-splitter__resizer-grip-icon:after,.fd-splitter__resizer-grip-icon:before,.fd-splitter__resizer:after,.fd-splitter__resizer:before{box-sizing:inherit;font-size:inherit}.fd-splitter__resizer,.fd-splitter__resizer-decoration-after,.fd-splitter__resizer-decoration-before,.fd-splitter__resizer-grip,.fd-splitter__resizer-grip-icon{-webkit-user-select:none;user-select:none}.fd-splitter__pane,.fd-splitter__pane-container{max-height:100%;max-width:100%}.fd-splitter .fd-splitter__pane-container{-webkit-box-flex:1;-ms-flex-positive:1;display:flex;flex-direction:row;flex-grow:1;overflow:hidden}.fd-splitter .fd-splitter__pane-container--horizontal{flex-direction:column}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer{border-left:none;border-right:none;cursor:row-resize;height:1rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-before{width:100%}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus{z-index:5}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-before{width:100%}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{height:.0625rem;min-width:4rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{background:linear-gradient(90deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-after{background:linear-gradient(270deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-grip{cursor:row-resize;max-height:1.5rem;max-width:2rem;min-width:2rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-top:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical{flex-direction:row}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer{border-bottom:none;border-top:none;cursor:col-resize;flex-direction:column;width:1rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-before{height:100%}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus{z-index:5}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-before{height:100%}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{min-height:4rem;width:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{background:linear-gradient(180deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-after{background:linear-gradient(0deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip{cursor:col-resize;max-height:2rem;max-width:1.5rem;min-width:1.5rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-left:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon[dir=rtl],[dir=rtl] .fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-left:0;margin-right:.0625rem}.fd-splitter__split-pane{-webkit-box-flex:1;-ms-flex-positive:1;display:flex;flex-direction:column;flex-grow:1;overflow:auto;text-overflow:ellipsis}.fd-splitter .fd-splitter__resizer{-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:var(--sapShell_Background);border:var(--fdSplitter_Resizer_Border);display:flex;justify-content:center}.fd-splitter .fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__resizer:focus{outline-color:var(--sapContent_FocusColor);outline-offset:-.125rem;outline-style:var(--sapContent_FocusStyle);outline-width:var(--sapContent_FocusWidth)}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-decoration-before{transition:all .1s ease-in}.fd-splitter .fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer:active .fd-splitter__resizer-decoration-before{background:var(--sapContent_Selected_ForegroundColor)}.fd-splitter .fd-splitter__resizer--translucent{background:var(--sapGroup_ContentBackground)}.fd-splitter .fd-splitter__resizer--transparent{background:transparent}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip{-webkit-box-shadow:none;-ms-flex-negative:0;border-width:var(--fdSplitter_Resizer_Grip_Border_Width);box-shadow:none;flex-shrink:0;outline:none}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip.is-hover,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip:hover{background:var(--sapButton_Lite_Background)}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip.is-active,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip:active{background:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor)}.fd-splitter__pagination{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;-ms-flex-negative:0;align-items:center;background:var(--sapPageFooter_Background);border-top:.0625rem solid var(--sapPageFooter_BorderColor);display:flex;flex-shrink:0;height:2.75rem;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fd-splitter__pagination .fd-splitter__pagination-item{border-width:var(--fdSplitter_Pagination_Item_Border_Width)}.fd-splitter__pagination .fd-splitter__pagination-item.is-active:not(.fd-splitter__pagination-item--active) .fd-splitter__pagination-item-dot,.fd-splitter__pagination .fd-splitter__pagination-item:active:not(.fd-splitter__pagination-item--active) .fd-splitter__pagination-item-dot{background:var(--sapButton_Active_TextColor)}.fd-splitter__pagination .fd-splitter__pagination-item-dot{background:var(--sapContent_NonInteractiveIconColor);border-radius:100%;height:.25rem;width:.25rem}.fd-splitter__pagination .fd-splitter__pagination-item--active .fd-splitter__pagination-item-dot{background:var(--sapSelectedColor);height:.5rem;width:.5rem}.fd-splitter__pagination .fd-splitter__pagination-item--active.is-active,.fd-splitter__pagination .fd-splitter__pagination-item--active:active{background:var(--sapButton_Lite_Hover_Background)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
186
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitterComponent, selector: "fd-splitter", inputs: { defaultPaneId: "defaultPaneId" }, host: { classAttribute: "fd-splitter" }, queries: [{ propertyName: "_panes", predicate: SplitterSplitPaneComponent, descendants: true }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n */.fd-splitter{display:flex;flex-direction:row;height:100%;width:100%}.fd-splitter,.fd-splitter__pagination,.fd-splitter__pagination-item-dot,.fd-splitter__pane,.fd-splitter__pane-container,.fd-splitter__resizer,.fd-splitter__resizer-decoration-after,.fd-splitter__resizer-decoration-before,.fd-splitter__resizer-grip-icon{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0}.fd-splitter:after,.fd-splitter:before,.fd-splitter__pagination-item-dot:after,.fd-splitter__pagination-item-dot:before,.fd-splitter__pagination:after,.fd-splitter__pagination:before,.fd-splitter__pane-container:after,.fd-splitter__pane-container:before,.fd-splitter__pane:after,.fd-splitter__pane:before,.fd-splitter__resizer-decoration-after:after,.fd-splitter__resizer-decoration-after:before,.fd-splitter__resizer-decoration-before:after,.fd-splitter__resizer-decoration-before:before,.fd-splitter__resizer-grip-icon:after,.fd-splitter__resizer-grip-icon:before,.fd-splitter__resizer:after,.fd-splitter__resizer:before{box-sizing:inherit;font-size:inherit}.fd-splitter__resizer,.fd-splitter__resizer-decoration-after,.fd-splitter__resizer-decoration-before,.fd-splitter__resizer-grip,.fd-splitter__resizer-grip-icon{-webkit-user-select:none;user-select:none}.fd-splitter__pane,.fd-splitter__pane-container{max-height:100%;max-width:100%}.fd-splitter .fd-splitter__pane-container{-webkit-box-flex:1;-ms-flex-positive:1;display:flex;flex-direction:row;flex-grow:1;overflow:hidden}.fd-splitter .fd-splitter__pane-container--horizontal{flex-direction:column}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer{border-left:none;border-right:none;cursor:row-resize;height:1rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-before{width:100%}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus{z-index:5}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-before{width:100%}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{height:.0625rem;min-width:4rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{background:linear-gradient(90deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-decoration-after{background:linear-gradient(270deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-grip{cursor:row-resize;max-height:1.5rem;max-width:2rem;min-width:2rem}.fd-splitter .fd-splitter__pane-container--horizontal>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-top:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical{flex-direction:row}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer{border-bottom:none;border-top:none;cursor:col-resize;flex-direction:column;width:1rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-hover .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:hover .fd-splitter__resizer-decoration-before{height:100%}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus{z-index:5}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer.is-focus .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer:focus .fd-splitter__resizer-decoration-before{height:100%}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{min-height:4rem;width:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-before{background:linear-gradient(180deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-decoration-after{background:linear-gradient(0deg,transparent,var(--fdSplitter_Resizer_Decoration_Background))}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip{cursor:col-resize;max-height:2rem;max-width:1.5rem;min-width:1.5rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-left:.0625rem}.fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon[dir=rtl],[dir=rtl] .fd-splitter .fd-splitter__pane-container--vertical>.fd-splitter__resizer .fd-splitter__resizer-grip-icon{margin-left:0;margin-right:.0625rem}.fd-splitter__split-pane{-webkit-box-flex:1;-ms-flex-positive:1;display:flex;flex-direction:column;flex-grow:1;overflow:auto;text-overflow:ellipsis}.fd-splitter .fd-splitter__resizer{-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:var(--sapShell_Background);border:var(--fdSplitter_Resizer_Border);display:flex;justify-content:center}.fd-splitter .fd-splitter__resizer.is-focus,.fd-splitter .fd-splitter__resizer:focus{outline-color:var(--sapContent_FocusColor);outline-offset:-.125rem;outline-style:var(--sapContent_FocusStyle);outline-width:var(--sapContent_FocusWidth)}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-decoration-before{transition:all .1s ease-in}.fd-splitter .fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer.is-active .fd-splitter__resizer-decoration-before,.fd-splitter .fd-splitter__resizer:active .fd-splitter__resizer-decoration-after,.fd-splitter .fd-splitter__resizer:active .fd-splitter__resizer-decoration-before{background:var(--sapContent_Selected_ForegroundColor)}.fd-splitter .fd-splitter__resizer--translucent{background:var(--sapGroup_ContentBackground)}.fd-splitter .fd-splitter__resizer--transparent{background:transparent}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip{-webkit-box-shadow:none;-ms-flex-negative:0;border-width:var(--fdSplitter_Resizer_Grip_Border_Width);box-shadow:none;flex-shrink:0;outline:none}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip.is-hover,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip:hover{background:var(--sapButton_Lite_Background)}.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip.is-active,.fd-splitter .fd-splitter__resizer .fd-splitter__resizer-grip:active{background:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor)}.fd-splitter__pagination{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;-ms-flex-negative:0;align-items:center;background:var(--sapPageFooter_Background);border-top:.0625rem solid var(--sapPageFooter_BorderColor);display:flex;flex-shrink:0;height:2.75rem;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.fd-splitter__pagination .fd-splitter__pagination-item{border-width:var(--fdSplitter_Pagination_Item_Border_Width)}.fd-splitter__pagination .fd-splitter__pagination-item.is-active:not(.fd-splitter__pagination-item--active) .fd-splitter__pagination-item-dot,.fd-splitter__pagination .fd-splitter__pagination-item:active:not(.fd-splitter__pagination-item--active) .fd-splitter__pagination-item-dot{background:var(--sapButton_Active_TextColor)}.fd-splitter__pagination .fd-splitter__pagination-item-dot{background:var(--sapContent_NonInteractiveIconColor);border-radius:100%;height:.25rem;width:.25rem}.fd-splitter__pagination .fd-splitter__pagination-item--active .fd-splitter__pagination-item-dot{background:var(--sapSelectedColor);height:.5rem;width:.5rem}.fd-splitter__pagination .fd-splitter__pagination-item--active.is-active,.fd-splitter__pagination .fd-splitter__pagination-item--active:active{background:var(--sapButton_Lite_Hover_Background)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
198
187
|
}
|
|
199
188
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitterComponent, decorators: [{
|
|
200
189
|
type: Component,
|
|
@@ -204,18 +193,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
204
193
|
args: [SplitterSplitPaneComponent, { descendants: true }]
|
|
205
194
|
}], defaultPaneId: [{
|
|
206
195
|
type: Input
|
|
207
|
-
}], paginationItemAriaLabel: [{
|
|
208
|
-
type: Input
|
|
209
196
|
}] } });
|
|
210
197
|
|
|
211
198
|
class SplitterPaginationComponent {
|
|
212
|
-
/**
|
|
213
|
-
* @hidden
|
|
214
|
-
* @deprecated use i18n capabilities instead
|
|
215
|
-
*/
|
|
216
|
-
get paginationItemAriaLabel() {
|
|
217
|
-
return this._splitter.paginationItemAriaLabel;
|
|
218
|
-
}
|
|
219
199
|
/** @Hidden */
|
|
220
200
|
constructor(_splitter) {
|
|
221
201
|
this._splitter = _splitter;
|
|
@@ -233,14 +213,14 @@ class SplitterPaginationComponent {
|
|
|
233
213
|
this.onPageChange.emit(this.currentPage);
|
|
234
214
|
}
|
|
235
215
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitterPaginationComponent, deps: [{ token: SplitterComponent }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
236
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitterPaginationComponent, selector: "fd-splitter-pagination", inputs: { pages: "pages", currentPage: "currentPage" }, outputs: { onPageChange: "onPageChange" }, host: { properties: { "attr.role": "\"radiogroup\"" }, classAttribute: "fd-splitter__pagination" }, ngImport: i0, template: "<button\n *ngFor=\"let page of pages\"\n fd-button\n fdType=\"transparent\"\n class=\"fd-splitter__pagination-item\"\n [class.fd-splitter__pagination-item--active]=\"page === currentPage\"\n role=\"radio\"\n [attr.aria-label]=\"
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitterPaginationComponent, selector: "fd-splitter-pagination", inputs: { pages: "pages", currentPage: "currentPage" }, outputs: { onPageChange: "onPageChange" }, host: { properties: { "attr.role": "\"radiogroup\"" }, classAttribute: "fd-splitter__pagination" }, ngImport: i0, template: "<button\n *ngFor=\"let page of pages\"\n fd-button\n fdType=\"transparent\"\n class=\"fd-splitter__pagination-item\"\n [class.fd-splitter__pagination-item--active]=\"page === currentPage\"\n role=\"radio\"\n [attr.aria-label]=\"'coreSplitter.paginationItemAriaLabel' | fdTranslate\"\n [attr.aria-checked]=\"page === currentPage\"\n (click)=\"_changePage(page)\"\n (keydown.enter)=\"_changePage(page)\"\n>\n <span class=\"fd-splitter__pagination-item-dot\"></span>\n</button>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "pipe", type: i4$1.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
237
217
|
}
|
|
238
218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitterPaginationComponent, decorators: [{
|
|
239
219
|
type: Component,
|
|
240
220
|
args: [{ selector: 'fd-splitter-pagination', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
241
221
|
class: 'fd-splitter__pagination',
|
|
242
222
|
'[attr.role]': '"radiogroup"'
|
|
243
|
-
}, template: "<button\n *ngFor=\"let page of pages\"\n fd-button\n fdType=\"transparent\"\n class=\"fd-splitter__pagination-item\"\n [class.fd-splitter__pagination-item--active]=\"page === currentPage\"\n role=\"radio\"\n [attr.aria-label]=\"
|
|
223
|
+
}, template: "<button\n *ngFor=\"let page of pages\"\n fd-button\n fdType=\"transparent\"\n class=\"fd-splitter__pagination-item\"\n [class.fd-splitter__pagination-item--active]=\"page === currentPage\"\n role=\"radio\"\n [attr.aria-label]=\"'coreSplitter.paginationItemAriaLabel' | fdTranslate\"\n [attr.aria-checked]=\"page === currentPage\"\n (click)=\"_changePage(page)\"\n (keydown.enter)=\"_changePage(page)\"\n>\n <span class=\"fd-splitter__pagination-item-dot\"></span>\n</button>\n" }]
|
|
244
224
|
}], ctorParameters: function () { return [{ type: SplitterComponent }]; }, propDecorators: { pages: [{
|
|
245
225
|
type: Input
|
|
246
226
|
}], currentPage: [{
|