@updevs/components 1.0.0-alpha.98 → 1.0.0-beta.1
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/fesm2022/updevs-components-badge.mjs +21 -21
- package/fesm2022/updevs-components-badge.mjs.map +1 -1
- package/fesm2022/updevs-components-button.mjs +39 -39
- package/fesm2022/updevs-components-button.mjs.map +1 -1
- package/fesm2022/updevs-components-calendar.mjs +41 -41
- package/fesm2022/updevs-components-calendar.mjs.map +1 -1
- package/fesm2022/updevs-components-card.mjs +24 -20
- package/fesm2022/updevs-components-card.mjs.map +1 -1
- package/fesm2022/updevs-components-drag-and-drop.mjs +17 -17
- package/fesm2022/updevs-components-drag-and-drop.mjs.map +1 -1
- package/fesm2022/updevs-components-dropdown.mjs +10 -10
- package/fesm2022/updevs-components-dropdown.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-abstractions.mjs +19 -19
- package/fesm2022/updevs-components-form-controls-abstractions.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-checkbox.mjs +16 -16
- package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-date-picker.mjs +8 -8
- package/fesm2022/updevs-components-form-controls-date-picker.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-file-upload.mjs +26 -26
- package/fesm2022/updevs-components-form-controls-file-upload.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-input.mjs +16 -14
- package/fesm2022/updevs-components-form-controls-input.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-radio.mjs +8 -8
- package/fesm2022/updevs-components-form-controls-radio.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-select.mjs +52 -48
- package/fesm2022/updevs-components-form-controls-select.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-textarea.mjs +15 -15
- package/fesm2022/updevs-components-form-controls-textarea.mjs.map +1 -1
- package/fesm2022/updevs-components-form-controls-time-picker.mjs +12 -12
- package/fesm2022/updevs-components-form-controls-time-picker.mjs.map +1 -1
- package/fesm2022/updevs-components-form.mjs +31 -31
- package/fesm2022/updevs-components-form.mjs.map +1 -1
- package/fesm2022/updevs-components-layout.mjs +112 -110
- package/fesm2022/updevs-components-layout.mjs.map +1 -1
- package/fesm2022/updevs-components-link.mjs +8 -8
- package/fesm2022/updevs-components-link.mjs.map +1 -1
- package/fesm2022/updevs-components-list.mjs +8 -8
- package/fesm2022/updevs-components-list.mjs.map +1 -1
- package/fesm2022/updevs-components-modal.mjs +25 -24
- package/fesm2022/updevs-components-modal.mjs.map +1 -1
- package/fesm2022/updevs-components-paginator.mjs +36 -36
- package/fesm2022/updevs-components-paginator.mjs.map +1 -1
- package/fesm2022/updevs-components-popover.mjs +13 -12
- package/fesm2022/updevs-components-popover.mjs.map +1 -1
- package/fesm2022/updevs-components-pricing.mjs +22 -22
- package/fesm2022/updevs-components-pricing.mjs.map +1 -1
- package/fesm2022/updevs-components-table.mjs +181 -208
- package/fesm2022/updevs-components-table.mjs.map +1 -1
- package/fesm2022/updevs-components.mjs +4 -4
- package/package.json +67 -111
- package/types/updevs-components-badge.d.ts +44 -0
- package/types/updevs-components-button.d.ts +75 -0
- package/types/updevs-components-calendar.d.ts +175 -0
- package/{card/card.component.d.ts → types/updevs-components-card.d.ts} +50 -12
- package/types/updevs-components-drag-and-drop.d.ts +74 -0
- package/{dropdown/dropdown.component.d.ts → types/updevs-components-dropdown.d.ts} +52 -8
- package/types/updevs-components-form-controls-abstractions.d.ts +49 -0
- package/types/updevs-components-form-controls-checkbox.d.ts +33 -0
- package/{form-controls/date-picker/date-picker.component.d.ts → types/updevs-components-form-controls-date-picker.d.ts} +17 -3
- package/types/updevs-components-form-controls-file-upload.d.ts +69 -0
- package/{form-controls/input/input.component.d.ts → types/updevs-components-form-controls-input.d.ts} +33 -7
- package/{form-controls/radio/radio.component.d.ts → types/updevs-components-form-controls-radio.d.ts} +14 -2
- package/types/updevs-components-form-controls-select.d.ts +200 -0
- package/types/updevs-components-form-controls-textarea.d.ts +31 -0
- package/types/updevs-components-form-controls-time-picker.d.ts +164 -0
- package/types/updevs-components-form.d.ts +356 -0
- package/types/updevs-components-layout.d.ts +490 -0
- package/{link/link.component.d.ts → types/updevs-components-link.d.ts} +16 -4
- package/types/updevs-components-list.d.ts +107 -0
- package/types/updevs-components-modal.d.ts +155 -0
- package/types/updevs-components-paginator.d.ts +58 -0
- package/types/updevs-components-popover.d.ts +63 -0
- package/types/updevs-components-pricing.d.ts +91 -0
- package/types/updevs-components-table.d.ts +619 -0
- package/types/updevs-components.d.ts +44 -0
- package/badge/badge-config.model.d.ts +0 -14
- package/badge/badge.component.d.ts +0 -23
- package/badge/badge.config.d.ts +0 -12
- package/badge/index.d.ts +0 -1
- package/badge/public-api.d.ts +0 -3
- package/badge/upd-badge.module.d.ts +0 -8
- package/button/button.component.d.ts +0 -62
- package/button/index.d.ts +0 -1
- package/button/public-api.d.ts +0 -2
- package/button/upd-button.module.d.ts +0 -10
- package/calendar/calendar.component.d.ts +0 -63
- package/calendar/index.d.ts +0 -1
- package/calendar/models/calendar-date.model.d.ts +0 -10
- package/calendar/models/calendar-month.model.d.ts +0 -7
- package/calendar/models/calendar-selected.model.d.ts +0 -5
- package/calendar/models/calendar-user-event.model.d.ts +0 -4
- package/calendar/models/calendar-year.model.d.ts +0 -6
- package/calendar/models/date-range.model.d.ts +0 -22
- package/calendar/models/enums/calendar-view.enum.d.ts +0 -5
- package/calendar/models/public-api.d.ts +0 -7
- package/calendar/public-api.d.ts +0 -5
- package/calendar/services/calendar-range-strategy.service.d.ts +0 -35
- package/calendar/services/calendar-signals.service.d.ts +0 -24
- package/calendar/services/public-api.d.ts +0 -1
- package/calendar/types/calendar-view.type.d.ts +0 -1
- package/calendar/types/public-api.d.ts +0 -1
- package/calendar/upd-calendar.module.d.ts +0 -13
- package/card/directives/card-actions.directive.d.ts +0 -7
- package/card/directives/card-footer.directive.d.ts +0 -7
- package/card/directives/card-header.directive.d.ts +0 -7
- package/card/directives/card-image.directive.d.ts +0 -7
- package/card/directives/public-api.d.ts +0 -4
- package/card/index.d.ts +0 -1
- package/card/public-api.d.ts +0 -4
- package/card/types/card-state.type.d.ts +0 -1
- package/card/types/card-style.type.d.ts +0 -1
- package/card/types/hover-effect.type.d.ts +0 -1
- package/card/types/public-api.d.ts +0 -5
- package/card/types/ribbon-style.type.d.ts +0 -1
- package/card/types/status-position.type.d.ts +0 -1
- package/card/upd-card.module.d.ts +0 -14
- package/drag-and-drop/drag-and-drop.component.d.ts +0 -26
- package/drag-and-drop/index.d.ts +0 -1
- package/drag-and-drop/models/drag-and-drop-column.config.d.ts +0 -8
- package/drag-and-drop/models/drag-and-drop-column.model.d.ts +0 -10
- package/drag-and-drop/models/drag-and-drop-item.d.ts +0 -7
- package/drag-and-drop/models/drag-and-drop-item.model.d.ts +0 -13
- package/drag-and-drop/models/drag-and-drop.config.d.ts +0 -6
- package/drag-and-drop/models/public-api.d.ts +0 -4
- package/drag-and-drop/public-api.d.ts +0 -3
- package/drag-and-drop/upd-drag-and-drop.module.d.ts +0 -9
- package/dropdown/index.d.ts +0 -1
- package/dropdown/models/dropdown-action-clicked.model.d.ts +0 -6
- package/dropdown/models/dropdown-item.d.ts +0 -25
- package/dropdown/models/dropdown-item.type.d.ts +0 -1
- package/dropdown/models/public-api.d.ts +0 -4
- package/dropdown/models/toolbar.type.d.ts +0 -1
- package/dropdown/public-api.d.ts +0 -3
- package/dropdown/upd-dropdown.module.d.ts +0 -12
- package/esm2022/badge/badge-config.model.mjs +0 -14
- package/esm2022/badge/badge.component.mjs +0 -48
- package/esm2022/badge/badge.config.mjs +0 -2
- package/esm2022/badge/index.mjs +0 -2
- package/esm2022/badge/public-api.mjs +0 -4
- package/esm2022/badge/upd-badge.module.mjs +0 -24
- package/esm2022/badge/updevs-components-badge.mjs +0 -5
- package/esm2022/button/button.component.mjs +0 -157
- package/esm2022/button/index.mjs +0 -2
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/button/upd-button.module.mjs +0 -32
- package/esm2022/button/updevs-components-button.mjs +0 -5
- package/esm2022/calendar/assets/i18n/en.json +0 -16
- package/esm2022/calendar/assets/i18n/pt.json +0 -16
- package/esm2022/calendar/calendar.component.mjs +0 -318
- package/esm2022/calendar/index.mjs +0 -2
- package/esm2022/calendar/models/calendar-date.model.mjs +0 -2
- package/esm2022/calendar/models/calendar-month.model.mjs +0 -2
- package/esm2022/calendar/models/calendar-selected.model.mjs +0 -2
- package/esm2022/calendar/models/calendar-user-event.model.mjs +0 -2
- package/esm2022/calendar/models/calendar-year.model.mjs +0 -2
- package/esm2022/calendar/models/date-range.model.mjs +0 -18
- package/esm2022/calendar/models/enums/calendar-view.enum.mjs +0 -7
- package/esm2022/calendar/models/public-api.mjs +0 -8
- package/esm2022/calendar/public-api.mjs +0 -6
- package/esm2022/calendar/services/calendar-range-strategy.service.mjs +0 -99
- package/esm2022/calendar/services/calendar-signals.service.mjs +0 -47
- package/esm2022/calendar/services/public-api.mjs +0 -2
- package/esm2022/calendar/types/calendar-view.type.mjs +0 -2
- package/esm2022/calendar/types/public-api.mjs +0 -2
- package/esm2022/calendar/upd-calendar.module.mjs +0 -52
- package/esm2022/calendar/updevs-components-calendar.mjs +0 -5
- package/esm2022/card/card.component.mjs +0 -136
- package/esm2022/card/directives/card-actions.directive.mjs +0 -16
- package/esm2022/card/directives/card-footer.directive.mjs +0 -16
- package/esm2022/card/directives/card-header.directive.mjs +0 -16
- package/esm2022/card/directives/card-image.directive.mjs +0 -16
- package/esm2022/card/directives/public-api.mjs +0 -5
- package/esm2022/card/index.mjs +0 -2
- package/esm2022/card/public-api.mjs +0 -5
- package/esm2022/card/types/card-state.type.mjs +0 -2
- package/esm2022/card/types/card-style.type.mjs +0 -2
- package/esm2022/card/types/hover-effect.type.mjs +0 -2
- package/esm2022/card/types/public-api.mjs +0 -6
- package/esm2022/card/types/ribbon-style.type.mjs +0 -2
- package/esm2022/card/types/status-position.type.mjs +0 -2
- package/esm2022/card/upd-card.module.mjs +0 -50
- package/esm2022/card/updevs-components-card.mjs +0 -5
- package/esm2022/drag-and-drop/drag-and-drop.component.mjs +0 -134
- package/esm2022/drag-and-drop/index.mjs +0 -2
- package/esm2022/drag-and-drop/models/drag-and-drop-column.config.mjs +0 -2
- package/esm2022/drag-and-drop/models/drag-and-drop-column.model.mjs +0 -9
- package/esm2022/drag-and-drop/models/drag-and-drop-item.mjs +0 -2
- package/esm2022/drag-and-drop/models/drag-and-drop-item.model.mjs +0 -14
- package/esm2022/drag-and-drop/models/drag-and-drop.config.mjs +0 -2
- package/esm2022/drag-and-drop/models/public-api.mjs +0 -5
- package/esm2022/drag-and-drop/public-api.mjs +0 -4
- package/esm2022/drag-and-drop/upd-drag-and-drop.module.mjs +0 -28
- package/esm2022/drag-and-drop/updevs-components-drag-and-drop.mjs +0 -5
- package/esm2022/dropdown/dropdown.component.mjs +0 -203
- package/esm2022/dropdown/index.mjs +0 -2
- package/esm2022/dropdown/models/dropdown-action-clicked.model.mjs +0 -2
- package/esm2022/dropdown/models/dropdown-item.mjs +0 -2
- package/esm2022/dropdown/models/dropdown-item.type.mjs +0 -2
- package/esm2022/dropdown/models/public-api.mjs +0 -5
- package/esm2022/dropdown/models/toolbar.type.mjs +0 -2
- package/esm2022/dropdown/public-api.mjs +0 -4
- package/esm2022/dropdown/upd-dropdown.module.mjs +0 -40
- package/esm2022/dropdown/updevs-components-dropdown.mjs +0 -5
- package/esm2022/form/assets/i18n/en.json +0 -17
- package/esm2022/form/assets/i18n/pt.json +0 -17
- package/esm2022/form/components/dynamic-field/dynamic-field.component.mjs +0 -180
- package/esm2022/form/form.component.mjs +0 -180
- package/esm2022/form/index.mjs +0 -2
- package/esm2022/form/models/attachment-rule.model.mjs +0 -2
- package/esm2022/form/models/button-field.model.mjs +0 -2
- package/esm2022/form/models/button-group-field.model.mjs +0 -2
- package/esm2022/form/models/checkbox-field.model.mjs +0 -2
- package/esm2022/form/models/checkbox-group-field.model.mjs +0 -2
- package/esm2022/form/models/dynamic-field.model.mjs +0 -2
- package/esm2022/form/models/enums/attachment-type.enum.mjs +0 -15
- package/esm2022/form/models/enums/dynamic-field.type.mjs +0 -17
- package/esm2022/form/models/enums/public-api.mjs +0 -3
- package/esm2022/form/models/file-upload-field.model.mjs +0 -2
- package/esm2022/form/models/form-config.mjs +0 -2
- package/esm2022/form/models/form-row.model.mjs +0 -2
- package/esm2022/form/models/form-update-on.type.mjs +0 -2
- package/esm2022/form/models/input-field.model.mjs +0 -2
- package/esm2022/form/models/masked-input-field.model.mjs +0 -2
- package/esm2022/form/models/public-api.mjs +0 -19
- package/esm2022/form/models/radio-field.model.mjs +0 -2
- package/esm2022/form/models/radio-group-field.model.mjs +0 -2
- package/esm2022/form/models/select-field.model.mjs +0 -2
- package/esm2022/form/models/single-select-field.model.mjs +0 -2
- package/esm2022/form/models/textarea-field.model.mjs +0 -2
- package/esm2022/form/models/validator-config.mjs +0 -2
- package/esm2022/form/public-api.mjs +0 -4
- package/esm2022/form/tools/errors-helper.mjs +0 -54
- package/esm2022/form/upd-form.module.mjs +0 -84
- package/esm2022/form/updevs-components-form.mjs +0 -5
- package/esm2022/form-controls/abstractions/base-control.mjs +0 -99
- package/esm2022/form-controls/abstractions/index.mjs +0 -2
- package/esm2022/form-controls/abstractions/public-api.mjs +0 -2
- package/esm2022/form-controls/abstractions/updevs-components-form-controls-abstractions.mjs +0 -5
- package/esm2022/form-controls/checkbox/checkbox.component.mjs +0 -63
- package/esm2022/form-controls/checkbox/index.mjs +0 -2
- package/esm2022/form-controls/checkbox/public-api.mjs +0 -3
- package/esm2022/form-controls/checkbox/upd-checkbox.module.mjs +0 -32
- package/esm2022/form-controls/checkbox/updevs-components-form-controls-checkbox.mjs +0 -5
- package/esm2022/form-controls/date-picker/date-picker.component.mjs +0 -132
- package/esm2022/form-controls/date-picker/index.mjs +0 -2
- package/esm2022/form-controls/date-picker/public-api.mjs +0 -3
- package/esm2022/form-controls/date-picker/upd-date-picker.module.mjs +0 -40
- package/esm2022/form-controls/date-picker/updevs-components-form-controls-date-picker.mjs +0 -5
- package/esm2022/form-controls/file-upload/assets/i18n/en.json +0 -15
- package/esm2022/form-controls/file-upload/assets/i18n/pt.json +0 -15
- package/esm2022/form-controls/file-upload/file-upload-changed.event.mjs +0 -2
- package/esm2022/form-controls/file-upload/file-upload.component.mjs +0 -177
- package/esm2022/form-controls/file-upload/index.mjs +0 -2
- package/esm2022/form-controls/file-upload/public-api.mjs +0 -4
- package/esm2022/form-controls/file-upload/upd-file-upload.module.mjs +0 -48
- package/esm2022/form-controls/file-upload/updevs-components-form-controls-file-upload.mjs +0 -5
- package/esm2022/form-controls/input/directives/input-append.directive.mjs +0 -16
- package/esm2022/form-controls/input/directives/input-prepend.directive.mjs +0 -16
- package/esm2022/form-controls/input/directives/public-api.mjs +0 -3
- package/esm2022/form-controls/input/index.mjs +0 -2
- package/esm2022/form-controls/input/input.component.mjs +0 -205
- package/esm2022/form-controls/input/public-api.mjs +0 -5
- package/esm2022/form-controls/input/types/input.type.mjs +0 -2
- package/esm2022/form-controls/input/types/loader-position.type.mjs +0 -2
- package/esm2022/form-controls/input/types/public-api.mjs +0 -3
- package/esm2022/form-controls/input/upd-input.module.mjs +0 -46
- package/esm2022/form-controls/input/updevs-components-form-controls-input.mjs +0 -5
- package/esm2022/form-controls/radio/index.mjs +0 -2
- package/esm2022/form-controls/radio/public-api.mjs +0 -3
- package/esm2022/form-controls/radio/radio.component.mjs +0 -62
- package/esm2022/form-controls/radio/upd-radio.module.mjs +0 -32
- package/esm2022/form-controls/radio/updevs-components-form-controls-radio.mjs +0 -5
- package/esm2022/form-controls/select/components/multiple/select-multiple.component.mjs +0 -109
- package/esm2022/form-controls/select/components/single/select.component.mjs +0 -190
- package/esm2022/form-controls/select/index.mjs +0 -2
- package/esm2022/form-controls/select/models/abstractions/base-select.component.mjs +0 -246
- package/esm2022/form-controls/select/models/defaults.mjs +0 -8
- package/esm2022/form-controls/select/models/public-api.mjs +0 -4
- package/esm2022/form-controls/select/models/select-item.mjs +0 -2
- package/esm2022/form-controls/select/models/types.mjs +0 -2
- package/esm2022/form-controls/select/public-api.mjs +0 -5
- package/esm2022/form-controls/select/upd-select.module.mjs +0 -57
- package/esm2022/form-controls/select/updevs-components-form-controls-select.mjs +0 -5
- package/esm2022/form-controls/textarea/index.mjs +0 -2
- package/esm2022/form-controls/textarea/public-api.mjs +0 -3
- package/esm2022/form-controls/textarea/textarea.component.mjs +0 -51
- package/esm2022/form-controls/textarea/upd-textarea.module.mjs +0 -24
- package/esm2022/form-controls/textarea/updevs-components-form-controls-textarea.mjs +0 -5
- package/esm2022/form-controls/time-picker/assets/i18n/en.json +0 -5
- package/esm2022/form-controls/time-picker/assets/i18n/pt.json +0 -5
- package/esm2022/form-controls/time-picker/index.mjs +0 -2
- package/esm2022/form-controls/time-picker/public-api.mjs +0 -4
- package/esm2022/form-controls/time-picker/time-picker.component.mjs +0 -130
- package/esm2022/form-controls/time-picker/time-selector/time-selector.component.mjs +0 -124
- package/esm2022/form-controls/time-picker/upd-time-picker.module.mjs +0 -61
- package/esm2022/form-controls/time-picker/updevs-components-form-controls-time-picker.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/layout/abstractions/base-page.component.mjs +0 -23
- package/esm2022/layout/abstractions/base.layout.mjs +0 -31
- package/esm2022/layout/abstractions/public-api.mjs +0 -2
- package/esm2022/layout/assets/i18n/en.json +0 -27
- package/esm2022/layout/assets/i18n/pt.json +0 -27
- package/esm2022/layout/index.mjs +0 -2
- package/esm2022/layout/layouts/blank-layout/blank-layout.component.mjs +0 -22
- package/esm2022/layout/layouts/blank-layout/blank-layout.module.mjs +0 -50
- package/esm2022/layout/layouts/public-api.mjs +0 -5
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.mjs +0 -17
- package/esm2022/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.mjs +0 -78
- package/esm2022/layout/models/login-page-config.model.mjs +0 -20
- package/esm2022/layout/models/login-page.config.mjs +0 -2
- package/esm2022/layout/models/public-api.mjs +0 -3
- package/esm2022/layout/models/security-layout-config.model.mjs +0 -10
- package/esm2022/layout/models/security-layout.config.mjs +0 -2
- package/esm2022/layout/models/upd-layout-config.model.mjs +0 -24
- package/esm2022/layout/models/upd-layout.config.mjs +0 -2
- package/esm2022/layout/pages/auth-flow/auth-flow-routing.module.mjs +0 -28
- package/esm2022/layout/pages/auth-flow/auth-flow.module.mjs +0 -73
- package/esm2022/layout/pages/auth-flow/logged-out/logged-out.component.mjs +0 -11
- package/esm2022/layout/pages/auth-flow/login/login.component.mjs +0 -110
- package/esm2022/layout/pages/auth-flow/oauth-callback/oauth-callback.component.mjs +0 -11
- package/esm2022/layout/pages/auth-flow/public-api.mjs +0 -6
- package/esm2022/layout/pages/public-api.mjs +0 -2
- package/esm2022/layout/partials/footer/footer.component.mjs +0 -52
- package/esm2022/layout/partials/footer/footer.module.mjs +0 -28
- package/esm2022/layout/partials/footer/public-api.mjs +0 -3
- package/esm2022/layout/partials/header/header-style.type.mjs +0 -2
- package/esm2022/layout/partials/header/header.component.mjs +0 -140
- package/esm2022/layout/partials/header/header.module.mjs +0 -40
- package/esm2022/layout/partials/header/public-api.mjs +0 -4
- package/esm2022/layout/partials/page-header/page-header.component.mjs +0 -15
- package/esm2022/layout/partials/page-header/public-api.mjs +0 -2
- package/esm2022/layout/partials/public-api.mjs +0 -5
- package/esm2022/layout/partials/sidebar/public-api.mjs +0 -2
- package/esm2022/layout/partials/sidebar/sidebar.component.mjs +0 -234
- package/esm2022/layout/public-api.mjs +0 -8
- package/esm2022/layout/services/public-api.mjs +0 -2
- package/esm2022/layout/services/upd-layout-config.service.mjs +0 -21
- package/esm2022/layout/tools/layout.constants.mjs +0 -15
- package/esm2022/layout/upd-layout.module.mjs +0 -47
- package/esm2022/layout/updevs-components-layout.mjs +0 -5
- package/esm2022/lib/index.mjs +0 -2
- package/esm2022/lib/models/public-api.mjs +0 -2
- package/esm2022/lib/models/row-column-size.mjs +0 -2
- package/esm2022/lib/public-api.mjs +0 -5
- package/esm2022/lib/tools/column-size.helper.mjs +0 -12
- package/esm2022/lib/tools/public-api.mjs +0 -2
- package/esm2022/lib/types/component-size.type.mjs +0 -2
- package/esm2022/lib/types/horizontal-vertical.type.mjs +0 -2
- package/esm2022/lib/types/public-api.mjs +0 -4
- package/esm2022/lib/types/validation-status.type.mjs +0 -2
- package/esm2022/lib/upd-components.module.mjs +0 -14
- package/esm2022/link/index.mjs +0 -2
- package/esm2022/link/link.component.mjs +0 -51
- package/esm2022/link/public-api.mjs +0 -4
- package/esm2022/link/target.type.mjs +0 -2
- package/esm2022/link/upd-link.module.mjs +0 -24
- package/esm2022/link/updevs-components-link.mjs +0 -5
- package/esm2022/list/assets/i18n/en.json +0 -9
- package/esm2022/list/assets/i18n/pt.json +0 -9
- package/esm2022/list/index.mjs +0 -2
- package/esm2022/list/list.component.mjs +0 -117
- package/esm2022/list/models/badge-position.type.mjs +0 -2
- package/esm2022/list/models/list-item.mjs +0 -2
- package/esm2022/list/models/list-item.model.mjs +0 -20
- package/esm2022/list/models/public-api.mjs +0 -3
- package/esm2022/list/public-api.mjs +0 -4
- package/esm2022/list/upd-list.module.mjs +0 -44
- package/esm2022/list/updevs-components-list.mjs +0 -5
- package/esm2022/modal/assets/i18n/en.json +0 -17
- package/esm2022/modal/assets/i18n/pt.json +0 -17
- package/esm2022/modal/components/modal-container/modal-container.component.mjs +0 -216
- package/esm2022/modal/index.mjs +0 -2
- package/esm2022/modal/models/base.modal.mjs +0 -14
- package/esm2022/modal/models/modal-config.model.mjs +0 -20
- package/esm2022/modal/models/modal-ref.mjs +0 -2
- package/esm2022/modal/models/modal.config.mjs +0 -2
- package/esm2022/modal/models/public-api.mjs +0 -4
- package/esm2022/modal/public-api.mjs +0 -4
- package/esm2022/modal/services/modal-alert.service.mjs +0 -99
- package/esm2022/modal/services/modal.service.mjs +0 -30
- package/esm2022/modal/services/public-api.mjs +0 -3
- package/esm2022/modal/types/modal-footer-style.type.mjs +0 -2
- package/esm2022/modal/types/modal-size.type.mjs +0 -2
- package/esm2022/modal/upd-modal.module.mjs +0 -90
- package/esm2022/modal/updevs-components-modal.mjs +0 -5
- package/esm2022/paginator/assets/i18n/en.json +0 -15
- package/esm2022/paginator/assets/i18n/pt.json +0 -15
- package/esm2022/paginator/index.mjs +0 -2
- package/esm2022/paginator/paginator.component.mjs +0 -66
- package/esm2022/paginator/public-api.mjs +0 -3
- package/esm2022/paginator/upd-paginator.module.mjs +0 -47
- package/esm2022/paginator/updevs-components-paginator.mjs +0 -5
- package/esm2022/popover/index.mjs +0 -2
- package/esm2022/popover/popover.component.mjs +0 -65
- package/esm2022/popover/popover.directive.mjs +0 -120
- package/esm2022/popover/public-api.mjs +0 -4
- package/esm2022/popover/upd-popover.module.mjs +0 -29
- package/esm2022/popover/updevs-components-popover.mjs +0 -5
- package/esm2022/pricing/index.mjs +0 -2
- package/esm2022/pricing/models/price-item-feature.model.mjs +0 -2
- package/esm2022/pricing/models/price-item-features-group.model.mjs +0 -2
- package/esm2022/pricing/models/price-item-tag.model.mjs +0 -2
- package/esm2022/pricing/models/price-item.model.mjs +0 -2
- package/esm2022/pricing/models/public-api.mjs +0 -5
- package/esm2022/pricing/pricing-cards/pricing-cards.component.mjs +0 -27
- package/esm2022/pricing/pricing-table/pricing-table.component.mjs +0 -57
- package/esm2022/pricing/public-api.mjs +0 -5
- package/esm2022/pricing/upd-pricing.module.mjs +0 -49
- package/esm2022/pricing/updevs-components-pricing.mjs +0 -5
- package/esm2022/public-api.mjs +0 -2
- package/esm2022/table/abstractions/base-column.model.mjs +0 -52
- package/esm2022/table/abstractions/base.column.mjs +0 -84
- package/esm2022/table/abstractions/filters-operands.service.mjs +0 -3
- package/esm2022/table/abstractions/public-api.mjs +0 -4
- package/esm2022/table/assets/i18n/en.json +0 -74
- package/esm2022/table/assets/i18n/pt.json +0 -74
- package/esm2022/table/components/columns/boolean-column/boolean-column.component.mjs +0 -26
- package/esm2022/table/components/columns/date-time-column/date-time-column.component.mjs +0 -13
- package/esm2022/table/components/columns/number-column/number-column.component.mjs +0 -13
- package/esm2022/table/components/columns/text-column/text-column.component.mjs +0 -31
- package/esm2022/table/components/columns-manager/columns-manager.component.mjs +0 -36
- package/esm2022/table/components/filter-row/filter-row.component.mjs +0 -124
- package/esm2022/table/components/save-search/save-search.component.mjs +0 -72
- package/esm2022/table/components/search-section/search-section.component.mjs +0 -84
- package/esm2022/table/directives/public-api.mjs +0 -2
- package/esm2022/table/directives/table-column.directive.mjs +0 -54
- package/esm2022/table/index.mjs +0 -2
- package/esm2022/table/models/columns/boolean-column.model.mjs +0 -22
- package/esm2022/table/models/columns/custom-column.model.mjs +0 -11
- package/esm2022/table/models/columns/date-time-column.model.mjs +0 -16
- package/esm2022/table/models/columns/guid-column.model.mjs +0 -13
- package/esm2022/table/models/columns/image-column.model.mjs +0 -11
- package/esm2022/table/models/columns/number-column.model.mjs +0 -17
- package/esm2022/table/models/columns/public-api.mjs +0 -8
- package/esm2022/table/models/columns/text-column.model.mjs +0 -11
- package/esm2022/table/models/enums/column-type.enum.mjs +0 -15
- package/esm2022/table/models/enums/public-api.mjs +0 -2
- package/esm2022/table/models/filter-item.model.mjs +0 -2
- package/esm2022/table/models/filter-operand.config.mjs +0 -2
- package/esm2022/table/models/operands-lists/boolean-filter-operands-list.model.mjs +0 -25
- package/esm2022/table/models/operands-lists/date-filter-operands-list.model.mjs +0 -25
- package/esm2022/table/models/operands-lists/date-or-number-operands-list.config.mjs +0 -31
- package/esm2022/table/models/operands-lists/filter-operands-list.config.mjs +0 -31
- package/esm2022/table/models/operands-lists/guid-filter-operands-list.model.mjs +0 -16
- package/esm2022/table/models/operands-lists/number-filter-operands-list.model.mjs +0 -25
- package/esm2022/table/models/operands-lists/select-filter-operands-list.model.mjs +0 -12
- package/esm2022/table/models/operands-lists/string-filter-operands-list.model.mjs +0 -45
- package/esm2022/table/models/public-api.mjs +0 -5
- package/esm2022/table/models/saved-view.model.mjs +0 -2
- package/esm2022/table/models/table-config.model.mjs +0 -40
- package/esm2022/table/models/table.config.mjs +0 -2
- package/esm2022/table/models/upd-table-config.model.mjs +0 -9
- package/esm2022/table/models/upd-table.config.mjs +0 -2
- package/esm2022/table/public-api.mjs +0 -6
- package/esm2022/table/services/current-search-request.service.mjs +0 -280
- package/esm2022/table/services/default-filters-operands.service.mjs +0 -64
- package/esm2022/table/services/storages/saved-views.storage.mjs +0 -56
- package/esm2022/table/services/stores/filters-operands.store.mjs +0 -19
- package/esm2022/table/services/upd-table-config.service.mjs +0 -18
- package/esm2022/table/table.component.mjs +0 -435
- package/esm2022/table/tools/filters.tools.mjs +0 -75
- package/esm2022/table/tools/table.constants.mjs +0 -15
- package/esm2022/table/upd-table.module.mjs +0 -150
- package/esm2022/table/updevs-components-table.mjs +0 -5
- package/esm2022/updevs-components.mjs +0 -5
- package/form/components/dynamic-field/dynamic-field.component.d.ts +0 -65
- package/form/form.component.d.ts +0 -64
- package/form/index.d.ts +0 -1
- package/form/models/attachment-rule.model.d.ts +0 -35
- package/form/models/button-field.model.d.ts +0 -5
- package/form/models/button-group-field.model.d.ts +0 -5
- package/form/models/checkbox-field.model.d.ts +0 -4
- package/form/models/checkbox-group-field.model.d.ts +0 -6
- package/form/models/dynamic-field.model.d.ts +0 -56
- package/form/models/enums/attachment-type.enum.d.ts +0 -13
- package/form/models/enums/dynamic-field.type.d.ts +0 -15
- package/form/models/enums/public-api.d.ts +0 -2
- package/form/models/file-upload-field.model.d.ts +0 -16
- package/form/models/form-config.d.ts +0 -2
- package/form/models/form-row.model.d.ts +0 -10
- package/form/models/form-update-on.type.d.ts +0 -1
- package/form/models/input-field.model.d.ts +0 -9
- package/form/models/masked-input-field.model.d.ts +0 -6
- package/form/models/public-api.d.ts +0 -18
- package/form/models/radio-field.model.d.ts +0 -4
- package/form/models/radio-group-field.model.d.ts +0 -6
- package/form/models/select-field.model.d.ts +0 -29
- package/form/models/single-select-field.model.d.ts +0 -4
- package/form/models/textarea-field.model.d.ts +0 -10
- package/form/models/validator-config.d.ts +0 -5
- package/form/public-api.d.ts +0 -3
- package/form/tools/errors-helper.d.ts +0 -11
- package/form/upd-form.module.d.ts +0 -22
- package/form-controls/abstractions/base-control.d.ts +0 -47
- package/form-controls/abstractions/index.d.ts +0 -2
- package/form-controls/abstractions/public-api.d.ts +0 -2
- package/form-controls/checkbox/checkbox.component.d.ts +0 -21
- package/form-controls/checkbox/index.d.ts +0 -1
- package/form-controls/checkbox/public-api.d.ts +0 -2
- package/form-controls/checkbox/upd-checkbox.module.d.ts +0 -10
- package/form-controls/date-picker/index.d.ts +0 -1
- package/form-controls/date-picker/public-api.d.ts +0 -2
- package/form-controls/date-picker/upd-date-picker.module.d.ts +0 -12
- package/form-controls/file-upload/file-upload-changed.event.d.ts +0 -4
- package/form-controls/file-upload/file-upload.component.d.ts +0 -48
- package/form-controls/file-upload/index.d.ts +0 -1
- package/form-controls/file-upload/public-api.d.ts +0 -3
- package/form-controls/file-upload/upd-file-upload.module.d.ts +0 -14
- package/form-controls/input/directives/input-append.directive.d.ts +0 -7
- package/form-controls/input/directives/input-prepend.directive.d.ts +0 -7
- package/form-controls/input/directives/public-api.d.ts +0 -2
- package/form-controls/input/index.d.ts +0 -1
- package/form-controls/input/public-api.d.ts +0 -4
- package/form-controls/input/types/input.type.d.ts +0 -1
- package/form-controls/input/types/loader-position.type.d.ts +0 -1
- package/form-controls/input/types/public-api.d.ts +0 -2
- package/form-controls/input/upd-input.module.d.ts +0 -13
- package/form-controls/radio/index.d.ts +0 -1
- package/form-controls/radio/public-api.d.ts +0 -2
- package/form-controls/radio/upd-radio.module.d.ts +0 -10
- package/form-controls/select/components/multiple/select-multiple.component.d.ts +0 -31
- package/form-controls/select/components/single/select.component.d.ts +0 -35
- package/form-controls/select/index.d.ts +0 -1
- package/form-controls/select/models/abstractions/base-select.component.d.ts +0 -88
- package/form-controls/select/models/defaults.d.ts +0 -8
- package/form-controls/select/models/public-api.d.ts +0 -3
- package/form-controls/select/models/select-item.d.ts +0 -25
- package/form-controls/select/models/types.d.ts +0 -4
- package/form-controls/select/public-api.d.ts +0 -4
- package/form-controls/select/upd-select.module.d.ts +0 -16
- package/form-controls/textarea/index.d.ts +0 -1
- package/form-controls/textarea/public-api.d.ts +0 -2
- package/form-controls/textarea/textarea.component.d.ts +0 -21
- package/form-controls/textarea/upd-textarea.module.d.ts +0 -8
- package/form-controls/time-picker/index.d.ts +0 -1
- package/form-controls/time-picker/public-api.d.ts +0 -3
- package/form-controls/time-picker/time-picker.component.d.ts +0 -78
- package/form-controls/time-picker/time-selector/time-selector.component.d.ts +0 -69
- package/form-controls/time-picker/upd-time-picker.module.d.ts +0 -17
- package/index.d.ts +0 -2
- package/layout/abstractions/base-page.component.d.ts +0 -12
- package/layout/abstractions/base.layout.d.ts +0 -15
- package/layout/abstractions/public-api.d.ts +0 -1
- package/layout/index.d.ts +0 -1
- package/layout/layouts/blank-layout/blank-layout.component.d.ts +0 -9
- package/layout/layouts/blank-layout/blank-layout.module.d.ts +0 -15
- package/layout/layouts/public-api.d.ts +0 -4
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.d.ts +0 -6
- package/layout/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.d.ts +0 -21
- package/layout/models/login-page-config.model.d.ts +0 -46
- package/layout/models/login-page.config.d.ts +0 -44
- package/layout/models/public-api.d.ts +0 -2
- package/layout/models/security-layout-config.model.d.ts +0 -12
- package/layout/models/security-layout.config.d.ts +0 -10
- package/layout/models/upd-layout-config.model.d.ts +0 -48
- package/layout/models/upd-layout.config.d.ts +0 -46
- package/layout/pages/auth-flow/auth-flow-routing.module.d.ts +0 -12
- package/layout/pages/auth-flow/auth-flow.module.d.ts +0 -20
- package/layout/pages/auth-flow/logged-out/logged-out.component.d.ts +0 -5
- package/layout/pages/auth-flow/login/login.component.d.ts +0 -26
- package/layout/pages/auth-flow/oauth-callback/oauth-callback.component.d.ts +0 -5
- package/layout/pages/auth-flow/public-api.d.ts +0 -5
- package/layout/pages/public-api.d.ts +0 -1
- package/layout/partials/footer/footer.component.d.ts +0 -34
- package/layout/partials/footer/footer.module.d.ts +0 -9
- package/layout/partials/footer/public-api.d.ts +0 -2
- package/layout/partials/header/header-style.type.d.ts +0 -1
- package/layout/partials/header/header.component.d.ts +0 -51
- package/layout/partials/header/header.module.d.ts +0 -12
- package/layout/partials/header/public-api.d.ts +0 -3
- package/layout/partials/page-header/page-header.component.d.ts +0 -7
- package/layout/partials/page-header/public-api.d.ts +0 -1
- package/layout/partials/public-api.d.ts +0 -4
- package/layout/partials/sidebar/public-api.d.ts +0 -1
- package/layout/partials/sidebar/sidebar.component.d.ts +0 -46
- package/layout/public-api.d.ts +0 -7
- package/layout/services/public-api.d.ts +0 -1
- package/layout/services/upd-layout-config.service.d.ts +0 -15
- package/layout/tools/layout.constants.d.ts +0 -15
- package/layout/upd-layout.module.d.ts +0 -19
- package/lib/index.d.ts +0 -2
- package/lib/models/public-api.d.ts +0 -2
- package/lib/models/row-column-size.d.ts +0 -23
- package/lib/public-api.d.ts +0 -5
- package/lib/tools/column-size.helper.d.ts +0 -6
- package/lib/tools/public-api.d.ts +0 -2
- package/lib/types/component-size.type.d.ts +0 -2
- package/lib/types/horizontal-vertical.type.d.ts +0 -2
- package/lib/types/public-api.d.ts +0 -4
- package/lib/types/validation-status.type.d.ts +0 -2
- package/lib/upd-components.module.d.ts +0 -7
- package/link/index.d.ts +0 -1
- package/link/public-api.d.ts +0 -3
- package/link/target.type.d.ts +0 -1
- package/link/upd-link.module.d.ts +0 -8
- package/list/index.d.ts +0 -1
- package/list/list.component.d.ts +0 -47
- package/list/models/badge-position.type.d.ts +0 -1
- package/list/models/list-item.d.ts +0 -21
- package/list/models/list-item.model.d.ts +0 -26
- package/list/models/public-api.d.ts +0 -2
- package/list/public-api.d.ts +0 -3
- package/list/upd-list.module.d.ts +0 -13
- package/modal/components/modal-container/modal-container.component.d.ts +0 -74
- package/modal/index.d.ts +0 -1
- package/modal/models/base.modal.d.ts +0 -8
- package/modal/models/modal-config.model.d.ts +0 -32
- package/modal/models/modal-ref.d.ts +0 -6
- package/modal/models/modal.config.d.ts +0 -30
- package/modal/models/public-api.d.ts +0 -3
- package/modal/public-api.d.ts +0 -3
- package/modal/services/modal-alert.service.d.ts +0 -22
- package/modal/services/modal.service.d.ts +0 -12
- package/modal/services/public-api.d.ts +0 -2
- package/modal/types/modal-footer-style.type.d.ts +0 -1
- package/modal/types/modal-size.type.d.ts +0 -1
- package/modal/upd-modal.module.d.ts +0 -18
- package/paginator/index.d.ts +0 -1
- package/paginator/paginator.component.d.ts +0 -42
- package/paginator/public-api.d.ts +0 -2
- package/paginator/upd-paginator.module.d.ts +0 -14
- package/popover/index.d.ts +0 -1
- package/popover/popover.component.d.ts +0 -22
- package/popover/popover.directive.d.ts +0 -33
- package/popover/public-api.d.ts +0 -3
- package/popover/upd-popover.module.d.ts +0 -9
- package/pricing/index.d.ts +0 -1
- package/pricing/models/price-item-feature.model.d.ts +0 -7
- package/pricing/models/price-item-features-group.model.d.ts +0 -5
- package/pricing/models/price-item-tag.model.d.ts +0 -6
- package/pricing/models/price-item.model.d.ts +0 -22
- package/pricing/models/public-api.d.ts +0 -4
- package/pricing/pricing-cards/pricing-cards.component.d.ts +0 -12
- package/pricing/pricing-table/pricing-table.component.d.ts +0 -30
- package/pricing/public-api.d.ts +0 -4
- package/pricing/upd-pricing.module.d.ts +0 -14
- package/public-api.d.ts +0 -2
- package/table/abstractions/base-column.model.d.ts +0 -29
- package/table/abstractions/base.column.d.ts +0 -26
- package/table/abstractions/filters-operands.service.d.ts +0 -8
- package/table/abstractions/public-api.d.ts +0 -3
- package/table/components/columns/boolean-column/boolean-column.component.d.ts +0 -9
- package/table/components/columns/date-time-column/date-time-column.component.d.ts +0 -7
- package/table/components/columns/number-column/number-column.component.d.ts +0 -7
- package/table/components/columns/text-column/text-column.component.d.ts +0 -9
- package/table/components/columns-manager/columns-manager.component.d.ts +0 -15
- package/table/components/filter-row/filter-row.component.d.ts +0 -41
- package/table/components/save-search/save-search.component.d.ts +0 -17
- package/table/components/search-section/search-section.component.d.ts +0 -33
- package/table/directives/public-api.d.ts +0 -1
- package/table/directives/table-column.directive.d.ts +0 -14
- package/table/index.d.ts +0 -1
- package/table/models/columns/boolean-column.model.d.ts +0 -15
- package/table/models/columns/custom-column.model.d.ts +0 -5
- package/table/models/columns/date-time-column.model.d.ts +0 -8
- package/table/models/columns/guid-column.model.d.ts +0 -4
- package/table/models/columns/image-column.model.d.ts +0 -6
- package/table/models/columns/number-column.model.d.ts +0 -8
- package/table/models/columns/public-api.d.ts +0 -7
- package/table/models/columns/text-column.model.d.ts +0 -6
- package/table/models/enums/column-type.enum.d.ts +0 -13
- package/table/models/enums/public-api.d.ts +0 -1
- package/table/models/filter-item.model.d.ts +0 -7
- package/table/models/filter-operand.config.d.ts +0 -9
- package/table/models/operands-lists/boolean-filter-operands-list.model.d.ts +0 -6
- package/table/models/operands-lists/date-filter-operands-list.model.d.ts +0 -6
- package/table/models/operands-lists/date-or-number-operands-list.config.d.ts +0 -5
- package/table/models/operands-lists/filter-operands-list.config.d.ts +0 -5
- package/table/models/operands-lists/guid-filter-operands-list.model.d.ts +0 -6
- package/table/models/operands-lists/number-filter-operands-list.model.d.ts +0 -6
- package/table/models/operands-lists/select-filter-operands-list.model.d.ts +0 -6
- package/table/models/operands-lists/string-filter-operands-list.model.d.ts +0 -6
- package/table/models/public-api.d.ts +0 -4
- package/table/models/saved-view.model.d.ts +0 -11
- package/table/models/table-config.model.d.ts +0 -44
- package/table/models/table.config.d.ts +0 -42
- package/table/models/upd-table-config.model.d.ts +0 -6
- package/table/models/upd-table.config.d.ts +0 -6
- package/table/public-api.d.ts +0 -5
- package/table/services/current-search-request.service.d.ts +0 -174
- package/table/services/default-filters-operands.service.d.ts +0 -17
- package/table/services/storages/saved-views.storage.d.ts +0 -19
- package/table/services/stores/filters-operands.store.d.ts +0 -11
- package/table/services/upd-table-config.service.d.ts +0 -12
- package/table/table.component.d.ts +0 -77
- package/table/tools/filters.tools.d.ts +0 -9
- package/table/tools/table.constants.d.ts +0 -15
- package/table/upd-table.module.d.ts +0 -40
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updevs-components-form-controls-time-picker.mjs","sources":["../../../../libs/components/form-controls/time-picker/src/time-selector/time-selector.component.ts","../../../../libs/components/form-controls/time-picker/src/time-selector/time-selector.component.html","../../../../libs/components/form-controls/time-picker/src/time-picker.component.ts","../../../../libs/components/form-controls/time-picker/src/time-picker.component.html","../../../../libs/components/form-controls/time-picker/src/upd-time-picker.module.ts","../../../../libs/components/form-controls/time-picker/src/updevs-components-form-controls-time-picker.ts"],"sourcesContent":["import { Component, Input, OnInit, OnChanges, SimpleChanges } from '@angular/core';\n\n@Component({\n selector: 'upd-time-selector',\n templateUrl: './time-selector.component.html',\n styleUrls: ['./time-selector.component.scss']\n})\nexport class TimeSelectorComponent implements OnInit, OnChanges {\n /**\n * Whether seconds should be selectable.\n */\n @Input() shouldSelectSeconds = false;\n /**\n * Whether the 24-hour format will be used or the 12-hour one (AM/PM)\n */\n @Input() shouldUse24hFormat = true;\n /**\n * Hour from which where the list will begin.\n */\n @Input() startingHour = 0;\n /**\n * Hour from which where the list will end.\n */\n @Input() endingHour = 23;\n /**\n * Interval between hours displayed.\n */\n @Input() hourInterval = 1;\n /**\n * Minute from which where the list will begin.\n */\n @Input() startingMinute = 0;\n /**\n * Minute from which where the list will end.\n */\n @Input() endingMinute = 59;\n /**\n * Interval between minutes displayed.\n */\n @Input() minuteInterval = 5;\n /**\n * Second from which where the list will begin.\n */\n @Input() startingSecond = 0;\n /**\n * Second from which where the list will end.\n */\n @Input() endingSecond = 59;\n /**\n * Interval between seconds displayed.\n */\n @Input() secondInterval = 10;\n /**\n * Custom list of hours to be displayed for selection.\n */\n @Input() customHours?: number[];\n /**\n * Custom list of minutes to be displayed for selection.\n */\n @Input() customMinutes?: number[];\n /**\n * Custom list of seconds to be displayed for selection.\n */\n @Input() customSeconds?: number[];\n\n hoursList: number[] = [];\n minutesList: number[] = [];\n secondsList: number[] = [];\n\n ngOnInit(): void {\n this.setupTimeLists();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.setupTimeLists();\n }\n\n private setupTimeLists(): void {\n this.hoursList = [];\n this.minutesList = [];\n this.secondsList = [];\n\n if (!!this.customHours) {\n this.hoursList = this.customHours;\n } else {\n this.setupTimeList(this.hoursList, this.startingHour, this.endingHour, this.hourInterval);\n }\n\n if (!!this.customMinutes) {\n this.minutesList = this.customMinutes;\n } else {\n this.setupTimeList(this.minutesList, this.startingMinute, this.endingMinute, this.minuteInterval);\n }\n\n if (!!this.customSeconds) {\n this.secondsList = this.customSeconds;\n } else {\n this.setupTimeList(this.secondsList, this.startingSecond, this.endingSecond, this.secondInterval);\n }\n }\n\n private setupTimeList(list: number[], start: number, end: number, interval: number): void {\n for (let i = start; i <= end; i += interval) {\n list.push(i);\n }\n }\n}\n","<div class=\"d-flex\">\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (h of hoursList; track h) {\n <li>\n <div class=\"cell\">{{ h.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n <div class=\"time-dots-separator\">\n <span>:</span>\n </div>\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (m of minutesList; track m) {\n <li>\n <div class=\"cell\">{{ m.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n @if (shouldSelectSeconds) {\n <div class=\"time-dots-separator\">\n <span>:</span>\n </div>\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (s of secondsList; track s) {\n <li>\n <div class=\"cell\">{{ s.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n }\n @if (!shouldUse24hFormat) {\n <div class=\"time-items-list\">\n <ul class=\"list\">\n <li>\n <div class=\"cell\">{{ 'AM' | transloco }}</div>\n <div class=\"cell\">{{ 'PM' | transloco }}</div>\n </li>\n </ul>\n </div>\n }\n</div>\n<div>\n <upd-button>{{ 'Select' | transloco }}</upd-button>\n</div>\n","import { Component, Input, OnInit, OnChanges, SimpleChanges, ViewChild, ElementRef } from '@angular/core';\n\n@Component({\n selector: 'upd-time-picker',\n templateUrl: './time-picker.component.html',\n styleUrls: ['./time-picker.component.scss']\n})\nexport class TimePickerComponent implements OnInit, OnChanges {\n @ViewChild('input', { read: ElementRef }) inputRef?: ElementRef;\n\n /**\n * Maximum height of the dropdown.\n */\n @Input() dropdownMaxHeight = 300;\n /**\n * Whether the mask should be shown.\n */\n @Input() showMask = true;\n /**\n * Whether seconds should be selectable.\n */\n @Input() shouldSelectSeconds = false;\n /**\n * Whether the 24-hour format will be used or the 12-hour one (AM/PM)\n */\n @Input() shouldUse24hFormat = true;\n /**\n * Hour from which where the list will begin.\n */\n @Input() startingHour = 0;\n /**\n * Hour from which where the list will end.\n */\n @Input() endingHour = 23;\n /**\n * Interval between hours displayed.\n */\n @Input() hourInterval = 1;\n /**\n * Minute from which where the list will begin.\n */\n @Input() startingMinute = 0;\n /**\n * Minute from which where the list will end.\n */\n @Input() endingMinute = 59;\n /**\n * Interval between minutes displayed.\n */\n @Input() minuteInterval = 5;\n /**\n * Second from which where the list will begin.\n */\n @Input() startingSecond = 0;\n /**\n * Second from which where the list will end.\n */\n @Input() endingSecond = 59;\n /**\n * Interval between seconds displayed.\n */\n @Input() secondInterval = 10;\n /**\n * Custom list of hours to be displayed for selection.\n */\n @Input() customHours?: number[];\n /**\n * Custom list of minutes to be displayed for selection.\n */\n @Input() customMinutes?: number[];\n /**\n * Custom list of seconds to be displayed for selection.\n */\n @Input() customSeconds?: number[];\n\n maxWidth = 0;\n isDropdownOpen = false;\n\n get inputMask(): string {\n return this.shouldSelectSeconds ? 'Hh:m0:s0' : 'Hh:m0';\n }\n\n ngOnInit(): void {\n this.setupStyle();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.setupStyle();\n }\n\n openDropdown(): void {\n this.isDropdownOpen = true;\n }\n\n private setupStyle(): void {\n let finalWidth = 195;\n\n if (this.shouldSelectSeconds) {\n finalWidth += 60 + 10;\n }\n\n if (!this.shouldUse24hFormat) {\n finalWidth += 60;\n }\n\n this.maxWidth = finalWidth;\n\n console.log('max w', this.maxWidth);\n }\n}\n","<upd-input #input [mask]=\"inputMask\" [maskConfig]=\"{showMaskTyped:showMask}\" [isInputGroupFlat]=\"true\">\n <ng-template updInputAppend>\n <upd-button [shouldIgnoreBtnClass]=\"true\" (clicked)=\"openDropdown()\" customClasses=\"link-secondary ms-2\">\n <upd-icon tablerIcon=\"calendar-time\"></upd-icon>\n </upd-button>\n </ng-template>\n</upd-input>\n<upd-dropdown [isOpen]=\"isDropdownOpen\" [dropdownReference]=\"inputRef\" [maxHeight]=\"dropdownMaxHeight\" [maxWidth]=\"maxWidth\"\n wrapperClasses=\"overflow-x-hidden\">\n <div class=\"time-options-wrapper\" [style.max-width.px]=\"maxWidth\">\n <upd-time-selector [shouldSelectSeconds]=\"shouldSelectSeconds\" [shouldUse24hFormat]=\"shouldUse24hFormat\"\n [startingHour]=\"startingHour\" [endingHour]=\"endingHour\" [hourInterval]=\"hourInterval\"\n [startingMinute]=\"startingMinute\" [endingMinute]=\"endingMinute\" [minuteInterval]=\"minuteInterval\"\n [startingSecond]=\"startingSecond\" [endingSecond]=\"endingSecond\" [secondInterval]=\"secondInterval\"\n [customHours]=\"customHours\" [customMinutes]=\"customMinutes\" [customSeconds]=\"customSeconds\"></upd-time-selector>\n </div>\n</upd-dropdown>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslocoService, TranslocoModule } from '@jsverse/transloco';\nimport { UpdInputModule } from '@updevs/components/form-controls/input';\nimport { UpdIconsModule } from '@updevs/icons';\nimport { UpdButtonModule } from '@updevs/components/button';\nimport { UpdListModule } from '@updevs/components/list';\nimport { UpdDropdownModule } from '@updevs/components/dropdown';\n\nimport * as en from './assets/i18n/en.json';\nimport * as pt from './assets/i18n/pt.json';\nimport { TimePickerComponent } from './time-picker.component';\nimport { TimeSelectorComponent } from './time-selector/time-selector.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TranslocoModule,\n UpdInputModule,\n UpdIconsModule,\n UpdButtonModule,\n UpdListModule,\n UpdDropdownModule\n ],\n declarations: [\n TimePickerComponent,\n TimeSelectorComponent\n ],\n exports: [\n TimePickerComponent,\n TimeSelectorComponent\n ]\n})\nexport class UpdTimePickerModule {\n constructor(translocoService: TranslocoService) {\n translocoService.setFallbackLangForMissingTranslation({ fallbackLang: 'en' });\n translocoService.setTranslation(en, 'en');\n translocoService.setTranslation(pt, 'pt');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i5.TimeSelectorComponent","en","pt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOa,qBAAqB,CAAA;AALlC,IAAA,WAAA,GAAA;AAMI;;AAEG;QACM,IAAmB,CAAA,mBAAA,GAAG,KAAK;AACpC;;AAEG;QACM,IAAkB,CAAA,kBAAA,GAAG,IAAI;AAClC;;AAEG;QACM,IAAY,CAAA,YAAA,GAAG,CAAC;AACzB;;AAEG;QACM,IAAU,CAAA,UAAA,GAAG,EAAE;AACxB;;AAEG;QACM,IAAY,CAAA,YAAA,GAAG,CAAC;AACzB;;AAEG;QACM,IAAc,CAAA,cAAA,GAAG,CAAC;AAC3B;;AAEG;QACM,IAAY,CAAA,YAAA,GAAG,EAAE;AAC1B;;AAEG;QACM,IAAc,CAAA,cAAA,GAAG,CAAC;AAC3B;;AAEG;QACM,IAAc,CAAA,cAAA,GAAG,CAAC;AAC3B;;AAEG;QACM,IAAY,CAAA,YAAA,GAAG,EAAE;AAC1B;;AAEG;QACM,IAAc,CAAA,cAAA,GAAG,EAAE;QAc5B,IAAS,CAAA,SAAA,GAAa,EAAE;QACxB,IAAW,CAAA,WAAA,GAAa,EAAE;QAC1B,IAAW,CAAA,WAAA,GA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SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAjBxB,YAAY;YACZ,eAAe;YACf,cAAc;YACd,cAAc;YACd,eAAe;YACf,aAAa;YACb,iBAAiB,CAAA,EAAA,CAAA,CAAA;;2FAWZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAnB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,aAAa;wBACb;AACH,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,mBAAmB;wBACnB;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,mBAAmB;wBACnB;AACH;AACJ,iBAAA;;;AChCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"updevs-components-form-controls-time-picker.mjs","sources":["../../../../libs/components/form-controls/time-picker/src/time-selector/time-selector.component.ts","../../../../libs/components/form-controls/time-picker/src/time-selector/time-selector.component.html","../../../../libs/components/form-controls/time-picker/src/time-picker.component.ts","../../../../libs/components/form-controls/time-picker/src/time-picker.component.html","../../../../libs/components/form-controls/time-picker/src/upd-time-picker.module.ts","../../../../libs/components/form-controls/time-picker/src/updevs-components-form-controls-time-picker.ts"],"sourcesContent":["import { Component, Input, OnInit, OnChanges, SimpleChanges } from '@angular/core';\n\n@Component({\n standalone: false,\n selector: 'upd-time-selector',\n templateUrl: './time-selector.component.html',\n styleUrls: ['./time-selector.component.scss']\n})\nexport class TimeSelectorComponent implements OnInit, OnChanges {\n /**\n * Whether seconds should be selectable.\n */\n @Input() shouldSelectSeconds = false;\n /**\n * Whether the 24-hour format will be used or the 12-hour one (AM/PM)\n */\n @Input() shouldUse24hFormat = true;\n /**\n * Hour from which where the list will begin.\n */\n @Input() startingHour = 0;\n /**\n * Hour from which where the list will end.\n */\n @Input() endingHour = 23;\n /**\n * Interval between hours displayed.\n */\n @Input() hourInterval = 1;\n /**\n * Minute from which where the list will begin.\n */\n @Input() startingMinute = 0;\n /**\n * Minute from which where the list will end.\n */\n @Input() endingMinute = 59;\n /**\n * Interval between minutes displayed.\n */\n @Input() minuteInterval = 5;\n /**\n * Second from which where the list will begin.\n */\n @Input() startingSecond = 0;\n /**\n * Second from which where the list will end.\n */\n @Input() endingSecond = 59;\n /**\n * Interval between seconds displayed.\n */\n @Input() secondInterval = 10;\n /**\n * Custom list of hours to be displayed for selection.\n */\n @Input() customHours?: number[];\n /**\n * Custom list of minutes to be displayed for selection.\n */\n @Input() customMinutes?: number[];\n /**\n * Custom list of seconds to be displayed for selection.\n */\n @Input() customSeconds?: number[];\n\n hoursList: number[] = [];\n minutesList: number[] = [];\n secondsList: number[] = [];\n\n ngOnInit(): void {\n this.setupTimeLists();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.setupTimeLists();\n }\n\n private setupTimeLists(): void {\n this.hoursList = [];\n this.minutesList = [];\n this.secondsList = [];\n\n if (!!this.customHours) {\n this.hoursList = this.customHours;\n } else {\n this.setupTimeList(this.hoursList, this.startingHour, this.endingHour, this.hourInterval);\n }\n\n if (!!this.customMinutes) {\n this.minutesList = this.customMinutes;\n } else {\n this.setupTimeList(this.minutesList, this.startingMinute, this.endingMinute, this.minuteInterval);\n }\n\n if (!!this.customSeconds) {\n this.secondsList = this.customSeconds;\n } else {\n this.setupTimeList(this.secondsList, this.startingSecond, this.endingSecond, this.secondInterval);\n }\n }\n\n private setupTimeList(list: number[], start: number, end: number, interval: number): void {\n for (let i = start; i <= end; i += interval) {\n list.push(i);\n }\n }\n}\n","<div class=\"d-flex\">\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (h of hoursList; track h) {\n <li>\n <div class=\"cell\">{{ h.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n <div class=\"time-dots-separator\">\n <span>:</span>\n </div>\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (m of minutesList; track m) {\n <li>\n <div class=\"cell\">{{ m.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n @if (shouldSelectSeconds) {\n <div class=\"time-dots-separator\">\n <span>:</span>\n </div>\n <div class=\"time-items-list\">\n <ul class=\"list\">\n @for (s of secondsList; track s) {\n <li>\n <div class=\"cell\">{{ s.toString().padStart(2, '0') }}</div>\n </li>\n }\n </ul>\n </div>\n }\n @if (!shouldUse24hFormat) {\n <div class=\"time-items-list\">\n <ul class=\"list\">\n <li>\n <div class=\"cell\">{{ 'AM' | transloco }}</div>\n <div class=\"cell\">{{ 'PM' | transloco }}</div>\n </li>\n </ul>\n </div>\n }\n</div>\n<div>\n <upd-button>{{ 'Select' | transloco }}</upd-button>\n</div>\n","import { Component, Input, OnInit, OnChanges, SimpleChanges, ViewChild, ElementRef } from '@angular/core';\n\n@Component({\n standalone: false,\n selector: 'upd-time-picker',\n templateUrl: './time-picker.component.html',\n styleUrls: ['./time-picker.component.scss']\n})\nexport class TimePickerComponent implements OnInit, OnChanges {\n @ViewChild('input', { read: ElementRef }) inputRef?: ElementRef;\n\n /**\n * Maximum height of the dropdown.\n */\n @Input() dropdownMaxHeight = 300;\n /**\n * Whether the mask should be shown.\n */\n @Input() showMask = true;\n /**\n * Whether seconds should be selectable.\n */\n @Input() shouldSelectSeconds = false;\n /**\n * Whether the 24-hour format will be used or the 12-hour one (AM/PM)\n */\n @Input() shouldUse24hFormat = true;\n /**\n * Hour from which where the list will begin.\n */\n @Input() startingHour = 0;\n /**\n * Hour from which where the list will end.\n */\n @Input() endingHour = 23;\n /**\n * Interval between hours displayed.\n */\n @Input() hourInterval = 1;\n /**\n * Minute from which where the list will begin.\n */\n @Input() startingMinute = 0;\n /**\n * Minute from which where the list will end.\n */\n @Input() endingMinute = 59;\n /**\n * Interval between minutes displayed.\n */\n @Input() minuteInterval = 5;\n /**\n * Second from which where the list will begin.\n */\n @Input() startingSecond = 0;\n /**\n * Second from which where the list will end.\n */\n @Input() endingSecond = 59;\n /**\n * Interval between seconds displayed.\n */\n @Input() secondInterval = 10;\n /**\n * Custom list of hours to be displayed for selection.\n */\n @Input() customHours?: number[];\n /**\n * Custom list of minutes to be displayed for selection.\n */\n @Input() customMinutes?: number[];\n /**\n * Custom list of seconds to be displayed for selection.\n */\n @Input() customSeconds?: number[];\n\n maxWidth = 0;\n isDropdownOpen = false;\n\n get inputMask(): string {\n return this.shouldSelectSeconds ? 'Hh:m0:s0' : 'Hh:m0';\n }\n\n ngOnInit(): void {\n this.setupStyle();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.setupStyle();\n }\n\n openDropdown(): void {\n this.isDropdownOpen = true;\n }\n\n private setupStyle(): void {\n let finalWidth = 195;\n\n if (this.shouldSelectSeconds) {\n finalWidth += 60 + 10;\n }\n\n if (!this.shouldUse24hFormat) {\n finalWidth += 60;\n }\n\n this.maxWidth = finalWidth;\n\n console.log('max w', this.maxWidth);\n }\n}\n","<upd-input #input [mask]=\"inputMask\" [maskConfig]=\"{showMaskTyped:showMask}\" [isInputGroupFlat]=\"true\">\n <ng-template updInputAppend>\n <upd-button [shouldIgnoreBtnClass]=\"true\" (clicked)=\"openDropdown()\" customClasses=\"link-secondary ms-2\">\n <upd-icon tablerIcon=\"calendar-time\"></upd-icon>\n </upd-button>\n </ng-template>\n</upd-input>\n<upd-dropdown [isOpen]=\"isDropdownOpen\" [dropdownReference]=\"inputRef\" [maxHeight]=\"dropdownMaxHeight\" [maxWidth]=\"maxWidth\"\n wrapperClasses=\"overflow-x-hidden\">\n <div class=\"time-options-wrapper\" [style.max-width.px]=\"maxWidth\">\n <upd-time-selector [shouldSelectSeconds]=\"shouldSelectSeconds\" [shouldUse24hFormat]=\"shouldUse24hFormat\"\n [startingHour]=\"startingHour\" [endingHour]=\"endingHour\" [hourInterval]=\"hourInterval\"\n [startingMinute]=\"startingMinute\" [endingMinute]=\"endingMinute\" [minuteInterval]=\"minuteInterval\"\n [startingSecond]=\"startingSecond\" [endingSecond]=\"endingSecond\" [secondInterval]=\"secondInterval\"\n [customHours]=\"customHours\" [customMinutes]=\"customMinutes\" [customSeconds]=\"customSeconds\"></upd-time-selector>\n </div>\n</upd-dropdown>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslocoService, TranslocoModule } from '@jsverse/transloco';\nimport { UpdInputModule } from '@updevs/components/form-controls/input';\nimport { UpdIconsModule } from '@updevs/icons';\nimport { UpdButtonModule } from '@updevs/components/button';\nimport { UpdListModule } from '@updevs/components/list';\nimport { UpdDropdownModule } from '@updevs/components/dropdown';\n\nimport * as en from './assets/i18n/en.json';\nimport * as pt from './assets/i18n/pt.json';\nimport { TimePickerComponent } from './time-picker.component';\nimport { TimeSelectorComponent } from './time-selector/time-selector.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TranslocoModule,\n UpdInputModule,\n UpdIconsModule,\n UpdButtonModule,\n UpdListModule,\n UpdDropdownModule\n ],\n declarations: [\n TimePickerComponent,\n TimeSelectorComponent\n ],\n exports: [\n TimePickerComponent,\n TimeSelectorComponent\n ]\n})\nexport class UpdTimePickerModule {\n constructor(translocoService: TranslocoService) {\n translocoService.setFallbackLangForMissingTranslation({ fallbackLang: 'en' });\n translocoService.setTranslation(en, 'en');\n translocoService.setTranslation(pt, 'pt');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i5.TimeSelectorComponent","en","pt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQa,qBAAqB,CAAA;AANlC,IAAA,WAAA,GAAA;AAOI;;AAEG;QACM,IAAmB,CAAA,mBAAA,GAAG,KAAK;AACpC;;AAEG;QACM,IAAkB,CAAA,kBAAA,GAAG,IAAI;AAClC;;AAEG;QACM,IAAY,CAAA,YAAA,GAAG,CAAC;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d,cAAc;YACd,eAAe;YACf,aAAa;YACb,iBAAiB,CAAA,EAAA,CAAA,CAAA;;2FAWZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAnB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,aAAa;wBACb;AACH,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,mBAAmB;wBACnB;AACH,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,mBAAmB;wBACnB;AACH;AACJ,iBAAA;;;AChCD;;AAEG;;;;"}
|
|
@@ -101,10 +101,10 @@ class ErrorsHelper {
|
|
|
101
101
|
}
|
|
102
102
|
return errorMessages;
|
|
103
103
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
105
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ErrorsHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ErrorsHelper }); }
|
|
106
106
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ErrorsHelper, decorators: [{
|
|
108
108
|
type: Injectable
|
|
109
109
|
}] });
|
|
110
110
|
|
|
@@ -167,16 +167,16 @@ class DynamicFieldComponent extends BaseComponent {
|
|
|
167
167
|
this.submitForm = new EventEmitter();
|
|
168
168
|
this.DynamicFieldType = DynamicFieldType;
|
|
169
169
|
this.SelectDefaults = Defaults;
|
|
170
|
-
this.formGroup = input.required();
|
|
171
|
-
this.field = input.required();
|
|
172
|
-
this.layout = input.required();
|
|
170
|
+
this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : []));
|
|
171
|
+
this.field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
|
|
172
|
+
this.layout = input.required(...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
173
173
|
this.validationStatusDescriptions = [];
|
|
174
174
|
this.textService = inject(TextService);
|
|
175
175
|
this.wrapperClasses = computed(() => {
|
|
176
176
|
const isVisible = this.field().isVisible?.() ?? true;
|
|
177
177
|
const columnClasses = ColumnSizeHelper.getSizeClasses(this.field().colSize);
|
|
178
178
|
return `${columnClasses} ${isVisible ? '' : 'd-none'}`;
|
|
179
|
-
});
|
|
179
|
+
}, ...(ngDevMode ? [{ debugName: "wrapperClasses" }] : []));
|
|
180
180
|
this.errorsHelper = inject(ErrorsHelper);
|
|
181
181
|
effect(() => {
|
|
182
182
|
const control = this.formControl;
|
|
@@ -259,18 +259,18 @@ class DynamicFieldComponent extends BaseComponent {
|
|
|
259
259
|
this.validationStatus = this.field().showValidStatus && this.formControl?.touched ? 'valid' : undefined;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
263
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: DynamicFieldComponent, selector: "upd-dynamic-field", inputs: { formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { submitForm: "submitForm" }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: "@switch (field().type) {\n @case (DynamicFieldType.Input) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\" [isDisabled]=\"field().isDisabled || false\"\n [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\" [value]=\"formControl.value\"\n (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\" (focus)=\"onFocus()\"\n (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Checkbox) {\n <upd-checkbox [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isDisabled]=\"field().isDisabled || false\" [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n [isSwitch]=\"checkboxField.isSwitch || false\" (changed)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-checkbox>\n }\n @case (DynamicFieldType.CheckboxGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of checkboxGroupOptionsKeys; track option) {\n <upd-checkbox [name]=\"field().name\" [label]=\"getOptionDescription(option, 'checkbox')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\" [isSwitch]=\"checkboxField.isSwitch || false\"\n (changed)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-checkbox>\n }\n }\n @case (DynamicFieldType.Radio) {\n <upd-radio [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isChecked]=\"formControl.value\" [isDisabled]=\"field().isDisabled || false\" [isInline]=\"radioField.isInline || false\"\n (selected)=\"setControlValue($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </upd-radio>\n }\n @case (DynamicFieldType.RadioGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of radioGroupOptionsKeys; track option) {\n <upd-radio [name]=\"field().name\" [label]=\"getOptionDescription(option, 'radio')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n (selected)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-radio>\n }\n }\n @case (DynamicFieldType.Select) {\n <upd-select [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\"\n [useSystemStyle]=\"singleSelectField.useSystemStyle || false\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [shouldTruncateSelectedText]=\"selectField.shouldTruncateSelectedText\" [parentValue]=\"selectField.parentValue\"\n [value]=\"formControl.value\" (selectedItem)=\"setControlValue($event?.value)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-select>\n }\n @case (DynamicFieldType.SelectMultiple) {\n <upd-select-multiple [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\" [parentValue]=\"selectField.parentValue\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [selectedValues]=\"formControl.value\" (selectedIds)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-select-multiple>\n }\n @case (DynamicFieldType.Label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n @case (DynamicFieldType.TextArea) {\n <upd-textarea [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [value]=\"formControl.value\" [customClasses]=\"textareaField.customClasses\" [wrapperClasses]=\"textareaField.wrapperClasses\"\n [maxLength]=\"textareaField.maxLength\" [rows]=\"textareaField.rows\"\n [displayCharactersCount]=\"textareaField.displayCharactersCount || false\" (valueChange)=\"setControlValue($event)\"\n (focus)=\"onFocus()\" (blur)=\"onBlur()\" (input)=\"onInput($event)\" (keydown.enter)=\"onInputEnter()\">\n </upd-textarea>\n }\n @case (DynamicFieldType.FileUpload) {\n <upd-file-upload [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [isDisabled]=\"field().isDisabled || false\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [fileName]=\"fileNameControl?.value\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [allowFilesDrop]=\"fileUploadField.allowFilesDrop || false\"\n [title]=\"fileUploadField.title\" [labelColSize]=\"field().labelColSize\" [minFileSize]=\"fileUploadField.minFileSize\"\n [isMultiple]=\"fileUploadField.isMultiple || false\" [allowedExtensions]=\"fileUploadField.allowedExtensions || '*'\"\n [maxFileSize]=\"fileUploadField.maxFileSize\" [layout]=\"layout()\" (fileChanged)=\"handleFileSelected($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-file-upload>\n }\n @case (DynamicFieldType.MaskedInput) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [mask]=\"maskedField.mask\"\n [maskConfig]=\"maskedField.maskConfig\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\"\n [isDisabled]=\"field().isDisabled || false\" [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\"\n [value]=\"formControl.value\" (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\"\n (focus)=\"onFocus()\" (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Button) {\n <upd-button [text]=\"field().label\" [isDisabled]=\"field().isDisabled || false\" [model]=\"buttonField.model\" />\n }\n @case (DynamicFieldType.ButtonGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n <div class=\"btn-group\" role=\"group\">\n @for (btn of buttonGroupField.buttons; track btn) {\n <upd-button [model]=\"btn\" [isDisabled]=\"field().isDisabled || false\" />\n }\n </div>\n }\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title", "stopPropagation"], outputs: ["clicked"] }, { kind: "component", type: i2.InputComponent, selector: "upd-input", inputs: ["type", "mask", "maskConfig", "value", "size", "customClasses", "wrapperClasses", "maxLength", "isPlainText", "isReadOnly", "isLoading", "isRound", "isFlush", "isInputGroupFlat", "isPrependButton", "isAppendButton", "isFloating", "loaderPosition", "prependIconModel", "appendIconModel", "isValidationStatusLight", "layout"], outputs: ["valueChange", "blurred", "keyDown", "keyDownEsc", "keyUpEnter"] }, { kind: "directive", type: i2.InputAppendDirective, selector: "ng-template[updInputAppend]" }, { kind: "directive", type: i2.InputPrependDirective, selector: "ng-template[updInputPrepend]" }, { kind: "component", type: i3.CheckboxComponent, selector: "upd-checkbox", inputs: ["wrapperClasses", "value", "customClasses", "isChecked", "isInline", "isSwitch", "isIndeterminate"], outputs: ["changed", "isCheckedChange", "isIndeterminateChange"] }, { kind: "component", type: i4.RadioComponent, selector: "upd-radio", inputs: ["wrapperClasses", "value", "customClasses", "isChecked", "isInline"], outputs: ["selected"] }, { kind: "component", type: i5.SelectComponent, selector: "upd-select", inputs: ["useSystemStyle", "shouldShowClearButton", "shouldTruncateSelectedText", "isCompact", "value"], outputs: ["valueChange", "selectedItem"] }, { kind: "component", type: i5.SelectMultipleComponent, selector: "upd-select-multiple", inputs: ["selectedValues"], outputs: ["selectedItems", "selectedIds"] }, { kind: "component", type: i6.TextareaComponent, selector: "upd-textarea", inputs: ["value", "customClasses", "wrapperClasses", "maxLength", "rows", "displayCharactersCount"], outputs: ["valueChange"] }, { kind: "component", type: i7.FileUploadComponent, selector: "upd-file-upload", inputs: ["fileName", "title", "allowFilesDrop", "isMultiple", "allowedExtensions", "minFileSize", "maxFileSize", "layout"], outputs: ["fileChanged"] }] }); }
|
|
262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: DynamicFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
263
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.4", type: DynamicFieldComponent, isStandalone: false, selector: "upd-dynamic-field", inputs: { formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { submitForm: "submitForm" }, host: { properties: { "class": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: "@switch (field().type) {\n @case (DynamicFieldType.Input) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\" [isDisabled]=\"field().isDisabled || false\"\n [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\" [value]=\"formControl.value\"\n (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\" (focus)=\"onFocus()\"\n (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Checkbox) {\n <upd-checkbox [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isDisabled]=\"field().isDisabled || false\" [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n [isSwitch]=\"checkboxField.isSwitch || false\" (changed)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-checkbox>\n }\n @case (DynamicFieldType.CheckboxGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of checkboxGroupOptionsKeys; track option) {\n <upd-checkbox [name]=\"field().name\" [label]=\"getOptionDescription(option, 'checkbox')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\" [isSwitch]=\"checkboxField.isSwitch || false\"\n (changed)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-checkbox>\n }\n }\n @case (DynamicFieldType.Radio) {\n <upd-radio [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isChecked]=\"formControl.value\" [isDisabled]=\"field().isDisabled || false\" [isInline]=\"radioField.isInline || false\"\n (selected)=\"setControlValue($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </upd-radio>\n }\n @case (DynamicFieldType.RadioGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of radioGroupOptionsKeys; track option) {\n <upd-radio [name]=\"field().name\" [label]=\"getOptionDescription(option, 'radio')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n (selected)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-radio>\n }\n }\n @case (DynamicFieldType.Select) {\n <upd-select [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\"\n [useSystemStyle]=\"singleSelectField.useSystemStyle || false\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [shouldTruncateSelectedText]=\"selectField.shouldTruncateSelectedText\" [parentValue]=\"selectField.parentValue\"\n [value]=\"formControl.value\" (selectedItem)=\"setControlValue($event?.value)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-select>\n }\n @case (DynamicFieldType.SelectMultiple) {\n <upd-select-multiple [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\" [parentValue]=\"selectField.parentValue\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [selectedValues]=\"formControl.value\" (selectedIds)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-select-multiple>\n }\n @case (DynamicFieldType.Label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n @case (DynamicFieldType.TextArea) {\n <upd-textarea [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [value]=\"formControl.value\" [customClasses]=\"textareaField.customClasses\" [wrapperClasses]=\"textareaField.wrapperClasses\"\n [maxLength]=\"textareaField.maxLength\" [rows]=\"textareaField.rows\"\n [displayCharactersCount]=\"textareaField.displayCharactersCount || false\" (valueChange)=\"setControlValue($event)\"\n (focus)=\"onFocus()\" (blur)=\"onBlur()\" (input)=\"onInput($event)\" (keydown.enter)=\"onInputEnter()\">\n </upd-textarea>\n }\n @case (DynamicFieldType.FileUpload) {\n <upd-file-upload [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [isDisabled]=\"field().isDisabled || false\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [fileName]=\"fileNameControl?.value\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [allowFilesDrop]=\"fileUploadField.allowFilesDrop || false\"\n [title]=\"fileUploadField.title\" [labelColSize]=\"field().labelColSize\" [minFileSize]=\"fileUploadField.minFileSize\"\n [isMultiple]=\"fileUploadField.isMultiple || false\" [allowedExtensions]=\"fileUploadField.allowedExtensions || '*'\"\n [maxFileSize]=\"fileUploadField.maxFileSize\" [layout]=\"layout()\" (fileChanged)=\"handleFileSelected($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-file-upload>\n }\n @case (DynamicFieldType.MaskedInput) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [mask]=\"maskedField.mask\"\n [maskConfig]=\"maskedField.maskConfig\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\"\n [isDisabled]=\"field().isDisabled || false\" [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\"\n [value]=\"formControl.value\" (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\"\n (focus)=\"onFocus()\" (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Button) {\n <upd-button [text]=\"field().label\" [isDisabled]=\"field().isDisabled || false\" [model]=\"buttonField.model\" />\n }\n @case (DynamicFieldType.ButtonGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n <div class=\"btn-group\" role=\"group\">\n @for (btn of buttonGroupField.buttons; track btn) {\n <upd-button [model]=\"btn\" [isDisabled]=\"field().isDisabled || false\" />\n }\n </div>\n }\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title", "stopPropagation"], outputs: ["clicked"] }, { kind: "component", type: i2.InputComponent, selector: "upd-input", inputs: ["type", "mask", "maskConfig", "value", "size", "customClasses", "wrapperClasses", "maxLength", "isPlainText", "isReadOnly", "isLoading", "isRound", "isFlush", "isInputGroupFlat", "isPrependButton", "isAppendButton", "isFloating", "loaderPosition", "prependIconModel", "appendIconModel", "isValidationStatusLight", "layout"], outputs: ["valueChange", "blurred", "keyDown", "keyDownEsc", "keyUpEnter"] }, { kind: "directive", type: i2.InputAppendDirective, selector: "ng-template[updInputAppend]" }, { kind: "directive", type: i2.InputPrependDirective, selector: "ng-template[updInputPrepend]" }, { kind: "component", type: i3.CheckboxComponent, selector: "upd-checkbox", inputs: ["wrapperClasses", "value", "customClasses", "isChecked", "isInline", "isSwitch", "isIndeterminate"], outputs: ["changed", "isCheckedChange", "isIndeterminateChange"] }, { kind: "component", type: i4.RadioComponent, selector: "upd-radio", inputs: ["wrapperClasses", "value", "customClasses", "isChecked", "isInline"], outputs: ["selected"] }, { kind: "component", type: i5.SelectComponent, selector: "upd-select", inputs: ["useSystemStyle", "shouldShowClearButton", "shouldTruncateSelectedText", "isCompact", "value"], outputs: ["valueChange", "selectedItem"] }, { kind: "component", type: i5.SelectMultipleComponent, selector: "upd-select-multiple", inputs: ["selectedValues"], outputs: ["selectedItems", "selectedIds"] }, { kind: "component", type: i6.TextareaComponent, selector: "upd-textarea", inputs: ["value", "customClasses", "wrapperClasses", "maxLength", "rows", "displayCharactersCount"], outputs: ["valueChange"] }, { kind: "component", type: i7.FileUploadComponent, selector: "upd-file-upload", inputs: ["fileName", "title", "allowFilesDrop", "isMultiple", "allowedExtensions", "minFileSize", "maxFileSize", "layout"], outputs: ["fileChanged"] }] }); }
|
|
264
264
|
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: DynamicFieldComponent, decorators: [{
|
|
266
266
|
type: Component,
|
|
267
|
-
args: [{ selector: 'upd-dynamic-field', template: "@switch (field().type) {\n @case (DynamicFieldType.Input) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\" [isDisabled]=\"field().isDisabled || false\"\n [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\" [value]=\"formControl.value\"\n (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\" (focus)=\"onFocus()\"\n (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Checkbox) {\n <upd-checkbox [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isDisabled]=\"field().isDisabled || false\" [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n [isSwitch]=\"checkboxField.isSwitch || false\" (changed)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-checkbox>\n }\n @case (DynamicFieldType.CheckboxGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of checkboxGroupOptionsKeys; track option) {\n <upd-checkbox [name]=\"field().name\" [label]=\"getOptionDescription(option, 'checkbox')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\" [isSwitch]=\"checkboxField.isSwitch || false\"\n (changed)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-checkbox>\n }\n }\n @case (DynamicFieldType.Radio) {\n <upd-radio [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isChecked]=\"formControl.value\" [isDisabled]=\"field().isDisabled || false\" [isInline]=\"radioField.isInline || false\"\n (selected)=\"setControlValue($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </upd-radio>\n }\n @case (DynamicFieldType.RadioGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of radioGroupOptionsKeys; track option) {\n <upd-radio [name]=\"field().name\" [label]=\"getOptionDescription(option, 'radio')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n (selected)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-radio>\n }\n }\n @case (DynamicFieldType.Select) {\n <upd-select [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\"\n [useSystemStyle]=\"singleSelectField.useSystemStyle || false\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [shouldTruncateSelectedText]=\"selectField.shouldTruncateSelectedText\" [parentValue]=\"selectField.parentValue\"\n [value]=\"formControl.value\" (selectedItem)=\"setControlValue($event?.value)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-select>\n }\n @case (DynamicFieldType.SelectMultiple) {\n <upd-select-multiple [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\" [parentValue]=\"selectField.parentValue\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [selectedValues]=\"formControl.value\" (selectedIds)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-select-multiple>\n }\n @case (DynamicFieldType.Label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n @case (DynamicFieldType.TextArea) {\n <upd-textarea [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [value]=\"formControl.value\" [customClasses]=\"textareaField.customClasses\" [wrapperClasses]=\"textareaField.wrapperClasses\"\n [maxLength]=\"textareaField.maxLength\" [rows]=\"textareaField.rows\"\n [displayCharactersCount]=\"textareaField.displayCharactersCount || false\" (valueChange)=\"setControlValue($event)\"\n (focus)=\"onFocus()\" (blur)=\"onBlur()\" (input)=\"onInput($event)\" (keydown.enter)=\"onInputEnter()\">\n </upd-textarea>\n }\n @case (DynamicFieldType.FileUpload) {\n <upd-file-upload [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [isDisabled]=\"field().isDisabled || false\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [fileName]=\"fileNameControl?.value\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [allowFilesDrop]=\"fileUploadField.allowFilesDrop || false\"\n [title]=\"fileUploadField.title\" [labelColSize]=\"field().labelColSize\" [minFileSize]=\"fileUploadField.minFileSize\"\n [isMultiple]=\"fileUploadField.isMultiple || false\" [allowedExtensions]=\"fileUploadField.allowedExtensions || '*'\"\n [maxFileSize]=\"fileUploadField.maxFileSize\" [layout]=\"layout()\" (fileChanged)=\"handleFileSelected($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-file-upload>\n }\n @case (DynamicFieldType.MaskedInput) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [mask]=\"maskedField.mask\"\n [maskConfig]=\"maskedField.maskConfig\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\"\n [isDisabled]=\"field().isDisabled || false\" [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\"\n [value]=\"formControl.value\" (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\"\n (focus)=\"onFocus()\" (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Button) {\n <upd-button [text]=\"field().label\" [isDisabled]=\"field().isDisabled || false\" [model]=\"buttonField.model\" />\n }\n @case (DynamicFieldType.ButtonGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n <div class=\"btn-group\" role=\"group\">\n @for (btn of buttonGroupField.buttons; track btn) {\n <upd-button [model]=\"btn\" [isDisabled]=\"field().isDisabled || false\" />\n }\n </div>\n }\n}\n" }]
|
|
267
|
+
args: [{ standalone: false, selector: 'upd-dynamic-field', template: "@switch (field().type) {\n @case (DynamicFieldType.Input) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\" [isDisabled]=\"field().isDisabled || false\"\n [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\" [value]=\"formControl.value\"\n (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\" (focus)=\"onFocus()\"\n (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Checkbox) {\n <upd-checkbox [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isDisabled]=\"field().isDisabled || false\" [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n [isSwitch]=\"checkboxField.isSwitch || false\" (changed)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-checkbox>\n }\n @case (DynamicFieldType.CheckboxGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of checkboxGroupOptionsKeys; track option) {\n <upd-checkbox [name]=\"field().name\" [label]=\"getOptionDescription(option, 'checkbox')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\" [isSwitch]=\"checkboxField.isSwitch || false\"\n (changed)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-checkbox>\n }\n }\n @case (DynamicFieldType.Radio) {\n <upd-radio [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"true\"\n [isChecked]=\"formControl.value\" [isDisabled]=\"field().isDisabled || false\" [isInline]=\"radioField.isInline || false\"\n (selected)=\"setControlValue($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n </upd-radio>\n }\n @case (DynamicFieldType.RadioGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n @for (option of radioGroupOptionsKeys; track option) {\n <upd-radio [name]=\"field().name\" [label]=\"getOptionDescription(option, 'radio')\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [value]=\"option\" [isDisabled]=\"field().isDisabled || false\"\n [isChecked]=\"formControl.value\" [isInline]=\"checkboxField.isInline || false\"\n (selected)=\"setControlValue(option)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-radio>\n }\n }\n @case (DynamicFieldType.Select) {\n <upd-select [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [hintAsTooltip]=\"field().hintAsTooltip || false\"\n [validationStatus]=\"validationStatus\" [validationStatusDescriptions]=\"validationStatusDescriptions\"\n [useSystemStyle]=\"singleSelectField.useSystemStyle || false\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [shouldTruncateSelectedText]=\"selectField.shouldTruncateSelectedText\" [parentValue]=\"selectField.parentValue\"\n [value]=\"formControl.value\" (selectedItem)=\"setControlValue($event?.value)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"></upd-select>\n }\n @case (DynamicFieldType.SelectMultiple) {\n <upd-select-multiple [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [items]=\"selectField.items\" [layout]=\"layout()\" [labelColSize]=\"field().labelColSize\" [store]=\"selectField.store!\"\n [observable]=\"selectField.observable\" [itemKey]=\"selectField.itemKey\" [itemValue]=\"selectField.itemValue\"\n [dropdownMaxHeight]=\"selectField.dropdownMaxHeight || SelectDefaults.dropdownMaxHeight\"\n [typeaheadDebounce]=\"selectField.typeaheadDebounce || SelectDefaults.typeaheadDebounce\"\n [shouldAutoSearch]=\"selectField.shouldAutoSearch || SelectDefaults.shouldAutoSearch\" [parentValue]=\"selectField.parentValue\"\n [shouldCloseOnOutsideClick]=\"selectField.shouldCloseOnOutsideClick || SelectDefaults.shouldCloseOnOutsideClick\"\n [selectedValues]=\"formControl.value\" (selectedIds)=\"setControlValue($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-select-multiple>\n }\n @case (DynamicFieldType.Label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n @case (DynamicFieldType.TextArea) {\n <upd-textarea [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [isDisabled]=\"field().isDisabled || false\"\n [value]=\"formControl.value\" [customClasses]=\"textareaField.customClasses\" [wrapperClasses]=\"textareaField.wrapperClasses\"\n [maxLength]=\"textareaField.maxLength\" [rows]=\"textareaField.rows\"\n [displayCharactersCount]=\"textareaField.displayCharactersCount || false\" (valueChange)=\"setControlValue($event)\"\n (focus)=\"onFocus()\" (blur)=\"onBlur()\" (input)=\"onInput($event)\" (keydown.enter)=\"onInputEnter()\">\n </upd-textarea>\n }\n @case (DynamicFieldType.FileUpload) {\n <upd-file-upload [name]=\"field().name\" [label]=\"field().label\" [hint]=\"field().hint\" [isDisabled]=\"field().isDisabled || false\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [fileName]=\"fileNameControl?.value\"\n [validationStatusDescriptions]=\"validationStatusDescriptions\" [allowFilesDrop]=\"fileUploadField.allowFilesDrop || false\"\n [title]=\"fileUploadField.title\" [labelColSize]=\"field().labelColSize\" [minFileSize]=\"fileUploadField.minFileSize\"\n [isMultiple]=\"fileUploadField.isMultiple || false\" [allowedExtensions]=\"fileUploadField.allowedExtensions || '*'\"\n [maxFileSize]=\"fileUploadField.maxFileSize\" [layout]=\"layout()\" (fileChanged)=\"handleFileSelected($event)\" (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"></upd-file-upload>\n }\n @case (DynamicFieldType.MaskedInput) {\n <upd-input [name]=\"field().name\" [label]=\"field().label\" [placeholder]=\"field().placeholder\" [hint]=\"field().hint\"\n [hintAsTooltip]=\"field().hintAsTooltip || false\" [validationStatus]=\"validationStatus\" [mask]=\"maskedField.mask\"\n [maskConfig]=\"maskedField.maskConfig\" [validationStatusDescriptions]=\"validationStatusDescriptions\" [layout]=\"layout()\"\n [isDisabled]=\"field().isDisabled || false\" [type]=\"inputField.inputType || 'text'\" [labelColSize]=\"field().labelColSize\"\n [value]=\"formControl.value\" (valueChange)=\"setControlValue($event)\" (blurred)=\"onBlur()\" (keyUpEnter)=\"onInputEnter()\"\n (focus)=\"onFocus()\" (input)=\"onInput($event)\">\n @if (!!inputField.prefix) {\n <ng-template updInputPrepend>\n {{ textService.getText(inputField.prefix) }}\n </ng-template>\n }\n\n @if (!!inputField.suffix) {\n <ng-template updInputAppend>\n {{ textService.getText(inputField.suffix) }}\n </ng-template>\n }\n </upd-input>\n }\n @case (DynamicFieldType.Button) {\n <upd-button [text]=\"field().label\" [isDisabled]=\"field().isDisabled || false\" [model]=\"buttonField.model\" />\n }\n @case (DynamicFieldType.ButtonGroup) {\n @if (!!field().label) {\n <label class=\"form-label\">{{ getText(field().label) }}</label>\n }\n\n <div class=\"btn-group\" role=\"group\">\n @for (btn of buttonGroupField.buttons; track btn) {\n <upd-button [model]=\"btn\" [isDisabled]=\"field().isDisabled || false\" />\n }\n </div>\n }\n}\n" }]
|
|
268
268
|
}], ctorParameters: () => [], propDecorators: { hostClasses: [{
|
|
269
269
|
type: HostBinding,
|
|
270
270
|
args: ['class']
|
|
271
271
|
}], submitForm: [{
|
|
272
272
|
type: Output
|
|
273
|
-
}] } });
|
|
273
|
+
}], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: true }] }] } });
|
|
274
274
|
|
|
275
275
|
class FormComponent extends BaseComponent {
|
|
276
276
|
get titleText() {
|
|
@@ -284,42 +284,42 @@ class FormComponent extends BaseComponent {
|
|
|
284
284
|
/**
|
|
285
285
|
* Rows to generate the form.
|
|
286
286
|
*/
|
|
287
|
-
this.rows = input.required();
|
|
287
|
+
this.rows = input.required(...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
288
288
|
/**
|
|
289
289
|
* Form's layout.
|
|
290
290
|
*/
|
|
291
|
-
this.layout = input('vertical');
|
|
291
|
+
this.layout = input('vertical', ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
292
292
|
/**
|
|
293
293
|
* Title of the form.
|
|
294
294
|
* Optional.
|
|
295
295
|
*/
|
|
296
|
-
this.title = input(undefined);
|
|
296
|
+
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
297
297
|
/**
|
|
298
298
|
* Whether the actions section will be displayed.
|
|
299
299
|
*/
|
|
300
|
-
this.hasActionsSection = input(true);
|
|
300
|
+
this.hasActionsSection = input(true, ...(ngDevMode ? [{ debugName: "hasActionsSection" }] : []));
|
|
301
301
|
/**
|
|
302
302
|
* Whether the form is contained in a card.
|
|
303
303
|
* If true, it'll display a card as a form wrapper.
|
|
304
304
|
*/
|
|
305
|
-
this.isCard = input(false);
|
|
305
|
+
this.isCard = input(false, ...(ngDevMode ? [{ debugName: "isCard" }] : []));
|
|
306
306
|
/**
|
|
307
307
|
* Whether the form is in read only mode, which means no fields can be edited.
|
|
308
308
|
*/
|
|
309
|
-
this.isDisabled = input(false, { transform: (val) => typeof val === 'string' ? val === '' : val });
|
|
309
|
+
this.isDisabled = input(false, { ...(ngDevMode ? { debugName: "isDisabled" } : {}), transform: (val) => typeof val === 'string' ? val === '' : val });
|
|
310
310
|
/**
|
|
311
311
|
* Whether the form is loading.
|
|
312
312
|
*/
|
|
313
|
-
this.isLoading = input(false); // TODO: implementar
|
|
313
|
+
this.isLoading = input(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : [])); // TODO: implementar
|
|
314
314
|
/**
|
|
315
315
|
* Whether the form is saving.
|
|
316
316
|
*/
|
|
317
|
-
this.isSaving = input(false); // TODO: implementar
|
|
317
|
+
this.isSaving = input(false, ...(ngDevMode ? [{ debugName: "isSaving" }] : [])); // TODO: implementar
|
|
318
318
|
/**
|
|
319
319
|
* Current form data.
|
|
320
320
|
*/
|
|
321
|
-
this.formData = model({});
|
|
322
|
-
this.formGroup = model(new FormGroup({}));
|
|
321
|
+
this.formData = model({}, ...(ngDevMode ? [{ debugName: "formData" }] : []));
|
|
322
|
+
this.formGroup = model(new FormGroup({}), ...(ngDevMode ? [{ debugName: "formGroup" }] : []));
|
|
323
323
|
this.textService = inject(TextService);
|
|
324
324
|
effect(() => {
|
|
325
325
|
this.rows();
|
|
@@ -426,19 +426,19 @@ class FormComponent extends BaseComponent {
|
|
|
426
426
|
});
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
430
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
429
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
430
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.4", type: FormComponent, isStandalone: false, selector: "upd-form", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, hasActionsSection: { classPropertyName: "hasActionsSection", publicName: "hasActionsSection", isSignal: true, isRequired: false, transformFunction: null }, isCard: { classPropertyName: "isCard", publicName: "isCard", isSignal: true, isRequired: false, transformFunction: null }, isDisabled: { classPropertyName: "isDisabled", publicName: "isDisabled", isSignal: true, isRequired: false, transformFunction: null }, isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, isSaving: { classPropertyName: "isSaving", publicName: "isSaving", isSignal: true, isRequired: false, transformFunction: null }, formData: { classPropertyName: "formData", publicName: "formData", isSignal: true, isRequired: false, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { initialized: "initialized", dataLoaded: "dataLoaded", submitted: "submitted", formData: "formDataChange", formGroup: "formGroupChange" }, usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Form'\">\n <div [class.card]=\"isCard()\">\n @if (!!titleText) {\n <div [class.card-header]=\"isCard()\">\n <h3 [class.card-title]=\"isCard()\">{{ titleText }}</h3>\n </div>\n }\n <div [class.card-body]=\"isCard()\">\n @for (row of rows(); track row; let isFirst = $first) {\n <div class=\"row\" [class.mt-4]=\"!isFirst\">\n @if (!!row.title) {\n <div class=\"card-title col-12\">{{ textService.getText(row.title) }}</div>\n }\n\n @for (field of row.fields; track field.name) {\n @if (!field.isHidden) {\n <upd-dynamic-field [layout]=\"layout()\" [field]=\"field\" [formGroup]=\"formGroup()\" (submitForm)=\"submit()\">\n </upd-dynamic-field>\n }\n }\n </div>\n }\n </div>\n\n @if (hasActionsSection()) {\n <div [class.card-footer]=\"isCard()\" [class.mt-4]=\"!isCard()\">\n <upd-button colorStyle=\"primary\" (clicked)=\"submit()\">\n {{ t('Submit') }}\n </upd-button>\n </div>\n }\n </div>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i1.ButtonComponent, selector: "upd-button", inputs: ["model", "text", "brandColorStyle", "customClasses", "isOutline", "isGhost", "isSquare", "isPill", "isIcon", "isLoading", "isList", "isFloating", "isAction", "isNavigationLink", "isLink", "shouldIgnoreBtnClass", "iconModel", "iconPosition", "isDisabled", "isActive", "badgeConfig", "colorStyle", "size", "title", "stopPropagation"], outputs: ["clicked"] }, { kind: "directive", type: i1$2.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: DynamicFieldComponent, selector: "upd-dynamic-field", inputs: ["formGroup", "field", "layout"], outputs: ["submitForm"] }] }); }
|
|
431
431
|
}
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: FormComponent, decorators: [{
|
|
433
433
|
type: Component,
|
|
434
|
-
args: [{ selector: 'upd-form', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Form'\">\n <div [class.card]=\"isCard()\">\n @if (!!titleText) {\n <div [class.card-header]=\"isCard()\">\n <h3 [class.card-title]=\"isCard()\">{{ titleText }}</h3>\n </div>\n }\n <div [class.card-body]=\"isCard()\">\n @for (row of rows(); track row; let isFirst = $first) {\n <div class=\"row\" [class.mt-4]=\"!isFirst\">\n @if (!!row.title) {\n <div class=\"card-title col-12\">{{ textService.getText(row.title) }}</div>\n }\n\n @for (field of row.fields; track field.name) {\n @if (!field.isHidden) {\n <upd-dynamic-field [layout]=\"layout()\" [field]=\"field\" [formGroup]=\"formGroup()\" (submitForm)=\"submit()\">\n </upd-dynamic-field>\n }\n }\n </div>\n }\n </div>\n\n @if (hasActionsSection()) {\n <div [class.card-footer]=\"isCard()\" [class.mt-4]=\"!isCard()\">\n <upd-button colorStyle=\"primary\" (clicked)=\"submit()\">\n {{ t('Submit') }}\n </upd-button>\n </div>\n }\n </div>\n</ng-container>" }]
|
|
434
|
+
args: [{ standalone: false, selector: 'upd-form', template: "<ng-container *transloco=\"let t; prefix: 'UpDevs.Form'\">\n <div [class.card]=\"isCard()\">\n @if (!!titleText) {\n <div [class.card-header]=\"isCard()\">\n <h3 [class.card-title]=\"isCard()\">{{ titleText }}</h3>\n </div>\n }\n <div [class.card-body]=\"isCard()\">\n @for (row of rows(); track row; let isFirst = $first) {\n <div class=\"row\" [class.mt-4]=\"!isFirst\">\n @if (!!row.title) {\n <div class=\"card-title col-12\">{{ textService.getText(row.title) }}</div>\n }\n\n @for (field of row.fields; track field.name) {\n @if (!field.isHidden) {\n <upd-dynamic-field [layout]=\"layout()\" [field]=\"field\" [formGroup]=\"formGroup()\" (submitForm)=\"submit()\">\n </upd-dynamic-field>\n }\n }\n </div>\n }\n </div>\n\n @if (hasActionsSection()) {\n <div [class.card-footer]=\"isCard()\" [class.mt-4]=\"!isCard()\">\n <upd-button colorStyle=\"primary\" (clicked)=\"submit()\">\n {{ t('Submit') }}\n </upd-button>\n </div>\n }\n </div>\n</ng-container>" }]
|
|
435
435
|
}], ctorParameters: () => [], propDecorators: { initialized: [{
|
|
436
436
|
type: Output
|
|
437
437
|
}], dataLoaded: [{
|
|
438
438
|
type: Output
|
|
439
439
|
}], submitted: [{
|
|
440
440
|
type: Output
|
|
441
|
-
}] } });
|
|
441
|
+
}], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], hasActionsSection: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasActionsSection", required: false }] }], isCard: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCard", required: false }] }], isDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDisabled", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], isSaving: [{ type: i0.Input, args: [{ isSignal: true, alias: "isSaving", required: false }] }], formData: [{ type: i0.Input, args: [{ isSignal: true, alias: "formData", required: false }] }, { type: i0.Output, args: ["formDataChange"] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: false }] }, { type: i0.Output, args: ["formGroupChange"] }] } });
|
|
442
442
|
|
|
443
443
|
var UpDevs$1 = {
|
|
444
444
|
Form: {
|
|
@@ -496,8 +496,8 @@ class UpdFormModule {
|
|
|
496
496
|
translocoService.setTranslation(en$1, 'en');
|
|
497
497
|
translocoService.setTranslation(pt$1, 'pt');
|
|
498
498
|
}
|
|
499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
500
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: UpdFormModule, deps: [{ token: i1$2.TranslocoService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
500
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: UpdFormModule, declarations: [FormComponent,
|
|
501
501
|
DynamicFieldComponent], imports: [CommonModule,
|
|
502
502
|
ReactiveFormsModule,
|
|
503
503
|
UpdButtonModule,
|
|
@@ -510,7 +510,7 @@ class UpdFormModule {
|
|
|
510
510
|
UpdTextareaModule,
|
|
511
511
|
UpdFileUploadModule,
|
|
512
512
|
UpdSdkModule], exports: [FormComponent] }); }
|
|
513
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
513
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: UpdFormModule, providers: [
|
|
514
514
|
ErrorsHelper
|
|
515
515
|
], imports: [CommonModule,
|
|
516
516
|
ReactiveFormsModule,
|
|
@@ -524,7 +524,7 @@ class UpdFormModule {
|
|
|
524
524
|
UpdFileUploadModule,
|
|
525
525
|
UpdSdkModule] }); }
|
|
526
526
|
}
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: UpdFormModule, decorators: [{
|
|
528
528
|
type: NgModule,
|
|
529
529
|
args: [{
|
|
530
530
|
imports: [
|