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