ca-components 1.3.3 → 1.3.6
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/assets/scss/background.scss +44 -0
- package/assets/scss/border-radius.scss +17 -0
- package/assets/scss/filters.scss +151 -0
- package/assets/scss/icons.scss +68 -4
- package/assets/scss/input-dropdown-test.scss +2030 -0
- package/assets/scss/mixins.scss +18 -0
- package/assets/scss/spacing.scss +59 -0
- package/assets/scss/styles.scss +22 -1
- package/assets/scss/text-selection.scss +43 -204
- package/assets/theme/variables.scss +1 -1
- package/esm2022/lib/ca-components.module.mjs +47 -5
- package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.mjs +6 -3
- package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +16 -14
- package/esm2022/lib/components/ca-checkbox/ca-checkbox.component.mjs +134 -0
- package/esm2022/lib/components/ca-checkbox/interfaces/column-check-action.interface.mjs +2 -0
- package/esm2022/lib/components/ca-checkbox/interfaces/index.mjs +2 -0
- package/esm2022/lib/components/ca-checkbox/utils/svg-routes/checkbox-svg-routes.mjs +7 -0
- package/esm2022/lib/components/ca-checkbox/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +2 -2
- package/esm2022/lib/components/ca-comment/modals/comment-modal/comment-modal.component.mjs +3 -3
- package/esm2022/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.mjs +4 -4
- package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +3 -3
- package/esm2022/lib/components/ca-details-dropdown/ca-details-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +95 -24
- package/esm2022/lib/components/ca-dropdown-menu/enums/dropdown-menu.enum.mjs +19 -0
- package/esm2022/lib/components/ca-dropdown-menu/enums/index.mjs +2 -2
- package/esm2022/lib/components/ca-dropdown-menu/interfaces/dropdown-menu-item.interface.mjs +2 -0
- package/esm2022/lib/components/ca-dropdown-menu/interfaces/dropdown-menu-option-emit.interface.mjs +2 -0
- package/esm2022/lib/components/ca-dropdown-menu/interfaces/index.mjs +3 -0
- package/esm2022/lib/components/ca-dropdown-menu/pipes/dropdown-menu-placement-class.pipe.mjs +4 -4
- package/esm2022/lib/components/ca-dropdown-menu/pipes/group-item-checked-state.pipe.mjs +21 -0
- package/esm2022/lib/components/ca-dropdown-menu/pipes/index.mjs +2 -1
- package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +4 -4
- package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +3 -3
- package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.mjs +4 -4
- package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +2 -2
- package/esm2022/lib/components/ca-filters/pipes/index.mjs +7 -0
- package/esm2022/lib/components/ca-filters/utils/helpers/index.mjs +2 -1
- package/esm2022/lib/components/ca-filters/utils/helpers/time-filter.helper.mjs +117 -0
- package/esm2022/lib/components/ca-filters/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
- package/esm2022/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +3 -3
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +34 -34
- package/esm2022/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.mjs +6 -0
- package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +4 -4
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-dropdown-test/animations/index.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown-test/animations/input-dropdown.animation.mjs +11 -0
- package/esm2022/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.component.mjs +692 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.mjs +62 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.mjs +72 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.mjs +60 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.mjs +62 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.mjs +76 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.mjs +58 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.mjs +76 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker-item/ca-input-dropdown-load-broker-item.component.mjs +41 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.mjs +64 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.mjs +38 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.mjs +62 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper-item/ca-input-dropdown-load-broker-shipper-item.component.mjs +37 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.mjs +61 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher-item/ca-input-dropdown-load-dispatcher-item.component.mjs +49 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.mjs +60 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd-item/ca-input-dropdown-load-dispatches-ttd-item.mjs +49 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.mjs +65 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.mjs +58 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.mjs +62 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.mjs +63 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.mjs +72 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.mjs +56 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.mjs +77 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.mjs +58 -0
- package/esm2022/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.mjs +62 -0
- package/esm2022/lib/components/ca-input-dropdown-test/enums/dropdown-string.enum.mjs +6 -0
- package/esm2022/lib/components/ca-input-dropdown-test/enums/dropdown-template-type.enum.mjs +23 -0
- package/esm2022/lib/components/ca-input-dropdown-test/enums/index.mjs +3 -0
- package/esm2022/lib/components/ca-input-dropdown-test/models/index.mjs +4 -0
- package/esm2022/lib/components/ca-input-dropdown-test/models/input-dropdown-option.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown-test/models/load-modal-status.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown-test/models/status-order.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/dropdown-count.pipe.mjs +29 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/dropdown-options.pipe.mjs +73 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/index.mjs +10 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-default-template-class.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-fuel-franchise-class.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-get-icon.pipe.mjs +18 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-label-class.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-load-broker-container.pipe.mjs +25 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-multiselect-class.pipe.mjs +23 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-container.pipe.mjs +25 -0
- package/esm2022/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-icon.pipe.mjs +23 -0
- package/esm2022/lib/components/ca-input-dropdown-test/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-input-dropdown-test/utils/svg-routes/input-dropdown-svg-routes.mjs +13 -0
- package/esm2022/lib/components/ca-input-note/ca-input-note.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-test/base-classes/ca-input-event-manager.mjs +24 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.mjs +66 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.mjs +48 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.mjs +63 -0
- package/esm2022/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +85 -0
- package/esm2022/lib/components/ca-input-test/config/ca-input.config.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/directives/caps-lock.directive.mjs +50 -0
- package/esm2022/lib/components/ca-input-test/directives/command-visible.directive.mjs +48 -0
- package/esm2022/lib/components/ca-input-test/directives/index.mjs +6 -0
- package/esm2022/lib/components/ca-input-test/directives/input-max-value.directive.mjs +53 -0
- package/esm2022/lib/components/ca-input-test/directives/min-max-value.directive.mjs +41 -0
- package/esm2022/lib/components/ca-input-test/directives/price_format.directive.mjs +41 -0
- package/esm2022/lib/components/ca-input-test/directives/restrict-input.directive.mjs +94 -0
- package/esm2022/lib/components/ca-input-test/enums/index.mjs +5 -0
- package/esm2022/lib/components/ca-input-test/enums/input-commands-action.enum.mjs +11 -0
- package/esm2022/lib/components/ca-input-test/enums/input-commands-type.enum.mjs +8 -0
- package/esm2022/lib/components/ca-input-test/enums/input-config-name-string.enum.mjs +9 -0
- package/esm2022/lib/components/ca-input-test/enums/input-string.enum.mjs +114 -0
- package/esm2022/lib/components/ca-input-test/enums/input-text-transform.enum.mjs +9 -0
- package/esm2022/lib/components/ca-input-test/input-test.component.mjs +273 -0
- package/esm2022/lib/components/ca-input-test/mixins/input-command.mixin.mjs +124 -0
- package/esm2022/lib/components/ca-input-test/mixins/input-helper.mixin.mjs +49 -0
- package/esm2022/lib/components/ca-input-test/mixins/restriction-pipe.mixin.mjs +34 -0
- package/esm2022/lib/components/ca-input-test/models/base.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/command-click.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/commands-event.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/models/index.mjs +4 -0
- package/esm2022/lib/components/ca-input-test/models/label-color.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/pipes/color-finder.pipe.mjs +62 -0
- package/esm2022/lib/components/ca-input-test/pipes/form-control.pipe.mjs +17 -0
- package/esm2022/lib/components/ca-input-test/pipes/index.mjs +20 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-class.pipe.mjs +155 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-clear-class.pipe.mjs +87 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-container-class.pipe.mjs +58 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.mjs +77 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.mjs +61 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-error.pipe.mjs +88 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.mjs +37 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-pattern.pipe.mjs +326 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.mjs +46 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.mjs +58 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.mjs +45 -0
- package/esm2022/lib/components/ca-input-test/pipes/input-type.pipe.mjs +25 -0
- package/esm2022/lib/components/ca-input-test/pipes/label-class.pipe.mjs +38 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-clear.pipe.mjs +22 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.mjs +26 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.mjs +24 -0
- package/esm2022/lib/components/ca-input-test/pipes/show-valid-check.pipe.mjs +27 -0
- package/esm2022/lib/components/ca-input-test/utils/index.mjs +3 -0
- package/esm2022/lib/components/ca-input-test/utils/input-change-value.type.mjs +2 -0
- package/esm2022/lib/components/ca-input-test/utils/input-svg-routes.mjs +17 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.mjs +75 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/enums/last-fuel-price-progress.enum.mjs +6 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/interfaces/index.mjs +3 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-data.interface.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/constants/last-fuel-price-progress.constants.mjs +10 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/helpers/index.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/helpers/last-fuel-price-progress.helper.mjs +25 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-last-fuel-price-progress/utils/svg-routes/last-fuel-price-progress-svg-routes.mjs +4 -0
- package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +3 -3
- package/esm2022/lib/components/ca-main-table/ca-main-table.component.mjs +5 -3
- package/esm2022/lib/components/ca-map/ca-map.component.mjs +2 -2
- package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-modal/ca-modal.component.mjs +2 -2
- package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +3 -3
- package/esm2022/lib/components/ca-new-filter/ca-filter-dropdown.component.mjs +98 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.mjs +142 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.mjs +131 -0
- package/esm2022/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.mjs +131 -0
- package/esm2022/lib/components/ca-new-filter/constant/filter-dropdown-icons.constant.mjs +87 -0
- package/esm2022/lib/components/ca-new-filter/constant/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-dropdown-types.enum.mjs +15 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-sorting-key.enum.mjs +6 -0
- package/esm2022/lib/components/ca-new-filter/enums/filter-time.enum.mjs +37 -0
- package/esm2022/lib/components/ca-new-filter/enums/index.mjs +4 -0
- package/esm2022/lib/components/ca-new-filter/interface/country.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-action.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-dropdown-configuration.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/filter-dropdown-list.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/index.mjs +7 -0
- package/esm2022/lib/components/ca-new-filter/interface/sorting-emmiter.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/interface/time-options.interface.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/pipes/filter-search.pipe.mjs +31 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-dropdown.types.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-sorting-key.type.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/filter-time.types.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/types/index.mjs +4 -0
- package/esm2022/lib/components/ca-new-filter/utils/configs/filter-dropdown-fields.config.mjs +37 -0
- package/esm2022/lib/components/ca-new-filter/utils/configs/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/utils/helpers/index.mjs +2 -0
- package/esm2022/lib/components/ca-new-filter/utils/helpers/time-filter.helper.mjs +133 -0
- package/esm2022/lib/components/ca-ngx-slider/ca-ngx-slider.component.mjs +2 -2
- package/esm2022/lib/components/ca-note/ca-note.component.mjs +2 -2
- package/esm2022/lib/components/ca-note-container/ca-note-container.component.mjs +2 -2
- package/esm2022/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +10 -9
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.mjs +3 -3
- package/esm2022/lib/components/ca-period-content/enums/index.mjs +2 -1
- package/esm2022/lib/components/ca-period-content/enums/period-title-type.enum.mjs +9 -0
- package/esm2022/lib/components/ca-period-content/utils/constants/color-map.mjs +9 -8
- package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.mjs +3 -3
- package/esm2022/lib/components/ca-profile-image/ca-profile-image.component.mjs +3 -3
- package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.mjs +2 -2
- package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +2 -2
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.mjs +3 -3
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
- package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +3 -3
- package/esm2022/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.mjs +3 -3
- package/esm2022/lib/components/ca-search-multiple-states/models/tab-data.model.mjs +1 -1
- package/esm2022/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.mjs +21 -8
- package/esm2022/lib/components/ca-sort-dropdown/types/index.mjs +2 -0
- package/esm2022/lib/components/ca-sort-dropdown/types/sort-directions.type.mjs +2 -0
- package/esm2022/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.mjs +3 -2
- package/esm2022/lib/components/ca-spinner/ca-spinner.component.mjs +2 -2
- package/esm2022/lib/components/ca-tab-switch/ca-tab-switch.component.mjs +3 -3
- package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +3 -3
- package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +3 -3
- package/esm2022/lib/components/ca-tooltip-list/ca-tooltip-list.component.mjs +3 -3
- package/esm2022/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +2 -2
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +3 -3
- package/esm2022/lib/components/ca-vehicle-list/ca-vehicle-list.component.mjs +77 -0
- package/esm2022/lib/components/ca-vehicle-list/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/enums/vehicle-list.enum.mjs +6 -0
- package/esm2022/lib/components/ca-vehicle-list/interfaces/index.mjs +3 -0
- package/esm2022/lib/components/ca-vehicle-list/interfaces/vehicle-list-actions-emit.interface.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/models/index.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/models/vehicle-list.model.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/types/index.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/types/vehicle-list.type.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/utils/constants/index.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/utils/constants/vehicle-list.constants.mjs +37 -0
- package/esm2022/lib/components/ca-vehicle-list/utils/svg-routes/index.mjs +2 -0
- package/esm2022/lib/components/ca-vehicle-list/utils/svg-routes/vehicle-list-svg-routes.mjs +7 -0
- package/esm2022/lib/enums/dropdown-menu.enum.mjs +20 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/enums/string-placeholder.enum.mjs +14 -0
- package/esm2022/lib/pipes/index.mjs +2 -1
- package/esm2022/lib/pipes/row-class.pipe.mjs +26 -0
- package/esm2022/lib/pipes/truck-trailer-color-finder.pipe.mjs +72 -0
- package/esm2022/lib/utils/constants/dropdown-menu-content.constants.mjs +26 -26
- package/esm2022/lib/utils/helpers/dropdown-menu-content-conditional-items.helper.mjs +4 -4
- package/esm2022/lib/utils/helpers/dropdown-menu-content.helper.mjs +6 -6
- package/esm2022/public-api.mjs +17 -2
- package/fesm2022/ca-components.mjs +7028 -1512
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +40 -33
- package/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.d.ts +2 -1
- package/lib/components/ca-checkbox/ca-checkbox.component.d.ts +39 -0
- package/lib/components/ca-checkbox/interfaces/column-check-action.interface.d.ts +6 -0
- package/lib/components/ca-checkbox/interfaces/index.d.ts +1 -0
- package/lib/components/ca-checkbox/utils/svg-routes/checkbox-svg-routes.d.ts +6 -0
- package/lib/components/ca-checkbox/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.d.ts +1 -1
- package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.d.ts +16 -7
- package/lib/components/ca-dropdown-menu/enums/{dropdown-menu-string.enum.d.ts → dropdown-menu.enum.d.ts} +5 -2
- package/lib/components/ca-dropdown-menu/enums/index.d.ts +1 -1
- package/lib/components/ca-dropdown-menu/{models/dropdown-menu-item.model.d.ts → interfaces/dropdown-menu-item.interface.d.ts} +7 -1
- package/lib/components/ca-dropdown-menu/{models/dropdown-menu-option-emit.model.d.ts → interfaces/dropdown-menu-option-emit.interface.d.ts} +1 -1
- package/lib/components/ca-dropdown-menu/interfaces/index.d.ts +2 -0
- package/lib/components/ca-dropdown-menu/pipes/group-item-checked-state.pipe.d.ts +8 -0
- package/lib/components/ca-dropdown-menu/pipes/index.d.ts +1 -0
- package/lib/components/ca-filters/pipes/index.d.ts +6 -0
- package/lib/components/ca-filters/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-filters/utils/{constants/time-filter.constants.d.ts → helpers/time-filter.helper.d.ts} +14 -2
- package/lib/components/ca-filters/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.d.ts +4 -0
- package/lib/components/ca-input-dropdown-test/animations/index.d.ts +1 -0
- package/lib/components/ca-input-dropdown-test/animations/input-dropdown.animation.d.ts +1 -0
- package/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.component.d.ts +125 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.d.ts +22 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.d.ts +19 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.d.ts +27 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.d.ts +24 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker-item/ca-input-dropdown-load-broker-item.component.d.ts +10 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper-item/ca-input-dropdown-load-broker-shipper-item.component.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher-item/ca-input-dropdown-load-dispatcher-item.component.d.ts +14 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd-item/ca-input-dropdown-load-dispatches-ttd-item.d.ts +14 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.d.ts +22 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.d.ts +15 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.d.ts +22 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.d.ts +18 -0
- package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.d.ts +20 -0
- package/lib/components/ca-input-dropdown-test/enums/dropdown-string.enum.d.ts +4 -0
- package/lib/components/ca-input-dropdown-test/enums/dropdown-template-type.enum.d.ts +21 -0
- package/lib/components/ca-input-dropdown-test/enums/index.d.ts +2 -0
- package/lib/components/ca-input-dropdown-test/models/index.d.ts +3 -0
- package/lib/components/ca-input-dropdown-test/models/input-dropdown-option.model.d.ts +95 -0
- package/lib/components/ca-input-dropdown-test/models/load-modal-status.model.d.ts +5 -0
- package/lib/components/ca-input-dropdown-test/models/status-order.model.d.ts +4 -0
- package/lib/components/ca-input-dropdown-test/pipes/dropdown-count.pipe.d.ts +7 -0
- package/lib/components/ca-input-dropdown-test/pipes/dropdown-options.pipe.d.ts +10 -0
- package/lib/components/ca-input-dropdown-test/pipes/index.d.ts +9 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-default-template-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-fuel-franchise-class.pipe.d.ts +10 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-get-icon.pipe.d.ts +9 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-label-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-load-broker-container.pipe.d.ts +10 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-multiselect-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-container.pipe.d.ts +10 -0
- package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-icon.pipe.d.ts +11 -0
- package/lib/components/ca-input-dropdown-test/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-input-dropdown-test/utils/svg-routes/input-dropdown-svg-routes.d.ts +12 -0
- package/lib/components/ca-input-test/base-classes/ca-input-event-manager.d.ts +16 -0
- package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.d.ts +20 -0
- package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.d.ts +16 -0
- package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.d.ts +20 -0
- package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +26 -0
- package/lib/components/ca-input-test/config/ca-input.config.d.ts +168 -0
- package/lib/components/ca-input-test/config/index.d.ts +1 -0
- package/lib/components/ca-input-test/directives/caps-lock.directive.d.ts +14 -0
- package/lib/components/ca-input-test/directives/index.d.ts +5 -0
- package/lib/components/ca-input-test/directives/input-max-value.directive.d.ts +12 -0
- package/lib/components/ca-input-test/directives/min-max-value.directive.d.ts +13 -0
- package/lib/components/ca-input-test/directives/price_format.directive.d.ts +11 -0
- package/lib/components/ca-input-test/directives/restrict-input.directive.d.ts +27 -0
- package/lib/components/ca-input-test/enums/index.d.ts +4 -0
- package/lib/components/ca-input-test/enums/input-commands-action.enum.d.ts +9 -0
- package/lib/components/ca-input-test/enums/input-commands-type.enum.d.ts +6 -0
- package/lib/components/ca-input-test/enums/input-config-name-string.enum.d.ts +7 -0
- package/lib/components/ca-input-test/enums/input-string.enum.d.ts +112 -0
- package/lib/components/ca-input-test/enums/input-text-transform.enum.d.ts +6 -0
- package/lib/components/{ca-input/input-test → ca-input-test}/input-test.component.d.ts +13 -12
- package/lib/components/{ca-input → ca-input-test}/mixins/input-command.mixin.d.ts +1 -1
- package/lib/components/{ca-input → ca-input-test}/mixins/input-helper.mixin.d.ts +1 -1
- package/lib/components/ca-input-test/mixins/restriction-pipe.mixin.d.ts +12 -0
- package/lib/components/ca-input-test/models/command-click.model.d.ts +5 -0
- package/lib/components/ca-input-test/models/commands-event.model.d.ts +5 -0
- package/lib/components/ca-input-test/models/index.d.ts +3 -0
- package/lib/components/ca-input-test/models/label-color.model.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/color-finder.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/form-control.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/index.d.ts +19 -0
- package/lib/components/ca-input-test/pipes/input-class.pipe.d.ts +13 -0
- package/lib/components/ca-input-test/pipes/input-clear-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-container-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-error.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-pattern.pipe.d.ts +38 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.d.ts +12 -0
- package/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.d.ts +11 -0
- package/lib/components/ca-input-test/pipes/input-type.pipe.d.ts +7 -0
- package/lib/components/ca-input-test/pipes/label-class.pipe.d.ts +10 -0
- package/lib/components/ca-input-test/pipes/show-clear.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.d.ts +8 -0
- package/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/pipes/show-valid-check.pipe.d.ts +9 -0
- package/lib/components/ca-input-test/utils/index.d.ts +2 -0
- package/lib/components/ca-input-test/utils/input-change-value.type.d.ts +1 -0
- package/lib/components/ca-input-test/utils/input-svg-routes.d.ts +16 -0
- package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.d.ts +18 -0
- package/lib/components/ca-last-fuel-price-progress/enums/index.d.ts +1 -0
- package/lib/components/ca-last-fuel-price-progress/enums/last-fuel-price-progress.enum.d.ts +4 -0
- package/lib/components/ca-last-fuel-price-progress/interfaces/index.d.ts +2 -0
- package/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-config.interface.d.ts +9 -0
- package/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-data.interface.d.ts +10 -0
- package/lib/components/ca-last-fuel-price-progress/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-last-fuel-price-progress/utils/constants/last-fuel-price-progress.constants.d.ts +3 -0
- package/lib/components/ca-last-fuel-price-progress/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-last-fuel-price-progress/utils/helpers/last-fuel-price-progress.helper.d.ts +7 -0
- package/lib/components/ca-last-fuel-price-progress/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-last-fuel-price-progress/utils/svg-routes/last-fuel-price-progress-svg-routes.d.ts +3 -0
- package/lib/components/ca-new-filter/ca-filter-dropdown.component.d.ts +35 -0
- package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.d.ts +43 -0
- package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.d.ts +35 -0
- package/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.d.ts +43 -0
- package/lib/components/ca-new-filter/constant/filter-dropdown-icons.constant.d.ts +3 -0
- package/lib/components/ca-new-filter/constant/index.d.ts +1 -0
- package/lib/components/ca-new-filter/enums/filter-dropdown-types.enum.d.ts +13 -0
- package/lib/components/ca-new-filter/enums/filter-sorting-key.enum.d.ts +4 -0
- package/lib/components/ca-new-filter/enums/filter-time.enum.d.ts +35 -0
- package/lib/components/ca-new-filter/enums/index.d.ts +3 -0
- package/lib/components/ca-new-filter/interface/country.interface.d.ts +13 -0
- package/lib/components/ca-new-filter/interface/filter-action.interface.d.ts +18 -0
- package/lib/components/ca-new-filter/interface/filter-dropdown-configuration.interface.d.ts +13 -0
- package/lib/components/ca-new-filter/interface/filter-dropdown-list.d.ts +17 -0
- package/lib/components/ca-new-filter/interface/index.d.ts +6 -0
- package/lib/components/ca-new-filter/interface/sorting-emmiter.interface.d.ts +5 -0
- package/lib/components/ca-new-filter/interface/time-options.interface.d.ts +9 -0
- package/lib/components/ca-new-filter/pipes/filter-search.pipe.d.ts +8 -0
- package/lib/components/ca-new-filter/types/filter-dropdown.types.d.ts +2 -0
- package/lib/components/ca-new-filter/types/filter-sorting-key.type.d.ts +2 -0
- package/lib/components/ca-new-filter/types/filter-time.types.d.ts +2 -0
- package/lib/components/ca-new-filter/types/index.d.ts +3 -0
- package/lib/components/ca-new-filter/utils/configs/filter-dropdown-fields.config.d.ts +7 -0
- package/lib/components/ca-new-filter/utils/configs/index.d.ts +1 -0
- package/lib/components/ca-new-filter/utils/helpers/index.d.ts +1 -0
- package/lib/components/ca-new-filter/utils/helpers/time-filter.helper.d.ts +6 -0
- package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.d.ts +7 -6
- package/lib/components/ca-period-content/enums/index.d.ts +1 -0
- package/lib/components/ca-period-content/enums/period-title-type.enum.d.ts +7 -0
- package/lib/components/ca-period-content/utils/constants/color-map.d.ts +2 -3
- package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.d.ts +3 -3
- package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.d.ts +2 -2
- package/lib/components/ca-search-multiple-states/models/tab-data.model.d.ts +11 -11
- package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.d.ts +12 -5
- package/lib/components/ca-sort-dropdown/types/index.d.ts +1 -0
- package/lib/components/ca-sort-dropdown/types/sort-directions.type.d.ts +5 -0
- package/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.d.ts +2 -1
- package/lib/components/ca-vehicle-list/ca-vehicle-list.component.d.ts +22 -0
- package/lib/components/ca-vehicle-list/enums/index.d.ts +1 -0
- package/lib/components/ca-vehicle-list/enums/vehicle-list.enum.d.ts +4 -0
- package/lib/components/ca-vehicle-list/interfaces/index.d.ts +2 -0
- package/lib/components/ca-vehicle-list/interfaces/vehicle-list-actions-emit.interface.d.ts +5 -0
- package/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.d.ts +7 -0
- package/lib/components/ca-vehicle-list/models/index.d.ts +1 -0
- package/lib/components/ca-vehicle-list/models/vehicle-list.model.d.ts +11 -0
- package/lib/components/ca-vehicle-list/types/index.d.ts +1 -0
- package/lib/components/ca-vehicle-list/types/vehicle-list.type.d.ts +2 -0
- package/lib/components/ca-vehicle-list/utils/constants/index.d.ts +1 -0
- package/lib/components/ca-vehicle-list/utils/constants/vehicle-list.constants.d.ts +5 -0
- package/lib/components/ca-vehicle-list/utils/svg-routes/index.d.ts +1 -0
- package/lib/components/ca-vehicle-list/utils/svg-routes/vehicle-list-svg-routes.d.ts +6 -0
- package/lib/enums/{dropdown-menu-string.enum.d.ts → dropdown-menu.enum.d.ts} +1 -1
- package/lib/enums/index.d.ts +1 -0
- package/lib/enums/string-placeholder.enum.d.ts +12 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/row-class.pipe.d.ts +7 -0
- package/lib/pipes/truck-trailer-color-finder.pipe.d.ts +7 -0
- package/lib/utils/constants/dropdown-menu-content.constants.d.ts +3 -3
- package/lib/utils/helpers/dropdown-menu-content-conditional-items.helper.d.ts +3 -3
- package/lib/utils/helpers/dropdown-menu-content.helper.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +16 -1
- package/src/assets/ca-components/svg/common/fuel.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_arrow_desc.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_carriera-logo-active.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_carriera-logo-inactive.svg +4 -0
- package/src/assets/ca-components/svg/common/ic_columns.svg +8 -0
- package/src/assets/ca-components/svg/common/ic_disable.svg +3 -0
- package/src/assets/ca-components/svg/common/ic_owner-status.svg +7 -0
- package/esm2022/lib/components/ca-dropdown-menu/enums/dropdown-menu-string.enum.mjs +0 -14
- package/esm2022/lib/components/ca-dropdown-menu/models/dropdown-menu-item.model.mjs +0 -2
- package/esm2022/lib/components/ca-dropdown-menu/models/dropdown-menu-option-emit.model.mjs +0 -2
- package/esm2022/lib/components/ca-dropdown-menu/models/index.mjs +0 -3
- package/esm2022/lib/components/ca-filters/utils/constants/time-filter.constants.mjs +0 -102
- package/esm2022/lib/components/ca-input/directives/command-visible.directive.mjs +0 -48
- package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +0 -266
- package/esm2022/lib/components/ca-input/mixins/input-command.mixin.mjs +0 -127
- package/esm2022/lib/components/ca-input/mixins/input-helper.mixin.mjs +0 -49
- package/esm2022/lib/components/ca-input/models/base.model.mjs +0 -2
- package/esm2022/lib/components/ca-period-content/utils/constants/index.mjs +0 -3
- package/esm2022/lib/components/ca-period-content/utils/constants/payroll-period-dropdown.constant.mjs +0 -15
- package/esm2022/lib/enums/dropdown-menu-string.enum.mjs +0 -20
- package/lib/components/ca-dropdown-menu/models/index.d.ts +0 -2
- package/lib/components/ca-period-content/utils/constants/index.d.ts +0 -2
- package/lib/components/ca-period-content/utils/constants/payroll-period-dropdown.constant.d.ts +0 -10
- /package/lib/components/{ca-input → ca-input-test}/directives/command-visible.directive.d.ts +0 -0
- /package/lib/components/{ca-input → ca-input-test}/models/base.model.d.ts +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output, ViewChildren, } from '@angular/core';
|
|
3
|
+
// pipes
|
|
4
|
+
import { HighlightSearchPipe } from '../../../../pipes/highlight-search.pipe';
|
|
5
|
+
import { CaSvgPipe } from '../../../../pipes/ca-svg.pipe';
|
|
6
|
+
// component
|
|
7
|
+
import { CaProfileImageComponent } from '../../../ca-profile-image/ca-profile-image.component';
|
|
8
|
+
// modules
|
|
9
|
+
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
10
|
+
// svg routes
|
|
11
|
+
import { InputDropdownSvgRoutes } from '../../utils/svg-routes/input-dropdown-svg-routes';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/common";
|
|
14
|
+
import * as i2 from "angular-svg-icon";
|
|
15
|
+
export class CaInputDropdownSvgtextDispatchTemplateComponent {
|
|
16
|
+
set inputHoveredItem(val) {
|
|
17
|
+
this._inputHoveredItem = val;
|
|
18
|
+
if (val > -1) {
|
|
19
|
+
this.dropdownOption?.get(val)?.nativeElement.scrollIntoView({
|
|
20
|
+
behavior: 'smooth',
|
|
21
|
+
block: 'nearest',
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
get inputHoveredItem() {
|
|
26
|
+
return this._inputHoveredItem;
|
|
27
|
+
}
|
|
28
|
+
constructor() {
|
|
29
|
+
this._inputHoveredItem = -1;
|
|
30
|
+
this.onActiveItem = new EventEmitter();
|
|
31
|
+
this.inputDropdownSvgRoutes = InputDropdownSvgRoutes;
|
|
32
|
+
}
|
|
33
|
+
onActiveItemEmit(option) {
|
|
34
|
+
this.onActiveItem.emit(option);
|
|
35
|
+
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextDispatchTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CaInputDropdownSvgtextDispatchTemplateComponent, isStandalone: true, selector: "app-ca-input-dropdown-svgtext-dispatch-template", inputs: { options: "options", activeItem: "activeItem", searchText: "searchText", inputConfig: "inputConfig", label: "label", inputHoveredItem: "inputHoveredItem" }, outputs: { onActiveItem: "onActiveItem" }, viewQueries: [{ propertyName: "dropdownOption", predicate: ["dropdownOption"], descendants: true }], ngImport: i0, template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n disabled: option?.disabled,\n 'no-result': option?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n active: option.id === activeItem?.id,\n 'all-assigned': option?.[label]?.toLowerCase() === 'all assigned',\n trailerContainer: option?.[label] === 'Container',\n lowboyrgn: option?.[label] === 'Low Boy / RGN',\n }\"\n class=\"dropdown-option svg-text-template {{ option?.subFolder }} {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }} {{ inputConfig.customClass }}\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n @if (!option?.isDriver) {\n <svg-icon\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n 'no-svg': !option?.logoName,\n 'hazardous-svg': option?.logoName?.includes('hazardous'),\n 'truck-trailer-logo':\n inputConfig.customClass === 'truck-trailer-dropdown',\n blue: option.class === 'blue',\n yellow: option.class === 'yellow',\n green: option.class === 'green',\n red: option.class === 'red',\n }\"\n [src]=\"\n option?.logoName | caSvg: option?.folder : option?.subFolder\n \"\n class=\"icon svgtext-template-logo {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }}\"\n ></svg-icon>\n }\n\n @if (option.logoName && option?.isDriver) {\n <img\n [alt]=\"option?.[label]\"\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n }\"\n [src]=\"option.logoName\"\n [ngStyle]=\"{ 'margin-right': '6px' }\"\n class=\"svg-template-logo\"\n />\n }\n\n @if (!option.logoName && option?.isDriver) {\n <div class=\"no-profile-image\" [ngStyle]=\"{ 'margin-right': '6px' }\">\n <app-ca-profile-image\n [indx]=\"0\"\n [name]=\"option?.[label]!\"\n [size]=\"'small'\"\n >\n </app-ca-profile-image>\n </div>\n }\n\n <!-- Text -->\n\n <div\n [innerHtml]=\"\n option?.number\n ? (option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n : (option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n \"\n [ngClass]=\"{\n 'truck-text': option?.subFolder === 'trucks',\n 'flex-1': option?.additionalText,\n }\"\n class=\"svgtext-template-text\"\n ></div>\n\n <!-- Additional Text -->\n\n @if (option?.additionalText) {\n <div\n [innerHtml]=\"\n option.additionalText\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"svgtext-template-text additional-text\"\n ></div>\n }\n\n <!-- Plus Icon -->\n\n @if (option?.[label] === 'ADD NEW') {\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: AngularSvgIconModule }, { kind: "component", type: i2.SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "applyCss", "svgClass", "class", "viewBox", "svgAriaLabel", "svgStyle"] }, { kind: "component", type:
|
|
38
|
+
// Component
|
|
39
|
+
CaProfileImageComponent, selector: "app-ca-profile-image", inputs: ["indx", "avatarImg", "avatarColor", "textShortName", "name", "isRound", "size", "height", "fontSize", "isHoverEffect"] }, { kind: "pipe", type:
|
|
40
|
+
// Pipe
|
|
41
|
+
HighlightSearchPipe, name: "caHighlight" }, { kind: "pipe", type: CaSvgPipe, name: "caSvg" }] }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextDispatchTemplateComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'app-ca-input-dropdown-svgtext-dispatch-template', standalone: true, imports: [
|
|
46
|
+
CommonModule,
|
|
47
|
+
AngularSvgIconModule,
|
|
48
|
+
// Component
|
|
49
|
+
CaProfileImageComponent,
|
|
50
|
+
// Pipe
|
|
51
|
+
HighlightSearchPipe,
|
|
52
|
+
CaSvgPipe,
|
|
53
|
+
], template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n disabled: option?.disabled,\n 'no-result': option?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n active: option.id === activeItem?.id,\n 'all-assigned': option?.[label]?.toLowerCase() === 'all assigned',\n trailerContainer: option?.[label] === 'Container',\n lowboyrgn: option?.[label] === 'Low Boy / RGN',\n }\"\n class=\"dropdown-option svg-text-template {{ option?.subFolder }} {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }} {{ inputConfig.customClass }}\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n @if (!option?.isDriver) {\n <svg-icon\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n 'no-svg': !option?.logoName,\n 'hazardous-svg': option?.logoName?.includes('hazardous'),\n 'truck-trailer-logo':\n inputConfig.customClass === 'truck-trailer-dropdown',\n blue: option.class === 'blue',\n yellow: option.class === 'yellow',\n green: option.class === 'green',\n red: option.class === 'red',\n }\"\n [src]=\"\n option?.logoName | caSvg: option?.folder : option?.subFolder\n \"\n class=\"icon svgtext-template-logo {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }}\"\n ></svg-icon>\n }\n\n @if (option.logoName && option?.isDriver) {\n <img\n [alt]=\"option?.[label]\"\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n }\"\n [src]=\"option.logoName\"\n [ngStyle]=\"{ 'margin-right': '6px' }\"\n class=\"svg-template-logo\"\n />\n }\n\n @if (!option.logoName && option?.isDriver) {\n <div class=\"no-profile-image\" [ngStyle]=\"{ 'margin-right': '6px' }\">\n <app-ca-profile-image\n [indx]=\"0\"\n [name]=\"option?.[label]!\"\n [size]=\"'small'\"\n >\n </app-ca-profile-image>\n </div>\n }\n\n <!-- Text -->\n\n <div\n [innerHtml]=\"\n option?.number\n ? (option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n : (option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n \"\n [ngClass]=\"{\n 'truck-text': option?.subFolder === 'trucks',\n 'flex-1': option?.additionalText,\n }\"\n class=\"svgtext-template-text\"\n ></div>\n\n <!-- Additional Text -->\n\n @if (option?.additionalText) {\n <div\n [innerHtml]=\"\n option.additionalText\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"svgtext-template-text additional-text\"\n ></div>\n }\n\n <!-- Plus Icon -->\n\n @if (option?.[label] === 'ADD NEW') {\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n }\n </div>\n}\n" }]
|
|
54
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], activeItem: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], searchText: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], inputConfig: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], label: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], dropdownOption: [{
|
|
65
|
+
type: ViewChildren,
|
|
66
|
+
args: ['dropdownOption']
|
|
67
|
+
}], inputHoveredItem: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], onActiveItem: [{
|
|
70
|
+
type: Output
|
|
71
|
+
}] } });
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2EtaW5wdXQtZHJvcGRvd24tc3ZndGV4dC1kaXNwYXRjaC10ZW1wbGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290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GFzcz1cImRyb3Bkb3duLW9wdGlvbiBzdmctdGV4dC10ZW1wbGF0ZSB7eyBvcHRpb24/LnN1YkZvbGRlciB9fSB7e1xuICAgICAgICAgICAgb3B0aW9uPy5bbGFiZWxdPy50cmltKCk/LnJlcGxhY2UoJyAnLCAnJyk/LnRvTG93ZXJDYXNlKClcbiAgICAgICAgfX0ge3sgaW5wdXRDb25maWcuY3VzdG9tQ2xhc3MgfX1cIlxuICAgICAgICBbY2xhc3MuZHJvcGRvd24tb3B0aW9uLWhvdmVyZWRdPVwiaSA9PSBpbnB1dEhvdmVyZWRJdGVtXCJcbiAgICA+XG4gICAgICAgIEBpZiAoIW9wdGlvbj8uaXNEcml2ZXIpIHtcbiAgICAgICAgICAgIDxzdmctaWNvblxuICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cIntcbiAgICAgICAgICAgICAgICAgICAgYWN0aXZlOiBvcHRpb24uaWQgPT09IGFjdGl2ZUl0ZW0/LmlkLFxuICAgICAgICAgICAgICAgICAgICAnbm8tc3ZnJzogIW9wdGlvbj8ubG9nb05hbWUsXG4gICAgICAgICAgICAgICAgICAgICdoYXphcmRvdXMtc3ZnJzogb3B0aW9uPy5sb2dvTmFtZT8uaW5jbHVkZXMoJ2hhemFyZG91cycpLFxuICAgICAgICAgICAgICAgICAgICAndHJ1Y2stdHJhaWxlci1sb2dvJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlucHV0Q29uZmlnLmN1c3RvbUNsYXNzID09PSAndHJ1Y2stdHJhaWxlci1kcm9wZG93bicsXG4gICAgICAgICAgICAgICAgICAgIGJsdWU6IG9wdGlvbi5jbGFzcyA9PT0gJ2JsdWUnLFxuICAgICAgICAgICAgICAgICAgICB5ZWxsb3c6IG9wdGlvbi5jbGFzcyA9PT0gJ3llbGxvdycsXG4gICAgICAgICAgICAgICAgICAgIGdyZWVuOiBvcHRpb24uY2xhc3MgPT09ICdncmVlbicsXG4gICAgICAgICAgICAgICAgICAgIHJlZDogb3B0aW9uLmNsYXNzID09PSAncmVkJyxcbiAgICAgICAgICAgICAgICB9XCJcbiAgICAgICAgICAgICAgICBbc3JjXT1cIlxuICAgICAgICAgICAgICAgICAgICBvcHRpb24/LmxvZ29OYW1lIHwgY2FTdmc6IG9wdGlvbj8uZm9sZGVyIDogb3B0aW9uPy5zdWJGb2xkZXJcbiAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwiaWNvbiBzdmd0ZXh0LXRlbXBsYXRlLWxvZ28ge3tcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9uPy5bbGFiZWxdPy50cmltKCk/LnJlcGxhY2UoJyAnLCAnJyk/LnRvTG93ZXJDYXNlKClcbiAgICAgICAgICAgICAgICB9fVwiXG4gICAgICAgICAgICA+PC9zdmctaWNvbj5cbiAgICAgICAgfVxuXG4gICAgICAgIEBpZiAob3B0aW9uLmxvZ29OYW1lICYmIG9wdGlvbj8uaXNEcml2ZXIpIHtcbiAgICAgICAgICAgIDxpbWdcbiAgICAgICAgICAgICAgICBbYWx0XT1cIm9wdGlvbj8uW2xhYmVsXVwiXG4gICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwie1xuICAgICAgICAgICAgICAgICAgICBhY3RpdmU6IG9wdGlvbi5pZCA9PT0gYWN0aXZlSXRlbT8uaWQsXG4gICAgICAgICAgICAgICAgfVwiXG4gICAgICAgICAgICAgICAgW3NyY109XCJvcHRpb24ubG9nb05hbWVcIlxuICAgICAgICAgICAgICAgIFtuZ1N0eWxlXT1cInsgJ21hcmdpbi1yaWdodCc6ICc2cHgnIH1cIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwic3ZnLXRlbXBsYXRlLWxvZ29cIlxuICAgICAgICAgICAgLz5cbiAgICAgICAgfVxuXG4gICAgICAgIEBpZiAoIW9wdGlvbi5sb2dvTmFtZSAmJiBvcHRpb24/LmlzRHJpdmVyKSB7XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwibm8tcHJvZmlsZS1pbWFnZVwiIFtuZ1N0eWxlXT1cInsgJ21hcmdpbi1yaWdodCc6ICc2cHgnIH1cIj5cbiAgICAgICAgICAgICAgICA8YXBwLWNhLXByb2ZpbGUtaW1hZ2VcbiAgICAgICAgICAgICAgICAgICAgW2luZHhdPVwiMFwiXG4gICAgICAgICAgICAgICAgICAgIFtuYW1lXT1cIm9wdGlvbj8uW2xhYmVsXSFcIlxuICAgICAgICAgICAgICAgICAgICBbc2l6ZV09XCInc21hbGwnXCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPC9hcHAtY2EtcHJvZmlsZS1pbWFnZT5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICB9XG5cbiAgICAgICAgPCEtLSBUZXh0IC0tPlxuXG4gICAgICAgIDxkaXZcbiAgICAgICAgICAgIFtpbm5lckh0bWxdPVwiXG4gICAgICAgICAgICAgICAgb3B0aW9uPy5udW1iZXJcbiAgICAgICAgICAgICAgICAgICAgPyAob3B0aW9uLm51bWJlclxuICAgICAgICAgICAgICAgICAgICAgIHwgY2FIaWdobGlnaHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiA0NTYzMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IHNlYXJjaFRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAgICAgOiAob3B0aW9uPy5bbGFiZWxdXG4gICAgICAgICAgICAgICAgICAgICAgfCBjYUhpZ2hsaWdodFxuICAgICAgICAgICAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXg6IDQ1NjMyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogc2VhcmNoVGV4dCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgXCJcbiAgICAgICAgICAgIFtuZ0NsYXNzXT1cIntcbiAgICAgICAgICAgICAgICAndHJ1Y2stdGV4dCc6IG9wdGlvbj8uc3ViRm9sZGVyID09PSAndHJ1Y2tzJyxcbiAgICAgICAgICAgICAgICAnZmxleC0xJzogb3B0aW9uPy5hZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgY2xhc3M9XCJzdmd0ZXh0LXRlbXBsYXRlLXRleHRcIlxuICAgICAgICA+PC9kaXY+XG5cbiAgICAgICAgPCEtLSBBZGRpdGlvbmFsIFRleHQgLS0+XG5cbiAgICAgICAgQGlmIChvcHRpb24/LmFkZGl0aW9uYWxUZXh0KSB7XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgW2lubmVySHRtbF09XCJcbiAgICAgICAgICAgICAgICAgICAgb3B0aW9uLmFkZGl0aW9uYWxUZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICB8IGNhSGlnaGxpZ2h0XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleDogNDU2MzIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IHNlYXJjaFRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwic3ZndGV4dC10ZW1wbGF0ZS10ZXh0IGFkZGl0aW9uYWwtdGV4dFwiXG4gICAgICAgICAgICA+PC9kaXY+XG4gICAgICAgIH1cblxuICAgICAgICA8IS0tIFBsdXMgSWNvbiAtLT5cblxuICAgICAgICBAaWYgKG9wdGlvbj8uW2xhYmVsXSA9PT0gJ0FERCBORVcnKSB7XG4gICAgICAgICAgICA8c3ZnLWljb25cbiAgICAgICAgICAgICAgICBjbGFzcz1cInBsdXMtaWNvblwiXG4gICAgICAgICAgICAgICAgW3NyY109XCJpbnB1dERyb3Bkb3duU3ZnUm91dGVzLnBsdXNTdmdcIlxuICAgICAgICAgICAgICAgIFtzdmdTdHlsZV09XCJ7XG4gICAgICAgICAgICAgICAgICAgICd3aWR0aC5weCc6ICcxNCcsXG4gICAgICAgICAgICAgICAgICAgICdoZWlnaHQucHgnOiAnMTQnLFxuICAgICAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgPjwvc3ZnLWljb24+XG4gICAgICAgIH1cbiAgICA8L2Rpdj5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
|
+
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
4
|
+
// pipes
|
|
5
|
+
import { InputDropdownSvgtextTemplateContainerPipe, InputDropdownSvgtextTemplateIconPipe, } from '../../../pipes';
|
|
6
|
+
import { HighlightSearchPipe } from '../../../../../pipes/highlight-search.pipe';
|
|
7
|
+
import { CaSvgPipe } from '../../../../../pipes/ca-svg.pipe';
|
|
8
|
+
import { LoadStatusColorPipe } from '../../../../../pipes/load-status-color.pipe';
|
|
9
|
+
// components
|
|
10
|
+
import { CaLoadStatusStringComponent } from '../../../../ca-load-status-string/ca-load-status-string.component';
|
|
11
|
+
import { CaProfileImageComponent } from '../../../../ca-profile-image/ca-profile-image.component';
|
|
12
|
+
// routes
|
|
13
|
+
import { InputDropdownSvgRoutes } from '../../../utils/svg-routes';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
import * as i1 from "@angular/common";
|
|
16
|
+
import * as i2 from "angular-svg-icon";
|
|
17
|
+
export class CaInputDropdownSvgtextTemplateItemComponent {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.inputDropdownSvgRoutes = InputDropdownSvgRoutes;
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextTemplateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CaInputDropdownSvgtextTemplateItemComponent, isStandalone: true, selector: "ca-input-dropdown-svgtext-template-item", inputs: { option: "option", inputConfig: "inputConfig", label: "label", activeItem: "activeItem", searchText: "searchText" }, ngImport: i0, template: "<div\n class=\"svg-text-template svg-text-template {{ option?.subFolder }} {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }} {{ inputConfig.customClass }}\"\n>\n @if (!option?.isDriver) {\n <svg-icon\n [ngClass]=\"\n option\n | inputDropdownSvgtextTemplateIcon: activeItem : inputConfig\n \"\n [src]=\"option?.logoName | caSvg: option?.folder : option?.subFolder\"\n class=\"svgtext-template-logo {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }}\"\n ></svg-icon>\n }\n\n @if (option.logoName && option?.isDriver) {\n <img\n [alt]=\"option?.[label]\"\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n }\"\n [src]=\"option.logoName\"\n [ngStyle]=\"{ 'margin-right': '6px' }\"\n class=\"svg-template-logo\"\n />\n }\n\n @if (!option.logoName && option?.isDriver) {\n <div class=\"no-profile-image\" [ngStyle]=\"{ 'margin-right': '6px' }\">\n <app-ca-profile-image\n [indx]=\"0\"\n [name]=\"option?.[label]!\"\n [size]=\"'small'\"\n >\n </app-ca-profile-image>\n </div>\n }\n\n <!-- Text -->\n @if (inputConfig.statusStyle) {\n <ca-load-status-string [status]=\"option\"></ca-load-status-string>\n } @else {\n <div\n [innerHtml]=\"\n option?.number\n ? (option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n : (option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n \"\n [ngClass]=\"{\n 'truck-text': option?.subFolder === 'trucks',\n 'flex-1': option?.additionalText,\n }\"\n [ngStyle]=\"true ? (option?.[label]! | loadStatusColor) : {}\"\n class=\"svgtext-template-text\"\n ></div>\n }\n\n <!-- Additional Text -->\n @if (option?.additionalText) {\n <div\n [innerHtml]=\"\n option.additionalText\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"svgtext-template-text additional-text\"\n ></div>\n }\n\n <!-- Plus Icon -->\n\n @if (option?.[label] === 'ADD NEW') {\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: AngularSvgIconModule }, { kind: "component", type: i2.SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "applyCss", "svgClass", "class", "viewBox", "svgAriaLabel", "svgStyle"] }, { kind: "component", type:
|
|
23
|
+
// Components
|
|
24
|
+
// Component
|
|
25
|
+
CaProfileImageComponent, selector: "app-ca-profile-image", inputs: ["indx", "avatarImg", "avatarColor", "textShortName", "name", "isRound", "size", "height", "fontSize", "isHoverEffect"] }, { kind: "component", type: CaLoadStatusStringComponent, selector: "ca-load-status-string", inputs: ["status", "justifyStart", "isDetailsLayout", "isDispatchHistoryModalLayout", "isDropdownColor", "statusOrder", "isDispatch", "isDarkColor"] }, { kind: "pipe", type:
|
|
26
|
+
// Pipe
|
|
27
|
+
HighlightSearchPipe, name: "caHighlight" }, { kind: "pipe", type: CaSvgPipe, name: "caSvg" }, { kind: "pipe", type: LoadStatusColorPipe, name: "loadStatusColor" }, { kind: "pipe", type: InputDropdownSvgtextTemplateIconPipe, name: "inputDropdownSvgtextTemplateIcon" }] }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextTemplateItemComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'ca-input-dropdown-svgtext-template-item', standalone: true, imports: [
|
|
32
|
+
CommonModule,
|
|
33
|
+
AngularSvgIconModule,
|
|
34
|
+
// Components
|
|
35
|
+
// Component
|
|
36
|
+
CaProfileImageComponent,
|
|
37
|
+
CaLoadStatusStringComponent,
|
|
38
|
+
// Pipe
|
|
39
|
+
HighlightSearchPipe,
|
|
40
|
+
CaSvgPipe,
|
|
41
|
+
LoadStatusColorPipe,
|
|
42
|
+
InputDropdownSvgtextTemplateIconPipe,
|
|
43
|
+
InputDropdownSvgtextTemplateContainerPipe,
|
|
44
|
+
], template: "<div\n class=\"svg-text-template svg-text-template {{ option?.subFolder }} {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }} {{ inputConfig.customClass }}\"\n>\n @if (!option?.isDriver) {\n <svg-icon\n [ngClass]=\"\n option\n | inputDropdownSvgtextTemplateIcon: activeItem : inputConfig\n \"\n [src]=\"option?.logoName | caSvg: option?.folder : option?.subFolder\"\n class=\"svgtext-template-logo {{\n option?.[label]?.trim()?.replace(' ', '')?.toLowerCase()\n }}\"\n ></svg-icon>\n }\n\n @if (option.logoName && option?.isDriver) {\n <img\n [alt]=\"option?.[label]\"\n [ngClass]=\"{\n active: option.id === activeItem?.id,\n }\"\n [src]=\"option.logoName\"\n [ngStyle]=\"{ 'margin-right': '6px' }\"\n class=\"svg-template-logo\"\n />\n }\n\n @if (!option.logoName && option?.isDriver) {\n <div class=\"no-profile-image\" [ngStyle]=\"{ 'margin-right': '6px' }\">\n <app-ca-profile-image\n [indx]=\"0\"\n [name]=\"option?.[label]!\"\n [size]=\"'small'\"\n >\n </app-ca-profile-image>\n </div>\n }\n\n <!-- Text -->\n @if (inputConfig.statusStyle) {\n <ca-load-status-string [status]=\"option\"></ca-load-status-string>\n } @else {\n <div\n [innerHtml]=\"\n option?.number\n ? (option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n : (option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ])\n \"\n [ngClass]=\"{\n 'truck-text': option?.subFolder === 'trucks',\n 'flex-1': option?.additionalText,\n }\"\n [ngStyle]=\"true ? (option?.[label]! | loadStatusColor) : {}\"\n class=\"svgtext-template-text\"\n ></div>\n }\n\n <!-- Additional Text -->\n @if (option?.additionalText) {\n <div\n [innerHtml]=\"\n option.additionalText\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"svgtext-template-text additional-text\"\n ></div>\n }\n\n <!-- Plus Icon -->\n\n @if (option?.[label] === 'ADD NEW') {\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n }\n</div>\n" }]
|
|
45
|
+
}], ctorParameters: () => [], propDecorators: { option: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], inputConfig: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], label: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], activeItem: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], searchText: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}] } });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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AgIFtpbmR4XT1cIjBcIlxuICAgICAgICAgICAgICAgIFtuYW1lXT1cIm9wdGlvbj8uW2xhYmVsXSFcIlxuICAgICAgICAgICAgICAgIFtzaXplXT1cIidzbWFsbCdcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgPC9hcHAtY2EtcHJvZmlsZS1pbWFnZT5cbiAgICAgICAgPC9kaXY+XG4gICAgfVxuXG4gICAgPCEtLSBUZXh0IC0tPlxuICAgIEBpZiAoaW5wdXRDb25maWcuc3RhdHVzU3R5bGUpIHtcbiAgICAgICAgPGNhLWxvYWQtc3RhdHVzLXN0cmluZyBbc3RhdHVzXT1cIm9wdGlvblwiPjwvY2EtbG9hZC1zdGF0dXMtc3RyaW5nPlxuICAgIH0gQGVsc2Uge1xuICAgICAgICA8ZGl2XG4gICAgICAgICAgICBbaW5uZXJIdG1sXT1cIlxuICAgICAgICAgICAgICAgIG9wdGlvbj8ubnVtYmVyXG4gICAgICAgICAgICAgICAgICAgID8gKG9wdGlvbi5udW1iZXJcbiAgICAgICAgICAgICAgICAgICAgICB8IGNhSGlnaGxpZ2h0XG4gICAgICAgICAgICAgICAgICAgICAgICAgIDogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleDogNDU2MzIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBzZWFyY2hUZXh0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgIDogKG9wdGlvbj8uW2xhYmVsXVxuICAgICAgICAgICAgICAgICAgICAgIHwgY2FIaWdobGlnaHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiA0NTYzMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IHNlYXJjaFRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgIFwiXG4gICAgICAgICAgICBbbmdDbGFzc109XCJ7XG4gICAgICAgICAgICAgICAgJ3RydWNrLXRleHQnOiBvcHRpb24/LnN1YkZvbGRlciA9PT0gJ3RydWNrcycsXG4gICAgICAgICAgICAgICAgJ2ZsZXgtMSc6IG9wdGlvbj8uYWRkaXRpb25hbFRleHQsXG4gICAgICAgICAgICB9XCJcbiAgICAgICAgICAgIFtuZ1N0eWxlXT1cInRydWUgPyAob3B0aW9uPy5bbGFiZWxdISB8IGxvYWRTdGF0dXNDb2xvcikgOiB7fVwiXG4gICAgICAgICAgICBjbGFzcz1cInN2Z3RleHQtdGVtcGxhdGUtdGV4dFwiXG4gICAgICAgID48L2Rpdj5cbiAgICB9XG5cbiAgICA8IS0tIEFkZGl0aW9uYWwgVGV4dCAtLT5cbiAgICBAaWYgKG9wdGlvbj8uYWRkaXRpb25hbFRleHQpIHtcbiAgICAgICAgPGRpdlxuICAgICAgICAgICAgW2lubmVySHRtbF09XCJcbiAgICAgICAgICAgICAgICBvcHRpb24uYWRkaXRpb25hbFRleHRcbiAgICAgICAgICAgICAgICAgICAgfCBjYUhpZ2hsaWdodFxuICAgICAgICAgICAgICAgICAgICAgICAgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5kZXg6IDQ1NjMyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IHNlYXJjaFRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICBcIlxuICAgICAgICAgICAgY2xhc3M9XCJzdmd0ZXh0LXRlbXBsYXRlLXRleHQgYWRkaXRpb25hbC10ZXh0XCJcbiAgICAgICAgPjwvZGl2PlxuICAgIH1cblxuICAgIDwhLS0gUGx1cyBJY29uIC0tPlxuXG4gICAgQGlmIChvcHRpb24/LltsYWJlbF0gPT09ICdBREQgTkVXJykge1xuICAgICAgICA8c3ZnLWljb25cbiAgICAgICAgICAgIGNsYXNzPVwicGx1cy1pY29uXCJcbiAgICAgICAgICAgIFtzcmNdPVwiaW5wdXREcm9wZG93blN2Z1JvdXRlcy5wbHVzU3ZnXCJcbiAgICAgICAgICAgIFtzdmdTdHlsZV09XCJ7XG4gICAgICAgICAgICAgICAgJ3dpZHRoLnB4JzogJzE0JyxcbiAgICAgICAgICAgICAgICAnaGVpZ2h0LnB4JzogJzE0JyxcbiAgICAgICAgICAgIH1cIlxuICAgICAgICA+PC9zdmctaWNvbj5cbiAgICB9XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output, ViewChildren, } from '@angular/core';
|
|
3
|
+
// pipes
|
|
4
|
+
import { HighlightSearchPipe } from '../../../../pipes/highlight-search.pipe';
|
|
5
|
+
import { CaSvgPipe } from '../../../../pipes/ca-svg.pipe';
|
|
6
|
+
import { LoadStatusColorPipe } from '../../../../pipes/load-status-color.pipe';
|
|
7
|
+
import { InputDropdownSvgtextTemplateContainerPipe, InputDropdownSvgtextTemplateIconPipe, } from '../../pipes';
|
|
8
|
+
// component
|
|
9
|
+
import { CaProfileImageComponent } from '../../../ca-profile-image/ca-profile-image.component';
|
|
10
|
+
import { CaLoadStatusStringComponent } from '../../../ca-load-status-string/ca-load-status-string.component';
|
|
11
|
+
// modules
|
|
12
|
+
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
13
|
+
// svg routes
|
|
14
|
+
import { InputDropdownSvgRoutes } from '../../utils/svg-routes/input-dropdown-svg-routes';
|
|
15
|
+
// components
|
|
16
|
+
import { CaInputDropdownSvgtextTemplateItemComponent } from './ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "@angular/common";
|
|
19
|
+
export class CaInputDropdownSvgtextTemplateComponent {
|
|
20
|
+
set inputHoveredItem(val) {
|
|
21
|
+
this._inputHoveredItem = val;
|
|
22
|
+
if (val > -1) {
|
|
23
|
+
this.dropdownOption?.get(val)?.nativeElement.scrollIntoView({
|
|
24
|
+
behavior: 'smooth',
|
|
25
|
+
block: 'nearest',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
get inputHoveredItem() {
|
|
30
|
+
return this._inputHoveredItem;
|
|
31
|
+
}
|
|
32
|
+
constructor() {
|
|
33
|
+
this._inputHoveredItem = -1;
|
|
34
|
+
this.onActiveItem = new EventEmitter();
|
|
35
|
+
this.inputDropdownSvgRoutes = InputDropdownSvgRoutes;
|
|
36
|
+
}
|
|
37
|
+
onActiveItemEmit(option) {
|
|
38
|
+
this.onActiveItem.emit(option);
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CaInputDropdownSvgtextTemplateComponent, isStandalone: true, selector: "app-ca-input-dropdown-svgtext-template", inputs: { options: "options", activeItem: "activeItem", searchText: "searchText", inputConfig: "inputConfig", label: "label", inputHoveredItem: "inputHoveredItem" }, outputs: { onActiveItem: "onActiveItem" }, viewQueries: [{ propertyName: "dropdownOption", predicate: ["dropdownOption"], descendants: true }], ngImport: i0, template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"\n option | inputDropdownSvgtextTemplateContainer: options : activeItem\n \"\n class=\"dropdown-option svg-text-template\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <ca-input-dropdown-svgtext-template-item\n [activeItem]=\"activeItem\"\n [option]=\"option\"\n [inputConfig]=\"inputConfig\"\n [searchText]=\"searchText\"\n [label]=\"label\"\n ></ca-input-dropdown-svgtext-template-item>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AngularSvgIconModule }, { kind: "component", type: CaInputDropdownSvgtextTemplateItemComponent, selector: "ca-input-dropdown-svgtext-template-item", inputs: ["option", "inputConfig", "label", "activeItem", "searchText"] }, { kind: "pipe", type: InputDropdownSvgtextTemplateContainerPipe, name: "inputDropdownSvgtextTemplateContainer" }] }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownSvgtextTemplateComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'app-ca-input-dropdown-svgtext-template', standalone: true, imports: [
|
|
46
|
+
CommonModule,
|
|
47
|
+
AngularSvgIconModule,
|
|
48
|
+
// Component
|
|
49
|
+
CaProfileImageComponent,
|
|
50
|
+
CaLoadStatusStringComponent,
|
|
51
|
+
CaInputDropdownSvgtextTemplateItemComponent,
|
|
52
|
+
// Pipe
|
|
53
|
+
HighlightSearchPipe,
|
|
54
|
+
CaSvgPipe,
|
|
55
|
+
LoadStatusColorPipe,
|
|
56
|
+
InputDropdownSvgtextTemplateIconPipe,
|
|
57
|
+
InputDropdownSvgtextTemplateContainerPipe,
|
|
58
|
+
], template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"\n option | inputDropdownSvgtextTemplateContainer: options : activeItem\n \"\n class=\"dropdown-option svg-text-template\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <ca-input-dropdown-svgtext-template-item\n [activeItem]=\"activeItem\"\n [option]=\"option\"\n [inputConfig]=\"inputConfig\"\n [searchText]=\"searchText\"\n [label]=\"label\"\n ></ca-input-dropdown-svgtext-template-item>\n </div>\n}\n" }]
|
|
59
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], activeItem: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], searchText: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], inputConfig: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], label: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], dropdownOption: [{
|
|
70
|
+
type: ViewChildren,
|
|
71
|
+
args: ['dropdownOption']
|
|
72
|
+
}], inputHoveredItem: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], onActiveItem: [{
|
|
75
|
+
type: Output
|
|
76
|
+
}] } });
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2EtaW5wdXQtZHJvcGRvd24tc3ZndGV4dC10ZW1wbGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXN0L2NvbXBvbmVudHMvY2EtaW5wdXQtZHJvcGRvd24tc3ZndGV4dC10ZW1wbGF0ZS9jYS1pbnB1dC1kcm9wZG93bi1zdmd0ZXh0LXRlbXBsYXRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25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ICAgIH1cbn1cbiIsIkBmb3IgKG9wdGlvbiBvZiBvcHRpb25zOyB0cmFjayBvcHRpb24uaWQ7IGxldCBpID0gJGluZGV4KSB7XG4gICAgPGRpdlxuICAgICAgICAjZHJvcGRvd25PcHRpb25cbiAgICAgICAgKGNsaWNrKT1cIm9uQWN0aXZlSXRlbUVtaXQob3B0aW9uKVwiXG4gICAgICAgIFtuZ0NsYXNzXT1cIlxuICAgICAgICAgICAgb3B0aW9uIHwgaW5wdXREcm9wZG93blN2Z3RleHRUZW1wbGF0ZUNvbnRhaW5lcjogb3B0aW9ucyA6IGFjdGl2ZUl0ZW1cbiAgICAgICAgXCJcbiAgICAgICAgY2xhc3M9XCJkcm9wZG93bi1vcHRpb24gc3ZnLXRleHQtdGVtcGxhdGVcIlxuICAgICAgICBbY2xhc3MuZHJvcGRvd24tb3B0aW9uLWhvdmVyZWRdPVwiaSA9PSBpbnB1dEhvdmVyZWRJdGVtXCJcbiAgICA+XG4gICAgICAgIDxjYS1pbnB1dC1kcm9wZG93bi1zdmd0ZXh0LXRlbXBsYXRlLWl0ZW1cbiAgICAgICAgICAgIFthY3RpdmVJdGVtXT1cImFjdGl2ZUl0ZW1cIlxuICAgICAgICAgICAgW29wdGlvbl09XCJvcHRpb25cIlxuICAgICAgICAgICAgW2lucHV0Q29uZmlnXT1cImlucHV0Q29uZmlnXCJcbiAgICAgICAgICAgIFtzZWFyY2hUZXh0XT1cInNlYXJjaFRleHRcIlxuICAgICAgICAgICAgW2xhYmVsXT1cImxhYmVsXCJcbiAgICAgICAgPjwvY2EtaW5wdXQtZHJvcGRvd24tc3ZndGV4dC10ZW1wbGF0ZS1pdGVtPlxuICAgIDwvZGl2PlxufVxuIl19
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output, ViewChildren, } from '@angular/core';
|
|
3
|
+
// pipes
|
|
4
|
+
import { HighlightSearchPipe } from '../../../../pipes/highlight-search.pipe';
|
|
5
|
+
// modules
|
|
6
|
+
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
export class CaInputDropdownTextCounterComponent {
|
|
10
|
+
set inputHoveredItem(val) {
|
|
11
|
+
this._inputHoveredItem = val;
|
|
12
|
+
if (val > -1) {
|
|
13
|
+
this.dropdownOption?.get(val)?.nativeElement.scrollIntoView({
|
|
14
|
+
behavior: 'smooth',
|
|
15
|
+
block: 'nearest',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
get inputHoveredItem() {
|
|
20
|
+
return this._inputHoveredItem;
|
|
21
|
+
}
|
|
22
|
+
constructor() {
|
|
23
|
+
this._inputHoveredItem = -1;
|
|
24
|
+
this.onActiveItem = new EventEmitter();
|
|
25
|
+
}
|
|
26
|
+
onActiveItemEmit(option) {
|
|
27
|
+
this.onActiveItem.emit(option);
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownTextCounterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CaInputDropdownTextCounterComponent, isStandalone: true, selector: "app-ca-input-dropdown-text-counter", inputs: { options: "options", activeItem: "activeItem", searchText: "searchText", label: "label", inputHoveredItem: "inputHoveredItem" }, outputs: { onActiveItem: "onActiveItem" }, viewQueries: [{ propertyName: "dropdownOption", predicate: ["dropdownOption"], descendants: true }], ngImport: i0, template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n disabled: option?.disabled,\n 'no-result':\n options.length === 1 && options[0]?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n active:\n option.id ===\n (activeItem?.duplicateId\n ? activeItem?.duplicateId\n : activeItem?.id),\n }\"\n class=\"dropdown-option dropdown-option-text-counter\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <span\n [innerHtml]=\"\n option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n >\n </span>\n @if (\n option?.[label] !== 'ADD NEW' && option?.[label] !== 'No Results'\n ) {\n <span [innerHtml]=\"option.count\" class=\"option-counter\"> </span>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AngularSvgIconModule }, { kind: "pipe", type:
|
|
31
|
+
// Pipe
|
|
32
|
+
HighlightSearchPipe, name: "caHighlight" }] }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownTextCounterComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'app-ca-input-dropdown-text-counter', standalone: true, imports: [
|
|
37
|
+
CommonModule,
|
|
38
|
+
AngularSvgIconModule,
|
|
39
|
+
// Pipe
|
|
40
|
+
HighlightSearchPipe,
|
|
41
|
+
], template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n disabled: option?.disabled,\n 'no-result':\n options.length === 1 && options[0]?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n active:\n option.id ===\n (activeItem?.duplicateId\n ? activeItem?.duplicateId\n : activeItem?.id),\n }\"\n class=\"dropdown-option dropdown-option-text-counter\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <span\n [innerHtml]=\"\n option?.[label]\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n >\n </span>\n @if (\n option?.[label] !== 'ADD NEW' && option?.[label] !== 'No Results'\n ) {\n <span [innerHtml]=\"option.count\" class=\"option-counter\"> </span>\n }\n </div>\n}\n" }]
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], activeItem: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], searchText: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], label: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], dropdownOption: [{
|
|
51
|
+
type: ViewChildren,
|
|
52
|
+
args: ['dropdownOption']
|
|
53
|
+
}], inputHoveredItem: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], onActiveItem: [{
|
|
56
|
+
type: Output
|
|
57
|
+
}] } });
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2EtaW5wdXQtZHJvcGRvd24tdGV4dC1jb3VudGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLWlucHV0LWRyb3Bkb3duLXRlc3QvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXh0LWNvdW50ZXIvY2EtaW5wdXQtZHJvcGRvd24tdGV4dC1jb3VudGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLWlucHV0LWRyb3Bkb3duLXRlc3QvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXh0LWNvdW50ZXIvY2EtaW5wdXQtZHJvcGRvd24tdGV4dC1jb3VudGVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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cycsXG4gICAgICAgICAgICAnYWRkLW5ldyc6IG9wdGlvbj8uW2xhYmVsXSA9PT0gJ0FERCBORVcnLFxuICAgICAgICAgICAgYWN0aXZlOlxuICAgICAgICAgICAgICAgIG9wdGlvbi5pZCA9PT1cbiAgICAgICAgICAgICAgICAoYWN0aXZlSXRlbT8uZHVwbGljYXRlSWRcbiAgICAgICAgICAgICAgICAgICAgPyBhY3RpdmVJdGVtPy5kdXBsaWNhdGVJZFxuICAgICAgICAgICAgICAgICAgICA6IGFjdGl2ZUl0ZW0/LmlkKSxcbiAgICAgICAgfVwiXG4gICAgICAgIGNsYXNzPVwiZHJvcGRvd24tb3B0aW9uIGRyb3Bkb3duLW9wdGlvbi10ZXh0LWNvdW50ZXJcIlxuICAgICAgICBbY2xhc3MuZHJvcGRvd24tb3B0aW9uLWhvdmVyZWRdPVwiaSA9PSBpbnB1dEhvdmVyZWRJdGVtXCJcbiAgICA+XG4gICAgICAgIDxzcGFuXG4gICAgICAgICAgICBbaW5uZXJIdG1sXT1cIlxuICAgICAgICAgICAgICAgIG9wdGlvbj8uW2xhYmVsXVxuICAgICAgICAgICAgICAgICAgICB8IGNhSGlnaGxpZ2h0XG4gICAgICAgICAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleDogNDU2MzIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogc2VhcmNoVGV4dCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIFwiXG4gICAgICAgID5cbiAgICAgICAgPC9zcGFuPlxuICAgICAgICBAaWYgKFxuICAgICAgICAgICAgb3B0aW9uPy5bbGFiZWxdICE9PSAnQUREIE5FVycgJiYgb3B0aW9uPy5bbGFiZWxdICE9PSAnTm8gUmVzdWx0cydcbiAgICAgICAgKSB7XG4gICAgICAgICAgICA8c3BhbiBbaW5uZXJIdG1sXT1cIm9wdGlvbi5jb3VudFwiIGNsYXNzPVwib3B0aW9uLWNvdW50ZXJcIj4gPC9zcGFuPlxuICAgICAgICB9XG4gICAgPC9kaXY+XG59XG4iXX0=
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output, ViewChildren } from '@angular/core';
|
|
3
|
+
// pipes
|
|
4
|
+
import { HighlightSearchPipe } from '../../../../pipes/highlight-search.pipe';
|
|
5
|
+
// modules
|
|
6
|
+
import { AngularSvgIconModule } from 'angular-svg-icon';
|
|
7
|
+
// svg routes
|
|
8
|
+
import { InputDropdownSvgRoutes } from '../../utils/svg-routes/input-dropdown-svg-routes';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/common";
|
|
11
|
+
import * as i2 from "angular-svg-icon";
|
|
12
|
+
export class CaInputDropdownTripleTextTemplateComponent {
|
|
13
|
+
set inputHoveredItem(val) {
|
|
14
|
+
this._inputHoveredItem = val;
|
|
15
|
+
if (val > -1) {
|
|
16
|
+
this.dropdownOption?.get(val)?.nativeElement.scrollIntoView({
|
|
17
|
+
behavior: 'smooth',
|
|
18
|
+
block: 'nearest',
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
get inputHoveredItem() {
|
|
23
|
+
return this._inputHoveredItem;
|
|
24
|
+
}
|
|
25
|
+
constructor() {
|
|
26
|
+
this._inputHoveredItem = -1;
|
|
27
|
+
this.onActiveItem = new EventEmitter();
|
|
28
|
+
this.inputDropdownSvgRoutes = InputDropdownSvgRoutes;
|
|
29
|
+
}
|
|
30
|
+
onActiveItemEmit(option) {
|
|
31
|
+
this.onActiveItem.emit(option);
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownTripleTextTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CaInputDropdownTripleTextTemplateComponent, isStandalone: true, selector: "app-ca-input-dropdown-triple-text-template", inputs: { options: "options", activeItem: "activeItem", searchText: "searchText", label: "label", inputHoveredItem: "inputHoveredItem" }, outputs: { onActiveItem: "onActiveItem" }, viewQueries: [{ propertyName: "dropdownOption", predicate: ["dropdownOption"], descendants: true }], ngImport: i0, template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n 'no-result':\n options.length === 1 && options[0]?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n 'dropdown-triple-column-option-add-new':\n option?.[label] === 'ADD NEW',\n }\"\n class=\"dropdown-option dropdown-triple-column-option\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <div\n [innerHtml]=\"\n option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-option-text\"\n ></div>\n\n <div\n [innerHtml]=\"\n option.brand\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-text\"\n ></div>\n\n <div\n [innerHtml]=\"\n option.account\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-text\"\n ></div>\n\n <!-- Plus Icon -->\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: AngularSvgIconModule }, { kind: "component", type: i2.SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "applyCss", "svgClass", "class", "viewBox", "svgAriaLabel", "svgStyle"] }, { kind: "pipe", type:
|
|
35
|
+
// Pipe
|
|
36
|
+
HighlightSearchPipe, name: "caHighlight" }] }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CaInputDropdownTripleTextTemplateComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'app-ca-input-dropdown-triple-text-template', standalone: true, imports: [
|
|
41
|
+
CommonModule,
|
|
42
|
+
AngularSvgIconModule,
|
|
43
|
+
// Pipe
|
|
44
|
+
HighlightSearchPipe,
|
|
45
|
+
], template: "@for (option of options; track option.id; let i = $index) {\n <div\n #dropdownOption\n (click)=\"onActiveItemEmit(option)\"\n [ngClass]=\"{\n 'no-result':\n options.length === 1 && options[0]?.[label] === 'No Results',\n 'add-new': option?.[label] === 'ADD NEW',\n 'dropdown-triple-column-option-add-new':\n option?.[label] === 'ADD NEW',\n }\"\n class=\"dropdown-option dropdown-triple-column-option\"\n [class.dropdown-option-hovered]=\"i == inputHoveredItem\"\n >\n <div\n [innerHtml]=\"\n option.number\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-option-text\"\n ></div>\n\n <div\n [innerHtml]=\"\n option.brand\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-text\"\n ></div>\n\n <div\n [innerHtml]=\"\n option.account\n | caHighlight\n : [\n {\n index: 45632,\n text: searchText,\n },\n ]\n \"\n class=\"dropdown-triple-column-text\"\n ></div>\n\n <!-- Plus Icon -->\n <svg-icon\n class=\"plus-icon\"\n [src]=\"inputDropdownSvgRoutes.plusSvg\"\n [svgStyle]=\"{\n 'width.px': '14',\n 'height.px': '14',\n }\"\n ></svg-icon>\n </div>\n}\n" }]
|
|
46
|
+
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], activeItem: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], searchText: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], label: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], dropdownOption: [{
|
|
55
|
+
type: ViewChildren,
|
|
56
|
+
args: ['dropdownOption']
|
|
57
|
+
}], inputHoveredItem: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], onActiveItem: [{
|
|
60
|
+
type: Output
|
|
61
|
+
}] } });
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2EtaW5wdXQtZHJvcGRvd24tdHJpcGxlLXRleHQtdGVtcGxhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2EtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY2EtaW5wdXQtZHJvcGRvd24tdGVzdC9jb21wb25lbnRzL2NhLWlucHV0LWRyb3Bkb3duLXRyaXBsZS10ZXh0LXRlbXBsYXRlL2NhLWlucHV0LWRyb3Bkb3duLXRyaXBsZS10ZXh0LXRlbXBsYXRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLWlucHV0LWRyb3Bkb3duLXRlc3QvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10cmlwbGUtdGV4dC10ZW1wbGF0ZS9jYS1pbnB1dC1kcm9wZG93bi10cmlwbGUtdGV4dC10ZW1wbGF0ZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPL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uaWQ7IGxldCBpID0gJGluZGV4KSB7XG4gICAgPGRpdlxuICAgICAgICAjZHJvcGRvd25PcHRpb25cbiAgICAgICAgKGNsaWNrKT1cIm9uQWN0aXZlSXRlbUVtaXQob3B0aW9uKVwiXG4gICAgICAgIFtuZ0NsYXNzXT1cIntcbiAgICAgICAgICAgICduby1yZXN1bHQnOlxuICAgICAgICAgICAgICAgIG9wdGlvbnMubGVuZ3RoID09PSAxICYmIG9wdGlvbnNbMF0/LltsYWJlbF0gPT09ICdObyBSZXN1bHRzJyxcbiAgICAgICAgICAgICdhZGQtbmV3Jzogb3B0aW9uPy5bbGFiZWxdID09PSAnQUREIE5FVycsXG4gICAgICAgICAgICAnZHJvcGRvd24tdHJpcGxlLWNvbHVtbi1vcHRpb24tYWRkLW5ldyc6XG4gICAgICAgICAgICAgICAgb3B0aW9uPy5bbGFiZWxdID09PSAnQUREIE5FVycsXG4gICAgICAgIH1cIlxuICAgICAgICBjbGFzcz1cImRyb3Bkb3duLW9wdGlvbiBkcm9wZG93bi10cmlwbGUtY29sdW1uLW9wdGlvblwiXG4gICAgICAgIFtjbGFzcy5kcm9wZG93bi1vcHRpb24taG92ZXJlZF09XCJpID09IGlucHV0SG92ZXJlZEl0ZW1cIlxuICAgID5cbiAgICAgICAgPGRpdlxuICAgICAgICAgICAgW2lubmVySHRtbF09XCJcbiAgICAgICAgICAgICAgICBvcHRpb24ubnVtYmVyXG4gICAgICAgICAgICAgICAgICAgIHwgY2FIaWdobGlnaHRcbiAgICAgICAgICAgICAgICAgICAgICAgIDogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiA0NTYzMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBzZWFyY2hUZXh0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXCJcbiAgICAgICAgICAgIGNsYXNzPVwiZHJvcGRvd24tdHJpcGxlLWNvbHVtbi1vcHRpb24tdGV4dFwiXG4gICAgICAgID48L2Rpdj5cblxuICAgICAgICA8ZGl2XG4gICAgICAgICAgICBbaW5uZXJIdG1sXT1cIlxuICAgICAgICAgICAgICAgIG9wdGlvbi5icmFuZFxuICAgICAgICAgICAgICAgICAgICB8IGNhSGlnaGxpZ2h0XG4gICAgICAgICAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbmRleDogNDU2MzIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogc2VhcmNoVGV4dCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIFwiXG4gICAgICAgICAgICBjbGFzcz1cImRyb3Bkb3duLXRyaXBsZS1jb2x1bW4tdGV4dFwiXG4gICAgICAgID48L2Rpdj5cblxuICAgICAgICA8ZGl2XG4gICAgICAgICAgICBbaW5uZXJIdG1sXT1cIlxuICAgICAgICAgICAgICAgIG9wdGlvbi5hY2NvdW50XG4gICAgICAgICAgICAgICAgICAgIHwgY2FIaWdobGlnaHRcbiAgICAgICAgICAgICAgICAgICAgICAgIDogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4OiA0NTYzMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBzZWFyY2hUZXh0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXCJcbiAgICAgICAgICAgIGNsYXNzPVwiZHJvcGRvd24tdHJpcGxlLWNvbHVtbi10ZXh0XCJcbiAgICAgICAgPjwvZGl2PlxuXG4gICAgICAgIDwhLS0gUGx1cyBJY29uIC0tPlxuICAgICAgICA8c3ZnLWljb25cbiAgICAgICAgICAgIGNsYXNzPVwicGx1cy1pY29uXCJcbiAgICAgICAgICAgIFtzcmNdPVwiaW5wdXREcm9wZG93blN2Z1JvdXRlcy5wbHVzU3ZnXCJcbiAgICAgICAgICAgIFtzdmdTdHlsZV09XCJ7XG4gICAgICAgICAgICAgICAgJ3dpZHRoLnB4JzogJzE0JyxcbiAgICAgICAgICAgICAgICAnaGVpZ2h0LnB4JzogJzE0JyxcbiAgICAgICAgICAgIH1cIlxuICAgICAgICA+PC9zdmctaWNvbj5cbiAgICA8L2Rpdj5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var DropdownStringEnum;
|
|
2
|
+
(function (DropdownStringEnum) {
|
|
3
|
+
DropdownStringEnum["NO_RESULTS"] = "No Results";
|
|
4
|
+
DropdownStringEnum["ADD_NEW"] = "ADD NEW";
|
|
5
|
+
})(DropdownStringEnum || (DropdownStringEnum = {}));
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tc3RyaW5nLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXN0L2VudW1zL2Ryb3Bkb3duLXN0cmluZy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGtCQUdYO0FBSEQsV0FBWSxrQkFBa0I7SUFDNUIsK0NBQXlCLENBQUE7SUFDekIseUNBQW1CLENBQUE7QUFDckIsQ0FBQyxFQUhXLGtCQUFrQixLQUFsQixrQkFBa0IsUUFHN0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBEcm9wZG93blN0cmluZ0VudW0ge1xuICBOT19SRVNVTFRTID0gJ05vIFJlc3VsdHMnLFxuICBBRERfTkVXID0gJ0FERCBORVcnLFxufVxuIl19
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export var DropdownTemplateTypeEnum;
|
|
2
|
+
(function (DropdownTemplateTypeEnum) {
|
|
3
|
+
DropdownTemplateTypeEnum["SVG_TEMPLATE"] = "svg-template";
|
|
4
|
+
DropdownTemplateTypeEnum["SVGTEXT_TEMPLATE"] = "svgtext-template";
|
|
5
|
+
DropdownTemplateTypeEnum["SVGTEXT_DISPATCH_TEMPLATE"] = "svgtext-dispatch-template";
|
|
6
|
+
DropdownTemplateTypeEnum["DETAILS_TEMPLATE"] = "details-template";
|
|
7
|
+
DropdownTemplateTypeEnum["GROUPS"] = "groups";
|
|
8
|
+
DropdownTemplateTypeEnum["MULTISELECT"] = "multiselect";
|
|
9
|
+
DropdownTemplateTypeEnum["LABELS"] = "labels";
|
|
10
|
+
DropdownTemplateTypeEnum["DISPATCH"] = "dispatch";
|
|
11
|
+
DropdownTemplateTypeEnum["LOAD_DISPATCHER"] = "load-dispatcher";
|
|
12
|
+
DropdownTemplateTypeEnum["LOAD_DISPATCHES_TTD"] = "load-dispatches-ttd";
|
|
13
|
+
DropdownTemplateTypeEnum["LOAD_BROKER"] = "load-broker";
|
|
14
|
+
DropdownTemplateTypeEnum["LOAD_BROKER_CONTACT"] = "load-broker-contact";
|
|
15
|
+
DropdownTemplateTypeEnum["LOAD_SHIPPER"] = "load-shipper";
|
|
16
|
+
DropdownTemplateTypeEnum["TEXT_COUNTER"] = "text-counter";
|
|
17
|
+
DropdownTemplateTypeEnum["FUEL_FRANCHISE"] = "fuel-franchise";
|
|
18
|
+
DropdownTemplateTypeEnum["DOUBLE_TEXT_TEMPLATE"] = "double-text-template";
|
|
19
|
+
DropdownTemplateTypeEnum["DOUBLE_COLUMN_TEMPLATE"] = "double-column-template";
|
|
20
|
+
DropdownTemplateTypeEnum["TRIPLE_COLUMN_TEMPLATE"] = "triple-column-template";
|
|
21
|
+
DropdownTemplateTypeEnum["PAYROLL_TRUCKS"] = "payroll-trucks";
|
|
22
|
+
})(DropdownTemplateTypeEnum || (DropdownTemplateTypeEnum = {}));
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tdGVtcGxhdGUtdHlwZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2EtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY2EtaW5wdXQtZHJvcGRvd24tdGVzdC9lbnVtcy9kcm9wZG93bi10ZW1wbGF0ZS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksd0JBb0JYO0FBcEJELFdBQVksd0JBQXdCO0lBQ2xDLHlEQUE2QixDQUFBO0lBQzdCLGlFQUFxQyxDQUFBO0lBQ3JDLG1GQUF1RCxDQUFBO0lBQ3ZELGlFQUFxQyxDQUFBO0lBQ3JDLDZDQUFpQixDQUFBO0lBQ2pCLHVEQUEyQixDQUFBO0lBQzNCLDZDQUFpQixDQUFBO0lBQ2pCLGlEQUFxQixDQUFBO0lBQ3JCLCtEQUFtQyxDQUFBO0lBQ25DLHVFQUEyQyxDQUFBO0lBQzNDLHVEQUEyQixDQUFBO0lBQzNCLHVFQUEyQyxDQUFBO0lBQzNDLHlEQUE2QixDQUFBO0lBQzdCLHlEQUE2QixDQUFBO0lBQzdCLDZEQUFpQyxDQUFBO0lBQ2pDLHlFQUE2QyxDQUFBO0lBQzdDLDZFQUFpRCxDQUFBO0lBQ2pELDZFQUFpRCxDQUFBO0lBQ2pELDZEQUFpQyxDQUFBO0FBQ25DLENBQUMsRUFwQlcsd0JBQX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ZUk9MTF9UUlVDS1MgPSAncGF5cm9sbC10cnVja3MnXG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './dropdown-template-type.enum';
|
|
2
|
+
export * from './dropdown-string.enum';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXN0L2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZHJvcGRvd24tdGVtcGxhdGUtdHlwZS5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vZHJvcGRvd24tc3RyaW5nLmVudW0nOyJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './input-dropdown-option.model';
|
|
2
|
+
export * from './load-modal-status.model';
|
|
3
|
+
export * from './status-order.model';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXN0L21vZGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxzQkFBc0IsQ0F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4gIGNyZWRpdExpbWl0Pzogc3RyaW5nIHwgbnVtYmVyO1xuICBzdWZmaXg/OiBzdHJpbmcgfCBudW1iZXI7XG4gIHRydWNrVHlwZT86IHtcbiAgICBuYW1lPzogc3RyaW5nO1xuICB9O1xuXG4gIGFjdGl2ZUNvdW50ZXI/OiBzdHJpbmcgfCBudW1iZXI7XG4gIHRvdGFsQ291bnRlcj86IHN0cmluZyB8IG51bWJlcjtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZC1tb2RhbC1zdGF0dXMubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS1pbnB1dC1kcm9wZG93bi10ZXN0L21vZGVscy9sb2FkLW1vZGFsLXN0YXR1cy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTZWxlY3RlZFN0YXR1cyB7XG4gIHZhbHVlRm9yUmVxdWVzdD86IHN0cmluZztcbiAgbmFtZT86IHN0cmluZyB8IG51bGw7XG4gIGlkPzogbnVtYmVyO1xufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLW9yZGVyLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2EtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY2EtaW5wdXQtZHJvcGRvd24tdGVzdC9tb2RlbHMvc3RhdHVzLW9yZGVyLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFN0YXR1c09yZGVyIHtcbiAgdHlwZTogc3RyaW5nO1xuICBzdG9wT3JkZXI6IG51bWJlcjtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class DropdownCountPipe {
|
|
4
|
+
transform(options, template) {
|
|
5
|
+
if (template === 'groups') {
|
|
6
|
+
let groups = 0;
|
|
7
|
+
options.forEach((item) => {
|
|
8
|
+
groups++;
|
|
9
|
+
if (item.groups) {
|
|
10
|
+
groups += item.groups.length;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return groups > 20;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return options.length > 7;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DropdownCountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
20
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DropdownCountPipe, isStandalone: true, name: "caDropdownCount" }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DropdownCountPipe, decorators: [{
|
|
23
|
+
type: Pipe,
|
|
24
|
+
args: [{
|
|
25
|
+
name: 'caDropdownCount',
|
|
26
|
+
standalone: true,
|
|
27
|
+
}]
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tY291bnQucGlwZS5qcyIsInNvdX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