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,312 @@
|
|
|
1
|
+
|
|
2
|
+
.content-input-main-626:has(input:focus) {
|
|
3
|
+
border: 1px solid var(--primary-600);
|
|
4
|
+
box-shadow: 0px 0px 0px 4px rgba(0, 145, 254, 0.15), 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.content-input-main-626.theme-green:has(input:focus) {
|
|
8
|
+
border: 1px solid var(--green-500);
|
|
9
|
+
box-shadow: 0px 0px 0px 4px rgba(54, 179, 126, 0.15), 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
10
|
+
}
|
|
11
|
+
.content-input-main-626.theme-yellow:has(input:focus) {
|
|
12
|
+
border: 1px solid var(--yellow-500);
|
|
13
|
+
box-shadow: 0px 0px 0px 4px rgba(255, 171, 0, 0.15), 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
14
|
+
}
|
|
15
|
+
.content-input-main-626.theme-red:has(input:focus) {
|
|
16
|
+
border: 1px solid var(--red-500);
|
|
17
|
+
box-shadow: 0px 0px 0px 4px rgba(255, 86, 48, 0.15), 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.content-input-main-626.sm{
|
|
21
|
+
input{
|
|
22
|
+
height: 22px;
|
|
23
|
+
font-size: 0.75rem;
|
|
24
|
+
}
|
|
25
|
+
.icon {
|
|
26
|
+
width: 20px;
|
|
27
|
+
cursor: default;
|
|
28
|
+
span {
|
|
29
|
+
font-size: 1.2em;
|
|
30
|
+
display: flex;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.content-input-main-626 {
|
|
37
|
+
display: flex;
|
|
38
|
+
border: 1px solid var(--primary-500);
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
padding: 0 8px;
|
|
41
|
+
margin: 3px 0;
|
|
42
|
+
background-color: var(--neutrals-1200);
|
|
43
|
+
|
|
44
|
+
input {
|
|
45
|
+
width: 100%;
|
|
46
|
+
border: 0px;
|
|
47
|
+
color: var(--secondary-600);
|
|
48
|
+
writing-mode: unset;
|
|
49
|
+
height: 36px;
|
|
50
|
+
font-size: inherit;
|
|
51
|
+
background-color: var(--neutrals-1200);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
input:focus,
|
|
55
|
+
input:focus-visible {
|
|
56
|
+
outline: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.icon {
|
|
60
|
+
width: 20px;
|
|
61
|
+
cursor: default;
|
|
62
|
+
span {
|
|
63
|
+
// font-size: 1.3em;
|
|
64
|
+
display: flex;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
.content-center {
|
|
70
|
+
width: 100%;
|
|
71
|
+
background-color: var(--neutrals-1200);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.content-left {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: space-evenly;
|
|
78
|
+
margin-right: 8px;
|
|
79
|
+
color: var(--primary-600);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.content-right {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: space-evenly;
|
|
86
|
+
margin-left: 8px;
|
|
87
|
+
color: var(--secondary-600);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Disabled
|
|
93
|
+
.content-input-main-626.disabled-active {
|
|
94
|
+
background-color: var(--neutrals-1100);
|
|
95
|
+
border-color: var(--neutrals-900);
|
|
96
|
+
color: var(--neutrals-800);
|
|
97
|
+
input{
|
|
98
|
+
background-color: var(--neutrals-1100);
|
|
99
|
+
color: var(--neutrals-800);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.content-input-main-626.disabled-active{
|
|
103
|
+
.content-left{
|
|
104
|
+
color: var(--neutrals-800) !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.content-input-main-626.disabled-active{
|
|
108
|
+
.content-right{
|
|
109
|
+
s-icon-mat{
|
|
110
|
+
span{
|
|
111
|
+
color: var(--neutrals-800) !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.content-input-main-626.disabled-active.content-input-main-url , .content-input-main-626.disabled-active.content-input-main-color{
|
|
117
|
+
.content-left{
|
|
118
|
+
color: var(--neutrals-800) !important;
|
|
119
|
+
border-right: 1px solid var(--neutrals-900)
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Theme Border
|
|
124
|
+
.content-input-main-626.theme-red {
|
|
125
|
+
border: 1px solid var(--red-500);
|
|
126
|
+
.icon.report span {
|
|
127
|
+
color: var(--red-600);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.content-input-main-626.theme-green {
|
|
132
|
+
border: 1px solid var(--green-500);
|
|
133
|
+
.icon.report span {
|
|
134
|
+
color: var(--green-600);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.content-input-main-626.theme-yellow {
|
|
139
|
+
border: 1px solid var(--yellow-500);
|
|
140
|
+
.icon.report span {
|
|
141
|
+
color: var(--yellow-600);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Custom
|
|
146
|
+
.content-input-main-626.content-input-main-password .content-right .icon {
|
|
147
|
+
span {
|
|
148
|
+
color: var(--secondary-500);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.content-input-main-url .content-left,
|
|
153
|
+
.content-input-main-color .content-left {
|
|
154
|
+
border-right: 1px solid var(--secondary-500);
|
|
155
|
+
padding-right: 8px;
|
|
156
|
+
color: var(--secondary-500);
|
|
157
|
+
font-size: 0.9rem;
|
|
158
|
+
padding-left: 8px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.content-input-main-url,
|
|
162
|
+
.content-input-main-color {
|
|
163
|
+
padding-left: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
input:-webkit-autofill,
|
|
167
|
+
input:-webkit-autofill:hover,
|
|
168
|
+
input:-webkit-autofill:focus,
|
|
169
|
+
input:-webkit-autofill:active {
|
|
170
|
+
-webkit-box-shadow: 0 0 0 30px var(--neutrals-1200) inset !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//HIDDEN ARROW INPUT NUMBER
|
|
174
|
+
.content-input-main-626.content-input-main-number{
|
|
175
|
+
/* Chrome, Safari, Edge, Opera */
|
|
176
|
+
input::-webkit-outer-spin-button,
|
|
177
|
+
input::-webkit-inner-spin-button {
|
|
178
|
+
-webkit-appearance: none;
|
|
179
|
+
margin: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Firefox */
|
|
183
|
+
input[type=number] {
|
|
184
|
+
-moz-appearance: textfield;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.button-input-626{
|
|
189
|
+
font-size: 15px;
|
|
190
|
+
font-weight: bold;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
//INPUT TYPE RANGE
|
|
194
|
+
.content-input-main-range input{
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 36px;
|
|
197
|
+
margin: 0;
|
|
198
|
+
-webkit-appearance: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@mixin thumb() {
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
-webkit-appearance: none;
|
|
204
|
+
border: unset;
|
|
205
|
+
outline: unset;
|
|
206
|
+
box-shadow: unset;
|
|
207
|
+
width: 24px;
|
|
208
|
+
height: 24px;
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
border: 3px solid var(--primary-600);
|
|
211
|
+
background: var(--neutrals-1200);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@mixin thumb-hover() {
|
|
215
|
+
border: 3px solid var(--primary-600);
|
|
216
|
+
background: var(--primary-200);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@mixin thumb-active() {
|
|
220
|
+
border: 3px solid var(--primary-600);
|
|
221
|
+
background: var(--primary-600);
|
|
222
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(0, 145, 254, 0.15);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@mixin progress() {
|
|
226
|
+
appearance: none;
|
|
227
|
+
background-color: var(--primary-600) !important;
|
|
228
|
+
height: 8px;
|
|
229
|
+
border-radius: 4px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@mixin track() {
|
|
233
|
+
appearance: none;
|
|
234
|
+
background-color: var(--neutrals-1000) !important;
|
|
235
|
+
height: 8px;
|
|
236
|
+
border-radius: 4px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.content-input-main-range input[type=range]{
|
|
240
|
+
|
|
241
|
+
&::-webkit-slider-runnable-track {
|
|
242
|
+
border-radius: 4px;
|
|
243
|
+
height: 8px;
|
|
244
|
+
}
|
|
245
|
+
&::-moz-range-track { @include track }
|
|
246
|
+
&::-ms-track { @include track }
|
|
247
|
+
|
|
248
|
+
&::-moz-range-progress { @include progress }
|
|
249
|
+
&::-ms-fill-upper { @include progress }
|
|
250
|
+
|
|
251
|
+
&::-webkit-slider-thumb { @include thumb ; margin-top: -8px; }
|
|
252
|
+
&::-moz-range-thumb { @include thumb }
|
|
253
|
+
&::-ms-thumb { @include thumb }
|
|
254
|
+
|
|
255
|
+
&::-webkit-slider-thumb:hover { @include thumb-hover }
|
|
256
|
+
&::-moz-range-thumb:hover { @include thumb-hover }
|
|
257
|
+
&::-ms-thumb:hover { @include thumb-hover }
|
|
258
|
+
|
|
259
|
+
&::-webkit-slider-thumb:active { @include thumb-active }
|
|
260
|
+
&::-moz-range-thumb:active { @include thumb-active }
|
|
261
|
+
&::-ms-thumb:active { @include thumb-active }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.content-input-main-range input[type="range"]:disabled {
|
|
265
|
+
filter: grayscale(1);
|
|
266
|
+
opacity: 0.3;
|
|
267
|
+
cursor: not-allowed;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.tooltip {
|
|
271
|
+
position: relative;
|
|
272
|
+
display: inline-block;
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
width: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.tooltip .tooltiptext {
|
|
278
|
+
visibility: hidden;
|
|
279
|
+
width: 40px;
|
|
280
|
+
background-color: var(--neutrals-1200);
|
|
281
|
+
color: var(--secondary-600);
|
|
282
|
+
font-weight: 700;
|
|
283
|
+
font-size: 12px;
|
|
284
|
+
text-align: center;
|
|
285
|
+
border-radius: 4px;
|
|
286
|
+
padding: 5px;
|
|
287
|
+
position: absolute;
|
|
288
|
+
z-index: 1;
|
|
289
|
+
bottom: 100%;
|
|
290
|
+
left: 550%;
|
|
291
|
+
transform: translateX(-50%);
|
|
292
|
+
box-shadow: 0px 0px 16px 0px rgba(23, 56, 97, 0.16);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.tooltip-false:hover{
|
|
296
|
+
.tooltiptext {
|
|
297
|
+
visibility: visible;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.tooltip .tooltiptext::before {
|
|
302
|
+
content: "";
|
|
303
|
+
position: absolute !important;
|
|
304
|
+
transform: rotate(45deg);
|
|
305
|
+
height: 10px;
|
|
306
|
+
width: 10px;
|
|
307
|
+
bottom: -5px;
|
|
308
|
+
background-color: var(--neutrals-1200);
|
|
309
|
+
box-shadow: 0px 0px 16px 0px rgba(23, 56, 97, 0.16);
|
|
310
|
+
left: 40%;
|
|
311
|
+
}
|
|
312
|
+
//FIN CSS INPUT TYPE RANGE
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SInputTextComponent } from './s-input-text.component';
|
|
4
|
+
|
|
5
|
+
describe('SInputTextComponent', () => {
|
|
6
|
+
let component: SInputTextComponent;
|
|
7
|
+
let fixture: ComponentFixture<SInputTextComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SInputTextComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SInputTextComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild, ViewEncapsulation, forwardRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 's-input-text',
|
|
6
|
+
templateUrl: './s-input-text.component.html',
|
|
7
|
+
styleUrls: ['./s-input-text.component.scss'],
|
|
8
|
+
encapsulation: ViewEncapsulation.None,
|
|
9
|
+
providers: [
|
|
10
|
+
{
|
|
11
|
+
provide: NG_VALUE_ACCESSOR,
|
|
12
|
+
useExisting: forwardRef(() => SInputTextComponent),
|
|
13
|
+
multi: true
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
export class SInputTextComponent implements OnInit, OnChanges, ControlValueAccessor , AfterViewInit {
|
|
18
|
+
|
|
19
|
+
onChange = (_: any) => { };
|
|
20
|
+
onTouch = () => { };
|
|
21
|
+
|
|
22
|
+
//REF PARA TYPE NUMBER
|
|
23
|
+
@ViewChild('typeNumber') typeNumber: ElementRef | undefined ;
|
|
24
|
+
//REF PARA TYPE RANGE
|
|
25
|
+
@ViewChild('tooltipContainer', { static: false }) tooltipContainer: ElementRef | undefined;
|
|
26
|
+
@ViewChild('tooltip', { static: false }) tooltip: ElementRef | undefined;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@Input() text: string = '';
|
|
30
|
+
@Input() id: any = Math.floor(Math.random() * 1000);
|
|
31
|
+
@Input() name: string = '';
|
|
32
|
+
@Input() placeHolder?: string = '';
|
|
33
|
+
@Input() disabled: boolean = false;
|
|
34
|
+
@Input() max?: number ;
|
|
35
|
+
@Input() min: number = 0;
|
|
36
|
+
@Input() step: number = 1;
|
|
37
|
+
@Input() readOnly: boolean = false;
|
|
38
|
+
@Input()
|
|
39
|
+
get theme(): string { return this._theme; }
|
|
40
|
+
set theme(val: string) {
|
|
41
|
+
this._theme = ['default', 'green', 'yellow', 'red'].indexOf(val) != -1 ? val : 'default';
|
|
42
|
+
};
|
|
43
|
+
@Input()
|
|
44
|
+
get type(): string { return this._type; }
|
|
45
|
+
set type(val: string) {
|
|
46
|
+
this._type = ['text', 'password', 'email', 'phone', 'url', 'search', 'number', 'color', 'date', 'time' , 'range'].indexOf(val) != -1 ? val : 'text';
|
|
47
|
+
};
|
|
48
|
+
@Input() classAdd: string = '';
|
|
49
|
+
@Input() help: boolean = false;
|
|
50
|
+
@Input() size: 'sm' | 'md' = 'md';
|
|
51
|
+
@Input() rangeUnity: string = '';
|
|
52
|
+
|
|
53
|
+
inputTimeout?: any;
|
|
54
|
+
inputText: string = '';
|
|
55
|
+
inputNumber: number = 0;
|
|
56
|
+
_type: string = 'text';
|
|
57
|
+
_theme: string = 'default';
|
|
58
|
+
disabledstyle: string = '';
|
|
59
|
+
visibility = false;
|
|
60
|
+
iconName: string | undefined;
|
|
61
|
+
inconSymbol: boolean = false;
|
|
62
|
+
tooltipValue: string = '';
|
|
63
|
+
|
|
64
|
+
@Output() textChangeEvent = new EventEmitter<string>();
|
|
65
|
+
@Output() clickHelpIconEvent = new EventEmitter<void>();
|
|
66
|
+
|
|
67
|
+
constructor() {
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
ngOnInit(): void {
|
|
72
|
+
|
|
73
|
+
//Ajuste cuando type number viene con text y lo convierte a numero
|
|
74
|
+
if(this.text && this.type == 'number'){
|
|
75
|
+
this.inputNumber = Number(this.text)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//Ajuste cuando type color viene con text vacio
|
|
79
|
+
if (this._type == 'color' && this.text == '') {
|
|
80
|
+
this.text = '#000000'
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
this.inputText = this.text;
|
|
84
|
+
|
|
85
|
+
//Activa el estilo de disabled
|
|
86
|
+
if (this.disabled) {
|
|
87
|
+
this.disabledstyle = "disabled-active"
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//Ajuste type color solo se deshabilita con disabled.
|
|
91
|
+
if(this.type == 'color' && this.readOnly == true){
|
|
92
|
+
this.disabled = true
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
this.loadTheme();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ngAfterViewInit(): void {
|
|
100
|
+
//Ajustes Type Range
|
|
101
|
+
if(this.type == 'range'){
|
|
102
|
+
this.rangeOnLoad()
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
107
|
+
if (changes['theme']) {
|
|
108
|
+
this.loadTheme();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if(changes['text']){
|
|
112
|
+
if(this.text && this.type == 'number'){
|
|
113
|
+
this.inputNumber = Number(this.text)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (this._type == 'color' && this.text == '') {
|
|
117
|
+
this.text = '#000000'
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
this.inputText = this.text;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private loadTheme() {
|
|
125
|
+
switch (this.theme) {
|
|
126
|
+
case "default":
|
|
127
|
+
this.iconName = ""
|
|
128
|
+
break;
|
|
129
|
+
case "red":
|
|
130
|
+
this.iconName = "error_outline"
|
|
131
|
+
break;
|
|
132
|
+
case "green":
|
|
133
|
+
this.iconName = "check_circle_outline"
|
|
134
|
+
break;
|
|
135
|
+
case "yellow":
|
|
136
|
+
this.inconSymbol = true
|
|
137
|
+
this.iconName = "warning"
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
default:
|
|
141
|
+
this.iconName = ""
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
onTextChange() {
|
|
147
|
+
if(this.type == 'number'){
|
|
148
|
+
this.updateNumber(this.inputText)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
this.onTouch();
|
|
152
|
+
this.onChange(this.inputText);
|
|
153
|
+
|
|
154
|
+
if (this.inputTimeout) {
|
|
155
|
+
clearTimeout(this.inputTimeout);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
this.inputTimeout = setTimeout(() => {
|
|
159
|
+
this.textChangeEvent.next(this.inputText);
|
|
160
|
+
}, 500, null);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
onTextChangeVal(val: string) {
|
|
164
|
+
if (this.inputTimeout) {
|
|
165
|
+
clearTimeout(this.inputTimeout);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
this.inputTimeout = setTimeout(() => {
|
|
169
|
+
if (val) {
|
|
170
|
+
this.onTouch();
|
|
171
|
+
this.onChange(val);
|
|
172
|
+
this.textChangeEvent.next(val);
|
|
173
|
+
this.inputText = val;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
this.onTouch();
|
|
177
|
+
this.onChange(val);
|
|
178
|
+
this.textChangeEvent.next(this.inputText);
|
|
179
|
+
}
|
|
180
|
+
}, 500, null);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
clickIcon() {
|
|
184
|
+
this.clickHelpIconEvent.next();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
colorClick() {
|
|
188
|
+
document.getElementById(this.name)?.click();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//FUNCIONES PARA TYPE NUMBER
|
|
192
|
+
numberDecrease(){
|
|
193
|
+
if(!this.disabled && !this.readOnly){
|
|
194
|
+
if(this.min < this.inputNumber){
|
|
195
|
+
this.inputNumber-=this.step
|
|
196
|
+
}
|
|
197
|
+
this.inputText = this.inputNumber.toString()
|
|
198
|
+
this.onTouch();
|
|
199
|
+
this.onChange(this.inputText);
|
|
200
|
+
this.textChangeEvent.next(this.inputText);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
numberIncrement(){
|
|
205
|
+
if(!this.disabled && !this.readOnly){
|
|
206
|
+
if(this.max){
|
|
207
|
+
if(this.max > this.inputNumber){
|
|
208
|
+
this.inputNumber+=this.step
|
|
209
|
+
}else{
|
|
210
|
+
this.inputNumber = this.max
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if(!this.max){
|
|
214
|
+
this.inputNumber+=this.step
|
|
215
|
+
}
|
|
216
|
+
this.inputText = this.inputNumber.toString()
|
|
217
|
+
this.onTouch();
|
|
218
|
+
this.onChange(this.inputText);
|
|
219
|
+
this.textChangeEvent.next(this.inputText);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
updateNumber(value:any){
|
|
224
|
+
let value2 = value
|
|
225
|
+
if(this.max)
|
|
226
|
+
if(value > this.max){
|
|
227
|
+
value2 = this.max
|
|
228
|
+
}
|
|
229
|
+
if(value < this.min){
|
|
230
|
+
value2 = this.min
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
this.inputText = value2.toString()
|
|
234
|
+
this.inputNumber = Number(value2);
|
|
235
|
+
if(this.typeNumber)
|
|
236
|
+
this.typeNumber.nativeElement.value = this.inputNumber
|
|
237
|
+
this.onTouch();
|
|
238
|
+
this.onChange(this.inputNumber);
|
|
239
|
+
this.textChangeEvent.next(this.inputText);
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
//FIN FUNCIONES PARA TYPE NUMBER
|
|
243
|
+
|
|
244
|
+
//FUNCIONES PARA TYPE RANGE
|
|
245
|
+
rangeOnLoad(){
|
|
246
|
+
setTimeout(() => {
|
|
247
|
+
//RANGO TOTAL
|
|
248
|
+
const rangeMax = this.max ? this.max : 100;
|
|
249
|
+
//CALCULO LA AMPLITUD PARA PODER POSICIONAR AL 50% POR DEFECTO
|
|
250
|
+
let amplitudTotal = rangeMax - this.min
|
|
251
|
+
let porcion = (amplitudTotal * 50) / 100
|
|
252
|
+
// INICIALIZA AL 50% CUANDO NO HAY VALOR PREDEFINIDO
|
|
253
|
+
let value = this.text == '' ? this.min + porcion : this.text
|
|
254
|
+
value = this.inputText == '' ? this.min + porcion : this.inputText
|
|
255
|
+
//DEFINO EL TOOTLTIP
|
|
256
|
+
this.tooltipValue = this.text + this.rangeUnity;
|
|
257
|
+
//SI ES CHROME APLICO EL FIX
|
|
258
|
+
const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
259
|
+
if(isChrome) {
|
|
260
|
+
//CALCCULO EL % A ASIGNAR
|
|
261
|
+
let porcentaje = ((Number(value) - this.min) / (rangeMax - this.min)) * 100
|
|
262
|
+
document.getElementById(this.id)?.style.setProperty('margin-top' , '14px');
|
|
263
|
+
document.getElementById(this.id)?.style.setProperty('margin-bottom' , '14px');
|
|
264
|
+
document.getElementById(this.id)?.style.setProperty('border-radius' , '4px');
|
|
265
|
+
document.getElementById(this.id)?.style.setProperty('height' , '8px');
|
|
266
|
+
document.getElementById(this.id)?.style.setProperty('background' , 'linear-gradient(to right, var(--primary-600) 0%, var(--primary-600) '+porcentaje+'%, var(--neutrals-1000) '+porcentaje+'%, var(--neutrals-1000) 100%)');
|
|
267
|
+
};
|
|
268
|
+
}, 0);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
//FUNCION PARA CHROME CUANDO SE DESLIZA EL SLIDE FUNCIONE CORRECTAMENTE
|
|
272
|
+
changeRange(value:any){
|
|
273
|
+
if(this.type == 'range'){
|
|
274
|
+
const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
275
|
+
const rangeMax = this.max ? this.max : 100;
|
|
276
|
+
if(isChrome) {
|
|
277
|
+
let porcentaje = ((value - this.min) / (rangeMax - this.min)) * 100
|
|
278
|
+
document.getElementById(this.id)?.style.setProperty('background' , 'linear-gradient(to right, var(--primary-600) 0%, var(--primary-600) '+porcentaje+'%, var(--neutrals-1000) '+porcentaje+'%, var(--neutrals-1000) 100%)');
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
//FUNCION QUE ACTUALIZA EL TOOLTIP CUANDO SE DESLIZA EL SLIDE
|
|
284
|
+
updateTooltip(value: string) {
|
|
285
|
+
if(this.tooltipContainer && this.tooltip){
|
|
286
|
+
const rangeWidth = this.tooltipContainer.nativeElement.offsetWidth;
|
|
287
|
+
const rangeMax = this.max ? this.max : 100;
|
|
288
|
+
let porcentaje = ((Number(value) - this.min) / (rangeMax - this.min)) * 100
|
|
289
|
+
let ajuste = porcentaje * rangeWidth / 100;
|
|
290
|
+
this.tooltip.nativeElement.style.left = `${ajuste}px`;
|
|
291
|
+
this.tooltipValue = value + this.rangeUnity;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
//FIN FUNCIONES PARA TYPE RANGE
|
|
295
|
+
|
|
296
|
+
//FUNCIONES PARA QUE FUNCIONE FORM BUILDER
|
|
297
|
+
writeValue(value: any): void {
|
|
298
|
+
if (value) {
|
|
299
|
+
this.inputText = value;
|
|
300
|
+
this.inputNumber = value
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
registerOnChange(fn: any): void {
|
|
305
|
+
this.onChange = fn;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
registerOnTouched(fn: any): void {
|
|
309
|
+
this.onTouch = fn;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="text-area1325 {{class}} {{disabledstyle}}">
|
|
2
|
+
<textarea
|
|
3
|
+
[readOnly]="readOnly"
|
|
4
|
+
[ngClass]="[resize ? '' : 'resize' , theme ? 'theme-' + theme : '']"
|
|
5
|
+
[ngStyle]=" {'height' : height , 'width' : width}"
|
|
6
|
+
[disabled]="disabled"
|
|
7
|
+
[id]="id"
|
|
8
|
+
[name]="name"
|
|
9
|
+
autocomplete="off"
|
|
10
|
+
[placeholder]="placeholder"
|
|
11
|
+
[(ngModel)]="inputText"
|
|
12
|
+
(ngModelChange)="onTextChange()"
|
|
13
|
+
>
|
|
14
|
+
</textarea>
|
|
15
|
+
</div>
|