carriera-intern 0.0.0 → 1.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -59
- package/fesm2022/carriera-intern.mjs +11245 -0
- package/fesm2022/carriera-intern.mjs.map +1 -0
- package/index.d.ts +2557 -0
- package/package.json +24 -60
- package/{projects/carriera-intern-components/public → public}/assets/icons/Thumb-active.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/Thumb.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/arrows/cai-arrow-primary-up.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/arrows/cai-arrow-secondary-down.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/arrows/cai-arrow-secondary-left.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/arrows/cai-arrow-secondary-right.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_bbt.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_bmo_harris.svg +13 -13
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_capital_one.svg +11 -11
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_chase.svg +11 -11
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_chime.svg +10 -10
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_citi.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_fifth_third.svg +14 -14
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_green_dot.svg +17 -17
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_mb_financial.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_meta.svg +11 -11
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_navi_federal.svg +14 -14
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_of_america.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_pnc.svg +10 -10
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_regions.svg +14 -14
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_renasant.svg +14 -14
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_tcf.svg +11 -11
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_truist.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_us.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/banks/ic_bank_wells_fargo.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-color.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-drop-zone-focus.svg +48 -48
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-edit.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-edit2.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-expand.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-gps.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration-dark.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration-drop-zone-cover.svg +34 -34
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration-drop-zone-profile.svg +58 -58
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration-drop-zone-video.svg +41 -41
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration-drop-zone.svg +43 -43
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-illustration.svg +18 -18
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-loader.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-search.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/cai-violation-hazmat.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-contact.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-count.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-fuel-card.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-people.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-share.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/fuel-contact/cai-user-2.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-address.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-checkmark.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-date.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-email.svg +2 -2
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-fax.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-label.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-money-additional.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-money.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-phone-extension.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-phone.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-sort-by.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-sort-descending.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/general/cai-website.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_corrosive_8.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_dangerous_when_wet_4.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_1.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_2.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_3.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_4.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_5.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_explosives_1_6.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_flammable_3.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_flammable_gas_2.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_flammable_solid_4.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_inhalation_hazzard_2.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_inhalation_hazzard_6.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_organic_peroxide_5_2.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_oxidizer_5_1.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_oxygen_non_flam_gas_2.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_radioactive_7.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/hazardous/ic_spontaneously_combustible_4.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/integration/cai-efs.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-cancel.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-copy.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-dislike.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-drag.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-favorite.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-like.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-minus.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-password-hidden.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-password-key.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-password-shown.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai-plus.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai_time.svg +2 -2
- package/{projects/carriera-intern-components/public → public}/assets/icons/interaction/cai_x.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/load/cai-driver.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/load/cai-load.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/load/cai-ltl-single.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/load/cai-parking.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/load/cai-weight.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_atro.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_beall.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_bedard.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_butler.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_de_lucio.svg +17 -17
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_dorsey.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_east.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_fontaine.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_fruehauf.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_gallegos.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_great_dane.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_heil.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_hudson.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_hyndai.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_kaufman.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_mac.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_manac.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_polar.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_ravens.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_reitnouer.svg +12 -12
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_strick.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_timpte.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_trail_king.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_transcraft.svg +12 -12
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_tremcar.svg +10 -10
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_tytal.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_utility.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_vanguard.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_vantage.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_wabash.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_walinga.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trailers/ic_trailer_wilson.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_chevrolet.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_ford.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_freightliner.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_gmc.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_hino.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_international.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_isuzu.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_kenworth.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_mack.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_peterbilt.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_volvo.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/makes/trucks/ic_truck_western_star.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/menu/cai-delete.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/menu/cai-download.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/menu/cai-reset.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/cai-pm-base.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/trailer/cai-pm-general.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/trailer/cai-pm-pto-pump.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/trailer/cai-repair-reefer.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-air-filter.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-alignment.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-battery.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-belts.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-brake-chamber.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-engine-oil-filter.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-engine-tune-up.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-radiator.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-transmission-fluid.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/pm/truck/cai-pm-turbo.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-ab.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-bc.svg +35 -35
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-mb.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-nb.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-nl.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-ns.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-on.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-pe.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-qc.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-sk.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/ca/cai-ca-yt.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ak.svg +14 -14
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-al.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ar.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-az.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ca.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-co.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ct.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-de.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-fl.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ga.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-hi.svg +10 -10
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ia.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-id.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-il.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-in.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ks.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ky.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-la.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ma.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-md.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-me.svg +9 -9
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-mi.svg +11 -11
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-mn.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-mo.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ms.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-mt.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nc.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nd.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ne.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nh.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nj.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nm.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-nv.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ny.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-oh.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ok.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-or.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-pa.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ri.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-sc.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-sd.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-tn.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-tx.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-ut.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-va.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-vt.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-wa.svg +15 -15
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-wi.svg +4 -4
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-wv.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/states/us/cai-us-wy.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/status/cai-status-warning-lite.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/status/cai-status-warning.svg +3 -3
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_bottom-dump.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_carhauler-stinger.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_carhauler.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_chassis.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_conestoga.svg +13 -13
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_container.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_dryvan.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_end-dump.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_flatbed.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_hopper.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_low-boy.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_reefer.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_side-kit.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_step-deck.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_tanker-pneumatic.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trailers/ic_trailer_tanker.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_box-truck.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_car-hauler.svg +7 -7
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_cargo-van.svg +5 -5
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_cement.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_dump.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_garbage.svg +10 -10
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_reefer.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_semi-truck.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_semi-wSleeper.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_spotter.svg +6 -6
- package/{projects/carriera-intern-components/public → public}/assets/icons/trucks/ic_truck_tow-truck.svg +8 -8
- package/{projects/carriera-intern-components/public → public}/assets/json/icons.json +985 -985
- package/{projects/carriera-intern-components/src → src}/styles/README.md +59 -59
- package/{projects/carriera-intern-components/src → src}/styles/_variables.scss +301 -301
- package/{projects/carriera-intern-components/src → src}/styles/cropper.scss +39 -39
- package/{projects/carriera-intern-components/src → src}/styles/custompickers.scss +827 -827
- package/{projects/carriera-intern-components/src → src}/styles/popover.scss +224 -224
- package/{projects/carriera-intern-components/src → src}/styles/review_variables.scss +45 -45
- package/{projects/carriera-intern-components/src → src}/styles/tooltip.scss +119 -119
- package/{projects/carriera-intern-components/src → src}/styles/utility/colors.scss +265 -265
- package/{projects/carriera-intern-components/src → src}/styles/utility/utilities.scss +17 -17
- package/{projects/carriera-intern-components/src → src}/styles.scss +43 -43
- package/.cursor/rules/icons.mdc +0 -7
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -94
- package/carriera-intern@0.0.0 +0 -0
- package/projects/carriera-intern-components/.storybook/main.ts +0 -12
- package/projects/carriera-intern-components/.storybook/preview-head.html +0 -13
- package/projects/carriera-intern-components/.storybook/preview.ts +0 -54
- package/projects/carriera-intern-components/.storybook/tsconfig.doc.json +0 -10
- package/projects/carriera-intern-components/.storybook/tsconfig.json +0 -11
- package/projects/carriera-intern-components/.storybook/typings.d.ts +0 -4
- package/projects/carriera-intern-components/README.md +0 -63
- package/projects/carriera-intern-components/ng-package.json +0 -14
- package/projects/carriera-intern-components/package.json +0 -14
- package/projects/carriera-intern-components/public/favicon.ico +0 -0
- package/projects/carriera-intern-components/src/Changelog.mdx +0 -285
- package/projects/carriera-intern-components/src/Icons.mdx +0 -279
- package/projects/carriera-intern-components/src/app/app.config.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/avatar/avatar.component.html +0 -28
- package/projects/carriera-intern-components/src/app/components/avatar/avatar.component.scss +0 -414
- package/projects/carriera-intern-components/src/app/components/avatar/avatar.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/avatar/avatar.component.ts +0 -66
- package/projects/carriera-intern-components/src/app/components/avatar/avatar.stories.ts +0 -787
- package/projects/carriera-intern-components/src/app/components/avatar/models/avatar.model.ts +0 -52
- package/projects/carriera-intern-components/src/app/components/avatar/models/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/avatar/pipes/avatar-classes.pipe.ts +0 -98
- package/projects/carriera-intern-components/src/app/components/avatar/pipes/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/avatar/pipes/initials.pipe.ts +0 -31
- package/projects/carriera-intern-components/src/app/components/content-driven-co/content-driven-co.component.css +0 -0
- package/projects/carriera-intern-components/src/app/components/content-driven-co/content-driven-co.component.html +0 -10
- package/projects/carriera-intern-components/src/app/components/content-driven-co/content-driven-co.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/content-driven-co/content-driven-co.component.ts +0 -25
- package/projects/carriera-intern-components/src/app/components/content-driven-co/content-driven-co.stories.ts +0 -65
- package/projects/carriera-intern-components/src/app/components/copy/copy.component.html +0 -66
- package/projects/carriera-intern-components/src/app/components/copy/copy.component.scss +0 -103
- package/projects/carriera-intern-components/src/app/components/copy/copy.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/copy/copy.component.ts +0 -57
- package/projects/carriera-intern-components/src/app/components/copy/stories/copy.stories.ts +0 -170
- package/projects/carriera-intern-components/src/app/components/counter/counter.component.html +0 -33
- package/projects/carriera-intern-components/src/app/components/counter/counter.component.scss +0 -197
- package/projects/carriera-intern-components/src/app/components/counter/counter.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/counter/counter.component.ts +0 -219
- package/projects/carriera-intern-components/src/app/components/counter/counter.stories.ts +0 -65
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/dispatch-dropdown.component.html +0 -223
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/dispatch-dropdown.component.scss +0 -792
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/dispatch-dropdown.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/dispatch-dropdown.component.ts +0 -323
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/dispatch-dropdown.stories.ts +0 -409
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/helpers/dispatch-dropdown.helper.ts +0 -248
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/interfaces/dispatch-dropdown-config.interface.ts +0 -10
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/interfaces/dispatch-dropdown-option.interface.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/interfaces/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/mock/parking-data.json +0 -1550
- package/projects/carriera-intern-components/src/app/components/dispatch-dropdown/pipes/dispatch-search-filter.pipe.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/dispatch-location/dispatch-location.component.html +0 -76
- package/projects/carriera-intern-components/src/app/components/dispatch-location/dispatch-location.component.scss +0 -141
- package/projects/carriera-intern-components/src/app/components/dispatch-location/dispatch-location.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/dispatch-location/dispatch-location.component.ts +0 -268
- package/projects/carriera-intern-components/src/app/components/dispatch-location/dispatch-location.stories.ts +0 -184
- package/projects/carriera-intern-components/src/app/components/dispatch-location/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/dispatch-location/interfaces/last-status-data.interface.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/dispatch-location/pipes/last-status-format.pipe.ts +0 -35
- package/projects/carriera-intern-components/src/app/components/document-preview/document-preview.component.html +0 -229
- package/projects/carriera-intern-components/src/app/components/document-preview/document-preview.component.scss +0 -1115
- package/projects/carriera-intern-components/src/app/components/document-preview/document-preview.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/document-preview/document-preview.component.ts +0 -277
- package/projects/carriera-intern-components/src/app/components/document-preview/document-preview.stories.ts +0 -256
- package/projects/carriera-intern-components/src/app/components/document-preview/interfaces/document-tag.interface.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/document-preview/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/document-preview/utils/config/button-actions.config.ts +0 -30
- package/projects/carriera-intern-components/src/app/components/document-preview/utils/config/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/drop-zone/drop-zone.component.html +0 -376
- package/projects/carriera-intern-components/src/app/components/drop-zone/drop-zone.component.scss +0 -9
- package/projects/carriera-intern-components/src/app/components/drop-zone/drop-zone.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/drop-zone/drop-zone.component.ts +0 -1272
- package/projects/carriera-intern-components/src/app/components/drop-zone/drop-zone.stories.ts +0 -1253
- package/projects/carriera-intern-components/src/app/components/drop-zone/enums/drop-zone-labels.enum.ts +0 -0
- package/projects/carriera-intern-components/src/app/components/drop-zone/enums/drop-zone-variant.enum.ts +0 -7
- package/projects/carriera-intern-components/src/app/components/drop-zone/enums/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/drop-zone/models/app-file.model.ts +0 -28
- package/projects/carriera-intern-components/src/app/components/drop-zone/models/file.response.ts +0 -10
- package/projects/carriera-intern-components/src/app/components/drop-zone/models/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/drop-zone/pipes/drag-mode-animation.pipe.ts +0 -40
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/helpers/drop-zone-documents.helper.ts +0 -67
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/helpers/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-cropper.scss +0 -202
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-documents.scss +0 -166
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-drag-mode.scss +0 -107
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-images.scss +0 -106
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-layout.scss +0 -208
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-states.scss +0 -183
- package/projects/carriera-intern-components/src/app/components/drop-zone/utils/styles/drop-zone-variations.scss +0 -189
- package/projects/carriera-intern-components/src/app/components/input/directives/helpers/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/input/directives/helpers/mask.helper.ts +0 -52
- package/projects/carriera-intern-components/src/app/components/input/directives/mask.directive.spec.ts +0 -13
- package/projects/carriera-intern-components/src/app/components/input/directives/mask.directive.ts +0 -274
- package/projects/carriera-intern-components/src/app/components/input/directives/number-format.directive.spec.ts +0 -13
- package/projects/carriera-intern-components/src/app/components/input/directives/number-format.directive.ts +0 -442
- package/projects/carriera-intern-components/src/app/components/input/directives/password.directive.spec.ts +0 -13
- package/projects/carriera-intern-components/src/app/components/input/directives/password.directive.ts +0 -282
- package/projects/carriera-intern-components/src/app/components/input/input.component.html +0 -2669
- package/projects/carriera-intern-components/src/app/components/input/input.component.scss +0 -3000
- package/projects/carriera-intern-components/src/app/components/input/input.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/input/input.component.ts +0 -1486
- package/projects/carriera-intern-components/src/app/components/input/mock/banks.json +0 -249
- package/projects/carriera-intern-components/src/app/components/input/mock/basic.json +0 -42
- package/projects/carriera-intern-components/src/app/components/input/mock/brokers.json +0 -544
- package/projects/carriera-intern-components/src/app/components/input/mock/colors.json +0 -95
- package/projects/carriera-intern-components/src/app/components/input/mock/commodities.json +0 -12
- package/projects/carriera-intern-components/src/app/components/input/mock/contacts.json +0 -117
- package/projects/carriera-intern-components/src/app/components/input/mock/dispatchers.json +0 -83
- package/projects/carriera-intern-components/src/app/components/input/mock/dispatches.json +0 -4188
- package/projects/carriera-intern-components/src/app/components/input/mock/fuel-list-dropdown.json +0 -968
- package/projects/carriera-intern-components/src/app/components/input/mock/fuel-transaction.json +0 -78
- package/projects/carriera-intern-components/src/app/components/input/mock/fuelcard.json +0 -472
- package/projects/carriera-intern-components/src/app/components/input/mock/hazardous.json +0 -166
- package/projects/carriera-intern-components/src/app/components/input/mock/labelColors.json +0 -81
- package/projects/carriera-intern-components/src/app/components/input/mock/labels.json +0 -169
- package/projects/carriera-intern-components/src/app/components/input/mock/new-load-modal-res.json +0 -1148
- package/projects/carriera-intern-components/src/app/components/input/mock/noboard.json +0 -1665
- package/projects/carriera-intern-components/src/app/components/input/mock/owner.json +0 -209
- package/projects/carriera-intern-components/src/app/components/input/mock/pm.json +0 -112
- package/projects/carriera-intern-components/src/app/components/input/mock/shipper.json +0 -1192
- package/projects/carriera-intern-components/src/app/components/input/mock/split-driver.json +0 -99
- package/projects/carriera-intern-components/src/app/components/input/mock/split-trailer.json +0 -79
- package/projects/carriera-intern-components/src/app/components/input/mock/split-truck.json +0 -49
- package/projects/carriera-intern-components/src/app/components/input/mock/states.json +0 -605
- package/projects/carriera-intern-components/src/app/components/input/mock/toll.json +0 -106
- package/projects/carriera-intern-components/src/app/components/input/mock/trailermakes.json +0 -196
- package/projects/carriera-intern-components/src/app/components/input/mock/truck_trailer.json +0 -184
- package/projects/carriera-intern-components/src/app/components/input/mock/truckmakes.json +0 -76
- package/projects/carriera-intern-components/src/app/components/input/models/dropdown.model.ts +0 -376
- package/projects/carriera-intern-components/src/app/components/input/models/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/input/models/input.model.ts +0 -227
- package/projects/carriera-intern-components/src/app/components/input/pipes/broker-progress.pipe.ts +0 -36
- package/projects/carriera-intern-components/src/app/components/input/pipes/clear-tooltip.pipe.ts +0 -38
- package/projects/carriera-intern-components/src/app/components/input/pipes/error-message.pipe.ts +0 -54
- package/projects/carriera-intern-components/src/app/components/input/pipes/highlight-search.pipe.ts +0 -42
- package/projects/carriera-intern-components/src/app/components/input/pipes/index.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/input/pipes/input-class.pipe.ts +0 -109
- package/projects/carriera-intern-components/src/app/components/input/pipes/remap-pm-icons.pipe.ts +0 -49
- package/projects/carriera-intern-components/src/app/components/input/stories/Documentation.mdx +0 -190
- package/projects/carriera-intern-components/src/app/components/input/stories/dropdown-options.ts +0 -80
- package/projects/carriera-intern-components/src/app/components/input/stories/dropdown.stories.ts +0 -376
- package/projects/carriera-intern-components/src/app/components/input/stories/input-dropdown.stories.ts +0 -405
- package/projects/carriera-intern-components/src/app/components/input/stories/input-inverse.stories.ts +0 -232
- package/projects/carriera-intern-components/src/app/components/input/stories/input-load.stories.ts +0 -150
- package/projects/carriera-intern-components/src/app/components/input/stories/input-placeholder.stories.ts +0 -225
- package/projects/carriera-intern-components/src/app/components/input/stories/input-subcontent.stories.ts +0 -264
- package/projects/carriera-intern-components/src/app/components/input/stories/input-table.stories.ts +0 -211
- package/projects/carriera-intern-components/src/app/components/input/stories/input.stories.ts +0 -1159
- package/projects/carriera-intern-components/src/app/components/input/stories/modal.stories.ts +0 -162
- package/projects/carriera-intern-components/src/app/components/input/utilities/constants/cast.constants.ts +0 -91
- package/projects/carriera-intern-components/src/app/components/input/utilities/constants/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/input/utilities/helpers/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/input/utilities/helpers/input.helper.ts +0 -985
- package/projects/carriera-intern-components/src/app/components/input/utilities/helpers/keyboard-navigation.helper.ts +0 -402
- package/projects/carriera-intern-components/src/app/components/input/utilities/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/input-address/enums/input-address-layers-string.enum.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/input-address/enums/input-address-type-string.enum.ts +0 -7
- package/projects/carriera-intern-components/src/app/components/input-address/input-address.component.html +0 -13
- package/projects/carriera-intern-components/src/app/components/input-address/input-address.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-address/input-address.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/input-address/input-address.component.ts +0 -509
- package/projects/carriera-intern-components/src/app/components/input-address/models/address-data.model.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/input-address/models/address-list.model.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/input-address/models/long-lat.model.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/input-address/models/sent-address-data.model.ts +0 -25
- package/projects/carriera-intern-components/src/app/components/input-address/stories/address.stories.ts +0 -181
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/cai-input-datetime-picker.component.html +0 -180
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/cai-input-datetime-picker.component.scss +0 -862
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/cai-input-datetime-picker.component.ts +0 -1559
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/cai-input-datetime-picker.stories.ts +0 -507
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.html +0 -134
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.spec.ts +0 -24
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.ts +0 -331
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.html +0 -190
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.spec.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.ts +0 -234
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.html +0 -23
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.spec.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.ts +0 -60
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.html +0 -27
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.spec.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.ts +0 -187
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.html +0 -68
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.scss +0 -0
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.spec.ts +0 -26
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.ts +0 -163
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/cai-input.config.ts +0 -193
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-left-string.enum.ts +0 -5
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-list-preview-string.enum.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-main-string.enum.ts +0 -5
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-string.enum.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-type-string.enum.ts +0 -3
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/config.enum.ts +0 -7
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-change.model.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-type.model.ts +0 -8
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/pipes/calendar-months.pipe.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/services/calendar-datetime-picker.service.ts +0 -35
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/strategy/calendar-strategy.ts +0 -120
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.ts +0 -48
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/enums/input-config-name-string.enum.ts +0 -7
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/interfaces/input-datetime.interface.ts +0 -11
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/models/index.ts +0 -5
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/models/label-color.model.ts +0 -11
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/pipes/input-clear-class.pipe.ts +0 -105
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/pipes/input-date-time-container-class.pipe.ts +0 -66
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/pipes/input-dropdown-arrow-class.pipe.ts +0 -68
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/pipes/input-placeholder-icon.class.pipe.ts +0 -68
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/pipes/show-clear.pipe.ts +0 -20
- package/projects/carriera-intern-components/src/app/components/input-datetime-picker/scss/ca-input.colors.scss +0 -287
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/list-contact-dropdown.component.html +0 -194
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/list-contact-dropdown.component.scss +0 -613
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/list-contact-dropdown.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/list-contact-dropdown.component.ts +0 -208
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/list-contact-dropdown.stories.ts +0 -52
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/mock/brokerContacts.json +0 -74
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/models/contact.interface.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/pipes/contact-count.pipe.ts +0 -14
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/pipes/contacts-height.pipe.ts +0 -34
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/pipes/departments-height.pipe.ts +0 -57
- package/projects/carriera-intern-components/src/app/components/list-contact-dropdown/pipes/map-contacts.pipe.ts +0 -51
- package/projects/carriera-intern-components/src/app/components/pm/mock/repair-pm.json +0 -2743
- package/projects/carriera-intern-components/src/app/components/pm/pm.component.html +0 -82
- package/projects/carriera-intern-components/src/app/components/pm/pm.component.scss +0 -260
- package/projects/carriera-intern-components/src/app/components/pm/pm.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/pm/pm.component.ts +0 -207
- package/projects/carriera-intern-components/src/app/components/pm/pm.stories.ts +0 -104
- package/projects/carriera-intern-components/src/app/components/rating_review/enums/filter-type.enum.ts +0 -7
- package/projects/carriera-intern-components/src/app/components/rating_review/enums/review-type.enum.ts +0 -5
- package/projects/carriera-intern-components/src/app/components/rating_review/pipes/date-formating.pipe.spec.ts +0 -8
- package/projects/carriera-intern-components/src/app/components/rating_review/pipes/date-formating.pipe.ts +0 -42
- package/projects/carriera-intern-components/src/app/components/rating_review/rating-review/rating-review/rating-review.component.html +0 -57
- package/projects/carriera-intern-components/src/app/components/rating_review/rating-review/rating-review/rating-review.component.scss +0 -94
- package/projects/carriera-intern-components/src/app/components/rating_review/rating-review/rating-review/rating-review.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/rating_review/rating-review/rating-review/rating-review.component.ts +0 -105
- package/projects/carriera-intern-components/src/app/components/rating_review/rating-review/rating-review/rating-review.stories.ts +0 -451
- package/projects/carriera-intern-components/src/app/components/rating_review/review-modal/review-modal.component.html +0 -236
- package/projects/carriera-intern-components/src/app/components/rating_review/review-modal/review-modal.component.scss +0 -564
- package/projects/carriera-intern-components/src/app/components/rating_review/review-modal/review-modal.component.ts +0 -360
- package/projects/carriera-intern-components/src/app/components/rating_review/single-review/single-review.component.html +0 -321
- package/projects/carriera-intern-components/src/app/components/rating_review/single-review/single-review.component.scss +0 -887
- package/projects/carriera-intern-components/src/app/components/rating_review/single-review/single-review.component.ts +0 -159
- package/projects/carriera-intern-components/src/app/components/selected-location-field/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/selected-location-field/interfaces/selected-business-field.interface.ts +0 -11
- package/projects/carriera-intern-components/src/app/components/selected-location-field/selected-business-field.component.html +0 -100
- package/projects/carriera-intern-components/src/app/components/selected-location-field/selected-business-field.component.scss +0 -239
- package/projects/carriera-intern-components/src/app/components/selected-location-field/selected-business-field.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/selected-location-field/selected-business-field.component.ts +0 -28
- package/projects/carriera-intern-components/src/app/components/selected-location-field/selected-business-field.stories.ts +0 -132
- package/projects/carriera-intern-components/src/app/components/signature/signature.component.html +0 -63
- package/projects/carriera-intern-components/src/app/components/signature/signature.component.scss +0 -229
- package/projects/carriera-intern-components/src/app/components/signature/signature.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/signature/signature.component.ts +0 -102
- package/projects/carriera-intern-components/src/app/components/signature/signature.stories.ts +0 -32
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/enums/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/enums/scroll-state.enum.ts +0 -6
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/sticky-scrollbar.component.html +0 -29
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/sticky-scrollbar.component.scss +0 -106
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/sticky-scrollbar.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/sticky-scrollbar.component.ts +0 -458
- package/projects/carriera-intern-components/src/app/components/sticky-scrollbar/sticky-scrollbar.stories.ts +0 -343
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/interfaces/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/interfaces/tab-option-config.interface.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/interfaces/tab-option.interface.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/pipes/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/pipes/tab-search-filter.pipe.ts +0 -20
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/tab-option-dropdown.component.html +0 -66
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/tab-option-dropdown.component.scss +0 -441
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/tab-option-dropdown.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/tab-option-dropdown.component.ts +0 -105
- package/projects/carriera-intern-components/src/app/components/tab-option-dropdown/tab-option.stories.ts +0 -93
- package/projects/carriera-intern-components/src/app/components/text-area/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/text-area/interfaces/text-area.interface.ts +0 -4
- package/projects/carriera-intern-components/src/app/components/text-area/text-area.component.html +0 -29
- package/projects/carriera-intern-components/src/app/components/text-area/text-area.component.scss +0 -294
- package/projects/carriera-intern-components/src/app/components/text-area/text-area.component.spec.ts +0 -23
- package/projects/carriera-intern-components/src/app/components/text-area/text-area.component.ts +0 -213
- package/projects/carriera-intern-components/src/app/components/text-area/text-area.stories.ts +0 -90
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interfaces/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interfaces/interval-dropdown-option.interface.ts +0 -10
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interval-dropdown.component.html +0 -98
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interval-dropdown.component.scss +0 -437
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interval-dropdown.component.spec.ts +0 -22
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interval-dropdown.component.ts +0 -160
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/interval-dropdown.stories.ts +0 -77
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/pipes/dropdown-filter-input-config.pipe.ts +0 -52
- package/projects/carriera-intern-components/src/app/components/toolbar-dropdown/utils/helpers/interval-dropdown.helper.ts +0 -193
- package/projects/carriera-intern-components/src/app/directives/hover-svg-directives.ts +0 -49
- package/projects/carriera-intern-components/src/app/directives/index.ts +0 -3
- package/projects/carriera-intern-components/src/app/directives/infinite-scroll.directive.ts +0 -64
- package/projects/carriera-intern-components/src/app/directives/intersection-observer.directive.ts +0 -50
- package/projects/carriera-intern-components/src/app/enums/alignment.enum.ts +0 -4
- package/projects/carriera-intern-components/src/app/enums/general-actions.enum.ts +0 -71
- package/projects/carriera-intern-components/src/app/enums/index.ts +0 -3
- package/projects/carriera-intern-components/src/app/enums/string-placeholder.enum.ts +0 -3
- package/projects/carriera-intern-components/src/app/models/pm.model.ts +0 -11
- package/projects/carriera-intern-components/src/app/models/review.model.ts +0 -29
- package/projects/carriera-intern-components/src/app/models/truck.model.ts +0 -5
- package/projects/carriera-intern-components/src/app/pipes/bytes-to-human-readable.pipe.spec.ts +0 -8
- package/projects/carriera-intern-components/src/app/pipes/bytes-to-human-readable.pipe.ts +0 -29
- package/projects/carriera-intern-components/src/app/pipes/currency.pipe.spec.ts +0 -8
- package/projects/carriera-intern-components/src/app/pipes/currency.pipe.ts +0 -61
- package/projects/carriera-intern-components/src/app/pipes/number-format.pipe.spec.ts +0 -8
- package/projects/carriera-intern-components/src/app/pipes/number-format.pipe.ts +0 -30
- package/projects/carriera-intern-components/src/app/services/document.service.spec.ts +0 -16
- package/projects/carriera-intern-components/src/app/services/document.service.ts +0 -168
- package/projects/carriera-intern-components/src/app/utils/autofill-validators.ts +0 -32
- package/projects/carriera-intern-components/src/app/utils/constants/index.ts +0 -1
- package/projects/carriera-intern-components/src/app/utils/constants/input-character-sets.constants.ts +0 -142
- package/projects/carriera-intern-components/src/app/utils/index.ts +0 -2
- package/projects/carriera-intern-components/src/app/validators/custom-validators.ts +0 -45
- package/projects/carriera-intern-components/src/public-api.ts +0 -31
- package/projects/carriera-intern-components/tsconfig.lib.json +0 -15
- package/projects/carriera-intern-components/tsconfig.lib.prod.json +0 -11
- package/projects/carriera-intern-components/tsconfig.spec.json +0 -15
- package/tsconfig.json +0 -33
- /package/{projects/carriera-intern-components/public → public}/assets/animations/animation-document-update.json +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/animations/animation-image.json +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/animations/animation-logo.json +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/animations/animation-media.json +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/cdl.png +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/exampledoc.png +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/examplelargeview.png +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/invexample.png +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/invoice.png +0 -0
- /package/{projects/carriera-intern-components/public → public}/assets/truck.png +0 -0
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
import { IReview } from './../../../models/review.model';
|
|
2
|
-
import { InputComponent } from './../../input/input.component';
|
|
3
|
-
import {
|
|
4
|
-
Component,
|
|
5
|
-
Input,
|
|
6
|
-
input,
|
|
7
|
-
signal,
|
|
8
|
-
OnInit,
|
|
9
|
-
OnChanges,
|
|
10
|
-
SimpleChanges,
|
|
11
|
-
Output,
|
|
12
|
-
EventEmitter,
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
import { SvgIconComponent } from 'angular-svg-icon';
|
|
15
|
-
import { SingleReviewComponent } from '../single-review/single-review.component';
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
-
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
|
18
|
-
import { ReviewType } from '../enums/review-type.enum';
|
|
19
|
-
import { FilterType } from '../enums/filter-type.enum';
|
|
20
|
-
import { Filter } from '../../input-address/stories/address.stories';
|
|
21
|
-
|
|
22
|
-
@Component({
|
|
23
|
-
selector: 'cai-review-modal',
|
|
24
|
-
standalone: true,
|
|
25
|
-
imports: [
|
|
26
|
-
SvgIconComponent,
|
|
27
|
-
SingleReviewComponent,
|
|
28
|
-
CommonModule,
|
|
29
|
-
NgbTooltipModule,
|
|
30
|
-
InputComponent,
|
|
31
|
-
],
|
|
32
|
-
templateUrl: './review-modal.component.html',
|
|
33
|
-
styleUrl: './review-modal.component.scss',
|
|
34
|
-
})
|
|
35
|
-
export class ReviewModalComponent implements OnInit, OnChanges {
|
|
36
|
-
//enums
|
|
37
|
-
public ReviewType = ReviewType;
|
|
38
|
-
public FilterType = FilterType;
|
|
39
|
-
|
|
40
|
-
ngOnInit(): void {
|
|
41
|
-
this.initializeReviewsData();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
ngOnChanges(changes: SimpleChanges): void {
|
|
45
|
-
if (changes['ratingReviews']) {
|
|
46
|
-
this.initializeReviewsData();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Input() ratingReviews!: IReview[];
|
|
51
|
-
@Input() modaltype!: string;
|
|
52
|
-
@Input() titleInput!: string;
|
|
53
|
-
|
|
54
|
-
@Output() reviewDeleted = new EventEmitter<void>();
|
|
55
|
-
|
|
56
|
-
activeLikes = signal<boolean>(false);
|
|
57
|
-
activeDislikes = signal<boolean>(false);
|
|
58
|
-
activeReviews = signal<boolean>(false);
|
|
59
|
-
disabled = signal<boolean>(false);
|
|
60
|
-
addingReview = signal<boolean>(false);
|
|
61
|
-
|
|
62
|
-
presentReviews: IReview[] = [];
|
|
63
|
-
|
|
64
|
-
testReview: IReview = {
|
|
65
|
-
ratingId: 5,
|
|
66
|
-
thumb: '',
|
|
67
|
-
reviewId: 5,
|
|
68
|
-
comment: '',
|
|
69
|
-
isEdited: false,
|
|
70
|
-
companyUserId: 5,
|
|
71
|
-
isItCurrentCompanyUser: true,
|
|
72
|
-
createdAt: '',
|
|
73
|
-
updatedAt: '',
|
|
74
|
-
companyUser: {
|
|
75
|
-
id: 5,
|
|
76
|
-
userId: 5,
|
|
77
|
-
fullName: 'James Garcia',
|
|
78
|
-
avatarFile: {
|
|
79
|
-
driver: {
|
|
80
|
-
id: 0,
|
|
81
|
-
firstName: 'James',
|
|
82
|
-
lastName: 'Garcia',
|
|
83
|
-
avatarFile: undefined,
|
|
84
|
-
avatarColor: 'Yellow',
|
|
85
|
-
},
|
|
86
|
-
size: 22,
|
|
87
|
-
rounded: true,
|
|
88
|
-
inverse: false,
|
|
89
|
-
},
|
|
90
|
-
departmentId: 2,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
countLikes: number = 0;
|
|
95
|
-
countDislikes: number = 0;
|
|
96
|
-
countReviews: number = 0;
|
|
97
|
-
hasPersonalReview: boolean = false;
|
|
98
|
-
currentActiveFilter: string = FilterType.ALL;
|
|
99
|
-
|
|
100
|
-
onReturnMost(): string {
|
|
101
|
-
if (this.countLikes > this.countDislikes) {
|
|
102
|
-
return 'likes';
|
|
103
|
-
} else if (this.countDislikes > this.countLikes) {
|
|
104
|
-
return 'dislikes';
|
|
105
|
-
}
|
|
106
|
-
return '';
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Adds a new empty review to the `presentReviews` list and sets `addingReview` to `true`.
|
|
111
|
-
* This review is marked as "personal" and pre-filled with basic user data.
|
|
112
|
-
*/
|
|
113
|
-
onAddReview(): void {
|
|
114
|
-
this.addingReview.set(true);
|
|
115
|
-
this.disabled.set(true);
|
|
116
|
-
this.hasPersonalReview = true;
|
|
117
|
-
const newId =
|
|
118
|
-
this.ratingReviews.length > 0
|
|
119
|
-
? Math.max(...this.ratingReviews.map((r) => r.reviewId)) + 1
|
|
120
|
-
: 1;
|
|
121
|
-
const date = new Date();
|
|
122
|
-
this.testReview = {
|
|
123
|
-
...this.testReview,
|
|
124
|
-
reviewId: newId,
|
|
125
|
-
comment: '',
|
|
126
|
-
thumb: '',
|
|
127
|
-
isEdited: false,
|
|
128
|
-
createdAt: date.toString(),
|
|
129
|
-
updatedAt: '',
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
onEditedReview(ev: { review: IReview; edited: boolean }) {
|
|
134
|
-
const index = this.ratingReviews.findIndex(
|
|
135
|
-
(r) => r.reviewId === ev.review.reviewId
|
|
136
|
-
);
|
|
137
|
-
if (index > -1) {
|
|
138
|
-
this.ratingReviews[index] = ev.review;
|
|
139
|
-
this.presentReviews = [...this.ratingReviews];
|
|
140
|
-
this.initializeReviewsData();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
onGetReview(ev: { review: IReview }) {
|
|
145
|
-
if (ev.review.isEdited) {
|
|
146
|
-
const index = this.ratingReviews.findIndex(
|
|
147
|
-
(r) => r.reviewId === ev.review.reviewId
|
|
148
|
-
);
|
|
149
|
-
if (index > -1) {
|
|
150
|
-
this.ratingReviews[index] = ev.review;
|
|
151
|
-
}
|
|
152
|
-
} else {
|
|
153
|
-
this.ratingReviews.unshift(ev.review);
|
|
154
|
-
}
|
|
155
|
-
this.addingReview.set(false);
|
|
156
|
-
this.presentReviews = [...this.ratingReviews];
|
|
157
|
-
this.initializeReviewsData();
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
handleSearch(event: string | number | null) {
|
|
161
|
-
if (!event) {
|
|
162
|
-
this.presentReviews = [...this.ratingReviews];
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
const search = event.toString().toLowerCase().trim();
|
|
166
|
-
|
|
167
|
-
this.presentReviews = this.ratingReviews.filter(
|
|
168
|
-
(r) =>
|
|
169
|
-
r.companyUser.fullName.toLowerCase().includes(search) ||
|
|
170
|
-
r.comment.toLowerCase().includes(search)
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
handleClear(event: void) {
|
|
175
|
-
this.presentReviews = [...this.ratingReviews];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Initializes review data when the component is initialized or when the `reviews` input changes.
|
|
180
|
-
* It copies the original reviews array, resets counters, calculates new counts, and
|
|
181
|
-
* sets the `disabled` signal if a personal review already exists.
|
|
182
|
-
* @private
|
|
183
|
-
*/
|
|
184
|
-
private initializeReviewsData(): void {
|
|
185
|
-
if (this.ratingReviews) {
|
|
186
|
-
this.presentReviews = [...this.ratingReviews];
|
|
187
|
-
this.onCheckPersonal();
|
|
188
|
-
this.resetCounts();
|
|
189
|
-
this.calculateReviewCounts();
|
|
190
|
-
this.disabled.set(
|
|
191
|
-
this.ratingReviews.some((x) => x.isItCurrentCompanyUser === true)
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Resets the counts for likes, dislikes, and written reviews to zero.
|
|
198
|
-
* @private
|
|
199
|
-
*/
|
|
200
|
-
private resetCounts(): void {
|
|
201
|
-
this.countLikes = 0;
|
|
202
|
-
this.countDislikes = 0;
|
|
203
|
-
this.countReviews = 0;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Iterates through the `reviews` array and calculates the total number of likes,
|
|
208
|
-
* dislikes, and written reviews (those with a non-empty `value`).
|
|
209
|
-
* @private
|
|
210
|
-
*/
|
|
211
|
-
private calculateReviewCounts(): void {
|
|
212
|
-
this.ratingReviews.forEach((review) => {
|
|
213
|
-
if (review.thumb === 'like') {
|
|
214
|
-
this.countLikes++;
|
|
215
|
-
} else if (review.thumb === 'dislike') {
|
|
216
|
-
this.countDislikes++;
|
|
217
|
-
}
|
|
218
|
-
if (review.comment && review.comment.length > 0) {
|
|
219
|
-
this.countReviews++;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
onSwitchActive(value: string): void {
|
|
225
|
-
this.currentActiveFilter = value;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Changes the displayed reviews in `presentReviews` based on the selected type.
|
|
230
|
-
* It filters the original `reviews` array to show only likes, dislikes,
|
|
231
|
-
* written reviews, or all reviews.
|
|
232
|
-
* @param type The type of reviews to display: 'likes', 'dislikes', 'reviews' (only written), or 'all'.
|
|
233
|
-
*/
|
|
234
|
-
onChangePresentReviews(type: FilterType): void {
|
|
235
|
-
this.presentReviews = [];
|
|
236
|
-
switch (type) {
|
|
237
|
-
case FilterType.LIKES:
|
|
238
|
-
this.ratingReviews.forEach((x) => {
|
|
239
|
-
if (x.thumb == 'like') {
|
|
240
|
-
this.presentReviews.push(x);
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
break;
|
|
244
|
-
case FilterType.DISLIKES:
|
|
245
|
-
this.ratingReviews.forEach((x) => {
|
|
246
|
-
if (x.thumb == 'dislike') {
|
|
247
|
-
this.presentReviews.push(x);
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
break;
|
|
251
|
-
case FilterType.REVIEWS:
|
|
252
|
-
this.onSwitchActive(FilterType.REVIEWS);
|
|
253
|
-
this.ratingReviews.forEach((x) => {
|
|
254
|
-
if (x.comment.length > 0) {
|
|
255
|
-
this.presentReviews.push(x);
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
break;
|
|
259
|
-
case FilterType.RATING:
|
|
260
|
-
this.onSwitchActive(FilterType.RATING);
|
|
261
|
-
this.ratingReviews.forEach((x) => {
|
|
262
|
-
if (x.thumb == 'like' || x.thumb == 'dislike') {
|
|
263
|
-
this.presentReviews.push(x);
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
break;
|
|
267
|
-
case FilterType.ALL:
|
|
268
|
-
this.onSwitchActive(FilterType.ALL);
|
|
269
|
-
this.presentReviews = [...this.ratingReviews];
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Updates the value and edit time of an existing review in the `presentReviews` list.
|
|
276
|
-
* Sets the `edited` flag to `true` for the modified review.
|
|
277
|
-
* @param updatedData An object containing the review's ID, the new text value, and the new edit time.
|
|
278
|
-
*/
|
|
279
|
-
onChangeValue(updatedData: {
|
|
280
|
-
id: number;
|
|
281
|
-
value: string;
|
|
282
|
-
newTime: string;
|
|
283
|
-
}): void {
|
|
284
|
-
for (let i = 0; i < this.presentReviews.length; i++) {
|
|
285
|
-
if (this.presentReviews[i].reviewId === updatedData.id) {
|
|
286
|
-
this.presentReviews[i].comment = updatedData.value;
|
|
287
|
-
this.presentReviews[i].updatedAt = updatedData.newTime;
|
|
288
|
-
this.presentReviews[i].isEdited = true;
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Initiates the review deletion process.
|
|
296
|
-
* Currently, it logs a message to the console and emits the `reviewDeleted` event.
|
|
297
|
-
* The logic for actual removal from `presentReviews` is commented out.
|
|
298
|
-
* @param id The ID of the review to be deleted.
|
|
299
|
-
*/
|
|
300
|
-
onDeleteReview(id: number): void {
|
|
301
|
-
this.ratingReviews = this.ratingReviews.filter(
|
|
302
|
-
(review) => review.reviewId !== id
|
|
303
|
-
);
|
|
304
|
-
this.addingReview.set(false);
|
|
305
|
-
this.hasPersonalReview = false;
|
|
306
|
-
this.disabled.set(false);
|
|
307
|
-
|
|
308
|
-
this.initializeReviewsData();
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
onCheckPersonal(): void {
|
|
312
|
-
this.ratingReviews.forEach((x) => {
|
|
313
|
-
if (x.isItCurrentCompanyUser) {
|
|
314
|
-
this.hasPersonalReview = true;
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
onSelectFilter(type: FilterType) {
|
|
321
|
-
switch (type) {
|
|
322
|
-
case FilterType.LIKES:
|
|
323
|
-
this.activeDislikes.set(false);
|
|
324
|
-
this.activeReviews.set(false);
|
|
325
|
-
this.activeLikes.set(true);
|
|
326
|
-
this.onChangePresentReviews(FilterType.LIKES);
|
|
327
|
-
break;
|
|
328
|
-
case FilterType.DISLIKES:
|
|
329
|
-
this.activeDislikes.set(true);
|
|
330
|
-
this.activeReviews.set(false);
|
|
331
|
-
this.activeLikes.set(false);
|
|
332
|
-
this.onChangePresentReviews(FilterType.DISLIKES);
|
|
333
|
-
break;
|
|
334
|
-
case FilterType.REVIEWS:
|
|
335
|
-
this.activeDislikes.set(false);
|
|
336
|
-
this.activeReviews.set(true);
|
|
337
|
-
this.activeLikes.set(false);
|
|
338
|
-
this.onChangePresentReviews(FilterType.REVIEWS);
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
onCancelFilter(event: MouseEvent, type: FilterType) {
|
|
344
|
-
event.stopPropagation();
|
|
345
|
-
switch (type) {
|
|
346
|
-
case FilterType.LIKES:
|
|
347
|
-
this.activeLikes.set(false);
|
|
348
|
-
this.onChangePresentReviews(FilterType.ALL);
|
|
349
|
-
break;
|
|
350
|
-
case FilterType.DISLIKES:
|
|
351
|
-
this.activeDislikes.set(false);
|
|
352
|
-
this.onChangePresentReviews(FilterType.ALL);
|
|
353
|
-
break;
|
|
354
|
-
case FilterType.REVIEWS:
|
|
355
|
-
this.activeReviews.set(false);
|
|
356
|
-
this.onChangePresentReviews(FilterType.ALL);
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
@let avatarFile = singleReview.companyUser?.avatarFile; @let driver =
|
|
2
|
-
avatarFile?.driver; @let companyUser = this.singleReview.companyUser; @let
|
|
3
|
-
currentUser = this.singleReview.isItCurrentCompanyUser; @let comment =
|
|
4
|
-
this.singleReview.comment; @let edited = this.singleReview.isEdited; @let
|
|
5
|
-
activeLike = this.singleReview.thumb === 'like'; @let activeDislike =
|
|
6
|
-
this.singleReview.thumb === 'dislike'; @let currentRating =
|
|
7
|
-
this.singleReview.thumb;
|
|
8
|
-
@let isTable = type === ReviewType.Table;
|
|
9
|
-
@let isDetails = type === ReviewType.Details;
|
|
10
|
-
@let isModal = type === ReviewType.Modal;
|
|
11
|
-
<div
|
|
12
|
-
class="review-wrapper"
|
|
13
|
-
[class]="{
|
|
14
|
-
'not-editing': !editing(),
|
|
15
|
-
'table-type': isTable,
|
|
16
|
-
'modal-type': isModal,
|
|
17
|
-
'details-type': isDetails
|
|
18
|
-
}"
|
|
19
|
-
(click)="onExpandToggle()"
|
|
20
|
-
>
|
|
21
|
-
@if(isModal){
|
|
22
|
-
<div class="upper">
|
|
23
|
-
<div class class="info">
|
|
24
|
-
<cai-avatar
|
|
25
|
-
[driver]="driver!"
|
|
26
|
-
[size]="avatarFile!.size"
|
|
27
|
-
[rounded]="avatarFile!.rounded"
|
|
28
|
-
></cai-avatar>
|
|
29
|
-
<span class="name">{{ companyUser?.fullName }}</span>
|
|
30
|
-
@if(currentUser && !editing()){
|
|
31
|
-
<span class="personal">(You)</span>
|
|
32
|
-
|
|
33
|
-
} @if(!editing() && currentRating){
|
|
34
|
-
<span class="dot">•</span>
|
|
35
|
-
|
|
36
|
-
<svg-icon
|
|
37
|
-
[name]="currentRating === 'like' ? 'cai-like' : 'cai-dislike'"
|
|
38
|
-
[class.current-rating-like]="currentRating === 'like'"
|
|
39
|
-
[class.current-rating-dislike]="currentRating === 'dislike'"
|
|
40
|
-
></svg-icon>
|
|
41
|
-
} @if(editing()){
|
|
42
|
-
<span class="description">{{
|
|
43
|
-
!edited ? "• Posting Publicly" : "• Edit Review"
|
|
44
|
-
}}</span>
|
|
45
|
-
} @if(!editing()){
|
|
46
|
-
<span class="edit-time">{{ newTime() }}</span>
|
|
47
|
-
@if(edited){
|
|
48
|
-
<span class="edited">• Edited</span>
|
|
49
|
-
} }
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
@if(editing()){
|
|
53
|
-
<div class="rating">
|
|
54
|
-
<div
|
|
55
|
-
class="svg-group"
|
|
56
|
-
[ngbTooltip]="activeLike ? 'Remove' : 'Like'"
|
|
57
|
-
triggers="mouseenter:mouseleave"
|
|
58
|
-
tabindex="0"
|
|
59
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
60
|
-
placement="top"
|
|
61
|
-
>
|
|
62
|
-
<svg-icon
|
|
63
|
-
name="cai-like"
|
|
64
|
-
class="like-icon"
|
|
65
|
-
(click)="onRate('like')"
|
|
66
|
-
[class.like-active]="activeLike"
|
|
67
|
-
></svg-icon>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<div
|
|
71
|
-
class="svg-group"
|
|
72
|
-
[ngbTooltip]="activeDislike ? 'Remove' : 'Dislike'"
|
|
73
|
-
triggers="mouseenter:mouseleave"
|
|
74
|
-
tabindex="0"
|
|
75
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
76
|
-
placement="top"
|
|
77
|
-
>
|
|
78
|
-
<svg-icon
|
|
79
|
-
name="cai-dislike"
|
|
80
|
-
class="dislike-icon"
|
|
81
|
-
(click)="onRate('dislike')"
|
|
82
|
-
[class.dislike-active]="activeDislike"
|
|
83
|
-
>
|
|
84
|
-
</svg-icon>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<div class="separator"></div>
|
|
88
|
-
<div
|
|
89
|
-
class="svg-group"
|
|
90
|
-
ngbTooltip="Post Review"
|
|
91
|
-
triggers="mouseenter:mouseleave"
|
|
92
|
-
tabindex="0"
|
|
93
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
94
|
-
placement="top"
|
|
95
|
-
>
|
|
96
|
-
<svg-icon
|
|
97
|
-
name="cai-checkmark"
|
|
98
|
-
class="checkmark-icon"
|
|
99
|
-
(click)="onSaveChanges()"
|
|
100
|
-
></svg-icon>
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
|
-
<div
|
|
104
|
-
class="svg-group"
|
|
105
|
-
ngbTooltip="Cancel"
|
|
106
|
-
triggers="mouseenter:mouseleave"
|
|
107
|
-
tabindex="0"
|
|
108
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
109
|
-
placement="top"
|
|
110
|
-
>
|
|
111
|
-
<svg-icon
|
|
112
|
-
name="cai-cancel"
|
|
113
|
-
class="cancel-icon"
|
|
114
|
-
(click)="onCancelReview()"
|
|
115
|
-
></svg-icon>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
}@else if(currentUser){
|
|
119
|
-
<div class="controls">
|
|
120
|
-
<div
|
|
121
|
-
class="svg-group"
|
|
122
|
-
ngbTooltip="Edit Review"
|
|
123
|
-
triggers="mouseenter:mouseleave"
|
|
124
|
-
tabindex="0"
|
|
125
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
126
|
-
placement="top"
|
|
127
|
-
>
|
|
128
|
-
<svg-icon
|
|
129
|
-
name="cai-edit"
|
|
130
|
-
(click)="onEdit()"
|
|
131
|
-
class="pencil-icon"
|
|
132
|
-
></svg-icon>
|
|
133
|
-
</div>
|
|
134
|
-
<div
|
|
135
|
-
class="svg-group"
|
|
136
|
-
ngbTooltip="Delete Review"
|
|
137
|
-
triggers="mouseenter:mouseleave"
|
|
138
|
-
tabindex="0"
|
|
139
|
-
tooltipClass="tooltip tooltip-m-b-2"
|
|
140
|
-
placement="top"
|
|
141
|
-
>
|
|
142
|
-
<svg-icon
|
|
143
|
-
name="cai-delete"
|
|
144
|
-
class="trash-icon"
|
|
145
|
-
(click)="onDelete()"
|
|
146
|
-
></svg-icon>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
}
|
|
150
|
-
</div>
|
|
151
|
-
@if(comment || currentContent() || editing()){
|
|
152
|
-
<div
|
|
153
|
-
class="lower"
|
|
154
|
-
[contentEditable]="editing() ? 'true' : 'false'"
|
|
155
|
-
data-placeholder="Share details of your own experience..."
|
|
156
|
-
(input)="onChangeContent($event)"
|
|
157
|
-
[innerHTML]="renderedContent()"
|
|
158
|
-
(keydown)="limitLength($event)"
|
|
159
|
-
></div>
|
|
160
|
-
} }@else if(isTable || isDetails) {
|
|
161
|
-
<div class="upper">
|
|
162
|
-
<div class class="info">
|
|
163
|
-
<cai-avatar
|
|
164
|
-
[driver]="avatarFile!.driver"
|
|
165
|
-
[size]="avatarFile!.size"
|
|
166
|
-
[rounded]="avatarFile!.rounded"
|
|
167
|
-
></cai-avatar>
|
|
168
|
-
<div class="column">
|
|
169
|
-
<div class="upper-row">
|
|
170
|
-
<span class="name">{{ companyUser?.fullName }}</span>
|
|
171
|
-
@if(currentUser && !editing()){
|
|
172
|
-
<span class="personal">(Me)</span>
|
|
173
|
-
|
|
174
|
-
} @if(!editing()){
|
|
175
|
-
<svg-icon
|
|
176
|
-
[name]="
|
|
177
|
-
currentRating === 'like'
|
|
178
|
-
? 'cai-like'
|
|
179
|
-
: currentRating === 'dislike'
|
|
180
|
-
? 'cai-dislike'
|
|
181
|
-
: ''
|
|
182
|
-
"
|
|
183
|
-
[class.current-rating-like]="currentRating === 'like'"
|
|
184
|
-
[class.current-rating-dislike]="currentRating === 'dislike'"
|
|
185
|
-
></svg-icon>
|
|
186
|
-
}
|
|
187
|
-
</div>
|
|
188
|
-
<div class="lower-row">
|
|
189
|
-
@if(editing()){
|
|
190
|
-
<span class="description">{{
|
|
191
|
-
!edited ? "Posting Publicly" : "Edit Review"
|
|
192
|
-
}}</span>
|
|
193
|
-
} @if(!editing()){
|
|
194
|
-
<span class="edit-time">{{ newTime() }}</span>
|
|
195
|
-
@if(edited){
|
|
196
|
-
<span class="edited">• Edited</span>
|
|
197
|
-
} }
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
@if(editing()){
|
|
203
|
-
<div class="rating">
|
|
204
|
-
<div
|
|
205
|
-
class="svg-group"
|
|
206
|
-
[ngbTooltip]="activeLike && isDetails ? 'Remove' : activeLike && isTable ? 'Remove Like' : 'Like'"
|
|
207
|
-
triggers="mouseenter:mouseleave"
|
|
208
|
-
tabindex="0"
|
|
209
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
210
|
-
placement="top"
|
|
211
|
-
>
|
|
212
|
-
<svg-icon
|
|
213
|
-
name="cai-like"
|
|
214
|
-
class="like-icon"
|
|
215
|
-
(click)="onRate('like')"
|
|
216
|
-
[class.like-active]="currentRating === 'like'"
|
|
217
|
-
></svg-icon>
|
|
218
|
-
</div>
|
|
219
|
-
|
|
220
|
-
<div
|
|
221
|
-
class="svg-group"
|
|
222
|
-
[ngbTooltip]="activeDislike && isDetails ? 'Remove' : activeDislike && isTable ? 'Remove Dislike' : 'Dislike'"
|
|
223
|
-
triggers="mouseenter:mouseleave"
|
|
224
|
-
tabindex="0"
|
|
225
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
226
|
-
placement="top"
|
|
227
|
-
>
|
|
228
|
-
<svg-icon
|
|
229
|
-
name="cai-dislike"
|
|
230
|
-
class="dislike-icon"
|
|
231
|
-
(click)="onRate('dislike')"
|
|
232
|
-
[class.dislike-active]="currentRating === 'dislike'"
|
|
233
|
-
>
|
|
234
|
-
</svg-icon>
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
|
-
<div class="separator-table"></div>
|
|
238
|
-
<div
|
|
239
|
-
class="svg-group"
|
|
240
|
-
ngbTooltip="Post Review"
|
|
241
|
-
triggers="mouseenter:mouseleave"
|
|
242
|
-
tabindex="0"
|
|
243
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
244
|
-
placement="top"
|
|
245
|
-
>
|
|
246
|
-
<svg-icon
|
|
247
|
-
name="cai-checkmark"
|
|
248
|
-
class="checkmark-icon"
|
|
249
|
-
(click)="onSaveChanges()"
|
|
250
|
-
></svg-icon>
|
|
251
|
-
</div>
|
|
252
|
-
|
|
253
|
-
<div
|
|
254
|
-
class="svg-group"
|
|
255
|
-
ngbTooltip="Cancel"
|
|
256
|
-
triggers="mouseenter:mouseleave"
|
|
257
|
-
tabindex="0"
|
|
258
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
259
|
-
placement="top"
|
|
260
|
-
>
|
|
261
|
-
<svg-icon
|
|
262
|
-
name="cai-cancel"
|
|
263
|
-
class="cancel-icon"
|
|
264
|
-
(click)="onCancelReview()"
|
|
265
|
-
></svg-icon>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
}@else if(canExpand() && !expanded()){
|
|
269
|
-
<svg-icon name="cai-expand" class="expand-icon" />
|
|
270
|
-
}@else if(canExpand() && !currentUser && expanded()){
|
|
271
|
-
<svg-icon name="cai-expand" class="collapse-icon" />
|
|
272
|
-
} @else if(currentUser){
|
|
273
|
-
<div class="controls">
|
|
274
|
-
<div
|
|
275
|
-
class="svg-group"
|
|
276
|
-
ngbTooltip="Edit"
|
|
277
|
-
triggers="mouseenter:mouseleave"
|
|
278
|
-
tabindex="0"
|
|
279
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
280
|
-
placement="top"
|
|
281
|
-
>
|
|
282
|
-
<svg-icon
|
|
283
|
-
name="cai-edit"
|
|
284
|
-
(click)="onEdit()"
|
|
285
|
-
class="pencil-icon"
|
|
286
|
-
></svg-icon>
|
|
287
|
-
</div>
|
|
288
|
-
<div
|
|
289
|
-
class="svg-group"
|
|
290
|
-
ngbTooltip="Delete Review"
|
|
291
|
-
triggers="mouseenter:mouseleave"
|
|
292
|
-
tabindex="0"
|
|
293
|
-
[tooltipClass]="isDetails ? 'tooltip tooltip-m-b-2' : 'tooltip tooltip-m-b-2 tooltip-inverse'"
|
|
294
|
-
placement="top"
|
|
295
|
-
>
|
|
296
|
-
<svg-icon
|
|
297
|
-
name="cai-delete"
|
|
298
|
-
class="trash-icon"
|
|
299
|
-
(click)="onDelete()"
|
|
300
|
-
></svg-icon>
|
|
301
|
-
</div>
|
|
302
|
-
</div>
|
|
303
|
-
}
|
|
304
|
-
</div>
|
|
305
|
-
@if(comment || currentContent() || editing()){
|
|
306
|
-
<div
|
|
307
|
-
class="lower"
|
|
308
|
-
[contentEditable]="editing() ? 'true' : 'false'"
|
|
309
|
-
data-placeholder="Share details of your own experience..."
|
|
310
|
-
(input)="onChangeContent($event)"
|
|
311
|
-
[innerHTML]="renderedContent()"
|
|
312
|
-
(keydown)="limitLength($event)"
|
|
313
|
-
></div>
|
|
314
|
-
}}
|
|
315
|
-
</div>
|
|
316
|
-
@if(isTable && currentUser && !editing()){
|
|
317
|
-
<div class="bottom-divider-light"></div>
|
|
318
|
-
}
|
|
319
|
-
@if(currentUser && isDetails){
|
|
320
|
-
<div class="bottom-divider-dark"></div>
|
|
321
|
-
}
|