@agorapulse/ui-components 15.1.29 → 16.0.0-rc.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/add-comment/add-comment.component.d.ts +3 -3
- package/agorapulse-ui-components-16.0.0-rc.0.tgz +0 -0
- package/avatar/avatar.component.d.ts +1 -1
- package/button/button.component.d.ts +2 -2
- package/checkbox/checkbox.component.d.ts +4 -4
- package/confirm-modal/confirm-modal.component.d.ts +2 -2
- package/datepicker/datepicker.component.d.ts +7 -7
- package/directives/base-button.directive.d.ts +2 -2
- package/directives/default-image.directive.d.ts +1 -1
- package/directives/ellipsis.directive.d.ts +1 -1
- package/directives/equal-validator.directive.d.ts +1 -1
- package/directives/frozen-gif.directive.d.ts +2 -2
- package/directives/multi-style-text.directive.d.ts +2 -2
- package/directives/truncate-tooltip.directive.d.ts +1 -1
- package/dots-stepper/dots-stepper.component.d.ts +6 -6
- package/esm2022/add-comment/add-comment.component.mjs +68 -0
- package/esm2022/avatar/avatar.component.mjs +209 -0
- package/esm2022/button/button.component.mjs +109 -0
- package/esm2022/checkbox/checkbox.component.mjs +169 -0
- package/esm2022/confirm-modal/confirm-modal.component.mjs +61 -0
- package/esm2022/datepicker/datepicker.component.mjs +271 -0
- package/esm2022/directives/autosize-textarea.directive.mjs +45 -0
- package/esm2022/directives/base-button.directive.mjs +47 -0
- package/esm2022/directives/default-image.directive.mjs +37 -0
- package/esm2022/directives/ellipsis.directive.mjs +90 -0
- package/esm2022/directives/equal-validator.directive.mjs +73 -0
- package/esm2022/directives/frozen-gif.directive.mjs +125 -0
- package/esm2022/directives/multi-style-text.directive.mjs +61 -0
- package/esm2022/directives/truncate-tooltip.directive.mjs +43 -0
- package/esm2022/dots-stepper/dots-stepper.component.mjs +43 -0
- package/esm2022/icon-button/icon-button.component.mjs +118 -0
- package/esm2022/index.mjs +42 -0
- package/esm2022/infobox/infobox.component.mjs +65 -0
- package/esm2022/labels/label-list.component.mjs +106 -0
- package/esm2022/labels/label.component.mjs +64 -0
- package/esm2022/labels-selector/labels-selector.component.mjs +107 -0
- package/esm2022/media-display-overlay/media-display-overlay-dialog.component.mjs +94 -0
- package/esm2022/modal/modal.component.mjs +119 -0
- package/{esm2020 → esm2022}/neo-datepicker/day-detail.model.mjs +1 -1
- package/esm2022/neo-datepicker/day-disabled.pipe.mjs +21 -0
- package/esm2022/neo-datepicker/neo-datepicker.component.mjs +243 -0
- package/esm2022/notification/notification.component.mjs +15 -0
- package/esm2022/paginator/paginator-button/paginator-button.component.mjs +51 -0
- package/esm2022/paginator/paginator.component.mjs +126 -0
- package/esm2022/password-input/password-input.component.mjs +77 -0
- package/esm2022/popmenu/options.mjs +17 -0
- package/esm2022/popmenu/popmenu-options.interface.mjs +2 -0
- package/esm2022/popmenu/popmenu-options.service.mjs +7 -0
- package/esm2022/popmenu/popmenu.component.mjs +384 -0
- package/esm2022/popmenu/popmenu.directive.mjs +292 -0
- package/esm2022/popmenu/popmenu.module.mjs +29 -0
- package/esm2022/radio/radio-control.registry.mjs +102 -0
- package/esm2022/radio/radio.component.mjs +218 -0
- package/esm2022/slide-toggle/slide-toggle.component.mjs +63 -0
- package/esm2022/snackbar/snackbar.component.mjs +27 -0
- package/esm2022/snackbars-thread/component/snackbars-thread.component.mjs +75 -0
- package/esm2022/snackbars-thread/model/snackbars-thread.model.mjs +54 -0
- package/{esm2020 → esm2022}/snackbars-thread/public_api.mjs +2 -2
- package/esm2022/snackbars-thread/service/snackbars-thread.service.mjs +45 -0
- package/esm2022/snackbars-thread/utils/const/snackbars-thread.const.mjs +13 -0
- package/esm2022/social-button/social-button.component.mjs +143 -0
- package/esm2022/split-button/split-button.component.mjs +126 -0
- package/esm2022/src/lib/agorapulse-ui-components.module.mjs +213 -0
- package/esm2022/stepper/stepper.component.mjs +38 -0
- package/esm2022/text-measurement/text-measurement.service.mjs +29 -0
- package/esm2022/toggle/toggle.component.mjs +203 -0
- package/esm2022/tooltip/tooltip.directive.mjs +397 -0
- package/esm2022/tooltip/tooltip.service.mjs +29 -0
- package/fesm2022/agorapulse-ui-components-add-comment.mjs +75 -0
- package/fesm2022/agorapulse-ui-components-add-comment.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-avatar.mjs +216 -0
- package/fesm2022/agorapulse-ui-components-avatar.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-button.mjs +116 -0
- package/fesm2022/agorapulse-ui-components-button.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-checkbox.mjs +176 -0
- package/fesm2022/agorapulse-ui-components-checkbox.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-confirm-modal.mjs +68 -0
- package/fesm2022/agorapulse-ui-components-confirm-modal.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-datepicker.mjs +278 -0
- package/fesm2022/agorapulse-ui-components-datepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/agorapulse-ui-components-directives.mjs +104 -72
- package/fesm2022/agorapulse-ui-components-directives.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-dots-stepper.mjs +50 -0
- package/fesm2022/agorapulse-ui-components-dots-stepper.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-icon-button.mjs +125 -0
- package/fesm2022/agorapulse-ui-components-icon-button.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-infobox.mjs +69 -0
- package/fesm2022/agorapulse-ui-components-infobox.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs +114 -0
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-labels.mjs +173 -0
- package/fesm2022/agorapulse-ui-components-labels.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs +101 -0
- package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-modal.mjs +126 -0
- package/fesm2022/agorapulse-ui-components-modal.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs +268 -0
- package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-notification.mjs +22 -0
- package/fesm2022/agorapulse-ui-components-notification.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-paginator.mjs +181 -0
- package/fesm2022/agorapulse-ui-components-paginator.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-password-input.mjs +84 -0
- package/fesm2022/agorapulse-ui-components-password-input.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/agorapulse-ui-components-popmenu.mjs +112 -83
- package/fesm2022/agorapulse-ui-components-popmenu.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-radio.mjs +322 -0
- package/fesm2022/agorapulse-ui-components-radio.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-slide-toggle.mjs +70 -0
- package/fesm2022/agorapulse-ui-components-slide-toggle.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-snackbar.mjs +34 -0
- package/fesm2022/agorapulse-ui-components-snackbar.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs +190 -0
- package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-social-button.mjs +150 -0
- package/fesm2022/agorapulse-ui-components-social-button.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-split-button.mjs +133 -0
- package/fesm2022/agorapulse-ui-components-split-button.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-stepper.mjs +45 -0
- package/fesm2022/agorapulse-ui-components-stepper.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/agorapulse-ui-components-text-measurement.mjs +8 -7
- package/fesm2022/agorapulse-ui-components-text-measurement.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-toggle.mjs +210 -0
- package/fesm2022/agorapulse-ui-components-toggle.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/agorapulse-ui-components-tooltip.mjs +114 -75
- package/fesm2022/agorapulse-ui-components-tooltip.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/agorapulse-ui-components.mjs +100 -103
- package/fesm2022/agorapulse-ui-components.mjs.map +1 -0
- package/icon-button/icon-button.component.d.ts +3 -3
- package/infobox/infobox.component.d.ts +2 -2
- package/labels/label-list.component.d.ts +2 -2
- package/labels/label.component.d.ts +3 -3
- package/labels-selector/labels-selector.component.d.ts +2 -2
- package/media-display-overlay/media-display-overlay-dialog.component.d.ts +1 -1
- package/modal/modal.component.d.ts +12 -12
- package/neo-datepicker/day-detail.model.d.ts +2 -2
- package/neo-datepicker/day-disabled.pipe.d.ts +1 -1
- package/neo-datepicker/neo-datepicker.component.d.ts +10 -7
- package/notification/notification.component.d.ts +1 -1
- package/package.json +107 -172
- package/paginator/paginator-button/paginator-button.component.d.ts +1 -1
- package/paginator/paginator.component.d.ts +1 -1
- package/password-input/password-input.component.d.ts +4 -4
- package/popmenu/popmenu-options.interface.d.ts +24 -19
- package/popmenu/popmenu.component.d.ts +10 -10
- package/popmenu/popmenu.directive.d.ts +23 -23
- package/radio/radio-control.registry.d.ts +2 -2
- package/radio/radio.component.d.ts +2 -2
- package/slide-toggle/slide-toggle.component.d.ts +1 -1
- package/snackbar/snackbar.component.d.ts +1 -1
- package/snackbars-thread/component/snackbars-thread.component.d.ts +2 -2
- package/snackbars-thread/model/snackbars-thread.model.d.ts +1 -1
- package/snackbars-thread/public_api.d.ts +1 -1
- package/snackbars-thread/service/snackbars-thread.service.d.ts +4 -4
- package/social-button/social-button.component.d.ts +3 -3
- package/split-button/split-button.component.d.ts +3 -3
- package/stepper/stepper.component.d.ts +2 -2
- package/toggle/toggle.component.d.ts +3 -3
- package/tooltip/tooltip.directive.d.ts +5 -5
- package/agorapulse-ui-components-15.1.29.tgz +0 -0
- package/esm2020/add-comment/add-comment.component.mjs +0 -69
- package/esm2020/avatar/avatar.component.mjs +0 -211
- package/esm2020/button/button.component.mjs +0 -104
- package/esm2020/checkbox/checkbox.component.mjs +0 -163
- package/esm2020/confirm-modal/confirm-modal.component.mjs +0 -60
- package/esm2020/datepicker/datepicker.component.mjs +0 -259
- package/esm2020/directives/autosize-textarea.directive.mjs +0 -44
- package/esm2020/directives/base-button.directive.mjs +0 -47
- package/esm2020/directives/default-image.directive.mjs +0 -32
- package/esm2020/directives/ellipsis.directive.mjs +0 -86
- package/esm2020/directives/equal-validator.directive.mjs +0 -66
- package/esm2020/directives/frozen-gif.directive.mjs +0 -116
- package/esm2020/directives/multi-style-text.directive.mjs +0 -58
- package/esm2020/directives/truncate-tooltip.directive.mjs +0 -40
- package/esm2020/dots-stepper/dots-stepper.component.mjs +0 -43
- package/esm2020/icon-button/icon-button.component.mjs +0 -112
- package/esm2020/index.mjs +0 -42
- package/esm2020/infobox/infobox.component.mjs +0 -70
- package/esm2020/labels/label-list.component.mjs +0 -101
- package/esm2020/labels/label.component.mjs +0 -58
- package/esm2020/labels-selector/labels-selector.component.mjs +0 -101
- package/esm2020/media-display-overlay/media-display-overlay-dialog.component.mjs +0 -94
- package/esm2020/modal/modal.component.mjs +0 -109
- package/esm2020/neo-datepicker/day-disabled.pipe.mjs +0 -21
- package/esm2020/neo-datepicker/neo-datepicker.component.mjs +0 -228
- package/esm2020/notification/notification.component.mjs +0 -17
- package/esm2020/paginator/paginator-button/paginator-button.component.mjs +0 -51
- package/esm2020/paginator/paginator.component.mjs +0 -124
- package/esm2020/password-input/password-input.component.mjs +0 -75
- package/esm2020/popmenu/options.mjs +0 -17
- package/esm2020/popmenu/popmenu-options.interface.mjs +0 -2
- package/esm2020/popmenu/popmenu-options.service.mjs +0 -7
- package/esm2020/popmenu/popmenu.component.mjs +0 -373
- package/esm2020/popmenu/popmenu.directive.mjs +0 -268
- package/esm2020/popmenu/popmenu.module.mjs +0 -35
- package/esm2020/radio/radio-control.registry.mjs +0 -104
- package/esm2020/radio/radio.component.mjs +0 -199
- package/esm2020/slide-toggle/slide-toggle.component.mjs +0 -65
- package/esm2020/snackbar/snackbar.component.mjs +0 -26
- package/esm2020/snackbars-thread/component/snackbars-thread.component.mjs +0 -79
- package/esm2020/snackbars-thread/model/snackbars-thread.model.mjs +0 -52
- package/esm2020/snackbars-thread/service/snackbars-thread.service.mjs +0 -41
- package/esm2020/snackbars-thread/utils/const/snackbars-thread.const.mjs +0 -13
- package/esm2020/social-button/social-button.component.mjs +0 -137
- package/esm2020/split-button/split-button.component.mjs +0 -112
- package/esm2020/src/lib/agorapulse-ui-components.module.mjs +0 -213
- package/esm2020/stepper/stepper.component.mjs +0 -36
- package/esm2020/text-measurement/text-measurement.service.mjs +0 -28
- package/esm2020/toggle/toggle.component.mjs +0 -190
- package/esm2020/tooltip/tooltip.directive.mjs +0 -358
- package/esm2020/tooltip/tooltip.service.mjs +0 -29
- package/fesm2015/agorapulse-ui-components-add-comment.mjs +0 -76
- package/fesm2015/agorapulse-ui-components-add-comment.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-avatar.mjs +0 -218
- package/fesm2015/agorapulse-ui-components-avatar.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-button.mjs +0 -111
- package/fesm2015/agorapulse-ui-components-button.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-checkbox.mjs +0 -170
- package/fesm2015/agorapulse-ui-components-checkbox.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-confirm-modal.mjs +0 -67
- package/fesm2015/agorapulse-ui-components-confirm-modal.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-datepicker.mjs +0 -269
- package/fesm2015/agorapulse-ui-components-datepicker.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-directives.mjs +0 -483
- package/fesm2015/agorapulse-ui-components-directives.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-dots-stepper.mjs +0 -50
- package/fesm2015/agorapulse-ui-components-dots-stepper.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-icon-button.mjs +0 -119
- package/fesm2015/agorapulse-ui-components-icon-button.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-infobox.mjs +0 -74
- package/fesm2015/agorapulse-ui-components-infobox.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-labels-selector.mjs +0 -109
- package/fesm2015/agorapulse-ui-components-labels-selector.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-labels.mjs +0 -162
- package/fesm2015/agorapulse-ui-components-labels.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-media-display-overlay.mjs +0 -103
- package/fesm2015/agorapulse-ui-components-media-display-overlay.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-modal.mjs +0 -116
- package/fesm2015/agorapulse-ui-components-modal.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-neo-datepicker.mjs +0 -253
- package/fesm2015/agorapulse-ui-components-neo-datepicker.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-notification.mjs +0 -24
- package/fesm2015/agorapulse-ui-components-notification.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-paginator.mjs +0 -179
- package/fesm2015/agorapulse-ui-components-paginator.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-password-input.mjs +0 -82
- package/fesm2015/agorapulse-ui-components-password-input.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-popmenu.mjs +0 -698
- package/fesm2015/agorapulse-ui-components-popmenu.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-radio.mjs +0 -306
- package/fesm2015/agorapulse-ui-components-radio.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-slide-toggle.mjs +0 -72
- package/fesm2015/agorapulse-ui-components-slide-toggle.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-snackbar.mjs +0 -35
- package/fesm2015/agorapulse-ui-components-snackbar.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-snackbars-thread.mjs +0 -188
- package/fesm2015/agorapulse-ui-components-snackbars-thread.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-social-button.mjs +0 -144
- package/fesm2015/agorapulse-ui-components-social-button.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-split-button.mjs +0 -119
- package/fesm2015/agorapulse-ui-components-split-button.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-stepper.mjs +0 -44
- package/fesm2015/agorapulse-ui-components-stepper.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-text-measurement.mjs +0 -35
- package/fesm2015/agorapulse-ui-components-text-measurement.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-toggle.mjs +0 -197
- package/fesm2015/agorapulse-ui-components-toggle.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components-tooltip.mjs +0 -391
- package/fesm2015/agorapulse-ui-components-tooltip.mjs.map +0 -1
- package/fesm2015/agorapulse-ui-components.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-add-comment.mjs +0 -76
- package/fesm2020/agorapulse-ui-components-add-comment.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-avatar.mjs +0 -218
- package/fesm2020/agorapulse-ui-components-avatar.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-button.mjs +0 -111
- package/fesm2020/agorapulse-ui-components-button.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-checkbox.mjs +0 -170
- package/fesm2020/agorapulse-ui-components-checkbox.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-confirm-modal.mjs +0 -67
- package/fesm2020/agorapulse-ui-components-confirm-modal.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-datepicker.mjs +0 -266
- package/fesm2020/agorapulse-ui-components-datepicker.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-directives.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-dots-stepper.mjs +0 -50
- package/fesm2020/agorapulse-ui-components-dots-stepper.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-icon-button.mjs +0 -119
- package/fesm2020/agorapulse-ui-components-icon-button.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-infobox.mjs +0 -74
- package/fesm2020/agorapulse-ui-components-infobox.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-labels-selector.mjs +0 -108
- package/fesm2020/agorapulse-ui-components-labels-selector.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-labels.mjs +0 -162
- package/fesm2020/agorapulse-ui-components-labels.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-media-display-overlay.mjs +0 -101
- package/fesm2020/agorapulse-ui-components-media-display-overlay.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-modal.mjs +0 -116
- package/fesm2020/agorapulse-ui-components-modal.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-neo-datepicker.mjs +0 -253
- package/fesm2020/agorapulse-ui-components-neo-datepicker.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-notification.mjs +0 -24
- package/fesm2020/agorapulse-ui-components-notification.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-paginator.mjs +0 -179
- package/fesm2020/agorapulse-ui-components-paginator.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-password-input.mjs +0 -82
- package/fesm2020/agorapulse-ui-components-password-input.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-popmenu.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-radio.mjs +0 -305
- package/fesm2020/agorapulse-ui-components-radio.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-slide-toggle.mjs +0 -72
- package/fesm2020/agorapulse-ui-components-slide-toggle.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-snackbar.mjs +0 -33
- package/fesm2020/agorapulse-ui-components-snackbar.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-snackbars-thread.mjs +0 -188
- package/fesm2020/agorapulse-ui-components-snackbars-thread.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-social-button.mjs +0 -144
- package/fesm2020/agorapulse-ui-components-social-button.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-split-button.mjs +0 -119
- package/fesm2020/agorapulse-ui-components-split-button.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-stepper.mjs +0 -43
- package/fesm2020/agorapulse-ui-components-stepper.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-text-measurement.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-toggle.mjs +0 -197
- package/fesm2020/agorapulse-ui-components-toggle.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components-tooltip.mjs.map +0 -1
- package/fesm2020/agorapulse-ui-components.mjs +0 -252
- package/fesm2020/agorapulse-ui-components.mjs.map +0 -1
- /package/{esm2020 → esm2022}/add-comment/agorapulse-ui-components-add-comment.mjs +0 -0
- /package/{esm2020 → esm2022}/add-comment/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/agorapulse-ui-components.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/agorapulse-ui-components-avatar.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/agorapulse-ui-components-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/agorapulse-ui-components-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/confirm-modal/agorapulse-ui-components-confirm-modal.mjs +0 -0
- /package/{esm2020 → esm2022}/confirm-modal/confirm-modal-texts.model.mjs +0 -0
- /package/{esm2020 → esm2022}/confirm-modal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/agorapulse-ui-components-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/agorapulse-ui-components-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/dots-stepper/agorapulse-ui-components-dots-stepper.mjs +0 -0
- /package/{esm2020 → esm2022}/dots-stepper/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/icon-button/agorapulse-ui-components-icon-button.mjs +0 -0
- /package/{esm2020 → esm2022}/icon-button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/infobox/agorapulse-ui-components-infobox.mjs +0 -0
- /package/{esm2020 → esm2022}/infobox/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/labels/agorapulse-ui-components-labels.mjs +0 -0
- /package/{esm2020 → esm2022}/labels/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/labels-selector/agorapulse-ui-components-labels-selector.mjs +0 -0
- /package/{esm2020 → esm2022}/labels-selector/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/media-display-overlay/agorapulse-ui-components-media-display-overlay.mjs +0 -0
- /package/{esm2020 → esm2022}/media-display-overlay/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/agorapulse-ui-components-modal.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/neo-datepicker/agorapulse-ui-components-neo-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/neo-datepicker/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/agorapulse-ui-components-notification.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/agorapulse-ui-components-paginator.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/password-input/agorapulse-ui-components-password-input.mjs +0 -0
- /package/{esm2020 → esm2022}/password-input/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/popmenu/agorapulse-ui-components-popmenu.mjs +0 -0
- /package/{esm2020 → esm2022}/popmenu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/agorapulse-ui-components-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/slide-toggle/agorapulse-ui-components-slide-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/slide-toggle/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbar/agorapulse-ui-components-snackbar.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbar/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/snackbars-thread/agorapulse-ui-components-snackbars-thread.mjs +0 -0
- /package/{esm2020 → esm2022}/social-button/agorapulse-ui-components-social-button.mjs +0 -0
- /package/{esm2020 → esm2022}/social-button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/split-button/agorapulse-ui-components-split-button.mjs +0 -0
- /package/{esm2020 → esm2022}/split-button/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/agorapulse-ui-components-stepper.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/step.model.mjs +0 -0
- /package/{esm2020 → esm2022}/text-measurement/agorapulse-ui-components-text-measurement.mjs +0 -0
- /package/{esm2020 → esm2022}/text-measurement/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/agorapulse-ui-components-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/agorapulse-ui-components-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public_api.mjs +0 -0
|
@@ -1,698 +0,0 @@
|
|
|
1
|
-
import { NgStyle, NgTemplateOutlet, NgIf } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, HostBinding, InjectionToken, Directive, Optional, Inject, HostListener, NgModule } from '@angular/core';
|
|
4
|
-
import * as i1 from '@angular/material/legacy-menu';
|
|
5
|
-
import { MatLegacyMenuTrigger, MatLegacyMenuModule } from '@angular/material/legacy-menu';
|
|
6
|
-
import { merge } from 'rxjs';
|
|
7
|
-
import { ButtonComponent } from '@agorapulse/ui-components/button';
|
|
8
|
-
import { __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
|
|
9
|
-
|
|
10
|
-
class PopmenuComponent {
|
|
11
|
-
get show() {
|
|
12
|
-
return this._show;
|
|
13
|
-
}
|
|
14
|
-
set show(value) {
|
|
15
|
-
if (value) {
|
|
16
|
-
this.setPosition();
|
|
17
|
-
}
|
|
18
|
-
this._show = value;
|
|
19
|
-
}
|
|
20
|
-
set close(value) {
|
|
21
|
-
if (value) {
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
this.trigger.closeMenu();
|
|
24
|
-
}, 100);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
get arrow() {
|
|
28
|
-
return this.data.options.arrow && this.border;
|
|
29
|
-
}
|
|
30
|
-
get arrowOffset() {
|
|
31
|
-
return this.data.options.arrowOffset;
|
|
32
|
-
}
|
|
33
|
-
get arrowPosition() {
|
|
34
|
-
return this.data.options.arrowPosition;
|
|
35
|
-
}
|
|
36
|
-
get autoPlacement() {
|
|
37
|
-
return this.data.options.autoPlacement;
|
|
38
|
-
}
|
|
39
|
-
get background() {
|
|
40
|
-
return this.data.options.apPopmenuBackground;
|
|
41
|
-
}
|
|
42
|
-
get border() {
|
|
43
|
-
return this.data.options.apPopmenuBorder;
|
|
44
|
-
}
|
|
45
|
-
get element() {
|
|
46
|
-
return this.data.element;
|
|
47
|
-
}
|
|
48
|
-
get elementPosition() {
|
|
49
|
-
return this.data.elementPosition;
|
|
50
|
-
}
|
|
51
|
-
get hasBackdrop() {
|
|
52
|
-
return this.data.options.hasBackdrop;
|
|
53
|
-
}
|
|
54
|
-
get backdropClass() {
|
|
55
|
-
return this.data.options.backdropClass;
|
|
56
|
-
}
|
|
57
|
-
get isThemeLight() {
|
|
58
|
-
return this.options['theme'] === 'light';
|
|
59
|
-
}
|
|
60
|
-
get options() {
|
|
61
|
-
return this.data.options;
|
|
62
|
-
}
|
|
63
|
-
get panelClass() {
|
|
64
|
-
return this.data.options.panelClass;
|
|
65
|
-
}
|
|
66
|
-
get placement() {
|
|
67
|
-
return this.data.options.placement;
|
|
68
|
-
}
|
|
69
|
-
get rounded() {
|
|
70
|
-
return this.data.options.rounded;
|
|
71
|
-
}
|
|
72
|
-
get shadow() {
|
|
73
|
-
return this.data.options.shadow;
|
|
74
|
-
}
|
|
75
|
-
get tooltipOffset() {
|
|
76
|
-
return Number(this.data.options.offset);
|
|
77
|
-
}
|
|
78
|
-
get offsetSkidding() {
|
|
79
|
-
return Number(this.data.options.offsets.skidding) || 0;
|
|
80
|
-
}
|
|
81
|
-
get offsetDistance() {
|
|
82
|
-
return Number(this.data.options.offsets.distance || 0);
|
|
83
|
-
}
|
|
84
|
-
get value() {
|
|
85
|
-
return this.data.value;
|
|
86
|
-
}
|
|
87
|
-
constructor(renderer, elementRef, changeDetectorRef) {
|
|
88
|
-
this.renderer = renderer;
|
|
89
|
-
this.elementRef = elementRef;
|
|
90
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
91
|
-
this.events = new EventEmitter();
|
|
92
|
-
this.arrowTopPosition = '50%';
|
|
93
|
-
this.arrowBottomPosition = '50%';
|
|
94
|
-
this.menuClosed = new EventEmitter();
|
|
95
|
-
this.menuOpened = new EventEmitter();
|
|
96
|
-
this.viewInit = false;
|
|
97
|
-
this._show = false;
|
|
98
|
-
}
|
|
99
|
-
ngAfterViewInit() {
|
|
100
|
-
this.viewInit = true;
|
|
101
|
-
merge(this.trigger.menuOpened, this.trigger.menuClosed).subscribe(() => {
|
|
102
|
-
this.menuOpen = this.trigger.menuOpen;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
onMenuClosed() {
|
|
106
|
-
// we set a timeout to wait for the menu to be really closed
|
|
107
|
-
setTimeout(() => this.menuClosed.emit(), 200);
|
|
108
|
-
}
|
|
109
|
-
onMenuOpened() {
|
|
110
|
-
// we set a timeout to wait for the menu to be really opened
|
|
111
|
-
setTimeout(() => this.menuOpened.emit(), 100);
|
|
112
|
-
}
|
|
113
|
-
setHostStyle(placement) {
|
|
114
|
-
const isSvg = this.element instanceof SVGElement;
|
|
115
|
-
const tooltip = this.elementRef.nativeElement;
|
|
116
|
-
const isCustomPosition = !this.elementPosition.x;
|
|
117
|
-
let elementHeight = !this.element.offsetHeight
|
|
118
|
-
? this.element.getBoundingClientRect().height
|
|
119
|
-
: this.element.offsetHeight;
|
|
120
|
-
let elementWidth = !this.element.offsetWidth
|
|
121
|
-
? this.element.getBoundingClientRect().width
|
|
122
|
-
: this.element.offsetWidth;
|
|
123
|
-
const tooltipHeight = tooltip.clientHeight;
|
|
124
|
-
const tooltipWidth = tooltip.clientWidth;
|
|
125
|
-
const scrollY = window.pageYOffset;
|
|
126
|
-
let topStyle;
|
|
127
|
-
let leftStyle;
|
|
128
|
-
if (isCustomPosition) {
|
|
129
|
-
if (placement && placement.split(' ')[0] === 'top') {
|
|
130
|
-
this.below = false;
|
|
131
|
-
}
|
|
132
|
-
if (placement && placement.split(' ')[0] === 'bottom') {
|
|
133
|
-
this.below = true;
|
|
134
|
-
}
|
|
135
|
-
elementHeight = 0;
|
|
136
|
-
elementWidth = 0;
|
|
137
|
-
topStyle = this.elementPosition.top;
|
|
138
|
-
leftStyle = this.elementPosition.left;
|
|
139
|
-
if (this.arrow && this.arrowPosition) {
|
|
140
|
-
this.arrowClass = 'arrow-' + this.arrowPosition;
|
|
141
|
-
switch (this.arrowPosition) {
|
|
142
|
-
case 'left':
|
|
143
|
-
case 'right':
|
|
144
|
-
this.arrowLeftPosition = undefined;
|
|
145
|
-
this.arrowRightPosition = undefined;
|
|
146
|
-
this.arrowBottomPosition = 'auto';
|
|
147
|
-
this.arrowTopPosition = this.arrowOffset + '%';
|
|
148
|
-
break;
|
|
149
|
-
case 'top':
|
|
150
|
-
case 'bottom':
|
|
151
|
-
this.arrowLeftPosition = this.arrowOffset + '%';
|
|
152
|
-
this.arrowRightPosition = 'auto';
|
|
153
|
-
this.arrowBottomPosition = undefined;
|
|
154
|
-
this.arrowTopPosition = undefined;
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
if (placement.split(' ')[0] === 'top') {
|
|
161
|
-
this.below = false;
|
|
162
|
-
topStyle = this.elementPosition.top - this.tooltipOffset - this.offsetDistance;
|
|
163
|
-
topStyle += 8;
|
|
164
|
-
}
|
|
165
|
-
if (placement.split(' ')[0] === 'bottom') {
|
|
166
|
-
this.below = true;
|
|
167
|
-
topStyle = this.elementPosition.bottom + this.tooltipOffset + this.offsetDistance;
|
|
168
|
-
// We remove 8px due to the margin-top we put to display the arrow.
|
|
169
|
-
topStyle -= 8;
|
|
170
|
-
}
|
|
171
|
-
if (placement.split(' ')[0] === 'left') {
|
|
172
|
-
leftStyle = this.elementPosition.left - tooltipWidth - this.tooltipOffset - this.offsetDistance;
|
|
173
|
-
}
|
|
174
|
-
if (placement.split(' ')[0] === 'right') {
|
|
175
|
-
leftStyle = this.elementPosition.left + elementWidth + this.tooltipOffset + this.offsetDistance;
|
|
176
|
-
}
|
|
177
|
-
if (placement.split(' ')[0] === 'left' || placement.split(' ')[0] === 'right') {
|
|
178
|
-
topStyle = this.elementPosition.top + scrollY + elementHeight / 2 - tooltip.clientHeight / 2;
|
|
179
|
-
}
|
|
180
|
-
if (placement === 'right bottom') {
|
|
181
|
-
this.below = true;
|
|
182
|
-
this.before = false;
|
|
183
|
-
this.arrowClass = 'arrow-left';
|
|
184
|
-
topStyle = this.elementPosition.top + scrollY + this.offsetSkidding;
|
|
185
|
-
this.arrowRightPosition = undefined;
|
|
186
|
-
this.arrowLeftPosition = undefined;
|
|
187
|
-
this.arrowBottomPosition = 'auto';
|
|
188
|
-
this.arrowTopPosition = this.arrowOffset ? this.arrowOffset + '%' : elementHeight / 2 + 'px';
|
|
189
|
-
}
|
|
190
|
-
if (placement === 'left bottom') {
|
|
191
|
-
this.below = true;
|
|
192
|
-
this.before = true;
|
|
193
|
-
this.arrowClass = 'arrow-right';
|
|
194
|
-
topStyle = this.elementPosition.top + scrollY + this.offsetSkidding;
|
|
195
|
-
this.arrowLeftPosition = undefined;
|
|
196
|
-
this.arrowRightPosition = undefined;
|
|
197
|
-
this.arrowBottomPosition = 'auto';
|
|
198
|
-
this.arrowTopPosition = this.arrowOffset ? this.arrowOffset + '%' : elementHeight / 2 + 'px';
|
|
199
|
-
}
|
|
200
|
-
if (placement === 'right top') {
|
|
201
|
-
this.below = false;
|
|
202
|
-
this.before = false;
|
|
203
|
-
this.arrowClass = 'arrow-left';
|
|
204
|
-
topStyle = this.elementPosition.top + elementHeight + scrollY + this.offsetSkidding;
|
|
205
|
-
this.arrowLeftPosition = undefined;
|
|
206
|
-
this.arrowRightPosition = undefined;
|
|
207
|
-
this.arrowTopPosition = 'auto';
|
|
208
|
-
this.arrowBottomPosition = this.arrowOffset
|
|
209
|
-
? this.arrowOffset + '%'
|
|
210
|
-
: -(tooltip.clientHeight - elementHeight / 2) + 'px';
|
|
211
|
-
}
|
|
212
|
-
if (placement === 'left top') {
|
|
213
|
-
this.below = false;
|
|
214
|
-
this.before = true;
|
|
215
|
-
this.arrowClass = 'arrow-right';
|
|
216
|
-
topStyle = this.elementPosition.top + elementHeight + scrollY + this.offsetSkidding;
|
|
217
|
-
this.arrowRightPosition = undefined;
|
|
218
|
-
this.arrowLeftPosition = undefined;
|
|
219
|
-
this.arrowTopPosition = 'auto';
|
|
220
|
-
this.arrowBottomPosition = this.arrowOffset
|
|
221
|
-
? this.arrowOffset + '%'
|
|
222
|
-
: -(tooltip.clientHeight - elementHeight / 2) + 'px';
|
|
223
|
-
}
|
|
224
|
-
if (placement === 'bottom right') {
|
|
225
|
-
this.before = false;
|
|
226
|
-
this.below = true;
|
|
227
|
-
this.arrowClass = 'arrow-top';
|
|
228
|
-
leftStyle = this.elementPosition.left + this.offsetSkidding;
|
|
229
|
-
this.arrowTopPosition = undefined;
|
|
230
|
-
this.arrowRightPosition = 'auto';
|
|
231
|
-
this.arrowLeftPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 4.5 + 'px';
|
|
232
|
-
}
|
|
233
|
-
if (placement === 'bottom left') {
|
|
234
|
-
this.before = true;
|
|
235
|
-
this.below = true;
|
|
236
|
-
this.arrowClass = 'arrow-top';
|
|
237
|
-
leftStyle = this.elementPosition.right + this.offsetSkidding;
|
|
238
|
-
this.arrowTopPosition = undefined;
|
|
239
|
-
this.arrowLeftPosition = 'auto';
|
|
240
|
-
this.arrowRightPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 2.5 + 'px';
|
|
241
|
-
}
|
|
242
|
-
if (placement === 'top right') {
|
|
243
|
-
this.before = false;
|
|
244
|
-
this.below = false;
|
|
245
|
-
this.arrowClass = 'arrow-bottom';
|
|
246
|
-
leftStyle = this.elementPosition.left + this.offsetSkidding;
|
|
247
|
-
this.arrowBottomPosition = undefined;
|
|
248
|
-
this.arrowTopPosition = undefined;
|
|
249
|
-
this.arrowRightPosition = 'auto';
|
|
250
|
-
this.arrowLeftPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 4.5 + 'px';
|
|
251
|
-
}
|
|
252
|
-
if (placement === 'top left') {
|
|
253
|
-
this.before = true;
|
|
254
|
-
this.below = false;
|
|
255
|
-
this.arrowClass = 'arrow-bottom';
|
|
256
|
-
leftStyle = this.elementPosition.right + this.offsetSkidding;
|
|
257
|
-
this.arrowBottomPosition = undefined;
|
|
258
|
-
this.arrowTopPosition = undefined;
|
|
259
|
-
this.arrowLeftPosition = 'auto';
|
|
260
|
-
this.arrowRightPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 2.5 + 'px';
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
// This line is PURE MAGIC and super important. It allows to force mat-menu
|
|
264
|
-
// to reposition the menu with the new xPosition / yPosition.
|
|
265
|
-
this.changeDetectorRef.detectChanges();
|
|
266
|
-
const topEdge = topStyle;
|
|
267
|
-
const bottomEdge = topStyle + tooltipHeight;
|
|
268
|
-
const leftEdge = leftStyle;
|
|
269
|
-
const rightEdge = leftStyle + tooltipWidth;
|
|
270
|
-
if ((topEdge < 0 ||
|
|
271
|
-
bottomEdge > document.body.clientHeight ||
|
|
272
|
-
leftEdge < 0 ||
|
|
273
|
-
rightEdge > document.body.clientWidth) &&
|
|
274
|
-
this.autoPlacement) {
|
|
275
|
-
return false;
|
|
276
|
-
}
|
|
277
|
-
this.hostStyleTop = topStyle + 'px';
|
|
278
|
-
this.hostStyleLeft = leftStyle + 'px';
|
|
279
|
-
return true;
|
|
280
|
-
}
|
|
281
|
-
setPlacementClass(placement) {
|
|
282
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'tooltip-' + (placement ? placement.split(' ')[0] : placement));
|
|
283
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'yPosition-' + (placement && placement.split(' ').length === 2 ? placement.split(' ')[1] : 'center'));
|
|
284
|
-
if (this.elementRef.nativeElement.children && this.elementRef.nativeElement.children.length > 1) {
|
|
285
|
-
const tooltipArrow = Array.from(this.elementRef.nativeElement.children).filter((child) => child.getAttribute('id') === 'tooltipArrow');
|
|
286
|
-
if (tooltipArrow && tooltipArrow.length === 1) {
|
|
287
|
-
if (placement && placement.split(' ').length === 2 && placement.split(' ')[1] === 'bottom') {
|
|
288
|
-
this.renderer.setStyle(tooltipArrow[0], 'top', this.arrowTopPosition);
|
|
289
|
-
}
|
|
290
|
-
else if (placement && placement.split(' ').length === 2 && placement.split(' ')[1] === 'top') {
|
|
291
|
-
this.renderer.setStyle(tooltipArrow[0], 'top', this.arrowBottomPosition);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
setPosition() {
|
|
297
|
-
if (this.setHostStyle(this.placement)) {
|
|
298
|
-
this.setPlacementClass(this.placement);
|
|
299
|
-
if (this.viewInit) {
|
|
300
|
-
// We did this in order to reset overlayRef (multi web component needed with matmenu and cdk overlay)
|
|
301
|
-
if (this.trigger['_overlayRef']) {
|
|
302
|
-
this.trigger['_overlayRef'].dispose();
|
|
303
|
-
this.trigger['_overlayRef'] = null;
|
|
304
|
-
}
|
|
305
|
-
this.trigger.openMenu();
|
|
306
|
-
}
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
const placements = ['top', 'right', 'bottom', 'left'];
|
|
311
|
-
for (const placement of placements) {
|
|
312
|
-
if (this.setHostStyle(placement)) {
|
|
313
|
-
this.setPlacementClass(placement);
|
|
314
|
-
if (this.viewInit) {
|
|
315
|
-
this.trigger.openMenu();
|
|
316
|
-
}
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
PopmenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
324
|
-
PopmenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: PopmenuComponent, isStandalone: true, selector: "ap-popmenu", inputs: { data: "data", show: "show", close: "close" }, outputs: { menuClosed: "menuClosed", menuOpened: "menuOpened" }, host: { properties: { "style.top": "this.hostStyleTop", "style.border-radius": "this.hostStyleBorderRadius", "style.left": "this.hostStyleLeft", "style.z-index": "this.hostStyleZIndex", "style.transition": "this.hostStyleTransition", "style.width": "this.hostStyleWidth", "style.max-width": "this.hostStyleMaxWidth", "style.pointer-events": "this.hostStylePointerEvents", "class.tooltip-show": "this.hostClassShow", "class.tooltip-shadow": "this.hostClassShadow", "class.tooltip-light": "this.hostClassLight" } }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatLegacyMenuTrigger, descendants: true }], ngImport: i0, template: "<button id=\"menuTrigger\" class=\"button-trigger\" mat-button\n [matMenuTriggerFor]=\"menu\" (menuClosed)=\"onMenuClosed()\" (menuOpened)=\"onMenuOpened()\">\n</button>\n<mat-menu #menu=\"matMenu\" [yPosition]=\"!below ? 'above': 'below'\" [xPosition]=\"!before? 'after': 'before'\" [overlapTrigger]=\"false\"\n [hasBackdrop]=\"hasBackdrop\"\n [backdropClass]=\"backdropClass\"\n class=\"pop-menu {{arrow ? 'arrow-before ' + arrowClass : ''}} {{shadow ? 'shadow' : ''}} {{border ? '' : (shadow ? 'shadow-no-border' : '')}} {{rounded ? 'rounded-component' : ''}} {{ background ? '' : 'no-background'}} {{panelClass}}\">\n\n <div *ngIf=\"arrow\" class=\"{{arrow ? 'arrow-before ' + arrowClass : ''}}\" [ngStyle]=\"{'left': arrowLeftPosition, 'right': arrowRightPosition, 'top': arrowTopPosition, 'bottom': arrowBottomPosition}\"></div>\n <div (click)=\"$event.stopPropagation()\" class=\"{{rounded ? 'rounded-component' : ''}} outline-none\">\n <div class=\"{{border ? 'popover-content ' : ''}} {{rounded ? 'rounded-component' : ''}}\">\n <ng-container *ngTemplateOutlet=\"value;context:{menu:this}\"></ng-container>\n </div>\n </div>\n</mat-menu>\n\n\n", styles: ["[color=facebook]{color:#1877f2}[bgcolor=facebook],[hcolor=facebook]:hover{background-color:#1877f2}[border=facebook]{border:1px solid #1877f2}[color=google]{color:#4e85e8}[bgcolor=google],[hcolor=google]:hover{background-color:#4e85e8}[border=google]{border:1px solid #4e85e8}[color=instagram]{color:#e1306c}[bgcolor=instagram],[hcolor=instagram]:hover{background-color:#e1306c}[border=instagram]{border:1px solid #e1306c}[color=instagrammagenta]{color:#c13584}[bgcolor=instagrammagenta],[hcolor=instagrammagenta]:hover{background-color:#c13584}[border=instagrammagenta]{border:1px solid #c13584}[color=instagramblue]{color:#5851db}[bgcolor=instagramblue],[hcolor=instagramblue]:hover{background-color:#5851db}[border=instagramblue]{border:1px solid #5851db}[color=instagrampurple]{color:#833ab4}[bgcolor=instagrampurple],[hcolor=instagrampurple]:hover{background-color:#833ab4}[border=instagrampurple]{border:1px solid #833ab4}[color=instagramorange]{color:#f56040}[bgcolor=instagramorange],[hcolor=instagramorange]:hover{background-color:#f56040}[border=instagramorange]{border:1px solid #f56040}[color=instagramyellow]{color:#ffdc80}[bgcolor=instagramyellow],[hcolor=instagramyellow]:hover{background-color:#ffdc80}[border=instagramyellow]{border:1px solid #ffdc80}[color=linkedin]{color:#2c67bc}[bgcolor=linkedin],[hcolor=linkedin]:hover{background-color:#2c67bc}[border=linkedin]{border:1px solid #2c67bc}[color=twitter]{color:#55acee}[bgcolor=twitter],[hcolor=twitter]:hover{background-color:#55acee}[border=twitter]{border:1px solid #55acee}[color=youtube]{color:red}[bgcolor=youtube],[hcolor=youtube]:hover{background-color:red}[border=youtube]{border:1px solid #ff0000}[color=blood-orange]{color:#ff4d00}[bgcolor=blood-orange],[hcolor=blood-orange]:hover{background-color:#ff4d00}[border=blood-orange]{border:1px solid #ff4d00}[color=pinkish-orange]{color:#ff7b49}[bgcolor=pinkish-orange],[hcolor=pinkish-orange]:hover{background-color:#ff7b49}[border=pinkish-orange]{border:1px solid #ff7b49}[color=charcoal-grey]{color:#2a2f34}[bgcolor=charcoal-grey],[hcolor=charcoal-grey]:hover{background-color:#2a2f34}[border=charcoal-grey]{border:1px solid #2a2f34}[color=azure]{color:#00aeef}[bgcolor=azure],[hcolor=azure]:hover{background-color:#00aeef}[border=azure]{border:1px solid #00aeef}[color=light-azure]{color:#eaf5fd}[bgcolor=light-azure],[hcolor=light-azure]:hover{background-color:#eaf5fd}[border=light-azure]{border:1px solid #eaf5fd}[color=blue-grey]{color:#8d98a9}[bgcolor=blue-grey],[hcolor=blue-grey]:hover{background-color:#8d98a9}[border=blue-grey]{border:1px solid #8d98a9}[color=silver]{color:#ced0da}[bgcolor=silver],[hcolor=silver]:hover{background-color:#ced0da}[border=silver]{border:1px solid #ced0da}[color=pale-grey]{color:#dfe3e9}[bgcolor=pale-grey],[hcolor=pale-grey]:hover{background-color:#dfe3e9}[border=pale-grey]{border:1px solid #dfe3e9}[color=grey-white]{color:#f5f7f8}[bgcolor=grey-white],[hcolor=grey-white]:hover{background-color:#f5f7f8}[border=grey-white]{border:1px solid #f5f7f8}[color=cool-grey]{color:#b4bbc6}[bgcolor=cool-grey],[hcolor=cool-grey]:hover{background-color:#b4bbc6}[border=cool-grey]{border:1px solid #b4bbc6}[color=black]{color:#344563}[bgcolor=black],[hcolor=black]:hover{background-color:#344563}[border=black]{border:1px solid #344563}[color=grey-blue]{color:#68768c}[bgcolor=grey-blue],[hcolor=grey-blue]:hover{background-color:#68768c}[border=grey-blue]{border:1px solid #68768c}[color=strawberry]{color:#f4282d}[bgcolor=strawberry],[hcolor=strawberry]:hover{background-color:#f4282d}[border=strawberry]{border:1px solid #f4282d}[color=light-strawberry]{color:#f8eded}[bgcolor=light-strawberry],[hcolor=light-strawberry]:hover{background-color:#f8eded}[border=light-strawberry]{border:1px solid #f8eded}[color=white]{color:#fff}[bgcolor=white],[hcolor=white]:hover{background-color:#fff}[border=white]{border:1px solid #ffffff}[color=cool-green]{color:#33c15d}[bgcolor=cool-green],[hcolor=cool-green]:hover{background-color:#33c15d}[border=cool-green]{border:1px solid #33c15d}[color=light-green]{color:#ebfaef}[bgcolor=light-green],[hcolor=light-green]:hover{background-color:#ebfaef}[border=light-green]{border:1px solid #ebfaef}[color=transparent]{color:transparent}[bgcolor=transparent],[hcolor=transparent]:hover{background-color:transparent}[border=transparent]{border:1px solid transparent}[color=c0]{color:#a566a5}[bgcolor=c0],[hcolor=c0]:hover{background-color:#a566a5}[border=c0]{border:1px solid #A566A5}[color=c1]{color:#c7ab82}[bgcolor=c1],[hcolor=c1]:hover{background-color:#c7ab82}[border=c1]{border:1px solid #C7AB82}[color=c2]{color:#f2713c}[bgcolor=c2],[hcolor=c2]:hover{background-color:#f2713c}[border=c2]{border:1px solid #F2713C}[color=c3]{color:#ffd006}[bgcolor=c3],[hcolor=c3]:hover{background-color:#ffd006}[border=c3]{border:1px solid #FFD006}[color=c4]{color:#94c5aa}[bgcolor=c4],[hcolor=c4]:hover{background-color:#94c5aa}[border=c4]{border:1px solid #94C5AA}[color=c5]{color:#2a9d8f}[bgcolor=c5],[hcolor=c5]:hover{background-color:#2a9d8f}[border=c5]{border:1px solid #2A9D8F}[color=c6]{color:#78acd8}[bgcolor=c6],[hcolor=c6]:hover{background-color:#78acd8}[border=c6]{border:1px solid #78ACD8}[color=c7]{color:#525a9e}[bgcolor=c7],[hcolor=c7]:hover{background-color:#525a9e}[border=c7]{border:1px solid #525A9E}[color=c8]{color:#6a2459}[bgcolor=c8],[hcolor=c8]:hover{background-color:#6a2459}[border=c8]{border:1px solid #6A2459}[color=c9]{color:#74729e}[bgcolor=c9],[hcolor=c9]:hover{background-color:#74729e}[border=c9]{border:1px solid #74729E}.mat-menu-content{padding:0}.mat-menu-item{height:inherit;width:inherit;background-color:#fff;padding:0;cursor:default;box-shadow:0 4px 10px #0000001c}.mat-menu-item:hover{background-color:#fff!important;cursor:default;box-shadow:none!important}.outline-none{outline:none}.mat-menu-item:hover:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item-highlighted:not([disabled]){background-color:#fff!important;cursor:default;box-shadow:none!important}:host ::ng-deep .mat-button{max-width:1px;max-height:1px;min-width:1px;min-height:1px;padding:0;margin:0}:host{position:absolute;max-width:1px;max-height:1px;display:flex}.button-trigger{padding:0;border:none;height:1px;width:1px}::ng-deep .rounded-component .mat-menu-content{border-radius:10px}::ng-deep .rounded-component{border-radius:10px}::ng-deep .no-background .rounded-component{position:fixed}.popover-content{border:1px solid #dfe3e9}\n"], dependencies: [{ kind: "ngmodule", type: MatLegacyMenuModule }, { kind: "component", type: i1.MatLegacyMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i1.MatLegacyMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuComponent, decorators: [{
|
|
326
|
-
type: Component,
|
|
327
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ap-popmenu', standalone: true, imports: [ButtonComponent, MatLegacyMenuModule, NgStyle, NgTemplateOutlet, NgIf], template: "<button id=\"menuTrigger\" class=\"button-trigger\" mat-button\n [matMenuTriggerFor]=\"menu\" (menuClosed)=\"onMenuClosed()\" (menuOpened)=\"onMenuOpened()\">\n</button>\n<mat-menu #menu=\"matMenu\" [yPosition]=\"!below ? 'above': 'below'\" [xPosition]=\"!before? 'after': 'before'\" [overlapTrigger]=\"false\"\n [hasBackdrop]=\"hasBackdrop\"\n [backdropClass]=\"backdropClass\"\n class=\"pop-menu {{arrow ? 'arrow-before ' + arrowClass : ''}} {{shadow ? 'shadow' : ''}} {{border ? '' : (shadow ? 'shadow-no-border' : '')}} {{rounded ? 'rounded-component' : ''}} {{ background ? '' : 'no-background'}} {{panelClass}}\">\n\n <div *ngIf=\"arrow\" class=\"{{arrow ? 'arrow-before ' + arrowClass : ''}}\" [ngStyle]=\"{'left': arrowLeftPosition, 'right': arrowRightPosition, 'top': arrowTopPosition, 'bottom': arrowBottomPosition}\"></div>\n <div (click)=\"$event.stopPropagation()\" class=\"{{rounded ? 'rounded-component' : ''}} outline-none\">\n <div class=\"{{border ? 'popover-content ' : ''}} {{rounded ? 'rounded-component' : ''}}\">\n <ng-container *ngTemplateOutlet=\"value;context:{menu:this}\"></ng-container>\n </div>\n </div>\n</mat-menu>\n\n\n", styles: ["[color=facebook]{color:#1877f2}[bgcolor=facebook],[hcolor=facebook]:hover{background-color:#1877f2}[border=facebook]{border:1px solid #1877f2}[color=google]{color:#4e85e8}[bgcolor=google],[hcolor=google]:hover{background-color:#4e85e8}[border=google]{border:1px solid #4e85e8}[color=instagram]{color:#e1306c}[bgcolor=instagram],[hcolor=instagram]:hover{background-color:#e1306c}[border=instagram]{border:1px solid #e1306c}[color=instagrammagenta]{color:#c13584}[bgcolor=instagrammagenta],[hcolor=instagrammagenta]:hover{background-color:#c13584}[border=instagrammagenta]{border:1px solid #c13584}[color=instagramblue]{color:#5851db}[bgcolor=instagramblue],[hcolor=instagramblue]:hover{background-color:#5851db}[border=instagramblue]{border:1px solid #5851db}[color=instagrampurple]{color:#833ab4}[bgcolor=instagrampurple],[hcolor=instagrampurple]:hover{background-color:#833ab4}[border=instagrampurple]{border:1px solid #833ab4}[color=instagramorange]{color:#f56040}[bgcolor=instagramorange],[hcolor=instagramorange]:hover{background-color:#f56040}[border=instagramorange]{border:1px solid #f56040}[color=instagramyellow]{color:#ffdc80}[bgcolor=instagramyellow],[hcolor=instagramyellow]:hover{background-color:#ffdc80}[border=instagramyellow]{border:1px solid #ffdc80}[color=linkedin]{color:#2c67bc}[bgcolor=linkedin],[hcolor=linkedin]:hover{background-color:#2c67bc}[border=linkedin]{border:1px solid #2c67bc}[color=twitter]{color:#55acee}[bgcolor=twitter],[hcolor=twitter]:hover{background-color:#55acee}[border=twitter]{border:1px solid #55acee}[color=youtube]{color:red}[bgcolor=youtube],[hcolor=youtube]:hover{background-color:red}[border=youtube]{border:1px solid #ff0000}[color=blood-orange]{color:#ff4d00}[bgcolor=blood-orange],[hcolor=blood-orange]:hover{background-color:#ff4d00}[border=blood-orange]{border:1px solid #ff4d00}[color=pinkish-orange]{color:#ff7b49}[bgcolor=pinkish-orange],[hcolor=pinkish-orange]:hover{background-color:#ff7b49}[border=pinkish-orange]{border:1px solid #ff7b49}[color=charcoal-grey]{color:#2a2f34}[bgcolor=charcoal-grey],[hcolor=charcoal-grey]:hover{background-color:#2a2f34}[border=charcoal-grey]{border:1px solid #2a2f34}[color=azure]{color:#00aeef}[bgcolor=azure],[hcolor=azure]:hover{background-color:#00aeef}[border=azure]{border:1px solid #00aeef}[color=light-azure]{color:#eaf5fd}[bgcolor=light-azure],[hcolor=light-azure]:hover{background-color:#eaf5fd}[border=light-azure]{border:1px solid #eaf5fd}[color=blue-grey]{color:#8d98a9}[bgcolor=blue-grey],[hcolor=blue-grey]:hover{background-color:#8d98a9}[border=blue-grey]{border:1px solid #8d98a9}[color=silver]{color:#ced0da}[bgcolor=silver],[hcolor=silver]:hover{background-color:#ced0da}[border=silver]{border:1px solid #ced0da}[color=pale-grey]{color:#dfe3e9}[bgcolor=pale-grey],[hcolor=pale-grey]:hover{background-color:#dfe3e9}[border=pale-grey]{border:1px solid #dfe3e9}[color=grey-white]{color:#f5f7f8}[bgcolor=grey-white],[hcolor=grey-white]:hover{background-color:#f5f7f8}[border=grey-white]{border:1px solid #f5f7f8}[color=cool-grey]{color:#b4bbc6}[bgcolor=cool-grey],[hcolor=cool-grey]:hover{background-color:#b4bbc6}[border=cool-grey]{border:1px solid #b4bbc6}[color=black]{color:#344563}[bgcolor=black],[hcolor=black]:hover{background-color:#344563}[border=black]{border:1px solid #344563}[color=grey-blue]{color:#68768c}[bgcolor=grey-blue],[hcolor=grey-blue]:hover{background-color:#68768c}[border=grey-blue]{border:1px solid #68768c}[color=strawberry]{color:#f4282d}[bgcolor=strawberry],[hcolor=strawberry]:hover{background-color:#f4282d}[border=strawberry]{border:1px solid #f4282d}[color=light-strawberry]{color:#f8eded}[bgcolor=light-strawberry],[hcolor=light-strawberry]:hover{background-color:#f8eded}[border=light-strawberry]{border:1px solid #f8eded}[color=white]{color:#fff}[bgcolor=white],[hcolor=white]:hover{background-color:#fff}[border=white]{border:1px solid #ffffff}[color=cool-green]{color:#33c15d}[bgcolor=cool-green],[hcolor=cool-green]:hover{background-color:#33c15d}[border=cool-green]{border:1px solid #33c15d}[color=light-green]{color:#ebfaef}[bgcolor=light-green],[hcolor=light-green]:hover{background-color:#ebfaef}[border=light-green]{border:1px solid #ebfaef}[color=transparent]{color:transparent}[bgcolor=transparent],[hcolor=transparent]:hover{background-color:transparent}[border=transparent]{border:1px solid transparent}[color=c0]{color:#a566a5}[bgcolor=c0],[hcolor=c0]:hover{background-color:#a566a5}[border=c0]{border:1px solid #A566A5}[color=c1]{color:#c7ab82}[bgcolor=c1],[hcolor=c1]:hover{background-color:#c7ab82}[border=c1]{border:1px solid #C7AB82}[color=c2]{color:#f2713c}[bgcolor=c2],[hcolor=c2]:hover{background-color:#f2713c}[border=c2]{border:1px solid #F2713C}[color=c3]{color:#ffd006}[bgcolor=c3],[hcolor=c3]:hover{background-color:#ffd006}[border=c3]{border:1px solid #FFD006}[color=c4]{color:#94c5aa}[bgcolor=c4],[hcolor=c4]:hover{background-color:#94c5aa}[border=c4]{border:1px solid #94C5AA}[color=c5]{color:#2a9d8f}[bgcolor=c5],[hcolor=c5]:hover{background-color:#2a9d8f}[border=c5]{border:1px solid #2A9D8F}[color=c6]{color:#78acd8}[bgcolor=c6],[hcolor=c6]:hover{background-color:#78acd8}[border=c6]{border:1px solid #78ACD8}[color=c7]{color:#525a9e}[bgcolor=c7],[hcolor=c7]:hover{background-color:#525a9e}[border=c7]{border:1px solid #525A9E}[color=c8]{color:#6a2459}[bgcolor=c8],[hcolor=c8]:hover{background-color:#6a2459}[border=c8]{border:1px solid #6A2459}[color=c9]{color:#74729e}[bgcolor=c9],[hcolor=c9]:hover{background-color:#74729e}[border=c9]{border:1px solid #74729E}.mat-menu-content{padding:0}.mat-menu-item{height:inherit;width:inherit;background-color:#fff;padding:0;cursor:default;box-shadow:0 4px 10px #0000001c}.mat-menu-item:hover{background-color:#fff!important;cursor:default;box-shadow:none!important}.outline-none{outline:none}.mat-menu-item:hover:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item-highlighted:not([disabled]){background-color:#fff!important;cursor:default;box-shadow:none!important}:host ::ng-deep .mat-button{max-width:1px;max-height:1px;min-width:1px;min-height:1px;padding:0;margin:0}:host{position:absolute;max-width:1px;max-height:1px;display:flex}.button-trigger{padding:0;border:none;height:1px;width:1px}::ng-deep .rounded-component .mat-menu-content{border-radius:10px}::ng-deep .rounded-component{border-radius:10px}::ng-deep .no-background .rounded-component{position:fixed}.popover-content{border:1px solid #dfe3e9}\n"] }]
|
|
328
|
-
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
329
|
-
type: Input
|
|
330
|
-
}], menuClosed: [{
|
|
331
|
-
type: Output
|
|
332
|
-
}], menuOpened: [{
|
|
333
|
-
type: Output
|
|
334
|
-
}], trigger: [{
|
|
335
|
-
type: ViewChild,
|
|
336
|
-
args: [MatLegacyMenuTrigger]
|
|
337
|
-
}], hostStyleTop: [{
|
|
338
|
-
type: HostBinding,
|
|
339
|
-
args: ['style.top']
|
|
340
|
-
}], hostStyleBorderRadius: [{
|
|
341
|
-
type: HostBinding,
|
|
342
|
-
args: ['style.border-radius']
|
|
343
|
-
}], hostStyleLeft: [{
|
|
344
|
-
type: HostBinding,
|
|
345
|
-
args: ['style.left']
|
|
346
|
-
}], hostStyleZIndex: [{
|
|
347
|
-
type: HostBinding,
|
|
348
|
-
args: ['style.z-index']
|
|
349
|
-
}], hostStyleTransition: [{
|
|
350
|
-
type: HostBinding,
|
|
351
|
-
args: ['style.transition']
|
|
352
|
-
}], hostStyleWidth: [{
|
|
353
|
-
type: HostBinding,
|
|
354
|
-
args: ['style.width']
|
|
355
|
-
}], hostStyleMaxWidth: [{
|
|
356
|
-
type: HostBinding,
|
|
357
|
-
args: ['style.max-width']
|
|
358
|
-
}], hostStylePointerEvents: [{
|
|
359
|
-
type: HostBinding,
|
|
360
|
-
args: ['style.pointer-events']
|
|
361
|
-
}], hostClassShow: [{
|
|
362
|
-
type: HostBinding,
|
|
363
|
-
args: ['class.tooltip-show']
|
|
364
|
-
}], hostClassShadow: [{
|
|
365
|
-
type: HostBinding,
|
|
366
|
-
args: ['class.tooltip-shadow']
|
|
367
|
-
}], hostClassLight: [{
|
|
368
|
-
type: HostBinding,
|
|
369
|
-
args: ['class.tooltip-light']
|
|
370
|
-
}], show: [{
|
|
371
|
-
type: Input
|
|
372
|
-
}], close: [{
|
|
373
|
-
type: Input
|
|
374
|
-
}] } });
|
|
375
|
-
|
|
376
|
-
const defaultOptions = {
|
|
377
|
-
'apPopmenuBorder': true,
|
|
378
|
-
'apPopmenuDisabled': false,
|
|
379
|
-
'apPopmenuBackground': true,
|
|
380
|
-
'hasBackdrop': true,
|
|
381
|
-
'placement': 'top',
|
|
382
|
-
'rounded': true,
|
|
383
|
-
'showDelay': 0,
|
|
384
|
-
'hideDelay': 10,
|
|
385
|
-
'hideDelayMobile': 0,
|
|
386
|
-
'shadow': true,
|
|
387
|
-
'theme': 'dark',
|
|
388
|
-
'offset': 8,
|
|
389
|
-
'offsets': {},
|
|
390
|
-
'maxWidth': '600',
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* This is not a real service, but it looks like it from the outside.
|
|
395
|
-
* It's just an InjectionToken used to import the config (initOptions) object, provided from the outside
|
|
396
|
-
*/
|
|
397
|
-
const PopmenuOptionsService = new InjectionToken('PopmenuOptions');
|
|
398
|
-
|
|
399
|
-
var _PopmenuDirective_menuOpen;
|
|
400
|
-
class PopmenuDirective {
|
|
401
|
-
get options() {
|
|
402
|
-
return this._options;
|
|
403
|
-
}
|
|
404
|
-
set options(value) {
|
|
405
|
-
if (value && defaultOptions) {
|
|
406
|
-
this._options = value;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
get destroyDelay() {
|
|
410
|
-
return Number(this.getHideDelay()) + Number(this.options['animationDuration']);
|
|
411
|
-
}
|
|
412
|
-
get isDisplayOnHover() {
|
|
413
|
-
if (this.options['display'] === false) {
|
|
414
|
-
return false;
|
|
415
|
-
}
|
|
416
|
-
if (this.options['displayTouchscreen'] === false) {
|
|
417
|
-
return false;
|
|
418
|
-
}
|
|
419
|
-
if (this.options['trigger'] !== 'hover') {
|
|
420
|
-
return false;
|
|
421
|
-
}
|
|
422
|
-
return true;
|
|
423
|
-
}
|
|
424
|
-
get isTooltipDestroyed() {
|
|
425
|
-
return this.componentRef && this.componentRef.hostView.destroyed;
|
|
426
|
-
}
|
|
427
|
-
get tooltipPosition() {
|
|
428
|
-
if (this.options['position']) {
|
|
429
|
-
return this.options['position'];
|
|
430
|
-
}
|
|
431
|
-
else {
|
|
432
|
-
return this.elementPosition;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
constructor(initOptions, renderer, elementRef, componentFactoryResolver, appRef, injector) {
|
|
436
|
-
this.initOptions = initOptions;
|
|
437
|
-
this.renderer = renderer;
|
|
438
|
-
this.elementRef = elementRef;
|
|
439
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
440
|
-
this.appRef = appRef;
|
|
441
|
-
this.injector = injector;
|
|
442
|
-
this.apPopmenuBackground = true;
|
|
443
|
-
this.close = false;
|
|
444
|
-
this.hasBackdrop = true;
|
|
445
|
-
this.pointer = true;
|
|
446
|
-
this.menuClosed = new EventEmitter();
|
|
447
|
-
this.menuOpened = new EventEmitter();
|
|
448
|
-
this._options = {};
|
|
449
|
-
this.menuOpenChange = new EventEmitter();
|
|
450
|
-
_PopmenuDirective_menuOpen.set(this, void 0);
|
|
451
|
-
}
|
|
452
|
-
appendComponentToBody(component, data = {}) {
|
|
453
|
-
this.componentRef = this.componentFactoryResolver
|
|
454
|
-
.resolveComponentFactory(component)
|
|
455
|
-
.create(this.injector);
|
|
456
|
-
this.componentRef.instance.data = {
|
|
457
|
-
value: this.popMenuValue,
|
|
458
|
-
element: this.elementRef.nativeElement,
|
|
459
|
-
elementPosition: this.tooltipPosition,
|
|
460
|
-
options: this.options
|
|
461
|
-
};
|
|
462
|
-
this.appRef.attachView(this.componentRef.hostView);
|
|
463
|
-
this.componentElement = this.componentRef.hostView.rootNodes[0];
|
|
464
|
-
document.body.appendChild(this.componentElement);
|
|
465
|
-
this.componentSubscribe = this.componentRef.instance.menuClosed.subscribe((event) => {
|
|
466
|
-
this.handleClose(event);
|
|
467
|
-
this.menuOpen = this.componentRef.instance.menuOpen;
|
|
468
|
-
});
|
|
469
|
-
this.componentSubscribe = this.componentRef.instance.menuOpened.subscribe((event) => {
|
|
470
|
-
this.handleOpen(event);
|
|
471
|
-
this.menuOpen = this.componentRef.instance.menuOpen;
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
get menuOpen() {
|
|
475
|
-
return __classPrivateFieldGet(this, _PopmenuDirective_menuOpen, "f");
|
|
476
|
-
}
|
|
477
|
-
set menuOpen(menuOpen) {
|
|
478
|
-
this.menuOpenChange.emit(menuOpen);
|
|
479
|
-
__classPrivateFieldSet(this, _PopmenuDirective_menuOpen, menuOpen, "f");
|
|
480
|
-
if (__classPrivateFieldGet(this, _PopmenuDirective_menuOpen, "f")) {
|
|
481
|
-
this.elementRef.nativeElement.classList.add("popmenu-open");
|
|
482
|
-
this.elementRef.nativeElement.classList.remove("popmenu-close");
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
this.elementRef.nativeElement.classList.remove("popmenu-open");
|
|
486
|
-
this.elementRef.nativeElement.classList.add("popmenu-close");
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
handleClose(event) {
|
|
490
|
-
this.menuClosed.emit();
|
|
491
|
-
}
|
|
492
|
-
handleOpen(event) {
|
|
493
|
-
this.menuOpened.emit();
|
|
494
|
-
}
|
|
495
|
-
applyOptionsDefault(defaultOptions, options) {
|
|
496
|
-
this.options = Object.assign({}, defaultOptions, this.initOptions || {}, options);
|
|
497
|
-
}
|
|
498
|
-
clearTimeouts() {
|
|
499
|
-
if (this.createTimeoutId) {
|
|
500
|
-
clearTimeout(this.createTimeoutId);
|
|
501
|
-
}
|
|
502
|
-
if (this.showTimeoutId) {
|
|
503
|
-
clearTimeout(this.showTimeoutId);
|
|
504
|
-
}
|
|
505
|
-
if (this.hideTimeoutId) {
|
|
506
|
-
clearTimeout(this.hideTimeoutId);
|
|
507
|
-
}
|
|
508
|
-
if (this.destroyTimeoutId) {
|
|
509
|
-
clearTimeout(this.destroyTimeoutId);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
createPopMenu() {
|
|
513
|
-
this.clearTimeouts();
|
|
514
|
-
this.createTimeoutId = window.setTimeout(() => {
|
|
515
|
-
this.appendComponentToBody(PopmenuComponent);
|
|
516
|
-
}, this.getShowDelay());
|
|
517
|
-
this.showTimeoutId = window.setTimeout(() => {
|
|
518
|
-
this.showTooltipElem();
|
|
519
|
-
}, this.getShowDelay());
|
|
520
|
-
}
|
|
521
|
-
getElementPosition() {
|
|
522
|
-
this.elementPosition = this.elementRef.nativeElement.getBoundingClientRect();
|
|
523
|
-
}
|
|
524
|
-
getHideDelay() {
|
|
525
|
-
return this.options['hideDelay'];
|
|
526
|
-
}
|
|
527
|
-
getProperties(changes) {
|
|
528
|
-
let properties = {};
|
|
529
|
-
for (const prop in changes) {
|
|
530
|
-
if (prop !== 'options' && prop !== 'tooltipValue') {
|
|
531
|
-
properties[prop] = changes[prop].currentValue;
|
|
532
|
-
}
|
|
533
|
-
if (prop === 'options') {
|
|
534
|
-
properties = changes[prop].currentValue;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
return properties;
|
|
538
|
-
}
|
|
539
|
-
getShowDelay() {
|
|
540
|
-
return this.options['showDelay'];
|
|
541
|
-
}
|
|
542
|
-
ngOnChanges(changes) {
|
|
543
|
-
if (changes.pointer) {
|
|
544
|
-
if (!this.pointer) {
|
|
545
|
-
this.renderer.removeStyle(this.elementRef.nativeElement, 'cursor');
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'cursor', 'pointer');
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
if (changes.close && changes.close.currentValue) {
|
|
552
|
-
this.hideTooltipElem();
|
|
553
|
-
}
|
|
554
|
-
const changedOptions = this.getProperties(changes);
|
|
555
|
-
this.applyOptionsDefault(this.options && Object.keys(this.options).length > 0 ? this.options : defaultOptions, changedOptions);
|
|
556
|
-
}
|
|
557
|
-
ngOnInit() {
|
|
558
|
-
if (this.pointer) {
|
|
559
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'cursor', 'pointer');
|
|
560
|
-
}
|
|
561
|
-
this.menuOpen = false;
|
|
562
|
-
}
|
|
563
|
-
onClick() {
|
|
564
|
-
if (this.apPopmenuDisabled) {
|
|
565
|
-
return;
|
|
566
|
-
}
|
|
567
|
-
this.show();
|
|
568
|
-
this.close = false;
|
|
569
|
-
}
|
|
570
|
-
show() {
|
|
571
|
-
this.getElementPosition();
|
|
572
|
-
if (!this.componentRef || this.isTooltipDestroyed) {
|
|
573
|
-
this.createPopMenu();
|
|
574
|
-
}
|
|
575
|
-
else if (!this.isTooltipDestroyed) {
|
|
576
|
-
this.showTooltipElem();
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
showTooltipElem() {
|
|
580
|
-
this.componentRef.instance.data = {
|
|
581
|
-
value: this.popMenuValue,
|
|
582
|
-
element: this.elementRef.nativeElement,
|
|
583
|
-
elementPosition: this.tooltipPosition,
|
|
584
|
-
options: this.options
|
|
585
|
-
};
|
|
586
|
-
this.clearTimeouts();
|
|
587
|
-
this.componentRef.instance.show = true;
|
|
588
|
-
}
|
|
589
|
-
hideTooltipElem() {
|
|
590
|
-
if (this.componentRef) {
|
|
591
|
-
this.componentRef.instance.close = true;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
_PopmenuDirective_menuOpen = new WeakMap();
|
|
596
|
-
PopmenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuDirective, deps: [{ token: PopmenuOptionsService, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
597
|
-
PopmenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: PopmenuDirective, isStandalone: true, selector: "[apPopmenu]", inputs: { apPopmenuBorder: "apPopmenuBorder", apPopmenuDisabled: "apPopmenuDisabled", apPopmenuBackground: "apPopmenuBackground", arrow: "arrow", arrowOffset: "arrowOffset", arrowPosition: "arrowPosition", close: "close", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass", panelClass: "panelClass", offset: "offset", offsets: "offsets", placement: "placement", pointer: "pointer", popMenuValue: ["apPopmenu", "popMenuValue"], position: "position", rounded: "rounded", shadow: "shadow", options: "options", menuOpen: "menuOpen" }, outputs: { menuClosed: "menuClosed", menuOpened: "menuOpened", menuOpenChange: "menuOpenChange" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
|
|
598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuDirective, decorators: [{
|
|
599
|
-
type: Directive,
|
|
600
|
-
args: [{
|
|
601
|
-
selector: '[apPopmenu]',
|
|
602
|
-
standalone: true,
|
|
603
|
-
}]
|
|
604
|
-
}], ctorParameters: function () {
|
|
605
|
-
return [{ type: undefined, decorators: [{
|
|
606
|
-
type: Optional
|
|
607
|
-
}, {
|
|
608
|
-
type: Inject,
|
|
609
|
-
args: [PopmenuOptionsService]
|
|
610
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }];
|
|
611
|
-
}, propDecorators: { apPopmenuBorder: [{
|
|
612
|
-
type: Input
|
|
613
|
-
}], apPopmenuDisabled: [{
|
|
614
|
-
type: Input
|
|
615
|
-
}], apPopmenuBackground: [{
|
|
616
|
-
type: Input
|
|
617
|
-
}], arrow: [{
|
|
618
|
-
type: Input
|
|
619
|
-
}], arrowOffset: [{
|
|
620
|
-
type: Input
|
|
621
|
-
}], arrowPosition: [{
|
|
622
|
-
type: Input
|
|
623
|
-
}], close: [{
|
|
624
|
-
type: Input
|
|
625
|
-
}], hasBackdrop: [{
|
|
626
|
-
type: Input
|
|
627
|
-
}], backdropClass: [{
|
|
628
|
-
type: Input
|
|
629
|
-
}], panelClass: [{
|
|
630
|
-
type: Input
|
|
631
|
-
}], offset: [{
|
|
632
|
-
type: Input
|
|
633
|
-
}], offsets: [{
|
|
634
|
-
type: Input
|
|
635
|
-
}], placement: [{
|
|
636
|
-
type: Input
|
|
637
|
-
}], pointer: [{
|
|
638
|
-
type: Input
|
|
639
|
-
}], popMenuValue: [{
|
|
640
|
-
type: Input,
|
|
641
|
-
args: ['apPopmenu']
|
|
642
|
-
}], position: [{
|
|
643
|
-
type: Input
|
|
644
|
-
}], rounded: [{
|
|
645
|
-
type: Input
|
|
646
|
-
}], shadow: [{
|
|
647
|
-
type: Input
|
|
648
|
-
}], menuClosed: [{
|
|
649
|
-
type: Output
|
|
650
|
-
}], menuOpened: [{
|
|
651
|
-
type: Output
|
|
652
|
-
}], options: [{
|
|
653
|
-
type: Input
|
|
654
|
-
}], menuOpenChange: [{
|
|
655
|
-
type: Output
|
|
656
|
-
}], menuOpen: [{
|
|
657
|
-
type: Input
|
|
658
|
-
}], onClick: [{
|
|
659
|
-
type: HostListener,
|
|
660
|
-
args: ['click']
|
|
661
|
-
}] } });
|
|
662
|
-
|
|
663
|
-
class PopmenuModule {
|
|
664
|
-
static forRoot(initOptions) {
|
|
665
|
-
return {
|
|
666
|
-
ngModule: PopmenuModule,
|
|
667
|
-
providers: [
|
|
668
|
-
{
|
|
669
|
-
provide: PopmenuOptionsService,
|
|
670
|
-
useValue: initOptions
|
|
671
|
-
}
|
|
672
|
-
]
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
PopmenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
677
|
-
PopmenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: PopmenuModule, imports: [PopmenuDirective,
|
|
678
|
-
PopmenuComponent], exports: [PopmenuDirective] });
|
|
679
|
-
PopmenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuModule, imports: [PopmenuComponent] });
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: PopmenuModule, decorators: [{
|
|
681
|
-
type: NgModule,
|
|
682
|
-
args: [{
|
|
683
|
-
imports: [
|
|
684
|
-
PopmenuDirective,
|
|
685
|
-
PopmenuComponent
|
|
686
|
-
],
|
|
687
|
-
exports: [
|
|
688
|
-
PopmenuDirective
|
|
689
|
-
]
|
|
690
|
-
}]
|
|
691
|
-
}] });
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Generated bundle index. Do not edit.
|
|
695
|
-
*/
|
|
696
|
-
|
|
697
|
-
export { PopmenuComponent, PopmenuDirective, PopmenuModule };
|
|
698
|
-
//# sourceMappingURL=agorapulse-ui-components-popmenu.mjs.map
|