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,184 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap");
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
font-family: "Roboto", Arial, sans-serif;
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
letter-spacing: 0.2px;
|
|
7
|
+
line-height: 20px;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
h1,
|
|
12
|
+
h2,
|
|
13
|
+
h3,
|
|
14
|
+
h4,
|
|
15
|
+
h5,
|
|
16
|
+
h6 {
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h1 {
|
|
22
|
+
font-size: 2.5rem;
|
|
23
|
+
line-height: 3.75rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h2 {
|
|
27
|
+
font-size: 2rem;
|
|
28
|
+
line-height: 2.5rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h3 {
|
|
32
|
+
font-size: 1.75rem;
|
|
33
|
+
line-height: 2.2rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h4 {
|
|
37
|
+
font-size: 1.5rem;
|
|
38
|
+
line-height: 1.875rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
h5 {
|
|
42
|
+
font-size: 1.25rem;
|
|
43
|
+
line-height: 1.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h6 {
|
|
47
|
+
font-size: 1rem;
|
|
48
|
+
line-height: 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
p {
|
|
52
|
+
font-size: 1rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
a {
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
line-height: 1.5rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.s-subtitle {
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
line-height: 1.5rem;
|
|
63
|
+
letter-spacing: 0.15px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.s-subtitle-bold {
|
|
67
|
+
font-size: 1rem;
|
|
68
|
+
line-height: 1.5rem;
|
|
69
|
+
font-weight: 700;
|
|
70
|
+
letter-spacing: 0.1px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.s-body-1 {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
line-height: 1.5rem;
|
|
76
|
+
letter-spacing: 0.5px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.s-body-2 {
|
|
80
|
+
font-size: 0.875rem;
|
|
81
|
+
line-height: 1.375rem;
|
|
82
|
+
letter-spacing: 0.25px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.s-button-xl,
|
|
86
|
+
.s-button-xl-bold {
|
|
87
|
+
font-size: 1.125rem;
|
|
88
|
+
line-height: 1.75rem;
|
|
89
|
+
letter-spacing: 0.5px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.s-button-lg,
|
|
93
|
+
.s-button-lg-bold {
|
|
94
|
+
font-size: 1rem;
|
|
95
|
+
line-height: 1.5rem;
|
|
96
|
+
letter-spacing: 0.5px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.s-button-sm,
|
|
100
|
+
.s-button-sm-bold {
|
|
101
|
+
font-size: 0.875rem;
|
|
102
|
+
line-height: 1.375rem;
|
|
103
|
+
letter-spacing: 0.2px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.s-button-xs,
|
|
107
|
+
.s-button-xs-bold {
|
|
108
|
+
font-size: 0.75rem;
|
|
109
|
+
line-height: 1.125rem;
|
|
110
|
+
letter-spacing: 0.1px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.s-button-xl-bold,
|
|
114
|
+
.s-button-lg-bold,
|
|
115
|
+
.s-button-sm-bold,
|
|
116
|
+
.s-button-xs-bold {
|
|
117
|
+
font-weight: 700;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.s-caption {
|
|
121
|
+
font-size: 0.75rem;
|
|
122
|
+
line-height: 1.125rem;
|
|
123
|
+
letter-spacing: 0.5px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.s-overline {
|
|
127
|
+
font-size: 0.75rem;
|
|
128
|
+
line-height: 1.125rem;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
letter-spacing: 1.5px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.s-link-1 {
|
|
134
|
+
font-size: 1rem;
|
|
135
|
+
line-height: 1.5rem;
|
|
136
|
+
text-decoration: underline;
|
|
137
|
+
letter-spacing: 0.5px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.s-link-2 {
|
|
141
|
+
font-size: 1rem;
|
|
142
|
+
line-height: 1.5rem;
|
|
143
|
+
letter-spacing: 0.5px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.s-link-3 {
|
|
147
|
+
font-size: 0.875rem;
|
|
148
|
+
line-height: 1.3rem;
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
letter-spacing: 0.5px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.s-link-4 {
|
|
154
|
+
font-size: 0.875rem;
|
|
155
|
+
line-height: 1.3rem;
|
|
156
|
+
letter-spacing: 0.5px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media only screen and (max-width: 600px) {
|
|
160
|
+
h1 {
|
|
161
|
+
font-size: 2rem;
|
|
162
|
+
line-height: 2.5rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
h2 {
|
|
166
|
+
font-size: 1.5rem;
|
|
167
|
+
line-height: 1.875rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
h3 {
|
|
171
|
+
font-size: 1.5rem;
|
|
172
|
+
line-height: 1.875rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
h4 {
|
|
176
|
+
font-size: 1.25rem;
|
|
177
|
+
line-height: 1.5rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
h5 {
|
|
181
|
+
font-size: 1rem;
|
|
182
|
+
line-height: 1.25rem;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './s-footer.component';
|
|
2
|
-
export * from './s-footer.module';
|
|
2
|
+
export * from './s-footer.module';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.s-footer {
|
|
2
|
+
z-index: 2;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 0.2rem 0;
|
|
7
|
+
text-align: center;
|
|
8
|
+
background: var(--neutrals-1100);
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
color: var(--secondary-600);
|
|
14
|
+
|
|
15
|
+
&__text {
|
|
16
|
+
padding-right: 0.5rem;
|
|
17
|
+
font-family: 'Roboto', sans-serif;
|
|
18
|
+
font-size: 13px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[theme="dark"] , .s-footer.theme-dark {
|
|
23
|
+
background: var(--primary-900);
|
|
24
|
+
color:var(--neutrals-1200);
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SFooterComponent } from './s-footer.component';
|
|
4
|
+
|
|
5
|
+
describe('SFooterComponent', () => {
|
|
6
|
+
let component: SFooterComponent;
|
|
7
|
+
let fixture: ComponentFixture<SFooterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SFooterComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SFooterComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 's-footer',
|
|
5
|
+
templateUrl: './s-footer.component.html',
|
|
6
|
+
styleUrls: ['./s-footer.component.scss'],
|
|
7
|
+
encapsulation: ViewEncapsulation.None,
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export class SFooterComponent {
|
|
11
|
+
|
|
12
|
+
@Input() theme?: string;
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SFooterComponent } from './s-footer.component';
|
|
4
|
+
import { SCompanyLogoModule } from '../company-logo/s-company-logo.module';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [
|
|
8
|
+
SFooterComponent
|
|
9
|
+
],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
SCompanyLogoModule
|
|
13
|
+
],
|
|
14
|
+
exports: [
|
|
15
|
+
SFooterComponent
|
|
16
|
+
]
|
|
17
|
+
})
|
|
18
|
+
export class SFooterModule { }
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ValidatorFn } from "@angular/forms";
|
|
2
|
+
import { SSelectSimpleModel } from "../select/s-select-model";
|
|
3
|
+
|
|
4
|
+
export class SFormControl {
|
|
5
|
+
private _width: number = 100;
|
|
6
|
+
|
|
7
|
+
formControlName: string = '';
|
|
8
|
+
label: string = '';
|
|
9
|
+
inputType: string = '';
|
|
10
|
+
inputPlaceHolder: string = '';
|
|
11
|
+
validators: ValidatorFn[] = [];
|
|
12
|
+
value: string = "";
|
|
13
|
+
disabled: boolean = false;
|
|
14
|
+
show: boolean = true;
|
|
15
|
+
selectModel: SSelectSimpleModel[] = [];
|
|
16
|
+
button: ButtonControl | undefined;
|
|
17
|
+
|
|
18
|
+
get width(): number {
|
|
19
|
+
return this._width;
|
|
20
|
+
}
|
|
21
|
+
set width(val: number) {
|
|
22
|
+
this._width = val > 0 && val <= 100 ? val : 100;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
static Create(formControlName: string = '', label: string = '', inputType: string = '', inputPlaceHolder: string = '', validators: ValidatorFn[] = [], value: string = '', width: number = 100, disabled: boolean = false, show: boolean = true, selectModel: SSelectSimpleModel[] = [], button: ButtonControl | undefined = undefined): SFormControl {
|
|
26
|
+
let c = new SFormControl();
|
|
27
|
+
|
|
28
|
+
c.formControlName = formControlName;
|
|
29
|
+
c.label = label;
|
|
30
|
+
c.inputType = inputType;
|
|
31
|
+
c.inputPlaceHolder = inputPlaceHolder;
|
|
32
|
+
c.validators = validators;
|
|
33
|
+
c.value = value;
|
|
34
|
+
c.disabled = disabled;
|
|
35
|
+
c.show = show;
|
|
36
|
+
c.selectModel = selectModel
|
|
37
|
+
c.width = width;
|
|
38
|
+
|
|
39
|
+
if (inputType == 'button' && button == undefined) {
|
|
40
|
+
c.button = new ButtonControl();
|
|
41
|
+
c.button.icon = '';
|
|
42
|
+
c.button.invert = false;
|
|
43
|
+
c.button.pill = false;
|
|
44
|
+
c.button.type = 'primary';
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
c.button = button;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (inputType == 'color' && !value) {
|
|
51
|
+
c.value = '#000000'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return c;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class ButtonControl {
|
|
59
|
+
pill: boolean = false;
|
|
60
|
+
invert: boolean = false;
|
|
61
|
+
type: string = 'primary';
|
|
62
|
+
icon: string = '';
|
|
63
|
+
class: string = '';
|
|
64
|
+
size: "xl" | "lg" | "md" | "sm" = 'md';
|
|
65
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<form *ngIf="form && controls" [formGroup]="form">
|
|
2
|
+
<div class="form-control" [ngStyle]="{width: c.width + '%', display: c.width < 100 ? 'inline-block' : 'initial'}"
|
|
3
|
+
*ngFor="let c of controls">
|
|
4
|
+
<div *ngIf="c.show && enabledTypes.indexOf(c.inputType) != -1">
|
|
5
|
+
<div *ngIf="c.inputType != 'button' && c.inputType != 'select' && c.inputType != 'checkbox'">
|
|
6
|
+
<input [id]="c.formControlName" [type]="c.inputType" [disabled]="c.disabled"
|
|
7
|
+
[formControlName]="c.formControlName" style="display: none;">
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<label class="label">{{c.label}}</label>
|
|
10
|
+
<s-input-text [type]="c.inputType" [text]="c.value" [disabled]="c.disabled"
|
|
11
|
+
[theme]="checkErrors(c.formControlName) ? 'red' : 'default'" [placeHolder]="c.inputPlaceHolder"
|
|
12
|
+
[name]="c.formControlName + c.inputType"
|
|
13
|
+
(textChangeEvent)="changeControl(c.formControlName, $event)"
|
|
14
|
+
[title]="c.inputPlaceHolder"></s-input-text>
|
|
15
|
+
<s-error-control [theme]="checkErrors(c.formControlName) ? 'red' : 'default'">
|
|
16
|
+
<span *ngIf="checkErrors(c.formControlName)">
|
|
17
|
+
{{getErrorMessage(c.formControlName)}}
|
|
18
|
+
</span>
|
|
19
|
+
</s-error-control>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div *ngIf="c.inputType == 'button' && c.button != undefined">
|
|
23
|
+
<div class="form-group">
|
|
24
|
+
<s-button [pill]="c.button.pill" [invert]="c.button.invert" [type]="c.button.type" size="sm"
|
|
25
|
+
[title]="c.inputPlaceHolder" [class]="c.button.class" [size]="c.button.size ? c.button.size : 'md' " (click)="buttonClick(c.formControlName)">
|
|
26
|
+
{{c.label}}
|
|
27
|
+
<s-icon-mat *ngIf="c.button.icon">{{c.button.icon}}</s-icon-mat>
|
|
28
|
+
</s-button>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div *ngIf="c.inputType == 'checkbox'">
|
|
32
|
+
<input [id]="c.formControlName" [type]="c.inputType" [disabled]="c.disabled"
|
|
33
|
+
[formControlName]="c.formControlName" style="display: none;">
|
|
34
|
+
<div class="form-group">
|
|
35
|
+
<s-checkbox [value]="c.value" [label]="c.label" (emitSelection)="changeControl(c.formControlName, $event.event.toString())"></s-checkbox>
|
|
36
|
+
<s-error-control [theme]="checkErrors(c.formControlName) ? 'red' : 'default'">
|
|
37
|
+
<span *ngIf="checkErrors(c.formControlName)">
|
|
38
|
+
{{getErrorMessage(c.formControlName)}}
|
|
39
|
+
</span>
|
|
40
|
+
</s-error-control>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div *ngIf="c.inputType == 'select'">
|
|
44
|
+
<select [id]="c.formControlName" [name]="c.formControlName" [formControlName]="c.formControlName" style="display: none;">
|
|
45
|
+
<option *ngFor="let o of c.selectModel" [value]="o.key" [selected]="o.key == c.value">{{o.value}}
|
|
46
|
+
</option>
|
|
47
|
+
</select>
|
|
48
|
+
<div class="form-group">
|
|
49
|
+
<label class="label">{{c.label}}</label>
|
|
50
|
+
<s-select-simple [options]="c.selectModel" (selectEvent)="changeSelect($event, c.formControlName)" [title]="c.inputPlaceHolder" [selectedValue]="c.value"></s-select-simple>
|
|
51
|
+
<s-error-control [theme]="checkErrors(c.formControlName) ? 'red' : 'default'">
|
|
52
|
+
<span *ngIf="checkErrors(c.formControlName)">
|
|
53
|
+
{{getErrorMessage(c.formControlName)}}
|
|
54
|
+
</span>
|
|
55
|
+
</s-error-control>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</form>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SFormComponent } from './s-form.component';
|
|
4
|
+
|
|
5
|
+
describe('SFormComponent', () => {
|
|
6
|
+
let component: SFormComponent;
|
|
7
|
+
let fixture: ComponentFixture<SFormComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SFormComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SFormComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { SSelectSimpleModel } from '../select';
|
|
4
|
+
import { SFormControl } from './s-form-control';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 's-form',
|
|
8
|
+
templateUrl: './s-form.component.html',
|
|
9
|
+
styleUrls: ['./s-form.component.scss'],
|
|
10
|
+
encapsulation: ViewEncapsulation.None
|
|
11
|
+
})
|
|
12
|
+
export class SFormComponent implements OnInit, OnChanges {
|
|
13
|
+
form: FormGroup = new FormGroup({});
|
|
14
|
+
|
|
15
|
+
@Input() controls?: SFormControl[];
|
|
16
|
+
@Input() submitClick: number = 0;
|
|
17
|
+
|
|
18
|
+
@Input() requiredMessage: string = 'Se requiere este dato';
|
|
19
|
+
@Input() emailMessage: string = 'El formato del correo no es válido';
|
|
20
|
+
@Input() dafaultMessage: string = 'Error en el dato';
|
|
21
|
+
|
|
22
|
+
@Output() controlsChangeEvent = new EventEmitter<SFormControl[]>();
|
|
23
|
+
@Output() submitEvent = new EventEmitter<{ [key: string]: string }>();
|
|
24
|
+
@Output() changeSelectEvent = new EventEmitter<SSelectSimpleModel>();
|
|
25
|
+
@Output() clickButtonEvent = new EventEmitter<string>();
|
|
26
|
+
|
|
27
|
+
submitted: boolean = false;
|
|
28
|
+
|
|
29
|
+
enabledTypes: string[] = ['text', 'password', 'email' , 'phone' , 'url' , 'number', 'button', 'checkbox', 'select', 'color', 'date', 'time'];
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
35
|
+
if (changes['submitClick'] && changes['submitClick'].currentValue != 0) {
|
|
36
|
+
this.submit();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (changes['controls'] && changes['controls'].previousValue && changes['controls'].currentValue) {
|
|
40
|
+
this.form = new FormGroup({});
|
|
41
|
+
this.controls = [];
|
|
42
|
+
this.submitted = false;
|
|
43
|
+
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
this.controls = changes['controls'].currentValue;
|
|
46
|
+
this.loadForm();
|
|
47
|
+
}, 100);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
ngOnInit(): void {
|
|
52
|
+
this.loadForm();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
loadForm(){
|
|
56
|
+
if (this.controls) {
|
|
57
|
+
this.controls.forEach(c => {
|
|
58
|
+
if(!c.inputType || c.inputType == ''){
|
|
59
|
+
c.inputType = 'text';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let val = c.value;
|
|
63
|
+
|
|
64
|
+
if (c.inputType == 'select') {
|
|
65
|
+
val = c.value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
this.form.addControl(c.formControlName, new FormControl(val, c.validators));
|
|
69
|
+
|
|
70
|
+
if (c.disabled) {
|
|
71
|
+
this.form.controls[c.formControlName].disable({ onlySelf: true });
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
submit() {
|
|
78
|
+
this.form.markAllAsTouched();
|
|
79
|
+
|
|
80
|
+
if (this.controls && this.form.valid) {
|
|
81
|
+
this.submitted = true;
|
|
82
|
+
let keysValues: { [key: string]: string } = {};
|
|
83
|
+
|
|
84
|
+
this.controls.forEach(c => {
|
|
85
|
+
keysValues[c.formControlName] = this.form.controls[c.formControlName].value;
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
this.submitEvent.next(keysValues);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this.submitted = false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
checkErrors(key: string): boolean {
|
|
96
|
+
if (!this.form.controls[key]) { return false }
|
|
97
|
+
return ((this.form.controls[key].invalid && (this.form.controls[key].dirty || this.form.controls[key].touched)) || this.submitted) && this.form.controls[key].errors != null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
getErrorMessage(key: string): string {
|
|
101
|
+
if (this.form.controls[key].getError('required')) {
|
|
102
|
+
return this.requiredMessage;
|
|
103
|
+
} else if (this.form.controls[key].getError('email')) {
|
|
104
|
+
return this.emailMessage;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return this.dafaultMessage;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
changeSelect(obj: SSelectSimpleModel, key: string) {
|
|
111
|
+
this.changeSelectEvent.emit(obj);
|
|
112
|
+
this.changeControl(key, obj.key as string);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
changeControl(name: string, val: string){
|
|
116
|
+
this.form.controls[name].markAsTouched();
|
|
117
|
+
this.form.controls[name].setValue(val);
|
|
118
|
+
|
|
119
|
+
let c = this.controls?.find(e => {return e.formControlName == name});
|
|
120
|
+
|
|
121
|
+
if(c){
|
|
122
|
+
c.value = val;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
this.controlsChangeEvent.emit(this.controls);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
buttonClick(name: string){
|
|
129
|
+
this.clickButtonEvent.emit(name);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { SFormComponent } from './s-form.component';
|
|
4
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { SInputModule } from '../input';
|
|
6
|
+
import { SButtonModule } from '../button';
|
|
7
|
+
import { SIconMaterialModule } from '../icon-material';
|
|
8
|
+
import { SCheckboxModule } from '../checkbox';
|
|
9
|
+
import { SSelectModule } from '../select';
|
|
10
|
+
|
|
11
|
+
@NgModule({
|
|
12
|
+
declarations: [
|
|
13
|
+
SFormComponent
|
|
14
|
+
],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
FormsModule,
|
|
18
|
+
ReactiveFormsModule,
|
|
19
|
+
SInputModule,
|
|
20
|
+
SButtonModule,
|
|
21
|
+
SIconMaterialModule,
|
|
22
|
+
SCheckboxModule,
|
|
23
|
+
SSelectModule
|
|
24
|
+
],
|
|
25
|
+
exports:[
|
|
26
|
+
SFormComponent
|
|
27
|
+
]
|
|
28
|
+
})
|
|
29
|
+
export class SFormModule { }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SIconComponent } from './s-icon.component';
|
|
4
|
+
|
|
5
|
+
describe('SIconComponent', () => {
|
|
6
|
+
let component: SIconComponent;
|
|
7
|
+
let fixture: ComponentFixture<SIconComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SIconComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SIconComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|