@updevs/components 1.0.0-alpha.1 → 1.0.0-alpha.11
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/README.md +5 -21
- package/assets/styles/_bootstrap-components.scss +55 -0
- package/assets/styles/_bootstrap-config.scss +7 -0
- package/assets/styles/_bootstrap-override.scss +78 -0
- package/assets/styles/_config.scss +9 -0
- package/assets/styles/_core.scss +71 -0
- package/assets/styles/_mixins.scss +2 -0
- package/assets/styles/_seven-columns.scss +73 -0
- package/assets/styles/_updevs.scss +13 -0
- package/assets/styles/_utilities.scss +98 -0
- package/assets/styles/_variables-dark.scss +17 -0
- package/assets/styles/_variables.scss +934 -0
- package/assets/styles/fonts/_webfonts.scss +15 -0
- package/assets/styles/layout/_animations.scss +62 -0
- package/assets/styles/layout/_core.scss +61 -0
- package/assets/styles/layout/_dark.scss +72 -0
- package/assets/styles/layout/_footer.scss +12 -0
- package/assets/styles/layout/_navbar.scss +380 -0
- package/assets/styles/layout/_page.scss +169 -0
- package/assets/styles/layout/_root.scss +72 -0
- package/assets/styles/mixins/_functions.scss +43 -0
- package/assets/styles/mixins/_mixins.scss +68 -0
- package/assets/styles/ui/_accordion.scss +24 -0
- package/assets/styles/ui/_alerts.scss +59 -0
- package/assets/styles/ui/_avatars.scss +118 -0
- package/assets/styles/ui/_badges.scss +79 -0
- package/assets/styles/ui/_breadcrumbs.scss +50 -0
- package/assets/styles/ui/_button-group.scss +16 -0
- package/assets/styles/ui/_buttons.scss +265 -0
- package/assets/styles/ui/_calendars.scss +104 -0
- package/assets/styles/ui/_cards.scss +586 -0
- package/assets/styles/ui/_carousel.scss +68 -0
- package/assets/styles/ui/_charts.scss +61 -0
- package/assets/styles/ui/_chips.scss +0 -0
- package/assets/styles/ui/_close.scss +7 -0
- package/assets/styles/ui/_datagrid.scss +17 -0
- package/assets/styles/ui/_dropdowns.scss +117 -0
- package/assets/styles/ui/_empty.scss +65 -0
- package/assets/styles/ui/_flags.scss +31 -0
- package/assets/styles/ui/_forms.scss +224 -0
- package/assets/styles/ui/_grid.scss +115 -0
- package/assets/styles/ui/_icons.scss +72 -0
- package/assets/styles/ui/_images.scss +15 -0
- package/assets/styles/ui/_legend.scss +12 -0
- package/assets/styles/ui/_lists.scss +127 -0
- package/assets/styles/ui/_loaders.scss +72 -0
- package/assets/styles/ui/_login.scss +3 -0
- package/assets/styles/ui/_markdown.scss +42 -0
- package/assets/styles/ui/_modals.scss +67 -0
- package/assets/styles/ui/_nav.scss +92 -0
- package/assets/styles/ui/_offcanvas.scss +17 -0
- package/assets/styles/ui/_pagination.scss +56 -0
- package/assets/styles/ui/_payments.scss +28 -0
- package/assets/styles/ui/_placeholder.scss +9 -0
- package/assets/styles/ui/_popovers.scss +2 -0
- package/assets/styles/ui/_progress.scss +107 -0
- package/assets/styles/ui/_ribbons.scss +156 -0
- package/assets/styles/ui/_stars.scss +13 -0
- package/assets/styles/ui/_status.scss +163 -0
- package/assets/styles/ui/_steps.scss +152 -0
- package/assets/styles/ui/_switch-icon.scss +211 -0
- package/assets/styles/ui/_tables.scss +150 -0
- package/assets/styles/ui/_tags.scss +57 -0
- package/assets/styles/ui/_timeline.scss +61 -0
- package/assets/styles/ui/_toasts.scss +19 -0
- package/assets/styles/ui/_toolbar.scss +10 -0
- package/assets/styles/ui/_tracking.scss +29 -0
- package/assets/styles/ui/_type.scss +169 -0
- package/assets/styles/ui/forms/_form-check.scss +91 -0
- package/assets/styles/ui/forms/_form-colorinput.scss +54 -0
- package/assets/styles/ui/forms/_form-custom.scss +28 -0
- package/assets/styles/ui/forms/_form-icon.scss +35 -0
- package/assets/styles/ui/forms/_form-imagecheck.scss +104 -0
- package/assets/styles/ui/forms/_form-selectgroup.scss +153 -0
- package/assets/styles/ui/forms/_validation.scss +13 -0
- package/assets/styles/ui/typo/_hr.scss +74 -0
- package/assets/styles/utils/_background.scss +15 -0
- package/assets/styles/utils/_colors.scss +40 -0
- package/assets/styles/utils/_opacity.scss +7 -0
- package/assets/styles/utils/_scroll.scss +47 -0
- package/assets/styles/utils/_shadow.scss +17 -0
- package/assets/styles/utils/_sizing.scss +10 -0
- package/assets/styles/utils/_text.scss +15 -0
- package/badge/badge-config.model.d.ts +14 -0
- package/badge/badge.component.d.ts +24 -0
- package/badge/badge.config.d.ts +12 -0
- package/badge/index.d.ts +1 -0
- package/badge/public-api.d.ts +3 -0
- package/badge/upd-badge.module.d.ts +8 -0
- package/button/button.component.d.ts +61 -0
- package/button/index.d.ts +1 -0
- package/button/public-api.d.ts +2 -0
- package/button/upd-button.module.d.ts +10 -0
- package/calendar/calendar.component.d.ts +127 -0
- package/calendar/components/calendar-body/calendar-body.component.d.ts +263 -0
- package/calendar/components/calendar-header/calendar-header.component.d.ts +57 -0
- package/calendar/components/calendar-month-view/calendar-month-view.component.d.ts +151 -0
- package/calendar/components/calendar-multi-year-view/calendar-multi-year-view.component.d.ts +10 -0
- package/calendar/components/calendar-year-view/calendar-year-view.component.d.ts +9 -0
- package/calendar/index.d.ts +1 -0
- package/calendar/models/calendar-cell.model.d.ts +16 -0
- package/calendar/models/calendar-user-event.model.d.ts +4 -0
- package/calendar/models/date-range.model.d.ts +26 -0
- package/calendar/models/public-api.d.ts +2 -0
- package/calendar/public-api.d.ts +5 -0
- package/calendar/services/calendar-range-strategy.service.d.ts +35 -0
- package/calendar/services/calendar-signals.service.d.ts +24 -0
- package/calendar/services/calendar.service.d.ts +15 -0
- package/calendar/services/public-api.d.ts +1 -0
- package/calendar/tools/events-options.d.ts +12 -0
- package/calendar/tools/keyboard-tools.d.ts +9 -0
- package/calendar/tools/passive-listeners.d.ts +16 -0
- package/calendar/types/calendar-cell-class-function.type.d.ts +3 -0
- package/calendar/types/calendar-cell-css-classes.type.d.ts +3 -0
- package/calendar/types/calendar-view.type.d.ts +1 -0
- package/calendar/types/modifier-key.type.d.ts +1 -0
- package/calendar/types/public-api.d.ts +1 -0
- package/calendar/upd-calendar.module.d.ts +18 -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/directives/public-api.d.ts +4 -0
- package/card/index.d.ts +1 -0
- package/card/public-api.d.ts +3 -0
- package/card/types/card-state.type.d.ts +1 -0
- package/card/types/card-style.type.d.ts +1 -0
- package/card/types/hover-effect.type.d.ts +1 -0
- package/card/types/ribbon-style.type.d.ts +1 -0
- package/card/types/status-position.type.d.ts +1 -0
- package/card/upd-card.module.d.ts +14 -0
- package/drag-and-drop/drag-and-drop.component.d.ts +26 -0
- package/drag-and-drop/index.d.ts +1 -0
- package/drag-and-drop/models/drag-and-drop-column.config.d.ts +8 -0
- package/drag-and-drop/models/drag-and-drop-column.model.d.ts +10 -0
- package/drag-and-drop/models/drag-and-drop-item.d.ts +7 -0
- package/drag-and-drop/models/drag-and-drop-item.model.d.ts +13 -0
- package/drag-and-drop/models/drag-and-drop.config.d.ts +6 -0
- package/drag-and-drop/models/public-api.d.ts +4 -0
- package/drag-and-drop/public-api.d.ts +3 -0
- package/drag-and-drop/upd-drag-and-drop.module.d.ts +9 -0
- package/dropdown/dropdown.component.d.ts +76 -0
- package/dropdown/index.d.ts +1 -0
- package/dropdown/models/dropdown-action-clicked.model.d.ts +6 -0
- package/dropdown/models/dropdown-item.d.ts +24 -0
- package/dropdown/models/dropdown-item.type.d.ts +1 -0
- package/dropdown/models/public-api.d.ts +4 -0
- package/dropdown/models/toolbar.type.d.ts +1 -0
- package/dropdown/public-api.d.ts +3 -0
- package/dropdown/upd-dropdown.module.d.ts +12 -0
- package/esm2022/badge/badge-config.model.mjs +14 -0
- package/esm2022/badge/badge.component.mjs +50 -0
- package/esm2022/badge/badge.config.mjs +2 -0
- package/esm2022/badge/index.mjs +2 -0
- package/esm2022/badge/public-api.mjs +4 -0
- package/esm2022/badge/upd-badge.module.mjs +24 -0
- package/esm2022/badge/updevs-components-badge.mjs +5 -0
- package/esm2022/button/button.component.mjs +157 -0
- package/esm2022/button/index.mjs +2 -0
- package/esm2022/button/public-api.mjs +3 -0
- package/esm2022/button/upd-button.module.mjs +32 -0
- package/esm2022/button/updevs-components-button.mjs +5 -0
- package/esm2022/calendar/assets/i18n/en.json +16 -0
- package/esm2022/calendar/assets/i18n/pt.json +16 -0
- package/esm2022/calendar/calendar.component.mjs +247 -0
- package/esm2022/calendar/components/calendar-body/calendar-body.component.mjs +515 -0
- package/esm2022/calendar/components/calendar-header/calendar-header.component.mjs +144 -0
- package/esm2022/calendar/components/calendar-month-view/calendar-month-view.component.mjs +423 -0
- package/esm2022/calendar/components/calendar-multi-year-view/calendar-multi-year-view.component.mjs +18 -0
- package/esm2022/calendar/components/calendar-year-view/calendar-year-view.component.mjs +17 -0
- package/esm2022/calendar/index.mjs +2 -0
- package/esm2022/calendar/models/calendar-cell.model.mjs +18 -0
- package/esm2022/calendar/models/calendar-user-event.model.mjs +2 -0
- package/esm2022/calendar/models/date-range.model.mjs +18 -0
- package/esm2022/calendar/models/public-api.mjs +3 -0
- package/esm2022/calendar/public-api.mjs +6 -0
- package/esm2022/calendar/services/calendar-range-strategy.service.mjs +99 -0
- package/esm2022/calendar/services/calendar-signals.service.mjs +47 -0
- package/esm2022/calendar/services/calendar.service.mjs +40 -0
- package/esm2022/calendar/services/public-api.mjs +2 -0
- package/esm2022/calendar/tools/events-options.mjs +14 -0
- package/esm2022/calendar/tools/keyboard-tools.mjs +14 -0
- package/esm2022/calendar/tools/passive-listeners.mjs +29 -0
- package/esm2022/calendar/types/calendar-cell-class-function.type.mjs +2 -0
- package/esm2022/calendar/types/calendar-cell-css-classes.type.mjs +2 -0
- package/esm2022/calendar/types/calendar-view.type.mjs +2 -0
- package/esm2022/calendar/types/modifier-key.type.mjs +2 -0
- package/esm2022/calendar/types/public-api.mjs +2 -0
- package/esm2022/calendar/upd-calendar.module.mjs +69 -0
- package/esm2022/calendar/updevs-components-calendar.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/drag-and-drop/drag-and-drop.component.mjs +134 -0
- package/esm2022/drag-and-drop/index.mjs +2 -0
- package/esm2022/drag-and-drop/models/drag-and-drop-column.config.mjs +2 -0
- package/esm2022/drag-and-drop/models/drag-and-drop-column.model.mjs +9 -0
- package/esm2022/drag-and-drop/models/drag-and-drop-item.mjs +2 -0
- package/esm2022/drag-and-drop/models/drag-and-drop-item.model.mjs +14 -0
- package/esm2022/drag-and-drop/models/drag-and-drop.config.mjs +2 -0
- package/esm2022/drag-and-drop/models/public-api.mjs +5 -0
- package/esm2022/drag-and-drop/public-api.mjs +4 -0
- package/esm2022/drag-and-drop/upd-drag-and-drop.module.mjs +28 -0
- package/esm2022/drag-and-drop/updevs-components-drag-and-drop.mjs +5 -0
- package/esm2022/dropdown/dropdown.component.mjs +182 -0
- package/esm2022/dropdown/index.mjs +2 -0
- package/esm2022/dropdown/models/dropdown-action-clicked.model.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 +5 -0
- package/esm2022/dropdown/models/toolbar.type.mjs +2 -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/assets/i18n/en.json +17 -0
- package/esm2022/form/assets/i18n/pt.json +17 -0
- package/esm2022/form/components/dynamic-field/dynamic-field.component.mjs +96 -0
- package/esm2022/form/form.component.mjs +102 -0
- package/esm2022/form/index.mjs +2 -0
- package/esm2022/form/models/checkbox-field.model.mjs +2 -0
- package/esm2022/form/models/checkbox-group-field.model.mjs +2 -0
- package/esm2022/form/models/dynamic-field.model.mjs +2 -0
- package/esm2022/form/models/enums/dynamic-field.type.mjs +14 -0
- package/esm2022/form/models/enums/public-api.mjs +2 -0
- package/esm2022/form/models/form-row.model.mjs +2 -0
- package/esm2022/form/models/public-api.mjs +6 -0
- package/esm2022/form/models/radio-field.model.mjs +2 -0
- package/esm2022/form/models/radio-group-field.model.mjs +2 -0
- package/esm2022/form/models/select-field.model.mjs +2 -0
- package/esm2022/form/models/single-select-field.model.mjs +2 -0
- package/esm2022/form/models/textarea-field.model.mjs +2 -0
- package/esm2022/form/models/validator-config.mjs +2 -0
- package/esm2022/form/public-api.mjs +4 -0
- package/esm2022/form/tools/errors-helper.mjs +54 -0
- package/esm2022/form/upd-form.module.mjs +75 -0
- package/esm2022/form/updevs-components-form.mjs +5 -0
- package/esm2022/form-controls/abstractions/base-control.mjs +40 -0
- package/esm2022/form-controls/abstractions/index.mjs +2 -0
- package/esm2022/form-controls/abstractions/public-api.mjs +2 -0
- package/esm2022/form-controls/abstractions/updevs-components-form-controls-abstractions.mjs +5 -0
- package/esm2022/form-controls/checkbox/checkbox.component.mjs +53 -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 +32 -0
- package/esm2022/form-controls/checkbox/updevs-components-form-controls-checkbox.mjs +5 -0
- package/esm2022/form-controls/date-picker/date-picker.component.mjs +147 -0
- package/esm2022/form-controls/date-picker/index.mjs +2 -0
- package/esm2022/form-controls/date-picker/public-api.mjs +3 -0
- package/esm2022/form-controls/date-picker/upd-date-picker.module.mjs +40 -0
- package/esm2022/form-controls/date-picker/updevs-components-form-controls-date-picker.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 +189 -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 +56 -0
- package/esm2022/form-controls/radio/upd-radio.module.mjs +32 -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 +76 -0
- package/esm2022/form-controls/select/components/single/select.component.mjs +72 -0
- package/esm2022/form-controls/select/index.mjs +2 -0
- package/esm2022/form-controls/select/models/abstractions/base-select.component.mjs +221 -0
- package/esm2022/form-controls/select/models/defaults.mjs +8 -0
- package/esm2022/form-controls/select/models/public-api.mjs +3 -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 +57 -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 +46 -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/assets/i18n/en.json +5 -0
- package/esm2022/form-controls/time-picker/assets/i18n/pt.json +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/index.mjs +2 -0
- package/esm2022/layout/abstractions/base-page.component.mjs +23 -0
- package/esm2022/layout/abstractions/base.layout.mjs +31 -0
- package/esm2022/layout/abstractions/public-api.mjs +2 -0
- package/esm2022/layout/assets/i18n/en.json +20 -0
- package/esm2022/layout/assets/i18n/pt.json +20 -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 +80 -0
- package/esm2022/layout/models/login-page-config.model.mjs +20 -0
- package/esm2022/layout/models/login-page.config.mjs +2 -0
- package/esm2022/layout/models/public-api.mjs +3 -0
- package/esm2022/layout/models/security-layout-config.model.mjs +10 -0
- package/esm2022/layout/models/security-layout.config.mjs +2 -0
- package/esm2022/layout/models/upd-layout-config.model.mjs +24 -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 +65 -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 +97 -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 +55 -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 +15 -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 +112 -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/models/public-api.mjs +2 -0
- package/esm2022/lib/models/row-column-size.mjs +2 -0
- package/esm2022/lib/public-api.mjs +5 -0
- package/esm2022/lib/tools/column-size.helper.mjs +12 -0
- package/esm2022/lib/tools/public-api.mjs +2 -0
- package/esm2022/lib/types/component-size.type.mjs +2 -0
- package/esm2022/lib/types/horizontal-vertical.type.mjs +2 -0
- package/esm2022/lib/types/public-api.mjs +4 -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/assets/i18n/en.json +9 -0
- package/esm2022/list/assets/i18n/pt.json +9 -0
- package/esm2022/list/index.mjs +2 -0
- package/esm2022/list/list.component.mjs +113 -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/modal/assets/i18n/en.json +17 -0
- package/esm2022/modal/assets/i18n/pt.json +17 -0
- package/esm2022/modal/components/modal-container/modal-container.component.mjs +216 -0
- package/esm2022/modal/index.mjs +2 -0
- package/esm2022/modal/models/base.modal.mjs +14 -0
- package/esm2022/modal/models/modal-config.model.mjs +20 -0
- package/esm2022/modal/models/modal-ref.mjs +2 -0
- package/esm2022/modal/models/modal.config.mjs +2 -0
- package/esm2022/modal/models/public-api.mjs +4 -0
- package/esm2022/modal/public-api.mjs +4 -0
- package/esm2022/modal/services/modal-alert.service.mjs +99 -0
- package/esm2022/modal/services/modal.service.mjs +30 -0
- package/esm2022/modal/services/public-api.mjs +3 -0
- package/esm2022/modal/types/modal-footer-style.type.mjs +2 -0
- package/esm2022/modal/types/modal-size.type.mjs +2 -0
- package/esm2022/modal/upd-modal.module.mjs +89 -0
- package/esm2022/modal/updevs-components-modal.mjs +5 -0
- package/esm2022/paginator/assets/i18n/en.json +15 -0
- package/esm2022/paginator/assets/i18n/pt.json +15 -0
- package/esm2022/paginator/index.mjs +2 -0
- package/esm2022/paginator/paginator.component.mjs +66 -0
- package/esm2022/paginator/public-api.mjs +3 -0
- package/esm2022/paginator/upd-paginator.module.mjs +46 -0
- package/esm2022/paginator/updevs-components-paginator.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/table/abstractions/base-column.model.mjs +52 -0
- package/esm2022/table/abstractions/base.column.mjs +98 -0
- package/esm2022/table/abstractions/filters-operands.service.mjs +3 -0
- package/esm2022/table/abstractions/public-api.mjs +3 -0
- package/esm2022/table/assets/i18n/en.json +74 -0
- package/esm2022/table/assets/i18n/pt.json +74 -0
- package/esm2022/table/components/columns/boolean-column/boolean-column.component.mjs +26 -0
- package/esm2022/table/components/columns/date-time-column/date-time-column.component.mjs +13 -0
- package/esm2022/table/components/columns/number-column/number-column.component.mjs +13 -0
- package/esm2022/table/components/columns/text-column/text-column.component.mjs +31 -0
- package/esm2022/table/components/columns-manager/columns-manager.component.mjs +36 -0
- package/esm2022/table/components/filter-row/filter-row.component.mjs +114 -0
- package/esm2022/table/components/save-search/save-search.component.mjs +72 -0
- package/esm2022/table/components/search-section/search-section.component.mjs +93 -0
- package/esm2022/table/directives/public-api.mjs +2 -0
- package/esm2022/table/directives/table-column.directive.mjs +51 -0
- package/esm2022/table/index.mjs +2 -0
- package/esm2022/table/models/columns/boolean-column.model.mjs +22 -0
- package/esm2022/table/models/columns/date-time-column.model.mjs +16 -0
- package/esm2022/table/models/columns/guid-column.model.mjs +13 -0
- package/esm2022/table/models/columns/image-column.model.mjs +11 -0
- package/esm2022/table/models/columns/number-column.model.mjs +17 -0
- package/esm2022/table/models/columns/public-api.mjs +7 -0
- package/esm2022/table/models/columns/text-column.model.mjs +11 -0
- package/esm2022/table/models/enums/column-type.enum.mjs +15 -0
- package/esm2022/table/models/enums/public-api.mjs +2 -0
- package/esm2022/table/models/filter-item.model.mjs +2 -0
- package/esm2022/table/models/filter-operand.config.mjs +2 -0
- package/esm2022/table/models/operands-lists/boolean-filter-operands-list.model.mjs +25 -0
- package/esm2022/table/models/operands-lists/date-filter-operands-list.model.mjs +25 -0
- package/esm2022/table/models/operands-lists/date-or-number-operands-list.config.mjs +31 -0
- package/esm2022/table/models/operands-lists/filter-operands-list.config.mjs +31 -0
- package/esm2022/table/models/operands-lists/guid-filter-operands-list.model.mjs +16 -0
- package/esm2022/table/models/operands-lists/number-filter-operands-list.model.mjs +25 -0
- package/esm2022/table/models/operands-lists/string-filter-operands-list.model.mjs +45 -0
- package/esm2022/table/models/public-api.mjs +5 -0
- package/esm2022/table/models/saved-view.model.mjs +2 -0
- package/esm2022/table/models/table-config.model.mjs +21 -0
- package/esm2022/table/models/table.config.mjs +2 -0
- package/esm2022/table/models/upd-table-config.model.mjs +9 -0
- package/esm2022/table/models/upd-table.config.mjs +2 -0
- package/esm2022/table/public-api.mjs +6 -0
- package/esm2022/table/services/default-filters-operands.service.mjs +60 -0
- package/esm2022/table/services/storages/saved-views.storage.mjs +63 -0
- package/esm2022/table/services/stores/filters-operands.store.mjs +19 -0
- package/esm2022/table/services/upd-table-config.service.mjs +18 -0
- package/esm2022/table/table.component.mjs +382 -0
- package/esm2022/table/tools/filters.tools.mjs +48 -0
- package/esm2022/table/tools/table.constants.mjs +15 -0
- package/esm2022/table/upd-table.module.mjs +149 -0
- package/esm2022/table/updevs-components-table.mjs +5 -0
- package/esm2022/updevs-components.mjs +5 -0
- package/fesm2022/updevs-components-badge.mjs +91 -0
- package/fesm2022/updevs-components-badge.mjs.map +1 -0
- package/fesm2022/updevs-components-button.mjs +193 -0
- package/fesm2022/updevs-components-button.mjs.map +1 -0
- package/fesm2022/updevs-components-calendar.mjs +1711 -0
- package/fesm2022/updevs-components-calendar.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-drag-and-drop.mjs +185 -0
- package/fesm2022/updevs-components-drag-and-drop.mjs.map +1 -0
- package/fesm2022/updevs-components-dropdown.mjs +226 -0
- package/fesm2022/updevs-components-dropdown.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-abstractions.mjs +47 -0
- package/fesm2022/updevs-components-form-controls-abstractions.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-checkbox.mjs +89 -0
- package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-date-picker.mjs +190 -0
- package/fesm2022/updevs-components-form-controls-date-picker.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-input.mjs +263 -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 +423 -0
- package/fesm2022/updevs-components-form-controls-select.mjs.map +1 -0
- package/fesm2022/updevs-components-form-controls-textarea.mjs +74 -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 +378 -0
- package/fesm2022/updevs-components-form.mjs.map +1 -0
- package/fesm2022/updevs-components-layout.mjs +785 -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 +205 -0
- package/fesm2022/updevs-components-list.mjs.map +1 -0
- package/fesm2022/updevs-components-modal.mjs +503 -0
- package/fesm2022/updevs-components-modal.mjs.map +1 -0
- package/fesm2022/updevs-components-paginator.mjs +159 -0
- package/fesm2022/updevs-components-paginator.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-table.mjs +1715 -0
- package/fesm2022/updevs-components-table.mjs.map +1 -0
- package/fesm2022/updevs-components.mjs +33 -0
- package/fesm2022/updevs-components.mjs.map +1 -0
- package/form/components/dynamic-field/dynamic-field.component.d.ts +45 -0
- package/form/form.component.d.ts +60 -0
- package/form/index.d.ts +1 -0
- package/form/models/checkbox-field.model.d.ts +4 -0
- package/form/models/checkbox-group-field.model.d.ts +6 -0
- package/form/models/dynamic-field.model.d.ts +30 -0
- package/form/models/enums/dynamic-field.type.d.ts +12 -0
- package/form/models/enums/public-api.d.ts +1 -0
- package/form/models/form-row.model.d.ts +8 -0
- package/form/models/public-api.d.ts +5 -0
- package/form/models/radio-field.model.d.ts +4 -0
- package/form/models/radio-group-field.model.d.ts +6 -0
- package/form/models/select-field.model.d.ts +28 -0
- package/form/models/single-select-field.model.d.ts +4 -0
- package/form/models/textarea-field.model.d.ts +10 -0
- package/form/models/validator-config.d.ts +5 -0
- package/form/public-api.d.ts +3 -0
- package/form/tools/errors-helper.d.ts +11 -0
- package/form/upd-form.module.d.ts +20 -0
- package/form-controls/abstractions/base-control.d.ts +24 -0
- package/form-controls/abstractions/index.d.ts +2 -0
- package/form-controls/abstractions/public-api.d.ts +2 -0
- package/form-controls/checkbox/checkbox.component.d.ts +21 -0
- package/form-controls/checkbox/index.d.ts +1 -0
- package/form-controls/checkbox/public-api.d.ts +2 -0
- package/form-controls/checkbox/upd-checkbox.module.d.ts +10 -0
- package/form-controls/date-picker/date-picker.component.d.ts +87 -0
- package/form-controls/date-picker/index.d.ts +1 -0
- package/form-controls/date-picker/public-api.d.ts +2 -0
- package/form-controls/date-picker/upd-date-picker.module.d.ts +12 -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/directives/public-api.d.ts +2 -0
- package/form-controls/input/index.d.ts +1 -0
- package/form-controls/input/input.component.d.ts +66 -0
- package/form-controls/input/public-api.d.ts +4 -0
- package/form-controls/input/types/input.type.d.ts +1 -0
- package/form-controls/input/types/loader-position.type.d.ts +1 -0
- package/form-controls/input/types/public-api.d.ts +2 -0
- package/form-controls/input/upd-input.module.d.ts +13 -0
- package/form-controls/radio/index.d.ts +1 -0
- package/form-controls/radio/public-api.d.ts +2 -0
- package/form-controls/radio/radio.component.d.ts +19 -0
- package/form-controls/radio/upd-radio.module.d.ts +10 -0
- package/form-controls/select/components/multiple/select-multiple.component.d.ts +25 -0
- package/form-controls/select/components/single/select.component.d.ts +26 -0
- package/form-controls/select/index.d.ts +1 -0
- package/form-controls/select/models/abstractions/base-select.component.d.ts +83 -0
- package/form-controls/select/models/defaults.d.ts +8 -0
- package/form-controls/select/models/public-api.d.ts +2 -0
- package/form-controls/select/models/select-item.d.ts +25 -0
- package/form-controls/select/public-api.d.ts +4 -0
- package/form-controls/select/upd-select.module.d.ts +16 -0
- package/form-controls/textarea/index.d.ts +1 -0
- package/form-controls/textarea/public-api.d.ts +2 -0
- package/form-controls/textarea/textarea.component.d.ts +21 -0
- package/form-controls/textarea/upd-textarea.module.d.ts +8 -0
- package/form-controls/time-picker/index.d.ts +1 -0
- package/form-controls/time-picker/public-api.d.ts +3 -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 +2 -0
- package/layout/abstractions/base-page.component.d.ts +12 -0
- package/layout/abstractions/base.layout.d.ts +15 -0
- package/layout/abstractions/public-api.d.ts +1 -0
- package/layout/index.d.ts +1 -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/public-api.d.ts +4 -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 +21 -0
- package/layout/models/login-page-config.model.d.ts +37 -0
- package/layout/models/login-page.config.d.ts +35 -0
- package/layout/models/public-api.d.ts +2 -0
- package/layout/models/security-layout-config.model.d.ts +12 -0
- package/layout/models/security-layout.config.d.ts +10 -0
- package/layout/models/upd-layout-config.model.d.ts +48 -0
- package/layout/models/upd-layout.config.d.ts +46 -0
- package/layout/pages/auth-flow/auth-flow-routing.module.d.ts +12 -0
- package/layout/pages/auth-flow/auth-flow.module.d.ts +18 -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 +23 -0
- package/layout/pages/auth-flow/oauth-callback/oauth-callback.component.d.ts +5 -0
- package/layout/pages/auth-flow/public-api.d.ts +5 -0
- package/layout/pages/public-api.d.ts +1 -0
- package/layout/partials/footer/footer-copyright.directive.d.ts +5 -0
- package/layout/partials/footer/footer.component.d.ts +34 -0
- package/layout/partials/footer/public-api.d.ts +2 -0
- package/layout/partials/header/header-style.type.d.ts +1 -0
- package/layout/partials/header/header.component.d.ts +31 -0
- package/layout/partials/header/public-api.d.ts +2 -0
- package/layout/partials/page-header/page-header.component.d.ts +7 -0
- package/layout/partials/page-header/public-api.d.ts +1 -0
- package/layout/partials/public-api.d.ts +4 -0
- package/layout/partials/sidebar/public-api.d.ts +1 -0
- package/layout/partials/sidebar/sidebar.component.d.ts +22 -0
- package/layout/public-api.d.ts +7 -0
- package/layout/services/public-api.d.ts +1 -0
- package/layout/services/upd-layout-config.service.d.ts +15 -0
- package/layout/tools/layout.constants.d.ts +15 -0
- package/layout/upd-layout.module.d.ts +18 -0
- package/lib/index.d.ts +2 -0
- package/lib/models/public-api.d.ts +2 -0
- package/lib/models/row-column-size.d.ts +6 -0
- package/lib/public-api.d.ts +5 -0
- package/lib/tools/column-size.helper.d.ts +6 -0
- package/lib/tools/public-api.d.ts +2 -0
- package/lib/types/component-size.type.d.ts +2 -0
- package/lib/types/horizontal-vertical.type.d.ts +2 -0
- package/lib/types/public-api.d.ts +4 -0
- package/lib/types/validation-status.type.d.ts +2 -0
- package/lib/upd-components.module.d.ts +7 -0
- package/link/index.d.ts +1 -0
- package/link/link.component.d.ts +22 -0
- package/link/public-api.d.ts +3 -0
- package/link/target.type.d.ts +1 -0
- package/link/upd-link.module.d.ts +8 -0
- package/list/index.d.ts +1 -0
- package/list/list.component.d.ts +46 -0
- package/list/models/badge-position.type.d.ts +1 -0
- package/list/models/list-item.d.ts +20 -0
- package/list/models/list-item.model.d.ts +25 -0
- package/list/models/public-api.d.ts +2 -0
- package/list/public-api.d.ts +3 -0
- package/list/upd-list.module.d.ts +13 -0
- package/modal/components/modal-container/modal-container.component.d.ts +74 -0
- package/modal/index.d.ts +1 -0
- package/modal/models/base.modal.d.ts +8 -0
- package/modal/models/modal-config.model.d.ts +32 -0
- package/modal/models/modal-ref.d.ts +6 -0
- package/modal/models/modal.config.d.ts +30 -0
- package/modal/models/public-api.d.ts +3 -0
- package/modal/public-api.d.ts +3 -0
- package/modal/services/modal-alert.service.d.ts +22 -0
- package/modal/services/modal.service.d.ts +12 -0
- package/modal/services/public-api.d.ts +2 -0
- package/modal/types/modal-footer-style.type.d.ts +1 -0
- package/modal/types/modal-size.type.d.ts +1 -0
- package/modal/upd-modal.module.d.ts +18 -0
- package/package.json +158 -14
- package/paginator/index.d.ts +1 -0
- package/paginator/paginator.component.d.ts +42 -0
- package/paginator/public-api.d.ts +2 -0
- package/paginator/upd-paginator.module.d.ts +14 -0
- package/popover/index.d.ts +1 -0
- package/popover/popover.component.d.ts +22 -0
- package/popover/popover.directive.d.ts +33 -0
- package/popover/public-api.d.ts +3 -0
- package/popover/upd-popover.module.d.ts +9 -0
- package/public-api.d.ts +2 -0
- package/table/abstractions/base-column.model.d.ts +31 -0
- package/table/abstractions/base.column.d.ts +22 -0
- package/table/abstractions/filters-operands.service.d.ts +8 -0
- package/table/abstractions/public-api.d.ts +2 -0
- package/table/components/columns/boolean-column/boolean-column.component.d.ts +9 -0
- package/table/components/columns/date-time-column/date-time-column.component.d.ts +7 -0
- package/table/components/columns/number-column/number-column.component.d.ts +7 -0
- package/table/components/columns/text-column/text-column.component.d.ts +9 -0
- package/table/components/columns-manager/columns-manager.component.d.ts +15 -0
- package/table/components/filter-row/filter-row.component.d.ts +40 -0
- package/table/components/save-search/save-search.component.d.ts +17 -0
- package/table/components/search-section/search-section.component.d.ts +36 -0
- package/table/directives/public-api.d.ts +1 -0
- package/table/directives/table-column.directive.d.ts +14 -0
- package/table/index.d.ts +1 -0
- package/table/models/columns/boolean-column.model.d.ts +15 -0
- package/table/models/columns/date-time-column.model.d.ts +8 -0
- package/table/models/columns/guid-column.model.d.ts +4 -0
- package/table/models/columns/image-column.model.d.ts +6 -0
- package/table/models/columns/number-column.model.d.ts +8 -0
- package/table/models/columns/public-api.d.ts +6 -0
- package/table/models/columns/text-column.model.d.ts +6 -0
- package/table/models/enums/column-type.enum.d.ts +13 -0
- package/table/models/enums/public-api.d.ts +1 -0
- package/table/models/filter-item.model.d.ts +6 -0
- package/table/models/filter-operand.config.d.ts +9 -0
- package/table/models/operands-lists/boolean-filter-operands-list.model.d.ts +6 -0
- package/table/models/operands-lists/date-filter-operands-list.model.d.ts +6 -0
- package/table/models/operands-lists/date-or-number-operands-list.config.d.ts +5 -0
- package/table/models/operands-lists/filter-operands-list.config.d.ts +5 -0
- package/table/models/operands-lists/guid-filter-operands-list.model.d.ts +6 -0
- package/table/models/operands-lists/number-filter-operands-list.model.d.ts +6 -0
- package/table/models/operands-lists/string-filter-operands-list.model.d.ts +6 -0
- package/table/models/public-api.d.ts +4 -0
- package/table/models/saved-view.model.d.ts +11 -0
- package/table/models/table-config.model.d.ts +24 -0
- package/table/models/table.config.d.ts +22 -0
- package/table/models/upd-table-config.model.d.ts +6 -0
- package/table/models/upd-table.config.d.ts +6 -0
- package/table/public-api.d.ts +5 -0
- package/table/services/default-filters-operands.service.d.ts +17 -0
- package/table/services/storages/saved-views.storage.d.ts +22 -0
- package/table/services/stores/filters-operands.store.d.ts +11 -0
- package/table/services/upd-table-config.service.d.ts +12 -0
- package/table/table.component.d.ts +78 -0
- package/table/tools/filters.tools.d.ts +9 -0
- package/table/tools/table.constants.d.ts +15 -0
- package/table/upd-table.module.d.ts +40 -0
- package/CHANGELOG.md +0 -8
- package/ng-package.json +0 -7
- package/src/lib/components.component.spec.ts +0 -23
- package/src/lib/components.component.ts +0 -14
- package/src/lib/components.module.ts +0 -17
- package/src/lib/components.service.spec.ts +0 -16
- package/src/lib/components.service.ts +0 -9
- package/src/public-api.ts +0 -7
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A class representing a range of dates.
|
|
3
|
+
*/
|
|
4
|
+
export declare class DateRangeModel {
|
|
5
|
+
/**
|
|
6
|
+
* The start date of the range.
|
|
7
|
+
*/
|
|
8
|
+
readonly start?: Date | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The end date of the range.
|
|
11
|
+
*/
|
|
12
|
+
readonly end?: Date | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Ensures that objects with a `start` and `end` property can't be assigned to a variable that
|
|
15
|
+
* expects a `DateRange`
|
|
16
|
+
*/ private disableStructuralEquivalency;
|
|
17
|
+
constructor(
|
|
18
|
+
/**
|
|
19
|
+
* The start date of the range.
|
|
20
|
+
*/
|
|
21
|
+
start?: Date | undefined,
|
|
22
|
+
/**
|
|
23
|
+
* The end date of the range.
|
|
24
|
+
*/
|
|
25
|
+
end?: Date | undefined);
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OptionalType } from '@updevs/sdk/types';
|
|
2
|
+
import { DateRangeModel } from '../models/date-range.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Provides the default date range selection behavior.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CalendarRangeStrategyService {
|
|
8
|
+
private readonly dateService;
|
|
9
|
+
/**
|
|
10
|
+
* Called when the user has finished selecting a value.
|
|
11
|
+
* @param date Date that was selected. Will be null if the user cleared the selection.
|
|
12
|
+
* @param currentRange Range that is currently show in the calendar.
|
|
13
|
+
*/
|
|
14
|
+
selectionFinished(date: OptionalType<Date>, currentRange: DateRangeModel): DateRangeModel;
|
|
15
|
+
/**
|
|
16
|
+
* Called when the user has activated a new date (e.g. by hovering over
|
|
17
|
+
* it or moving focus) and the calendar tries to display a date range.
|
|
18
|
+
*
|
|
19
|
+
* @param activeDate Date that the user has activated. Will be null if the user moved
|
|
20
|
+
* focus to an element that's no a calendar cell.
|
|
21
|
+
* @param currentRange Range that is currently shown in the calendar.
|
|
22
|
+
*/
|
|
23
|
+
createPreview(activeDate: OptionalType<Date>, currentRange: DateRangeModel): DateRangeModel;
|
|
24
|
+
/**
|
|
25
|
+
* Called when the user has dragged a date in the currently selected range to another
|
|
26
|
+
* date. Returns the date updated range that should result from this interaction.
|
|
27
|
+
*
|
|
28
|
+
* @param dragOrigin The date the user started dragging from.
|
|
29
|
+
* @param originalRange The originally selected date range.
|
|
30
|
+
* @param newDate The currently targeted date in the drag operation.
|
|
31
|
+
*/
|
|
32
|
+
createDrag(dragOrigin: Date, originalRange: DateRangeModel, newDate: Date): OptionalType<DateRangeModel>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarRangeStrategyService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarRangeStrategyService>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { OptionalType } from '@updevs/sdk/types';
|
|
3
|
+
import { CalendarViewType } from '../types/calendar-view.type';
|
|
4
|
+
import { DateRangeModel } from '../models/date-range.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarSignalsService {
|
|
7
|
+
get minDate(): Signal<OptionalType<Date>>;
|
|
8
|
+
set minDate(value: OptionalType<Date>);
|
|
9
|
+
get maxDate(): Signal<OptionalType<Date>>;
|
|
10
|
+
set maxDate(value: OptionalType<Date>);
|
|
11
|
+
get activeDate(): Signal<Date>;
|
|
12
|
+
set activeDate(value: Date);
|
|
13
|
+
get selectedDate(): Signal<DateRangeModel | OptionalType<Date>>;
|
|
14
|
+
set selectedDate(value: OptionalType<DateRangeModel | OptionalType<Date>>);
|
|
15
|
+
get currentView(): Signal<CalendarViewType>;
|
|
16
|
+
set currentView(value: CalendarViewType);
|
|
17
|
+
private readonly minDateSignal;
|
|
18
|
+
private readonly maxDateSignal;
|
|
19
|
+
private readonly activeDateSignal;
|
|
20
|
+
private readonly selectedDateSignal;
|
|
21
|
+
private readonly currentViewSignal;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarSignalsService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarSignalsService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OptionalType } from '@updevs/sdk/types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CalendarService {
|
|
4
|
+
/**
|
|
5
|
+
* When the multi-year view is first opened, the active year will be in view.
|
|
6
|
+
* So we compute how many years are between the active year and the *slot* where our
|
|
7
|
+
* "startingYear" will render when paged into view.
|
|
8
|
+
*/
|
|
9
|
+
getMultiYearActiveOffset(activeDate: Date, minDate: OptionalType<Date>, maxDate: OptionalType<Date>): number;
|
|
10
|
+
isSameMultiYearView(date1: Date, date2: Date, minDate: OptionalType<Date>, maxDate: OptionalType<Date>): boolean;
|
|
11
|
+
getStartingYear(minDate: OptionalType<Date>, maxDate: OptionalType<Date>): number;
|
|
12
|
+
private euclideanModulo;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-range-strategy.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event options that can be used to bind an active, capturing event.
|
|
3
|
+
*/
|
|
4
|
+
export declare const activeCapturingEventOptions: boolean | AddEventListenerOptions;
|
|
5
|
+
/**
|
|
6
|
+
* Event options that can be used to bind a passive, capturing event.
|
|
7
|
+
*/
|
|
8
|
+
export declare const passiveCapturingEventOptions: boolean | AddEventListenerOptions;
|
|
9
|
+
/**
|
|
10
|
+
* Event options that can be used to bind a passive, non-capturing event.
|
|
11
|
+
*/
|
|
12
|
+
export declare const passiveEventOptions: boolean | AddEventListenerOptions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModifierKeyType } from '../types/modifier-key.type';
|
|
2
|
+
export declare class KeyboardTools {
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether a modifier key is pressed.
|
|
5
|
+
* @param event Event to be checked.
|
|
6
|
+
* @param modifiers
|
|
7
|
+
*/
|
|
8
|
+
static hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKeyType[]): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class PassiveListeners {
|
|
2
|
+
/** Cached result of whether the user's browser supports passive event listeners. */
|
|
3
|
+
private static supportsPassiveEvents?;
|
|
4
|
+
/**
|
|
5
|
+
* Checks whether the user's browser supports passive event listeners.
|
|
6
|
+
* See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
|
7
|
+
*/
|
|
8
|
+
static supportsPassiveEventListeners(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Normalizes an `AddEventListener` object to something that can be passed
|
|
11
|
+
* to `addEventListener` on any browser, no matter whether it supports the
|
|
12
|
+
* `options` parameter.
|
|
13
|
+
* @param options Object to be normalized.
|
|
14
|
+
*/
|
|
15
|
+
static normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalendarViewType = 'month' | 'year' | 'multi-year';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ModifierKeyType = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar-view.type';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./components/calendar-header/calendar-header.component";
|
|
4
|
+
import * as i2 from "./components/calendar-multi-year-view/calendar-multi-year-view.component";
|
|
5
|
+
import * as i3 from "./components/calendar-year-view/calendar-year-view.component";
|
|
6
|
+
import * as i4 from "./components/calendar-month-view/calendar-month-view.component";
|
|
7
|
+
import * as i5 from "./components/calendar-body/calendar-body.component";
|
|
8
|
+
import * as i6 from "./calendar.component";
|
|
9
|
+
import * as i7 from "@angular/common";
|
|
10
|
+
import * as i8 from "@updevs/components/button";
|
|
11
|
+
import * as i9 from "@jsverse/transloco";
|
|
12
|
+
import * as i10 from "@updevs/icons";
|
|
13
|
+
export declare class UpdCalendarModule {
|
|
14
|
+
constructor(translocoService: TranslocoService);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdCalendarModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdCalendarModule, [typeof i1.CalendarHeaderComponent, typeof i2.CalendarMultiYearViewComponent, typeof i3.CalendarYearViewComponent, typeof i4.CalendarMonthViewComponent, typeof i5.CalendarBodyComponent, typeof i6.CalendarComponent], [typeof i7.CommonModule, typeof i8.UpdButtonModule, typeof i9.TranslocoDirective, typeof i10.UpdIconsModule], [typeof i6.CalendarComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdCalendarModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SimpleChanges, OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { BgColorStyleType, ButtonModel } from '@updevs/sdk/layout';
|
|
3
|
+
import { TopBottomLeftRightType } from '@updevs/sdk/types';
|
|
4
|
+
import { IconModel } from '@updevs/icons';
|
|
5
|
+
import { CardFooterDirective } from './directives/card-footer.directive';
|
|
6
|
+
import { CardHeaderDirective } from './directives/card-header.directive';
|
|
7
|
+
import { HoverEffectType } from './types/hover-effect.type';
|
|
8
|
+
import { CardStateType } from './types/card-state.type';
|
|
9
|
+
import { StatusPositionType } from './types/status-position.type';
|
|
10
|
+
import { RibbonStyleType } from './types/ribbon-style.type';
|
|
11
|
+
import { CardStyleType } from './types/card-style.type';
|
|
12
|
+
import { CardImageDirective } from './directives/card-image.directive';
|
|
13
|
+
import { CardActionsDirective } from './directives/card-actions.directive';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class CardComponent implements OnInit, OnChanges {
|
|
16
|
+
wrapperClasses: string;
|
|
17
|
+
headerTemplate?: CardHeaderDirective;
|
|
18
|
+
footerTemplate?: CardFooterDirective;
|
|
19
|
+
imageTemplate?: CardImageDirective;
|
|
20
|
+
actionsTemplate?: CardActionsDirective;
|
|
21
|
+
title?: string;
|
|
22
|
+
subtitle?: string;
|
|
23
|
+
hoverEffect?: HoverEffectType;
|
|
24
|
+
state?: CardStateType;
|
|
25
|
+
type?: CardStyleType;
|
|
26
|
+
imagePosition?: TopBottomLeftRightType;
|
|
27
|
+
bgColor?: BgColorStyleType;
|
|
28
|
+
stampIcon?: IconModel;
|
|
29
|
+
stampBackground: BgColorStyleType;
|
|
30
|
+
statusBackground?: BgColorStyleType;
|
|
31
|
+
statusPosition: StatusPositionType;
|
|
32
|
+
ribbonBackground?: BgColorStyleType;
|
|
33
|
+
ribbonStyle: RibbonStyleType;
|
|
34
|
+
ribbonIcon?: IconModel;
|
|
35
|
+
ribbonText?: string;
|
|
36
|
+
rotate?: 'right' | 'left';
|
|
37
|
+
removeBorder: boolean;
|
|
38
|
+
useLightHeader: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the header should be displayed.
|
|
41
|
+
*/
|
|
42
|
+
showHeader: boolean;
|
|
43
|
+
isFooterTransparent: boolean;
|
|
44
|
+
footerText?: string;
|
|
45
|
+
showProgressBar: boolean;
|
|
46
|
+
progress?: number;
|
|
47
|
+
actions: ButtonModel[];
|
|
48
|
+
classes: string[];
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
51
|
+
private updateClasses;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "upd-card", never, { "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "hoverEffect": { "alias": "hoverEffect"; "required": false; }; "state": { "alias": "state"; "required": false; }; "type": { "alias": "type"; "required": false; }; "imagePosition": { "alias": "imagePosition"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "stampIcon": { "alias": "stampIcon"; "required": false; }; "stampBackground": { "alias": "stampBackground"; "required": false; }; "statusBackground": { "alias": "statusBackground"; "required": false; }; "statusPosition": { "alias": "statusPosition"; "required": false; }; "ribbonBackground": { "alias": "ribbonBackground"; "required": false; }; "ribbonStyle": { "alias": "ribbonStyle"; "required": false; }; "ribbonIcon": { "alias": "ribbonIcon"; "required": false; }; "ribbonText": { "alias": "ribbonText"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "removeBorder": { "alias": "removeBorder"; "required": false; }; "useLightHeader": { "alias": "useLightHeader"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "isFooterTransparent": { "alias": "isFooterTransparent"; "required": false; }; "footerText": { "alias": "footerText"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, {}, ["headerTemplate", "footerTemplate", "imageTemplate", "actionsTemplate"], ["*"], false, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CardActionsDirective {
|
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardActionsDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CardActionsDirective, "ng-template[updCardActions]", 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 CardFooterDirective {
|
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardFooterDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CardFooterDirective, "ng-template[updCardFooter]", 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 CardHeaderDirective {
|
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeaderDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CardHeaderDirective, "ng-template[updCardHeader]", 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 CardImageDirective {
|
|
4
|
+
readonly templateRef: TemplateRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardImageDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CardImageDirective, "ng-template[updCardImage]", never, {}, {}, never, never, false, never>;
|
|
7
|
+
}
|
package/card/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CardStateType = 'active' | 'inactive';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CardStyleType = 'stacked';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HoverEffectType = 'default' | 'rotate' | 'pop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RibbonStyleType = 'default' | 'top' | 'bottom' | 'bookmark' | 'start';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StatusPositionType = 'top' | 'bottom' | 'start';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./card.component";
|
|
3
|
+
import * as i2 from "./directives/card-header.directive";
|
|
4
|
+
import * as i3 from "./directives/card-footer.directive";
|
|
5
|
+
import * as i4 from "./directives/card-image.directive";
|
|
6
|
+
import * as i5 from "./directives/card-actions.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@updevs/icons";
|
|
9
|
+
import * as i8 from "@updevs/components/button";
|
|
10
|
+
export declare class UpdCardModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdCardModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdCardModule, [typeof i1.CardComponent, typeof i2.CardHeaderDirective, typeof i3.CardFooterDirective, typeof i4.CardImageDirective, typeof i5.CardActionsDirective], [typeof i6.CommonModule, typeof i7.UpdIconsModule, typeof i8.UpdButtonModule], [typeof i1.CardComponent, typeof i2.CardHeaderDirective, typeof i3.CardFooterDirective, typeof i4.CardImageDirective]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdCardModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TextService } from '@updevs/sdk';
|
|
3
|
+
import { DragAndDropItemModel } from './models/drag-and-drop-item.model';
|
|
4
|
+
import { DragAndDropColumnModel } from './models/drag-and-drop-column.model';
|
|
5
|
+
import { DragAndDropConfig } from './models/drag-and-drop.config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DragAndDropComponent implements OnInit {
|
|
8
|
+
config: import("@angular/core").InputSignal<DragAndDropConfig>;
|
|
9
|
+
columns: import("@angular/core").ModelSignal<DragAndDropColumnModel[]>;
|
|
10
|
+
readonly showHandler: import("@angular/core").Signal<boolean>;
|
|
11
|
+
readonly canReorder: import("@angular/core").Signal<boolean>;
|
|
12
|
+
readonly textService: TextService;
|
|
13
|
+
private readonly isReordering;
|
|
14
|
+
private readonly draggedItem;
|
|
15
|
+
private dragEnterCounter;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
canShowHandler(item: DragAndDropItemModel): boolean;
|
|
18
|
+
startDrag(event: DragEvent, item: DragAndDropItemModel, origin: string): void;
|
|
19
|
+
endDrag(item: DragAndDropItemModel): void;
|
|
20
|
+
drop(event: DragEvent, destination: string): void;
|
|
21
|
+
dragOver(event: DragEvent, destination: string): void;
|
|
22
|
+
dragEnter(): void;
|
|
23
|
+
dragLeave(columnName: string): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DragAndDropComponent, "upd-drag-and-drop", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; }, { "columns": "columnsChange"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { TextModel } from '@updevs/sdk';
|
|
3
|
+
import { DragAndDropColumnConfig } from './drag-and-drop-column.config';
|
|
4
|
+
import { DragAndDropItemModel } from './drag-and-drop-item.model';
|
|
5
|
+
export declare class DragAndDropColumnModel {
|
|
6
|
+
name: string;
|
|
7
|
+
title?: TextModel;
|
|
8
|
+
items: WritableSignal<DragAndDropItemModel[]>;
|
|
9
|
+
constructor(init: DragAndDropColumnConfig);
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextModel } from '@updevs/sdk';
|
|
2
|
+
import { DragAndDropItem } from './drag-and-drop-item';
|
|
3
|
+
export declare class DragAndDropItemModel implements DragAndDropItem {
|
|
4
|
+
name: string;
|
|
5
|
+
text: TextModel;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
canDrag: boolean;
|
|
8
|
+
canBeEmpty: boolean;
|
|
9
|
+
isBeingDragged: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
origin?: string;
|
|
11
|
+
get isDraggable(): boolean;
|
|
12
|
+
constructor(init: DragAndDropItem);
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./drag-and-drop.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@updevs/icons";
|
|
5
|
+
export declare class UpdDragAndDropModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdDragAndDropModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdDragAndDropModule, [typeof i1.DragAndDropComponent], [typeof i2.CommonModule, typeof i3.UpdIconsModule], [typeof i1.DragAndDropComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdDragAndDropModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { OnInit, OnChanges, EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { BaseComponent, ButtonModel, OverflowStrategyType } from '@updevs/sdk/layout';
|
|
3
|
+
import { TopBottomLeftRightType, LeftRightType } from '@updevs/sdk/types';
|
|
4
|
+
import { TextService } from '@updevs/sdk';
|
|
5
|
+
import { DropdownItem } from './models/dropdown-item';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DropdownComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
+
localWrapperClasses: string;
|
|
9
|
+
items: DropdownItem[];
|
|
10
|
+
header?: string;
|
|
11
|
+
set isOpen(value: boolean);
|
|
12
|
+
shouldCloseOnOutsideClick: boolean;
|
|
13
|
+
arrowType?: LeftRightType;
|
|
14
|
+
wrapperClasses: string;
|
|
15
|
+
/**
|
|
16
|
+
* Elements that won't trigger the close of the dropdown if clicked upon.
|
|
17
|
+
* Only works when `shouldCloseOnOutsideClick` is set to true.
|
|
18
|
+
*/
|
|
19
|
+
elementsExcludedFromOutsideClick?: HTMLElement[];
|
|
20
|
+
/**
|
|
21
|
+
* Minimum height of the component.
|
|
22
|
+
*/
|
|
23
|
+
minHeight?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum height of the component.
|
|
26
|
+
* If set, scroll bars will be used when the content's size is bigger than the component's.
|
|
27
|
+
*/
|
|
28
|
+
maxHeight?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Minimum width of the component.
|
|
31
|
+
*/
|
|
32
|
+
minWidth?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Maximum width of the component.
|
|
35
|
+
* If set, scroll bars will be used when the content's size is bigger than the component's.
|
|
36
|
+
*/
|
|
37
|
+
maxWidth?: number;
|
|
38
|
+
/**
|
|
39
|
+
* If set, the position of the dropdown will be set according to this element.
|
|
40
|
+
*/
|
|
41
|
+
dropdownReference?: ElementRef;
|
|
42
|
+
/**
|
|
43
|
+
* If a reference is provided, this will be the position of the dropdown in relation to that reference.
|
|
44
|
+
*/
|
|
45
|
+
dropdownReferencePosition: TopBottomLeftRightType;
|
|
46
|
+
readonly isOpenChange: EventEmitter<boolean>;
|
|
47
|
+
readonly selectedItem: EventEmitter<DropdownItem>;
|
|
48
|
+
readonly checkboxChanged: EventEmitter<DropdownItem>;
|
|
49
|
+
textOverflowStrategy: import("@angular/core").InputSignal<OverflowStrategyType>;
|
|
50
|
+
readonly textService: TextService;
|
|
51
|
+
get isOpen(): boolean;
|
|
52
|
+
get overflowClass(): string;
|
|
53
|
+
private baseWrapperClasses;
|
|
54
|
+
private _isOpen;
|
|
55
|
+
private readonly dropdownElement;
|
|
56
|
+
private readonly ngZone;
|
|
57
|
+
private readonly elementRef;
|
|
58
|
+
private readonly renderer;
|
|
59
|
+
private readonly positioningService;
|
|
60
|
+
private readonly domEventsService;
|
|
61
|
+
constructor();
|
|
62
|
+
ngOnInit(): void;
|
|
63
|
+
ngOnChanges(): void;
|
|
64
|
+
onSelect(item: DropdownItem): void;
|
|
65
|
+
onCheckboxChange(item: DropdownItem, isChecked: boolean): void;
|
|
66
|
+
adaptAction(btn: ButtonModel, item: DropdownItem): ButtonModel;
|
|
67
|
+
private closeOnOutsideClick;
|
|
68
|
+
private updateStyle;
|
|
69
|
+
private updateWrapperClasses;
|
|
70
|
+
private updateOpenState;
|
|
71
|
+
private updateMaxHeight;
|
|
72
|
+
private startPositionUpdate;
|
|
73
|
+
private updatePosition;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "upd-dropdown", never, { "items": { "alias": "items"; "required": false; }; "header": { "alias": "header"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "shouldCloseOnOutsideClick": { "alias": "shouldCloseOnOutsideClick"; "required": false; }; "arrowType": { "alias": "arrowType"; "required": false; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; }; "elementsExcludedFromOutsideClick": { "alias": "elementsExcludedFromOutsideClick"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "dropdownReference": { "alias": "dropdownReference"; "required": false; }; "dropdownReferencePosition": { "alias": "dropdownReferencePosition"; "required": false; }; "textOverflowStrategy": { "alias": "textOverflowStrategy"; "required": false; "isSignal": true; }; }, { "isOpenChange": "isOpenChange"; "selectedItem": "selectedItem"; "checkboxChanged": "checkboxChanged"; }, never, ["*"], false, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BgColorStyleType, ButtonModel } from '@updevs/sdk/layout';
|
|
2
|
+
import { IconModel } from '@updevs/icons';
|
|
3
|
+
import { TextModel } from '@updevs/sdk';
|
|
4
|
+
import { DropdownItemType } from './dropdown-item.type';
|
|
5
|
+
import { ToolbarType } from './toolbar.type';
|
|
6
|
+
export interface DropdownItem {
|
|
7
|
+
id?: any;
|
|
8
|
+
text?: TextModel;
|
|
9
|
+
icon?: IconModel;
|
|
10
|
+
type: DropdownItemType;
|
|
11
|
+
toolbarType?: ToolbarType;
|
|
12
|
+
/**
|
|
13
|
+
* If type is checkbox, and this is set, the switch style will be used.
|
|
14
|
+
*/
|
|
15
|
+
isSwitch?: boolean;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
leftBoxText?: string;
|
|
19
|
+
leftBoxImage?: string;
|
|
20
|
+
badgeColor?: BgColorStyleType;
|
|
21
|
+
badgeText?: string;
|
|
22
|
+
isChecked?: boolean;
|
|
23
|
+
actionButtons?: ButtonModel[];
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DropdownItemType = 'default' | 'radio' | 'checkbox' | 'divider' | 'with-toolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ToolbarType = 'grouped' | 'spaced';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dropdown.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@updevs/icons";
|
|
5
|
+
import * as i4 from "@updevs/components/form-controls/radio";
|
|
6
|
+
import * as i5 from "@updevs/components/form-controls/checkbox";
|
|
7
|
+
import * as i6 from "@updevs/components/button";
|
|
8
|
+
export declare class UpdDropdownModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdDropdownModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UpdDropdownModule, [typeof i1.DropdownComponent], [typeof i2.CommonModule, typeof i3.UpdIconsModule, typeof i4.UpdRadioModule, typeof i5.UpdCheckboxModule, typeof i6.UpdButtonModule], [typeof i1.DropdownComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UpdDropdownModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class BadgeConfigModel {
|
|
2
|
+
constructor(init) {
|
|
3
|
+
this.bgColor = 'primary';
|
|
4
|
+
this.isOutline = false;
|
|
5
|
+
this.isPill = false;
|
|
6
|
+
this.isNotification = false;
|
|
7
|
+
this.isBlinking = false;
|
|
8
|
+
this.customClasses = '';
|
|
9
|
+
if (!!init) {
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UtY29uZmlnLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2JhZGdlL3NyYy9iYWRnZS1jb25maWcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsTUFBTSxPQUFPLGdCQUFnQjtJQVV6QixZQUFZLElBQWtCO1FBVDlCLFlBQU8sR0FBcUIsU0FBUyxDQUFDO1FBR3RDLGNBQVMsR0FBRyxLQUFLLENBQUM7UUFDbEIsV0FBTSxHQUFHLEtBQUssQ0FBQztRQUNmLG1CQUFjLEdBQUcsS0FBSyxDQUFDO1FBQ3ZCLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFDbkIsa0JBQWEsR0FBRyxFQUFFLENBQUM7UUFHZixJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztZQUNULE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBQzlCLENBQUM7SUFDTCxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCZ0NvbG9yU3R5bGVUeXBlLCBDb2xvclN0eWxlVHlwZSB9IGZyb20gJ0B1cGRldnMvc2RrL2xheW91dCc7XG5pbXBvcnQgeyBUZXh0TW9kZWwgfSBmcm9tICdAdXBkZXZzL3Nkayc7XG5cbmltcG9ydCB7IEJhZGdlQ29uZmlnIH0gZnJvbSAnLi9iYWRnZS5jb25maWcnO1xuXG5leHBvcnQgY2xhc3MgQmFkZ2VDb25maWdNb2RlbCBpbXBsZW1lbnRzIEJhZGdlQ29uZmlnIHtcbiAgICBiZ0NvbG9yOiBCZ0NvbG9yU3R5bGVUeXBlID0gJ3ByaW1hcnknO1xuICAgIHRleHRDb2xvcj86IENvbG9yU3R5bGVUeXBlO1xuICAgIHRleHQ/OiBUZXh0TW9kZWw7XG4gICAgaXNPdXRsaW5lID0gZmFsc2U7XG4gICAgaXNQaWxsID0gZmFsc2U7XG4gICAgaXNOb3RpZmljYXRpb24gPSBmYWxzZTtcbiAgICBpc0JsaW5raW5nID0gZmFsc2U7XG4gICAgY3VzdG9tQ2xhc3NlcyA9ICcnO1xuXG4gICAgY29uc3RydWN0b3IoaW5pdD86IEJhZGdlQ29uZmlnKSB7XG4gICAgICAgIGlmICghIWluaXQpIHtcbiAgICAgICAgICAgIE9iamVjdC5hc3NpZ24odGhpcywgaW5pdCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|