@ethlete/cdk 4.48.1 → 4.49.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/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-cdk.mjs +859 -880
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/forms/utils/decorated-form-field.base.d.ts +1 -1
- package/lib/components/forms/utils/decorated-input.base.d.ts +1 -1
- package/lib/components/forms/utils/input.base.d.ts +1 -1
- package/lib/components/overlay/components/bottom-sheet/services/bottom-sheet-base.service.d.ts +1 -1
- package/lib/components/overlay/components/dialog/services/dialog-base.service.d.ts +1 -1
- package/lib/components/tabs/utils/paginated-tab-header.directive.d.ts +1 -1
- package/package.json +8 -10
- package/esm2022/ethlete-cdk.mjs +0 -5
- package/esm2022/index.mjs +0 -24
- package/esm2022/lib/components/accordion/accordion.imports.mjs +0 -15
- package/esm2022/lib/components/accordion/components/accordion/accordion.component.animations.mjs +0 -9
- package/esm2022/lib/components/accordion/components/accordion/accordion.component.constants.mjs +0 -3
- package/esm2022/lib/components/accordion/components/accordion/accordion.component.mjs +0 -76
- package/esm2022/lib/components/accordion/components/accordion/index.mjs +0 -4
- package/esm2022/lib/components/accordion/components/accordion-group/accordion-group.component.mjs +0 -53
- package/esm2022/lib/components/accordion/components/accordion-group/index.mjs +0 -2
- package/esm2022/lib/components/accordion/partials/accordion-hint/accordion-hint.directive.mjs +0 -17
- package/esm2022/lib/components/accordion/partials/accordion-hint/index.mjs +0 -2
- package/esm2022/lib/components/accordion/partials/accordion-hint-wrapper/accordion-hint-wrapper.directive.constants.mjs +0 -3
- package/esm2022/lib/components/accordion/partials/accordion-hint-wrapper/accordion-hint-wrapper.directive.mjs +0 -20
- package/esm2022/lib/components/accordion/partials/accordion-hint-wrapper/index.mjs +0 -3
- package/esm2022/lib/components/accordion/partials/accordion-label/accordion-label.directive.mjs +0 -17
- package/esm2022/lib/components/accordion/partials/accordion-label/index.mjs +0 -2
- package/esm2022/lib/components/accordion/partials/accordion-label-wrapper/accordion-label-wrapper.directive.constants.mjs +0 -3
- package/esm2022/lib/components/accordion/partials/accordion-label-wrapper/accordion-label-wrapper.directive.mjs +0 -20
- package/esm2022/lib/components/accordion/partials/accordion-label-wrapper/index.mjs +0 -3
- package/esm2022/lib/components/accordion/public-api/index.mjs +0 -8
- package/esm2022/lib/components/bracket/bracket.imports.mjs +0 -5
- package/esm2022/lib/components/bracket/components/bracket/bracket.component.mjs +0 -333
- package/esm2022/lib/components/bracket/components/bracket/bracket.component.types.mjs +0 -2
- package/esm2022/lib/components/bracket/components/bracket/index.mjs +0 -3
- package/esm2022/lib/components/bracket/components/new-bracket/bracket-new.mjs +0 -1044
- package/esm2022/lib/components/bracket/components/new-bracket/draw-man.mjs +0 -197
- package/esm2022/lib/components/bracket/components/new-bracket/grid-definitions.mjs +0 -47
- package/esm2022/lib/components/bracket/components/new-bracket/grid-placements.mjs +0 -105
- package/esm2022/lib/components/bracket/components/new-bracket/index.mjs +0 -8
- package/esm2022/lib/components/bracket/components/new-bracket/journey-highlight.mjs +0 -18
- package/esm2022/lib/components/bracket/components/new-bracket/new-bracket-default-match.component.mjs +0 -17
- package/esm2022/lib/components/bracket/components/new-bracket/new-bracket-default-round-header.component.mjs +0 -16
- package/esm2022/lib/components/bracket/components/new-bracket/new-bracket.component.mjs +0 -107
- package/esm2022/lib/components/bracket/constants/bracket.constants.mjs +0 -12
- package/esm2022/lib/components/bracket/constants/index.mjs +0 -2
- package/esm2022/lib/components/bracket/directives/bracket-match/bracket-match.directive.mjs +0 -19
- package/esm2022/lib/components/bracket/directives/bracket-match/index.mjs +0 -2
- package/esm2022/lib/components/bracket/directives/bracket-round/bracket-round.directive.mjs +0 -19
- package/esm2022/lib/components/bracket/directives/bracket-round/index.mjs +0 -2
- package/esm2022/lib/components/bracket/partials/bracket-match/bracket-match.component.mjs +0 -19
- package/esm2022/lib/components/bracket/partials/bracket-match/index.mjs +0 -2
- package/esm2022/lib/components/bracket/partials/bracket-round-header/bracket-round-header.component.mjs +0 -19
- package/esm2022/lib/components/bracket/partials/bracket-round-header/index.mjs +0 -2
- package/esm2022/lib/components/bracket/public-api/index.mjs +0 -14
- package/esm2022/lib/components/bracket/stories/dummy-data/ET_DUMMY_DATA_DOUBLE_SYNC.mjs +0 -1116
- package/esm2022/lib/components/bracket/stories/dummy-data/ET_DUMMY_DATA_SINGLE.mjs +0 -2691
- package/esm2022/lib/components/bracket/stories/dummy-data/ET_DUMMY_DATA_SWISS.mjs +0 -72479
- package/esm2022/lib/components/bracket/stories/dummy-data/ET_DUMMY_DATE_DOUBLE_ASYNC.mjs +0 -1275
- package/esm2022/lib/components/bracket/stories/dummy-data/FIFA_DUMMY_DATA_DOUBLE.mjs +0 -2453
- package/esm2022/lib/components/bracket/stories/dummy-data/FIFA_DUMMY_DATA_SINGLE.mjs +0 -2570
- package/esm2022/lib/components/bracket/stories/dummy-data/index.mjs +0 -7
- package/esm2022/lib/components/bracket/types/bracket-config.types.mjs +0 -2
- package/esm2022/lib/components/bracket/types/bracket.types.mjs +0 -2
- package/esm2022/lib/components/bracket/types/index.mjs +0 -3
- package/esm2022/lib/components/bracket/utils/bracket-config.utils.mjs +0 -13
- package/esm2022/lib/components/bracket/utils/bracket.utils.mjs +0 -339
- package/esm2022/lib/components/bracket/utils/index.mjs +0 -3
- package/esm2022/lib/components/button/button.imports.mjs +0 -4
- package/esm2022/lib/components/button/components/button/button.component.mjs +0 -18
- package/esm2022/lib/components/button/components/button/index.mjs +0 -2
- package/esm2022/lib/components/button/components/query-button/index.mjs +0 -2
- package/esm2022/lib/components/button/components/query-button/query-button.component.mjs +0 -26
- package/esm2022/lib/components/button/directives/button/button.directive.mjs +0 -69
- package/esm2022/lib/components/button/directives/button/index.mjs +0 -2
- package/esm2022/lib/components/button/directives/query-button/index.mjs +0 -2
- package/esm2022/lib/components/button/directives/query-button/query-button.directive.mjs +0 -136
- package/esm2022/lib/components/button/public-api/index.mjs +0 -6
- package/esm2022/lib/components/carousel/carousel.component.mjs +0 -51
- package/esm2022/lib/components/carousel/carousel.directive.mjs +0 -150
- package/esm2022/lib/components/carousel/carousel.imports.mjs +0 -12
- package/esm2022/lib/components/carousel/controls/carousel-item-nav.component.mjs +0 -64
- package/esm2022/lib/components/carousel/controls/carousel-item-nav.directive.mjs +0 -34
- package/esm2022/lib/components/carousel/controls/carousel-next-button.directive.mjs +0 -45
- package/esm2022/lib/components/carousel/controls/carousel-previous-button.directive.mjs +0 -45
- package/esm2022/lib/components/carousel/controls/carousel-toggle-auto-play-button.directive.mjs +0 -43
- package/esm2022/lib/components/carousel/controls/index.mjs +0 -6
- package/esm2022/lib/components/carousel/et-carousel-item.component.mjs +0 -24
- package/esm2022/lib/components/carousel/et-carousel-item.directive.mjs +0 -46
- package/esm2022/lib/components/carousel/public-api/index.mjs +0 -7
- package/esm2022/lib/components/filter/public-api/index.mjs +0 -7
- package/esm2022/lib/components/filter/rich-filter/components/rich-filter-host/index.mjs +0 -2
- package/esm2022/lib/components/filter/rich-filter/components/rich-filter-host/rich-filter-host.component.mjs +0 -70
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-button/index.mjs +0 -2
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-button/rich-filter-button.directive.mjs +0 -32
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-button-slot/index.mjs +0 -2
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-button-slot/rich-filter-button-slot.directive.mjs +0 -32
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-content/index.mjs +0 -2
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-content/rich-filter-content.directive.mjs +0 -32
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-top/index.mjs +0 -2
- package/esm2022/lib/components/filter/rich-filter/directives/rich-filter-top/rich-filter-top.directive.mjs +0 -29
- package/esm2022/lib/components/filter/rich-filter/rich-filter.imports.mjs +0 -13
- package/esm2022/lib/components/forms/components/checkbox/checkbox.imports.mjs +0 -13
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox/checkbox.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox-field/checkbox-field.component.mjs +0 -47
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox-group/checkbox-group.component.mjs +0 -17
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox/checkbox.directive.mjs +0 -40
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-field/checkbox-field.directive.mjs +0 -39
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group/checkbox-group.directive.mjs +0 -83
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group-control/checkbox-group-control.directive.mjs +0 -31
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group-control/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/error/components/error/error.component.mjs +0 -55
- package/esm2022/lib/components/forms/components/error/components/error/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/color-input/color-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/color-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/date-input/date-input.component.mjs +0 -27
- package/esm2022/lib/components/forms/components/input/components/date-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/date-time-input/date-time-input.component.mjs +0 -27
- package/esm2022/lib/components/forms/components/input/components/date-time-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/email-input/email-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/email-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/input-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/input-field/input-field.component.mjs +0 -55
- package/esm2022/lib/components/forms/components/input/components/number-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/number-input/number-input.component.mjs +0 -27
- package/esm2022/lib/components/forms/components/input/components/password-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/password-input/password-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/search-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/search-input/search-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/tel-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/tel-input/tel-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/text-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/text-input/text-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/components/textarea-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/textarea-input/textarea-input.component.mjs +0 -32
- package/esm2022/lib/components/forms/components/input/components/time-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/components/time-input/time-input.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/input/directives/autosize-textarea/autosize-textarea.directive.mjs +0 -51
- package/esm2022/lib/components/forms/components/input/directives/autosize-textarea/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/color-input/color-input.directive.mjs +0 -50
- package/esm2022/lib/components/forms/components/input/directives/color-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/date-input/date-input.directive.mjs +0 -61
- package/esm2022/lib/components/forms/components/input/directives/date-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/date-time-input/date-time-input.directive.mjs +0 -61
- package/esm2022/lib/components/forms/components/input/directives/date-time-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/email-input/email-input.directive.mjs +0 -50
- package/esm2022/lib/components/forms/components/input/directives/email-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/if-supports-show-picker/if-supports-show-picker.directive.mjs +0 -78
- package/esm2022/lib/components/forms/components/input/directives/if-supports-show-picker/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/number-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/number-input/number-input.directive.mjs +0 -51
- package/esm2022/lib/components/forms/components/input/directives/password-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/password-input/password-input.directive.mjs +0 -54
- package/esm2022/lib/components/forms/components/input/directives/search-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/search-input/search-input.directive.mjs +0 -58
- package/esm2022/lib/components/forms/components/input/directives/show-picker-trigger/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/show-picker-trigger/show-picker-trigger.directive.mjs +0 -42
- package/esm2022/lib/components/forms/components/input/directives/tel-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/tel-input/tel-input.directive.mjs +0 -50
- package/esm2022/lib/components/forms/components/input/directives/text-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/text-input/text-input.directive.mjs +0 -50
- package/esm2022/lib/components/forms/components/input/directives/textarea-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/textarea-input/textarea-input.directive.mjs +0 -50
- package/esm2022/lib/components/forms/components/input/directives/time-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/directives/time-input/time-input.directive.mjs +0 -61
- package/esm2022/lib/components/forms/components/input/input.imports.mjs +0 -47
- package/esm2022/lib/components/forms/components/input/partials/password-input-toggle/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/partials/password-input-toggle/password-input-toggle.component.mjs +0 -22
- package/esm2022/lib/components/forms/components/input/partials/search-input-clear/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/input/partials/search-input-clear/search-input-clear.component.mjs +0 -22
- package/esm2022/lib/components/forms/components/label/components/label/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/label/components/label/label.component.mjs +0 -51
- package/esm2022/lib/components/forms/components/label/directives/label-suffix/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/label/directives/label-suffix/label-suffix.directive.mjs +0 -27
- package/esm2022/lib/components/forms/components/label/label.imports.mjs +0 -4
- package/esm2022/lib/components/forms/components/radio/components/radio/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/components/radio/radio.component.mjs +0 -29
- package/esm2022/lib/components/forms/components/radio/components/radio-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/components/radio-field/radio-field.component.mjs +0 -27
- package/esm2022/lib/components/forms/components/radio/components/radio-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/components/radio-group/radio-group.component.mjs +0 -45
- package/esm2022/lib/components/forms/components/radio/directives/radio/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/directives/radio/radio.directive.mjs +0 -60
- package/esm2022/lib/components/forms/components/radio/directives/radio-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/directives/radio-field/radio-field.directive.mjs +0 -36
- package/esm2022/lib/components/forms/components/radio/directives/radio-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/directives/radio-group/radio-group.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/radio/radio.imports.mjs +0 -6
- package/esm2022/lib/components/forms/components/radio/types/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/radio/types/radio.types.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button/segmented-button.component.mjs +0 -38
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button-field/segmented-button-field.component.mjs +0 -25
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/components/segmented-button-group/segmented-button-group.component.mjs +0 -51
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button/segmented-button.directive.mjs +0 -70
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-field/segmented-button-field.directive.mjs +0 -36
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-group/segmented-button-group.directive.mjs +0 -63
- package/esm2022/lib/components/forms/components/segmented-button/segmented-button.imports.mjs +0 -9
- package/esm2022/lib/components/forms/components/select/components/combobox/combobox.imports.mjs +0 -23
- package/esm2022/lib/components/forms/components/select/components/combobox/components/combobox/combobox.component.mjs +0 -78
- package/esm2022/lib/components/forms/components/select/components/combobox/components/combobox/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/constants/combobox.constants.mjs +0 -6
- package/esm2022/lib/components/forms/components/select/components/combobox/constants/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox/combobox.directive.mjs +0 -658
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-empty-template/combobox-body-empty-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-empty-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-error-template/combobox-body-error-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-error-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-loading-template/combobox-body-loading-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-loading-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-more-items-hint-template/combobox-body-more-items-hint-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-body-more-items-hint-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-option-template/combobox-option-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-option-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-selected-option-template/combobox-selected-option-template.directive.mjs +0 -30
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox-selected-option-template/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/partials/combobox-body/combobox-body.component.mjs +0 -78
- package/esm2022/lib/components/forms/components/select/components/combobox/partials/combobox-body/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/partials/combobox-option/combobox-option.component.mjs +0 -71
- package/esm2022/lib/components/forms/components/select/components/combobox/partials/combobox-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/private/combobox.private.errors.mjs +0 -22
- package/esm2022/lib/components/forms/components/select/components/combobox/private/combobox.private.types.mjs +0 -5
- package/esm2022/lib/components/forms/components/select/components/combobox/private/index.mjs +0 -3
- package/esm2022/lib/components/forms/components/select/components/combobox/types/combobox.types.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/types/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/combobox/utils/combobox-config.utils.mjs +0 -13
- package/esm2022/lib/components/forms/components/select/components/combobox/utils/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/components/native-select/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/components/native-select/native-select.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/select/components/native-select/directives/native-select-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/directives/native-select-input/native-select-input.directive.mjs +0 -58
- package/esm2022/lib/components/forms/components/select/components/native-select/directives/native-select-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/directives/native-select-option/native-select-option.directive.mjs +0 -45
- package/esm2022/lib/components/forms/components/select/components/native-select/native-select.imports.mjs +0 -19
- package/esm2022/lib/components/forms/components/select/components/native-select/partials/native-select-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/partials/native-select-option/native-select-option.component.mjs +0 -32
- package/esm2022/lib/components/forms/components/select/components/native-select/types/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/native-select/types/select.types.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/components/select/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/components/select/select.component.mjs +0 -37
- package/esm2022/lib/components/forms/components/select/components/select/directives/select/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/directives/select/select.directive.mjs +0 -303
- package/esm2022/lib/components/forms/components/select/components/select/directives/select-body/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/directives/select-body/select-body.directive.mjs +0 -53
- package/esm2022/lib/components/forms/components/select/components/select/directives/select-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/directives/select-option/select-option.directive.mjs +0 -106
- package/esm2022/lib/components/forms/components/select/components/select/partials/select-body/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/partials/select-body/select-body.component.mjs +0 -41
- package/esm2022/lib/components/forms/components/select/components/select/partials/select-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/partials/select-option/select-option.component.mjs +0 -28
- package/esm2022/lib/components/forms/components/select/components/select/private/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/private/select.private.types.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select/select.imports.mjs +0 -15
- package/esm2022/lib/components/forms/components/select/components/select-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/components/select-field/select-field.component.mjs +0 -58
- package/esm2022/lib/components/forms/components/select/directives/select-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/select/directives/select-field/select-field.directive.mjs +0 -19
- package/esm2022/lib/components/forms/components/selection-list/components/selection-list-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/selection-list/components/selection-list-field/selection-list-field.component.mjs +0 -40
- package/esm2022/lib/components/forms/components/selection-list/components/selection-list-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/selection-list/components/selection-list-option/selection-list-option.component.mjs +0 -29
- package/esm2022/lib/components/forms/components/selection-list/directives/selection-list-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/selection-list/directives/selection-list-field/selection-list-field.directive.mjs +0 -125
- package/esm2022/lib/components/forms/components/selection-list/directives/selection-list-option/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/selection-list/directives/selection-list-option/selection-list-option.directive.mjs +0 -110
- package/esm2022/lib/components/forms/components/selection-list/selection-list.imports.mjs +0 -4
- package/esm2022/lib/components/forms/components/slide-toggle/components/slide-toggle/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/slide-toggle/components/slide-toggle/slide-toggle.component.mjs +0 -24
- package/esm2022/lib/components/forms/components/slide-toggle/components/slide-toggle-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/slide-toggle/components/slide-toggle-field/slide-toggle-field.component.mjs +0 -53
- package/esm2022/lib/components/forms/components/slide-toggle/directives/slide-toggle/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/slide-toggle/directives/slide-toggle/slide-toggle.directive.mjs +0 -38
- package/esm2022/lib/components/forms/components/slide-toggle/slide-toggle.imports.mjs +0 -5
- package/esm2022/lib/components/forms/components/slider/components/slider/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/slider/components/slider/slider.component.mjs +0 -331
- package/esm2022/lib/components/forms/components/slider/components/slider-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/components/slider/components/slider-field/slider-field.component.mjs +0 -53
- package/esm2022/lib/components/forms/components/slider/slider.imports.mjs +0 -5
- package/esm2022/lib/components/forms/directives/dynamic-form-field/dynamic-form-field.directive.mjs +0 -41
- package/esm2022/lib/components/forms/directives/dynamic-form-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/dynamic-form-group/dynamic-form-group.directive.mjs +0 -41
- package/esm2022/lib/components/forms/directives/dynamic-form-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/expose-input-vars/expose-input-vars.directive.mjs +0 -83
- package/esm2022/lib/components/forms/directives/expose-input-vars/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/if-input-empty/if-input-empty.directive.mjs +0 -40
- package/esm2022/lib/components/forms/directives/if-input-empty/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/if-input-filled/if-input-filled.directive.mjs +0 -40
- package/esm2022/lib/components/forms/directives/if-input-filled/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/input/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/input/input.directive.mjs +0 -314
- package/esm2022/lib/components/forms/directives/input-prefix/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/input-prefix/input-prefix.directive.mjs +0 -30
- package/esm2022/lib/components/forms/directives/input-suffix/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/input-suffix/input-suffix.directive.mjs +0 -30
- package/esm2022/lib/components/forms/directives/native-input-ref/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/native-input-ref/native-input-ref.directive.mjs +0 -19
- package/esm2022/lib/components/forms/directives/static-form-field/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/static-form-field/static-form-field.directive.mjs +0 -76
- package/esm2022/lib/components/forms/directives/static-form-group/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/static-form-group/static-form-group.directive.mjs +0 -29
- package/esm2022/lib/components/forms/directives/writeable-input/index.mjs +0 -2
- package/esm2022/lib/components/forms/directives/writeable-input/writeable-input.directive.mjs +0 -57
- package/esm2022/lib/components/forms/public-api/index.mjs +0 -113
- package/esm2022/lib/components/forms/services/default-validator-errors.service.mjs +0 -54
- package/esm2022/lib/components/forms/services/form-field-state.service.mjs +0 -32
- package/esm2022/lib/components/forms/services/form-group-state.service.mjs +0 -21
- package/esm2022/lib/components/forms/services/index.mjs +0 -5
- package/esm2022/lib/components/forms/services/input-state.service.mjs +0 -72
- package/esm2022/lib/components/forms/types/index.mjs +0 -2
- package/esm2022/lib/components/forms/types/input.types.mjs +0 -2
- package/esm2022/lib/components/forms/utils/decorated-form-field.base.mjs +0 -19
- package/esm2022/lib/components/forms/utils/decorated-input.base.mjs +0 -48
- package/esm2022/lib/components/forms/utils/form-changes-tracker.util.mjs +0 -31
- package/esm2022/lib/components/forms/utils/index.mjs +0 -5
- package/esm2022/lib/components/forms/utils/input.base.mjs +0 -27
- package/esm2022/lib/components/icons/chevron-icon/chevron-icon.component.mjs +0 -37
- package/esm2022/lib/components/icons/chevron-icon/index.mjs +0 -2
- package/esm2022/lib/components/icons/icon.imports.mjs +0 -4
- package/esm2022/lib/components/icons/public-api/index.mjs +0 -4
- package/esm2022/lib/components/icons/times-icon/index.mjs +0 -2
- package/esm2022/lib/components/icons/times-icon/times-icon.component.mjs +0 -37
- package/esm2022/lib/components/masonry/components/masonry/index.mjs +0 -2
- package/esm2022/lib/components/masonry/components/masonry/masonry.component.mjs +0 -213
- package/esm2022/lib/components/masonry/masonry.imports.mjs +0 -4
- package/esm2022/lib/components/masonry/partials/masonry-item/index.mjs +0 -2
- package/esm2022/lib/components/masonry/partials/masonry-item/masonry-item.component.mjs +0 -74
- package/esm2022/lib/components/masonry/public-api/index.mjs +0 -5
- package/esm2022/lib/components/masonry/types/index.mjs +0 -2
- package/esm2022/lib/components/masonry/types/masonry.types.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/bottom-sheet.imports.mjs +0 -21
- package/esm2022/lib/components/overlay/components/bottom-sheet/components/bottom-sheet-container/bottom-sheet-container.component.mjs +0 -54
- package/esm2022/lib/components/overlay/components/bottom-sheet/components/bottom-sheet-container/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/constants/bottom-sheet.constants.mjs +0 -56
- package/esm2022/lib/components/overlay/components/bottom-sheet/constants/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-container-base/bottom-sheet-container-base.component.mjs +0 -46
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-container-base/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-drag-handle/bottom-sheet-drag-handle.component.mjs +0 -115
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-drag-handle/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-title/bottom-sheet-title.directive.mjs +0 -42
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-title/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/services/bottom-sheet-base.service.mjs +0 -117
- package/esm2022/lib/components/overlay/components/bottom-sheet/services/bottom-sheet-swipe-handler.service.mjs +0 -57
- package/esm2022/lib/components/overlay/components/bottom-sheet/services/bottom-sheet.service.mjs +0 -34
- package/esm2022/lib/components/overlay/components/bottom-sheet/services/index.mjs +0 -4
- package/esm2022/lib/components/overlay/components/bottom-sheet/types/bottom-sheet.types.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/bottom-sheet/utils/bottom-sheet-config.mjs +0 -10
- package/esm2022/lib/components/overlay/components/bottom-sheet/utils/bottom-sheet-ref.mjs +0 -96
- package/esm2022/lib/components/overlay/components/bottom-sheet/utils/bottom-sheet.utils.mjs +0 -22
- package/esm2022/lib/components/overlay/components/bottom-sheet/utils/index.mjs +0 -4
- package/esm2022/lib/components/overlay/components/dialog/components/dialog-container/dialog-container.component.mjs +0 -54
- package/esm2022/lib/components/overlay/components/dialog/components/dialog-container/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/constants/dialog.constants.mjs +0 -52
- package/esm2022/lib/components/overlay/components/dialog/constants/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/dialog.imports.mjs +0 -17
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-close/dialog-close.directive.mjs +0 -67
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-close/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-container-base/dialog-container-base.component.mjs +0 -46
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-container-base/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-title/dialog-title.directive.mjs +0 -42
- package/esm2022/lib/components/overlay/components/dialog/partials/dialog-title/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/services/dialog-base.service.mjs +0 -112
- package/esm2022/lib/components/overlay/components/dialog/services/dialog.service.mjs +0 -34
- package/esm2022/lib/components/overlay/components/dialog/services/index.mjs +0 -3
- package/esm2022/lib/components/overlay/components/dialog/types/dialog.types.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/dialog/utils/dialog-config.mjs +0 -10
- package/esm2022/lib/components/overlay/components/dialog/utils/dialog-ref.mjs +0 -127
- package/esm2022/lib/components/overlay/components/dialog/utils/dialog.utils.mjs +0 -22
- package/esm2022/lib/components/overlay/components/dialog/utils/index.mjs +0 -4
- package/esm2022/lib/components/overlay/components/menu/components/menu/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/components/menu/menu.component.mjs +0 -202
- package/esm2022/lib/components/overlay/components/menu/components/menu-checkbox-item/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/components/menu-checkbox-item/menu-checkbox-item.component.mjs +0 -86
- package/esm2022/lib/components/overlay/components/menu/components/menu-container/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/components/menu-container/menu-container.component.mjs +0 -47
- package/esm2022/lib/components/overlay/components/menu/components/menu-radio-item/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/components/menu-radio-item/menu-radio-item.component.mjs +0 -77
- package/esm2022/lib/components/overlay/components/menu/directives/menu-checkbox-group/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-checkbox-group/menu-checkbox-group.directive.mjs +0 -31
- package/esm2022/lib/components/overlay/components/menu/directives/menu-group/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-group/menu-group.directive.mjs +0 -43
- package/esm2022/lib/components/overlay/components/menu/directives/menu-group-title/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-group-title/menu-group-title.directive.mjs +0 -41
- package/esm2022/lib/components/overlay/components/menu/directives/menu-item/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-item/menu-item.directive.mjs +0 -98
- package/esm2022/lib/components/overlay/components/menu/directives/menu-radio-group/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-radio-group/menu-radio-group.directive.mjs +0 -45
- package/esm2022/lib/components/overlay/components/menu/directives/menu-search-template/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-search-template/menu-search-template.directive.mjs +0 -29
- package/esm2022/lib/components/overlay/components/menu/directives/menu-trigger/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/menu/directives/menu-trigger/menu-trigger.directive.mjs +0 -183
- package/esm2022/lib/components/overlay/components/menu/menu.imports.mjs +0 -23
- package/esm2022/lib/components/overlay/components/menu-deprecated/context-menu-trigger.mjs +0 -165
- package/esm2022/lib/components/overlay/components/menu-deprecated/index.mjs +0 -17
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-aim.mjs +0 -136
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-bar.mjs +0 -112
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-base.mjs +0 -171
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-errors.mjs +0 -7
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-group.mjs +0 -25
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-interface.mjs +0 -3
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-item-checkbox.mjs +0 -38
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-item-radio.mjs +0 -55
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-item-selectable.mjs +0 -38
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-item.mjs +0 -212
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-module.mjs +0 -58
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-stack.mjs +0 -99
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-trigger-base.mjs +0 -80
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu-trigger.mjs +0 -250
- package/esm2022/lib/components/overlay/components/menu-deprecated/menu.mjs +0 -115
- package/esm2022/lib/components/overlay/components/menu-deprecated/pointer-focus-tracker.mjs +0 -29
- package/esm2022/lib/components/overlay/components/overlay/components/overlay-container/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/components/overlay-container/overlay-container.component.mjs +0 -287
- package/esm2022/lib/components/overlay/components/overlay/constants/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/constants/overlay.constants.mjs +0 -26
- package/esm2022/lib/components/overlay/components/overlay/overlay.imports.mjs +0 -40
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-back-or-close/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-back-or-close/overlay-back-or-close.directive.mjs +0 -43
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-body/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-body/overlay-body.component.mjs +0 -134
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-close/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-close/overlay-close.directive.mjs +0 -61
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-footer/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-footer/overlay-footer.directive.mjs +0 -45
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-header/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-header/overlay-header.directive.mjs +0 -45
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-header-template/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-header-template/overlay-header-template.directive.mjs +0 -50
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-main/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-main/overlay-main.directive.mjs +0 -53
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-route-header-template-outlet/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-route-header-template-outlet/overlay-route-header-template-outlet.component.mjs +0 -41
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-link/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-link/overlay-router-link.directive.mjs +0 -46
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-outlet/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-outlet/overlay-router-outlet.component.mjs +0 -137
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-outlet-disabled-template/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-router-outlet-disabled-template/overlay-router-outlet-disabled-template.directive.mjs +0 -26
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-shared-route-template/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-shared-route-template/overlay-shared-route-template.directive.mjs +0 -26
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-shared-route-template-outlet/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-shared-route-template-outlet/overlay-shared-route-template-outlet.component.mjs +0 -26
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-sidebar/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-sidebar/overlay-sidebar.component.mjs +0 -54
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-sidebar-page/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-sidebar-page/overlay-sidebar-page.component.mjs +0 -52
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-title/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-title/overlay-title.directive.mjs +0 -39
- package/esm2022/lib/components/overlay/components/overlay/services/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/services/overlay.service.mjs +0 -313
- package/esm2022/lib/components/overlay/components/overlay/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/overlay/types/overlay.types.mjs +0 -6
- package/esm2022/lib/components/overlay/components/overlay/utils/filter-overlay.mjs +0 -124
- package/esm2022/lib/components/overlay/components/overlay/utils/index.mjs +0 -10
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-config.mjs +0 -7
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-handler-link.directive.mjs +0 -33
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-handler.mjs +0 -159
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-position-builder.mjs +0 -224
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-ref.mjs +0 -173
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-router.mjs +0 -190
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay.utils.mjs +0 -13
- package/esm2022/lib/components/overlay/components/overlay/utils/sidebar-overlay.mjs +0 -54
- package/esm2022/lib/components/overlay/components/toggletip/components/toggletip/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/components/toggletip/toggletip.component.mjs +0 -69
- package/esm2022/lib/components/overlay/components/toggletip/constants/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/constants/toggletip.constants.mjs +0 -12
- package/esm2022/lib/components/overlay/components/toggletip/directives/toggletip/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/directives/toggletip/toggletip.directive.mjs +0 -136
- package/esm2022/lib/components/overlay/components/toggletip/partials/toggletip-close/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/partials/toggletip-close/toggletip-close.directive.mjs +0 -25
- package/esm2022/lib/components/overlay/components/toggletip/toggletip.imports.mjs +0 -3
- package/esm2022/lib/components/overlay/components/toggletip/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/types/toggletip.types.mjs +0 -2
- package/esm2022/lib/components/overlay/components/toggletip/utils/index.mjs +0 -3
- package/esm2022/lib/components/overlay/components/toggletip/utils/toggletip-config.mjs +0 -6
- package/esm2022/lib/components/overlay/components/toggletip/utils/toggletip.util.mjs +0 -6
- package/esm2022/lib/components/overlay/components/tooltip/components/tooltip/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/tooltip/components/tooltip/tooltip.component.mjs +0 -67
- package/esm2022/lib/components/overlay/components/tooltip/constants/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/tooltip/constants/tooltip.constants.mjs +0 -12
- package/esm2022/lib/components/overlay/components/tooltip/directives/tooltip/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/tooltip/directives/tooltip/tooltip.directive.mjs +0 -171
- package/esm2022/lib/components/overlay/components/tooltip/tooltip.imports.mjs +0 -3
- package/esm2022/lib/components/overlay/components/tooltip/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/components/tooltip/types/tooltip.types.mjs +0 -2
- package/esm2022/lib/components/overlay/components/tooltip/utils/index.mjs +0 -3
- package/esm2022/lib/components/overlay/components/tooltip/utils/tooltip-config.mjs +0 -6
- package/esm2022/lib/components/overlay/components/tooltip/utils/tooltip.util.mjs +0 -6
- package/esm2022/lib/components/overlay/directives/dynamic-overlay-title/dynamic-overlay-title.directive.mjs +0 -49
- package/esm2022/lib/components/overlay/directives/dynamic-overlay-title/index.mjs +0 -2
- package/esm2022/lib/components/overlay/directives/overlay-close-auto-blocker/index.mjs +0 -2
- package/esm2022/lib/components/overlay/directives/overlay-close-auto-blocker/overlay-close-auto-blocker.directive.mjs +0 -51
- package/esm2022/lib/components/overlay/public-api/index.mjs +0 -72
- package/esm2022/lib/components/overlay/services/dynamic-overlay.service.mjs +0 -31
- package/esm2022/lib/components/overlay/services/index.mjs +0 -2
- package/esm2022/lib/components/overlay/types/dynamic-overlay.types.mjs +0 -2
- package/esm2022/lib/components/overlay/types/index.mjs +0 -2
- package/esm2022/lib/components/overlay/utils/index.mjs +0 -2
- package/esm2022/lib/components/overlay/utils/overlay-dismiss-checker.util.mjs +0 -105
- package/esm2022/lib/components/pagination/components/pagination/index.mjs +0 -2
- package/esm2022/lib/components/pagination/components/pagination/pagination.component.mjs +0 -110
- package/esm2022/lib/components/pagination/pagination.imports.mjs +0 -3
- package/esm2022/lib/components/pagination/partials/pagination-link/index.mjs +0 -2
- package/esm2022/lib/components/pagination/partials/pagination-link/pagination-link.directive.mjs +0 -32
- package/esm2022/lib/components/pagination/public-api/index.mjs +0 -7
- package/esm2022/lib/components/pagination/services/index.mjs +0 -2
- package/esm2022/lib/components/pagination/services/pagination-head.service.mjs +0 -74
- package/esm2022/lib/components/pagination/types/index.mjs +0 -2
- package/esm2022/lib/components/pagination/types/pagination.types.mjs +0 -2
- package/esm2022/lib/components/pagination/utils/index.mjs +0 -2
- package/esm2022/lib/components/pagination/utils/pagination.util.mjs +0 -98
- package/esm2022/lib/components/picture/components/picture/index.mjs +0 -2
- package/esm2022/lib/components/picture/components/picture/picture.component.mjs +0 -56
- package/esm2022/lib/components/picture/public-api/index.mjs +0 -4
- package/esm2022/lib/components/picture/types/picture.types.mjs +0 -2
- package/esm2022/lib/components/picture/utils/picture.utils.mjs +0 -31
- package/esm2022/lib/components/progress-spinner/index.mjs +0 -2
- package/esm2022/lib/components/progress-spinner/progress-spinner.component.mjs +0 -94
- package/esm2022/lib/components/query-error/components/query-error/index.mjs +0 -2
- package/esm2022/lib/components/query-error/components/query-error/query-error.component.mjs +0 -27
- package/esm2022/lib/components/query-error/directives/query-error/index.mjs +0 -2
- package/esm2022/lib/components/query-error/directives/query-error/query-error.directive.mjs +0 -432
- package/esm2022/lib/components/query-error/public-api/index.mjs +0 -4
- package/esm2022/lib/components/query-error/types/index.mjs +0 -2
- package/esm2022/lib/components/query-error/types/query-error.types.mjs +0 -2
- package/esm2022/lib/components/scrollable/components/scrollable/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/components/scrollable/scrollable.component.mjs +0 -510
- package/esm2022/lib/components/scrollable/components/scrollable-placeholder/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/components/scrollable-placeholder/scrollable-placeholder.component.mjs +0 -26
- package/esm2022/lib/components/scrollable/directives/scrollable-ignore-child/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/directives/scrollable-ignore-child/scrollable-ignore-child.directive.mjs +0 -44
- package/esm2022/lib/components/scrollable/directives/scrollable-is-active-child/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/directives/scrollable-is-active-child/scrollable-is-active-child.directive.mjs +0 -45
- package/esm2022/lib/components/scrollable/directives/scrollable-loading-template/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/directives/scrollable-loading-template/scrollable-loading-template.directive.mjs +0 -31
- package/esm2022/lib/components/scrollable/directives/scrollable-placeholder-item-template/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/directives/scrollable-placeholder-item-template/scrollable-placeholder-item-template.directive.mjs +0 -26
- package/esm2022/lib/components/scrollable/directives/scrollable-placeholder-overlay-template/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/directives/scrollable-placeholder-overlay-template/scrollable-placeholder-overlay-template.directive.mjs +0 -26
- package/esm2022/lib/components/scrollable/public-api/index.mjs +0 -10
- package/esm2022/lib/components/scrollable/scrollable.imports.mjs +0 -17
- package/esm2022/lib/components/scrollable/types/index.mjs +0 -2
- package/esm2022/lib/components/scrollable/types/scrollable.types.mjs +0 -2
- package/esm2022/lib/components/skeleton/components/skeleton/index.mjs +0 -2
- package/esm2022/lib/components/skeleton/components/skeleton/skeleton.component.mjs +0 -25
- package/esm2022/lib/components/skeleton/partials/skeleton-item/index.mjs +0 -2
- package/esm2022/lib/components/skeleton/partials/skeleton-item/skeleton-item.component.mjs +0 -19
- package/esm2022/lib/components/skeleton/public-api/index.mjs +0 -4
- package/esm2022/lib/components/skeleton/skeleton.imports.mjs +0 -4
- package/esm2022/lib/components/sort/components/sort-header/index.mjs +0 -3
- package/esm2022/lib/components/sort/components/sort-header/sort-header.component.mjs +0 -198
- package/esm2022/lib/components/sort/components/sort-header/sort-header.types.mjs +0 -2
- package/esm2022/lib/components/sort/partials/sort/index.mjs +0 -3
- package/esm2022/lib/components/sort/partials/sort/sort.directive.mjs +0 -184
- package/esm2022/lib/components/sort/partials/sort/sort.types.mjs +0 -2
- package/esm2022/lib/components/sort/public-api/index.mjs +0 -6
- package/esm2022/lib/components/sort/services/index.mjs +0 -2
- package/esm2022/lib/components/sort/services/sort-header-intl.mjs +0 -23
- package/esm2022/lib/components/sort/sort.imports.mjs +0 -8
- package/esm2022/lib/components/sort/types/index.mjs +0 -2
- package/esm2022/lib/components/sort/types/sort-direction.mjs +0 -2
- package/esm2022/lib/components/table/components/table/index.mjs +0 -2
- package/esm2022/lib/components/table/components/table/table.component.mjs +0 -145
- package/esm2022/lib/components/table/constants/index.mjs +0 -2
- package/esm2022/lib/components/table/constants/table-data-source.constants.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/cell/cell.directive.mjs +0 -18
- package/esm2022/lib/components/table/partials/cells/cell/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/cell-def/cell-def.directive.mjs +0 -16
- package/esm2022/lib/components/table/partials/cells/cell-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/column-def/column-def.directive.mjs +0 -44
- package/esm2022/lib/components/table/partials/cells/column-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/footer-cell/footer-cell.directive.mjs +0 -18
- package/esm2022/lib/components/table/partials/cells/footer-cell/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/footer-cell-def/footer-cell-def.directive.mjs +0 -16
- package/esm2022/lib/components/table/partials/cells/footer-cell-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/header-cell/header-cell.directive.mjs +0 -19
- package/esm2022/lib/components/table/partials/cells/header-cell/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/header-cell-def/header-cell-def.directive.mjs +0 -16
- package/esm2022/lib/components/table/partials/cells/header-cell-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/text-column/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/cells/text-column/text-column.component.mjs +0 -53
- package/esm2022/lib/components/table/partials/rows/footer-row/footer-row.component.mjs +0 -26
- package/esm2022/lib/components/table/partials/rows/footer-row/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/footer-row-def/footer-row-def.directive.mjs +0 -26
- package/esm2022/lib/components/table/partials/rows/footer-row-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/header-row/header-row.component.mjs +0 -26
- package/esm2022/lib/components/table/partials/rows/header-row/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/header-row-def/header-row-def.directive.mjs +0 -26
- package/esm2022/lib/components/table/partials/rows/header-row-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/no-data-row/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/no-data-row/no-data-row.directive.mjs +0 -20
- package/esm2022/lib/components/table/partials/rows/recycle-rows/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/recycle-rows/recycle-rows.directive.mjs +0 -16
- package/esm2022/lib/components/table/partials/rows/row/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/row/row.component.mjs +0 -26
- package/esm2022/lib/components/table/partials/rows/row-def/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/rows/row-def/row-def.directive.mjs +0 -26
- package/esm2022/lib/components/table/partials/table-busy/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/table-busy/table-busy.directive.mjs +0 -18
- package/esm2022/lib/components/table/partials/table-busy-outlet/index.mjs +0 -2
- package/esm2022/lib/components/table/partials/table-busy-outlet/table-busy-outlet.directive.mjs +0 -15
- package/esm2022/lib/components/table/public-api/index.mjs +0 -24
- package/esm2022/lib/components/table/table.imports.mjs +0 -39
- package/esm2022/lib/components/table/types/index.mjs +0 -2
- package/esm2022/lib/components/table/types/table-data-source.types.mjs +0 -2
- package/esm2022/lib/components/table/utils/index.mjs +0 -2
- package/esm2022/lib/components/table/utils/table-data-source.mjs +0 -168
- package/esm2022/lib/components/tabs/animations/index.mjs +0 -2
- package/esm2022/lib/components/tabs/animations/tabs.animations.mjs +0 -26
- package/esm2022/lib/components/tabs/components/inline-tabs/index.mjs +0 -2
- package/esm2022/lib/components/tabs/components/inline-tabs/inline-tabs.component.mjs +0 -257
- package/esm2022/lib/components/tabs/components/nav-tabs/index.mjs +0 -2
- package/esm2022/lib/components/tabs/components/nav-tabs/nav-tabs.component.mjs +0 -82
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab/inline-tab.component.mjs +0 -88
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-body/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-body/inline-tab-body.component.mjs +0 -133
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-body-host/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-body-host/inline-tab-body-host.directive.mjs +0 -25
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-content/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-content/inline-tab-content.directive.mjs +0 -22
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-header/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-header/inline-tab-header.component.mjs +0 -34
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-label/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-label/inline-tab-label.directive.mjs +0 -30
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-label-wrapper/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-label-wrapper/inline-tab-label-wrapper.directive.mjs +0 -42
- package/esm2022/lib/components/tabs/partials/nav-tabs/nav-tab-link/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/nav-tabs/nav-tab-link/nav-tab-link.directive.mjs +0 -177
- package/esm2022/lib/components/tabs/partials/nav-tabs/nav-tabs-outlet/index.mjs +0 -2
- package/esm2022/lib/components/tabs/partials/nav-tabs/nav-tabs-outlet/nav-tabs-outlet.component.mjs +0 -37
- package/esm2022/lib/components/tabs/public-api/index.mjs +0 -16
- package/esm2022/lib/components/tabs/tab.imports.mjs +0 -25
- package/esm2022/lib/components/tabs/types/index.mjs +0 -2
- package/esm2022/lib/components/tabs/types/tab-config.types.mjs +0 -3
- package/esm2022/lib/components/tabs/utils/active-tab-underline.util.mjs +0 -112
- package/esm2022/lib/components/tabs/utils/index.mjs +0 -3
- package/esm2022/lib/components/tabs/utils/paginated-tab-header.directive.mjs +0 -272
- package/esm2022/lib/services/index.mjs +0 -2
- package/esm2022/lib/services/swipe-handler.service.mjs +0 -102
- package/esm2022/lib/types/index.mjs +0 -2
- package/esm2022/lib/types/swipe.types.mjs +0 -2
- package/esm2022/lib/utils/floating-ui.utils.mjs +0 -15
- package/esm2022/lib/utils/index.mjs +0 -2
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from '../components/pagination';
|
|
2
|
-
export * from '../pagination.imports';
|
|
3
|
-
export * from '../partials/pagination-link';
|
|
4
|
-
export * from '../services';
|
|
5
|
-
export * from '../types';
|
|
6
|
-
export * from '../utils';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi9wdWJsaWMtYXBpL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsVUFBVSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi4vY29tcG9uZW50cy9wYWdpbmF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4uL3BhZ2luYXRpb24uaW1wb3J0cyc7XG5leHBvcnQgKiBmcm9tICcuLi9wYXJ0aWFscy9wYWdpbmF0aW9uLWxpbmsnO1xuZXhwb3J0ICogZnJvbSAnLi4vc2VydmljZXMnO1xuZXhwb3J0ICogZnJvbSAnLi4vdHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi4vdXRpbHMnO1xuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './pagination-head.service';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi9zZXJ2aWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wYWdpbmF0aW9uLWhlYWQuc2VydmljZSc7XG4iXX0=
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { Title } from '@angular/platform-browser';
|
|
4
|
-
import { Router } from '@angular/router';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class PaginationHeadService {
|
|
7
|
-
constructor() {
|
|
8
|
-
this._config = null;
|
|
9
|
-
this._document = inject(DOCUMENT);
|
|
10
|
-
this._titleService = inject(Title);
|
|
11
|
-
this._router = inject(Router);
|
|
12
|
-
this._head = this._document.getElementsByTagName('head')[0];
|
|
13
|
-
}
|
|
14
|
-
get config() {
|
|
15
|
-
return this._config ?? { titleTemplate: null, firstPageTitle: null, addCanonicalTag: false };
|
|
16
|
-
}
|
|
17
|
-
set addCanonicalTag(v) {
|
|
18
|
-
this._config = { ...this.config, addCanonicalTag: v };
|
|
19
|
-
}
|
|
20
|
-
set titleTemplate(v) {
|
|
21
|
-
this._config = { ...this.config, titleTemplate: v };
|
|
22
|
-
}
|
|
23
|
-
set firstPageTitle(v) {
|
|
24
|
-
this._config = { ...this.config, firstPageTitle: v };
|
|
25
|
-
}
|
|
26
|
-
ngOnDestroy() {
|
|
27
|
-
const element = this._getCanonicalElement(false);
|
|
28
|
-
if (element) {
|
|
29
|
-
this._removeCanonicalElement(element);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
_updateHead(page) {
|
|
33
|
-
const { titleTemplate, addCanonicalTag, firstPageTitle } = this.config;
|
|
34
|
-
if (titleTemplate && !titleTemplate.includes('%s')) {
|
|
35
|
-
throw new Error('Title template must contain "%s" placeholder');
|
|
36
|
-
}
|
|
37
|
-
const title = page === 1 && firstPageTitle
|
|
38
|
-
? firstPageTitle
|
|
39
|
-
: titleTemplate
|
|
40
|
-
? titleTemplate.replace('%s', page.toString())
|
|
41
|
-
: null;
|
|
42
|
-
if (title) {
|
|
43
|
-
this._titleService.setTitle(title);
|
|
44
|
-
}
|
|
45
|
-
if (addCanonicalTag) {
|
|
46
|
-
const urlTree = this._router.createUrlTree([], {
|
|
47
|
-
queryParams: { page: page === 1 ? null : page },
|
|
48
|
-
queryParamsHandling: 'merge',
|
|
49
|
-
});
|
|
50
|
-
const relativeUrl = this._router.serializeUrl(urlTree);
|
|
51
|
-
const canonicalUrl = `${window.location.origin}${relativeUrl}`;
|
|
52
|
-
const element = this._getCanonicalElement(true);
|
|
53
|
-
element.setAttribute('rel', 'canonical');
|
|
54
|
-
element.setAttribute('href', canonicalUrl);
|
|
55
|
-
this._head?.appendChild(element);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
_getCanonicalElement(createIfNotExisting) {
|
|
59
|
-
let element = this._document.querySelector(`link[rel='canonical']`) || null;
|
|
60
|
-
if (element === null && createIfNotExisting) {
|
|
61
|
-
element = this._document.createElement('link');
|
|
62
|
-
}
|
|
63
|
-
return element;
|
|
64
|
-
}
|
|
65
|
-
_removeCanonicalElement(element) {
|
|
66
|
-
this._head?.removeChild(element);
|
|
67
|
-
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PaginationHeadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
69
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PaginationHeadService }); }
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i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4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './pagination.types';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi90eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wYWdpbmF0aW9uLnR5cGVzJztcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2RrL3NyYy9saWIvY29tcG9uZW50cy9wYWdpbmF0aW9uL3R5cGVzL3BhZ2luYXRpb24udHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgUGFnaW5hdGVPcHRpb25zIHtcbiAgY3VycmVudFBhZ2U6IG51bWJlcjtcbiAgdG90YWxQYWdlQ291bnQ6IG51bWJlcjtcblxuICAvKipcbiAgICogQGRlZmF1bHQgZmFsc2VcbiAgICovXG4gIG9taXRGaXJzdExhc3Q/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgb21pdFByZXZpb3VzTmV4dD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEBkZWZhdWx0IDJcbiAgICovXG4gIHBhZ2VzQmVmb3JlQWZ0ZXI/OiBudW1iZXI7XG5cbiAgLyoqXG4gICAqIEBkZWZhdWx0IDFcbiAgICovXG4gIGZpcnN0UGFnZT86IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBQYWdpbmF0aW9uSXRlbSB7XG4gIGN1cnJlbnQ6IGJvb2xlYW47XG4gIHBhZ2U6IG51bWJlcjtcbiAgYXJpYUxhYmVsOiBzdHJpbmc7XG4gIGRpc2FibGVkOiBib29sZWFuO1xuICB0eXBlOiAncGFnZScgfCAnaG90TGluayc7XG4gIGV4cGxpY2l0VHlwZTogJ2ZpcnN0JyB8ICdsYXN0JyB8ICdwcmV2aW91cycgfCAnbmV4dCcgfCAnY3VycmVudCcgfCAncGFnZS1udW1iZXItY2xvc2UnIHwgJ3BhZ2UtbnVtYmVyLWZhcic7XG4gIHVybDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFBhZ2luYXRpb25IZWFkU2VydmljZUNvbmZpZyB7XG4gIGZpcnN0UGFnZVRpdGxlOiBzdHJpbmcgfCBudWxsO1xuICB0aXRsZVRlbXBsYXRlOiBzdHJpbmcgfCBudWxsO1xuICBhZGRDYW5vbmljYWxUYWc6IGJvb2xlYW47XG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './pagination.util';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGFnaW5hdGlvbi91dGlscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wYWdpbmF0aW9uLnV0aWwnO1xuIl19
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { clamp } from '@ethlete/core';
|
|
2
|
-
export const paginate = (value) => {
|
|
3
|
-
if (!value) {
|
|
4
|
-
return null;
|
|
5
|
-
}
|
|
6
|
-
const { omitFirstLast = false, omitPreviousNext = false, pagesBeforeAfter = 2, firstPage = 1 } = value;
|
|
7
|
-
const pages = [];
|
|
8
|
-
const activePage = clamp(value.currentPage, firstPage, value.totalPageCount);
|
|
9
|
-
if (value.totalPageCount === 0) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const currentUrl = new URL(window.location.href);
|
|
13
|
-
const createUrl = (page) => {
|
|
14
|
-
const url = new URL(currentUrl.href);
|
|
15
|
-
if (page === 1) {
|
|
16
|
-
url.searchParams.delete('page');
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
url.searchParams.set('page', page.toString());
|
|
20
|
-
}
|
|
21
|
-
return url.toString();
|
|
22
|
-
};
|
|
23
|
-
if (!omitFirstLast) {
|
|
24
|
-
pages.push({
|
|
25
|
-
page: firstPage,
|
|
26
|
-
current: false,
|
|
27
|
-
ariaLabel: 'First page',
|
|
28
|
-
disabled: activePage === firstPage,
|
|
29
|
-
type: 'hotLink',
|
|
30
|
-
explicitType: 'first',
|
|
31
|
-
url: createUrl(firstPage),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
if (!omitPreviousNext) {
|
|
35
|
-
pages.push({
|
|
36
|
-
page: activePage - 1,
|
|
37
|
-
current: false,
|
|
38
|
-
ariaLabel: `Previous page`,
|
|
39
|
-
disabled: activePage === 1,
|
|
40
|
-
type: 'hotLink',
|
|
41
|
-
explicitType: 'previous',
|
|
42
|
-
url: createUrl(activePage - 1),
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
let pagesBefore = activePage - pagesBeforeAfter;
|
|
46
|
-
let pagesAfter = activePage + pagesBeforeAfter;
|
|
47
|
-
if (pagesBefore < firstPage) {
|
|
48
|
-
pagesAfter += firstPage - pagesBefore;
|
|
49
|
-
pagesBefore = firstPage;
|
|
50
|
-
}
|
|
51
|
-
if (pagesAfter > value.totalPageCount) {
|
|
52
|
-
pagesBefore -= pagesAfter - value.totalPageCount;
|
|
53
|
-
pagesAfter = value.totalPageCount;
|
|
54
|
-
}
|
|
55
|
-
// add N pages before and after active page
|
|
56
|
-
for (let i = pagesBefore; i <= pagesAfter; i++) {
|
|
57
|
-
if (i > firstPage - 1 && i <= value.totalPageCount) {
|
|
58
|
-
const explicitType = i === activePage
|
|
59
|
-
? 'current'
|
|
60
|
-
: i === activePage - 1 || i === activePage + 1
|
|
61
|
-
? 'page-number-close'
|
|
62
|
-
: 'page-number-far';
|
|
63
|
-
pages.push({
|
|
64
|
-
page: i,
|
|
65
|
-
current: i === activePage,
|
|
66
|
-
ariaLabel: `Page ${i}`,
|
|
67
|
-
disabled: false,
|
|
68
|
-
type: 'page',
|
|
69
|
-
explicitType,
|
|
70
|
-
url: createUrl(i),
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (!omitPreviousNext) {
|
|
75
|
-
pages.push({
|
|
76
|
-
page: activePage + 1,
|
|
77
|
-
current: false,
|
|
78
|
-
ariaLabel: `Next page`,
|
|
79
|
-
disabled: activePage === value.totalPageCount,
|
|
80
|
-
type: 'hotLink',
|
|
81
|
-
explicitType: 'next',
|
|
82
|
-
url: createUrl(activePage + 1),
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
if (!omitFirstLast) {
|
|
86
|
-
pages.push({
|
|
87
|
-
page: value.totalPageCount,
|
|
88
|
-
current: false,
|
|
89
|
-
ariaLabel: `Last page`,
|
|
90
|
-
disabled: activePage === value.totalPageCount,
|
|
91
|
-
type: 'hotLink',
|
|
92
|
-
explicitType: 'last',
|
|
93
|
-
url: createUrl(value.totalPageCount),
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
return pages;
|
|
97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ZhbHNlLFxuICAgICAgYXJpYUxhYmVsOiBgTmV4dCBwYWdlYCxcbiAgICAgIGRpc2FibGVkOiBhY3RpdmVQYWdlID09PSB2YWx1ZS50b3RhbFBhZ2VDb3VudCxcbiAgICAgIHR5cGU6ICdob3RMaW5rJyxcbiAgICAgIGV4cGxpY2l0VHlwZTogJ25leHQnLFxuICAgICAgdXJsOiBjcmVhdGVVcmwoYWN0aXZlUGFnZSArIDEpLFxuICAgIH0pO1xuICB9XG5cbiAgaWYgKCFvbWl0Rmlyc3RMYXN0KSB7XG4gICAgcGFnZXMucHVzaCh7XG4gICAgICBwYWdlOiB2YWx1ZS50b3RhbFBhZ2VDb3VudCxcbiAgICAgIGN1cnJlbnQ6IGZhbHNlLFxuICAgICAgYXJpYUxhYmVsOiBgTGFzdCBwYWdlYCxcbiAgICAgIGRpc2FibGVkOiBhY3RpdmVQYWdlID09PSB2YWx1ZS50b3RhbFBhZ2VDb3VudCxcbiAgICAgIHR5cGU6ICdob3RMaW5rJyxcbiAgICAgIGV4cGxpY2l0VHlwZTogJ2xhc3QnLFxuICAgICAgdXJsOiBjcmVhdGVVcmwodmFsdWUudG90YWxQYWdlQ291bnQpLFxuICAgIH0pO1xuICB9XG5cbiAgcmV0dXJuIHBhZ2VzO1xufTtcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './picture.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGljdHVyZS9jb21wb25lbnRzL3BpY3R1cmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcGljdHVyZS5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { NgClass } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, inject, input, numberAttribute, viewChild, } from '@angular/core';
|
|
3
|
-
import { outputFromObservable, toObservable } from '@angular/core/rxjs-interop';
|
|
4
|
-
import { fromEvent, map, of, switchMap } from 'rxjs';
|
|
5
|
-
import { IMAGE_CONFIG_TOKEN, normalizePictureSizes, normalizePictureSource } from '../../utils/picture.utils';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class PictureComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this._config = inject(IMAGE_CONFIG_TOKEN, { optional: true });
|
|
10
|
-
this.sources = input([]);
|
|
11
|
-
this.hasPriority = input(false, { transform: booleanAttribute });
|
|
12
|
-
this.imgClass = input(null);
|
|
13
|
-
this.figureClass = input(null);
|
|
14
|
-
this.figcaptionClass = input(null);
|
|
15
|
-
this.pictureClass = input(null);
|
|
16
|
-
this.defaultSrc = input(null);
|
|
17
|
-
this.alt = input(null);
|
|
18
|
-
this.figcaption = input(null);
|
|
19
|
-
this.width = input(null, { transform: numberAttribute });
|
|
20
|
-
this.height = input(null, { transform: numberAttribute });
|
|
21
|
-
this.sizes = input(null, {
|
|
22
|
-
transform: (v) => normalizePictureSizes(v),
|
|
23
|
-
});
|
|
24
|
-
this.img = viewChild('img');
|
|
25
|
-
this.img$ = toObservable(this.img).pipe(map((ref) => ref?.nativeElement ?? null));
|
|
26
|
-
this.imgLoaded = outputFromObservable(this.img$.pipe(switchMap((img) => (img ? fromEvent(img, 'load').pipe(map(() => true)) : of(false)))));
|
|
27
|
-
this.imgError = outputFromObservable(this.img$.pipe(switchMap((img) => (img ? fromEvent(img, 'error').pipe(map(() => true)) : of(false)))));
|
|
28
|
-
this.sourcesWithConfig = computed(() => {
|
|
29
|
-
const sources = this.sources();
|
|
30
|
-
return sources.map((source) => this._combineWithConfig(normalizePictureSource(source)));
|
|
31
|
-
});
|
|
32
|
-
this.defaultSourceWithConfig = computed(() => {
|
|
33
|
-
const defaultSrc = this.defaultSrc();
|
|
34
|
-
return defaultSrc ? this._combineWithConfig(normalizePictureSource(defaultSrc)) : null;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
_combineWithConfig(src) {
|
|
38
|
-
if (!this._config?.baseUrl || src.srcset.startsWith('http')) {
|
|
39
|
-
return src;
|
|
40
|
-
}
|
|
41
|
-
const shouldAppendSlash = !this._config.baseUrl.endsWith('/') && !src.srcset.startsWith('/');
|
|
42
|
-
return {
|
|
43
|
-
...src,
|
|
44
|
-
srcset: `${this._config.baseUrl}${shouldAppendSlash ? '/' : ''}${src.srcset}`,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PictureComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: PictureComponent, isStandalone: true, selector: "et-picture", inputs: { sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, hasPriority: { classPropertyName: "hasPriority", publicName: "hasPriority", isSignal: true, isRequired: false, transformFunction: null }, imgClass: { classPropertyName: "imgClass", publicName: "imgClass", isSignal: true, isRequired: false, transformFunction: null }, figureClass: { classPropertyName: "figureClass", publicName: "figureClass", isSignal: true, isRequired: false, transformFunction: null }, figcaptionClass: { classPropertyName: "figcaptionClass", publicName: "figcaptionClass", isSignal: true, isRequired: false, transformFunction: null }, pictureClass: { classPropertyName: "pictureClass", publicName: "pictureClass", isSignal: true, isRequired: false, transformFunction: null }, defaultSrc: { classPropertyName: "defaultSrc", publicName: "defaultSrc", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, figcaption: { classPropertyName: "figcaption", publicName: "figcaption", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { imgLoaded: "imgLoaded", imgError: "imgError" }, host: { classAttribute: "et-picture" }, viewQueries: [{ propertyName: "img", first: true, predicate: ["img"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure [ngClass]=\"figureClass()\" class=\"et-picture-figure\">\n <picture [ngClass]=\"pictureClass()\" class=\"et-picture-picture\">\n @for (source of sourcesWithConfig(); track source.srcset) {\n <source\n [type]=\"source.type\"\n [attr.srcset]=\"source.srcset\"\n [attr.sizes]=\"(source.sizes ?? sizes()) || null\"\n [attr.media]=\"source.media || null\"\n />\n }\n\n @if (defaultSourceWithConfig(); as source) {\n <img\n #img\n [attr.loading]=\"hasPriority() ? 'eager' : 'lazy'\"\n [attr.fetchpriority]=\"hasPriority() ? 'high' : 'auto'\"\n [ngClass]=\"imgClass()\"\n [attr.srcset]=\"source.srcset\"\n [attr.type]=\"source.type\"\n [attr.alt]=\"alt()\"\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.sizes]=\"source.sizes ?? sizes()\"\n class=\"et-picture-img\"\n />\n }\n </picture>\n\n @if (figcaption()) {\n <figcaption [ngClass]=\"figcaptionClass()\" class=\"et-picture-figcaption\">\n {{ figcaption() }}\n </figcaption>\n }\n</figure>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
49
|
-
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PictureComponent, decorators: [{
|
|
51
|
-
type: Component,
|
|
52
|
-
args: [{ selector: 'et-picture', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgClass], host: {
|
|
53
|
-
class: 'et-picture',
|
|
54
|
-
}, template: "<figure [ngClass]=\"figureClass()\" class=\"et-picture-figure\">\n <picture [ngClass]=\"pictureClass()\" class=\"et-picture-picture\">\n @for (source of sourcesWithConfig(); track source.srcset) {\n <source\n [type]=\"source.type\"\n [attr.srcset]=\"source.srcset\"\n [attr.sizes]=\"(source.sizes ?? sizes()) || null\"\n [attr.media]=\"source.media || null\"\n />\n }\n\n @if (defaultSourceWithConfig(); as source) {\n <img\n #img\n [attr.loading]=\"hasPriority() ? 'eager' : 'lazy'\"\n [attr.fetchpriority]=\"hasPriority() ? 'high' : 'auto'\"\n [ngClass]=\"imgClass()\"\n [attr.srcset]=\"source.srcset\"\n [attr.type]=\"source.type\"\n [attr.alt]=\"alt()\"\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.sizes]=\"source.sizes ?? sizes()\"\n class=\"et-picture-img\"\n />\n }\n </picture>\n\n @if (figcaption()) {\n <figcaption [ngClass]=\"figcaptionClass()\" class=\"et-picture-figcaption\">\n {{ figcaption() }}\n </figcaption>\n }\n</figure>\n" }]
|
|
55
|
-
}] });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGljdHVyZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGljdHVyZS9jb21wb25lbnRzL3BpY3R1cmUvcGljdHVyZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGljdHVyZS9jb21w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ByaW9yaXR5KCkgPyAnZWFnZXInIDogJ2xhenknXCJcbiAgICAgICAgW2F0dHIuZmV0Y2hwcmlvcml0eV09XCJoYXNQcmlvcml0eSgpID8gJ2hpZ2gnIDogJ2F1dG8nXCJcbiAgICAgICAgW25nQ2xhc3NdPVwiaW1nQ2xhc3MoKVwiXG4gICAgICAgIFthdHRyLnNyY3NldF09XCJzb3VyY2Uuc3Jjc2V0XCJcbiAgICAgICAgW2F0dHIudHlwZV09XCJzb3VyY2UudHlwZVwiXG4gICAgICAgIFthdHRyLmFsdF09XCJhbHQoKVwiXG4gICAgICAgIFthdHRyLndpZHRoXT1cIndpZHRoKClcIlxuICAgICAgICBbYXR0ci5oZWlnaHRdPVwiaGVpZ2h0KClcIlxuICAgICAgICBbYXR0ci5zaXplc109XCJzb3VyY2Uuc2l6ZXMgPz8gc2l6ZXMoKVwiXG4gICAgICAgIGNsYXNzPVwiZXQtcGljdHVyZS1pbWdcIlxuICAgICAgLz5cbiAgICB9XG4gIDwvcGljdHVyZT5cblxuICBAaWYgKGZpZ2NhcHRpb24oKSkge1xuICAgIDxmaWdjYXB0aW9uIFtuZ0NsYXNzXT1cImZpZ2NhcHRpb25DbGFzcygpXCIgY2xhc3M9XCJldC1waWN0dXJlLWZpZ2NhcHRpb25cIj5cbiAgICAgIHt7IGZpZ2NhcHRpb24oKSB9fVxuICAgIDwvZmlnY2FwdGlvbj5cbiAgfVxuPC9maWd1cmU+XG4iXX0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from '../components/picture';
|
|
2
|
-
export * from '../types/picture.types';
|
|
3
|
-
export * from '../utils/picture.utils';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcGljdHVyZS9wdW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AvLyBPbmx5IGFwcGxpZXMgaWYgdGhlIHZpZXdwb3J0IGlzIGF0IGxlYXN0IDgwMHB4IHdpZGUsIGlzIGluIGxhbmRzY2FwZSBvcmllbnRhdGlvbiBhbmQgcHJlZmVycyBkYXJrIGNvbG9yc1xuICAgKi9cbiAgbWVkaWE/OiBzdHJpbmcgfCBudWxsO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFBpY3R1cmVDb25maWcge1xuICBiYXNlVXJsPzogc3RyaW5nO1xufVxuIl19
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { inferMimeType } from '@ethlete/core';
|
|
3
|
-
export const IMAGE_CONFIG_TOKEN = new InjectionToken('IMAGE_CONFIG_TOKEN');
|
|
4
|
-
export const provideImageConfig = (config = {}) => {
|
|
5
|
-
return {
|
|
6
|
-
provide: IMAGE_CONFIG_TOKEN,
|
|
7
|
-
useValue: config,
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export const normalizePictureSource = (source) => {
|
|
11
|
-
if (typeof source === 'string') {
|
|
12
|
-
return { type: inferMimeType(source), srcset: source, media: null, sizes: null };
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const mimeType = source.type && source.type !== '' ? source.type : inferMimeType(source.srcset);
|
|
16
|
-
if (!mimeType) {
|
|
17
|
-
console.error(`Could not infer mime type for srcset: ${source.srcset}. Please provide a type.`);
|
|
18
|
-
}
|
|
19
|
-
return { type: mimeType, srcset: source.srcset, media: source.media, sizes: source.sizes };
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export const normalizePictureSizes = (sizes) => {
|
|
23
|
-
if (!sizes) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
if (Array.isArray(sizes)) {
|
|
27
|
-
return sizes.join(', ');
|
|
28
|
-
}
|
|
29
|
-
return sizes;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ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ICB9XG59O1xuXG5leHBvcnQgY29uc3Qgbm9ybWFsaXplUGljdHVyZVNpemVzID0gKHNpemVzOiBzdHJpbmcgfCBzdHJpbmdbXSB8IG51bGwpID0+IHtcbiAgaWYgKCFzaXplcykge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgaWYgKEFycmF5LmlzQXJyYXkoc2l6ZXMpKSB7XG4gICAgcmV0dXJuIHNpemVzLmpvaW4oJywgJyk7XG4gIH1cblxuICByZXR1cm4gc2l6ZXM7XG59O1xuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './progress-spinner.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcHJvZ3Jlc3Mtc3Bpbm5lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wcm9ncmVzcy1zcGlubmVyLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ElementRef, InjectionToken, Input, ViewEncapsulation, booleanAttribute, inject, numberAttribute, } from '@angular/core';
|
|
3
|
-
import { clamp } from '@ethlete/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export const PROGRESS_SPINNER_DEFAULT_OPTIONS = new InjectionToken('PROGRESS_SPINNER_DEFAULT_OPTIONS', {
|
|
6
|
-
providedIn: 'root',
|
|
7
|
-
factory: PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY,
|
|
8
|
-
});
|
|
9
|
-
export function PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY() {
|
|
10
|
-
return { diameter: BASE_SIZE, strokeWidth: BASE_STROKE_WIDTH };
|
|
11
|
-
}
|
|
12
|
-
const BASE_SIZE = 100;
|
|
13
|
-
const BASE_STROKE_WIDTH = 10;
|
|
14
|
-
export class ProgressSpinnerComponent {
|
|
15
|
-
get value() {
|
|
16
|
-
return this.mode === 'determinate' ? this._value : 0;
|
|
17
|
-
}
|
|
18
|
-
set value(v) {
|
|
19
|
-
this._value = clamp(numberAttribute(v, 0));
|
|
20
|
-
}
|
|
21
|
-
get strokeWidth() {
|
|
22
|
-
return this._strokeWidth ?? this.diameter / 10;
|
|
23
|
-
}
|
|
24
|
-
set strokeWidth(value) {
|
|
25
|
-
this._strokeWidth = numberAttribute(value);
|
|
26
|
-
}
|
|
27
|
-
constructor() {
|
|
28
|
-
this._elementRef = inject(ElementRef);
|
|
29
|
-
this._defaults = inject(PROGRESS_SPINNER_DEFAULT_OPTIONS);
|
|
30
|
-
this.multiColor = false;
|
|
31
|
-
this.mode = this._elementRef.nativeElement.nodeName.toLowerCase() === 'et-spinner' ? 'indeterminate' : 'determinate';
|
|
32
|
-
this._value = 0;
|
|
33
|
-
this.diameter = BASE_SIZE;
|
|
34
|
-
this._strokeWidth = null;
|
|
35
|
-
if (this._defaults) {
|
|
36
|
-
if (this._defaults.diameter) {
|
|
37
|
-
this.diameter = this._defaults.diameter;
|
|
38
|
-
}
|
|
39
|
-
if (this._defaults.strokeWidth) {
|
|
40
|
-
this.strokeWidth = this._defaults.strokeWidth;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
_circleRadius() {
|
|
45
|
-
return (this.diameter - BASE_STROKE_WIDTH) / 2;
|
|
46
|
-
}
|
|
47
|
-
_viewBox() {
|
|
48
|
-
const viewBox = this._circleRadius() * 2 + this.strokeWidth;
|
|
49
|
-
return `0 0 ${viewBox} ${viewBox}`;
|
|
50
|
-
}
|
|
51
|
-
_strokeCircumference() {
|
|
52
|
-
return 2 * Math.PI * this._circleRadius();
|
|
53
|
-
}
|
|
54
|
-
_strokeDashOffset() {
|
|
55
|
-
if (this.mode === 'determinate') {
|
|
56
|
-
return (this._strokeCircumference() * (100 - this._value)) / 100;
|
|
57
|
-
}
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
_circleStrokeWidth() {
|
|
61
|
-
return (this.strokeWidth / this.diameter) * 100;
|
|
62
|
-
}
|
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProgressSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.12", type: ProgressSpinnerComponent, isStandalone: true, selector: "et-progress-spinner, et-spinner", inputs: { multiColor: ["multiColor", "multiColor", booleanAttribute], mode: "mode", value: "value", diameter: ["diameter", "diameter", numberAttribute], strokeWidth: "strokeWidth" }, host: { attributes: { "role": "progressbar", "tabindex": "-1" }, properties: { "class.et-circular-progress--indeterminate": "mode === \"indeterminate\"", "class.et-progress-spinner--multi-color": "multiColor", "style.width.px": "diameter", "style.height.px": "diameter", "attr.aria-valuemin": "0", "attr.aria-valuemax": "100", "attr.aria-valuenow": "mode === \"determinate\" ? value : null", "attr.mode": "mode" }, classAttribute: "et-progress-spinner" }, ngImport: i0, template: "<ng-template #circle>\n <svg\n [attr.viewBox]=\"_viewBox()\"\n class=\"et-circular-progress__indeterminate-circle-graphic\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n >\n <circle\n [attr.r]=\"_circleRadius()\"\n [style.stroke-dasharray.px]=\"_strokeCircumference()\"\n [style.stroke-dashoffset.px]=\"_strokeCircumference() / 2\"\n [style.stroke-width.%]=\"_circleStrokeWidth()\"\n cx=\"50%\"\n cy=\"50%\"\n />\n </svg>\n</ng-template>\n\n<ng-template #spinner>\n <div class=\"et-circular-progress__circle-clipper et-circular-progress__circle-left\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n <div class=\"et-circular-progress__gap-patch\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n <div class=\"et-circular-progress__circle-clipper et-circular-progress__circle-right\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n</ng-template>\n\n<div class=\"et-circular-progress__determinate-container\" aria-hidden=\"true\">\n <svg\n [attr.viewBox]=\"_viewBox()\"\n class=\"et-circular-progress__determinate-circle-graphic\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n >\n <circle\n [attr.r]=\"_circleRadius()\"\n [style.stroke-dasharray.px]=\"_strokeCircumference()\"\n [style.stroke-dashoffset.px]=\"_strokeDashOffset()\"\n [style.stroke-width.%]=\"_circleStrokeWidth()\"\n class=\"et-circular-progress__determinate-circle\"\n cx=\"50%\"\n cy=\"50%\"\n />\n </svg>\n</div>\n\n<div class=\"et-circular-progress__indeterminate-container\" aria-hidden=\"true\">\n <div [class.et-circular-progress__color-1]=\"multiColor\" class=\"et-circular-progress__spinner-layer\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-2\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-3\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-4\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n</div>\n", styles: [":where(.et-progress-spinner){--et-progress-spinner-edges: round;--et-progress-spinner-color: #1e88e5;--et-progress-spinner-color-1: var(--et-progress-spinner-color);--et-progress-spinner-color-2: #f44336;--et-progress-spinner-color-3: #ff9800;--et-progress-spinner-color-4: #4caf50}.et-progress-spinner{position:relative;direction:ltr;transition:opacity .25s 0ms cubic-bezier(.4,0,.6,1);display:block;overflow:hidden;line-height:0}.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-2,.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-3,.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-4{visibility:visible}.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-1 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-1)}.et-circular-progress__determinate-circle,.et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color);stroke-linecap:var(--et-progress-spinner-edges)}.et-circular-progress__color-2 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-2)}.et-circular-progress__color-3 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-3)}.et-circular-progress__color-4 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-4)}.et-circular-progress__color-2,.et-circular-progress__color-3,.et-circular-progress__color-4{visibility:hidden}.et-circular-progress__determinate-container,.et-circular-progress__indeterminate-circle-graphic,.et-circular-progress__indeterminate-container,.et-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.et-circular-progress__determinate-container{transform:rotate(-90deg)}.et-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.et-circular-progress__determinate-circle-graphic,.et-circular-progress__indeterminate-circle-graphic{fill:#0000}.et-circular-progress__determinate-circle{transition:stroke-dashoffset .5s 0ms cubic-bezier(0,0,.2,1)}.et-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.et-circular-progress__gap-patch .et-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.et-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.et-circular-progress__circle-clipper .et-circular-progress__indeterminate-circle-graphic{width:200%}.et-circular-progress__circle-right .et-circular-progress__indeterminate-circle-graphic{left:-100%}.et-circular-progress--indeterminate .et-circular-progress__determinate-container{opacity:0}.et-circular-progress--indeterminate .et-circular-progress__indeterminate-container{opacity:1}.et-circular-progress--indeterminate .et-circular-progress__indeterminate-container{animation:et-circular-progress-container-rotate 1.5682352941176s linear infinite}.et-circular-progress--indeterminate .et-circular-progress__spinner-layer{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-1{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-2{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-3{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-4{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__circle-left .et-circular-progress__indeterminate-circle-graphic{animation:et-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__circle-right .et-circular-progress__indeterminate-circle-graphic{animation:et-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes et-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes et-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(1080deg)}}@keyframes et-circular-progress-color-1-fade-in-out{0%{opacity:.99}25%{opacity:.99}26%{opacity:0}50%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes et-circular-progress-color-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes et-circular-progress-color-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes et-circular-progress-color-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes et-circular-progress-left-spin{0%{transform:rotate(260deg)}50%{transform:rotate(130deg)}to{transform:rotate(260deg)}}@keyframes et-circular-progress-right-spin{0%{transform:rotate(-260deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-260deg)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
65
|
-
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProgressSpinnerComponent, decorators: [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{ selector: 'et-progress-spinner, et-spinner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
69
|
-
class: 'et-progress-spinner',
|
|
70
|
-
role: 'progressbar',
|
|
71
|
-
tabindex: '-1',
|
|
72
|
-
'[class.et-circular-progress--indeterminate]': 'mode === "indeterminate"',
|
|
73
|
-
'[class.et-progress-spinner--multi-color]': 'multiColor',
|
|
74
|
-
'[style.width.px]': 'diameter',
|
|
75
|
-
'[style.height.px]': 'diameter',
|
|
76
|
-
'[attr.aria-valuemin]': '0',
|
|
77
|
-
'[attr.aria-valuemax]': '100',
|
|
78
|
-
'[attr.aria-valuenow]': 'mode === "determinate" ? value : null',
|
|
79
|
-
'[attr.mode]': 'mode',
|
|
80
|
-
}, imports: [NgTemplateOutlet], template: "<ng-template #circle>\n <svg\n [attr.viewBox]=\"_viewBox()\"\n class=\"et-circular-progress__indeterminate-circle-graphic\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n >\n <circle\n [attr.r]=\"_circleRadius()\"\n [style.stroke-dasharray.px]=\"_strokeCircumference()\"\n [style.stroke-dashoffset.px]=\"_strokeCircumference() / 2\"\n [style.stroke-width.%]=\"_circleStrokeWidth()\"\n cx=\"50%\"\n cy=\"50%\"\n />\n </svg>\n</ng-template>\n\n<ng-template #spinner>\n <div class=\"et-circular-progress__circle-clipper et-circular-progress__circle-left\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n <div class=\"et-circular-progress__gap-patch\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n <div class=\"et-circular-progress__circle-clipper et-circular-progress__circle-right\">\n <ng-container [ngTemplateOutlet]=\"circle\" />\n </div>\n</ng-template>\n\n<div class=\"et-circular-progress__determinate-container\" aria-hidden=\"true\">\n <svg\n [attr.viewBox]=\"_viewBox()\"\n class=\"et-circular-progress__determinate-circle-graphic\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n >\n <circle\n [attr.r]=\"_circleRadius()\"\n [style.stroke-dasharray.px]=\"_strokeCircumference()\"\n [style.stroke-dashoffset.px]=\"_strokeDashOffset()\"\n [style.stroke-width.%]=\"_circleStrokeWidth()\"\n class=\"et-circular-progress__determinate-circle\"\n cx=\"50%\"\n cy=\"50%\"\n />\n </svg>\n</div>\n\n<div class=\"et-circular-progress__indeterminate-container\" aria-hidden=\"true\">\n <div [class.et-circular-progress__color-1]=\"multiColor\" class=\"et-circular-progress__spinner-layer\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-2\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-3\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n\n <div class=\"et-circular-progress__spinner-layer et-circular-progress__color-4\">\n <ng-container [ngTemplateOutlet]=\"spinner\" />\n </div>\n</div>\n", styles: [":where(.et-progress-spinner){--et-progress-spinner-edges: round;--et-progress-spinner-color: #1e88e5;--et-progress-spinner-color-1: var(--et-progress-spinner-color);--et-progress-spinner-color-2: #f44336;--et-progress-spinner-color-3: #ff9800;--et-progress-spinner-color-4: #4caf50}.et-progress-spinner{position:relative;direction:ltr;transition:opacity .25s 0ms cubic-bezier(.4,0,.6,1);display:block;overflow:hidden;line-height:0}.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-2,.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-3,.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-4{visibility:visible}.et-progress-spinner.et-progress-spinner--multi-color .et-circular-progress__color-1 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-1)}.et-circular-progress__determinate-circle,.et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color);stroke-linecap:var(--et-progress-spinner-edges)}.et-circular-progress__color-2 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-2)}.et-circular-progress__color-3 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-3)}.et-circular-progress__color-4 .et-circular-progress__indeterminate-circle-graphic{stroke:var(--et-progress-spinner-color-4)}.et-circular-progress__color-2,.et-circular-progress__color-3,.et-circular-progress__color-4{visibility:hidden}.et-circular-progress__determinate-container,.et-circular-progress__indeterminate-circle-graphic,.et-circular-progress__indeterminate-container,.et-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.et-circular-progress__determinate-container{transform:rotate(-90deg)}.et-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.et-circular-progress__determinate-circle-graphic,.et-circular-progress__indeterminate-circle-graphic{fill:#0000}.et-circular-progress__determinate-circle{transition:stroke-dashoffset .5s 0ms cubic-bezier(0,0,.2,1)}.et-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.et-circular-progress__gap-patch .et-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.et-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.et-circular-progress__circle-clipper .et-circular-progress__indeterminate-circle-graphic{width:200%}.et-circular-progress__circle-right .et-circular-progress__indeterminate-circle-graphic{left:-100%}.et-circular-progress--indeterminate .et-circular-progress__determinate-container{opacity:0}.et-circular-progress--indeterminate .et-circular-progress__indeterminate-container{opacity:1}.et-circular-progress--indeterminate .et-circular-progress__indeterminate-container{animation:et-circular-progress-container-rotate 1.5682352941176s linear infinite}.et-circular-progress--indeterminate .et-circular-progress__spinner-layer{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-1{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-2{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-3{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__color-4{animation:et-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,et-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__circle-left .et-circular-progress__indeterminate-circle-graphic{animation:et-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.et-circular-progress--indeterminate .et-circular-progress__circle-right .et-circular-progress__indeterminate-circle-graphic{animation:et-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes et-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes et-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(1080deg)}}@keyframes et-circular-progress-color-1-fade-in-out{0%{opacity:.99}25%{opacity:.99}26%{opacity:0}50%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes et-circular-progress-color-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes et-circular-progress-color-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes et-circular-progress-color-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes et-circular-progress-left-spin{0%{transform:rotate(260deg)}50%{transform:rotate(130deg)}to{transform:rotate(260deg)}}@keyframes et-circular-progress-right-spin{0%{transform:rotate(-260deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-260deg)}}\n"] }]
|
|
81
|
-
}], ctorParameters: () => [], propDecorators: { multiColor: [{
|
|
82
|
-
type: Input,
|
|
83
|
-
args: [{ transform: booleanAttribute }]
|
|
84
|
-
}], mode: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], value: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], diameter: [{
|
|
89
|
-
type: Input,
|
|
90
|
-
args: [{ transform: numberAttribute }]
|
|
91
|
-
}], strokeWidth: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}] } });
|
|
94
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3Mtc3Bpbm5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcHJvZ3Jlc3Mtc3Bpbm5lci9wcm9ncmVzcy1zcGlubmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY2RrL3NyYy9saWIvY29tcG9uZW50cy9wcm9ncmVzcy1zcGlubmVyL3Byb2dyZXNzLXNwaW5uZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDbkQsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsVUFBVSxFQUNWLGNBQWMsRUFDZCxLQUFLLEVBQ0wsaUJBQWlCLEVBQ2pCLGdCQUFnQixFQUNoQixNQUFNLEVBQ04sZUFBZSxHQUNoQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVN0QyxNQUFNLENBQUMsTUFBTSxnQ0FBZ0MsR0FBRyxJQUFJLGNBQWMsQ0FDaEUsa0NBQWtDLEVBQ2xDO0lBQ0UsVUFBVSxFQUFFLE1BQU07SUFDbEIsT0FBTyxFQUFFLHdDQUF3QztDQUNsRCxDQUN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udGFpbmVyIFtuZ1RlbXBsYXRlT3V0bGV0XT1cInNwaW5uZXJcIiAvPlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwiZXQtY2lyY3VsYXItcHJvZ3Jlc3NfX3NwaW5uZXItbGF5ZXIgZXQtY2lyY3VsYXItcHJvZ3Jlc3NfX2NvbG9yLTNcIj5cbiAgICA8bmctY29udGFpbmVyIFtuZ1RlbXBsYXRlT3V0bGV0XT1cInNwaW5uZXJcIiAvPlxuICA8L2Rpdj5cblxuICA8ZGl2IGNsYXNzPVwiZXQtY2lyY3VsYXItcHJvZ3Jlc3NfX3NwaW5uZXItbGF5ZXIgZXQtY2lyY3VsYXItcHJvZ3Jlc3NfX2NvbG9yLTRcIj5cbiAgICA8bmctY29udGFpbmVyIFtuZ1RlbXBsYXRlT3V0bGV0XT1cInNwaW5uZXJcIiAvPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './query-error.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcXVlcnktZXJyb3IvY29tcG9uZW50cy9xdWVyeS1lcnJvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9xdWVyeS1lcnJvci5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgClass } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, } from '@angular/core';
|
|
3
|
-
import { extractQuery } from '@ethlete/query';
|
|
4
|
-
import { QUERY_ERROR_TOKEN, QueryErrorDirective } from '../../directives/query-error';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../directives/query-error/query-error.directive";
|
|
7
|
-
export class QueryErrorComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.host = inject(QUERY_ERROR_TOKEN);
|
|
10
|
-
this.errorList = inject(QUERY_ERROR_TOKEN).errorList;
|
|
11
|
-
this.canBeRetried = computed(() => this.errorList()?.canBeRetried ?? false);
|
|
12
|
-
this.isList = computed(() => this.errorList()?.isList ?? false);
|
|
13
|
-
this.trackByFn = (index, item) => item.message;
|
|
14
|
-
}
|
|
15
|
-
retry() {
|
|
16
|
-
extractQuery(this.host.query())?.execute({ skipCache: true });
|
|
17
|
-
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: QueryErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: QueryErrorComponent, isStandalone: true, selector: "et-query-error", host: { classAttribute: "et-query-error-host" }, hostDirectives: [{ directive: i1.QueryErrorDirective, inputs: ["error", "error", "query", "query", "language", "language"] }], ngImport: i0, template: "<div\n [ngClass]=\"{ 'et-query-error--can-be-retried': canBeRetried(), 'et-query-error--is-list': isList() }\"\n class=\"et-query-error\"\n>\n @if (errorList(); as errorList) {\n <h3 class=\"et-query-error-title\">{{ errorList.title }}</h3>\n\n @if (!errorList.isList) {\n <p class=\"et-query-error-message\">{{ errorList.items[0]!.message }}</p>\n }\n\n @if (errorList.isList) {\n <ul class=\"et-query-error-list\">\n @for (item of errorList.items; track trackByFn($index, item)) {\n <li class=\"et-query-error-list-item\">\n {{ item.message }}\n </li>\n }\n </ul>\n }\n\n @if (errorList.canBeRetried) {\n <button (click)=\"retry()\" class=\"et-query-error-retry-button\">\n {{ host.language() === 'en' ? 'Retry' : 'Erneut versuchen' }}\n </button>\n }\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
20
|
-
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: QueryErrorComponent, decorators: [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'et-query-error', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
24
|
-
class: 'et-query-error-host',
|
|
25
|
-
}, imports: [NgClass], hostDirectives: [{ directive: QueryErrorDirective, inputs: ['error', 'query', 'language'] }], template: "<div\n [ngClass]=\"{ 'et-query-error--can-be-retried': canBeRetried(), 'et-query-error--is-list': isList() }\"\n class=\"et-query-error\"\n>\n @if (errorList(); as errorList) {\n <h3 class=\"et-query-error-title\">{{ errorList.title }}</h3>\n\n @if (!errorList.isList) {\n <p class=\"et-query-error-message\">{{ errorList.items[0]!.message }}</p>\n }\n\n @if (errorList.isList) {\n <ul class=\"et-query-error-list\">\n @for (item of errorList.items; track trackByFn($index, item)) {\n <li class=\"et-query-error-list-item\">\n {{ item.message }}\n </li>\n }\n </ul>\n }\n\n @if (errorList.canBeRetried) {\n <button (click)=\"retry()\" class=\"et-query-error-retry-button\">\n {{ host.language() === 'en' ? 'Retry' : 'Erneut versuchen' }}\n </button>\n }\n }\n</div>\n" }]
|
|
26
|
-
}] });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jZGsvc3JjL2xpYi9jb21wb25lbnRzL3F1ZXJ5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iAgICAgIDwvdWw+XG4gICAgfVxuXG4gICAgQGlmIChlcnJvckxpc3QuY2FuQmVSZXRyaWVkKSB7XG4gICAgICA8YnV0dG9uIChjbGljayk9XCJyZXRyeSgpXCIgY2xhc3M9XCJldC1xdWVyeS1lcnJvci1yZXRyeS1idXR0b25cIj5cbiAgICAgICAge3sgaG9zdC5sYW5ndWFnZSgpID09PSAnZW4nID8gJ1JldHJ5JyA6ICdFcm5ldXQgdmVyc3VjaGVuJyB9fVxuICAgICAgPC9idXR0b24+XG4gICAgfVxuICB9XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './query-error.directive';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL2NvbXBvbmVudHMvcXVlcnktZXJyb3IvZGlyZWN0aXZlcy9xdWVyeS1lcnJvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9xdWVyeS1lcnJvci5kaXJlY3RpdmUnO1xuIl19
|