@spicainternational/ngx-sds-components 5.33.2 → 6.0.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/esm2020/src/lib/app-switcher/app-switcher.component.mjs +8 -10
- package/esm2020/src/lib/app-switcher/app-switcher.module.mjs +7 -13
- package/esm2020/src/lib/avatar/avatar-group.component.mjs +6 -6
- package/esm2020/src/lib/avatar/avatar.component.mjs +4 -4
- package/esm2020/src/lib/avatar/avatar.module.mjs +7 -9
- package/esm2020/src/lib/badge/badge.directive.mjs +7 -6
- package/esm2020/src/lib/badge/badge.module.mjs +5 -7
- package/esm2020/src/lib/badge/components/badge.component.mjs +12 -12
- package/esm2020/src/lib/callout/callout.component.mjs +5 -5
- package/esm2020/src/lib/callout/callout.module.mjs +5 -7
- package/esm2020/src/lib/color-picker/color-picker.component.mjs +8 -8
- package/esm2020/src/lib/color-picker/color-picker.module.mjs +7 -9
- package/esm2020/src/lib/date-picker/date-picker.component.mjs +8 -8
- package/esm2020/src/lib/date-picker/date-picker.module.mjs +14 -16
- package/esm2020/src/lib/date-picker/sds-date-picker.service.mjs +4 -4
- package/esm2020/src/lib/date-pipes/date-format.pipe.mjs +4 -4
- package/esm2020/src/lib/date-pipes/date-period-format.pipe.mjs +4 -4
- package/esm2020/src/lib/date-pipes/date-pipes.module.mjs +5 -7
- package/esm2020/src/lib/duration-box/duration-box.component.mjs +8 -8
- package/esm2020/src/lib/duration-box/duration-box.module.mjs +10 -12
- package/esm2020/src/lib/duration-box/duration.service.mjs +4 -4
- package/esm2020/src/lib/duration-pipe/duration-format.pipe.mjs +4 -4
- package/esm2020/src/lib/duration-pipe/duration-pipe.module.mjs +5 -5
- package/esm2020/src/lib/ellipsis/directives/ellipsis.directive.mjs +4 -4
- package/esm2020/src/lib/ellipsis/ellipsis.module.mjs +5 -7
- package/esm2020/src/lib/expansion-panel/expansion-panel.component.mjs +7 -7
- package/esm2020/src/lib/expansion-panel/expansion-panel.module.mjs +5 -5
- package/esm2020/src/lib/highlight-text/directives/highlight-text.directive.mjs +12 -12
- package/esm2020/src/lib/highlight-text/highlight-text.module.mjs +5 -7
- package/esm2020/src/lib/highlight-text/pipes/highlight-text.pipe.mjs +4 -4
- package/esm2020/src/lib/intersection/directives/intersection.directive.mjs +13 -13
- package/esm2020/src/lib/intersection/intersection.module.mjs +5 -7
- package/esm2020/src/lib/intersection/services/intersection.service.mjs +4 -4
- package/esm2020/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.mjs +4 -4
- package/esm2020/src/lib/keyboard-shortcut/keyboard-shortcut.module.mjs +5 -7
- package/esm2020/src/lib/layout/default-layout/default-layout.component.mjs +5 -5
- package/esm2020/src/lib/layout/extra-large-layout/extra-large-layout.component.mjs +5 -5
- package/esm2020/src/lib/layout/fluid-layout/fluid-layout.component.mjs +5 -5
- package/esm2020/src/lib/layout/layout.module.mjs +6 -8
- package/esm2020/src/lib/layout/medium-layout/medium-layout.component.mjs +5 -5
- package/esm2020/src/lib/layout/small-layout/small-layout.component.mjs +5 -5
- package/esm2020/src/lib/message/message.component.mjs +7 -7
- package/esm2020/src/lib/message/message.module.mjs +6 -8
- package/esm2020/src/lib/modal/dialog/dialog.component.mjs +7 -7
- package/esm2020/src/lib/modal/modal.component.mjs +7 -7
- package/esm2020/src/lib/modal/modal.module.mjs +7 -9
- package/esm2020/src/lib/navigation/navigation-container/navigation-container.component.mjs +4 -4
- package/esm2020/src/lib/navigation/navigation-external-link/navigation-external-link.component.mjs +7 -7
- package/esm2020/src/lib/navigation/navigation-group/navigation-group.component.mjs +13 -13
- package/esm2020/src/lib/navigation/navigation-header/navigation-header.component.mjs +5 -5
- package/esm2020/src/lib/navigation/navigation-route-link/navigation-route-link.component.mjs +7 -7
- package/esm2020/src/lib/navigation/navigation-separator/navigation-separator.component.mjs +5 -5
- package/esm2020/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.mjs +8 -8
- package/esm2020/src/lib/navigation/navigation.module.mjs +10 -12
- package/esm2020/src/lib/navigation/pipes/navigation-route-active.pipe.mjs +5 -6
- package/esm2020/src/lib/navigation/product-home/product-home.component.mjs +6 -6
- package/esm2020/src/lib/number-box/number-box.component.mjs +6 -8
- package/esm2020/src/lib/number-box/number-box.module.mjs +6 -8
- package/esm2020/src/lib/page-header/page-header.component.mjs +5 -5
- package/esm2020/src/lib/page-header/page-header.module.mjs +5 -5
- package/esm2020/src/lib/pane/pane.component.mjs +7 -7
- package/esm2020/src/lib/pane/pane.module.mjs +6 -8
- package/esm2020/src/lib/quick-info/quick-info.component.mjs +7 -7
- package/esm2020/src/lib/quick-info/quick-info.module.mjs +7 -9
- package/esm2020/src/lib/segmented-control/segmented-control.component.mjs +5 -5
- package/esm2020/src/lib/segmented-control/segmented-control.module.mjs +5 -7
- package/esm2020/src/lib/side-bar/side-bar.component.mjs +7 -13
- package/esm2020/src/lib/side-bar/side-bar.module.mjs +5 -7
- package/esm2020/src/lib/static-value/static-value.component.mjs +7 -7
- package/esm2020/src/lib/static-value/static-value.module.mjs +6 -8
- package/esm2020/src/lib/table-actions/table-actions.component.mjs +5 -5
- package/esm2020/src/lib/table-actions/table-actions.module.mjs +7 -9
- package/esm2020/src/lib/timeline/components/timeline.component.mjs +5 -5
- package/esm2020/src/lib/timeline/timeline.module.mjs +5 -7
- package/esm2020/src/lib/timer/services/timer.service.mjs +4 -4
- package/esm2020/src/lib/timer/timer.module.mjs +10 -12
- package/esm2020/src/lib/tooltip/components/tooltip.component.mjs +7 -7
- package/esm2020/src/lib/tooltip/tooltip.directive.mjs +4 -4
- package/esm2020/src/lib/tooltip/tooltip.module.mjs +6 -8
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +13 -21
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-avatar.mjs +13 -15
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-badge.mjs +21 -22
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-callout.mjs +8 -10
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-callout.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +13 -15
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +23 -25
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs +10 -12
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-duration-box.mjs +19 -21
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-duration-box.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs +7 -7
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +7 -9
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs +10 -10
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +18 -20
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs +19 -21
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +7 -9
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-layout.mjs +25 -27
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-layout.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs +11 -13
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-modal.mjs +16 -18
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs +56 -59
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs +10 -14
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-page-header.mjs +8 -8
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-page-header.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-pane.mjs +11 -13
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-pane.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +12 -14
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs +8 -10
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +10 -18
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs +11 -13
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +10 -12
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timeline.mjs +8 -10
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs +12 -14
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +14 -16
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +13 -21
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs +13 -15
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs +21 -22
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-callout.mjs +8 -10
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-callout.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +13 -15
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +23 -25
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs +10 -12
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-duration-box.mjs +19 -21
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-duration-box.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs +7 -7
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +7 -9
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs +10 -10
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +18 -20
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs +19 -21
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +7 -9
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-layout.mjs +25 -27
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-layout.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs +11 -13
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs +16 -18
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs +56 -59
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs +10 -14
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-page-header.mjs +8 -8
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-page-header.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-pane.mjs +11 -13
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-pane.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +12 -14
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs +8 -10
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +10 -18
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs +11 -13
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +10 -12
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs +8 -10
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs +12 -14
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +14 -16
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/package.json +39 -39
- package/src/lib/app-switcher/app-switcher.component.d.ts +1 -2
- package/src/lib/app-switcher/app-switcher.module.d.ts +3 -4
- package/src/lib/avatar/avatar-group.component.d.ts +1 -1
- package/src/lib/avatar/avatar.component.d.ts +1 -1
- package/src/lib/badge/badge.directive.d.ts +1 -1
- package/src/lib/badge/badge.types.d.ts +2 -2
- package/src/lib/badge/components/badge.component.d.ts +1 -1
- package/src/lib/callout/callout.component.d.ts +1 -1
- package/src/lib/color-picker/color-picker.component.d.ts +1 -1
- package/src/lib/date-picker/date-picker.component.d.ts +1 -1
- package/src/lib/date-pipes/date-format.pipe.d.ts +1 -1
- package/src/lib/date-pipes/date-period-format.pipe.d.ts +1 -1
- package/src/lib/duration-box/duration-box.component.d.ts +1 -1
- package/src/lib/duration-box/duration-box.types.d.ts +1 -1
- package/src/lib/duration-pipe/duration-format.pipe.d.ts +1 -1
- package/src/lib/ellipsis/directives/ellipsis.directive.d.ts +1 -1
- package/src/lib/expansion-panel/expansion-panel.component.d.ts +2 -2
- package/src/lib/expansion-panel/expansion-panel.types.d.ts +1 -1
- package/src/lib/highlight-text/directives/highlight-text.directive.d.ts +1 -1
- package/src/lib/highlight-text/pipes/highlight-text.pipe.d.ts +1 -1
- package/src/lib/highlight-text/utils/highlight-text.utils.d.ts +1 -1
- package/src/lib/intersection/directives/intersection.directive.d.ts +1 -1
- package/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.d.ts +1 -1
- package/src/lib/layout/default-layout/default-layout.component.d.ts +1 -1
- package/src/lib/layout/extra-large-layout/extra-large-layout.component.d.ts +1 -1
- package/src/lib/layout/fluid-layout/fluid-layout.component.d.ts +1 -1
- package/src/lib/layout/medium-layout/medium-layout.component.d.ts +1 -1
- package/src/lib/layout/small-layout/small-layout.component.d.ts +1 -1
- package/src/lib/message/message.component.d.ts +1 -1
- package/src/lib/modal/dialog/dialog.component.d.ts +2 -2
- package/src/lib/modal/dialog/dialog.types.d.ts +1 -1
- package/src/lib/modal/modal.component.d.ts +1 -1
- package/src/lib/navigation/navigation-container/navigation-container.component.d.ts +1 -1
- package/src/lib/navigation/navigation-external-link/navigation-external-link.component.d.ts +1 -1
- package/src/lib/navigation/navigation-group/navigation-group.component.d.ts +1 -1
- package/src/lib/navigation/navigation-header/navigation-header.component.d.ts +1 -1
- package/src/lib/navigation/navigation-route-link/navigation-route-link.component.d.ts +1 -1
- package/src/lib/navigation/navigation-separator/navigation-separator.component.d.ts +1 -1
- package/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.d.ts +1 -1
- package/src/lib/navigation/pipes/navigation-route-active.pipe.d.ts +1 -1
- package/src/lib/navigation/product-home/product-home.component.d.ts +1 -1
- package/src/lib/number-box/number-box.component.d.ts +1 -1
- package/src/lib/page-header/page-header.component.d.ts +1 -1
- package/src/lib/pane/pane.component.d.ts +1 -1
- package/src/lib/quick-info/quick-info.component.d.ts +1 -1
- package/src/lib/segmented-control/segmented-control.component.d.ts +1 -1
- package/src/lib/side-bar/side-bar.component.d.ts +2 -3
- package/src/lib/static-value/static-value.component.d.ts +1 -1
- package/src/lib/table-actions/table-actions.component.d.ts +1 -1
- package/src/lib/timeline/components/timeline.component.d.ts +1 -1
- package/src/lib/timeline/types/timeline.types.d.ts +1 -1
- package/src/lib/tooltip/components/tooltip.component.d.ts +1 -1
- package/src/lib/tooltip/tooltip.directive.d.ts +1 -1
- package/src/lib/tooltip/tooltip.types.d.ts +2 -2
- package/src/lib/app-switcher/package.json +0 -10
- package/src/lib/avatar/package.json +0 -10
- package/src/lib/badge/package.json +0 -10
- package/src/lib/callout/package.json +0 -10
- package/src/lib/color-picker/package.json +0 -10
- package/src/lib/date-picker/package.json +0 -10
- package/src/lib/date-pipes/package.json +0 -10
- package/src/lib/duration-box/package.json +0 -10
- package/src/lib/duration-pipe/package.json +0 -10
- package/src/lib/ellipsis/package.json +0 -10
- package/src/lib/expansion-panel/package.json +0 -10
- package/src/lib/highlight-text/package.json +0 -10
- package/src/lib/intersection/package.json +0 -10
- package/src/lib/keyboard-shortcut/package.json +0 -10
- package/src/lib/layout/package.json +0 -10
- package/src/lib/message/package.json +0 -10
- package/src/lib/modal/package.json +0 -10
- package/src/lib/navigation/package.json +0 -10
- package/src/lib/number-box/package.json +0 -10
- package/src/lib/page-header/package.json +0 -10
- package/src/lib/pane/package.json +0 -10
- package/src/lib/quick-info/package.json +0 -10
- package/src/lib/segmented-control/package.json +0 -10
- package/src/lib/side-bar/package.json +0 -10
- package/src/lib/static-value/package.json +0 -10
- package/src/lib/table-actions/package.json +0 -10
- package/src/lib/timeline/package.json +0 -10
- package/src/lib/timer/package.json +0 -10
- package/src/lib/tooltip/package.json +0 -10
- /package/{spicainternational-ngx-sds-components.d.ts → index.d.ts} +0 -0
- /package/src/lib/app-switcher/{spicainternational-ngx-sds-components-src-lib-app-switcher.d.ts → index.d.ts} +0 -0
- /package/src/lib/avatar/{spicainternational-ngx-sds-components-src-lib-avatar.d.ts → index.d.ts} +0 -0
- /package/src/lib/badge/{spicainternational-ngx-sds-components-src-lib-badge.d.ts → index.d.ts} +0 -0
- /package/src/lib/callout/{spicainternational-ngx-sds-components-src-lib-callout.d.ts → index.d.ts} +0 -0
- /package/src/lib/color-picker/{spicainternational-ngx-sds-components-src-lib-color-picker.d.ts → index.d.ts} +0 -0
- /package/src/lib/date-picker/{spicainternational-ngx-sds-components-src-lib-date-picker.d.ts → index.d.ts} +0 -0
- /package/src/lib/date-pipes/{spicainternational-ngx-sds-components-src-lib-date-pipes.d.ts → index.d.ts} +0 -0
- /package/src/lib/duration-box/{spicainternational-ngx-sds-components-src-lib-duration-box.d.ts → index.d.ts} +0 -0
- /package/src/lib/duration-pipe/{spicainternational-ngx-sds-components-src-lib-duration-pipe.d.ts → index.d.ts} +0 -0
- /package/src/lib/ellipsis/{spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts → index.d.ts} +0 -0
- /package/src/lib/expansion-panel/{spicainternational-ngx-sds-components-src-lib-expansion-panel.d.ts → index.d.ts} +0 -0
- /package/src/lib/highlight-text/{spicainternational-ngx-sds-components-src-lib-highlight-text.d.ts → index.d.ts} +0 -0
- /package/src/lib/intersection/{spicainternational-ngx-sds-components-src-lib-intersection.d.ts → index.d.ts} +0 -0
- /package/src/lib/keyboard-shortcut/{spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.d.ts → index.d.ts} +0 -0
- /package/src/lib/layout/{spicainternational-ngx-sds-components-src-lib-layout.d.ts → index.d.ts} +0 -0
- /package/src/lib/message/{spicainternational-ngx-sds-components-src-lib-message.d.ts → index.d.ts} +0 -0
- /package/src/lib/modal/{spicainternational-ngx-sds-components-src-lib-modal.d.ts → index.d.ts} +0 -0
- /package/src/lib/navigation/{spicainternational-ngx-sds-components-src-lib-navigation.d.ts → index.d.ts} +0 -0
- /package/src/lib/number-box/{spicainternational-ngx-sds-components-src-lib-number-box.d.ts → index.d.ts} +0 -0
- /package/src/lib/page-header/{spicainternational-ngx-sds-components-src-lib-page-header.d.ts → index.d.ts} +0 -0
- /package/src/lib/pane/{spicainternational-ngx-sds-components-src-lib-pane.d.ts → index.d.ts} +0 -0
- /package/src/lib/quick-info/{spicainternational-ngx-sds-components-src-lib-quick-info.d.ts → index.d.ts} +0 -0
- /package/src/lib/segmented-control/{spicainternational-ngx-sds-components-src-lib-segmented-control.d.ts → index.d.ts} +0 -0
- /package/src/lib/side-bar/{spicainternational-ngx-sds-components-src-lib-side-bar.d.ts → index.d.ts} +0 -0
- /package/src/lib/static-value/{spicainternational-ngx-sds-components-src-lib-static-value.d.ts → index.d.ts} +0 -0
- /package/src/lib/table-actions/{spicainternational-ngx-sds-components-src-lib-table-actions.d.ts → index.d.ts} +0 -0
- /package/src/lib/timeline/{spicainternational-ngx-sds-components-src-lib-timeline.d.ts → index.d.ts} +0 -0
- /package/src/lib/timer/{spicainternational-ngx-sds-components-src-lib-timer.d.ts → index.d.ts} +0 -0
- /package/src/lib/tooltip/{spicainternational-ngx-sds-components-src-lib-tooltip.d.ts → index.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-timer.mjs","sources":["../../../projects/ngx-sds-components/src/lib/timer/utils/timer.utils.ts","../../../projects/ngx-sds-components/src/lib/timer/services/timer.service.ts","../../../projects/ngx-sds-components/src/lib/timer/timer.module.ts","../../../projects/ngx-sds-components/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.ts"],"sourcesContent":["/**\r\n * @public @function timeToNextFifteenMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next fifteen minutes interval. By fifteen minutes interval\r\n * we mean (e.g. 08:15, 08:30, 08:45,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextFifteenMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 900;\r\n\r\n const numberOfSecondsToTheNextInterval = 900 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextFiveMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next five minutes interval. By five minutes interval\r\n * we mean (e.g. 08:05, 08:10, 08:15,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextFiveMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 300;\r\n\r\n const numberOfSecondsToTheNextInterval = 300 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextHour\r\n * @description\r\n * Function responsible for calc of time until next hour\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextHour = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentHour = timestampSeconds % 3600;\r\n\r\n const numberOfSecondsToTheNextHour = 3600 - numberOfSecondsIntoTheCurrentHour;\r\n return numberOfSecondsToTheNextHour;\r\n };\r\n\r\n /**\r\n * @public @function timeToNextHalfHour\r\n * @description\r\n * Function responsible for calc of time until half hour\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextHalfHour = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentHalfHour = timestampSeconds % 1800;\r\n\r\n const numberOfSecondsToTheNextHalfHour = 1800 - numberOfSecondsIntoTheCurrentHalfHour;\r\n return numberOfSecondsToTheNextHalfHour;\r\n };\r\n\r\n/**\r\n * @public @function timeToNextMinuteInterval\r\n * @description\r\n * Function responsible for calc of time until next minute interval. By minute interval\r\n * we mean (e.g. 08:00, 08:01, 08:02,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextMinuteInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 60;\r\n\r\n const numberOfSecondsToTheNextInterval = 60 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextSecondInterval\r\n * @description\r\n * Function responsible for calc of time until next second interval. By second interval\r\n * we mean (e.g. 08:00:01, 08:00:01, 08:00:02,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextSecondInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp;\r\n\r\n const numberOfMilisecSecondsIntoTheCurrentInterval = timestampSeconds % 999;\r\n\r\n const numberOfMilisecondsSecondsToTheNextInterval = 999 - numberOfMilisecSecondsIntoTheCurrentInterval;\r\n return numberOfMilisecondsSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextTenMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next ten minutes interval. By ten minutes interval\r\n * we mean (e.g. 08:10, 08:20, 08:30,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextTenMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 600;\r\n\r\n const numberOfSecondsToTheNextInterval = 600 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable, Subscription, interval } from 'rxjs';\r\nimport { timeToNextFifteenMinutesInterval, timeToNextFiveMinutesInterval, timeToNextHalfHour, timeToNextHour, timeToNextMinuteInterval, timeToNextSecondInterval, timeToNextTenMinutesInterval } from '../utils';\r\nimport { debounceTime, skip } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TimerService {\r\n /**\r\n * @description\r\n * Timer emitted every 15 minutes (e.g. 08:00, 08:15, 08:30, etc.)\r\n */\r\n public fifteenMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 5 minutes (e.g. 08:00, 08:05, 08:10, etc.)\r\n */\r\n public fiveMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer that invokes each full hour\r\n */\r\n public fullHourInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 30 minutes at full and half hour (e.g. at 10:00, 10:30, 11:00, etc.)\r\n */\r\n public halfHourInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every minute (e.g. 08:00, 08:01, 08:02, etc.)\r\n */\r\n public minuteInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every second\r\n */\r\n public secondsInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 10 minutes (e.g. 08:00, 08:10, 08:20, etc.)\r\n */\r\n public tenMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Source for fifteen minute interval\r\n */\r\n private _fifteenMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for five minute interval\r\n */\r\n private _fiveMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for half hour interval\r\n */\r\n private _fullHourInterval: BehaviorSubject<void> = new BehaviorSubject<void>(\r\n undefined\r\n );\r\n\r\n /**\r\n * @description\r\n * Source for half hour interval\r\n */\r\n private _halfHourInterval: BehaviorSubject<void> = new BehaviorSubject<void>(\r\n undefined\r\n );\r\n\r\n /**\r\n * @description\r\n * Source for minute interval\r\n */\r\n private _minuteInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for secong interval\r\n */\r\n private _secondsInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined);\r\n\r\n /**\r\n * @description\r\n * Source for ten minutes interval\r\n */\r\n private _tenMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n private _subscriptions: Subscription[] = [];\r\n\r\nconstructor() {\r\n this.fifteenMinutesInterval$ = this._fifteenMinutesInterval.asObservable().pipe(skip(1));\r\n this.fiveMinutesInterval$ = this._fiveMinutesInterval.asObservable().pipe(skip(1));\r\n this.fullHourInterval$ = this._fullHourInterval.asObservable().pipe(skip(1));\r\n this.halfHourInterval$ = this._halfHourInterval.asObservable().pipe(skip(1));\r\n this.minuteInterval$ = this._minuteInterval.asObservable().pipe().pipe(skip(1));\r\n this.secondsInterval$ = this._secondsInterval.asObservable().pipe(skip(1));\r\n this.tenMinutesInterval$ = this._tenMinutesInterval.asObservable().pipe(skip(1));\r\n\r\n const timeOffsetToFullSecond = timeToNextSecondInterval(new Date().getTime())\r\n\r\n // This observable will invoke each second while app is running\r\n const ticksSubscription: Subscription = interval(1000).pipe(debounceTime(timeOffsetToFullSecond)).subscribe(\r\n intervalTick => {\r\n const now = new Date().getTime();\r\n\r\n const timeRemainingToNextMinuteInterval = timeToNextMinuteInterval(now);\r\n\r\n const timeRemaingingToNextFiveMinutesInterval = timeToNextFiveMinutesInterval(now);\r\n\r\n const timeRemainingToNextTenMinutesInterval = timeToNextTenMinutesInterval(now);\r\n\r\n const timeRemainingToNextFifteenMinutesInterval = timeToNextFifteenMinutesInterval(now);\r\n\r\n const timeRemainingToNextFullHour = timeToNextHour(\r\n now\r\n );\r\n\r\n const timeRemainingToNextHalfHour = timeToNextHalfHour(\r\n now\r\n );\r\n\r\n this._secondsInterval.next();\r\n\r\n // Check if its minute tick\r\n if (timeRemainingToNextMinuteInterval > 59) {\r\n this._minuteInterval.next();\r\n }\r\n\r\n // Check if its five minute interval tick\r\n if (timeRemaingingToNextFiveMinutesInterval > 299) {\r\n this._fiveMinutesInterval.next();\r\n }\r\n\r\n // Check if its ten minute interval\r\n if (timeRemainingToNextTenMinutesInterval > 599) {\r\n this._tenMinutesInterval.next();\r\n }\r\n\r\n // Check if its fifteen minute interval\r\n if (timeRemainingToNextFifteenMinutesInterval > 899) {\r\n this._fifteenMinutesInterval.next();\r\n }\r\n\r\n // Check if its half hour tick\r\n if (timeRemainingToNextHalfHour > 1799) {\r\n this._halfHourInterval.next();\r\n }\r\n\r\n // Check if its full hour tick\r\n if (timeRemainingToNextFullHour > 3599) {\r\n this._fullHourInterval.next();\r\n }\r\n\r\n // Define any additional intervals that might be needed\r\n }\r\n );\r\n\r\n this._subscriptions.push(ticksSubscription);\r\n}\r\n}\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TimerService } from './services';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ]\r\n})\r\nexport class SdsTimerModule {\r\n static forRoot(): ModuleWithProviders<SdsTimerModule> {\r\n return {\r\n ngModule: SdsTimerModule,\r\n providers: [TimerService]\r\n }\r\n }\r\n\r\n constructor(@Optional() @SkipSelf() parentModule: SdsTimerModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'TimerModule is already loaded. Import it in the AppModule only'\r\n );\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACU,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AA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHvB,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAJhB,OAAA,EAAA,CAAA;YACP,YAAY;AACb,SAAA,CAAA,EAAA,CAAA,CAAA;2FAEU,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA,CAAA;0DASqD,cAAc,EAAA,UAAA,EAAA,CAAA;0BAAnD,QAAQ;;0BAAI,QAAQ;;;AClBrC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-timer.mjs","sources":["../../../projects/ngx-sds-components/src/lib/timer/utils/timer.utils.ts","../../../projects/ngx-sds-components/src/lib/timer/services/timer.service.ts","../../../projects/ngx-sds-components/src/lib/timer/timer.module.ts","../../../projects/ngx-sds-components/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.ts"],"sourcesContent":["/**\r\n * @public @function timeToNextFifteenMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next fifteen minutes interval. By fifteen minutes interval\r\n * we mean (e.g. 08:15, 08:30, 08:45,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextFifteenMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 900;\r\n\r\n const numberOfSecondsToTheNextInterval = 900 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextFiveMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next five minutes interval. By five minutes interval\r\n * we mean (e.g. 08:05, 08:10, 08:15,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextFiveMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 300;\r\n\r\n const numberOfSecondsToTheNextInterval = 300 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextHour\r\n * @description\r\n * Function responsible for calc of time until next hour\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextHour = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentHour = timestampSeconds % 3600;\r\n\r\n const numberOfSecondsToTheNextHour = 3600 - numberOfSecondsIntoTheCurrentHour;\r\n return numberOfSecondsToTheNextHour;\r\n };\r\n\r\n /**\r\n * @public @function timeToNextHalfHour\r\n * @description\r\n * Function responsible for calc of time until half hour\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextHalfHour = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentHalfHour = timestampSeconds % 1800;\r\n\r\n const numberOfSecondsToTheNextHalfHour = 1800 - numberOfSecondsIntoTheCurrentHalfHour;\r\n return numberOfSecondsToTheNextHalfHour;\r\n };\r\n\r\n/**\r\n * @public @function timeToNextMinuteInterval\r\n * @description\r\n * Function responsible for calc of time until next minute interval. By minute interval\r\n * we mean (e.g. 08:00, 08:01, 08:02,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextMinuteInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 60;\r\n\r\n const numberOfSecondsToTheNextInterval = 60 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextSecondInterval\r\n * @description\r\n * Function responsible for calc of time until next second interval. By second interval\r\n * we mean (e.g. 08:00:01, 08:00:01, 08:00:02,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextSecondInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp;\r\n\r\n const numberOfMilisecSecondsIntoTheCurrentInterval = timestampSeconds % 999;\r\n\r\n const numberOfMilisecondsSecondsToTheNextInterval = 999 - numberOfMilisecSecondsIntoTheCurrentInterval;\r\n return numberOfMilisecondsSecondsToTheNextInterval;\r\n}\r\n\r\n/**\r\n * @public @function timeToNextTenMinutesInterval\r\n * @description\r\n * Function responsible for calc of time until next ten minutes interval. By ten minutes interval\r\n * we mean (e.g. 08:10, 08:20, 08:30,...)\r\n * @param { number } currentTimestampMs\r\n * @returns { number }\r\n */\r\nexport const timeToNextTenMinutesInterval = (currentTimestamp: number) => {\r\n const timestampSeconds = currentTimestamp / 1000;\r\n\r\n const numberOfSecondsIntoTheCurrentInterval = timestampSeconds % 600;\r\n\r\n const numberOfSecondsToTheNextInterval = 600 - numberOfSecondsIntoTheCurrentInterval;\r\n return numberOfSecondsToTheNextInterval;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable, Subscription, interval } from 'rxjs';\r\nimport { timeToNextFifteenMinutesInterval, timeToNextFiveMinutesInterval, timeToNextHalfHour, timeToNextHour, timeToNextMinuteInterval, timeToNextSecondInterval, timeToNextTenMinutesInterval } from '../utils';\r\nimport { debounceTime, skip } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TimerService {\r\n /**\r\n * @description\r\n * Timer emitted every 15 minutes (e.g. 08:00, 08:15, 08:30, etc.)\r\n */\r\n public fifteenMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 5 minutes (e.g. 08:00, 08:05, 08:10, etc.)\r\n */\r\n public fiveMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer that invokes each full hour\r\n */\r\n public fullHourInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 30 minutes at full and half hour (e.g. at 10:00, 10:30, 11:00, etc.)\r\n */\r\n public halfHourInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every minute (e.g. 08:00, 08:01, 08:02, etc.)\r\n */\r\n public minuteInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every second\r\n */\r\n public secondsInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Timer emitted every 10 minutes (e.g. 08:00, 08:10, 08:20, etc.)\r\n */\r\n public tenMinutesInterval$: Observable<void>;\r\n\r\n /**\r\n * @description\r\n * Source for fifteen minute interval\r\n */\r\n private _fifteenMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for five minute interval\r\n */\r\n private _fiveMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for half hour interval\r\n */\r\n private _fullHourInterval: BehaviorSubject<void> = new BehaviorSubject<void>(\r\n undefined\r\n );\r\n\r\n /**\r\n * @description\r\n * Source for half hour interval\r\n */\r\n private _halfHourInterval: BehaviorSubject<void> = new BehaviorSubject<void>(\r\n undefined\r\n );\r\n\r\n /**\r\n * @description\r\n * Source for minute interval\r\n */\r\n private _minuteInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n /**\r\n * @description\r\n * Source for secong interval\r\n */\r\n private _secondsInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined);\r\n\r\n /**\r\n * @description\r\n * Source for ten minutes interval\r\n */\r\n private _tenMinutesInterval: BehaviorSubject<void> = new BehaviorSubject<void>(undefined)\r\n\r\n private _subscriptions: Subscription[] = [];\r\n\r\nconstructor() {\r\n this.fifteenMinutesInterval$ = this._fifteenMinutesInterval.asObservable().pipe(skip(1));\r\n this.fiveMinutesInterval$ = this._fiveMinutesInterval.asObservable().pipe(skip(1));\r\n this.fullHourInterval$ = this._fullHourInterval.asObservable().pipe(skip(1));\r\n this.halfHourInterval$ = this._halfHourInterval.asObservable().pipe(skip(1));\r\n this.minuteInterval$ = this._minuteInterval.asObservable().pipe().pipe(skip(1));\r\n this.secondsInterval$ = this._secondsInterval.asObservable().pipe(skip(1));\r\n this.tenMinutesInterval$ = this._tenMinutesInterval.asObservable().pipe(skip(1));\r\n\r\n const timeOffsetToFullSecond = timeToNextSecondInterval(new Date().getTime())\r\n\r\n // This observable will invoke each second while app is running\r\n const ticksSubscription: Subscription = interval(1000).pipe(debounceTime(timeOffsetToFullSecond)).subscribe(\r\n intervalTick => {\r\n const now = new Date().getTime();\r\n\r\n const timeRemainingToNextMinuteInterval = timeToNextMinuteInterval(now);\r\n\r\n const timeRemaingingToNextFiveMinutesInterval = timeToNextFiveMinutesInterval(now);\r\n\r\n const timeRemainingToNextTenMinutesInterval = timeToNextTenMinutesInterval(now);\r\n\r\n const timeRemainingToNextFifteenMinutesInterval = timeToNextFifteenMinutesInterval(now);\r\n\r\n const timeRemainingToNextFullHour = timeToNextHour(\r\n now\r\n );\r\n\r\n const timeRemainingToNextHalfHour = timeToNextHalfHour(\r\n now\r\n );\r\n\r\n this._secondsInterval.next();\r\n\r\n // Check if its minute tick\r\n if (timeRemainingToNextMinuteInterval > 59) {\r\n this._minuteInterval.next();\r\n }\r\n\r\n // Check if its five minute interval tick\r\n if (timeRemaingingToNextFiveMinutesInterval > 299) {\r\n this._fiveMinutesInterval.next();\r\n }\r\n\r\n // Check if its ten minute interval\r\n if (timeRemainingToNextTenMinutesInterval > 599) {\r\n this._tenMinutesInterval.next();\r\n }\r\n\r\n // Check if its fifteen minute interval\r\n if (timeRemainingToNextFifteenMinutesInterval > 899) {\r\n this._fifteenMinutesInterval.next();\r\n }\r\n\r\n // Check if its half hour tick\r\n if (timeRemainingToNextHalfHour > 1799) {\r\n this._halfHourInterval.next();\r\n }\r\n\r\n // Check if its full hour tick\r\n if (timeRemainingToNextFullHour > 3599) {\r\n this._fullHourInterval.next();\r\n }\r\n\r\n // Define any additional intervals that might be needed\r\n }\r\n );\r\n\r\n this._subscriptions.push(ticksSubscription);\r\n}\r\n}\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TimerService } from './services';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule\r\n ]\r\n})\r\nexport class SdsTimerModule {\r\n static forRoot(): ModuleWithProviders<SdsTimerModule> {\r\n return {\r\n ngModule: SdsTimerModule,\r\n providers: [TimerService]\r\n }\r\n }\r\n\r\n constructor(@Optional() @SkipSelf() parentModule: SdsTimerModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'TimerModule is already loaded. Import it in the AppModule only'\r\n );\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACU,MAAA,gCAAgC,GAAG,CAAC,gBAAwB,KAAI;AACzE,IAAA,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,IAAI,CAAC;AAEjD,IAAA,MAAM,qCAAqC,GAAG,gBAAgB,GAAG,GAAG,CAAC;AAErE,IAAA,MAAM,gCAAgC,GAAG,GAAG,GAAG,qCAAqC,CAAC;AACrF,IAAA,OAAO,gCAAgC,CAAC;AAC5C,EAAC;AAED;;;;;;;AAOG;AACU,MAAA,6BAA6B,GAAG,CAAC,gBAAwB,KAAI;A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Y,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA,CAAA;;0BASgB,QAAQ;;0BAAI,QAAQ;;;AClBrC;;AAEG;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, Directive, Input, HostListener, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i2 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
7
|
|
|
8
8
|
class SdsTooltipComponent {
|
|
@@ -16,11 +16,11 @@ class SdsTooltipComponent {
|
|
|
16
16
|
}
|
|
17
17
|
ngOnInit() { }
|
|
18
18
|
}
|
|
19
|
-
SdsTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
SdsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
SdsTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
SdsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SdsTooltipComponent, selector: "ng-component", ngImport: i0, template: "<div class=\"sds-tooltip\"\r\n [ngClass]=\"['sds-tooltip-' + position, 'sds-tooltip-' + theme, tooltipClass]\"\r\n [class.sds-tooltip-visible]=\"visible\"\r\n [style.left.px]=\"left\"\r\n [style.top.px]=\"top\"\r\n >\r\n <fa-icon class=\"sds-tooltip-icon\"\r\n *ngIf=\"tooltipIcon\" \r\n [icon]=\"tooltipIcon\">\r\n </fa-icon>\r\n\r\n <small class=\"sds-tooltip-text\">\r\n {{ tooltip }}\r\n </small>\r\n\r\n</div>\r\n", styles: [".sds-tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;padding:3px 6px;max-width:15rem;z-index:1070;opacity:0}.sds-tooltip fa-icon{margin-right:.25rem}.sds-tooltip-visible{opacity:1;transition:opacity .3s}.sds-tooltip-light{background-color:var(--bs-gray-200);color:#000}.sds-tooltip-dark{background-color:#000;color:#fff}.sds-tooltip-danger{background-color:var(--bs-danger);color:#fff}.sds-tooltip-success{background-color:var(--bs-success);color:#fff}.sds-tooltip-warning{background-color:var(--bs-warning);color:var(--bs-gray-900)}.sds-tooltip-info{background-color:var(--bs-info);color:#fff}.sds-tooltip-classic{background-color:#fff;color:#000;border:1px solid gray}.sds-tooltip-below{transform:translate(-50%);margin-top:.5rem}.sds-tooltip-above{transform:translate(-50%,calc(-100% - .5rem));margin-bottom:.5rem}.sds-tooltip-left{transform:translate(calc(-100% - .5rem),-50%)}.sds-tooltip-right{transform:translateY(-50%);margin-left:.5rem}.sds-tooltip-dynamic{margin-left:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
|
-
args: [{ template: "<div class=\"sds-tooltip\"\r\n [ngClass]=\"['sds-tooltip-' + position, 'sds-tooltip-' + theme, tooltipClass]\"\r\n [class.sds-tooltip-visible]=\"visible\"\r\n [style.left.px]=\"left\"\r\n [style.top.px]=\"top\"\r\n >\r\n <fa-icon class=\"sds-tooltip-icon\"\r\n *ngIf=\"tooltipIcon\" \r\n [icon]=\"tooltipIcon\">\r\n </fa-icon>\r\n\r\n <small class=\"sds-tooltip-text\">\r\n {{ tooltip }}\r\n </small>\r\n\r\n</div>\r\n", styles: [".sds-tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;padding:3px 6px;max-width:15rem;z-index:1070;opacity:0}.sds-tooltip fa-icon{margin-right:.25rem}.sds-tooltip-visible{opacity:1;transition:opacity .3s}.sds-tooltip-light{background-color
|
|
23
|
+
args: [{ template: "<div class=\"sds-tooltip\"\r\n [ngClass]=\"['sds-tooltip-' + position, 'sds-tooltip-' + theme, tooltipClass]\"\r\n [class.sds-tooltip-visible]=\"visible\"\r\n [style.left.px]=\"left\"\r\n [style.top.px]=\"top\"\r\n >\r\n <fa-icon class=\"sds-tooltip-icon\"\r\n *ngIf=\"tooltipIcon\" \r\n [icon]=\"tooltipIcon\">\r\n </fa-icon>\r\n\r\n <small class=\"sds-tooltip-text\">\r\n {{ tooltip }}\r\n </small>\r\n\r\n</div>\r\n", styles: [".sds-tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;padding:3px 6px;max-width:15rem;z-index:1070;opacity:0}.sds-tooltip fa-icon{margin-right:.25rem}.sds-tooltip-visible{opacity:1;transition:opacity .3s}.sds-tooltip-light{background-color:var(--bs-gray-200);color:#000}.sds-tooltip-dark{background-color:#000;color:#fff}.sds-tooltip-danger{background-color:var(--bs-danger);color:#fff}.sds-tooltip-success{background-color:var(--bs-success);color:#fff}.sds-tooltip-warning{background-color:var(--bs-warning);color:var(--bs-gray-900)}.sds-tooltip-info{background-color:var(--bs-info);color:#fff}.sds-tooltip-classic{background-color:#fff;color:#000;border:1px solid gray}.sds-tooltip-below{transform:translate(-50%);margin-top:.5rem}.sds-tooltip-above{transform:translate(-50%,calc(-100% - .5rem));margin-bottom:.5rem}.sds-tooltip-left{transform:translate(calc(-100% - .5rem),-50%)}.sds-tooltip-right{transform:translateY(-50%);margin-left:.5rem}.sds-tooltip-dynamic{margin-left:20px}\n"] }]
|
|
24
24
|
}], ctorParameters: function () { return []; } });
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -189,9 +189,9 @@ class TooltipDirective {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
193
|
-
TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
192
|
+
TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
193
|
+
TooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TooltipDirective, selector: "[sdsTooltip]", inputs: { tooltip: "tooltip", tooltipClass: "tooltipClass", tooltipIcon: "tooltipIcon", position: "position", theme: "theme", showDelay: "showDelay", hideDelay: "hideDelay" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "mousemove": "onMouseMove($event)", "touchstart": "onTouchStart($event)", "touchend": "onTouchEnd()" } }, usesOnChanges: true, ngImport: i0 });
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
195
195
|
type: Directive,
|
|
196
196
|
args: [{
|
|
197
197
|
selector: '[sdsTooltip]',
|
|
@@ -229,15 +229,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
|
229
229
|
|
|
230
230
|
class SdsTooltipModule {
|
|
231
231
|
}
|
|
232
|
-
SdsTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
233
|
-
SdsTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
232
|
+
SdsTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
233
|
+
SdsTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipModule, declarations: [SdsTooltipComponent,
|
|
234
234
|
TooltipDirective], imports: [CommonModule,
|
|
235
235
|
FontAwesomeModule], exports: [TooltipDirective] });
|
|
236
|
-
SdsTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
]] });
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsTooltipModule, decorators: [{
|
|
236
|
+
SdsTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipModule, imports: [CommonModule,
|
|
237
|
+
FontAwesomeModule] });
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SdsTooltipModule, decorators: [{
|
|
241
239
|
type: NgModule,
|
|
242
240
|
args: [{
|
|
243
241
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-tooltip.mjs","sources":["../../../projects/ngx-sds-components/src/lib/tooltip/components/tooltip.component.ts","../../../projects/ngx-sds-components/src/lib/tooltip/components/tooltip.component.html","../../../projects/ngx-sds-components/src/lib/tooltip/utils/tooltip.utils.ts","../../../projects/ngx-sds-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-sds-components/src/lib/tooltip/tooltip.module.ts","../../../projects/ngx-sds-components/src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { TooltipPosition, TooltipTheme } from '../tooltip.types';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\n\r\n@Component({\r\n templateUrl: './tooltip.component.html',\r\n styleUrls: ['./tooltip.component.scss'],\r\n})\r\nexport class SdsTooltipComponent implements OnInit {\r\n\r\n public tooltip: string = '';\r\n public left: number = 0;\r\n public top: number = 0;\r\n public visible: boolean = false;\r\n\r\n public tooltipIcon?: IconProp;\r\n public tooltipClass?: string;\r\n\r\n public position: TooltipPosition = 'above';\r\n public theme: TooltipTheme = 'dark';\r\n\r\n\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {}\r\n}\r\n","<div class=\"sds-tooltip\"\r\n [ngClass]=\"['sds-tooltip-' + position, 'sds-tooltip-' + theme, tooltipClass]\"\r\n [class.sds-tooltip-visible]=\"visible\"\r\n [style.left.px]=\"left\"\r\n [style.top.px]=\"top\"\r\n >\r\n <fa-icon class=\"sds-tooltip-icon\"\r\n *ngIf=\"tooltipIcon\" \r\n [icon]=\"tooltipIcon\">\r\n </fa-icon>\r\n\r\n <small class=\"sds-tooltip-text\">\r\n {{ tooltip }}\r\n </small>\r\n\r\n</div>\r\n","/**\r\n * Check if device is mobile phone or tablet\r\n * {@link https://stackoverflow.com/a/11381730 | [SO] Detecting a mobile browser }\r\n */\r\nexport const isMobile = function() {\r\n let check = false;\r\n (function(a){\r\n if(\r\n // RegExp for mobile devices\r\n /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i\r\n // preform regex check\r\n .test(a.substr(0,4))\r\n ) \r\n check = true;\r\n })(navigator.userAgent||navigator.vendor||(window as any).opera);\r\n return check;\r\n };\r\n ","import {\r\n ApplicationRef,\r\n ComponentFactoryResolver,\r\n ComponentRef,\r\n Directive,\r\n ElementRef,\r\n EmbeddedViewRef,\r\n HostListener,\r\n Injector,\r\n Input,\r\n OnChanges,\r\n Renderer2,\r\n SimpleChanges,\r\n ViewContainerRef,\r\n} from '@angular/core';\r\nimport { SdsTooltipComponent } from './components/tooltip.component';\r\nimport { TooltipPosition, TooltipTheme } from './tooltip.types';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\nimport { isMobile } from './utils';\r\n\r\n@Directive({\r\n selector: '[sdsTooltip]',\r\n})\r\nexport class TooltipDirective implements OnChanges {\r\n @Input() tooltip = '';\r\n @Input() tooltipClass = '';\r\n @Input() tooltipIcon?: IconProp;\r\n @Input() position: TooltipPosition = 'above';\r\n @Input() theme: TooltipTheme = 'dark';\r\n @Input() showDelay = 0;\r\n @Input() hideDelay = 0;\r\n\r\n private componentRef: ComponentRef<any> | null = null;\r\n private showTimeout?: number;\r\n private hideTimeout?: number;\r\n private touchTimeout?: number;\r\n\r\n\r\n constructor(\r\n private elementRef: ElementRef,\r\n private appRef: ApplicationRef,\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n // private viewContainerRef: ViewContainerRef,\r\n private injector: Injector,\r\n // private renderer2: Renderer2\r\n ) {\r\n // this.renderer2.listen('window', 'scroll', (_) => {\r\n // console.log('scroll');\r\n // this.setHideTooltipTimeout();\r\n // });\r\n }\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['tooltip']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n } \r\n }\r\n\r\n if (changes['tooltipIcon']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n } \r\n } \r\n \r\n if (changes['tooltipClass']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n } \r\n } \r\n }\r\n\r\n @HostListener('mouseenter')\r\n onMouseEnter(): void {\r\n if(isMobile()) return;\r\n\r\n this.initializeTooltip();\r\n }\r\n\r\n @HostListener('mouseleave')\r\n onMouseLeave(): void {\r\n if(isMobile()) return;\r\n\r\n this.setHideTooltipTimeout();\r\n }\r\n\r\n // @HostListener(\"window:scroll\", [])\r\n // onWindowScroll() {\r\n // console.log('scroll');\r\n // this.setHideTooltipTimeout();\r\n // }\r\n\r\n // @HostListener('window:scroll') onScroll(e: Event): void {\r\n // console.log((e.target as Element).scrollTop);\r\n // }\r\n\r\n // @HostListener('scroll') onScrollHost(e: Event): void {\r\n // console.log((e.target as Element).scrollTop);\r\n // }\r\n\r\n @HostListener('mousemove', ['$event'])\r\n onMouseMove($event: MouseEvent): void {\r\n if(isMobile()) return;\r\n\r\n if (this.componentRef !== null && this.position === 'dynamic') {\r\n this.componentRef.instance.left = $event.clientX;\r\n this.componentRef.instance.top = $event.clientY;\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n }\r\n }\r\n\r\n @HostListener('touchstart', ['$event'])\r\n onTouchStart($event: TouchEvent): void {\r\n // Only triggered on mobile devices, no need to check device type\r\n \r\n window.clearTimeout(this.touchTimeout);\r\n this.touchTimeout = window.setTimeout(this.initializeTooltip.bind(this), 500);\r\n }\r\n\r\n @HostListener('touchend')\r\n onTouchEnd(): void {\r\n // Only triggered on mobile devices, no need to check device type\r\n\r\n window.clearTimeout(this.touchTimeout);\r\n this.setHideTooltipTimeout();\r\n }\r\n\r\n private initializeTooltip() {\r\n if (this.componentRef === null) {\r\n window.clearInterval(this.hideDelay);\r\n\r\n if (this.tooltip) {\r\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(SdsTooltipComponent);\r\n this.componentRef = componentFactory.create(this.injector);\r\n\r\n this.appRef.attachView(this.componentRef.hostView);\r\n const [tooltipDOMElement] = (this.componentRef.hostView as EmbeddedViewRef<any>).rootNodes;\r\n\r\n this.setTooltipComponentProperties();\r\n\r\n document.body.appendChild(tooltipDOMElement);\r\n this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);\r\n }\r\n }\r\n }\r\n\r\n private setTooltipComponentProperties() {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n this.componentRef.instance.position = this.position;\r\n this.componentRef.instance.theme = this.theme;\r\n\r\n const { left, right, top, bottom } = this.elementRef.nativeElement.getBoundingClientRect();\r\n\r\n switch (this.position) {\r\n case 'below': {\r\n this.componentRef.instance.left = Math.round((right - left) / 2 + left);\r\n this.componentRef.instance.top = Math.round(bottom);\r\n break;\r\n }\r\n case 'above': {\r\n this.componentRef.instance.left = Math.round((right - left) / 2 + left);\r\n this.componentRef.instance.top = Math.round(top);\r\n break;\r\n }\r\n case 'right': {\r\n this.componentRef.instance.left = Math.round(right);\r\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\r\n break;\r\n }\r\n case 'left': {\r\n this.componentRef.instance.left = Math.round(left);\r\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\r\n break;\r\n }\r\n default: {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private showTooltip() {\r\n if (this.tooltip && this.componentRef !== null) {\r\n this.componentRef.instance.visible = true;\r\n }\r\n }\r\n\r\n private setHideTooltipTimeout() {\r\n this.hideTimeout = window.setTimeout(this.destroy.bind(this), this.hideDelay);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.destroy();\r\n }\r\n\r\n destroy(): void {\r\n if (this.componentRef !== null) {\r\n window.clearInterval(this.showTimeout);\r\n window.clearInterval(this.hideDelay);\r\n this.appRef.detachView(this.componentRef.hostView);\r\n this.componentRef.destroy();\r\n this.componentRef = null;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsTooltipComponent } from '../tooltip/components/tooltip.component';\r\nimport { TooltipDirective } from './tooltip.directive';\r\nimport { TooltipPosition, TooltipTheme } from './tooltip.types';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsTooltipComponent,\r\n TooltipDirective\r\n ],\r\n imports: [\r\n CommonModule,\r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n TooltipDirective\r\n ]\r\n})\r\nexport class SdsTooltipModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,mBAAmB,CAAA;AAe5B,IAAA,WAAA,GAAA;QAbO,IAAO,CAAA,OAAA,GAAW,EAAE,CAAC;QACrB,IAAI,CAAA,IAAA,GAAW,CAAC,CAAC;QACjB,IAAG,CAAA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B;wBACnB,gBAAgB;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-tooltip.mjs","sources":["../../../projects/ngx-sds-components/src/lib/tooltip/components/tooltip.component.ts","../../../projects/ngx-sds-components/src/lib/tooltip/components/tooltip.component.html","../../../projects/ngx-sds-components/src/lib/tooltip/utils/tooltip.utils.ts","../../../projects/ngx-sds-components/src/lib/tooltip/tooltip.directive.ts","../../../projects/ngx-sds-components/src/lib/tooltip/tooltip.module.ts","../../../projects/ngx-sds-components/src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\r\nimport { TooltipPosition, TooltipTheme } from '../tooltip.types';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\n\r\n@Component({\r\n templateUrl: './tooltip.component.html',\r\n styleUrls: ['./tooltip.component.scss'],\r\n})\r\nexport class SdsTooltipComponent implements OnInit {\r\n\r\n public tooltip: string = '';\r\n public left: number = 0;\r\n public top: number = 0;\r\n public visible: boolean = false;\r\n\r\n public tooltipIcon?: IconProp;\r\n public tooltipClass?: string;\r\n\r\n public position: TooltipPosition = 'above';\r\n public theme: TooltipTheme = 'dark';\r\n\r\n\r\n\r\n constructor() {}\r\n\r\n ngOnInit(): void {}\r\n}\r\n","<div class=\"sds-tooltip\"\r\n [ngClass]=\"['sds-tooltip-' + position, 'sds-tooltip-' + theme, tooltipClass]\"\r\n [class.sds-tooltip-visible]=\"visible\"\r\n [style.left.px]=\"left\"\r\n [style.top.px]=\"top\"\r\n >\r\n <fa-icon class=\"sds-tooltip-icon\"\r\n *ngIf=\"tooltipIcon\" \r\n [icon]=\"tooltipIcon\">\r\n </fa-icon>\r\n\r\n <small class=\"sds-tooltip-text\">\r\n {{ tooltip }}\r\n </small>\r\n\r\n</div>\r\n","/**\r\n * Check if device is mobile phone or tablet\r\n * {@link https://stackoverflow.com/a/11381730 | [SO] Detecting a mobile browser }\r\n */\r\nexport const isMobile = function() {\r\n let check = false;\r\n (function(a){\r\n if(\r\n // RegExp for mobile devices\r\n /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i\r\n // preform regex check\r\n .test(a.substr(0,4))\r\n ) \r\n check = true;\r\n })(navigator.userAgent||navigator.vendor||(window as any).opera);\r\n return check;\r\n };\r\n ","import {\r\n ApplicationRef,\r\n ComponentFactoryResolver,\r\n ComponentRef,\r\n Directive,\r\n ElementRef,\r\n EmbeddedViewRef,\r\n HostListener,\r\n Injector,\r\n Input,\r\n OnChanges,\r\n Renderer2,\r\n SimpleChanges,\r\n ViewContainerRef,\r\n} from '@angular/core';\r\nimport { SdsTooltipComponent } from './components/tooltip.component';\r\nimport { TooltipPosition, TooltipTheme } from './tooltip.types';\r\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\r\nimport { isMobile } from './utils';\r\n\r\n@Directive({\r\n selector: '[sdsTooltip]',\r\n})\r\nexport class TooltipDirective implements OnChanges {\r\n @Input() tooltip = '';\r\n @Input() tooltipClass = '';\r\n @Input() tooltipIcon?: IconProp;\r\n @Input() position: TooltipPosition = 'above';\r\n @Input() theme: TooltipTheme = 'dark';\r\n @Input() showDelay = 0;\r\n @Input() hideDelay = 0;\r\n\r\n private componentRef: ComponentRef<any> | null = null;\r\n private showTimeout?: number;\r\n private hideTimeout?: number;\r\n private touchTimeout?: number;\r\n\r\n\r\n constructor(\r\n private elementRef: ElementRef,\r\n private appRef: ApplicationRef,\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n // private viewContainerRef: ViewContainerRef,\r\n private injector: Injector,\r\n // private renderer2: Renderer2\r\n ) {\r\n // this.renderer2.listen('window', 'scroll', (_) => {\r\n // console.log('scroll');\r\n // this.setHideTooltipTimeout();\r\n // });\r\n }\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['tooltip']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n } \r\n }\r\n\r\n if (changes['tooltipIcon']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n } \r\n } \r\n \r\n if (changes['tooltipClass']) {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n } \r\n } \r\n }\r\n\r\n @HostListener('mouseenter')\r\n onMouseEnter(): void {\r\n if(isMobile()) return;\r\n\r\n this.initializeTooltip();\r\n }\r\n\r\n @HostListener('mouseleave')\r\n onMouseLeave(): void {\r\n if(isMobile()) return;\r\n\r\n this.setHideTooltipTimeout();\r\n }\r\n\r\n // @HostListener(\"window:scroll\", [])\r\n // onWindowScroll() {\r\n // console.log('scroll');\r\n // this.setHideTooltipTimeout();\r\n // }\r\n\r\n // @HostListener('window:scroll') onScroll(e: Event): void {\r\n // console.log((e.target as Element).scrollTop);\r\n // }\r\n\r\n // @HostListener('scroll') onScrollHost(e: Event): void {\r\n // console.log((e.target as Element).scrollTop);\r\n // }\r\n\r\n @HostListener('mousemove', ['$event'])\r\n onMouseMove($event: MouseEvent): void {\r\n if(isMobile()) return;\r\n\r\n if (this.componentRef !== null && this.position === 'dynamic') {\r\n this.componentRef.instance.left = $event.clientX;\r\n this.componentRef.instance.top = $event.clientY;\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n }\r\n }\r\n\r\n @HostListener('touchstart', ['$event'])\r\n onTouchStart($event: TouchEvent): void {\r\n // Only triggered on mobile devices, no need to check device type\r\n \r\n window.clearTimeout(this.touchTimeout);\r\n this.touchTimeout = window.setTimeout(this.initializeTooltip.bind(this), 500);\r\n }\r\n\r\n @HostListener('touchend')\r\n onTouchEnd(): void {\r\n // Only triggered on mobile devices, no need to check device type\r\n\r\n window.clearTimeout(this.touchTimeout);\r\n this.setHideTooltipTimeout();\r\n }\r\n\r\n private initializeTooltip() {\r\n if (this.componentRef === null) {\r\n window.clearInterval(this.hideDelay);\r\n\r\n if (this.tooltip) {\r\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(SdsTooltipComponent);\r\n this.componentRef = componentFactory.create(this.injector);\r\n\r\n this.appRef.attachView(this.componentRef.hostView);\r\n const [tooltipDOMElement] = (this.componentRef.hostView as EmbeddedViewRef<any>).rootNodes;\r\n\r\n this.setTooltipComponentProperties();\r\n\r\n document.body.appendChild(tooltipDOMElement);\r\n this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);\r\n }\r\n }\r\n }\r\n\r\n private setTooltipComponentProperties() {\r\n if (this.componentRef !== null) {\r\n this.componentRef.instance.tooltip = this.tooltip;\r\n this.componentRef.instance.tooltipIcon = this.tooltipIcon;\r\n this.componentRef.instance.tooltipClass = this.tooltipClass;\r\n this.componentRef.instance.position = this.position;\r\n this.componentRef.instance.theme = this.theme;\r\n\r\n const { left, right, top, bottom } = this.elementRef.nativeElement.getBoundingClientRect();\r\n\r\n switch (this.position) {\r\n case 'below': {\r\n this.componentRef.instance.left = Math.round((right - left) / 2 + left);\r\n this.componentRef.instance.top = Math.round(bottom);\r\n break;\r\n }\r\n case 'above': {\r\n this.componentRef.instance.left = Math.round((right - left) / 2 + left);\r\n this.componentRef.instance.top = Math.round(top);\r\n break;\r\n }\r\n case 'right': {\r\n this.componentRef.instance.left = Math.round(right);\r\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\r\n break;\r\n }\r\n case 'left': {\r\n this.componentRef.instance.left = Math.round(left);\r\n this.componentRef.instance.top = Math.round(top + (bottom - top) / 2);\r\n break;\r\n }\r\n default: {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private showTooltip() {\r\n if (this.tooltip && this.componentRef !== null) {\r\n this.componentRef.instance.visible = true;\r\n }\r\n }\r\n\r\n private setHideTooltipTimeout() {\r\n this.hideTimeout = window.setTimeout(this.destroy.bind(this), this.hideDelay);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.destroy();\r\n }\r\n\r\n destroy(): void {\r\n if (this.componentRef !== null) {\r\n window.clearInterval(this.showTimeout);\r\n window.clearInterval(this.hideDelay);\r\n this.appRef.detachView(this.componentRef.hostView);\r\n this.componentRef.destroy();\r\n this.componentRef = null;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsTooltipComponent } from '../tooltip/components/tooltip.component';\r\nimport { TooltipDirective } from './tooltip.directive';\r\nimport { TooltipPosition, TooltipTheme } from './tooltip.types';\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsTooltipComponent,\r\n TooltipDirective\r\n ],\r\n imports: [\r\n CommonModule,\r\n FontAwesomeModule\r\n ],\r\n exports: [\r\n TooltipDirective\r\n ]\r\n})\r\nexport class SdsTooltipModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAQa,mBAAmB,CAAA;AAe5B,IAAA,WAAA,GAAA;QAbO,IAAO,CAAA,OAAA,GAAW,EAAE,CAAC;QACrB,IAAI,CAAA,IAAA,GAAW,CAAC,CAAC;QACjB,IAAG,CAAA,GAAA,GAAW,CAAC,CAAC;QAChB,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;QAKzB,IAAQ,CAAA,QAAA,GAAoB,OAAO,CAAC;QACpC,IAAK,CAAA,KAAA,GAAiB,MAAM,CAAC;KAIpB;AAEhB,IAAA,QAAQ,MAAW;;iHAjBV,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,oDCRhC,odAgBA,EAAA,MAAA,EAAA,CAAA,q/BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,e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AAY;AACZ,QAAA,iBAAiB,aAGjB,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAGP,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAPzB,YAAY;QACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA;4FAMR,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAb5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,mBAAmB;wBACnB,gBAAgB;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spicainternational/ngx-sds-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Spica design system angular components.",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": ">=
|
|
8
|
-
"@angular/core": ">=
|
|
9
|
-
"@angular/cdk": ">=
|
|
10
|
-
"@fortawesome/angular-fontawesome": "
|
|
7
|
+
"@angular/common": ">=15.0.0",
|
|
8
|
+
"@angular/core": ">=15.0.0",
|
|
9
|
+
"@angular/cdk": ">=15.0.0",
|
|
10
|
+
"@fortawesome/angular-fontawesome": ">=0.12.0",
|
|
11
11
|
"@fortawesome/fontawesome-svg-core": "^6",
|
|
12
12
|
"@fortawesome/pro-light-svg-icons": "^6",
|
|
13
13
|
"@fortawesome/pro-regular-svg-icons": "^6",
|
|
14
14
|
"@fortawesome/pro-solid-svg-icons": "^6",
|
|
15
15
|
"@spicainternational/sds-bootstrap": "^5",
|
|
16
16
|
"@spicainternational/sds-core": "^5",
|
|
17
|
-
"devextreme": ">=
|
|
18
|
-
"devextreme-angular": ">=
|
|
19
|
-
"rxjs": "
|
|
17
|
+
"devextreme": ">=22.0.0",
|
|
18
|
+
"devextreme-angular": ">=22.0.0",
|
|
19
|
+
"rxjs": ">=7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"tslib": "^2.3.0"
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"esm2020": "esm2020/spicainternational-ngx-sds-components.mjs",
|
|
27
27
|
"fesm2020": "fesm2020/spicainternational-ngx-sds-components.mjs",
|
|
28
28
|
"fesm2015": "fesm2015/spicainternational-ngx-sds-components.mjs",
|
|
29
|
-
"typings": "
|
|
29
|
+
"typings": "index.d.ts",
|
|
30
30
|
"exports": {
|
|
31
31
|
"./package.json": {
|
|
32
32
|
"default": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
".": {
|
|
35
|
-
"types": "./
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
36
|
"esm2020": "./esm2020/spicainternational-ngx-sds-components.mjs",
|
|
37
37
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components.mjs",
|
|
38
38
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"default": "./fesm2020/spicainternational-ngx-sds-components.mjs"
|
|
41
41
|
},
|
|
42
42
|
"./src/lib/app-switcher": {
|
|
43
|
-
"types": "./src/lib/app-switcher/
|
|
43
|
+
"types": "./src/lib/app-switcher/index.d.ts",
|
|
44
44
|
"esm2020": "./esm2020/src/lib/app-switcher/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs",
|
|
45
45
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs",
|
|
46
46
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs"
|
|
49
49
|
},
|
|
50
50
|
"./src/lib/avatar": {
|
|
51
|
-
"types": "./src/lib/avatar/
|
|
51
|
+
"types": "./src/lib/avatar/index.d.ts",
|
|
52
52
|
"esm2020": "./esm2020/src/lib/avatar/spicainternational-ngx-sds-components-src-lib-avatar.mjs",
|
|
53
53
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs",
|
|
54
54
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-avatar.mjs",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-avatar.mjs"
|
|
57
57
|
},
|
|
58
58
|
"./src/lib/badge": {
|
|
59
|
-
"types": "./src/lib/badge/
|
|
59
|
+
"types": "./src/lib/badge/index.d.ts",
|
|
60
60
|
"esm2020": "./esm2020/src/lib/badge/spicainternational-ngx-sds-components-src-lib-badge.mjs",
|
|
61
61
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs",
|
|
62
62
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-badge.mjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-badge.mjs"
|
|
65
65
|
},
|
|
66
66
|
"./src/lib/callout": {
|
|
67
|
-
"types": "./src/lib/callout/
|
|
67
|
+
"types": "./src/lib/callout/index.d.ts",
|
|
68
68
|
"esm2020": "./esm2020/src/lib/callout/spicainternational-ngx-sds-components-src-lib-callout.mjs",
|
|
69
69
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-callout.mjs",
|
|
70
70
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-callout.mjs",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-callout.mjs"
|
|
73
73
|
},
|
|
74
74
|
"./src/lib/color-picker": {
|
|
75
|
-
"types": "./src/lib/color-picker/
|
|
75
|
+
"types": "./src/lib/color-picker/index.d.ts",
|
|
76
76
|
"esm2020": "./esm2020/src/lib/color-picker/spicainternational-ngx-sds-components-src-lib-color-picker.mjs",
|
|
77
77
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs",
|
|
78
78
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-color-picker.mjs",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs"
|
|
81
81
|
},
|
|
82
82
|
"./src/lib/date-picker": {
|
|
83
|
-
"types": "./src/lib/date-picker/
|
|
83
|
+
"types": "./src/lib/date-picker/index.d.ts",
|
|
84
84
|
"esm2020": "./esm2020/src/lib/date-picker/spicainternational-ngx-sds-components-src-lib-date-picker.mjs",
|
|
85
85
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs",
|
|
86
86
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs"
|
|
89
89
|
},
|
|
90
90
|
"./src/lib/date-pipes": {
|
|
91
|
-
"types": "./src/lib/date-pipes/
|
|
91
|
+
"types": "./src/lib/date-pipes/index.d.ts",
|
|
92
92
|
"esm2020": "./esm2020/src/lib/date-pipes/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs",
|
|
93
93
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs",
|
|
94
94
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs"
|
|
97
97
|
},
|
|
98
98
|
"./src/lib/duration-box": {
|
|
99
|
-
"types": "./src/lib/duration-box/
|
|
99
|
+
"types": "./src/lib/duration-box/index.d.ts",
|
|
100
100
|
"esm2020": "./esm2020/src/lib/duration-box/spicainternational-ngx-sds-components-src-lib-duration-box.mjs",
|
|
101
101
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-duration-box.mjs",
|
|
102
102
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-duration-box.mjs",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-duration-box.mjs"
|
|
105
105
|
},
|
|
106
106
|
"./src/lib/duration-pipe": {
|
|
107
|
-
"types": "./src/lib/duration-pipe/
|
|
107
|
+
"types": "./src/lib/duration-pipe/index.d.ts",
|
|
108
108
|
"esm2020": "./esm2020/src/lib/duration-pipe/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs",
|
|
109
109
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs",
|
|
110
110
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs"
|
|
113
113
|
},
|
|
114
114
|
"./src/lib/ellipsis": {
|
|
115
|
-
"types": "./src/lib/ellipsis/
|
|
115
|
+
"types": "./src/lib/ellipsis/index.d.ts",
|
|
116
116
|
"esm2020": "./esm2020/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
117
117
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
118
118
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs"
|
|
121
121
|
},
|
|
122
122
|
"./src/lib/expansion-panel": {
|
|
123
|
-
"types": "./src/lib/expansion-panel/
|
|
123
|
+
"types": "./src/lib/expansion-panel/index.d.ts",
|
|
124
124
|
"esm2020": "./esm2020/src/lib/expansion-panel/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs",
|
|
125
125
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs",
|
|
126
126
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs"
|
|
129
129
|
},
|
|
130
130
|
"./src/lib/highlight-text": {
|
|
131
|
-
"types": "./src/lib/highlight-text/
|
|
131
|
+
"types": "./src/lib/highlight-text/index.d.ts",
|
|
132
132
|
"esm2020": "./esm2020/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
|
|
133
133
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
|
|
134
134
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs"
|
|
137
137
|
},
|
|
138
138
|
"./src/lib/intersection": {
|
|
139
|
-
"types": "./src/lib/intersection/
|
|
139
|
+
"types": "./src/lib/intersection/index.d.ts",
|
|
140
140
|
"esm2020": "./esm2020/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
141
141
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
142
142
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs"
|
|
145
145
|
},
|
|
146
146
|
"./src/lib/keyboard-shortcut": {
|
|
147
|
-
"types": "./src/lib/keyboard-shortcut/
|
|
147
|
+
"types": "./src/lib/keyboard-shortcut/index.d.ts",
|
|
148
148
|
"esm2020": "./esm2020/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
149
149
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
150
150
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs"
|
|
153
153
|
},
|
|
154
154
|
"./src/lib/layout": {
|
|
155
|
-
"types": "./src/lib/layout/
|
|
155
|
+
"types": "./src/lib/layout/index.d.ts",
|
|
156
156
|
"esm2020": "./esm2020/src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.mjs",
|
|
157
157
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-layout.mjs",
|
|
158
158
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-layout.mjs",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-layout.mjs"
|
|
161
161
|
},
|
|
162
162
|
"./src/lib/message": {
|
|
163
|
-
"types": "./src/lib/message/
|
|
163
|
+
"types": "./src/lib/message/index.d.ts",
|
|
164
164
|
"esm2020": "./esm2020/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.mjs",
|
|
165
165
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs",
|
|
166
166
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-message.mjs",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-message.mjs"
|
|
169
169
|
},
|
|
170
170
|
"./src/lib/modal": {
|
|
171
|
-
"types": "./src/lib/modal/
|
|
171
|
+
"types": "./src/lib/modal/index.d.ts",
|
|
172
172
|
"esm2020": "./esm2020/src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.mjs",
|
|
173
173
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs",
|
|
174
174
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-modal.mjs",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-modal.mjs"
|
|
177
177
|
},
|
|
178
178
|
"./src/lib/navigation": {
|
|
179
|
-
"types": "./src/lib/navigation/
|
|
179
|
+
"types": "./src/lib/navigation/index.d.ts",
|
|
180
180
|
"esm2020": "./esm2020/src/lib/navigation/spicainternational-ngx-sds-components-src-lib-navigation.mjs",
|
|
181
181
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs",
|
|
182
182
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-navigation.mjs",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-navigation.mjs"
|
|
185
185
|
},
|
|
186
186
|
"./src/lib/number-box": {
|
|
187
|
-
"types": "./src/lib/number-box/
|
|
187
|
+
"types": "./src/lib/number-box/index.d.ts",
|
|
188
188
|
"esm2020": "./esm2020/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
189
189
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
190
190
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-number-box.mjs",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-number-box.mjs"
|
|
193
193
|
},
|
|
194
194
|
"./src/lib/page-header": {
|
|
195
|
-
"types": "./src/lib/page-header/
|
|
195
|
+
"types": "./src/lib/page-header/index.d.ts",
|
|
196
196
|
"esm2020": "./esm2020/src/lib/page-header/spicainternational-ngx-sds-components-src-lib-page-header.mjs",
|
|
197
197
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-page-header.mjs",
|
|
198
198
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-page-header.mjs",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-page-header.mjs"
|
|
201
201
|
},
|
|
202
202
|
"./src/lib/pane": {
|
|
203
|
-
"types": "./src/lib/pane/
|
|
203
|
+
"types": "./src/lib/pane/index.d.ts",
|
|
204
204
|
"esm2020": "./esm2020/src/lib/pane/spicainternational-ngx-sds-components-src-lib-pane.mjs",
|
|
205
205
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-pane.mjs",
|
|
206
206
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-pane.mjs",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-pane.mjs"
|
|
209
209
|
},
|
|
210
210
|
"./src/lib/quick-info": {
|
|
211
|
-
"types": "./src/lib/quick-info/
|
|
211
|
+
"types": "./src/lib/quick-info/index.d.ts",
|
|
212
212
|
"esm2020": "./esm2020/src/lib/quick-info/spicainternational-ngx-sds-components-src-lib-quick-info.mjs",
|
|
213
213
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs",
|
|
214
214
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-quick-info.mjs",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-quick-info.mjs"
|
|
217
217
|
},
|
|
218
218
|
"./src/lib/segmented-control": {
|
|
219
|
-
"types": "./src/lib/segmented-control/
|
|
219
|
+
"types": "./src/lib/segmented-control/index.d.ts",
|
|
220
220
|
"esm2020": "./esm2020/src/lib/segmented-control/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs",
|
|
221
221
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs",
|
|
222
222
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs"
|
|
225
225
|
},
|
|
226
226
|
"./src/lib/side-bar": {
|
|
227
|
-
"types": "./src/lib/side-bar/
|
|
227
|
+
"types": "./src/lib/side-bar/index.d.ts",
|
|
228
228
|
"esm2020": "./esm2020/src/lib/side-bar/spicainternational-ngx-sds-components-src-lib-side-bar.mjs",
|
|
229
229
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs",
|
|
230
230
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-side-bar.mjs",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-side-bar.mjs"
|
|
233
233
|
},
|
|
234
234
|
"./src/lib/static-value": {
|
|
235
|
-
"types": "./src/lib/static-value/
|
|
235
|
+
"types": "./src/lib/static-value/index.d.ts",
|
|
236
236
|
"esm2020": "./esm2020/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
|
|
237
237
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
|
|
238
238
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-static-value.mjs",
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-static-value.mjs"
|
|
241
241
|
},
|
|
242
242
|
"./src/lib/table-actions": {
|
|
243
|
-
"types": "./src/lib/table-actions/
|
|
243
|
+
"types": "./src/lib/table-actions/index.d.ts",
|
|
244
244
|
"esm2020": "./esm2020/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.mjs",
|
|
245
245
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs",
|
|
246
246
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-table-actions.mjs",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-table-actions.mjs"
|
|
249
249
|
},
|
|
250
250
|
"./src/lib/timeline": {
|
|
251
|
-
"types": "./src/lib/timeline/
|
|
251
|
+
"types": "./src/lib/timeline/index.d.ts",
|
|
252
252
|
"esm2020": "./esm2020/src/lib/timeline/spicainternational-ngx-sds-components-src-lib-timeline.mjs",
|
|
253
253
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs",
|
|
254
254
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-timeline.mjs",
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-timeline.mjs"
|
|
257
257
|
},
|
|
258
258
|
"./src/lib/timer": {
|
|
259
|
-
"types": "./src/lib/timer/
|
|
259
|
+
"types": "./src/lib/timer/index.d.ts",
|
|
260
260
|
"esm2020": "./esm2020/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
261
261
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
262
262
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs"
|
|
265
265
|
},
|
|
266
266
|
"./src/lib/tooltip": {
|
|
267
|
-
"types": "./src/lib/tooltip/
|
|
267
|
+
"types": "./src/lib/tooltip/index.d.ts",
|
|
268
268
|
"esm2020": "./esm2020/src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.mjs",
|
|
269
269
|
"es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-tooltip.mjs",
|
|
270
270
|
"es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-tooltip.mjs",
|
|
@@ -12,7 +12,6 @@ export declare class SdsAppSwitcherComponent implements OnInit, OnChanges {
|
|
|
12
12
|
activatedProducts: ProductModel[];
|
|
13
13
|
discoverProducts: ProductModel[];
|
|
14
14
|
showSkeleton: boolean;
|
|
15
|
-
selectorIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
16
15
|
elementUUID: string;
|
|
17
16
|
showDropdown: boolean;
|
|
18
17
|
constructor();
|
|
@@ -21,5 +20,5 @@ export declare class SdsAppSwitcherComponent implements OnInit, OnChanges {
|
|
|
21
20
|
emitProductClick(product: ProductModel): void;
|
|
22
21
|
onDropdownClicked(): void;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsAppSwitcherComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsAppSwitcherComponent, "sds-app-switcher", never, { "productCode": "productCode"; "userProductCodes": "userProductCodes"; "tenantProducts": "tenantProducts"; "switchText": "switchText"; "discoverText": "discoverText"; }, { "productClick": "productClick"; }, never, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsAppSwitcherComponent, "sds-app-switcher", never, { "productCode": "productCode"; "userProductCodes": "userProductCodes"; "tenantProducts": "tenantProducts"; "switchText": "switchText"; "discoverText": "discoverText"; }, { "productClick": "productClick"; }, never, never, false, never>;
|
|
25
24
|
}
|