@updevs/components 1.0.0-alpha.5 → 1.0.0-alpha.8
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/button/button.component.d.ts +43 -0
- package/button/upd-button.module.d.ts +8 -0
- package/card/card.component.d.ts +54 -0
- package/card/directives/card-actions.directive.d.ts +7 -0
- package/card/directives/card-footer.directive.d.ts +7 -0
- package/card/directives/card-header.directive.d.ts +7 -0
- package/card/directives/card-image.directive.d.ts +7 -0
- package/card/upd-card.module.d.ts +14 -0
- package/dropdown/dropdown.component.d.ts +63 -0
- package/dropdown/{src/models/dropdown-item.ts → models/dropdown-item.d.ts} +0 -2
- package/dropdown/upd-dropdown.module.d.ts +12 -0
- package/esm2022/button/button.component.mjs +163 -0
- package/esm2022/button/index.mjs +2 -0
- package/esm2022/button/public-api.mjs +3 -0
- package/esm2022/button/upd-button.module.mjs +24 -0
- package/esm2022/button/updevs-components-button.mjs +5 -0
- package/esm2022/card/card.component.mjs +136 -0
- package/esm2022/card/directives/card-actions.directive.mjs +16 -0
- package/esm2022/card/directives/card-footer.directive.mjs +16 -0
- package/esm2022/card/directives/card-header.directive.mjs +16 -0
- package/esm2022/card/directives/card-image.directive.mjs +16 -0
- package/esm2022/card/directives/public-api.mjs +5 -0
- package/esm2022/card/index.mjs +2 -0
- package/esm2022/card/public-api.mjs +4 -0
- package/esm2022/card/types/card-state.type.mjs +2 -0
- package/esm2022/card/types/card-style.type.mjs +2 -0
- package/esm2022/card/types/hover-effect.type.mjs +2 -0
- package/esm2022/card/types/ribbon-style.type.mjs +2 -0
- package/esm2022/card/types/status-position.type.mjs +2 -0
- package/esm2022/card/upd-card.module.mjs +50 -0
- package/esm2022/card/updevs-components-card.mjs +5 -0
- package/esm2022/dropdown/dropdown.component.mjs +145 -0
- package/esm2022/dropdown/index.mjs +2 -0
- package/esm2022/dropdown/models/dropdown-item.mjs +2 -0
- package/esm2022/dropdown/models/dropdown-item.type.mjs +2 -0
- package/esm2022/dropdown/models/public-api.mjs +3 -0
- package/esm2022/dropdown/public-api.mjs +4 -0
- package/esm2022/dropdown/upd-dropdown.module.mjs +40 -0
- package/esm2022/dropdown/updevs-components-dropdown.mjs +5 -0
- package/esm2022/form/form.module.mjs +18 -0
- package/esm2022/form/index.mjs +2 -0
- package/esm2022/form/public-api.mjs +2 -0
- package/esm2022/form/updevs-components-form.mjs +5 -0
- package/esm2022/form-controls/checkbox/checkbox.component.mjs +68 -0
- package/esm2022/form-controls/checkbox/index.mjs +2 -0
- package/esm2022/form-controls/checkbox/public-api.mjs +3 -0
- package/esm2022/form-controls/checkbox/upd-checkbox.module.mjs +28 -0
- package/esm2022/form-controls/checkbox/updevs-components-form-controls-checkbox.mjs +5 -0
- package/esm2022/form-controls/input/directives/input-append.directive.mjs +16 -0
- package/esm2022/form-controls/input/directives/input-prepend.directive.mjs +16 -0
- package/esm2022/form-controls/input/directives/public-api.mjs +3 -0
- package/esm2022/form-controls/input/index.mjs +2 -0
- package/esm2022/form-controls/input/input.component.mjs +155 -0
- package/esm2022/form-controls/input/public-api.mjs +5 -0
- package/esm2022/form-controls/input/types/input.type.mjs +2 -0
- package/esm2022/form-controls/input/types/loader-position.type.mjs +2 -0
- package/esm2022/form-controls/input/types/public-api.mjs +3 -0
- package/esm2022/form-controls/input/upd-input.module.mjs +46 -0
- package/esm2022/form-controls/input/updevs-components-form-controls-input.mjs +5 -0
- package/esm2022/form-controls/radio/index.mjs +2 -0
- package/esm2022/form-controls/radio/public-api.mjs +3 -0
- package/esm2022/form-controls/radio/radio.component.mjs +64 -0
- package/esm2022/form-controls/radio/upd-radio.module.mjs +24 -0
- package/esm2022/form-controls/radio/updevs-components-form-controls-radio.mjs +5 -0
- package/esm2022/form-controls/select/components/multiple/select-multiple.component.mjs +65 -0
- package/esm2022/form-controls/select/components/single/select.component.mjs +53 -0
- package/esm2022/form-controls/select/index.mjs +2 -0
- package/esm2022/form-controls/select/models/abstractions/base-select.component.mjs +208 -0
- package/esm2022/form-controls/select/models/public-api.mjs +2 -0
- package/esm2022/form-controls/select/models/select-item.mjs +2 -0
- package/esm2022/form-controls/select/public-api.mjs +5 -0
- package/esm2022/form-controls/select/upd-select.module.mjs +53 -0
- package/esm2022/form-controls/select/updevs-components-form-controls-select.mjs +5 -0
- package/esm2022/form-controls/textarea/index.mjs +2 -0
- package/esm2022/form-controls/textarea/public-api.mjs +3 -0
- package/esm2022/form-controls/textarea/textarea.component.mjs +62 -0
- package/esm2022/form-controls/textarea/upd-textarea.module.mjs +24 -0
- package/esm2022/form-controls/textarea/updevs-components-form-controls-textarea.mjs +5 -0
- package/esm2022/form-controls/time-picker/index.mjs +2 -0
- package/esm2022/form-controls/time-picker/public-api.mjs +4 -0
- package/esm2022/form-controls/time-picker/time-picker.component.mjs +130 -0
- package/esm2022/form-controls/time-picker/time-selector/time-selector.component.mjs +124 -0
- package/esm2022/form-controls/time-picker/upd-time-picker.module.mjs +60 -0
- package/esm2022/form-controls/time-picker/updevs-components-form-controls-time-picker.mjs +5 -0
- package/esm2022/layout/abstractions/base-page.component.mjs +24 -0
- package/esm2022/layout/abstractions/public-api.mjs +2 -0
- package/esm2022/layout/index.mjs +2 -0
- package/esm2022/layout/layouts/blank-layout/blank-layout.component.mjs +11 -0
- package/esm2022/layout/layouts/blank-layout/blank-layout.module.mjs +24 -0
- package/esm2022/layout/layouts/public-api.mjs +5 -0
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.mjs +31 -0
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.mjs +81 -0
- package/esm2022/layout/models/public-api.mjs +2 -0
- package/esm2022/layout/models/upd-layout-config.model.mjs +30 -0
- package/esm2022/layout/models/upd-layout.config.mjs +2 -0
- package/esm2022/layout/pages/auth-flow/auth-flow-routing.module.mjs +28 -0
- package/esm2022/layout/pages/auth-flow/auth-flow.module.mjs +46 -0
- package/esm2022/layout/pages/auth-flow/logged-out/logged-out.component.mjs +11 -0
- package/esm2022/layout/pages/auth-flow/login/login.component.mjs +27 -0
- package/esm2022/layout/pages/auth-flow/oauth-callback/oauth-callback.component.mjs +11 -0
- package/esm2022/layout/pages/auth-flow/public-api.mjs +6 -0
- package/esm2022/layout/pages/public-api.mjs +2 -0
- package/esm2022/layout/partials/footer/footer-copyright.directive.mjs +13 -0
- package/esm2022/layout/partials/footer/footer.component.mjs +67 -0
- package/esm2022/layout/partials/footer/public-api.mjs +3 -0
- package/esm2022/layout/partials/header/header-style.type.mjs +2 -0
- package/esm2022/layout/partials/header/header.component.mjs +77 -0
- package/esm2022/layout/partials/header/public-api.mjs +3 -0
- package/esm2022/layout/partials/page-header/page-header.component.mjs +14 -0
- package/esm2022/layout/partials/page-header/public-api.mjs +2 -0
- package/esm2022/layout/partials/public-api.mjs +5 -0
- package/esm2022/layout/partials/sidebar/public-api.mjs +2 -0
- package/esm2022/layout/partials/sidebar/sidebar.component.mjs +143 -0
- package/esm2022/layout/public-api.mjs +8 -0
- package/esm2022/layout/services/public-api.mjs +2 -0
- package/esm2022/layout/services/upd-layout-config.service.mjs +21 -0
- package/esm2022/layout/tools/layout.constants.mjs +15 -0
- package/esm2022/layout/upd-layout.module.mjs +43 -0
- package/esm2022/layout/updevs-components-layout.mjs +5 -0
- package/esm2022/lib/index.mjs +2 -0
- package/esm2022/lib/public-api.mjs +3 -0
- package/esm2022/lib/types/component-size.type.mjs +2 -0
- package/esm2022/lib/types/public-api.mjs +3 -0
- package/esm2022/lib/types/validation-status.type.mjs +2 -0
- package/esm2022/lib/upd-components.module.mjs +14 -0
- package/esm2022/link/index.mjs +2 -0
- package/esm2022/link/link.component.mjs +51 -0
- package/esm2022/link/public-api.mjs +4 -0
- package/esm2022/link/target.type.mjs +2 -0
- package/esm2022/link/upd-link.module.mjs +24 -0
- package/esm2022/link/updevs-components-link.mjs +5 -0
- package/esm2022/list/index.mjs +2 -0
- package/esm2022/list/list.component.mjs +134 -0
- package/esm2022/list/models/badge-position.type.mjs +2 -0
- package/esm2022/list/models/list-item.mjs +2 -0
- package/esm2022/list/models/list-item.model.mjs +15 -0
- package/esm2022/list/models/public-api.mjs +3 -0
- package/esm2022/list/public-api.mjs +4 -0
- package/esm2022/list/upd-list.module.mjs +43 -0
- package/esm2022/list/updevs-components-list.mjs +5 -0
- package/esm2022/popover/index.mjs +2 -0
- package/esm2022/popover/popover.component.mjs +65 -0
- package/esm2022/popover/popover.directive.mjs +129 -0
- package/esm2022/popover/public-api.mjs +4 -0
- package/esm2022/popover/upd-popover.module.mjs +29 -0
- package/esm2022/popover/updevs-components-popover.mjs +5 -0
- package/esm2022/public-api.mjs +2 -0
- package/esm2022/updevs-components.mjs +5 -0
- package/fesm2022/updevs-components-button.mjs +191 -0
- package/fesm2022/updevs-components-button.mjs.map +1 -0
- package/fesm2022/updevs-components-card.mjs +238 -0
- package/fesm2022/updevs-components-card.mjs.map +1 -0
- package/fesm2022/updevs-components-dropdown.mjs +189 -0
- package/fesm2022/updevs-components-dropdown.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-checkbox.mjs +100 -0
- package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-input.mjs +229 -0
- package/fesm2022/updevs-components-form-controls-input.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-radio.mjs +92 -0
- package/fesm2022/updevs-components-form-controls-radio.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-select.mjs +371 -0
- package/fesm2022/updevs-components-form-controls-select.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-textarea.mjs +90 -0
- package/fesm2022/updevs-components-form-controls-textarea.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-time-picker.mjs +344 -0
- package/fesm2022/updevs-components-form-controls-time-picker.mjs.map +1 -0
- package/fesm2022/updevs-components-form.mjs +25 -0
- package/fesm2022/updevs-components-form.mjs.map +1 -0
- package/fesm2022/updevs-components-layout.mjs +670 -0
- package/fesm2022/updevs-components-layout.mjs.map +1 -0
- package/fesm2022/updevs-components-link.mjs +79 -0
- package/fesm2022/updevs-components-link.mjs.map +1 -0
- package/fesm2022/updevs-components-list.mjs +226 -0
- package/fesm2022/updevs-components-list.mjs.map +1 -0
- package/fesm2022/updevs-components-popover.mjs +223 -0
- package/fesm2022/updevs-components-popover.mjs.map +1 -0
- package/fesm2022/updevs-components.mjs +21 -0
- package/fesm2022/updevs-components.mjs.map +1 -0
- package/form/form.module.d.ts +7 -0
- package/form-controls/checkbox/checkbox.component.d.ts +25 -0
- package/form-controls/checkbox/{src/public-api.ts → public-api.d.ts} +0 -1
- package/form-controls/checkbox/upd-checkbox.module.d.ts +9 -0
- package/form-controls/input/directives/input-append.directive.d.ts +7 -0
- package/form-controls/input/directives/input-prepend.directive.d.ts +7 -0
- package/form-controls/input/input.component.d.ts +54 -0
- package/form-controls/input/upd-input.module.d.ts +13 -0
- package/form-controls/radio/radio.component.d.ts +24 -0
- package/form-controls/radio/upd-radio.module.d.ts +8 -0
- package/form-controls/select/components/multiple/select-multiple.component.d.ts +18 -0
- package/form-controls/select/components/single/select.component.d.ts +20 -0
- package/form-controls/select/models/abstractions/base-select.component.d.ts +80 -0
- package/form-controls/select/{src/models/select-item.ts → models/select-item.d.ts} +0 -1
- package/form-controls/select/upd-select.module.d.ts +15 -0
- package/form-controls/textarea/textarea.component.d.ts +23 -0
- package/form-controls/textarea/upd-textarea.module.d.ts +8 -0
- package/form-controls/time-picker/time-picker.component.d.ts +78 -0
- package/form-controls/time-picker/time-selector/time-selector.component.d.ts +69 -0
- package/form-controls/time-picker/upd-time-picker.module.d.ts +17 -0
- package/index.d.ts +5 -0
- package/layout/abstractions/base-page.component.d.ts +12 -0
- package/layout/layouts/blank-layout/blank-layout.component.d.ts +5 -0
- package/layout/layouts/blank-layout/blank-layout.module.d.ts +8 -0
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.d.ts +12 -0
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.d.ts +20 -0
- package/layout/models/upd-layout-config.model.d.ts +39 -0
- package/layout/pages/auth-flow/auth-flow-routing.module.d.ts +12 -0
- package/layout/pages/auth-flow/auth-flow.module.d.ts +13 -0
- package/layout/pages/auth-flow/logged-out/logged-out.component.d.ts +5 -0
- package/layout/pages/auth-flow/login/login.component.d.ts +12 -0
- package/layout/pages/auth-flow/oauth-callback/oauth-callback.component.d.ts +5 -0
- package/layout/partials/footer/footer-copyright.directive.d.ts +5 -0
- package/layout/partials/footer/footer.component.d.ts +43 -0
- package/layout/partials/header/header.component.d.ts +31 -0
- package/layout/partials/page-header/page-header.component.d.ts +7 -0
- package/layout/partials/sidebar/sidebar.component.d.ts +19 -0
- package/layout/services/upd-layout-config.service.d.ts +15 -0
- package/layout/{src/tools/layout.constants.ts → tools/layout.constants.d.ts} +3 -6
- package/layout/upd-layout.module.d.ts +18 -0
- package/lib/upd-components.module.d.ts +6 -0
- package/link/link.component.d.ts +22 -0
- package/link/upd-link.module.d.ts +8 -0
- package/list/list.component.d.ts +61 -0
- package/list/{src/models/list-item.ts → models/list-item.d.ts} +0 -2
- package/list/{src/models/list-item.model.ts → models/list-item.model.d.ts} +5 -16
- package/list/upd-list.module.d.ts +13 -0
- package/package.json +114 -21
- package/popover/popover.component.d.ts +22 -0
- package/popover/popover.directive.d.ts +33 -0
- package/popover/upd-popover.module.d.ts +9 -0
- package/CHANGELOG.md +0 -8
- package/button/index.ts +0 -1
- package/button/ng-package.json +0 -7
- package/button/src/button.component.html +0 -8
- package/button/src/button.component.scss +0 -5
- package/button/src/button.component.spec.ts +0 -23
- package/button/src/button.component.ts +0 -154
- package/button/src/upd-button.module.ts +0 -17
- package/card/index.ts +0 -1
- package/card/ng-package.json +0 -7
- package/card/src/card.component.html +0 -105
- package/card/src/card.component.scss +0 -47
- package/card/src/card.component.spec.ts +0 -23
- package/card/src/card.component.ts +0 -112
- package/card/src/directives/card-actions.directive.spec.ts +0 -8
- package/card/src/directives/card-actions.directive.ts +0 -11
- package/card/src/directives/card-footer.directive.spec.ts +0 -8
- package/card/src/directives/card-footer.directive.ts +0 -11
- package/card/src/directives/card-header.directive.spec.ts +0 -8
- package/card/src/directives/card-header.directive.ts +0 -11
- package/card/src/directives/card-image.directive.spec.ts +0 -8
- package/card/src/directives/card-image.directive.ts +0 -11
- package/card/src/types/public-api.ts +0 -5
- package/card/src/upd-card.module.ts +0 -32
- package/dropdown/index.ts +0 -1
- package/dropdown/ng-package.json +0 -7
- package/dropdown/src/dropdown.component.html +0 -32
- package/dropdown/src/dropdown.component.scss +0 -19
- package/dropdown/src/dropdown.component.spec.ts +0 -23
- package/dropdown/src/dropdown.component.ts +0 -182
- package/dropdown/src/upd-dropdown.module.ts +0 -25
- package/form/index.ts +0 -1
- package/form/ng-package.json +0 -7
- package/form/src/form.module.ts +0 -10
- package/form-controls/checkbox/index.ts +0 -1
- package/form-controls/checkbox/ng-package.json +0 -7
- package/form-controls/checkbox/src/checkbox.component.html +0 -7
- package/form-controls/checkbox/src/checkbox.component.scss +0 -0
- package/form-controls/checkbox/src/checkbox.component.spec.ts +0 -23
- package/form-controls/checkbox/src/checkbox.component.ts +0 -48
- package/form-controls/checkbox/src/upd-checkbox.module.ts +0 -19
- package/form-controls/input/index.ts +0 -1
- package/form-controls/input/ng-package.json +0 -7
- package/form-controls/input/src/directives/input-append.directive.spec.ts +0 -8
- package/form-controls/input/src/directives/input-append.directive.ts +0 -11
- package/form-controls/input/src/directives/input-prepend.directive.spec.ts +0 -8
- package/form-controls/input/src/directives/input-prepend.directive.ts +0 -11
- package/form-controls/input/src/input.component.html +0 -82
- package/form-controls/input/src/input.component.scss +0 -13
- package/form-controls/input/src/input.component.spec.ts +0 -23
- package/form-controls/input/src/input.component.ts +0 -124
- package/form-controls/input/src/upd-input.module.ts +0 -29
- package/form-controls/radio/index.ts +0 -1
- package/form-controls/radio/ng-package.json +0 -7
- package/form-controls/radio/src/radio.component.html +0 -7
- package/form-controls/radio/src/radio.component.scss +0 -0
- package/form-controls/radio/src/radio.component.spec.ts +0 -23
- package/form-controls/radio/src/radio.component.ts +0 -47
- package/form-controls/radio/src/upd-radio.module.ts +0 -17
- package/form-controls/select/index.ts +0 -1
- package/form-controls/select/ng-package.json +0 -7
- package/form-controls/select/src/components/multiple/select-multiple.component.html +0 -41
- package/form-controls/select/src/components/multiple/select-multiple.component.scss +0 -6
- package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +0 -21
- package/form-controls/select/src/components/multiple/select-multiple.component.ts +0 -69
- package/form-controls/select/src/components/shared.scss +0 -40
- package/form-controls/select/src/components/single/select.component.html +0 -53
- package/form-controls/select/src/components/single/select.component.scss +0 -3
- package/form-controls/select/src/components/single/select.component.spec.ts +0 -23
- package/form-controls/select/src/components/single/select.component.ts +0 -58
- package/form-controls/select/src/models/abstractions/base-select.component.ts +0 -259
- package/form-controls/select/src/upd-select.module.ts +0 -32
- package/form-controls/textarea/index.ts +0 -1
- package/form-controls/textarea/ng-package.json +0 -7
- package/form-controls/textarea/src/textarea.component.html +0 -8
- package/form-controls/textarea/src/textarea.component.scss +0 -0
- package/form-controls/textarea/src/textarea.component.spec.ts +0 -23
- package/form-controls/textarea/src/textarea.component.ts +0 -47
- package/form-controls/textarea/src/upd-textarea.module.ts +0 -17
- package/form-controls/time-picker/index.ts +0 -1
- package/form-controls/time-picker/ng-package.json +0 -7
- package/form-controls/time-picker/src/time-picker.component.html +0 -17
- package/form-controls/time-picker/src/time-picker.component.scss +0 -10
- package/form-controls/time-picker/src/time-picker.component.spec.ts +0 -21
- package/form-controls/time-picker/src/time-picker.component.ts +0 -110
- package/form-controls/time-picker/src/time-selector/time-selector.component.html +0 -44
- package/form-controls/time-picker/src/time-selector/time-selector.component.scss +0 -47
- package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +0 -21
- package/form-controls/time-picker/src/time-selector/time-selector.component.ts +0 -107
- package/form-controls/time-picker/src/upd-time-picker.module.ts +0 -39
- package/index.ts +0 -1
- package/layout/index.ts +0 -1
- package/layout/ng-package.json +0 -7
- package/layout/src/abstractions/base-page.component.ts +0 -21
- package/layout/src/layouts/blank-layout/blank-layout.component.html +0 -1
- package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +0 -23
- package/layout/src/layouts/blank-layout/blank-layout.component.ts +0 -10
- package/layout/src/layouts/blank-layout/blank-layout.module.ts +0 -17
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +0 -14
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +0 -23
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +0 -31
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +0 -52
- package/layout/src/models/upd-layout-config.model.ts +0 -71
- package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +0 -21
- package/layout/src/pages/auth-flow/auth-flow.module.ts +0 -29
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +0 -1
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +0 -23
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +0 -10
- package/layout/src/pages/auth-flow/login/login.component.html +0 -96
- package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
- package/layout/src/pages/auth-flow/login/login.component.spec.ts +0 -23
- package/layout/src/pages/auth-flow/login/login.component.ts +0 -26
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +0 -1
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +0 -23
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +0 -10
- package/layout/src/partials/footer/footer-copyright.directive.spec.ts +0 -8
- package/layout/src/partials/footer/footer-copyright.directive.ts +0 -9
- package/layout/src/partials/footer/footer.component.html +0 -30
- package/layout/src/partials/footer/footer.component.scss +0 -0
- package/layout/src/partials/footer/footer.component.spec.ts +0 -23
- package/layout/src/partials/footer/footer.component.ts +0 -73
- package/layout/src/partials/header/header.component.html +0 -163
- package/layout/src/partials/header/header.component.scss +0 -0
- package/layout/src/partials/header/header.component.spec.ts +0 -23
- package/layout/src/partials/header/header.component.ts +0 -86
- package/layout/src/partials/page-header/page-header.component.html +0 -19
- package/layout/src/partials/page-header/page-header.component.scss +0 -0
- package/layout/src/partials/page-header/page-header.component.spec.ts +0 -23
- package/layout/src/partials/page-header/page-header.component.ts +0 -11
- package/layout/src/partials/sidebar/sidebar.component.html +0 -62
- package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
- package/layout/src/partials/sidebar/sidebar.component.spec.ts +0 -23
- package/layout/src/partials/sidebar/sidebar.component.ts +0 -161
- package/layout/src/services/upd-layout-config.service.spec.ts +0 -16
- package/layout/src/services/upd-layout-config.service.ts +0 -20
- package/layout/src/upd-layout.module.ts +0 -34
- package/link/index.ts +0 -1
- package/link/ng-package.json +0 -7
- package/link/src/link.component.html +0 -3
- package/link/src/link.component.scss +0 -3
- package/link/src/link.component.spec.ts +0 -23
- package/link/src/link.component.ts +0 -48
- package/link/src/upd-link.module.ts +0 -17
- package/list/index.ts +0 -1
- package/list/ng-package.json +0 -7
- package/list/src/list.component.html +0 -58
- package/list/src/list.component.scss +0 -21
- package/list/src/list.component.spec.ts +0 -23
- package/list/src/list.component.ts +0 -147
- package/list/src/upd-list.module.ts +0 -30
- package/ng-package.json +0 -10
- package/popover/index.ts +0 -1
- package/popover/ng-package.json +0 -7
- package/popover/src/popover.component.html +0 -20
- package/popover/src/popover.component.scss +0 -8
- package/popover/src/popover.component.spec.ts +0 -23
- package/popover/src/popover.component.ts +0 -53
- package/popover/src/popover.directive.spec.ts +0 -8
- package/popover/src/popover.directive.ts +0 -128
- package/popover/src/upd-popover.module.ts +0 -20
- package/src/lib/upd-components.module.ts +0 -6
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/button/{src/index.ts → index.d.ts} +0 -0
- /package/button/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/card/{src/directives/public-api.ts → directives/public-api.d.ts} +0 -0
- /package/card/{src/index.ts → index.d.ts} +0 -0
- /package/card/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/card/{src/types/card-state.type.ts → types/card-state.type.d.ts} +0 -0
- /package/card/{src/types/card-style.type.ts → types/card-style.type.d.ts} +0 -0
- /package/card/{src/types/hover-effect.type.ts → types/hover-effect.type.d.ts} +0 -0
- /package/card/{src/types/ribbon-style.type.ts → types/ribbon-style.type.d.ts} +0 -0
- /package/card/{src/types/status-position.type.ts → types/status-position.type.d.ts} +0 -0
- /package/dropdown/{src/index.ts → index.d.ts} +0 -0
- /package/dropdown/{src/models/dropdown-item.type.ts → models/dropdown-item.type.d.ts} +0 -0
- /package/dropdown/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
- /package/dropdown/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/{form-controls/time-picker/src → esm2022/form-controls/time-picker}/assets/i18n/en.json +0 -0
- /package/{form-controls/time-picker/src → esm2022/form-controls/time-picker}/assets/i18n/pt.json +0 -0
- /package/{layout/src → esm2022/layout}/assets/i18n/en.json +0 -0
- /package/{layout/src → esm2022/layout}/assets/i18n/pt.json +0 -0
- /package/{list/src → esm2022/list}/assets/i18n/en.json +0 -0
- /package/{list/src → esm2022/list}/assets/i18n/pt.json +0 -0
- /package/form/{src/index.ts → index.d.ts} +0 -0
- /package/form/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/form-controls/checkbox/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/input/{src/directives/public-api.ts → directives/public-api.d.ts} +0 -0
- /package/form-controls/input/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/input/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/form-controls/input/{src/types/input.type.ts → types/input.type.d.ts} +0 -0
- /package/form-controls/input/{src/types/loader-position.type.ts → types/loader-position.type.d.ts} +0 -0
- /package/form-controls/input/{src/types/public-api.ts → types/public-api.d.ts} +0 -0
- /package/form-controls/radio/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/radio/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/form-controls/select/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/select/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
- /package/form-controls/select/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/form-controls/textarea/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/textarea/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/form-controls/time-picker/{src/index.ts → index.d.ts} +0 -0
- /package/form-controls/time-picker/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/layout/{src/abstractions/public-api.ts → abstractions/public-api.d.ts} +0 -0
- /package/layout/{src/index.ts → index.d.ts} +0 -0
- /package/layout/{src/layouts/public-api.ts → layouts/public-api.d.ts} +0 -0
- /package/layout/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
- /package/layout/{src/models/upd-layout.config.ts → models/upd-layout.config.d.ts} +0 -0
- /package/layout/{src/pages/auth-flow/public-api.ts → pages/auth-flow/public-api.d.ts} +0 -0
- /package/layout/{src/pages/public-api.ts → pages/public-api.d.ts} +0 -0
- /package/layout/{src/partials/footer/public-api.ts → partials/footer/public-api.d.ts} +0 -0
- /package/layout/{src/partials/header/header-style.type.ts → partials/header/header-style.type.d.ts} +0 -0
- /package/layout/{src/partials/header/public-api.ts → partials/header/public-api.d.ts} +0 -0
- /package/layout/{src/partials/page-header/public-api.ts → partials/page-header/public-api.d.ts} +0 -0
- /package/layout/{src/partials/public-api.ts → partials/public-api.d.ts} +0 -0
- /package/layout/{src/partials/sidebar/public-api.ts → partials/sidebar/public-api.d.ts} +0 -0
- /package/layout/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/layout/{src/services/public-api.ts → services/public-api.d.ts} +0 -0
- /package/{link/src/index.ts → lib/index.d.ts} +0 -0
- /package/{src/lib/public-api.ts → lib/public-api.d.ts} +0 -0
- /package/{src/lib/types/component-size.type.ts → lib/types/component-size.type.d.ts} +0 -0
- /package/{src/lib/types/public-api.ts → lib/types/public-api.d.ts} +0 -0
- /package/{src/lib/types/validation-status.type.ts → lib/types/validation-status.type.d.ts} +0 -0
- /package/{list/src/index.ts → link/index.d.ts} +0 -0
- /package/link/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/link/{src/target.type.ts → target.type.d.ts} +0 -0
- /package/{popover/src/index.ts → list/index.d.ts} +0 -0
- /package/list/{src/models/badge-position.type.ts → models/badge-position.type.d.ts} +0 -0
- /package/list/{src/models/public-api.ts → models/public-api.d.ts} +0 -0
- /package/list/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/{src/lib/index.ts → popover/index.d.ts} +0 -0
- /package/popover/{src/public-api.ts → public-api.d.ts} +0 -0
- /package/{src/public-api.ts → public-api.d.ts} +0 -0
@@ -0,0 +1,223 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ViewEncapsulation, HostBinding, Input, inject, ElementRef, Renderer2, ViewContainerRef, NgZone, Injector, Directive, HostListener, NgModule } from '@angular/core';
|
3
|
+
import * as i1 from '@angular/common';
|
4
|
+
import { CommonModule } from '@angular/common';
|
5
|
+
import { PositioningService, DynamicComponentLoaderService } from '@updevs/sdk/layout';
|
6
|
+
|
7
|
+
class PopoverComponent {
|
8
|
+
constructor() {
|
9
|
+
this.classes = '';
|
10
|
+
this.popperPlacement = '';
|
11
|
+
this.role = 'tooltip';
|
12
|
+
this.placement = 'top';
|
13
|
+
this._isVisible = false;
|
14
|
+
}
|
15
|
+
get isVisible() {
|
16
|
+
return this._isVisible;
|
17
|
+
}
|
18
|
+
ngOnInit() {
|
19
|
+
this.updateClasses();
|
20
|
+
}
|
21
|
+
ngOnChanges(changes) {
|
22
|
+
this.updateClasses();
|
23
|
+
}
|
24
|
+
setVisible(isVisible) {
|
25
|
+
this._isVisible = isVisible;
|
26
|
+
this.updateClasses();
|
27
|
+
}
|
28
|
+
updateClasses() {
|
29
|
+
this.popperPlacement = this.placement;
|
30
|
+
this.classes = [
|
31
|
+
'popover',
|
32
|
+
'bs-popover-auto',
|
33
|
+
!this._isVisible ? 'fade' : '',
|
34
|
+
this._isVisible ? 'show' : '',
|
35
|
+
'upd-popover',
|
36
|
+
`-${this.placement}`,
|
37
|
+
...(this.customClasses?.split(' ') || [])
|
38
|
+
].join(' ');
|
39
|
+
}
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.1", type: PopoverComponent, selector: "upd-popover", inputs: { title: "title", text: "text", titleTemplate: "titleTemplate", template: "template", placement: "placement", customClasses: "customClasses" }, host: { properties: { "class": "this.classes", "attr.data-popper-placement": "this.popperPlacement", "role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: "<div class=\"popover-arrow upd-popover-arrow -{{placement}}\"></div>\n@if (!!title || !!titleTemplate) {\n @if (!!title) {\n <h3 [innerHTML]=\"title\" class=\"popover-header\"></h3>\n } @else {\n <div class=\"popover-header\">\n <ng-template [ngTemplateOutlet]=\"titleTemplate!\"></ng-template>\n </div>\n }\n}\n<div class=\"popover-body\">\n @if (!!text) {\n <span [innerHTML]=\"text\"></span>\n } @else {\n @if (!template) {\n <ng-content></ng-content>\n } @else {\n <ng-template [ngTemplateOutlet]=\"template!\"></ng-template>\n }\n }\n</div>\n", styles: [".upd-popover{position:absolute;margin:0}.upd-popover-arrow{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
42
|
+
}
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: PopoverComponent, decorators: [{
|
44
|
+
type: Component,
|
45
|
+
args: [{ selector: 'upd-popover', encapsulation: ViewEncapsulation.None, template: "<div class=\"popover-arrow upd-popover-arrow -{{placement}}\"></div>\n@if (!!title || !!titleTemplate) {\n @if (!!title) {\n <h3 [innerHTML]=\"title\" class=\"popover-header\"></h3>\n } @else {\n <div class=\"popover-header\">\n <ng-template [ngTemplateOutlet]=\"titleTemplate!\"></ng-template>\n </div>\n }\n}\n<div class=\"popover-body\">\n @if (!!text) {\n <span [innerHTML]=\"text\"></span>\n } @else {\n @if (!template) {\n <ng-content></ng-content>\n } @else {\n <ng-template [ngTemplateOutlet]=\"template!\"></ng-template>\n }\n }\n</div>\n", styles: [".upd-popover{position:absolute;margin:0}.upd-popover-arrow{position:absolute}\n"] }]
|
46
|
+
}], propDecorators: { classes: [{
|
47
|
+
type: HostBinding,
|
48
|
+
args: ['class']
|
49
|
+
}], popperPlacement: [{
|
50
|
+
type: HostBinding,
|
51
|
+
args: ['attr.data-popper-placement']
|
52
|
+
}], role: [{
|
53
|
+
type: HostBinding,
|
54
|
+
args: ['role']
|
55
|
+
}], title: [{
|
56
|
+
type: Input
|
57
|
+
}], text: [{
|
58
|
+
type: Input
|
59
|
+
}], titleTemplate: [{
|
60
|
+
type: Input
|
61
|
+
}], template: [{
|
62
|
+
type: Input
|
63
|
+
}], placement: [{
|
64
|
+
type: Input
|
65
|
+
}], customClasses: [{
|
66
|
+
type: Input
|
67
|
+
}] } });
|
68
|
+
|
69
|
+
class PopoverDirective {
|
70
|
+
constructor() {
|
71
|
+
this.placement = 'top';
|
72
|
+
/**
|
73
|
+
* This makes the popover behave like a tooltip.
|
74
|
+
* It means it'll show/hide depending on whether the mouse is over or not the element.
|
75
|
+
*/
|
76
|
+
this.actAsTooltip = false;
|
77
|
+
this.elementRef = inject(ElementRef);
|
78
|
+
this.renderer = inject(Renderer2);
|
79
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
80
|
+
this.ngZone = inject(NgZone);
|
81
|
+
this.injector = inject(Injector);
|
82
|
+
this.positioningService = inject(PositioningService);
|
83
|
+
this.dynamicComponentLoaderService = inject(DynamicComponentLoaderService);
|
84
|
+
}
|
85
|
+
onMouseEnter() {
|
86
|
+
if (this.actAsTooltip) {
|
87
|
+
this.initPopover();
|
88
|
+
}
|
89
|
+
}
|
90
|
+
onMouseLeave() {
|
91
|
+
if (this.actAsTooltip) {
|
92
|
+
this.disposePopover();
|
93
|
+
}
|
94
|
+
}
|
95
|
+
onClick() {
|
96
|
+
if (!this.actAsTooltip) {
|
97
|
+
if (this.popoverComponentRef?.instance.isVisible) {
|
98
|
+
this.disposePopover();
|
99
|
+
}
|
100
|
+
else {
|
101
|
+
this.initPopover();
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
initPopover() {
|
106
|
+
this.setupPopover();
|
107
|
+
this.popoverComponentRef.instance.setVisible(true);
|
108
|
+
this.ngZone.runOutsideAngular(() => this.positioningService
|
109
|
+
.computePosition(this.elementRef, this.popoverComponentRef.location, { placement: this.placement })
|
110
|
+
.subscribe(resp => this.updatePosition(resp)));
|
111
|
+
}
|
112
|
+
disposePopover() {
|
113
|
+
this.viewContainerRef.clear();
|
114
|
+
this.popoverComponentRef.instance.setVisible(false);
|
115
|
+
}
|
116
|
+
setupPopover() {
|
117
|
+
this.viewContainerRef.clear();
|
118
|
+
this.popoverComponentRef = this.dynamicComponentLoaderService.load(PopoverComponent, this.viewContainerRef, this.injector);
|
119
|
+
this.popoverComponentRef.instance.title = this.title;
|
120
|
+
this.popoverComponentRef.instance.text = this.text;
|
121
|
+
this.popoverComponentRef.instance.titleTemplate = this.popoverTitleTemplate;
|
122
|
+
this.popoverComponentRef.instance.template = this.popoverTemplate;
|
123
|
+
this.popoverComponentRef.instance.placement = this.placement;
|
124
|
+
this.popoverComponentRef.instance.customClasses = this.customClasses;
|
125
|
+
}
|
126
|
+
updatePosition(result) {
|
127
|
+
const nativeElement = this.popoverComponentRef.location.nativeElement;
|
128
|
+
const arrowElement = this.popoverComponentRef.location.nativeElement.querySelector('.popover-arrow');
|
129
|
+
const popoverBox = nativeElement.getBoundingClientRect();
|
130
|
+
const arrowBox = arrowElement.getBoundingClientRect();
|
131
|
+
switch (this.placement) {
|
132
|
+
case 'top':
|
133
|
+
this.renderer.setStyle(nativeElement, 'top', `${result.y - arrowBox.height}px`);
|
134
|
+
this.renderer.setStyle(nativeElement, 'left', `${result.x}px`);
|
135
|
+
this.renderer.setStyle(arrowElement, 'left', `${(popoverBox.width / 2) - (arrowBox.width / 2)}px`);
|
136
|
+
break;
|
137
|
+
case 'bottom':
|
138
|
+
this.renderer.setStyle(nativeElement, 'top', `${result.y + arrowBox.height}px`);
|
139
|
+
this.renderer.setStyle(nativeElement, 'left', `${result.x}px`);
|
140
|
+
this.renderer.setStyle(arrowElement, 'left', `${(popoverBox.width / 2) - (arrowBox.width / 2)}px`);
|
141
|
+
break;
|
142
|
+
case 'left':
|
143
|
+
this.renderer.setStyle(nativeElement, 'top', `${result.y}px`);
|
144
|
+
this.renderer.setStyle(nativeElement, 'left', `${result.x - arrowBox.width}px`);
|
145
|
+
this.renderer.setStyle(arrowElement, 'top', `${(popoverBox.height / 2) - (arrowBox.height / 2)}px`);
|
146
|
+
break;
|
147
|
+
case 'right':
|
148
|
+
this.renderer.setStyle(nativeElement, 'top', `${result.y}px`);
|
149
|
+
this.renderer.setStyle(nativeElement, 'left', `${result.x + arrowBox.width}px`);
|
150
|
+
this.renderer.setStyle(arrowElement, 'top', `${(popoverBox.height / 2) - (arrowBox.height / 2)}px`);
|
151
|
+
break;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: PopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
155
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: PopoverDirective, selector: "[updPopover]", inputs: { text: ["updPopover", "text"], title: ["updPopoverTitle", "title"], popoverTitleTemplate: ["updPopoverTitleTemplate", "popoverTitleTemplate"], popoverTemplate: ["updPopoverTemplate", "popoverTemplate"], placement: ["updPopoverPlacement", "placement"], customClasses: ["updPopoverCustomClasses", "customClasses"], actAsTooltip: ["updPopoverActAsTooltip", "actAsTooltip"] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "onClick()" } }, ngImport: i0 }); }
|
156
|
+
}
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: PopoverDirective, decorators: [{
|
158
|
+
type: Directive,
|
159
|
+
args: [{
|
160
|
+
selector: '[updPopover]'
|
161
|
+
}]
|
162
|
+
}], propDecorators: { text: [{
|
163
|
+
type: Input,
|
164
|
+
args: ['updPopover']
|
165
|
+
}], title: [{
|
166
|
+
type: Input,
|
167
|
+
args: ['updPopoverTitle']
|
168
|
+
}], popoverTitleTemplate: [{
|
169
|
+
type: Input,
|
170
|
+
args: ['updPopoverTitleTemplate']
|
171
|
+
}], popoverTemplate: [{
|
172
|
+
type: Input,
|
173
|
+
args: ['updPopoverTemplate']
|
174
|
+
}], placement: [{
|
175
|
+
type: Input,
|
176
|
+
args: ['updPopoverPlacement']
|
177
|
+
}], customClasses: [{
|
178
|
+
type: Input,
|
179
|
+
args: ['updPopoverCustomClasses']
|
180
|
+
}], actAsTooltip: [{
|
181
|
+
type: Input,
|
182
|
+
args: ['updPopoverActAsTooltip']
|
183
|
+
}], onMouseEnter: [{
|
184
|
+
type: HostListener,
|
185
|
+
args: ['mouseenter']
|
186
|
+
}], onMouseLeave: [{
|
187
|
+
type: HostListener,
|
188
|
+
args: ['mouseleave']
|
189
|
+
}], onClick: [{
|
190
|
+
type: HostListener,
|
191
|
+
args: ['click']
|
192
|
+
}] } });
|
193
|
+
|
194
|
+
class UpdPopoverModule {
|
195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
196
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: UpdPopoverModule, declarations: [PopoverComponent,
|
197
|
+
PopoverDirective], imports: [CommonModule], exports: [PopoverComponent,
|
198
|
+
PopoverDirective] }); }
|
199
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdPopoverModule, imports: [CommonModule] }); }
|
200
|
+
}
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdPopoverModule, decorators: [{
|
202
|
+
type: NgModule,
|
203
|
+
args: [{
|
204
|
+
imports: [
|
205
|
+
CommonModule
|
206
|
+
],
|
207
|
+
declarations: [
|
208
|
+
PopoverComponent,
|
209
|
+
PopoverDirective
|
210
|
+
],
|
211
|
+
exports: [
|
212
|
+
PopoverComponent,
|
213
|
+
PopoverDirective
|
214
|
+
]
|
215
|
+
}]
|
216
|
+
}] });
|
217
|
+
|
218
|
+
/**
|
219
|
+
* Generated bundle index. Do not edit.
|
220
|
+
*/
|
221
|
+
|
222
|
+
export { PopoverComponent, PopoverDirective, UpdPopoverModule };
|
223
|
+
//# sourceMappingURL=updevs-components-popover.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updevs-components-popover.mjs","sources":["../../../../projects/updevs/components/popover/src/popover.component.ts","../../../../projects/updevs/components/popover/src/popover.component.html","../../../../projects/updevs/components/popover/src/popover.directive.ts","../../../../projects/updevs/components/popover/src/upd-popover.module.ts","../../../../projects/updevs/components/popover/src/updevs-components-popover.ts"],"sourcesContent":["import { Component, Input, HostBinding, SimpleChanges, OnInit, OnChanges, ViewEncapsulation, TemplateRef } from '@angular/core';\nimport { TopBottomLeftRightType } from '@updevs/sdk/types';\n\n@Component({\n selector: 'upd-popover',\n templateUrl: './popover.component.html',\n styleUrls: ['./popover.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PopoverComponent implements OnInit, OnChanges {\n @HostBinding('class') classes = '';\n @HostBinding('attr.data-popper-placement') popperPlacement = '';\n @HostBinding('role') readonly role = 'tooltip';\n\n @Input() title?: string;\n @Input() text?: string;\n @Input() titleTemplate?: TemplateRef<any>;\n @Input() template?: TemplateRef<any>;\n @Input() placement: TopBottomLeftRightType = 'top';\n @Input() customClasses?: string;\n\n get isVisible(): boolean {\n return this._isVisible;\n }\n\n private _isVisible = false;\n\n ngOnInit(): void {\n this.updateClasses();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.updateClasses();\n }\n\n setVisible(isVisible: boolean): void {\n this._isVisible = isVisible;\n this.updateClasses();\n }\n\n private updateClasses(): void {\n this.popperPlacement = this.placement;\n this.classes = [\n 'popover',\n 'bs-popover-auto',\n !this._isVisible ? 'fade' : '',\n this._isVisible ? 'show' : '',\n 'upd-popover',\n `-${this.placement}`,\n ...(this.customClasses?.split(' ') || [])\n ].join(' ');\n }\n}\n","<div class=\"popover-arrow upd-popover-arrow -{{placement}}\"></div>\n@if (!!title || !!titleTemplate) {\n @if (!!title) {\n <h3 [innerHTML]=\"title\" class=\"popover-header\"></h3>\n } @else {\n <div class=\"popover-header\">\n <ng-template [ngTemplateOutlet]=\"titleTemplate!\"></ng-template>\n </div>\n }\n}\n<div class=\"popover-body\">\n @if (!!text) {\n <span [innerHTML]=\"text\"></span>\n } @else {\n @if (!template) {\n <ng-content></ng-content>\n } @else {\n <ng-template [ngTemplateOutlet]=\"template!\"></ng-template>\n }\n }\n</div>\n","import {\n Directive,\n Input,\n TemplateRef,\n ViewContainerRef,\n Renderer2,\n ElementRef,\n Injector,\n NgZone,\n ComponentRef,\n HostListener, inject\n} from '@angular/core';\nimport { TopBottomLeftRightType } from '@updevs/sdk/types';\nimport { PositioningService, ComputePositionResult, DynamicComponentLoaderService } from '@updevs/sdk/layout';\n\nimport { PopoverComponent } from './popover.component';\n\n@Directive({\n selector: '[updPopover]'\n})\nexport class PopoverDirective {\n @Input('updPopover') text?: string;\n @Input('updPopoverTitle') title?: string;\n @Input('updPopoverTitleTemplate') popoverTitleTemplate?: TemplateRef<any>;\n @Input('updPopoverTemplate') popoverTemplate?: TemplateRef<any>;\n @Input('updPopoverPlacement') placement: TopBottomLeftRightType = 'top';\n @Input('updPopoverCustomClasses') customClasses?: string;\n /**\n * This makes the popover behave like a tooltip.\n * It means it'll show/hide depending on whether the mouse is over or not the element.\n */\n @Input('updPopoverActAsTooltip') actAsTooltip = false;\n\n private popoverComponentRef?: ComponentRef<PopoverComponent>;\n\n private readonly elementRef = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly ngZone = inject(NgZone);\n private readonly injector = inject(Injector);\n private readonly positioningService = inject(PositioningService);\n private readonly dynamicComponentLoaderService = inject(DynamicComponentLoaderService);\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.actAsTooltip) {\n this.initPopover();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.actAsTooltip) {\n this.disposePopover();\n }\n }\n\n @HostListener('click')\n onClick(): void {\n if (!this.actAsTooltip) {\n if (this.popoverComponentRef?.instance.isVisible) {\n this.disposePopover();\n } else {\n this.initPopover();\n }\n }\n }\n\n private initPopover(): void {\n this.setupPopover();\n this.popoverComponentRef!.instance.setVisible(true);\n this.ngZone.runOutsideAngular(() =>\n this.positioningService\n .computePosition(this.elementRef, this.popoverComponentRef!.location, { placement: this.placement })\n .subscribe(resp => this.updatePosition(resp))\n );\n }\n\n private disposePopover(): void {\n this.viewContainerRef.clear();\n this.popoverComponentRef!.instance.setVisible(false);\n }\n\n private setupPopover(): void {\n this.viewContainerRef.clear();\n\n this.popoverComponentRef = this.dynamicComponentLoaderService.load(PopoverComponent, this.viewContainerRef, this.injector);\n this.popoverComponentRef!.instance.title = this.title;\n this.popoverComponentRef!.instance.text = this.text;\n this.popoverComponentRef!.instance.titleTemplate = this.popoverTitleTemplate;\n this.popoverComponentRef!.instance.template = this.popoverTemplate;\n this.popoverComponentRef!.instance.placement = this.placement;\n this.popoverComponentRef!.instance.customClasses = this.customClasses;\n }\n\n private updatePosition(result: ComputePositionResult): void {\n const nativeElement = this.popoverComponentRef!.location.nativeElement;\n const arrowElement = this.popoverComponentRef!.location.nativeElement.querySelector('.popover-arrow');\n const popoverBox = nativeElement.getBoundingClientRect();\n const arrowBox = arrowElement.getBoundingClientRect();\n\n switch (this.placement) {\n case 'top':\n this.renderer.setStyle(nativeElement, 'top', `${result.y - arrowBox.height}px`);\n this.renderer.setStyle(nativeElement, 'left', `${result.x}px`);\n this.renderer.setStyle(arrowElement, 'left', `${(popoverBox.width / 2) - (arrowBox.width / 2)}px`);\n break;\n case 'bottom':\n this.renderer.setStyle(nativeElement, 'top', `${result.y + arrowBox.height}px`);\n this.renderer.setStyle(nativeElement, 'left', `${result.x}px`);\n this.renderer.setStyle(arrowElement, 'left', `${(popoverBox.width / 2) - (arrowBox.width / 2)}px`);\n break;\n case 'left':\n this.renderer.setStyle(nativeElement, 'top', `${result.y}px`);\n this.renderer.setStyle(nativeElement, 'left', `${result.x - arrowBox.width}px`);\n this.renderer.setStyle(arrowElement, 'top', `${(popoverBox.height / 2) - (arrowBox.height / 2)}px`);\n break;\n case 'right':\n this.renderer.setStyle(nativeElement, 'top', `${result.y}px`);\n this.renderer.setStyle(nativeElement, 'left', `${result.x + arrowBox.width}px`);\n this.renderer.setStyle(arrowElement, 'top', `${(popoverBox.height / 2) - (arrowBox.height / 2)}px`);\n break;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { PopoverComponent } from './popover.component';\nimport { PopoverDirective } from './popover.directive';\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [\n PopoverComponent,\n PopoverDirective\n ],\n exports: [\n PopoverComponent,\n PopoverDirective\n ]\n})\nexport class UpdPopoverModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MASa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;QAO0B,IAAO,CAAA,OAAA,GAAG,EAAE,CAAC;QACQ,IAAe,CAAA,eAAA,GAAG,EAAE,CAAC;QAClC,IAAI,CAAA,IAAA,GAAG,SAAS,CAAC;QAMtC,IAAS,CAAA,SAAA,GAA2B,KAAK,CAAC;QAO3C,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;AA2B9B,KAAA;AA/BG,IAAA,IAAI,SAAS,GAAA;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;KAC1B;IAID,QAAQ,GAAA;QACJ,IAAI,CAAC,aAAa,EAAE,CAAC;KACxB;AAED,IAAA,WAAW,CAAC,OAAsB,EAAA;QAC9B,IAAI,CAAC,aAAa,EAAE,CAAC;KACxB;AAED,IAAA,UAAU,CAAC,SAAkB,EAAA;AACzB,QAAA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,EAAE,CAAC;KACxB;IAEO,aAAa,GAAA;AACjB,QAAA,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG;YACX,SAAS;YACT,iBAAiB;YACjB,CAAC,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,EAAE;YAC9B,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,EAAE;YAC7B,aAAa;YACb,CAAI,CAAA,EAAA,IAAI,CAAC,SAAS,CAAE,CAAA;YACpB,IAAI,IAAI,CAAC,aAAa,EAAE,KAA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+
|
4
|
+
class UpdComponentsModule {
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: UpdComponentsModule }); }
|
7
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdComponentsModule }); }
|
8
|
+
}
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: UpdComponentsModule, decorators: [{
|
10
|
+
type: NgModule,
|
11
|
+
args: [{
|
12
|
+
imports: []
|
13
|
+
}]
|
14
|
+
}] });
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Generated bundle index. Do not edit.
|
18
|
+
*/
|
19
|
+
|
20
|
+
export { UpdComponentsModule };
|
21
|
+
//# sourceMappingURL=updevs-components.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updevs-components.mjs","sources":["../../../../projects/updevs/components/src/lib/upd-components.module.ts","../../../../projects/updevs/components/src/updevs-components.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\n@NgModule({\n imports: []\n})\nexport class UpdComponentsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,mBAAmB,CAAA;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAnB,mBAAmB,EAAA,CAAA,CAAA,EAAA;+GAAnB,mBAAmB,EAAA,CAAA,CAAA,EAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACJD;;AAEG;;;;"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
export declare class FormModule {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.CommonModule], never>;
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
7
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { SimpleChanges, OnInit, OnChanges, EventEmitter } from '@angular/core';
|
2
|
+
import { ValidationStatusType } from '@updevs/components';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CheckboxComponent implements OnInit, OnChanges {
|
5
|
+
wrapperClasses: string;
|
6
|
+
label?: string;
|
7
|
+
value?: any;
|
8
|
+
customClasses?: string;
|
9
|
+
name?: string;
|
10
|
+
description?: string;
|
11
|
+
isDisabled: boolean;
|
12
|
+
isReadOnly: boolean;
|
13
|
+
isChecked: boolean;
|
14
|
+
isInline: boolean;
|
15
|
+
isSwitch: boolean;
|
16
|
+
validationStatus?: ValidationStatusType;
|
17
|
+
invalidStatusText?: string;
|
18
|
+
readonly changed: EventEmitter<boolean>;
|
19
|
+
classes: string[];
|
20
|
+
ngOnInit(): void;
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
22
|
+
private updateClasses;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "upd-checkbox", never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isInline": { "alias": "isInline"; "required": false; }; "isSwitch": { "alias": "isSwitch"; "required": false; }; "validationStatus": { "alias": "validationStatus"; "required": false; }; "invalidStatusText": { "alias": "invalidStatusText"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
25
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./checkbox.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/forms";
|
5
|
+
export declare class UpdCheckboxModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdCheckboxModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdCheckboxModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CheckboxComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdCheckboxModule>;
|
9
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class InputAppendDirective {
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputAppendDirective, never>;
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputAppendDirective, "ng-template[updInputAppend]", never, {}, {}, never, never, false, never>;
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class InputPrependDirective {
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPrependDirective, never>;
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputPrependDirective, "ng-template[updInputPrepend]", never, {}, {}, never, never, false, never>;
|
7
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { SimpleChanges, OnInit, OnChanges, TemplateRef, EventEmitter } from '@angular/core';
|
2
|
+
import { IconModel } from '@updevs/icons';
|
3
|
+
import { UpdMaskConfig } from '@updevs/sdk/mask';
|
4
|
+
import { ValidationStatusType, ComponentSizeType } from '@updevs/components';
|
5
|
+
import { InputType } from './types/input.type';
|
6
|
+
import { InputAppendDirective } from './directives/input-append.directive';
|
7
|
+
import { InputPrependDirective } from './directives/input-prepend.directive';
|
8
|
+
import { LoaderPositionType } from './types/loader-position.type';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
export declare class InputComponent implements OnInit, OnChanges {
|
11
|
+
hostWrapperClasses: string;
|
12
|
+
appendTemplate?: InputAppendDirective;
|
13
|
+
prependTemplate?: InputPrependDirective;
|
14
|
+
type: InputType;
|
15
|
+
placeholder: string;
|
16
|
+
label?: string;
|
17
|
+
mask?: string;
|
18
|
+
maskConfig?: UpdMaskConfig;
|
19
|
+
hint?: string;
|
20
|
+
hintTemplate?: TemplateRef<any>;
|
21
|
+
hintAsTooltip: boolean;
|
22
|
+
value?: any;
|
23
|
+
size: ComponentSizeType;
|
24
|
+
customClasses?: string;
|
25
|
+
wrapperClasses?: string;
|
26
|
+
name?: string;
|
27
|
+
maxLength?: number;
|
28
|
+
isDisabled: boolean;
|
29
|
+
isPlainText: boolean;
|
30
|
+
isReadOnly: boolean;
|
31
|
+
isLoading: boolean;
|
32
|
+
isRound: boolean;
|
33
|
+
isFlush: boolean;
|
34
|
+
isInputGroupFlat: boolean;
|
35
|
+
isPrependButton: boolean;
|
36
|
+
isAppendButton: boolean;
|
37
|
+
isFloating: boolean;
|
38
|
+
isRequired: boolean;
|
39
|
+
loaderPosition: LoaderPositionType;
|
40
|
+
prependIconModel?: IconModel;
|
41
|
+
appendIconModel?: IconModel;
|
42
|
+
validationStatus?: ValidationStatusType;
|
43
|
+
isValidationStatusLight: boolean;
|
44
|
+
invalidStatusText?: string;
|
45
|
+
readonly valueChange: EventEmitter<any>;
|
46
|
+
classes: string[];
|
47
|
+
get shouldDisplayInnerLabel(): boolean;
|
48
|
+
ngOnInit(): void;
|
49
|
+
ngOnChanges(changes: SimpleChanges): void;
|
50
|
+
onInputChange(evt: Event): void;
|
51
|
+
private updateClasses;
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "upd-input", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskConfig": { "alias": "maskConfig"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "hintTemplate": { "alias": "hintTemplate"; "required": false; }; "hintAsTooltip": { "alias": "hintAsTooltip"; "required": false; }; "value": { "alias": "value"; "required": false; }; "size": { "alias": "size"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "name": { "alias": "name"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isPlainText": { "alias": "isPlainText"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isRound": { "alias": "isRound"; "required": false; }; "isFlush": { "alias": "isFlush"; "required": false; }; "isInputGroupFlat": { "alias": "isInputGroupFlat"; "required": false; }; "isPrependButton": { "alias": "isPrependButton"; "required": false; }; "isAppendButton": { "alias": "isAppendButton"; "required": false; }; "isFloating": { "alias": "isFloating"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "loaderPosition": { "alias": "loaderPosition"; "required": false; }; "prependIconModel": { "alias": "prependIconModel"; "required": false; }; "appendIconModel": { "alias": "appendIconModel"; "required": false; }; "validationStatus": { "alias": "validationStatus"; "required": false; }; "isValidationStatusLight": { "alias": "isValidationStatusLight"; "required": false; }; "invalidStatusText": { "alias": "invalidStatusText"; "required": false; }; }, { "valueChange": "valueChange"; }, ["appendTemplate", "prependTemplate"], never, false, never>;
|
54
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./input.component";
|
3
|
+
import * as i2 from "./directives/input-append.directive";
|
4
|
+
import * as i3 from "./directives/input-prepend.directive";
|
5
|
+
import * as i4 from "@angular/common";
|
6
|
+
import * as i5 from "@updevs/icons";
|
7
|
+
import * as i6 from "@updevs/sdk/mask";
|
8
|
+
import * as i7 from "@updevs/components/popover";
|
9
|
+
export declare class UpdInputModule {
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdInputModule, never>;
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdInputModule, [typeof i1.InputComponent, typeof i2.InputAppendDirective, typeof i3.InputPrependDirective], [typeof i4.CommonModule, typeof i5.UpdIconsModule, typeof i6.UpdMaskModule, typeof i7.UpdPopoverModule], [typeof i1.InputComponent, typeof i2.InputAppendDirective, typeof i3.InputPrependDirective]>;
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdInputModule>;
|
13
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
2
|
+
import { ValidationStatusType } from '@updevs/components';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class RadioComponent implements OnInit, OnChanges {
|
5
|
+
wrapperClasses: string;
|
6
|
+
label?: string;
|
7
|
+
value?: any;
|
8
|
+
customClasses?: string;
|
9
|
+
name?: string;
|
10
|
+
description?: string;
|
11
|
+
isDisabled: boolean;
|
12
|
+
isReadOnly: boolean;
|
13
|
+
isChecked: boolean;
|
14
|
+
isInline: boolean;
|
15
|
+
validationStatus?: ValidationStatusType;
|
16
|
+
invalidStatusText?: string;
|
17
|
+
readonly selected: EventEmitter<void>;
|
18
|
+
classes: string[];
|
19
|
+
ngOnInit(): void;
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
21
|
+
private updateClasses;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "upd-radio", never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "isChecked": { "alias": "isChecked"; "required": false; }; "isInline": { "alias": "isInline"; "required": false; }; "validationStatus": { "alias": "validationStatus"; "required": false; }; "invalidStatusText": { "alias": "invalidStatusText"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
|
24
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./radio.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
export declare class UpdRadioModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdRadioModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdRadioModule, [typeof i1.RadioComponent], [typeof i2.CommonModule], [typeof i1.RadioComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdRadioModule>;
|
8
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ListItem } from '@updevs/components/list';
|
3
|
+
import { BaseSelectComponent } from '../../models/abstractions/base-select.component';
|
4
|
+
import { SelectItem } from '../../models/select-item';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class SelectMultipleComponent extends BaseSelectComponent {
|
7
|
+
/**
|
8
|
+
* Triggered when an item is selected.
|
9
|
+
*/
|
10
|
+
readonly selectedItems: EventEmitter<SelectItem[]>;
|
11
|
+
currentSelection: SelectItem[];
|
12
|
+
clearSelection(): void;
|
13
|
+
onSelectItem(item: ListItem): void;
|
14
|
+
onRemoveItem(item: SelectItem): void;
|
15
|
+
private updateActiveItemsOnList;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectMultipleComponent, never>;
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectMultipleComponent, "upd-select-multiple", never, {}, { "selectedItems": "selectedItems"; }, never, never, false, never>;
|
18
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
|
+
import { ListItem } from '@updevs/components/list';
|
3
|
+
import { BaseSelectComponent } from '../../models/abstractions/base-select.component';
|
4
|
+
import { SelectItem } from '../../models/select-item';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class SelectComponent extends BaseSelectComponent {
|
7
|
+
/**
|
8
|
+
* If true, it'll use the default style of the OS, no search capabilities.
|
9
|
+
*/
|
10
|
+
useSystemStyle: boolean;
|
11
|
+
/**
|
12
|
+
* Triggered when an item is selected.
|
13
|
+
*/
|
14
|
+
readonly selectedItem: EventEmitter<SelectItem>;
|
15
|
+
currentSelection?: SelectItem;
|
16
|
+
onSelectItem(item: ListItem): void;
|
17
|
+
clearSelection(): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "upd-select", never, { "useSystemStyle": { "alias": "useSystemStyle"; "required": false; }; }, { "selectedItem": "selectedItem"; }, never, never, false, never>;
|
20
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { ElementRef, OnInit, EventEmitter } from '@angular/core';
|
2
|
+
import { BaseComponent } from '@updevs/sdk/layout';
|
3
|
+
import { ListItem } from '@updevs/components/list';
|
4
|
+
import { SearchRequestModel, SearchResponseModel, BaseSearchStore } from '@updevs/sdk/stores';
|
5
|
+
import { Observable } from 'rxjs';
|
6
|
+
import { SelectItem } from '../select-item';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare abstract class BaseSelectComponent extends BaseComponent implements OnInit {
|
9
|
+
wrapperClasses: string;
|
10
|
+
componentBox?: ElementRef;
|
11
|
+
searchBox?: ElementRef;
|
12
|
+
searchBoxChild?: ElementRef;
|
13
|
+
list?: ElementRef;
|
14
|
+
/**
|
15
|
+
* Select items.
|
16
|
+
* If provided, the select will be considered static.
|
17
|
+
*/
|
18
|
+
items?: SelectItem[];
|
19
|
+
/**
|
20
|
+
* Store used to load/filter the items.
|
21
|
+
*/
|
22
|
+
store?: BaseSearchStore<any>;
|
23
|
+
/**
|
24
|
+
* Observable used to load/filter the items.
|
25
|
+
*/
|
26
|
+
observable?: (request?: SearchRequestModel, masterId?: any) => Observable<SearchResponseModel<any>>;
|
27
|
+
/**
|
28
|
+
* Name of the property in the object that represents the ID/key of the option.
|
29
|
+
* **Note:** used only for remote data.
|
30
|
+
*/
|
31
|
+
itemKey?: string;
|
32
|
+
/**
|
33
|
+
* Name of the property in the object that represents the value/description of the option.
|
34
|
+
* **Note:** used only for remote data.
|
35
|
+
*/
|
36
|
+
itemValue?: string;
|
37
|
+
/**
|
38
|
+
* Description of the field.
|
39
|
+
*/
|
40
|
+
label?: string;
|
41
|
+
/**
|
42
|
+
* Placeholder.
|
43
|
+
*/
|
44
|
+
placeholder: string;
|
45
|
+
/**
|
46
|
+
* Maximum height of the dropdown.
|
47
|
+
*/
|
48
|
+
dropdownMaxHeight: number;
|
49
|
+
typeaheadDebounce: number;
|
50
|
+
shouldAutoSearch: boolean;
|
51
|
+
shouldCloseOnOutsideClick: boolean;
|
52
|
+
readonly dropdownOpenStatusChange: EventEmitter<boolean>;
|
53
|
+
isLoading: boolean;
|
54
|
+
localItems: SelectItem[];
|
55
|
+
listItems: ListItem[];
|
56
|
+
dropdownClasses: string;
|
57
|
+
get isDropdownOpen(): boolean;
|
58
|
+
set isDropdownOpen(value: boolean);
|
59
|
+
protected _currentTerm?: string;
|
60
|
+
protected _localBackupItems: SelectItem[];
|
61
|
+
private isStaticList;
|
62
|
+
private _isDropdownOpen;
|
63
|
+
private readonly searchInputSubject;
|
64
|
+
private readonly renderer;
|
65
|
+
private readonly ngZone;
|
66
|
+
private readonly domEventsService;
|
67
|
+
private readonly positioningService;
|
68
|
+
abstract clearSelection(): void;
|
69
|
+
abstract onSelectItem(item: ListItem): void;
|
70
|
+
ngOnInit(): void;
|
71
|
+
openDropdown(): void;
|
72
|
+
search(term?: string): void;
|
73
|
+
protected _setupLocalItems(items: SelectItem[]): void;
|
74
|
+
private searchLocal;
|
75
|
+
private searchRemote;
|
76
|
+
private getListItem;
|
77
|
+
private updatePosition;
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectComponent, never>;
|
79
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseSelectComponent, never, never, { "items": { "alias": "items"; "required": false; }; "store": { "alias": "store"; "required": false; }; "observable": { "alias": "observable"; "required": false; }; "itemKey": { "alias": "itemKey"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dropdownMaxHeight": { "alias": "dropdownMaxHeight"; "required": false; }; "typeaheadDebounce": { "alias": "typeaheadDebounce"; "required": false; }; "shouldAutoSearch": { "alias": "shouldAutoSearch"; "required": false; }; "shouldCloseOnOutsideClick": { "alias": "shouldCloseOnOutsideClick"; "required": false; }; }, { "dropdownOpenStatusChange": "dropdownOpenStatusChange"; }, never, never, false, never>;
|
80
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./components/single/select.component";
|
3
|
+
import * as i2 from "./components/multiple/select-multiple.component";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@updevs/sdk/layout";
|
6
|
+
import * as i5 from "@updevs/components/list";
|
7
|
+
import * as i6 from "@updevs/components/form-controls/input";
|
8
|
+
import * as i7 from "@updevs/icons";
|
9
|
+
import * as i8 from "@updevs/components/button";
|
10
|
+
import * as i9 from "@ngneat/transloco";
|
11
|
+
export declare class UpdSelectModule {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdSelectModule, never>;
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdSelectModule, [typeof i1.SelectComponent, typeof i2.SelectMultipleComponent], [typeof i3.CommonModule, typeof i4.UpdCoreLayoutModule, typeof i5.UpdListModule, typeof i6.UpdInputModule, typeof i7.UpdIconsModule, typeof i8.UpdButtonModule, typeof i9.TranslocoModule], [typeof i1.SelectComponent, typeof i2.SelectMultipleComponent]>;
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdSelectModule>;
|
15
|
+
}
|