@spicainternational/ngx-sds-components 8.8.0 → 9.0.0-beta.2
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/fesm2022/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +6 -6
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-avatar.mjs +8 -8
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-avatar.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-badge.mjs +7 -7
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-badge.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-callout.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-callout.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +7 -7
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs +15 -15
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-drawer.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-drawer.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-box.mjs +7 -7
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-box.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +6 -6
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-intersection.mjs +7 -8
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +5 -6
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-layout.mjs +20 -20
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-layout.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-message.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-message.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-modal.mjs +11 -11
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-modal.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-navigation.mjs +93 -93
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-navigation.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-number-box.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-number-box.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-page-header.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-page-header.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-pane.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-pane.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-quick-info.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ripple.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-ripple.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs +9 -9
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +6 -6
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-side-bar.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-static-value.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-static-value.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +5 -5
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-table-actions.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timeline.mjs +4 -4
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timeline.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timer.mjs +3 -3
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +7 -7
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-tooltip.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-utils-date-time.mjs.map +1 -1
- package/fesm2022/spicainternational-ngx-sds-components-src-lib-utils.mjs.map +1 -1
- package/package.json +45 -113
- package/{src/lib/app-switcher/app-switcher.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-app-switcher.d.ts} +16 -4
- package/{src/lib/avatar/avatar.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-avatar.d.ts} +40 -3
- package/{src/lib/badge/badge.directive.d.ts → types/spicainternational-ngx-sds-components-src-lib-badge.d.ts} +9 -4
- package/{src/lib/callout/callout.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-callout.d.ts} +5 -2
- package/{src/lib/color-picker/color-picker.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-color-picker.d.ts} +8 -4
- package/{src/lib/date-picker/date-picker.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-date-picker.d.ts} +56 -10
- package/types/spicainternational-ngx-sds-components-src-lib-date-pipes.d.ts +82 -0
- package/{src/lib/drawer/drawer.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-drawer.d.ts} +5 -2
- package/{src/lib/duration-box/duration-box.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-duration-box.d.ts} +18 -5
- package/{src/lib/duration-pipe/duration-format.pipe.d.ts → types/spicainternational-ngx-sds-components-src-lib-duration-pipe.d.ts} +5 -2
- package/{src/lib/ellipsis/directives/ellipsis.directive.d.ts → types/spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts} +5 -2
- package/{src/lib/expansion-panel/expansion-panel.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-expansion-panel.d.ts} +8 -3
- package/{src/lib/highlight-text/directives/highlight-text.directive.d.ts → types/spicainternational-ngx-sds-components-src-lib-highlight-text.d.ts} +15 -3
- package/types/spicainternational-ngx-sds-components-src-lib-intersection.d.ts +44 -0
- package/types/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.d.ts +20 -0
- package/types/spicainternational-ngx-sds-components-src-lib-layout.d.ts +39 -0
- package/{src/lib/message/message.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-message.d.ts} +6 -3
- package/types/spicainternational-ngx-sds-components-src-lib-modal.d.ts +127 -0
- package/types/spicainternational-ngx-sds-components-src-lib-navigation.d.ts +256 -0
- package/{src/lib/number-box/number-box.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-number-box.d.ts} +11 -7
- package/{src/lib/page-header/page-header.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-page-header.d.ts} +6 -3
- package/{src/lib/pane/pane.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-pane.d.ts} +17 -5
- package/{src/lib/quick-info/quick-info.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-quick-info.d.ts} +16 -4
- package/{src/lib/ripple/ripple.directive.d.ts → types/spicainternational-ngx-sds-components-src-lib-ripple.d.ts} +6 -3
- package/types/spicainternational-ngx-sds-components-src-lib-segmented-control.d.ts +45 -0
- package/types/spicainternational-ngx-sds-components-src-lib-side-bar.d.ts +33 -0
- package/{src/lib/static-value/static-value.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-static-value.d.ts} +5 -2
- package/{src/lib/table-actions/table-actions.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-table-actions.d.ts} +5 -2
- package/{src/lib/timeline/components/timeline.component.d.ts → types/spicainternational-ngx-sds-components-src-lib-timeline.d.ts} +47 -5
- package/types/spicainternational-ngx-sds-components-src-lib-timer.d.ts +143 -0
- package/{src/lib/tooltip/tooltip.directive.d.ts → types/spicainternational-ngx-sds-components-src-lib-tooltip.d.ts} +9 -4
- package/types/spicainternational-ngx-sds-components-src-lib-utils-date-time.d.ts +9 -0
- package/types/spicainternational-ngx-sds-components-src-lib-utils.d.ts +9 -0
- package/esm2022/public-api.mjs +0 -36
- package/esm2022/spicainternational-ngx-sds-components.mjs +0 -5
- package/esm2022/src/lib/app-switcher/app-switcher.component.mjs +0 -116
- package/esm2022/src/lib/app-switcher/app-switcher.model.mjs +0 -2
- package/esm2022/src/lib/app-switcher/public-api.mjs +0 -3
- package/esm2022/src/lib/app-switcher/spicainternational-ngx-sds-components-src-lib-app-switcher.mjs +0 -5
- package/esm2022/src/lib/avatar/avatar-group.component.mjs +0 -82
- package/esm2022/src/lib/avatar/avatar-group.model.mjs +0 -2
- package/esm2022/src/lib/avatar/avatar.component.mjs +0 -165
- package/esm2022/src/lib/avatar/public-api.mjs +0 -4
- package/esm2022/src/lib/avatar/spicainternational-ngx-sds-components-src-lib-avatar.mjs +0 -5
- package/esm2022/src/lib/badge/badge.directive.mjs +0 -90
- package/esm2022/src/lib/badge/badge.types.mjs +0 -2
- package/esm2022/src/lib/badge/components/badge.component.mjs +0 -59
- package/esm2022/src/lib/badge/public-api.mjs +0 -2
- package/esm2022/src/lib/badge/spicainternational-ngx-sds-components-src-lib-badge.mjs +0 -5
- package/esm2022/src/lib/callout/callout.component.mjs +0 -20
- package/esm2022/src/lib/callout/public-api.mjs +0 -2
- package/esm2022/src/lib/callout/spicainternational-ngx-sds-components-src-lib-callout.mjs +0 -5
- package/esm2022/src/lib/color-picker/color-picker.component.mjs +0 -82
- package/esm2022/src/lib/color-picker/public-api.mjs +0 -2
- package/esm2022/src/lib/color-picker/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +0 -5
- package/esm2022/src/lib/date-picker/date-picker.component.mjs +0 -893
- package/esm2022/src/lib/date-picker/date-picker.model.mjs +0 -71
- package/esm2022/src/lib/date-picker/public-api.mjs +0 -3
- package/esm2022/src/lib/date-picker/sds-date-picker.service.mjs +0 -90
- package/esm2022/src/lib/date-picker/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +0 -5
- package/esm2022/src/lib/date-pipes/date-compare.pipe.mjs +0 -32
- package/esm2022/src/lib/date-pipes/date-format.pipe.mjs +0 -31
- package/esm2022/src/lib/date-pipes/date-period-format.pipe.mjs +0 -49
- package/esm2022/src/lib/date-pipes/date-time-formats.constants.mjs +0 -156
- package/esm2022/src/lib/date-pipes/date-time-range-duration.pipe.mjs +0 -33
- package/esm2022/src/lib/date-pipes/date-time-range-format.pipe.mjs +0 -45
- package/esm2022/src/lib/date-pipes/public-api.mjs +0 -8
- package/esm2022/src/lib/date-pipes/spicainternational-ngx-sds-components-src-lib-date-pipes.mjs +0 -5
- package/esm2022/src/lib/drawer/drawer.component.mjs +0 -103
- package/esm2022/src/lib/drawer/public-api.mjs +0 -2
- package/esm2022/src/lib/drawer/spicainternational-ngx-sds-components-src-lib-drawer.mjs +0 -5
- package/esm2022/src/lib/duration-box/duration-box.component.mjs +0 -279
- package/esm2022/src/lib/duration-box/duration-box.types.mjs +0 -2
- package/esm2022/src/lib/duration-box/duration.service.mjs +0 -72
- package/esm2022/src/lib/duration-box/public-api.mjs +0 -2
- package/esm2022/src/lib/duration-box/spicainternational-ngx-sds-components-src-lib-duration-box.mjs +0 -5
- package/esm2022/src/lib/duration-pipe/duration-format.pipe.mjs +0 -27
- package/esm2022/src/lib/duration-pipe/public-api.mjs +0 -2
- package/esm2022/src/lib/duration-pipe/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs +0 -5
- package/esm2022/src/lib/ellipsis/directives/ellipsis.directive.mjs +0 -52
- package/esm2022/src/lib/ellipsis/public-api.mjs +0 -2
- package/esm2022/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +0 -5
- package/esm2022/src/lib/expansion-panel/expansion-panel.component.mjs +0 -86
- package/esm2022/src/lib/expansion-panel/expansion-panel.types.mjs +0 -2
- package/esm2022/src/lib/expansion-panel/public-api.mjs +0 -2
- package/esm2022/src/lib/expansion-panel/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs +0 -5
- package/esm2022/src/lib/highlight-text/directives/highlight-text.directive.mjs +0 -61
- package/esm2022/src/lib/highlight-text/directives/index.mjs +0 -2
- package/esm2022/src/lib/highlight-text/pipes/highlight-text.pipe.mjs +0 -30
- package/esm2022/src/lib/highlight-text/pipes/index.mjs +0 -2
- package/esm2022/src/lib/highlight-text/public-api.mjs +0 -3
- package/esm2022/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.mjs +0 -5
- package/esm2022/src/lib/highlight-text/utils/highlight-text.utils.mjs +0 -97
- package/esm2022/src/lib/highlight-text/utils/index.mjs +0 -2
- package/esm2022/src/lib/intersection/directives/index.mjs +0 -2
- package/esm2022/src/lib/intersection/directives/intersection.directive.mjs +0 -52
- package/esm2022/src/lib/intersection/public-api.mjs +0 -3
- package/esm2022/src/lib/intersection/services/index.mjs +0 -2
- package/esm2022/src/lib/intersection/services/intersection.service.mjs +0 -54
- package/esm2022/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.mjs +0 -5
- package/esm2022/src/lib/keyboard-shortcut/directives/index.mjs +0 -2
- package/esm2022/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.mjs +0 -47
- package/esm2022/src/lib/keyboard-shortcut/public-api.mjs +0 -2
- package/esm2022/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +0 -5
- package/esm2022/src/lib/layout/default-layout/default-layout.component.mjs +0 -15
- package/esm2022/src/lib/layout/extra-large-layout/extra-large-layout.component.mjs +0 -15
- package/esm2022/src/lib/layout/fluid-layout/fluid-layout.component.mjs +0 -15
- package/esm2022/src/lib/layout/medium-layout/medium-layout.component.mjs +0 -15
- package/esm2022/src/lib/layout/public-api.mjs +0 -6
- package/esm2022/src/lib/layout/small-layout/small-layout.component.mjs +0 -15
- package/esm2022/src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.mjs +0 -5
- package/esm2022/src/lib/message/message.component.mjs +0 -60
- package/esm2022/src/lib/message/public-api.mjs +0 -2
- package/esm2022/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.mjs +0 -5
- package/esm2022/src/lib/modal/dialog/dialog.component.mjs +0 -187
- package/esm2022/src/lib/modal/dialog/dialog.types.mjs +0 -2
- package/esm2022/src/lib/modal/modal.component.mjs +0 -159
- package/esm2022/src/lib/modal/modal.model.mjs +0 -2
- package/esm2022/src/lib/modal/public-api.mjs +0 -3
- package/esm2022/src/lib/modal/spicainternational-ngx-sds-components-src-lib-modal.mjs +0 -5
- package/esm2022/src/lib/navigation/models/navigation-models.mjs +0 -2
- package/esm2022/src/lib/navigation/navigation-collapsible-frame/navigation-collapsible-frame.component.mjs +0 -17
- package/esm2022/src/lib/navigation/navigation-container/navigation-container.component.mjs +0 -58
- package/esm2022/src/lib/navigation/navigation-external-link/navigation-external-link.component.mjs +0 -33
- package/esm2022/src/lib/navigation/navigation-group/navigation-group.component.mjs +0 -220
- package/esm2022/src/lib/navigation/navigation-header/navigation-header.component.mjs +0 -21
- package/esm2022/src/lib/navigation/navigation-route-link/navigation-route-link.component.mjs +0 -73
- package/esm2022/src/lib/navigation/navigation-separator/navigation-separator.component.mjs +0 -15
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-action-button/user-profile-action-button.component.mjs +0 -30
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-selector/user-profile-selector.component.mjs +0 -45
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-selector/user-profile-selector.types.mjs +0 -2
- package/esm2022/src/lib/navigation/navigation-user-profile/components/user-profile-tile/user-profile-tile.component.mjs +0 -25
- package/esm2022/src/lib/navigation/navigation-user-profile/navigation-profile.model.mjs +0 -2
- package/esm2022/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.mjs +0 -107
- package/esm2022/src/lib/navigation/pipes/active-route-pattern.pipe.mjs +0 -38
- package/esm2022/src/lib/navigation/product-home/product-home.component.mjs +0 -70
- package/esm2022/src/lib/navigation/public-api.mjs +0 -15
- package/esm2022/src/lib/navigation/spicainternational-ngx-sds-components-src-lib-navigation.mjs +0 -5
- package/esm2022/src/lib/navigation/utils/navigation.utils.mjs +0 -48
- package/esm2022/src/lib/number-box/number-box.component.mjs +0 -138
- package/esm2022/src/lib/number-box/public-api.mjs +0 -2
- package/esm2022/src/lib/number-box/spicainternational-ngx-sds-components-src-lib-number-box.mjs +0 -5
- package/esm2022/src/lib/page-header/page-header.component.mjs +0 -25
- package/esm2022/src/lib/page-header/public-api.mjs +0 -2
- package/esm2022/src/lib/page-header/spicainternational-ngx-sds-components-src-lib-page-header.mjs +0 -5
- package/esm2022/src/lib/pane/pane.component.mjs +0 -43
- package/esm2022/src/lib/pane/pane.model.mjs +0 -2
- package/esm2022/src/lib/pane/public-api.mjs +0 -3
- package/esm2022/src/lib/pane/spicainternational-ngx-sds-components-src-lib-pane.mjs +0 -5
- package/esm2022/src/lib/quick-info/public-api.mjs +0 -2
- package/esm2022/src/lib/quick-info/quick-info.component.mjs +0 -121
- package/esm2022/src/lib/quick-info/quick-info.model.mjs +0 -2
- package/esm2022/src/lib/quick-info/spicainternational-ngx-sds-components-src-lib-quick-info.mjs +0 -5
- package/esm2022/src/lib/ripple/public-api.mjs +0 -2
- package/esm2022/src/lib/ripple/ripple.directive.mjs +0 -103
- package/esm2022/src/lib/ripple/spicainternational-ngx-sds-components-src-lib-ripple.mjs +0 -5
- package/esm2022/src/lib/segmented-control/public-api.mjs +0 -2
- package/esm2022/src/lib/segmented-control/segmented-control.component.mjs +0 -239
- package/esm2022/src/lib/segmented-control/spicainternational-ngx-sds-components-src-lib-segmented-control.mjs +0 -5
- package/esm2022/src/lib/side-bar/public-api.mjs +0 -2
- package/esm2022/src/lib/side-bar/side-bar.component.mjs +0 -45
- package/esm2022/src/lib/side-bar/spicainternational-ngx-sds-components-src-lib-side-bar.mjs +0 -5
- package/esm2022/src/lib/static-value/public-api.mjs +0 -2
- package/esm2022/src/lib/static-value/spicainternational-ngx-sds-components-src-lib-static-value.mjs +0 -5
- package/esm2022/src/lib/static-value/static-value.component.mjs +0 -25
- package/esm2022/src/lib/table-actions/public-api.mjs +0 -2
- package/esm2022/src/lib/table-actions/spicainternational-ngx-sds-components-src-lib-table-actions.mjs +0 -5
- package/esm2022/src/lib/table-actions/table-actions.component.mjs +0 -49
- package/esm2022/src/lib/timeline/components/timeline.component.mjs +0 -398
- package/esm2022/src/lib/timeline/models/timeline.model.mjs +0 -2
- package/esm2022/src/lib/timeline/public-api.mjs +0 -2
- package/esm2022/src/lib/timeline/services/timeline.service.mjs +0 -152
- package/esm2022/src/lib/timeline/spicainternational-ngx-sds-components-src-lib-timeline.mjs +0 -5
- package/esm2022/src/lib/timeline/types/timeline.types.mjs +0 -2
- package/esm2022/src/lib/timer/public-api.mjs +0 -3
- package/esm2022/src/lib/timer/services/index.mjs +0 -2
- package/esm2022/src/lib/timer/services/timer.service.mjs +0 -99
- package/esm2022/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.mjs +0 -5
- package/esm2022/src/lib/timer/utils/index.mjs +0 -2
- package/esm2022/src/lib/timer/utils/timer.utils.mjs +0 -97
- package/esm2022/src/lib/tooltip/components/tooltip.component.mjs +0 -26
- package/esm2022/src/lib/tooltip/public-api.mjs +0 -2
- package/esm2022/src/lib/tooltip/spicainternational-ngx-sds-components-src-lib-tooltip.mjs +0 -5
- package/esm2022/src/lib/tooltip/tooltip.directive.mjs +0 -192
- package/esm2022/src/lib/tooltip/tooltip.types.mjs +0 -2
- package/esm2022/src/lib/tooltip/utils/index.mjs +0 -2
- package/esm2022/src/lib/tooltip/utils/tooltip.utils.mjs +0 -17
- package/esm2022/src/lib/utils/date-time/date-time-format.function.mjs +0 -15
- package/esm2022/src/lib/utils/date-time/intl-date-time-format-options-presets.mjs +0 -29
- package/esm2022/src/lib/utils/date-time/public-api.mjs +0 -3
- package/esm2022/src/lib/utils/date-time/spicainternational-ngx-sds-components-src-lib-utils-date-time.mjs +0 -5
- package/esm2022/src/lib/utils/public-api.mjs +0 -2
- package/esm2022/src/lib/utils/spicainternational-ngx-sds-components-src-lib-utils.mjs +0 -5
- package/index.d.ts +0 -5
- package/src/lib/app-switcher/app-switcher.model.d.ts +0 -8
- package/src/lib/app-switcher/index.d.ts +0 -5
- package/src/lib/app-switcher/public-api.d.ts +0 -2
- package/src/lib/avatar/avatar-group.component.d.ts +0 -28
- package/src/lib/avatar/avatar-group.model.d.ts +0 -6
- package/src/lib/avatar/index.d.ts +0 -5
- package/src/lib/avatar/public-api.d.ts +0 -3
- package/src/lib/badge/badge.types.d.ts +0 -2
- package/src/lib/badge/components/badge.component.d.ts +0 -23
- package/src/lib/badge/index.d.ts +0 -5
- package/src/lib/badge/public-api.d.ts +0 -1
- package/src/lib/callout/index.d.ts +0 -5
- package/src/lib/callout/public-api.d.ts +0 -1
- package/src/lib/color-picker/index.d.ts +0 -5
- package/src/lib/color-picker/public-api.d.ts +0 -1
- package/src/lib/date-picker/date-picker.model.d.ts +0 -34
- package/src/lib/date-picker/index.d.ts +0 -5
- package/src/lib/date-picker/public-api.d.ts +0 -2
- package/src/lib/date-picker/sds-date-picker.service.d.ts +0 -9
- package/src/lib/date-pipes/date-compare.pipe.d.ts +0 -7
- package/src/lib/date-pipes/date-format.pipe.d.ts +0 -19
- package/src/lib/date-pipes/date-period-format.pipe.d.ts +0 -11
- package/src/lib/date-pipes/date-time-formats.constants.d.ts +0 -22
- package/src/lib/date-pipes/date-time-range-duration.pipe.d.ts +0 -7
- package/src/lib/date-pipes/date-time-range-format.pipe.d.ts +0 -15
- package/src/lib/date-pipes/index.d.ts +0 -5
- package/src/lib/date-pipes/public-api.d.ts +0 -7
- package/src/lib/drawer/index.d.ts +0 -5
- package/src/lib/drawer/public-api.d.ts +0 -1
- package/src/lib/duration-box/duration-box.types.d.ts +0 -1
- package/src/lib/duration-box/duration.service.d.ts +0 -10
- package/src/lib/duration-box/index.d.ts +0 -5
- package/src/lib/duration-box/public-api.d.ts +0 -1
- package/src/lib/duration-pipe/index.d.ts +0 -5
- package/src/lib/duration-pipe/public-api.d.ts +0 -1
- package/src/lib/ellipsis/index.d.ts +0 -5
- package/src/lib/ellipsis/public-api.d.ts +0 -1
- package/src/lib/expansion-panel/expansion-panel.types.d.ts +0 -2
- package/src/lib/expansion-panel/index.d.ts +0 -5
- package/src/lib/expansion-panel/public-api.d.ts +0 -1
- package/src/lib/highlight-text/directives/index.d.ts +0 -1
- package/src/lib/highlight-text/index.d.ts +0 -5
- package/src/lib/highlight-text/pipes/highlight-text.pipe.d.ts +0 -11
- package/src/lib/highlight-text/pipes/index.d.ts +0 -1
- package/src/lib/highlight-text/public-api.d.ts +0 -2
- package/src/lib/highlight-text/utils/highlight-text.utils.d.ts +0 -23
- package/src/lib/highlight-text/utils/index.d.ts +0 -1
- package/src/lib/intersection/directives/index.d.ts +0 -1
- package/src/lib/intersection/directives/intersection.directive.d.ts +0 -24
- package/src/lib/intersection/index.d.ts +0 -5
- package/src/lib/intersection/public-api.d.ts +0 -2
- package/src/lib/intersection/services/index.d.ts +0 -1
- package/src/lib/intersection/services/intersection.service.d.ts +0 -19
- package/src/lib/keyboard-shortcut/directives/index.d.ts +0 -1
- package/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.d.ts +0 -17
- package/src/lib/keyboard-shortcut/index.d.ts +0 -5
- package/src/lib/keyboard-shortcut/public-api.d.ts +0 -1
- package/src/lib/layout/default-layout/default-layout.component.d.ts +0 -8
- package/src/lib/layout/extra-large-layout/extra-large-layout.component.d.ts +0 -8
- package/src/lib/layout/fluid-layout/fluid-layout.component.d.ts +0 -8
- package/src/lib/layout/index.d.ts +0 -5
- package/src/lib/layout/medium-layout/medium-layout.component.d.ts +0 -8
- package/src/lib/layout/public-api.d.ts +0 -5
- package/src/lib/layout/small-layout/small-layout.component.d.ts +0 -8
- package/src/lib/message/index.d.ts +0 -5
- package/src/lib/message/public-api.d.ts +0 -1
- package/src/lib/modal/dialog/dialog.component.d.ts +0 -61
- package/src/lib/modal/dialog/dialog.types.d.ts +0 -1
- package/src/lib/modal/index.d.ts +0 -5
- package/src/lib/modal/modal.component.d.ts +0 -60
- package/src/lib/modal/modal.model.d.ts +0 -3
- package/src/lib/modal/public-api.d.ts +0 -2
- package/src/lib/navigation/index.d.ts +0 -5
- package/src/lib/navigation/models/navigation-models.d.ts +0 -4
- package/src/lib/navigation/navigation-collapsible-frame/navigation-collapsible-frame.component.d.ts +0 -7
- package/src/lib/navigation/navigation-container/navigation-container.component.d.ts +0 -25
- package/src/lib/navigation/navigation-external-link/navigation-external-link.component.d.ts +0 -13
- package/src/lib/navigation/navigation-group/navigation-group.component.d.ts +0 -65
- package/src/lib/navigation/navigation-header/navigation-header.component.d.ts +0 -11
- package/src/lib/navigation/navigation-route-link/navigation-route-link.component.d.ts +0 -31
- package/src/lib/navigation/navigation-separator/navigation-separator.component.d.ts +0 -10
- package/src/lib/navigation/navigation-user-profile/components/user-profile-action-button/user-profile-action-button.component.d.ts +0 -11
- package/src/lib/navigation/navigation-user-profile/components/user-profile-selector/user-profile-selector.component.d.ts +0 -17
- package/src/lib/navigation/navigation-user-profile/components/user-profile-selector/user-profile-selector.types.d.ts +0 -1
- package/src/lib/navigation/navigation-user-profile/components/user-profile-tile/user-profile-tile.component.d.ts +0 -9
- package/src/lib/navigation/navigation-user-profile/navigation-profile.model.d.ts +0 -6
- package/src/lib/navigation/navigation-user-profile/navigation-user-profile.component.d.ts +0 -34
- package/src/lib/navigation/pipes/active-route-pattern.pipe.d.ts +0 -21
- package/src/lib/navigation/product-home/product-home.component.d.ts +0 -31
- package/src/lib/navigation/public-api.d.ts +0 -14
- package/src/lib/navigation/utils/navigation.utils.d.ts +0 -2
- package/src/lib/number-box/index.d.ts +0 -5
- package/src/lib/number-box/public-api.d.ts +0 -1
- package/src/lib/page-header/index.d.ts +0 -5
- package/src/lib/page-header/public-api.d.ts +0 -1
- package/src/lib/pane/index.d.ts +0 -5
- package/src/lib/pane/pane.model.d.ts +0 -8
- package/src/lib/pane/public-api.d.ts +0 -2
- package/src/lib/quick-info/index.d.ts +0 -5
- package/src/lib/quick-info/public-api.d.ts +0 -1
- package/src/lib/quick-info/quick-info.model.d.ts +0 -9
- package/src/lib/ripple/index.d.ts +0 -5
- package/src/lib/ripple/public-api.d.ts +0 -1
- package/src/lib/segmented-control/index.d.ts +0 -5
- package/src/lib/segmented-control/public-api.d.ts +0 -1
- package/src/lib/segmented-control/segmented-control.component.d.ts +0 -42
- package/src/lib/side-bar/index.d.ts +0 -5
- package/src/lib/side-bar/public-api.d.ts +0 -1
- package/src/lib/side-bar/side-bar.component.d.ts +0 -30
- package/src/lib/static-value/index.d.ts +0 -5
- package/src/lib/static-value/public-api.d.ts +0 -1
- package/src/lib/table-actions/index.d.ts +0 -5
- package/src/lib/table-actions/public-api.d.ts +0 -1
- package/src/lib/timeline/index.d.ts +0 -5
- package/src/lib/timeline/models/timeline.model.d.ts +0 -38
- package/src/lib/timeline/public-api.d.ts +0 -1
- package/src/lib/timeline/services/timeline.service.d.ts +0 -24
- package/src/lib/timeline/types/timeline.types.d.ts +0 -2
- package/src/lib/timer/index.d.ts +0 -5
- package/src/lib/timer/public-api.d.ts +0 -2
- package/src/lib/timer/services/index.d.ts +0 -1
- package/src/lib/timer/services/timer.service.d.ts +0 -78
- package/src/lib/timer/utils/index.d.ts +0 -1
- package/src/lib/timer/utils/timer.utils.d.ts +0 -61
- package/src/lib/tooltip/components/tooltip.component.d.ts +0 -18
- package/src/lib/tooltip/index.d.ts +0 -5
- package/src/lib/tooltip/public-api.d.ts +0 -1
- package/src/lib/tooltip/tooltip.types.d.ts +0 -2
- package/src/lib/tooltip/utils/index.d.ts +0 -1
- package/src/lib/tooltip/utils/tooltip.utils.d.ts +0 -5
- package/src/lib/utils/date-time/date-time-format.function.d.ts +0 -2
- package/src/lib/utils/date-time/index.d.ts +0 -5
- package/src/lib/utils/date-time/intl-date-time-format-options-presets.d.ts +0 -4
- package/src/lib/utils/date-time/public-api.d.ts +0 -2
- package/src/lib/utils/index.d.ts +0 -5
- package/src/lib/utils/public-api.d.ts +0 -1
- /package/{public-api.d.ts → types/spicainternational-ngx-sds-components.d.ts} +0 -0
|
@@ -137,10 +137,10 @@ class SdsHighlightTextDirective {
|
|
|
137
137
|
this.content = highlightedText;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
141
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsHighlightTextDirective, deps: [{ token: i0.ElementRef }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
141
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.23", type: SdsHighlightTextDirective, isStandalone: true, selector: "[sdsHighlightText]", inputs: { additionalClasses: "additionalClasses", highlightText: "highlightText" }, host: { properties: { "innerHtml": "this.content" } }, ngImport: i0 }); }
|
|
142
142
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsHighlightTextDirective, decorators: [{
|
|
144
144
|
type: Directive,
|
|
145
145
|
args: [{
|
|
146
146
|
selector: '[sdsHighlightText]',
|
|
@@ -170,10 +170,10 @@ class SdsHighlightTextPipe {
|
|
|
170
170
|
}
|
|
171
171
|
return stringToBeChecked;
|
|
172
172
|
}
|
|
173
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
174
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsHighlightTextPipe, deps: [{ token: i0.ElementRef }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
174
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.23", ngImport: i0, type: SdsHighlightTextPipe, isStandalone: true, name: "sdsHighlightText" }); }
|
|
175
175
|
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsHighlightTextPipe, decorators: [{
|
|
177
177
|
type: Pipe,
|
|
178
178
|
args: [{
|
|
179
179
|
name: 'sdsHighlightText',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-highlight-text.mjs","sources":["../../../projects/ngx-sds-components/src/lib/highlight-text/utils/highlight-text.utils.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/directives/highlight-text.directive.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/pipes/highlight-text.pipe.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.ts"],"sourcesContent":["import { SecurityContext } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @public @function escapeRegex\n * @description\n * Function responsible for substitution of chars that are a no-go for regex\n * @param { string } phrase\n * @returns { string }\n */\nexport const escapeRegex = (phrase: string): string => {\n return phrase.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n};\n\n/**\n * @public @function highlightSearchedText\n * @description\n * Function responsible for returning html string\n * with included marker that contains string that matches\n * provided search phrase\n * @param { string } highlightText\n * @param { string } stringToBeChecked\n * @param { string } existingHtmlContent\n * @param { string } additionalClasses\n * @param { string } sanitizer\n * @returns { string }\n */\nexport const highlightSearchedText = (\n highlightText: string,\n stringToBeChecked: string,\n existingHtmlContent: string,\n sanitizer: DomSanitizer,\n additionalClasses?: string\n ): string => {\n // If search is empty just return current content\n if (highlightText === '') {\n return stringToBeChecked;\n }\n\n // Split search string into words\n const splittedValue = highlightText.split(' ');\n\n if (!splittedValue || splittedValue.length === 0) {\n return stringToBeChecked;\n }\n\n const splittedStringToBeChecked: string[] = stringToBeChecked\n ? stringToBeChecked.split(' ')\n : [];\n\n const searchPhrases: string[] = splittedValue.filter(\n phrase => phrase.length > 0\n );\n\n const markedWords: string[] = [];\n\n // Go through search phrases and validate each string\n const newContent = splittedStringToBeChecked\n .map((wordToBeChecked: string) => {\n const searchMarkRawResult = searchPhrases\n .map(phrase => {\n const safeString = escapeRegex(phrase);\n\n const searchRegEx = new RegExp(safeString, 'i');\n\n const testResult: boolean = searchRegEx.test(wordToBeChecked);\n\n if (!testResult) {\n return wordToBeChecked;\n }\n\n // Prevent text duplication when user enters same word multiple times\n const wordIsAlreadyMarked = markedWords.some(alreadyMarkedWord => alreadyMarkedWord === wordToBeChecked)\n\n if (wordIsAlreadyMarked) {\n return wordToBeChecked;\n }\n\n markedWords.push(wordToBeChecked);\n\n // Prepare content to be replaced with mark text\n const markedContent = wordToBeChecked.replace(\n searchRegEx,\n (match: string) => {\n return `<mark class='bg-primary text-white p-0 ${\n additionalClasses ?? ''\n }'>${match}</mark>`;\n }\n );\n return markedContent;\n })\n .reduce((accumulator: string[], currentItem: string) => {\n const itemAlreadyExists = accumulator.some(\n item => item === currentItem\n );\n\n if (!itemAlreadyExists) {\n accumulator.push(currentItem);\n }\n\n return accumulator;\n }, []);\n\n /**\n * At this point we have correctly marker content, however there can be\n * duplicate words in the array. E.g. we have text First Client and user\n * types Client First. This will give us two array. First one would be:\n * ['First', '<mark class='highlighted-text '>First</mark>']\n * Second one would be:\n * ['<mark class='highlighted-text '>Client</mark>', 'Client']\n * We have to filter out those plain values that are marked\n */\n const sanitizedMarkedContent = searchMarkRawResult.filter(\n markedContentItem => {\n const wordIsAlsoMarked = markedWords.some(\n word => word === markedContentItem\n );\n\n if (wordIsAlsoMarked) {\n return false;\n }\n return true;\n }\n );\n\n return sanitizedMarkedContent;\n })\n .join(' ');\n\n /**\n * We want to sanitize this before pushing to DOM.\n * Just to be on the safe side. Fallback to existing value if\n * sanitize returns null\n */\n const sanitizedContent =\n sanitizer.sanitize(SecurityContext.HTML, newContent) ?? existingHtmlContent;\n\n return sanitizedContent;\n};\n","import { Directive, ElementRef, HostBinding, Input } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { highlightSearchedText } from '../utils';\n\n@Directive({\n selector: '[sdsHighlightText]',\n standalone: true\n})\nexport class SdsHighlightTextDirective {\n/**\n * INPUTS\n */\n /**\n * CSS classes to be appended to the marked text\n */\n @Input() additionalClasses: string = '';\n\n /**\n * Search term that should be found\n */\n private _search: string = '';\n @Input()\n get highlightText(): string {\n return this._search;\n }\n set highlightText(value: string) {\n this._search = value;\n\n // Now process the search value\n this.markSearchedText(value);\n }\n\n /**\n * OTHER PROPS\n */\n @HostBinding('innerHtml')\n content!: string;\n\n /**\n * For now make this case insensitive. We might change this to\n * input latter if needed\n */\n protected caseSensitive: boolean = false;\n\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _sanitizer: DomSanitizer\n ) {}\n\n protected markSearchedText(highlightText: string): void {\n // Make sure that native element is present\n if (this._elementRef?.nativeElement) {\n const currentHtmlContent = (this._elementRef.nativeElement as HTMLElement)\n .innerHTML;\n\n const text =\n (this._elementRef.nativeElement as HTMLElement).textContent ?? '';\n\n const highlightedText = highlightSearchedText(\n highlightText,\n text,\n currentHtmlContent,\n this._sanitizer,\n this.additionalClasses\n );\n\n this.content = highlightedText;\n }\n }\n}\n","import { ElementRef, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { highlightSearchedText } from '../utils';\n\n@Pipe({\n name: 'sdsHighlightText',\n standalone: true\n})\nexport class SdsHighlightTextPipe implements PipeTransform {\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _sanitizer: DomSanitizer\n ) {}\n\n transform(\n highlightText: string,\n stringToBeChecked: string,\n additionalClasses?: string\n ): string {\n // Make sure that native element is present\n if (this._elementRef?.nativeElement) {\n const currentHtmlContent = (this._elementRef.nativeElement as HTMLElement)\n .innerHTML;\n\n const highlightedText = highlightSearchedText(\n highlightText,\n stringToBeChecked,\n currentHtmlContent,\n this._sanitizer,\n additionalClasses\n );\n\n return highlightedText;\n }\n\n return stringToBeChecked;\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGA;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,CAAC,MAAc,KAAY;IAClD,OAAO,MAAM,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;AAC3D,CAAC;AAED;;;;;;;;;;;;AAYG;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AOG,aAAa,EAAA,CAAA;sBADhB;gBAeD,OAAO,EAAA,CAAA;sBADN,WAAW;uBAAC,WAAW;;;MC3Bb,oBAAoB,CAAA;IAC7B,WACqB,CAAA,WAAuB,EACvB,UAAwB,EAAA;QADxB,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAU,CAAA,UAAA,GAAV,UAAU;;AAG/B,IAAA,SAAS,CACL,aAAqB,EACrB,iBAAyB,EACzB,iBAA0B,EAAA;;AAG1B,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE;AACnC,YAAA,MAAM,kBAAkB,GAAI,IAAI,CAAC,WAAW,CAAC;AAC1C,iBAAA,SAAS;AAEZ,YAAA,MAAM,eAAe,GAAG,qBAAqB,CAC3C,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,IAAI,CAAC,UAAU,EACf,iBAAiB,CAClB;AAED,YAAA,OAAO,eAAe;;AAGxB,QAAA,OAAO,iBAAiB;;+GA3BnB,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,kBAAkB;AACxB,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-highlight-text.mjs","sources":["../../../projects/ngx-sds-components/src/lib/highlight-text/utils/highlight-text.utils.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/directives/highlight-text.directive.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/pipes/highlight-text.pipe.ts","../../../projects/ngx-sds-components/src/lib/highlight-text/spicainternational-ngx-sds-components-src-lib-highlight-text.ts"],"sourcesContent":["import { SecurityContext } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @public @function escapeRegex\n * @description\n * Function responsible for substitution of chars that are a no-go for regex\n * @param { string } phrase\n * @returns { string }\n */\nexport const escapeRegex = (phrase: string): string => {\n return phrase.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n};\n\n/**\n * @public @function highlightSearchedText\n * @description\n * Function responsible for returning html string\n * with included marker that contains string that matches\n * provided search phrase\n * @param { string } highlightText\n * @param { string } stringToBeChecked\n * @param { string } existingHtmlContent\n * @param { string } additionalClasses\n * @param { string } sanitizer\n * @returns { string }\n */\nexport const highlightSearchedText = (\n highlightText: string,\n stringToBeChecked: string,\n existingHtmlContent: string,\n sanitizer: DomSanitizer,\n additionalClasses?: string\n ): string => {\n // If search is empty just return current content\n if (highlightText === '') {\n return stringToBeChecked;\n }\n\n // Split search string into words\n const splittedValue = highlightText.split(' ');\n\n if (!splittedValue || splittedValue.length === 0) {\n return stringToBeChecked;\n }\n\n const splittedStringToBeChecked: string[] = stringToBeChecked\n ? stringToBeChecked.split(' ')\n : [];\n\n const searchPhrases: string[] = splittedValue.filter(\n phrase => phrase.length > 0\n );\n\n const markedWords: string[] = [];\n\n // Go through search phrases and validate each string\n const newContent = splittedStringToBeChecked\n .map((wordToBeChecked: string) => {\n const searchMarkRawResult = searchPhrases\n .map(phrase => {\n const safeString = escapeRegex(phrase);\n\n const searchRegEx = new RegExp(safeString, 'i');\n\n const testResult: boolean = searchRegEx.test(wordToBeChecked);\n\n if (!testResult) {\n return wordToBeChecked;\n }\n\n // Prevent text duplication when user enters same word multiple times\n const wordIsAlreadyMarked = markedWords.some(alreadyMarkedWord => alreadyMarkedWord === wordToBeChecked)\n\n if (wordIsAlreadyMarked) {\n return wordToBeChecked;\n }\n\n markedWords.push(wordToBeChecked);\n\n // Prepare content to be replaced with mark text\n const markedContent = wordToBeChecked.replace(\n searchRegEx,\n (match: string) => {\n return `<mark class='bg-primary text-white p-0 ${\n additionalClasses ?? ''\n }'>${match}</mark>`;\n }\n );\n return markedContent;\n })\n .reduce((accumulator: string[], currentItem: string) => {\n const itemAlreadyExists = accumulator.some(\n item => item === currentItem\n );\n\n if (!itemAlreadyExists) {\n accumulator.push(currentItem);\n }\n\n return accumulator;\n }, []);\n\n /**\n * At this point we have correctly marker content, however there can be\n * duplicate words in the array. E.g. we have text First Client and user\n * types Client First. This will give us two array. First one would be:\n * ['First', '<mark class='highlighted-text '>First</mark>']\n * Second one would be:\n * ['<mark class='highlighted-text '>Client</mark>', 'Client']\n * We have to filter out those plain values that are marked\n */\n const sanitizedMarkedContent = searchMarkRawResult.filter(\n markedContentItem => {\n const wordIsAlsoMarked = markedWords.some(\n word => word === markedContentItem\n );\n\n if (wordIsAlsoMarked) {\n return false;\n }\n return true;\n }\n );\n\n return sanitizedMarkedContent;\n })\n .join(' ');\n\n /**\n * We want to sanitize this before pushing to DOM.\n * Just to be on the safe side. Fallback to existing value if\n * sanitize returns null\n */\n const sanitizedContent =\n sanitizer.sanitize(SecurityContext.HTML, newContent) ?? existingHtmlContent;\n\n return sanitizedContent;\n};\n","import { Directive, ElementRef, HostBinding, Input } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { highlightSearchedText } from '../utils';\n\n@Directive({\n selector: '[sdsHighlightText]',\n standalone: true\n})\nexport class SdsHighlightTextDirective {\n/**\n * INPUTS\n */\n /**\n * CSS classes to be appended to the marked text\n */\n @Input() additionalClasses: string = '';\n\n /**\n * Search term that should be found\n */\n private _search: string = '';\n @Input()\n get highlightText(): string {\n return this._search;\n }\n set highlightText(value: string) {\n this._search = value;\n\n // Now process the search value\n this.markSearchedText(value);\n }\n\n /**\n * OTHER PROPS\n */\n @HostBinding('innerHtml')\n content!: string;\n\n /**\n * For now make this case insensitive. We might change this to\n * input latter if needed\n */\n protected caseSensitive: boolean = false;\n\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _sanitizer: DomSanitizer\n ) {}\n\n protected markSearchedText(highlightText: string): void {\n // Make sure that native element is present\n if (this._elementRef?.nativeElement) {\n const currentHtmlContent = (this._elementRef.nativeElement as HTMLElement)\n .innerHTML;\n\n const text =\n (this._elementRef.nativeElement as HTMLElement).textContent ?? '';\n\n const highlightedText = highlightSearchedText(\n highlightText,\n text,\n currentHtmlContent,\n this._sanitizer,\n this.additionalClasses\n );\n\n this.content = highlightedText;\n }\n }\n}\n","import { ElementRef, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { highlightSearchedText } from '../utils';\n\n@Pipe({\n name: 'sdsHighlightText',\n standalone: true\n})\nexport class SdsHighlightTextPipe implements PipeTransform {\n constructor(\n private readonly _elementRef: ElementRef,\n private readonly _sanitizer: DomSanitizer\n ) {}\n\n transform(\n highlightText: string,\n stringToBeChecked: string,\n additionalClasses?: string\n ): string {\n // Make sure that native element is present\n if (this._elementRef?.nativeElement) {\n const currentHtmlContent = (this._elementRef.nativeElement as HTMLElement)\n .innerHTML;\n\n const highlightedText = highlightSearchedText(\n highlightText,\n stringToBeChecked,\n currentHtmlContent,\n this._sanitizer,\n additionalClasses\n );\n\n return highlightedText;\n }\n\n return stringToBeChecked;\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGA;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,CAAC,MAAc,KAAY;IAClD,OAAO,MAAM,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;AAC3D,CAAC;AAED;;;;;;;;;;;;AAYG;AACI,MAAM,qBAAqB,GAAG,CACjC,aAAqB,EACrB,iBAAyB,EACzB,mBAA2B,EAC3B,SAAuB,EACvB,iBAA0B,KAChB;;AAEV,IAAA,IAAI,aA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B,WAAuB,EACvB,UAAwB,EAAA;QADxB,IAAA,CAAA,WAAW,GAAX,WAAW;QACX,IAAA,CAAA,UAAU,GAAV,UAAU;IAC5B;AAEH,IAAA,SAAS,CACL,aAAqB,EACrB,iBAAyB,EACzB,iBAA0B,EAAA;;AAG1B,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE;AACnC,YAAA,MAAM,kBAAkB,GAAI,IAAI,CAAC,WAAW,CAAC;AAC1C,iBAAA,SAAS;AAEZ,YAAA,MAAM,eAAe,GAAG,qBAAqB,CAC3C,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,IAAI,CAAC,UAAU,EACf,iBAAiB,CAClB;AAED,YAAA,OAAO,eAAe;QACxB;AAEA,QAAA,OAAO,iBAAiB;IAC1B;+GA5BO,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,kBAAkB;AACxB,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACPD;;AAEG;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Inject, Injectable, EventEmitter, Output, Input, Directive } from '@angular/core';
|
|
3
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { DOCUMENT, Inject, Injectable, EventEmitter, Output, Input, Directive } from '@angular/core';
|
|
4
3
|
import { concat, defer, of, fromEvent, Observable, combineLatest } from 'rxjs';
|
|
5
4
|
import { map, mergeMap, distinctUntilChanged } from 'rxjs/operators';
|
|
6
5
|
|
|
@@ -43,10 +42,10 @@ class SdsIntersectionService {
|
|
|
43
42
|
}), distinctUntilChanged());
|
|
44
43
|
return elementInSight$;
|
|
45
44
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsIntersectionService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
46
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsIntersectionService }); }
|
|
48
47
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsIntersectionService, decorators: [{
|
|
50
49
|
type: Injectable
|
|
51
50
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
52
51
|
type: Inject,
|
|
@@ -85,10 +84,10 @@ class SdsIntersectionDirective {
|
|
|
85
84
|
});
|
|
86
85
|
this._subscriptions.push(intersetionSubscription);
|
|
87
86
|
}
|
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsIntersectionDirective, deps: [{ token: i0.ElementRef }, { token: SdsIntersectionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
88
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.23", type: SdsIntersectionDirective, isStandalone: true, selector: "[sdsIntersection]", inputs: { intersectionOptions: "intersectionOptions" }, outputs: { elementInSight: "elementInSight" }, providers: [SdsIntersectionService], ngImport: i0 }); }
|
|
90
89
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsIntersectionDirective, decorators: [{
|
|
92
91
|
type: Directive,
|
|
93
92
|
args: [{
|
|
94
93
|
selector: '[sdsIntersection]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-intersection.mjs","sources":["../../../projects/ngx-sds-components/src/lib/intersection/services/intersection.service.ts","../../../projects/ngx-sds-components/src/lib/intersection/directives/intersection.directive.ts","../../../projects/ngx-sds-components/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-intersection.mjs","sources":["../../../projects/ngx-sds-components/src/lib/intersection/services/intersection.service.ts","../../../projects/ngx-sds-components/src/lib/intersection/directives/intersection.directive.ts","../../../projects/ngx-sds-components/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.ts"],"sourcesContent":["\nimport { ElementRef, Inject, Injectable, DOCUMENT } from '@angular/core';\nimport { Observable, Subscriber, combineLatest, concat, defer, fromEvent, of } from 'rxjs';\nimport { map, mergeMap, distinctUntilChanged } from 'rxjs/operators';\n\n@Injectable()\nexport class SdsIntersectionService {\n private _documentVisible$: Observable<boolean>;\n\n constructor(@Inject(DOCUMENT) document: any) {\n this._documentVisible$ = concat(\n defer(() => of(!document.hidden)),\n fromEvent(document, 'visibilitychange').pipe(map(e => !document.hidden))\n );\n }\n\n /**\n * @description\n * Method responsible for determining if element is visible\n * on screen or not. Please\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API for options meaning\n * @param { ElementRef } element\n * @param { IntersectionObserverInit } options\n * @returns { Observable<boolean> }\n */\n elementInSight$(\n element: ElementRef,\n options?: IntersectionObserverInit\n ): Observable<boolean> {\n const intersectionOptions: IntersectionObserverInit = {\n root: options?.root ?? null,\n rootMargin: options?.rootMargin ?? '0px 0px 0px 0px',\n threshold: options?.threshold ?? 0.5\n };\n\n const elementVisible$ = new Observable(\n (observer: Subscriber<IntersectionObserverEntry[]>) => {\n const intersectionObserver = new IntersectionObserver(entries => {\n observer.next(entries);\n }, intersectionOptions);\n\n intersectionObserver.observe(element.nativeElement);\n\n return () => {\n intersectionObserver.disconnect();\n };\n }\n ).pipe(\n mergeMap((entries: IntersectionObserverEntry[]) => entries),\n map((entry: IntersectionObserverEntry) => entry.isIntersecting),\n distinctUntilChanged()\n );\n\n const elementInSight$ = combineLatest([\n this._documentVisible$,\n elementVisible$\n ]).pipe(\n map(stream => {\n const pageVisible: boolean = stream[0];\n const elementVisible: boolean = stream[1];\n\n const isVisible = pageVisible && elementVisible;\n\n return isVisible;\n }),\n distinctUntilChanged()\n );\n\n return elementInSight$;\n }\n}\n","import { AfterViewInit, Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { SdsIntersectionService } from '../services';\n\n@Directive({\n selector: '[sdsIntersection]',\n providers: [SdsIntersectionService],\n standalone: true\n})\nexport class SdsIntersectionDirective implements OnInit, OnDestroy, AfterViewInit {\n /**\n *\n */\n @Input()\n get intersectionOptions(): IntersectionObserverInit | undefined {\n return this._intersectionOptions;\n }\n set intersectionOptions(value: IntersectionObserverInit | undefined) {\n this._intersectionOptions = value;\n }\n\n /**\n * Emits current visibility status\n */\n @Output() elementInSight: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n private _intersectionOptions: IntersectionObserverInit | undefined;\n private _subscriptions: Subscription[] = [];\n\n constructor(\n private readonly _element: ElementRef,\n private readonly _intersectionService: SdsIntersectionService\n ) {}\n\n ngOnInit(): void {\n\n }\n\n ngOnDestroy(): void {\n this._subscriptions.forEach(subscription => subscription.unsubscribe());\n }\n\n ngAfterViewInit(): void {\n const intersetionSubscription = this._intersectionService\n .elementInSight$(this._element, this.intersectionOptions)\n .subscribe(visibilityFlag => {\n this.elementInSight.emit(visibilityFlag);\n });\n\n this._subscriptions.push(intersetionSubscription);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.SdsIntersectionService"],"mappings":";;;;;MAMa,sBAAsB,CAAA;AAG/B,IAAA,WAAA,CAA8B,QAAa,EAAA;AACzC,QAAA,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAC7B,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EACjC,SAAS,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CACzE;IACH;AAEA;;;;;;;;AAQG;IACH,eAAe,CACb,OAAmB,EACnB,OAAkC,EAAA;AAElC,QAAA,MAAM,mBAAmB,GAA6B;AACpD,YAAA,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,IAAI;AAC3B,YAAA,UAAU,EAAE,OAAO,EAAE,UAAU,IAAI,iBAAiB;AACpD,YAAA,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI;SAClC;QAED,MAAM,eAAe,GAAG,IAAI,UAAU,CACpC,CAAC,QAAiD,KAAI;AACpD,YAAA,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,OAAO,IAAG;AAC9D,gBAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;YACxB,CAAC,EAAE,mBAAmB,CAAC;AAEvB,YAAA,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;AAEnD,YAAA,OAAO,MAAK;gBAC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CAAC;AACnC,oBAAA,UAAU,EAAE;AACf,iBAAA;;sBAKI;;sBAWA;;;ACxBL;;AAEG;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, DestroyRef, output, Directive } from '@angular/core';
|
|
2
|
+
import { inject, DOCUMENT, DestroyRef, output, Directive } from '@angular/core';
|
|
4
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
4
|
import { fromEvent, groupBy, mergeAll } from 'rxjs';
|
|
6
5
|
|
|
@@ -35,16 +34,16 @@ class SdsKeyboardShortcutDirective {
|
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsKeyboardShortcutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
38
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.23", type: SdsKeyboardShortcutDirective, isStandalone: true, selector: "[sdsKeyboardShortcut]", outputs: { closeShortcut: "closeShortcut", saveRecordShortcut: "saveRecordShortcut" }, ngImport: i0 }); }
|
|
40
39
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsKeyboardShortcutDirective, decorators: [{
|
|
42
41
|
type: Directive,
|
|
43
42
|
args: [{
|
|
44
43
|
selector: '[sdsKeyboardShortcut]',
|
|
45
44
|
standalone: true
|
|
46
45
|
}]
|
|
47
|
-
}] });
|
|
46
|
+
}], propDecorators: { closeShortcut: [{ type: i0.Output, args: ["closeShortcut"] }], saveRecordShortcut: [{ type: i0.Output, args: ["saveRecordShortcut"] }] } });
|
|
48
47
|
|
|
49
48
|
/**
|
|
50
49
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs","sources":["../../../projects/ngx-sds-components/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.ts","../../../projects/ngx-sds-components/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs","sources":["../../../projects/ngx-sds-components/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.ts","../../../projects/ngx-sds-components/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.ts"],"sourcesContent":["\nimport { DestroyRef, Directive, inject, OnInit, output, DOCUMENT } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { fromEvent, groupBy, mergeAll } from 'rxjs';\n\n@Directive({\n selector: '[sdsKeyboardShortcut]',\n standalone: true\n})\nexport class SdsKeyboardShortcutDirective implements OnInit {\n // #region Dependencies\n private readonly _document = inject(DOCUMENT);\n private readonly _destroyRef = inject(DestroyRef);\n // #endregion Dependencies\n\n // #region Outputs\n /**\n * Emitted when user presses Escape\n */\n public closeShortcut = output<void>();\n\n /**\n * Emitted when user presses ctrl+Enter or cmd+Enter\n */\n public saveRecordShortcut = output<void>();\n // #endregion Outputs\n\n ngOnInit(): void {\n fromEvent<KeyboardEvent>(\n this._document,\n 'keydown'\n )\n .pipe(\n groupBy(e => e.code),\n mergeAll(),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((keyboardEvent) => {\n // Define shortcut(s) logic here.\n\n if (keyboardEvent.code === 'Escape') {\n this.closeShortcut.emit();\n }\n\n if (keyboardEvent.code === 'Enter' && (keyboardEvent.ctrlKey || keyboardEvent.metaKey)) {\n // Ctrl+Enter was pressed (Cmd+Enter on Apple HW)\n this.saveRecordShortcut.emit();\n }\n });\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MASa,4BAA4B,CAAA;AAJzC,IAAA,WAAA,GAAA;;AAMqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;;;AAIjD;;AAEG;QACI,IAAA,CAAA,aAAa,GAAG,MAAM,EAAQ;AAErC;;AAEG;QACI,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;AA0B7C,IAAA;;IAvBG,QAAQ,GAAA;AACJ,QAAA,SAAS,CACL,IAAI,CAAC,SAAS,EACd,SAAS;aAER,IAAI,CACD,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EACpB,QAAQ,EAAE,EACV,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEvC,aAAA,SAAS,CAAC,CAAC,aAAa,KAAI;;AAGzB,YAAA,IAAI,aAAa,CAAC,IAAI,KAAK,QAAQ,EAAE;AACjC,gBAAA,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE;YAC7B;AAEA,YAAA,IAAI,aAAa,CAAC,IAAI,KAAK,OAAO,KAAK,aAAa,CAAC,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE;;AAEpF,gBAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE;YAClC;AACJ,QAAA,CAAC,CAAC;IACV;+GAxCS,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAJxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACRD;;AAEG;;"}
|
|
@@ -6,60 +6,60 @@ class SdsDefaultLayoutComponent {
|
|
|
6
6
|
constructor() { }
|
|
7
7
|
ngOnInit() {
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsDefaultLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsDefaultLayoutComponent, isStandalone: true, selector: "sds-default-layout", ngImport: i0, template: "<div class=\"container\">\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsDefaultLayoutComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
|
-
args: [{ selector: 'sds-default-layout',
|
|
14
|
+
args: [{ selector: 'sds-default-layout', imports: [RouterOutlet], template: "<div class=\"container\">\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
15
15
|
}], ctorParameters: () => [] });
|
|
16
16
|
|
|
17
17
|
class SdsFluidLayoutComponent {
|
|
18
18
|
constructor() { }
|
|
19
19
|
ngOnInit() {
|
|
20
20
|
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsFluidLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsFluidLayoutComponent, isStandalone: true, selector: "sds-fluid-layout", ngImport: i0, template: "<div class=\"container-fluid\">\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
23
23
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsFluidLayoutComponent, decorators: [{
|
|
25
25
|
type: Component,
|
|
26
|
-
args: [{ selector: 'sds-fluid-layout',
|
|
26
|
+
args: [{ selector: 'sds-fluid-layout', imports: [RouterOutlet], template: "<div class=\"container-fluid\">\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
27
27
|
}], ctorParameters: () => [] });
|
|
28
28
|
|
|
29
29
|
class SdsSmallLayoutComponent {
|
|
30
30
|
constructor() { }
|
|
31
31
|
ngOnInit() {
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsSmallLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsSmallLayoutComponent, isStandalone: true, selector: "sds-small-layout", ngImport: i0, template: "<div class=\"container container-sm\">\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
35
35
|
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsSmallLayoutComponent, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
|
-
args: [{ selector: 'sds-small-layout',
|
|
38
|
+
args: [{ selector: 'sds-small-layout', imports: [RouterOutlet], template: "<div class=\"container container-sm\">\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
39
39
|
}], ctorParameters: () => [] });
|
|
40
40
|
|
|
41
41
|
class SdsMediumLayoutComponent {
|
|
42
42
|
constructor() { }
|
|
43
43
|
ngOnInit() {
|
|
44
44
|
}
|
|
45
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsMediumLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsMediumLayoutComponent, isStandalone: true, selector: "sds-medium-layout", ngImport: i0, template: "<div class=\"container container-md\">\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
47
47
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsMediumLayoutComponent, decorators: [{
|
|
49
49
|
type: Component,
|
|
50
|
-
args: [{ selector: 'sds-medium-layout',
|
|
50
|
+
args: [{ selector: 'sds-medium-layout', imports: [RouterOutlet], template: "<div class=\"container container-md\">\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
51
51
|
}], ctorParameters: () => [] });
|
|
52
52
|
|
|
53
53
|
class SdsExtraLargeLayoutComponent {
|
|
54
54
|
constructor() { }
|
|
55
55
|
ngOnInit() {
|
|
56
56
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsExtraLargeLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsExtraLargeLayoutComponent, isStandalone: true, selector: "sds-extra-large-layout", ngImport: i0, template: "<div class=\"container container-xl\">\n <router-outlet></router-outlet>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsExtraLargeLayoutComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
|
-
args: [{ selector: 'sds-extra-large-layout',
|
|
62
|
+
args: [{ selector: 'sds-extra-large-layout', imports: [RouterOutlet], template: "<div class=\"container container-xl\">\n <router-outlet></router-outlet>\n</div>\n" }]
|
|
63
63
|
}], ctorParameters: () => [] });
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-layout.mjs","sources":["../../../projects/ngx-sds-components/src/lib/layout/default-layout/default-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/default-layout/default-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/fluid-layout/fluid-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/fluid-layout/fluid-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/small-layout/small-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/small-layout/small-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/medium-layout/medium-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/medium-layout/medium-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/extra-large-layout/extra-large-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/extra-large-layout/extra-large-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-default-layout',\n templateUrl: './default-layout.component.html',\n styleUrls: ['./default-layout.component.scss'],\n
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-layout.mjs","sources":["../../../projects/ngx-sds-components/src/lib/layout/default-layout/default-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/default-layout/default-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/fluid-layout/fluid-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/fluid-layout/fluid-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/small-layout/small-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/small-layout/small-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/medium-layout/medium-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/medium-layout/medium-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/extra-large-layout/extra-large-layout.component.ts","../../../projects/ngx-sds-components/src/lib/layout/extra-large-layout/extra-large-layout.component.html","../../../projects/ngx-sds-components/src/lib/layout/spicainternational-ngx-sds-components-src-lib-layout.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-default-layout',\n templateUrl: './default-layout.component.html',\n styleUrls: ['./default-layout.component.scss'],\n imports: [RouterOutlet]\n})\nexport class SdsDefaultLayoutComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"container\">\n <router-outlet></router-outlet>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-fluid-layout',\n templateUrl: './fluid-layout.component.html',\n styleUrls: ['./fluid-layout.component.scss'],\n imports: [RouterOutlet]\n})\nexport class SdsFluidLayoutComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"container-fluid\">\n <router-outlet></router-outlet>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-small-layout',\n templateUrl: './small-layout.component.html',\n styleUrls: ['./small-layout.component.scss'],\n imports: [RouterOutlet]\n})\nexport class SdsSmallLayoutComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"container container-sm\">\n <router-outlet></router-outlet>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-medium-layout',\n templateUrl: './medium-layout.component.html',\n styleUrls: ['./medium-layout.component.scss'],\n imports: [RouterOutlet]\n})\nexport class SdsMediumLayoutComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"container container-md\">\n <router-outlet></router-outlet>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'sds-extra-large-layout',\n templateUrl: './extra-large-layout.component.html',\n styleUrls: ['./extra-large-layout.component.scss'],\n imports: [RouterOutlet]\n})\nexport class SdsExtraLargeLayoutComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<div class=\"container container-xl\">\n <router-outlet></router-outlet>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,yBAAyB,CAAA;AAEpC,IAAA,WAAA,GAAA,EAAgB;IAEhB,QAAQ,GAAA;IACR;+GALW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECTtC,wEAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,YAAY,EAAA,QAAA,EAAA,eAA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;;4FAEb,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACI,mBAAmB,EAAA,OAAA,EAGpB,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,qFAAA,EAAA;;;MEEd,4BAA4B,CAAA;AAEvC,IAAA,WAAA,GAAA,EAAgB;IAEhB,QAAQ,GAAA;IACR;+GALW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECTzC,qFAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAEb,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBANxC,SAAS;+BACI,wBAAwB,EAAA,OAAA,EAGzB,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,qFAAA,EAAA;;;AEP3B;;AAEG;;"}
|
|
@@ -26,12 +26,12 @@ class SdsMessageComponent {
|
|
|
26
26
|
onActionButtonClick() {
|
|
27
27
|
this.actionClick.emit();
|
|
28
28
|
}
|
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: SdsMessageComponent, isStandalone: true, selector: "sds-message", inputs: { icon: "icon", text: "text", showCloseButton: "showCloseButton", showLearnMoreLink: "showLearnMoreLink", learnMoreLinkText: "learnMoreLinkText", learnMoreLinkUrl: "learnMoreLinkUrl", showAction: "showAction", actionText: "actionText", style: "style" }, outputs: { close: "close", actionClick: "actionClick" }, queries: [{ propertyName: "customContent", first: true, predicate: ["customContent"], descendants: true }], ngImport: i0, template: "<div \n *ngIf=\"showMessage\"\n class=\"px-3 py-2 d-flex rounded\"\n [class.sds-message-default] = \"style == 'default'\"\n \n [class.sds-message-success] = \"style == 'success'\"\n [class.sds-message-success-subtle] = \"style == 'successSubtle'\"\n \n [class.sds-message-danger] = \"style == 'danger'\"\n [class.sds-message-danger-subtle] = \"style == 'dangerSubtle'\"\n \n [class.sds-message-warning] = \"style == 'warning'\"\n [class.sds-message-warning-subtle] = \"style == 'warningSubtle'\"\n\n [class.sds-message-info] = \"style == 'info'\"\n [class.sds-message-info-subtle] = \"style == 'infoSubtle'\"\n >\n\n <fa-icon \n *ngIf=\"icon\"\n [icon]=\"icon\"\n class=\"me-2\"\n >\n </fa-icon>\n\n <div class=\"flex-grow-1\">\n <div *ngIf=\"!customContent\">\n <span>\n {{text}}\n </span>\n\n <span \n *ngIf=\"showAction\"\n >\n <a \n class=\"link-primary sds-cursor-pointer ml-2 \"\n (click)=\"onActionButtonClick()\"\n >\n {{actionText}}\n </a>\n </span>\n\n <span \n *ngIf=\"showLearnMoreLink\"\n >\n <a \n class=\"\"\n [href]=\"learnMoreLinkUrl\"\n target=\"_learnmore\"\n >\n {{learnMoreLinkText}}\n </a>\n </span>\n </div>\n\n <ng-container *ngIf=\"customContent\" >\n <ng-content select=\"customContent\"></ng-content>\n </ng-container> \n </div>\n\n <div *ngIf=\"showCloseButton\">\n <button \n type=\"button\" \n class=\"btn-close ml-2\" \n aria-label=\"Close\"\n (click)=\"onCloseButtonClick()\"\n >\n </button>\n </div>\n\n</div>\n", styles: [".sds-message-default{color:var(--bs-gray-900);background-color:var(--bs-gray-300)}.sds-message-success-subtle{color:var(--bs-gray-900);background-color:var(--bs-success-bg-subtle)}.sds-message-danger-subtle{color:var(--bs-gray-900);background-color:var(--bs-danger-bg-subtle)}.sds-message-warning-subtle{color:var(--bs-gray-900);background-color:var(--bs-warning-bg-subtle)}.sds-message-info-subtle{color:var(--bs-gray-900);background-color:var(--bs-info-bg-subtle)}.sds-message-success{color:var(--bs-gray-100);background-color:var(--bs-success)}.sds-message-danger{color:var(--bs-gray-100);background-color:var(--bs-danger)}.sds-message-warning{color:var(--bs-gray-900);background-color:var(--bs-warning)}.sds-message-info{color:var(--bs-gray-900);background-color:var(--bs-info)}.btn-close{font-size:.75em}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }] }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: SdsMessageComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
|
-
args: [{ selector: 'sds-message',
|
|
34
|
+
args: [{ selector: 'sds-message', imports: [NgIf, FaIconComponent], template: "<div \n *ngIf=\"showMessage\"\n class=\"px-3 py-2 d-flex rounded\"\n [class.sds-message-default] = \"style == 'default'\"\n \n [class.sds-message-success] = \"style == 'success'\"\n [class.sds-message-success-subtle] = \"style == 'successSubtle'\"\n \n [class.sds-message-danger] = \"style == 'danger'\"\n [class.sds-message-danger-subtle] = \"style == 'dangerSubtle'\"\n \n [class.sds-message-warning] = \"style == 'warning'\"\n [class.sds-message-warning-subtle] = \"style == 'warningSubtle'\"\n\n [class.sds-message-info] = \"style == 'info'\"\n [class.sds-message-info-subtle] = \"style == 'infoSubtle'\"\n >\n\n <fa-icon \n *ngIf=\"icon\"\n [icon]=\"icon\"\n class=\"me-2\"\n >\n </fa-icon>\n\n <div class=\"flex-grow-1\">\n <div *ngIf=\"!customContent\">\n <span>\n {{text}}\n </span>\n\n <span \n *ngIf=\"showAction\"\n >\n <a \n class=\"link-primary sds-cursor-pointer ml-2 \"\n (click)=\"onActionButtonClick()\"\n >\n {{actionText}}\n </a>\n </span>\n\n <span \n *ngIf=\"showLearnMoreLink\"\n >\n <a \n class=\"\"\n [href]=\"learnMoreLinkUrl\"\n target=\"_learnmore\"\n >\n {{learnMoreLinkText}}\n </a>\n </span>\n </div>\n\n <ng-container *ngIf=\"customContent\" >\n <ng-content select=\"customContent\"></ng-content>\n </ng-container> \n </div>\n\n <div *ngIf=\"showCloseButton\">\n <button \n type=\"button\" \n class=\"btn-close ml-2\" \n aria-label=\"Close\"\n (click)=\"onCloseButtonClick()\"\n >\n </button>\n </div>\n\n</div>\n", styles: [".sds-message-default{color:var(--bs-gray-900);background-color:var(--bs-gray-300)}.sds-message-success-subtle{color:var(--bs-gray-900);background-color:var(--bs-success-bg-subtle)}.sds-message-danger-subtle{color:var(--bs-gray-900);background-color:var(--bs-danger-bg-subtle)}.sds-message-warning-subtle{color:var(--bs-gray-900);background-color:var(--bs-warning-bg-subtle)}.sds-message-info-subtle{color:var(--bs-gray-900);background-color:var(--bs-info-bg-subtle)}.sds-message-success{color:var(--bs-gray-100);background-color:var(--bs-success)}.sds-message-danger{color:var(--bs-gray-100);background-color:var(--bs-danger)}.sds-message-warning{color:var(--bs-gray-900);background-color:var(--bs-warning)}.sds-message-info{color:var(--bs-gray-900);background-color:var(--bs-info)}.btn-close{font-size:.75em}\n"] }]
|
|
35
35
|
}], ctorParameters: () => [], propDecorators: { icon: [{
|
|
36
36
|
type: Input
|
|
37
37
|
}], text: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-message.mjs","sources":["../../../projects/ngx-sds-components/src/lib/message/message.component.ts","../../../projects/ngx-sds-components/src/lib/message/message.component.html","../../../projects/ngx-sds-components/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.ts"],"sourcesContent":["import { Component, ContentChild, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { NgIf } from '@angular/common';\n\n@Component({\n selector: 'sds-message',\n templateUrl: './message.component.html',\n styleUrls: ['./message.component.scss'],\n
|
|
1
|
+
{"version":3,"file":"spicainternational-ngx-sds-components-src-lib-message.mjs","sources":["../../../projects/ngx-sds-components/src/lib/message/message.component.ts","../../../projects/ngx-sds-components/src/lib/message/message.component.html","../../../projects/ngx-sds-components/src/lib/message/spicainternational-ngx-sds-components-src-lib-message.ts"],"sourcesContent":["import { Component, ContentChild, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { IconProp } from '@fortawesome/fontawesome-svg-core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { NgIf } from '@angular/common';\n\n@Component({\n selector: 'sds-message',\n templateUrl: './message.component.html',\n styleUrls: ['./message.component.scss'],\n imports: [NgIf, FaIconComponent]\n})\nexport class SdsMessageComponent implements OnInit {\n\n @Input() public icon?: IconProp;\n @Input() public text: string = '';\n @Input() public showCloseButton: boolean = false;\n\n @Output() public close: EventEmitter<void> = new EventEmitter();\n\n @Input() public showLearnMoreLink: boolean = false;\n @Input() public learnMoreLinkText: string = 'Learn more';\n @Input() public learnMoreLinkUrl: string = '';\n\n @Input() public showAction: boolean = false;\n @Input() public actionText: string = 'Address this'; \n @Output() public actionClick: EventEmitter<void> = new EventEmitter();\n\n\n @Input() public style: 'default' | 'danger' | 'dangerSubtle' | 'success' | 'successSubtle' | 'warning' | 'warningSubtle' | 'info' | 'infoSubtle' = 'default';\n\n @ContentChild('customContent') customContent: ElementRef = {nativeElement: undefined};\n\n public showMessage: boolean = true;\n\n constructor() {}\n\n ngOnInit(): void {}\n\n public onCloseButtonClick(): void {\n this.showMessage = false;\n this.close.emit();\n }\n\n public onActionButtonClick(): void {\n this.actionClick.emit();\n }\n\n}\n","<div \n *ngIf=\"showMessage\"\n class=\"px-3 py-2 d-flex rounded\"\n [class.sds-message-default] = \"style == 'default'\"\n \n [class.sds-message-success] = \"style == 'success'\"\n [class.sds-message-success-subtle] = \"style == 'successSubtle'\"\n \n [class.sds-message-danger] = \"style == 'danger'\"\n [class.sds-message-danger-subtle] = \"style == 'dangerSubtle'\"\n \n [class.sds-message-warning] = \"style == 'warning'\"\n [class.sds-message-warning-subtle] = \"style == 'warningSubtle'\"\n\n [class.sds-message-info] = \"style == 'info'\"\n [class.sds-message-info-subtle] = \"style == 'infoSubtle'\"\n >\n\n <fa-icon \n *ngIf=\"icon\"\n [icon]=\"icon\"\n class=\"me-2\"\n >\n </fa-icon>\n\n <div class=\"flex-grow-1\">\n <div *ngIf=\"!customContent\">\n <span>\n {{text}}\n </span>\n\n <span \n *ngIf=\"showAction\"\n >\n <a \n class=\"link-primary sds-cursor-pointer ml-2 \"\n (click)=\"onActionButtonClick()\"\n >\n {{actionText}}\n </a>\n </span>\n\n <span \n *ngIf=\"showLearnMoreLink\"\n >\n <a \n class=\"\"\n [href]=\"learnMoreLinkUrl\"\n target=\"_learnmore\"\n >\n {{learnMoreLinkText}}\n </a>\n </span>\n </div>\n\n <ng-container *ngIf=\"customContent\" >\n <ng-content select=\"customContent\"></ng-content>\n </ng-container> \n </div>\n\n <div *ngIf=\"showCloseButton\">\n <button \n type=\"button\" \n class=\"btn-close ml-2\" \n aria-label=\"Close\"\n (click)=\"onCloseButtonClick()\"\n >\n </button>\n </div>\n\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,mBAAmB,CAAA;AAuB5B,IAAA,WAAA,GAAA;QApBgB,IAAA,CAAA,IAAI,GAAW,EAAE;QACjB,IAAA,CAAA,eAAe,GAAY,KAAK;AAE/B,QAAA,IAAA,CAAA,KAAK,GAAuB,IAAI,YAAY,EAAE;QAE/C,IAAA,CAAA,iBAAiB,GAAY,KAAK;QAClC,IAAA,CAAA,iBAAiB,GAAW,YAAY;QACxC,IAAA,CAAA,gBAAgB,GAAW,EAAE;QAE7B,IAAA,CAAA,UAAU,GAAY,KAAK;QAC3B,IAAA,CAAA,UAAU,GAAW,cAAc;AAClC,QAAA,IAAA,CAAA,WAAW,GAAuB,IAAI,YAAY,EAAE;QAGrD,IAAA,CAAA,KAAK,GAA8H,SAAS;AAE7H,QAAA,IAAA,CAAA,aAAa,GAAe,EAAC,aAAa,EAAE,SAAS,EAAC;QAE9E,IAAA,CAAA,WAAW,GAAY,IAAI;IAEnB;AAEf,IAAA,QAAQ,KAAU;IAEX,kBAAkB,GAAA;AACrB,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;AACxB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;IACrB;IAEO,mBAAmB,GAAA;AACtB,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;IAC3B;+GAlCS,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,E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