sidesys-generic-ui 0.0.19 → 0.0.21
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/karma.conf.js +44 -0
- package/ng-package.json +8 -0
- package/package.json +15 -33
- package/src/lib/alert/index.ts +2 -0
- package/src/lib/alert/s-alert.component.css +0 -0
- package/src/lib/alert/s-alert.component.html +3 -0
- package/src/lib/alert/s-alert.component.spec.ts +25 -0
- package/src/lib/alert/s-alert.component.ts +19 -0
- package/src/lib/alert/s-alert.module.ts +15 -0
- package/src/lib/avatar/components/profile-group/index.ts +2 -0
- package/src/lib/avatar/components/profile-group/s-profile-group.component.html +9 -0
- package/src/lib/avatar/components/profile-group/s-profile-group.component.scss +40 -0
- package/src/lib/avatar/components/profile-group/s-profile-group.component.spec.ts +25 -0
- package/src/lib/avatar/components/profile-group/s-profile-group.component.ts +59 -0
- package/src/lib/avatar/components/profile-group/s-profile-group.module.ts +17 -0
- package/src/lib/avatar/index.ts +2 -0
- package/src/lib/avatar/s-avatar.component.html +50 -0
- package/src/lib/avatar/s-avatar.component.scss +239 -0
- package/src/lib/avatar/s-avatar.component.spec.ts +25 -0
- package/src/lib/avatar/s-avatar.component.ts +42 -0
- package/src/lib/avatar/s-avatar.module.ts +19 -0
- package/src/lib/badge/index.ts +2 -0
- package/src/lib/badge/s-badge.component.html +4 -0
- package/src/lib/badge/s-badge.component.scss +65 -0
- package/src/lib/badge/s-badge.component.spec.ts +25 -0
- package/src/lib/badge/s-badge.component.ts +19 -0
- package/src/lib/badge/s-badge.module.ts +16 -0
- package/src/lib/blockquote/index.ts +2 -0
- package/src/lib/blockquote/s-blockquote.component.css +24 -0
- package/src/lib/blockquote/s-blockquote.component.html +5 -0
- package/src/lib/blockquote/s-blockquote.component.spec.ts +25 -0
- package/src/lib/blockquote/s-blockquote.component.ts +17 -0
- package/src/lib/blockquote/s-blockquote.module.ts +15 -0
- package/{lib/breadcrum/index.d.ts → src/lib/breadcrum/index.ts} +1 -0
- package/src/lib/breadcrum/interface/breadcrum-nav.interface.ts +6 -0
- package/src/lib/breadcrum/interface/index.ts +1 -0
- package/src/lib/breadcrum/s-breadcrum.component.html +11 -0
- package/src/lib/breadcrum/s-breadcrum.component.scss +89 -0
- package/src/lib/breadcrum/s-breadcrum.component.spec.ts +25 -0
- package/src/lib/breadcrum/s-breadcrum.component.ts +27 -0
- package/src/lib/breadcrum/s-breadcrum.module.ts +18 -0
- package/src/lib/button/button.module.ts +16 -0
- package/src/lib/button/components/button/s-button.component.html +14 -0
- package/src/lib/button/components/button/s-button.component.scss +237 -0
- package/src/lib/button/components/button/s-button.component.spec.ts +25 -0
- package/src/lib/button/components/button/s-button.component.ts +45 -0
- package/src/lib/button/components/button/styles/s-button-loading.scss +62 -0
- package/src/lib/button/components/button/styles/s-button-themes.scss +162 -0
- package/src/lib/button/index.ts +2 -0
- package/{lib/card/index.d.ts → src/lib/card/index.ts} +1 -1
- package/src/lib/card/s-card-models.ts +11 -0
- package/src/lib/card/s-card.component.html +28 -0
- package/src/lib/card/s-card.component.scss +117 -0
- package/src/lib/card/s-card.component.spec.ts +25 -0
- package/src/lib/card/s-card.component.ts +55 -0
- package/src/lib/card/s-card.module.ts +26 -0
- package/src/lib/checkbox/index.ts +2 -0
- package/src/lib/checkbox/s-checkbox.component.html +4 -0
- package/src/lib/checkbox/s-checkbox.component.scss +63 -0
- package/src/lib/checkbox/s-checkbox.component.spec.ts +25 -0
- package/src/lib/checkbox/s-checkbox.component.ts +55 -0
- package/src/lib/checkbox/s-checkbox.module.ts +17 -0
- package/{lib/company-logo/index.d.ts → src/lib/company-logo/index.ts} +1 -1
- package/src/lib/company-logo/s-company-logo.component.html +3 -0
- package/src/lib/company-logo/s-company-logo.component.scss +14 -0
- package/src/lib/company-logo/s-company-logo.component.spec.ts +25 -0
- package/src/lib/company-logo/s-company-logo.component.ts +38 -0
- package/src/lib/company-logo/s-company-logo.module.ts +16 -0
- package/src/lib/content/index.ts +2 -0
- package/src/lib/content/s-content.component.html +3 -0
- package/src/lib/content/s-content.component.scss +20 -0
- package/src/lib/content/s-content.component.spec.ts +25 -0
- package/src/lib/content/s-content.component.ts +32 -0
- package/src/lib/content/s-content.module.ts +20 -0
- package/{lib/drop-down/index.d.ts → src/lib/drop-down/index.ts} +1 -1
- package/src/lib/drop-down/s-drop-down-button.ts +4 -0
- package/src/lib/drop-down/s-drop-down.component.html +5 -0
- package/src/lib/drop-down/s-drop-down.component.scss +34 -0
- package/src/lib/drop-down/s-drop-down.component.spec.ts +25 -0
- package/src/lib/drop-down/s-drop-down.component.ts +33 -0
- package/src/lib/drop-down/s-drop-down.module.ts +12 -0
- package/src/lib/fonts-material.scss +15 -0
- package/src/lib/fonts.scss +184 -0
- package/{lib/footer/index.d.ts → src/lib/footer/index.ts} +1 -1
- package/src/lib/footer/s-footer.component.html +4 -0
- package/src/lib/footer/s-footer.component.scss +25 -0
- package/src/lib/footer/s-footer.component.spec.ts +25 -0
- package/src/lib/footer/s-footer.component.ts +14 -0
- package/src/lib/footer/s-footer.module.ts +18 -0
- package/{lib/form/index.d.ts → src/lib/form/index.ts} +1 -1
- package/src/lib/form/s-form-control.ts +65 -0
- package/src/lib/form/s-form.component.html +60 -0
- package/src/lib/form/s-form.component.scss +7 -0
- package/src/lib/form/s-form.component.spec.ts +25 -0
- package/src/lib/form/s-form.component.ts +131 -0
- package/src/lib/form/s-form.module.ts +29 -0
- package/src/lib/icon/index.ts +2 -0
- package/src/lib/icon/s-icon.component.css +3 -0
- package/src/lib/icon/s-icon.component.html +8 -0
- package/src/lib/icon/s-icon.component.spec.ts +25 -0
- package/src/lib/icon/s-icon.component.ts +39 -0
- package/src/lib/icon/s-icon.module.ts +16 -0
- package/src/lib/icon/s-icons.ts +55 -0
- package/src/lib/icon-material/index.ts +2 -0
- package/src/lib/icon-material/s-icon-material.component.html +5 -0
- package/src/lib/icon-material/s-icon-material.component.scss +38 -0
- package/src/lib/icon-material/s-icon-material.component.spec.ts +25 -0
- package/src/lib/icon-material/s-icon-material.component.ts +51 -0
- package/src/lib/icon-material/s-icon-material.module.ts +14 -0
- package/src/lib/input/components/error-control/s-error-control.component.html +4 -0
- package/src/lib/input/components/error-control/s-error-control.component.scss +54 -0
- package/src/lib/input/components/error-control/s-error-control.component.spec.ts +25 -0
- package/src/lib/input/components/error-control/s-error-control.component.ts +50 -0
- package/src/lib/input/components/input-text/s-input-text.component.html +270 -0
- package/src/lib/input/components/input-text/s-input-text.component.scss +312 -0
- package/src/lib/input/components/input-text/s-input-text.component.spec.ts +25 -0
- package/src/lib/input/components/input-text/s-input-text.component.ts +311 -0
- package/src/lib/input/components/input-textarea/s-input-textarea.component.html +15 -0
- package/src/lib/input/components/input-textarea/s-input-textarea.component.scss +62 -0
- package/src/lib/input/components/input-textarea/s-input-textarea.component.spec.ts +25 -0
- package/src/lib/input/components/input-textarea/s-input-textarea.component.ts +82 -0
- package/src/lib/input/input.module.ts +30 -0
- package/src/lib/link/index.ts +2 -0
- package/src/lib/link/s-link.component.html +8 -0
- package/src/lib/link/s-link.component.scss +69 -0
- package/src/lib/link/s-link.component.spec.ts +25 -0
- package/src/lib/link/s-link.component.ts +24 -0
- package/src/lib/link/s-link.module.ts +15 -0
- package/src/lib/list/index.ts +2 -0
- package/src/lib/list/s-list.component.html +10 -0
- package/src/lib/list/s-list.component.scss +85 -0
- package/src/lib/list/s-list.component.spec.ts +25 -0
- package/src/lib/list/s-list.component.ts +21 -0
- package/src/lib/list/s-list.module.ts +17 -0
- package/src/lib/list-simple/index.ts +2 -0
- package/src/lib/list-simple/s-list-simple.component.html +3 -0
- package/src/lib/list-simple/s-list-simple.component.scss +146 -0
- package/src/lib/list-simple/s-list-simple.component.spec.ts +25 -0
- package/src/lib/list-simple/s-list-simple.component.ts +19 -0
- package/src/lib/list-simple/s-list-simple.module.ts +17 -0
- package/{lib/login/index.d.ts → src/lib/login/index.ts} +1 -1
- package/src/lib/login/s-login-event.ts +4 -0
- package/src/lib/login/s-login-images.ts +3 -0
- package/{lib/login/s-login-model.d.ts → src/lib/login/s-login-model.ts} +3 -3
- package/src/lib/login/s-login.component.html +46 -0
- package/src/lib/login/s-login.component.scss +69 -0
- package/src/lib/login/s-login.component.ts +92 -0
- package/src/lib/login/s-login.module.ts +24 -0
- package/src/lib/navbar/components/icon-menu/components/s-notificaction.component.ts +35 -0
- package/src/lib/navbar/components/icon-menu/components/s-notification.component.html +38 -0
- package/src/lib/navbar/components/icon-menu/components/s-notification.component.scss +93 -0
- package/src/lib/navbar/components/icon-menu/index.ts +4 -0
- package/src/lib/navbar/components/icon-menu/s-icon-menu-model.ts +21 -0
- package/src/lib/navbar/components/icon-menu/s-icon-menu.component.html +43 -0
- package/src/lib/navbar/components/icon-menu/s-icon-menu.component.scss +95 -0
- package/src/lib/navbar/components/icon-menu/s-icon-menu.component.ts +65 -0
- package/src/lib/navbar/components/icon-menu/s-icon-menu.module.ts +32 -0
- package/{lib/navbar/components/menu-config/index.d.ts → src/lib/navbar/components/menu-config/index.ts} +1 -1
- package/src/lib/navbar/components/menu-config/s-menu-config-model.ts +5 -0
- package/src/lib/navbar/components/menu-config/s-menu-config.component.html +1 -0
- package/src/lib/navbar/components/menu-config/s-menu-config.component.scss +0 -0
- package/src/lib/navbar/components/menu-config/s-menu-config.component.ts +34 -0
- package/src/lib/navbar/components/menu-config/s-menu-config.module.ts +21 -0
- package/{lib/navbar/components/menu-main/index.d.ts → src/lib/navbar/components/menu-main/index.ts} +1 -1
- package/src/lib/navbar/components/menu-main/s-menu-main-model.ts +7 -0
- package/src/lib/navbar/components/menu-main/s-menu-main.component.html +34 -0
- package/src/lib/navbar/components/menu-main/s-menu-main.component.scss +129 -0
- package/src/lib/navbar/components/menu-main/s-menu-main.component.ts +35 -0
- package/src/lib/navbar/components/menu-main/s-menu-main.module.ts +23 -0
- package/{lib/navbar/components/search-menu/index.d.ts → src/lib/navbar/components/search-menu/index.ts} +1 -1
- package/src/lib/navbar/components/search-menu/s-search-menu.component.html +1 -0
- package/src/lib/navbar/components/search-menu/s-search-menu.component.scss +0 -0
- package/src/lib/navbar/components/search-menu/s-search-menu.component.ts +34 -0
- package/src/lib/navbar/components/search-menu/s-search-menu.module.ts +19 -0
- package/{lib/navbar/index.d.ts → src/lib/navbar/index.ts} +3 -0
- package/src/lib/navbar/s-navbar.component.html +34 -0
- package/src/lib/navbar/s-navbar.component.scss +92 -0
- package/src/lib/navbar/s-navbar.component.ts +72 -0
- package/src/lib/navbar/s-navbar.module.ts +35 -0
- package/{lib/pagination/index.d.ts → src/lib/pagination/index.ts} +1 -1
- package/src/lib/pagination/new/s-pag-model.ts +4 -0
- package/src/lib/pagination/new/s-pag.component.html +27 -0
- package/src/lib/pagination/new/s-pag.component.scss +63 -0
- package/src/lib/pagination/new/s-pag.component.ts +99 -0
- package/src/lib/pagination/s-pagination.component.html +6 -0
- package/src/lib/pagination/s-pagination.component.scss +15 -0
- package/src/lib/pagination/s-pagination.component.ts +79 -0
- package/src/lib/pagination/s-pagination.module.ts +25 -0
- package/src/lib/popup/index.ts +2 -0
- package/src/lib/popup/s-popup.component.html +24 -0
- package/src/lib/popup/s-popup.component.scss +127 -0
- package/src/lib/popup/s-popup.component.spec.ts +25 -0
- package/src/lib/popup/s-popup.component.ts +125 -0
- package/src/lib/popup/s-popup.module.ts +23 -0
- package/src/lib/precode/index.ts +2 -0
- package/src/lib/precode/s-precode.component.html +7 -0
- package/src/lib/precode/s-precode.component.scss +53 -0
- package/src/lib/precode/s-precode.component.spec.ts +25 -0
- package/src/lib/precode/s-precode.component.ts +29 -0
- package/src/lib/precode/s-precode.module.ts +20 -0
- package/src/lib/progressbar/index.ts +2 -0
- package/src/lib/progressbar/s-progressbar.component.html +15 -0
- package/src/lib/progressbar/s-progressbar.component.scss +51 -0
- package/src/lib/progressbar/s-progressbar.component.spec.ts +25 -0
- package/src/lib/progressbar/s-progressbar.component.ts +20 -0
- package/src/lib/progressbar/s-progressbar.module.ts +16 -0
- package/src/lib/progressbar/temperature/temperature.component.ts +25 -0
- package/src/lib/radio/index.ts +2 -0
- package/src/lib/radio/s-radio.component.html +4 -0
- package/src/lib/radio/s-radio.component.scss +57 -0
- package/src/lib/radio/s-radio.component.spec.ts +25 -0
- package/src/lib/radio/s-radio.component.ts +55 -0
- package/src/lib/radio/s-radio.module.ts +17 -0
- package/src/lib/reset.scss +43 -0
- package/{lib/select/index.d.ts → src/lib/select/index.ts} +1 -1
- package/src/lib/select/s-select-model.ts +27 -0
- package/src/lib/select/s-select.module.ts +33 -0
- package/src/lib/select/select-multiple/s-select-multiple.component.html +44 -0
- package/src/lib/select/select-multiple/s-select-multiple.component.scss +200 -0
- package/src/lib/select/select-multiple/s-select-multiple.component.ts +106 -0
- package/src/lib/select/select-normal/s-select.component.html +3 -0
- package/src/lib/select/select-normal/s-select.component.scss +15 -0
- package/src/lib/select/select-normal/s-select.component.spec.ts +25 -0
- package/src/lib/select/select-normal/s-select.component.ts +21 -0
- package/src/lib/select/select-simple/s-select-simple.component.html +57 -0
- package/src/lib/select/select-simple/s-select-simple.component.scss +189 -0
- package/src/lib/select/select-simple/s-select-simple.component.ts +118 -0
- package/src/lib/shared/image-loader.directive.ts +28 -0
- package/src/lib/shared/localstorage.service.ts +64 -0
- package/src/lib/shared/shared.module.ts +17 -0
- package/{lib/sidebar/index.d.ts → src/lib/sidebar/index.ts} +1 -1
- package/src/lib/sidebar/s-sidebar-model.ts +19 -0
- package/src/lib/sidebar/s-sidebar.component.html +63 -0
- package/src/lib/sidebar/s-sidebar.component.scss +300 -0
- package/src/lib/sidebar/s-sidebar.component.spec.ts +25 -0
- package/src/lib/sidebar/s-sidebar.component.ts +81 -0
- package/src/lib/sidebar/s-sidebar.module.ts +24 -0
- package/src/lib/spinner/index.ts +2 -0
- package/src/lib/spinner/s-spinner.component.html +1 -0
- package/src/lib/spinner/s-spinner.component.scss +265 -0
- package/src/lib/spinner/s-spinner.component.spec.ts +25 -0
- package/src/lib/spinner/s-spinner.component.ts +21 -0
- package/src/lib/spinner/s-spinner.module.ts +16 -0
- package/src/lib/stepper/index.ts +2 -0
- package/src/lib/stepper/s-stepper.component.css +0 -0
- package/src/lib/stepper/s-stepper.component.html +3 -0
- package/src/lib/stepper/s-stepper.component.spec.ts +25 -0
- package/src/lib/stepper/s-stepper.component.ts +19 -0
- package/src/lib/stepper/s-stepper.module.ts +15 -0
- package/{lib/sub-menu/index.d.ts → src/lib/sub-menu/index.ts} +1 -1
- package/src/lib/sub-menu/s-sub-menu-model.ts +33 -0
- package/src/lib/sub-menu/s-sub-menu.component.html +77 -0
- package/src/lib/sub-menu/s-sub-menu.component.scss +99 -0
- package/src/lib/sub-menu/s-sub-menu.component.spec.ts +25 -0
- package/src/lib/sub-menu/s-sub-menu.component.ts +56 -0
- package/src/lib/sub-menu/s-sub-menu.module.ts +25 -0
- package/{lib/table/index.d.ts → src/lib/table/index.ts} +1 -1
- package/src/lib/table/s-table-content.ts +30 -0
- package/src/lib/table/s-table.component.html +24 -0
- package/src/lib/table/s-table.component.scss +49 -0
- package/src/lib/table/s-table.component.spec.ts +25 -0
- package/src/lib/table/s-table.component.ts +87 -0
- package/src/lib/table/s-table.module.ts +12 -0
- package/src/lib/table-t/s-tablet.component.html +18 -0
- package/src/lib/table-t/s-tablet.component.scss +41 -0
- package/src/lib/table-t/s-tablet.component.spec.ts +25 -0
- package/src/lib/table-t/s-tablet.component.ts +223 -0
- package/src/lib/table-t/s-tablet.module.ts +10 -0
- package/{lib/tabs/index.d.ts → src/lib/tabs/index.ts} +1 -1
- package/{lib/tabs/models/configTabs.interface.d.ts → src/lib/tabs/models/configTabs.interface.ts} +1 -1
- package/{lib/tabs/models/tab.interface.d.ts → src/lib/tabs/models/tab.interface.ts} +1 -1
- package/src/lib/tabs/s-tabs.component.html +8 -0
- package/src/lib/tabs/s-tabs.component.scss +49 -0
- package/src/lib/tabs/s-tabs.component.spec.ts +25 -0
- package/src/lib/tabs/s-tabs.component.ts +38 -0
- package/src/lib/tabs/s-tabs.module.ts +17 -0
- package/src/lib/tag/index.ts +2 -0
- package/src/lib/tag/s-tag.component.html +3 -0
- package/src/lib/tag/s-tag.component.scss +117 -0
- package/src/lib/tag/s-tag.component.spec.ts +25 -0
- package/src/lib/tag/s-tag.component.ts +17 -0
- package/src/lib/tag/s-tag.module.ts +17 -0
- package/{lib/text-search/index.d.ts → src/lib/text-search/index.ts} +1 -1
- package/src/lib/text-search/s-text-search.component.html +4 -0
- package/src/lib/text-search/s-text-search.component.scss +23 -0
- package/src/lib/text-search/s-text-search.component.spec.ts +25 -0
- package/src/lib/text-search/s-text-search.component.ts +30 -0
- package/src/lib/text-search/s-text-search.module.ts +16 -0
- package/src/lib/theme/index.ts +2 -0
- package/src/lib/theme/s-theme.component.scss +1 -0
- package/src/lib/theme/s-theme.component.spec.ts +25 -0
- package/src/lib/theme/s-theme.component.ts +12 -0
- package/src/lib/theme/s-theme.module.ts +15 -0
- package/src/lib/theme.scss +662 -0
- package/src/lib/thumbnail/index.ts +2 -0
- package/src/lib/thumbnail/s-thumbnail-model.ts +5 -0
- package/src/lib/thumbnail/s-thumbnail.component.html +3 -0
- package/src/lib/thumbnail/s-thumbnail.component.scss +6 -0
- package/src/lib/thumbnail/s-thumbnail.component.spec.ts +25 -0
- package/src/lib/thumbnail/s-thumbnail.component.ts +22 -0
- package/src/lib/thumbnail/s-thumbnail.module.ts +17 -0
- package/{lib/toast/index.d.ts → src/lib/toast/index.ts} +1 -1
- package/src/lib/toast/s-toast-service.ts +31 -0
- package/src/lib/toast/s-toast.component.html +16 -0
- package/src/lib/toast/s-toast.component.scss +200 -0
- package/src/lib/toast/s-toast.component.spec.ts +25 -0
- package/src/lib/toast/s-toast.component.ts +86 -0
- package/src/lib/toast/s-toast.module.ts +19 -0
- package/src/lib/toggle-switch/index.ts +2 -0
- package/src/lib/toggle-switch/s-toggle-switch.component.html +10 -0
- package/src/lib/toggle-switch/s-toggle-switch.component.scss +199 -0
- package/src/lib/toggle-switch/s-toggle-switch.component.spec.ts +25 -0
- package/src/lib/toggle-switch/s-toggle-switch.component.ts +72 -0
- package/src/lib/toggle-switch/s-toggle-switch.module.ts +20 -0
- package/src/lib/tooltip/directive/s-tooltip-directive.ts +26 -0
- package/{lib/tooltip/index.d.ts → src/lib/tooltip/index.ts} +1 -1
- package/src/lib/tooltip/s-tooltip-model.ts +6 -0
- package/src/lib/tooltip/s-tooltip.component.html +4 -0
- package/src/lib/tooltip/s-tooltip.component.scss +112 -0
- package/src/lib/tooltip/s-tooltip.component.spec.ts +25 -0
- package/src/lib/tooltip/s-tooltip.component.ts +79 -0
- package/src/lib/tooltip/s-tooltip.module.ts +16 -0
- package/{lib/tree-list/index.d.ts → src/lib/tree-list/index.ts} +1 -1
- package/{lib/tree-list/models/tree-node.interface.d.ts → src/lib/tree-list/models/tree-node.interface.ts} +3 -1
- package/src/lib/tree-list/s-tree-list.component.html +29 -0
- package/src/lib/tree-list/s-tree-list.component.scss +46 -0
- package/src/lib/tree-list/s-tree-list.component.ts +127 -0
- package/src/lib/tree-list/s-tree-list.module.ts +22 -0
- package/src/lib/variables.scss +107 -0
- package/src/test.ts +16 -0
- package/tsconfig.lib.json +21 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/alert/index.mjs +0 -3
- package/esm2020/lib/alert/s-alert.component.mjs +0 -15
- package/esm2020/lib/alert/s-alert.module.mjs +0 -22
- package/esm2020/lib/avatar/components/profile-group/index.mjs +0 -3
- package/esm2020/lib/avatar/components/profile-group/s-profile-group.component.mjs +0 -55
- package/esm2020/lib/avatar/components/profile-group/s-profile-group.module.mjs +0 -26
- package/esm2020/lib/avatar/index.mjs +0 -3
- package/esm2020/lib/avatar/s-avatar.component.mjs +0 -49
- package/esm2020/lib/avatar/s-avatar.module.mjs +0 -30
- package/esm2020/lib/badge/index.mjs +0 -3
- package/esm2020/lib/badge/s-badge.component.mjs +0 -26
- package/esm2020/lib/badge/s-badge.module.mjs +0 -26
- package/esm2020/lib/blockquote/index.mjs +0 -3
- package/esm2020/lib/blockquote/s-blockquote.component.mjs +0 -14
- package/esm2020/lib/blockquote/s-blockquote.module.mjs +0 -22
- package/esm2020/lib/breadcrum/index.mjs +0 -3
- package/esm2020/lib/breadcrum/s-breadcrum.component.mjs +0 -38
- package/esm2020/lib/breadcrum/s-breadcrum.module.mjs +0 -30
- package/esm2020/lib/button/button.module.mjs +0 -24
- package/esm2020/lib/button/components/button/s-button.component.mjs +0 -62
- package/esm2020/lib/button/index.mjs +0 -3
- package/esm2020/lib/card/index.mjs +0 -4
- package/esm2020/lib/card/s-card-models.mjs +0 -11
- package/esm2020/lib/card/s-card.component.mjs +0 -76
- package/esm2020/lib/card/s-card.module.mjs +0 -44
- package/esm2020/lib/checkbox/index.mjs +0 -3
- package/esm2020/lib/checkbox/s-checkbox.component.mjs +0 -66
- package/esm2020/lib/checkbox/s-checkbox.module.mjs +0 -26
- package/esm2020/lib/company-logo/index.mjs +0 -3
- package/esm2020/lib/company-logo/s-company-logo.component.mjs +0 -35
- package/esm2020/lib/company-logo/s-company-logo.module.mjs +0 -22
- package/esm2020/lib/content/index.mjs +0 -3
- package/esm2020/lib/content/s-content.component.mjs +0 -30
- package/esm2020/lib/content/s-content.module.mjs +0 -26
- package/esm2020/lib/drop-down/index.mjs +0 -4
- package/esm2020/lib/drop-down/s-drop-down-button.mjs +0 -7
- package/esm2020/lib/drop-down/s-drop-down.component.mjs +0 -37
- package/esm2020/lib/drop-down/s-drop-down.module.mjs +0 -18
- package/esm2020/lib/footer/index.mjs +0 -3
- package/esm2020/lib/footer/s-footer.component.mjs +0 -15
- package/esm2020/lib/footer/s-footer.module.mjs +0 -28
- package/esm2020/lib/form/index.mjs +0 -4
- package/esm2020/lib/form/s-form-control.mjs +0 -59
- package/esm2020/lib/form/s-form.component.mjs +0 -130
- package/esm2020/lib/form/s-form.module.mjs +0 -51
- package/esm2020/lib/icon/index.mjs +0 -3
- package/esm2020/lib/icon/s-icon.component.mjs +0 -41
- package/esm2020/lib/icon/s-icon.module.mjs +0 -22
- package/esm2020/lib/icon/s-icons.mjs +0 -55
- package/esm2020/lib/icon-material/index.mjs +0 -3
- package/esm2020/lib/icon-material/s-icon-material.component.mjs +0 -57
- package/esm2020/lib/icon-material/s-icon-material.module.mjs +0 -22
- package/esm2020/lib/input/components/error-control/s-error-control.component.mjs +0 -52
- package/esm2020/lib/input/components/input-text/s-input-text.component.mjs +0 -317
- package/esm2020/lib/input/components/input-textarea/s-input-textarea.component.mjs +0 -99
- package/esm2020/lib/input/index.mjs +0 -5
- package/esm2020/lib/input/input.module.mjs +0 -49
- package/esm2020/lib/link/index.mjs +0 -3
- package/esm2020/lib/link/s-link.component.mjs +0 -33
- package/esm2020/lib/link/s-link.module.mjs +0 -22
- package/esm2020/lib/list/index.mjs +0 -3
- package/esm2020/lib/list/s-list.component.mjs +0 -24
- package/esm2020/lib/list/s-list.module.mjs +0 -26
- package/esm2020/lib/list-simple/index.mjs +0 -3
- package/esm2020/lib/list-simple/s-list-simple.component.mjs +0 -17
- package/esm2020/lib/list-simple/s-list-simple.module.mjs +0 -26
- package/esm2020/lib/login/index.mjs +0 -5
- package/esm2020/lib/login/s-login-event.mjs +0 -3
- package/esm2020/lib/login/s-login-images.mjs +0 -4
- package/esm2020/lib/login/s-login-model.mjs +0 -3
- package/esm2020/lib/login/s-login.component.mjs +0 -97
- package/esm2020/lib/login/s-login.module.mjs +0 -32
- package/esm2020/lib/navbar/components/icon-menu/components/s-notificaction.component.mjs +0 -41
- package/esm2020/lib/navbar/components/icon-menu/index.mjs +0 -5
- package/esm2020/lib/navbar/components/icon-menu/s-icon-menu-model.mjs +0 -3
- package/esm2020/lib/navbar/components/icon-menu/s-icon-menu.component.mjs +0 -70
- package/esm2020/lib/navbar/components/icon-menu/s-icon-menu.module.mjs +0 -53
- package/esm2020/lib/navbar/components/menu-config/index.mjs +0 -4
- package/esm2020/lib/navbar/components/menu-config/s-menu-config-model.mjs +0 -8
- package/esm2020/lib/navbar/components/menu-config/s-menu-config.component.mjs +0 -39
- package/esm2020/lib/navbar/components/menu-config/s-menu-config.module.mjs +0 -35
- package/esm2020/lib/navbar/components/menu-main/index.mjs +0 -4
- package/esm2020/lib/navbar/components/menu-main/s-menu-main-model.mjs +0 -3
- package/esm2020/lib/navbar/components/menu-main/s-menu-main.component.mjs +0 -28
- package/esm2020/lib/navbar/components/menu-main/s-menu-main.module.mjs +0 -39
- package/esm2020/lib/navbar/components/search-menu/index.mjs +0 -3
- package/esm2020/lib/navbar/components/search-menu/s-search-menu.component.mjs +0 -38
- package/esm2020/lib/navbar/components/search-menu/s-search-menu.module.mjs +0 -31
- package/esm2020/lib/navbar/index.mjs +0 -9
- package/esm2020/lib/navbar/s-navbar.component.mjs +0 -95
- package/esm2020/lib/navbar/s-navbar.module.mjs +0 -63
- package/esm2020/lib/pagination/index.mjs +0 -4
- package/esm2020/lib/pagination/new/s-pag-model.mjs +0 -7
- package/esm2020/lib/pagination/new/s-pag.component.mjs +0 -98
- package/esm2020/lib/pagination/s-pagination.component.mjs +0 -84
- package/esm2020/lib/pagination/s-pagination.module.mjs +0 -41
- package/esm2020/lib/popup/index.mjs +0 -3
- package/esm2020/lib/popup/s-popup.component.mjs +0 -139
- package/esm2020/lib/popup/s-popup.module.mjs +0 -36
- package/esm2020/lib/precode/index.mjs +0 -3
- package/esm2020/lib/precode/s-precode.component.mjs +0 -32
- package/esm2020/lib/precode/s-precode.module.mjs +0 -32
- package/esm2020/lib/progressbar/index.mjs +0 -3
- package/esm2020/lib/progressbar/s-progressbar.component.mjs +0 -27
- package/esm2020/lib/progressbar/s-progressbar.module.mjs +0 -26
- package/esm2020/lib/progressbar/temperature/temperature.component.mjs +0 -25
- package/esm2020/lib/radio/index.mjs +0 -3
- package/esm2020/lib/radio/s-radio.component.mjs +0 -67
- package/esm2020/lib/radio/s-radio.module.mjs +0 -26
- package/esm2020/lib/select/index.mjs +0 -6
- package/esm2020/lib/select/s-select-model.mjs +0 -9
- package/esm2020/lib/select/s-select.module.mjs +0 -54
- package/esm2020/lib/select/select-multiple/s-select-multiple.component.mjs +0 -127
- package/esm2020/lib/select/select-normal/s-select.component.mjs +0 -28
- package/esm2020/lib/select/select-simple/s-select-simple.component.mjs +0 -132
- package/esm2020/lib/shared/image-loader.directive.mjs +0 -31
- package/esm2020/lib/shared/localstorage.service.mjs +0 -64
- package/esm2020/lib/shared/shared.module.mjs +0 -24
- package/esm2020/lib/sidebar/index.mjs +0 -4
- package/esm2020/lib/sidebar/s-sidebar-model.mjs +0 -2
- package/esm2020/lib/sidebar/s-sidebar.component.mjs +0 -82
- package/esm2020/lib/sidebar/s-sidebar.module.mjs +0 -40
- package/esm2020/lib/spinner/index.mjs +0 -3
- package/esm2020/lib/spinner/s-spinner.component.mjs +0 -27
- package/esm2020/lib/spinner/s-spinner.module.mjs +0 -24
- package/esm2020/lib/stepper/index.mjs +0 -3
- package/esm2020/lib/stepper/s-stepper.component.mjs +0 -15
- package/esm2020/lib/stepper/s-stepper.module.mjs +0 -22
- package/esm2020/lib/sub-menu/index.mjs +0 -4
- package/esm2020/lib/sub-menu/s-sub-menu-model.mjs +0 -15
- package/esm2020/lib/sub-menu/s-sub-menu.component.mjs +0 -64
- package/esm2020/lib/sub-menu/s-sub-menu.module.mjs +0 -42
- package/esm2020/lib/table/index.mjs +0 -4
- package/esm2020/lib/table/s-table-content.mjs +0 -37
- package/esm2020/lib/table/s-table.component.mjs +0 -96
- package/esm2020/lib/table/s-table.module.mjs +0 -20
- package/esm2020/lib/table-t/index.mjs +0 -3
- package/esm2020/lib/table-t/s-tablet.component.mjs +0 -203
- package/esm2020/lib/table-t/s-tablet.module.mjs +0 -18
- package/esm2020/lib/tabs/index.mjs +0 -4
- package/esm2020/lib/tabs/models/configTabs.interface.mjs +0 -2
- package/esm2020/lib/tabs/models/index.mjs +0 -3
- package/esm2020/lib/tabs/models/tab.interface.mjs +0 -2
- package/esm2020/lib/tabs/s-tabs.component.mjs +0 -36
- package/esm2020/lib/tabs/s-tabs.module.mjs +0 -26
- package/esm2020/lib/tag/index.mjs +0 -3
- package/esm2020/lib/tag/s-tag.component.mjs +0 -22
- package/esm2020/lib/tag/s-tag.module.mjs +0 -26
- package/esm2020/lib/text-search/index.mjs +0 -3
- package/esm2020/lib/text-search/s-text-search.component.mjs +0 -29
- package/esm2020/lib/text-search/s-text-search.module.mjs +0 -26
- package/esm2020/lib/theme/index.mjs +0 -3
- package/esm2020/lib/theme/s-theme.component.mjs +0 -11
- package/esm2020/lib/theme/s-theme.module.mjs +0 -22
- package/esm2020/lib/thumbnail/index.mjs +0 -3
- package/esm2020/lib/thumbnail/s-thumbnail.component.mjs +0 -23
- package/esm2020/lib/thumbnail/s-thumbnail.module.mjs +0 -26
- package/esm2020/lib/toast/index.mjs +0 -4
- package/esm2020/lib/toast/s-toast-service.mjs +0 -30
- package/esm2020/lib/toast/s-toast.component.mjs +0 -86
- package/esm2020/lib/toast/s-toast.module.mjs +0 -28
- package/esm2020/lib/toggle-switch/index.mjs +0 -3
- package/esm2020/lib/toggle-switch/s-toggle-switch.component.mjs +0 -85
- package/esm2020/lib/toggle-switch/s-toggle-switch.module.mjs +0 -32
- package/esm2020/lib/tooltip/directive/s-tooltip-directive.mjs +0 -31
- package/esm2020/lib/tooltip/index.mjs +0 -4
- package/esm2020/lib/tooltip/s-tooltip.component.mjs +0 -80
- package/esm2020/lib/tooltip/s-tooltip.module.mjs +0 -25
- package/esm2020/lib/tree-list/index.mjs +0 -4
- package/esm2020/lib/tree-list/models/index.mjs +0 -2
- package/esm2020/lib/tree-list/models/tree-node.interface.mjs +0 -2
- package/esm2020/lib/tree-list/s-tree-list.component.mjs +0 -114
- package/esm2020/lib/tree-list/s-tree-list.module.mjs +0 -36
- package/esm2020/public-api.mjs +0 -44
- package/esm2020/sidesys-generic-ui.mjs +0 -5
- package/fesm2015/sidesys-generic-ui.mjs +0 -4770
- package/fesm2015/sidesys-generic-ui.mjs.map +0 -1
- package/fesm2020/sidesys-generic-ui.mjs +0 -4752
- package/fesm2020/sidesys-generic-ui.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/alert/index.d.ts +0 -2
- package/lib/alert/s-alert.component.d.ts +0 -8
- package/lib/alert/s-alert.module.d.ts +0 -8
- package/lib/avatar/components/profile-group/index.d.ts +0 -2
- package/lib/avatar/components/profile-group/s-profile-group.component.d.ts +0 -12
- package/lib/avatar/components/profile-group/s-profile-group.module.d.ts +0 -9
- package/lib/avatar/index.d.ts +0 -2
- package/lib/avatar/s-avatar.component.d.ts +0 -19
- package/lib/avatar/s-avatar.module.d.ts +0 -10
- package/lib/badge/index.d.ts +0 -2
- package/lib/badge/s-badge.component.d.ts +0 -11
- package/lib/badge/s-badge.module.d.ts +0 -9
- package/lib/blockquote/index.d.ts +0 -2
- package/lib/blockquote/s-blockquote.component.d.ts +0 -8
- package/lib/blockquote/s-blockquote.module.d.ts +0 -8
- package/lib/breadcrum/s-breadcrum.component.d.ts +0 -17
- package/lib/breadcrum/s-breadcrum.module.d.ts +0 -10
- package/lib/button/button.module.d.ts +0 -8
- package/lib/button/components/button/s-button.component.d.ts +0 -21
- package/lib/button/index.d.ts +0 -2
- package/lib/card/s-card-models.d.ts +0 -6
- package/lib/card/s-card.component.d.ts +0 -32
- package/lib/card/s-card.module.d.ts +0 -13
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/checkbox/s-checkbox.component.d.ts +0 -21
- package/lib/checkbox/s-checkbox.module.d.ts +0 -9
- package/lib/company-logo/s-company-logo.component.d.ts +0 -13
- package/lib/company-logo/s-company-logo.module.d.ts +0 -8
- package/lib/content/index.d.ts +0 -2
- package/lib/content/s-content.component.d.ts +0 -14
- package/lib/content/s-content.module.d.ts +0 -8
- package/lib/drop-down/s-drop-down-button.d.ts +0 -4
- package/lib/drop-down/s-drop-down.component.d.ts +0 -20
- package/lib/drop-down/s-drop-down.module.d.ts +0 -8
- package/lib/footer/s-footer.component.d.ts +0 -6
- package/lib/footer/s-footer.module.d.ts +0 -9
- package/lib/form/s-form-control.d.ts +0 -26
- package/lib/form/s-form.component.d.ts +0 -33
- package/lib/form/s-form.module.d.ts +0 -14
- package/lib/icon/index.d.ts +0 -2
- package/lib/icon/s-icon.component.d.ts +0 -18
- package/lib/icon/s-icon.module.d.ts +0 -8
- package/lib/icon/s-icons.d.ts +0 -8
- package/lib/icon-material/index.d.ts +0 -2
- package/lib/icon-material/s-icon-material.component.d.ts +0 -19
- package/lib/icon-material/s-icon-material.module.d.ts +0 -8
- package/lib/input/components/error-control/s-error-control.component.d.ts +0 -13
- package/lib/input/components/input-text/s-input-text.component.d.ts +0 -59
- package/lib/input/components/input-textarea/s-input-textarea.component.d.ts +0 -33
- package/lib/input/input.module.d.ts +0 -13
- package/lib/link/index.d.ts +0 -2
- package/lib/link/s-link.component.d.ts +0 -14
- package/lib/link/s-link.module.d.ts +0 -8
- package/lib/list/index.d.ts +0 -2
- package/lib/list/s-list.component.d.ts +0 -11
- package/lib/list/s-list.module.d.ts +0 -9
- package/lib/list-simple/index.d.ts +0 -2
- package/lib/list-simple/s-list-simple.component.d.ts +0 -9
- package/lib/list-simple/s-list-simple.module.d.ts +0 -9
- package/lib/login/s-login-event.d.ts +0 -4
- package/lib/login/s-login-images.d.ts +0 -3
- package/lib/login/s-login.component.d.ts +0 -35
- package/lib/login/s-login.module.d.ts +0 -10
- package/lib/navbar/components/icon-menu/components/s-notificaction.component.d.ts +0 -16
- package/lib/navbar/components/icon-menu/index.d.ts +0 -4
- package/lib/navbar/components/icon-menu/s-icon-menu-model.d.ts +0 -20
- package/lib/navbar/components/icon-menu/s-icon-menu.component.d.ts +0 -23
- package/lib/navbar/components/icon-menu/s-icon-menu.module.d.ts +0 -15
- package/lib/navbar/components/menu-config/s-menu-config-model.d.ts +0 -5
- package/lib/navbar/components/menu-config/s-menu-config.component.d.ts +0 -19
- package/lib/navbar/components/menu-config/s-menu-config.module.d.ts +0 -11
- package/lib/navbar/components/menu-main/s-menu-main-model.d.ts +0 -7
- package/lib/navbar/components/menu-main/s-menu-main.component.d.ts +0 -13
- package/lib/navbar/components/menu-main/s-menu-main.module.d.ts +0 -12
- package/lib/navbar/components/search-menu/s-search-menu.component.d.ts +0 -17
- package/lib/navbar/components/search-menu/s-search-menu.module.d.ts +0 -10
- package/lib/navbar/s-navbar.component.d.ts +0 -36
- package/lib/navbar/s-navbar.module.d.ts +0 -18
- package/lib/pagination/new/s-pag-model.d.ts +0 -4
- package/lib/pagination/new/s-pag.component.d.ts +0 -32
- package/lib/pagination/s-pagination.component.d.ts +0 -27
- package/lib/pagination/s-pagination.module.d.ts +0 -12
- package/lib/popup/index.d.ts +0 -2
- package/lib/popup/s-popup.component.d.ts +0 -39
- package/lib/popup/s-popup.module.d.ts +0 -10
- package/lib/precode/index.d.ts +0 -2
- package/lib/precode/s-precode.component.d.ts +0 -11
- package/lib/precode/s-precode.module.d.ts +0 -10
- package/lib/progressbar/index.d.ts +0 -2
- package/lib/progressbar/s-progressbar.component.d.ts +0 -11
- package/lib/progressbar/s-progressbar.module.d.ts +0 -9
- package/lib/progressbar/temperature/temperature.component.d.ts +0 -11
- package/lib/radio/index.d.ts +0 -2
- package/lib/radio/s-radio.component.d.ts +0 -21
- package/lib/radio/s-radio.module.d.ts +0 -9
- package/lib/select/s-select-model.d.ts +0 -25
- package/lib/select/s-select.module.d.ts +0 -15
- package/lib/select/select-multiple/s-select-multiple.component.d.ts +0 -32
- package/lib/select/select-normal/s-select.component.d.ts +0 -12
- package/lib/select/select-simple/s-select-simple.component.d.ts +0 -36
- package/lib/shared/image-loader.directive.d.ts +0 -13
- package/lib/shared/localstorage.service.d.ts +0 -14
- package/lib/shared/shared.module.d.ts +0 -8
- package/lib/sidebar/s-sidebar-model.d.ts +0 -13
- package/lib/sidebar/s-sidebar.component.d.ts +0 -28
- package/lib/sidebar/s-sidebar.module.d.ts +0 -12
- package/lib/spinner/index.d.ts +0 -2
- package/lib/spinner/s-spinner.component.d.ts +0 -12
- package/lib/spinner/s-spinner.module.d.ts +0 -8
- package/lib/stepper/index.d.ts +0 -2
- package/lib/stepper/s-stepper.component.d.ts +0 -8
- package/lib/stepper/s-stepper.module.d.ts +0 -8
- package/lib/sub-menu/s-sub-menu-model.d.ts +0 -30
- package/lib/sub-menu/s-sub-menu.component.d.ts +0 -19
- package/lib/sub-menu/s-sub-menu.module.d.ts +0 -13
- package/lib/table/s-table-content.d.ts +0 -26
- package/lib/table/s-table.component.d.ts +0 -28
- package/lib/table/s-table.module.d.ts +0 -10
- package/lib/table-t/s-tablet.component.d.ts +0 -65
- package/lib/table-t/s-tablet.module.d.ts +0 -8
- package/lib/tabs/s-tabs.component.d.ts +0 -15
- package/lib/tabs/s-tabs.module.d.ts +0 -9
- package/lib/tag/index.d.ts +0 -2
- package/lib/tag/s-tag.component.d.ts +0 -8
- package/lib/tag/s-tag.module.d.ts +0 -9
- package/lib/text-search/s-text-search.component.d.ts +0 -13
- package/lib/text-search/s-text-search.module.d.ts +0 -9
- package/lib/theme/index.d.ts +0 -2
- package/lib/theme/s-theme.component.d.ts +0 -5
- package/lib/theme/s-theme.module.d.ts +0 -8
- package/lib/thumbnail/index.d.ts +0 -2
- package/lib/thumbnail/s-thumbnail.component.d.ts +0 -11
- package/lib/thumbnail/s-thumbnail.module.d.ts +0 -9
- package/lib/toast/s-toast-service.d.ts +0 -11
- package/lib/toast/s-toast.component.d.ts +0 -25
- package/lib/toast/s-toast.module.d.ts +0 -9
- package/lib/toggle-switch/index.d.ts +0 -2
- package/lib/toggle-switch/s-toggle-switch.component.d.ts +0 -25
- package/lib/toggle-switch/s-toggle-switch.module.d.ts +0 -10
- package/lib/tooltip/directive/s-tooltip-directive.d.ts +0 -12
- package/lib/tooltip/s-tooltip.component.d.ts +0 -19
- package/lib/tooltip/s-tooltip.module.d.ts +0 -9
- package/lib/tree-list/s-tree-list.component.d.ts +0 -24
- package/lib/tree-list/s-tree-list.module.d.ts +0 -11
- /package/{lib/input/index.d.ts → src/lib/input/index.ts} +0 -0
- /package/{lib/table-t/index.d.ts → src/lib/table-t/index.ts} +0 -0
- /package/{lib/tabs/models/index.d.ts → src/lib/tabs/models/index.ts} +0 -0
- /package/{lib/tree-list/models/index.d.ts → src/lib/tree-list/models/index.ts} +0 -0
- /package/{public-api.d.ts → src/public-api.ts} +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { STableActionColumn } from '../../public-api';
|
|
3
|
+
import { STableColumn, STableContent, STableHeader, STableRow } from './s-table-content';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 's-table',
|
|
7
|
+
templateUrl: './s-table.component.html',
|
|
8
|
+
styleUrls: ['./s-table.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class STableComponent implements OnInit {
|
|
11
|
+
|
|
12
|
+
@Input() content?: STableContent;
|
|
13
|
+
@Input() actions: STableActionColumn = {} as STableActionColumn;
|
|
14
|
+
@Input() showSearch: boolean = false;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@Input() editIcon: string = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAABAklEQVRYw+3XO0rEUBQG4E+tXIFgq/YOxsbKQt2AYGPnJmxnO+7CzkawmwVYykycXiEWSWCMiY9xTpKB/HCq5HK/+yRhyJD/Zaulfg5wgxekXQ96hCkyvOK4L5iyOkPtypcnq6lZgW094wZQidqvNojY1AlOMME9NnBa8942nvEQOSOJfI+84eqHmZphLxIzKjopO3zH9cLzW583dtIm5jtUGo050nyaMl+Xb6dLzCLqMhJC8zLVVVrgQzHVG3htMOGnqTeYwwGzAkz4DTxg1gbz2xt4qoUvv3GXM7O5ZLs5zvHYB1AYZhlQKOavoDkuIjHkfwTVnBVVzR2eIjFDhqwiH1eL2HgXf5SDAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA1LTE2VDE2OjQzOjM1KzAwOjAwcsJeAQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0xNlQxNjo0MzozNSswMDowMAOf5r0AAAAASUVORK5CYII=';
|
|
18
|
+
@Input() deleteIcon: string = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABgAAAAYADwa0LPAAAArUlEQVRYw+2XsQ3CMBBFHxQRbECfGRgjgzABbdpMkEGomCGsQJ8qNUqTFEHpHNvhZFz8J7myfP/5ZBcHQvzGYee5E3ADCsf+CLTAJ8UlCuABTJ71BM7W4XVAcOyqtwKPKVoaQ3ZC2RH6y+5GeY2V0JSqAdm9IQlJSEIS+jcSkpCEJORgNMgKqhEq9DIQ6gxqrFyBgf2z2PCt4SVmlL4AFVBGXubNMun2lh0SwsUMSS46T+UUDI0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMTZUMTY6NDM6NDUrMDA6MDB4B1cYAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTE2VDE2OjQzOjQ1KzAwOjAwCVrvpAAAAABJRU5ErkJggg==';
|
|
19
|
+
@Input() blockIcon: string = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAA/QAAAP0B4nuDkwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIYSURBVFiFzZcxS2NBEMd/ayRJdbWBw8YiiORLXBcLxeLAD5TvkJSHjcjBcV5xjRCwUxEbi+NsPUghXhGxuBw4FjvCy77ZTV5uc7owzbyZ/3/ezuzOrBMR5lnOuQbwAdgFNoGWCsBI5QdwDAxF5M9cwCKSFCXpA2NA5pSx+rRm4ieIm0APeKxAHMqjYjQrBQCsAWf/QBzKGbBmcbmwBpxzHeA78D6RuTHwUwWgrfIu4fML2BaR6ymt8ee3kb/4CxwAnUTaOsAnYBLBuA13Isx5bNu/AuuzCqqAtQHcJ9LRtALoRRyOgNUK5HX8UUzVRG8qAPxRs6r9EKhlJn85Ha1iAH3D6EtG8t+Grv9yABqUL5knoJ2J/BjYUszwsmoAdA2nk4zkdbUbGt+7AAPjw15OcrXdN2wGAKeBcjRP7quQF+zvArtTgJtAeZWbvOB3HtjeADwEystlkKvvRWD/sEJ5PRk6AJxzdeAzsGN8/gZ8FJFJzB8o8a3gc15csiRyK4ARlIvwDruAFtr2AkZNCUtFaB3D/ZzkirNn+A/AvoiGOckV68TA6EL8Kt7KSN4mdhUnmpHVQBYhr+EbW4jjm5EaxdpxDvJDA2e6HatxbCBZlHwVP8xYWNMDiTqkRrJ7YKMC+Tp+jLOw7JFMHVND6QQ/cM4aSg/wA6yFURpK39ZYHuzEf3mYpPL4ek+zIJClPk5LNRBby3qePwPIfowgITOwcQAAAABJRU5ErkJggg==';
|
|
20
|
+
|
|
21
|
+
@Output() searchEvent = new EventEmitter<string>();
|
|
22
|
+
@Output() editEvent = new EventEmitter<STableRow>();
|
|
23
|
+
@Output() deleteEvent = new EventEmitter<STableRow>();
|
|
24
|
+
@Output() blockEvent = new EventEmitter<STableRow>();
|
|
25
|
+
@Output() toggleSwitchEvent = new EventEmitter<STableRow>();
|
|
26
|
+
|
|
27
|
+
constructor() { }
|
|
28
|
+
|
|
29
|
+
ngOnInit(): void {
|
|
30
|
+
if ((this.actions.edit || this.actions.delete || this.actions.block) && this.content) {
|
|
31
|
+
this.content.headers.push({
|
|
32
|
+
text: this.actions.text,
|
|
33
|
+
key: 'STableActionColumn',
|
|
34
|
+
flex: this.actions.flex
|
|
35
|
+
} as STableHeader);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
getRowColumn(r: STableRow, c: STableHeader) {
|
|
40
|
+
var x = r.columns.filter(col => col.key == c.key)[0];
|
|
41
|
+
return x.value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
getRowColumnBool(r: STableRow, c: STableHeader): boolean {
|
|
45
|
+
var x = r.columns.filter(col => col.key == c.key)[0];
|
|
46
|
+
|
|
47
|
+
if (typeof x.value == 'boolean') {
|
|
48
|
+
return x.value
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
onSearch(event: string) {
|
|
55
|
+
this.searchEvent.next(event);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
editClick(row: STableRow) {
|
|
59
|
+
if (!row.readonly) {
|
|
60
|
+
this.editEvent.next(row);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
deleteClick(row: STableRow) {
|
|
65
|
+
if (!row.readonly) {
|
|
66
|
+
this.deleteEvent.next(row);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
blockClick(row: STableRow) {
|
|
71
|
+
if (!row.readonly) {
|
|
72
|
+
this.blockEvent.next(row);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
onToggleSwitch(switchEvent: boolean, key: string, row: STableRow) {
|
|
77
|
+
if (!row.readonly) {
|
|
78
|
+
row.columns.forEach(c => {
|
|
79
|
+
if (c.key == key) {
|
|
80
|
+
c.value = switchEvent;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
this.toggleSwitchEvent.emit(row);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { STableComponent } from './s-table.component';
|
|
4
|
+
import { STextSearchModule } from '../text-search';
|
|
5
|
+
import { SToggleSwitchModule } from '../toggle-switch';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [STableComponent],
|
|
9
|
+
imports: [CommonModule, STextSearchModule, SToggleSwitchModule],
|
|
10
|
+
exports: [STableComponent]
|
|
11
|
+
})
|
|
12
|
+
export class STableModule { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<ng-container *ngTemplateOutlet="caption"></ng-container>
|
|
2
|
+
<table class="tabla-sidesys p-datatable">
|
|
3
|
+
<thead>
|
|
4
|
+
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
5
|
+
</thead>
|
|
6
|
+
<tbody>
|
|
7
|
+
|
|
8
|
+
<ng-container *ngTemplateOutlet="loading ? bodyloading : null" >
|
|
9
|
+
</ng-container>
|
|
10
|
+
|
|
11
|
+
<ng-template *ngTemplateOutlet="!loading ? body : null">
|
|
12
|
+
<ng-content></ng-content>
|
|
13
|
+
</ng-template>
|
|
14
|
+
</tbody>
|
|
15
|
+
</table>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//TABLAS DE LISTADO CUSTOM PARA SIDESYS
|
|
2
|
+
.tabla-sidesys {
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
width: 100%;
|
|
5
|
+
thead {
|
|
6
|
+
background-color: var(--neutrals-1200);
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
}
|
|
9
|
+
thead th {
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
color: var(--secondary-600);
|
|
12
|
+
font-size: 0.875rem;
|
|
13
|
+
line-height: 1.375rem;
|
|
14
|
+
letter-spacing: 0.25px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
text-align: left;
|
|
17
|
+
}
|
|
18
|
+
thead th:last-of-type {
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
21
|
+
tbody tr td,
|
|
22
|
+
thead tr th {
|
|
23
|
+
padding: 14px;
|
|
24
|
+
height: 55px;
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
|
+
th,
|
|
28
|
+
td {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
border: none;
|
|
31
|
+
box-shadow: inset 0px -1px 0px var(--neutrals-900);
|
|
32
|
+
}
|
|
33
|
+
td,
|
|
34
|
+
thead tr {
|
|
35
|
+
height: 55px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-element.p-sortable-column {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { STabletComponent } from './s-tablet.component';
|
|
4
|
+
|
|
5
|
+
describe('STabletComponent', () => {
|
|
6
|
+
let component: STabletComponent;
|
|
7
|
+
let fixture: ComponentFixture<STabletComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ STabletComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(STabletComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterContentInit,
|
|
3
|
+
Component,
|
|
4
|
+
Directive,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
HostListener,
|
|
7
|
+
Input,
|
|
8
|
+
OnChanges,
|
|
9
|
+
OnInit,
|
|
10
|
+
Output,
|
|
11
|
+
SimpleChanges,
|
|
12
|
+
TemplateRef,
|
|
13
|
+
ViewEncapsulation
|
|
14
|
+
} from '@angular/core';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 's-tablet',
|
|
18
|
+
templateUrl: './s-tablet.component.html',
|
|
19
|
+
styleUrls: ['./s-tablet.component.scss'],
|
|
20
|
+
encapsulation: ViewEncapsulation.None,
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export class STabletComponent implements OnInit , OnChanges {
|
|
24
|
+
|
|
25
|
+
@Output() updateDataEvent = new EventEmitter<any>();
|
|
26
|
+
@Input() data: any;
|
|
27
|
+
@Input() loading: boolean = false;
|
|
28
|
+
@Input() caption!: TemplateRef<any>;
|
|
29
|
+
@Input() header!: TemplateRef<any>;
|
|
30
|
+
@Input() bodyloading!: TemplateRef<any>;
|
|
31
|
+
@Input() body!: TemplateRef<any>;
|
|
32
|
+
initData : any;
|
|
33
|
+
|
|
34
|
+
constructor() {}
|
|
35
|
+
|
|
36
|
+
ngOnInit(): void {
|
|
37
|
+
this.initData = this.data
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
41
|
+
// console.log("Se detecto un cambio " , changes)
|
|
42
|
+
// console.log("Se detecto un cambio " , this.data)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
updateData(_dataSort?:any): void {
|
|
46
|
+
this.updateDataEvent.next(_dataSort);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
restartData(): void {
|
|
50
|
+
this.updateDataEvent.next(this.initData);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@Directive({
|
|
57
|
+
selector: '[SSorteableColumn]',
|
|
58
|
+
host: {
|
|
59
|
+
'class': 'p-element',
|
|
60
|
+
'[class.p-sortable-column]': 'isEnabled()',
|
|
61
|
+
'[attr.aria-sort]': 'sortOrder'
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
export class SortableColumn implements OnInit {
|
|
65
|
+
|
|
66
|
+
@Input("SSorteableColumn") field!: string;
|
|
67
|
+
@Input() pSortableColumnDisabled: boolean = false;
|
|
68
|
+
|
|
69
|
+
_dataSort: any;
|
|
70
|
+
sorted: boolean = false;
|
|
71
|
+
sortOrder!: string;
|
|
72
|
+
|
|
73
|
+
constructor(
|
|
74
|
+
public data: STabletComponent,
|
|
75
|
+
) {
|
|
76
|
+
this._dataSort = this.data.data;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ngOnInit() {}
|
|
80
|
+
|
|
81
|
+
compareValues(key:any, order = 'asc') {
|
|
82
|
+
return function innerSort(a: { [x: string]: any; hasOwnProperty: (arg0: any) => any; }, b: { [x: string]: any; hasOwnProperty: (arg0: any) => any; }) {
|
|
83
|
+
if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
|
|
84
|
+
// property doesn't exist on either object
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const varA = (typeof a[key] === 'string')
|
|
89
|
+
? a[key].toUpperCase() : a[key];
|
|
90
|
+
const varB = (typeof b[key] === 'string')
|
|
91
|
+
? b[key].toUpperCase() : b[key];
|
|
92
|
+
|
|
93
|
+
let comparison = 0;
|
|
94
|
+
if (varA > varB) {
|
|
95
|
+
comparison = 1;
|
|
96
|
+
} else if (varA < varB) {
|
|
97
|
+
comparison = -1;
|
|
98
|
+
}
|
|
99
|
+
return (
|
|
100
|
+
(order === 'desc') ? (comparison * -1) : comparison
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
updateSortState() {
|
|
106
|
+
this.sorted = !this.sorted;
|
|
107
|
+
if(this.sorted){
|
|
108
|
+
this._dataSort.sort(this.compareValues(this.field, 'asc'))
|
|
109
|
+
}else{
|
|
110
|
+
this._dataSort.sort(this.compareValues(this.field, 'desc'))
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@HostListener('click', ['$event'])
|
|
115
|
+
onClick(event: MouseEvent) {
|
|
116
|
+
if (this.isEnabled()) {
|
|
117
|
+
this.updateSortState();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
isEnabled() {
|
|
122
|
+
return this.pSortableColumnDisabled !== true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@Directive({
|
|
129
|
+
selector: '[SInputSearch]',
|
|
130
|
+
host: {
|
|
131
|
+
'class': 's-element-search',
|
|
132
|
+
},
|
|
133
|
+
})
|
|
134
|
+
export class InputSearch implements OnInit {
|
|
135
|
+
|
|
136
|
+
@Input("SInputSearch") fields!: string;
|
|
137
|
+
|
|
138
|
+
_dataFilter: any;
|
|
139
|
+
inputTimeout?: any;
|
|
140
|
+
dataBeforeSearch: any;
|
|
141
|
+
|
|
142
|
+
constructor(private data: STabletComponent) {
|
|
143
|
+
this._dataFilter = data.data;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
ngOnInit() {
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
ngOnChanges(res: any) {
|
|
150
|
+
// console.log("From search NG CHANGE" , this._dataFilter)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
filterItems(query:any ) {
|
|
154
|
+
let results = [
|
|
155
|
+
...this.data.data.filter((item:any) => {
|
|
156
|
+
const regexp = new RegExp(query, 'i');
|
|
157
|
+
const properties = Object.keys(item);
|
|
158
|
+
return properties.some((property) => regexp.test(item[property]));
|
|
159
|
+
}),
|
|
160
|
+
];
|
|
161
|
+
this._dataFilter = results
|
|
162
|
+
this.data.updateData(this._dataFilter)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@HostListener('keyup', ['$event.target'])
|
|
166
|
+
onEnterKey(e: any) {
|
|
167
|
+
|
|
168
|
+
if(this.inputTimeout){
|
|
169
|
+
clearTimeout(this.inputTimeout);
|
|
170
|
+
}
|
|
171
|
+
this.inputTimeout = setTimeout(() => {
|
|
172
|
+
this.filterItems(e.value)
|
|
173
|
+
}, 1000, null);
|
|
174
|
+
|
|
175
|
+
if(e.value == ''){
|
|
176
|
+
this.data.restartData()
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@HostListener('search', ['$event.target'])
|
|
182
|
+
search(e: any) {
|
|
183
|
+
if(e.value == ''){
|
|
184
|
+
this.data.restartData()
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
@Directive({
|
|
192
|
+
selector: '[STemplate]'
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
export class STemplate implements AfterContentInit {
|
|
196
|
+
|
|
197
|
+
@Input("STemplate") field!: string;
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
constructor(
|
|
201
|
+
private element: TemplateRef<any>,
|
|
202
|
+
public table: STabletComponent
|
|
203
|
+
) {}
|
|
204
|
+
|
|
205
|
+
ngAfterContentInit(): void {
|
|
206
|
+
switch (this.field) {
|
|
207
|
+
case "caption":
|
|
208
|
+
this.table.caption = this.element
|
|
209
|
+
break;
|
|
210
|
+
case "header":
|
|
211
|
+
this.table.header = this.element
|
|
212
|
+
break;
|
|
213
|
+
case "body":
|
|
214
|
+
this.table.body = this.element
|
|
215
|
+
break;
|
|
216
|
+
case "bodyloading":
|
|
217
|
+
this.table.bodyloading = this.element
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { InputSearch, SortableColumn, STabletComponent , STemplate } from './s-tablet.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [STabletComponent ,InputSearch , SortableColumn , STemplate ],
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
exports: [STabletComponent , InputSearch , SortableColumn , STemplate]
|
|
9
|
+
})
|
|
10
|
+
export class STabletModule { }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div class="s-tabs" *ngIf="tabsConfig" [ngClass]="{'background-primary': configTabs?.background}">
|
|
2
|
+
<div class="s-tabs__container" [style.width.%]="configTabs?.width">
|
|
3
|
+
<div class="s-tabs__content" *ngFor="let tab of tabsConfig" [ngClass]="{'selected': tab.selected, 'highlight': tab.highlight}" (click)="selectTab(tab)">
|
|
4
|
+
<s-icon-mat class="s-tabs__icon" *ngIf="tab.icon">{{tab.icon}}</s-icon-mat>
|
|
5
|
+
<span *ngIf="tab.text" class="s-tabs__text">{{tab.text}}</span>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.s-tabs {
|
|
2
|
+
border-radius: 0.5rem;
|
|
3
|
+
box-shadow: var(--E100);
|
|
4
|
+
margin-bottom: 1rem;
|
|
5
|
+
display: block;
|
|
6
|
+
|
|
7
|
+
&__icon {
|
|
8
|
+
font-size: 2rem;
|
|
9
|
+
margin-right: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__container {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__content {
|
|
18
|
+
align-items: center;
|
|
19
|
+
color: var(--secondary-600);
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-basis: 50%;
|
|
23
|
+
flex-grow: 1;
|
|
24
|
+
font-size: 1rem;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
line-height: 2rem;
|
|
27
|
+
padding: 0.8rem 0.5rem;
|
|
28
|
+
text-align: center;
|
|
29
|
+
|
|
30
|
+
&.selected {
|
|
31
|
+
border-bottom: 1px solid var(--primary-600);
|
|
32
|
+
color: var(--primary-600);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.highlight {
|
|
36
|
+
background-color: var(--primary-200);
|
|
37
|
+
border-top-left-radius: 0.5rem;
|
|
38
|
+
border-top-right-radius: 0.5rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__text {
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.background-primary {
|
|
48
|
+
background-color: var(--primary-100);
|
|
49
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { STabsComponent } from './s-tabs.component';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
describe('STabsComponent', () => {
|
|
6
|
+
let component: STabsComponent;
|
|
7
|
+
let fixture: ComponentFixture<STabsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ STabsComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(STabsComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { IConfigTabs, ITab } from './models';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 's-tabs',
|
|
6
|
+
templateUrl: './s-tabs.component.html',
|
|
7
|
+
styleUrls: ['./s-tabs.component.scss'],
|
|
8
|
+
encapsulation: ViewEncapsulation.None,
|
|
9
|
+
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export class STabsComponent implements OnInit {
|
|
13
|
+
|
|
14
|
+
@Input() tabs?: ITab[];
|
|
15
|
+
@Input() configTabs?: IConfigTabs;
|
|
16
|
+
@Output() eventSelect = new EventEmitter<ITab>();
|
|
17
|
+
|
|
18
|
+
public tabsConfig?: ITab[];
|
|
19
|
+
|
|
20
|
+
constructor(){}
|
|
21
|
+
|
|
22
|
+
ngOnInit(): void {
|
|
23
|
+
this.tabsConfig = this.tabs;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
getBackground(): boolean {
|
|
27
|
+
return !!this.configTabs?.background || false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
selectTab(tab: ITab){
|
|
31
|
+
if (tab.selected) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.tabs?.forEach(tab => (tab.selected = false));
|
|
35
|
+
tab.selected = true;
|
|
36
|
+
this.eventSelect.emit(tab);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { STabsComponent } from './s-tabs.component';
|
|
4
|
+
import { SIconMaterialModule } from '../icon-material/s-icon-material.module';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [
|
|
9
|
+
STabsComponent
|
|
10
|
+
],
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
SIconMaterialModule
|
|
14
|
+
],
|
|
15
|
+
exports: [STabsComponent]
|
|
16
|
+
})
|
|
17
|
+
export class STabsModule { }
|