iss-ctrl 0.0.2 → 0.0.4
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 +24 -24
- package/fesm2022/iss-ctrl-checkbox.wrapper-BVw3Pu1B.mjs +81 -0
- package/fesm2022/iss-ctrl-checkbox.wrapper-BVw3Pu1B.mjs.map +1 -0
- package/fesm2022/iss-ctrl-chips.wrapper-FY02vbu1.mjs +83 -0
- package/fesm2022/iss-ctrl-chips.wrapper-FY02vbu1.mjs.map +1 -0
- package/fesm2022/iss-ctrl-date-picker.wrapper-BTyZyhiU.mjs +79 -0
- package/fesm2022/iss-ctrl-date-picker.wrapper-BTyZyhiU.mjs.map +1 -0
- package/fesm2022/iss-ctrl-date-range-picker.wrapper-BW1pwRKg.mjs +87 -0
- package/fesm2022/iss-ctrl-date-range-picker.wrapper-BW1pwRKg.mjs.map +1 -0
- package/fesm2022/iss-ctrl-datetime-picker.wrapper-h0P56I6e.mjs +83 -0
- package/fesm2022/iss-ctrl-datetime-picker.wrapper-h0P56I6e.mjs.map +1 -0
- package/fesm2022/iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs +245 -0
- package/fesm2022/iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs.map +1 -0
- package/fesm2022/iss-ctrl-input.wrapper-dK79kSim.mjs +83 -0
- package/fesm2022/iss-ctrl-input.wrapper-dK79kSim.mjs.map +1 -0
- package/fesm2022/iss-ctrl-iss-ctrl-BhZGHw0A.mjs +6024 -0
- package/fesm2022/iss-ctrl-iss-ctrl-BhZGHw0A.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-event.service-D_O5gUmg.mjs +62 -0
- package/fesm2022/iss-ctrl-load-event.service-D_O5gUmg.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-options-event.service-CylOcoz4.mjs +51 -0
- package/fesm2022/iss-ctrl-load-options-event.service-CylOcoz4.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-value-event.service-BRz28bIm.mjs +52 -0
- package/fesm2022/iss-ctrl-load-value-event.service-BRz28bIm.mjs.map +1 -0
- package/fesm2022/iss-ctrl-mobile.wrapper-DOvO-cRi.mjs +70 -0
- package/fesm2022/iss-ctrl-mobile.wrapper-DOvO-cRi.mjs.map +1 -0
- package/fesm2022/iss-ctrl-note.wrapper-BW6WOulk.mjs +43 -0
- package/fesm2022/iss-ctrl-note.wrapper-BW6WOulk.mjs.map +1 -0
- package/fesm2022/iss-ctrl-plate-number.wrapper-B_NXePR_.mjs +228 -0
- package/fesm2022/iss-ctrl-plate-number.wrapper-B_NXePR_.mjs.map +1 -0
- package/fesm2022/iss-ctrl-radio.wrapper-BHXkIyX9.mjs +84 -0
- package/fesm2022/iss-ctrl-radio.wrapper-BHXkIyX9.mjs.map +1 -0
- package/fesm2022/iss-ctrl-replace-api-keys.service-DNns4c2U.mjs +57 -0
- package/fesm2022/iss-ctrl-replace-api-keys.service-DNns4c2U.mjs.map +1 -0
- package/fesm2022/iss-ctrl-select.viewer-Bd4flLOk.mjs +30 -0
- package/fesm2022/iss-ctrl-select.viewer-Bd4flLOk.mjs.map +1 -0
- package/fesm2022/iss-ctrl-select.wrapper-B78Aap__.mjs +66 -0
- package/fesm2022/iss-ctrl-select.wrapper-B78Aap__.mjs.map +1 -0
- package/fesm2022/iss-ctrl-set-value-event.service-Dc4bcaTp.mjs +61 -0
- package/fesm2022/iss-ctrl-set-value-event.service-Dc4bcaTp.mjs.map +1 -0
- package/fesm2022/iss-ctrl-show-event.service-Bg9VNotN.mjs +18 -0
- package/fesm2022/iss-ctrl-show-event.service-Bg9VNotN.mjs.map +1 -0
- package/fesm2022/iss-ctrl-slide-toggle.wrapper-CRTpag4Q.mjs +75 -0
- package/fesm2022/iss-ctrl-slide-toggle.wrapper-CRTpag4Q.mjs.map +1 -0
- package/fesm2022/iss-ctrl-table.wrapper-B1q8mXCB.mjs +312 -0
- package/fesm2022/iss-ctrl-table.wrapper-B1q8mXCB.mjs.map +1 -0
- package/fesm2022/iss-ctrl-textarea.wrapper-LR5_KMxK.mjs +70 -0
- package/fesm2022/iss-ctrl-textarea.wrapper-LR5_KMxK.mjs.map +1 -0
- package/fesm2022/iss-ctrl-time-picker.wrapper-D_td2M3Z.mjs +67 -0
- package/fesm2022/iss-ctrl-time-picker.wrapper-D_td2M3Z.mjs.map +1 -0
- package/fesm2022/iss-ctrl-toggle-button.wrapper-DxA2jL1S.mjs +89 -0
- package/fesm2022/iss-ctrl-toggle-button.wrapper-DxA2jL1S.mjs.map +1 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value.service-CAnJWl6G.mjs +24 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value.service-CAnJWl6G.mjs.map +1 -0
- package/fesm2022/iss-ctrl-user-picker.wrapper-UeA0dCqd.mjs +190 -0
- package/fesm2022/iss-ctrl-user-picker.wrapper-UeA0dCqd.mjs.map +1 -0
- package/fesm2022/iss-ctrl-viewer.base-BCFfZsDG.mjs +17 -0
- package/fesm2022/iss-ctrl-viewer.base-BCFfZsDG.mjs.map +1 -0
- package/fesm2022/iss-ctrl.mjs +1 -3657
- package/fesm2022/iss-ctrl.mjs.map +1 -1
- package/package.json +10 -7
- package/types/iss-ctrl.d.ts +712 -0
- package/components/autocomplete/autocomplete.component.d.ts +0 -6
- package/components/base-ctrl.d.ts +0 -33
- package/components/checkbox/checkbox.component.d.ts +0 -16
- package/components/chips/chips.component.d.ts +0 -6
- package/components/ctrl-array/ctrl-array.component.d.ts +0 -6
- package/components/date-picker/date-adapter.d.ts +0 -37
- package/components/date-picker/date-picker.component.d.ts +0 -15
- package/components/date-range-picker/date-range-picker.component.d.ts +0 -19
- package/components/datetime-picker/datetime-picker.component.d.ts +0 -14
- package/components/datetime-range-picker/datetime-range-picker.component.d.ts +0 -6
- package/components/file-picker/file-picker.component.d.ts +0 -17
- package/components/hints/hints.component.d.ts +0 -9
- package/components/input/input.component.d.ts +0 -8
- package/components/mobile/COUNTRIES.d.ts +0 -2
- package/components/mobile/mobile.component.d.ts +0 -26
- package/components/mobile/phone.service.d.ts +0 -17
- package/components/note/note.component.d.ts +0 -6
- package/components/plate-number/plate-number.component.d.ts +0 -16
- package/components/radio/radio.component.d.ts +0 -11
- package/components/select/select.component.d.ts +0 -20
- package/components/slide-toggle/slide-toggle.component.d.ts +0 -7
- package/components/textarea/textarea.component.d.ts +0 -6
- package/components/time-picker/time-picker.component.d.ts +0 -19
- package/components/toggle-button/toggle-button.component.d.ts +0 -16
- package/directives/droppable.directive.d.ts +0 -10
- package/esm2022/components/autocomplete/autocomplete.component.mjs +0 -17
- package/esm2022/components/base-ctrl.mjs +0 -93
- package/esm2022/components/checkbox/checkbox.component.mjs +0 -73
- package/esm2022/components/chips/chips.component.mjs +0 -17
- package/esm2022/components/ctrl-array/ctrl-array.component.mjs +0 -17
- package/esm2022/components/date-picker/date-adapter.mjs +0 -183
- package/esm2022/components/date-picker/date-picker.component.mjs +0 -55
- package/esm2022/components/date-range-picker/date-range-picker.component.mjs +0 -101
- package/esm2022/components/datetime-picker/datetime-picker.component.mjs +0 -79
- package/esm2022/components/datetime-range-picker/datetime-range-picker.component.mjs +0 -17
- package/esm2022/components/file-picker/file-picker.component.mjs +0 -121
- package/esm2022/components/hints/hints.component.mjs +0 -66
- package/esm2022/components/input/input.component.mjs +0 -32
- package/esm2022/components/mobile/COUNTRIES.mjs +0 -2041
- package/esm2022/components/mobile/mobile.component.mjs +0 -141
- package/esm2022/components/mobile/phone.service.mjs +0 -99
- package/esm2022/components/note/note.component.mjs +0 -17
- package/esm2022/components/plate-number/plate-number.component.mjs +0 -114
- package/esm2022/components/radio/radio.component.mjs +0 -40
- package/esm2022/components/select/select.component.mjs +0 -123
- package/esm2022/components/slide-toggle/slide-toggle.component.mjs +0 -23
- package/esm2022/components/textarea/textarea.component.mjs +0 -17
- package/esm2022/components/time-picker/time-picker.component.mjs +0 -169
- package/esm2022/components/toggle-button/toggle-button.component.mjs +0 -87
- package/esm2022/directives/droppable.directive.mjs +0 -39
- package/esm2022/interfaces/country.interface.mjs +0 -2
- package/esm2022/interfaces/date-range-emission-object.mjs +0 -2
- package/esm2022/interfaces/hint.interface.mjs +0 -2
- package/esm2022/interfaces/iso2.interface.mjs +0 -2
- package/esm2022/interfaces/mobile.interface.mjs +0 -2
- package/esm2022/interfaces/option.interface.mjs +0 -2
- package/esm2022/interfaces/time.interface.mjs +0 -2
- package/esm2022/iss-ctrl.mjs +0 -5
- package/esm2022/pipes/select-status.pipe.mjs +0 -18
- package/esm2022/public-api.mjs +0 -20
- package/index.d.ts +0 -5
- package/interfaces/country.interface.d.ts +0 -10
- package/interfaces/date-range-emission-object.d.ts +0 -5
- package/interfaces/hint.interface.d.ts +0 -5
- package/interfaces/iso2.interface.d.ts +0 -1
- package/interfaces/mobile.interface.d.ts +0 -11
- package/interfaces/option.interface.d.ts +0 -4
- package/interfaces/time.interface.d.ts +0 -5
- package/pipes/select-status.pipe.d.ts +0 -8
- package/public-api.d.ts +0 -19
- package/src/components/mobile/flags/ad.svg +0 -154
- package/src/components/mobile/flags/ae.svg +0 -1
- package/src/components/mobile/flags/af.svg +0 -1
- package/src/components/mobile/flags/ag.svg +0 -1
- package/src/components/mobile/flags/ai.svg +0 -1
- package/src/components/mobile/flags/al.svg +0 -1
- package/src/components/mobile/flags/am.svg +0 -1
- package/src/components/mobile/flags/ao.svg +0 -1
- package/src/components/mobile/flags/aq.svg +0 -1
- package/src/components/mobile/flags/ar.svg +0 -1
- package/src/components/mobile/flags/as.svg +0 -1
- package/src/components/mobile/flags/at.svg +0 -1
- package/src/components/mobile/flags/au.svg +0 -1
- package/src/components/mobile/flags/aw.svg +0 -1
- package/src/components/mobile/flags/ax.svg +0 -1
- package/src/components/mobile/flags/az.svg +0 -1
- package/src/components/mobile/flags/ba.svg +0 -1
- package/src/components/mobile/flags/bb.svg +0 -7
- package/src/components/mobile/flags/bd.svg +0 -1
- package/src/components/mobile/flags/be.svg +0 -1
- package/src/components/mobile/flags/bf.svg +0 -1
- package/src/components/mobile/flags/bg.svg +0 -1
- package/src/components/mobile/flags/bh.svg +0 -1
- package/src/components/mobile/flags/bi.svg +0 -26
- package/src/components/mobile/flags/bj.svg +0 -1
- package/src/components/mobile/flags/bl.svg +0 -1
- package/src/components/mobile/flags/bm.svg +0 -1
- package/src/components/mobile/flags/bn.svg +0 -58
- package/src/components/mobile/flags/bo.svg +0 -1
- package/src/components/mobile/flags/bq.svg +0 -1
- package/src/components/mobile/flags/br.svg +0 -1
- package/src/components/mobile/flags/bs.svg +0 -1
- package/src/components/mobile/flags/bt.svg +0 -466
- package/src/components/mobile/flags/bv.svg +0 -1
- package/src/components/mobile/flags/bw.svg +0 -1
- package/src/components/mobile/flags/by.svg +0 -1
- package/src/components/mobile/flags/bz.svg +0 -1
- package/src/components/mobile/flags/ca.svg +0 -1
- package/src/components/mobile/flags/cc.svg +0 -19
- package/src/components/mobile/flags/cd.svg +0 -1
- package/src/components/mobile/flags/cf.svg +0 -1
- package/src/components/mobile/flags/cg.svg +0 -5
- package/src/components/mobile/flags/ch.svg +0 -1
- package/src/components/mobile/flags/ci.svg +0 -1
- package/src/components/mobile/flags/ck.svg +0 -1
- package/src/components/mobile/flags/cl.svg +0 -14
- package/src/components/mobile/flags/cm.svg +0 -15
- package/src/components/mobile/flags/cn.svg +0 -1
- package/src/components/mobile/flags/co.svg +0 -5
- package/src/components/mobile/flags/cr.svg +0 -1
- package/src/components/mobile/flags/cu.svg +0 -6
- package/src/components/mobile/flags/cv.svg +0 -24
- package/src/components/mobile/flags/cw.svg +0 -16
- package/src/components/mobile/flags/cx.svg +0 -15
- package/src/components/mobile/flags/cy.svg +0 -1
- package/src/components/mobile/flags/cz.svg +0 -5
- package/src/components/mobile/flags/de.svg +0 -1
- package/src/components/mobile/flags/dj.svg +0 -1
- package/src/components/mobile/flags/dk.svg +0 -5
- package/src/components/mobile/flags/dm.svg +0 -1
- package/src/components/mobile/flags/do.svg +0 -1
- package/src/components/mobile/flags/dz.svg +0 -5
- package/src/components/mobile/flags/ec.svg +0 -519
- package/src/components/mobile/flags/ee.svg +0 -1
- package/src/components/mobile/flags/eg.svg +0 -78
- package/src/components/mobile/flags/eh.svg +0 -9
- package/src/components/mobile/flags/er.svg +0 -6
- package/src/components/mobile/flags/es.svg +0 -1
- package/src/components/mobile/flags/et.svg +0 -1
- package/src/components/mobile/flags/eu.svg +0 -1
- package/src/components/mobile/flags/fi.svg +0 -5
- package/src/components/mobile/flags/fj.svg +0 -1
- package/src/components/mobile/flags/fk.svg +0 -1
- package/src/components/mobile/flags/fm.svg +0 -16
- package/src/components/mobile/flags/fo.svg +0 -11
- package/src/components/mobile/flags/fr.svg +0 -1
- package/src/components/mobile/flags/ga.svg +0 -5
- package/src/components/mobile/flags/gb-eng.svg +0 -7
- package/src/components/mobile/flags/gb-nir.svg +0 -1
- package/src/components/mobile/flags/gb-sct.svg +0 -1
- package/src/components/mobile/flags/gb-wls.svg +0 -9
- package/src/components/mobile/flags/gb.svg +0 -1
- package/src/components/mobile/flags/gd.svg +0 -1
- package/src/components/mobile/flags/ge.svg +0 -1
- package/src/components/mobile/flags/gf.svg +0 -1
- package/src/components/mobile/flags/gg.svg +0 -8
- package/src/components/mobile/flags/gh.svg +0 -6
- package/src/components/mobile/flags/gi.svg +0 -54
- package/src/components/mobile/flags/gl.svg +0 -4
- package/src/components/mobile/flags/gm.svg +0 -7
- package/src/components/mobile/flags/gn.svg +0 -5
- package/src/components/mobile/flags/gp.svg +0 -1
- package/src/components/mobile/flags/gq.svg +0 -75
- package/src/components/mobile/flags/gr.svg +0 -1
- package/src/components/mobile/flags/gs.svg +0 -1
- package/src/components/mobile/flags/gt.svg +0 -214
- package/src/components/mobile/flags/gu.svg +0 -1
- package/src/components/mobile/flags/gw.svg +0 -13
- package/src/components/mobile/flags/gy.svg +0 -7
- package/src/components/mobile/flags/hk.svg +0 -1
- package/src/components/mobile/flags/hm.svg +0 -1
- package/src/components/mobile/flags/hn.svg +0 -1
- package/src/components/mobile/flags/hr.svg +0 -1
- package/src/components/mobile/flags/ht.svg +0 -1
- package/src/components/mobile/flags/hu.svg +0 -1
- package/src/components/mobile/flags/id.svg +0 -1
- package/src/components/mobile/flags/ie.svg +0 -1
- package/src/components/mobile/flags/il.svg +0 -1
- package/src/components/mobile/flags/im.svg +0 -1
- package/src/components/mobile/flags/in.svg +0 -1
- package/src/components/mobile/flags/io.svg +0 -1
- package/src/components/mobile/flags/iq.svg +0 -1
- package/src/components/mobile/flags/ir.svg +0 -31
- package/src/components/mobile/flags/is.svg +0 -1
- package/src/components/mobile/flags/it.svg +0 -1
- package/src/components/mobile/flags/je.svg +0 -1
- package/src/components/mobile/flags/jm.svg +0 -1
- package/src/components/mobile/flags/jo.svg +0 -7
- package/src/components/mobile/flags/jp.svg +0 -4
- package/src/components/mobile/flags/ke.svg +0 -23
- package/src/components/mobile/flags/kg.svg +0 -1
- package/src/components/mobile/flags/kh.svg +0 -116
- package/src/components/mobile/flags/ki.svg +0 -1
- package/src/components/mobile/flags/km.svg +0 -13
- package/src/components/mobile/flags/kn.svg +0 -1
- package/src/components/mobile/flags/kp.svg +0 -16
- package/src/components/mobile/flags/kr.svg +0 -1
- package/src/components/mobile/flags/kw.svg +0 -6
- package/src/components/mobile/flags/ky.svg +0 -1
- package/src/components/mobile/flags/kz.svg +0 -37
- package/src/components/mobile/flags/la.svg +0 -1
- package/src/components/mobile/flags/lb.svg +0 -5
- package/src/components/mobile/flags/lc.svg +0 -6
- package/src/components/mobile/flags/li.svg +0 -56
- package/src/components/mobile/flags/lk.svg +0 -1
- package/src/components/mobile/flags/lr.svg +0 -15
- package/src/components/mobile/flags/ls.svg +0 -23
- package/src/components/mobile/flags/lt.svg +0 -1
- package/src/components/mobile/flags/lu.svg +0 -1
- package/src/components/mobile/flags/lv.svg +0 -1
- package/src/components/mobile/flags/ly.svg +0 -8
- package/src/components/mobile/flags/ma.svg +0 -1
- package/src/components/mobile/flags/mc.svg +0 -1
- package/src/components/mobile/flags/md.svg +0 -1
- package/src/components/mobile/flags/me.svg +0 -93
- package/src/components/mobile/flags/mf.svg +0 -1
- package/src/components/mobile/flags/mg.svg +0 -1
- package/src/components/mobile/flags/mh.svg +0 -1
- package/src/components/mobile/flags/mk.svg +0 -1
- package/src/components/mobile/flags/ml.svg +0 -5
- package/src/components/mobile/flags/mm.svg +0 -12
- package/src/components/mobile/flags/mn.svg +0 -1
- package/src/components/mobile/flags/mo.svg +0 -10
- package/src/components/mobile/flags/mp.svg +0 -1
- package/src/components/mobile/flags/mq.svg +0 -1
- package/src/components/mobile/flags/mr.svg +0 -1
- package/src/components/mobile/flags/ms.svg +0 -1
- package/src/components/mobile/flags/mt.svg +0 -1
- package/src/components/mobile/flags/mu.svg +0 -1
- package/src/components/mobile/flags/mv.svg +0 -1
- package/src/components/mobile/flags/mw.svg +0 -24
- package/src/components/mobile/flags/mx.svg +0 -1
- package/src/components/mobile/flags/my.svg +0 -1
- package/src/components/mobile/flags/mz.svg +0 -13
- package/src/components/mobile/flags/na.svg +0 -1
- package/src/components/mobile/flags/nc.svg +0 -1
- package/src/components/mobile/flags/ne.svg +0 -6
- package/src/components/mobile/flags/nf.svg +0 -5
- package/src/components/mobile/flags/ng.svg +0 -4
- package/src/components/mobile/flags/ni.svg +0 -161
- package/src/components/mobile/flags/nl.svg +0 -1
- package/src/components/mobile/flags/no.svg +0 -1
- package/src/components/mobile/flags/np.svg +0 -33
- package/src/components/mobile/flags/nr.svg +0 -1
- package/src/components/mobile/flags/nu.svg +0 -1
- package/src/components/mobile/flags/nz.svg +0 -1
- package/src/components/mobile/flags/om.svg +0 -1
- package/src/components/mobile/flags/pa.svg +0 -1
- package/src/components/mobile/flags/pe.svg +0 -320
- package/src/components/mobile/flags/pf.svg +0 -1
- package/src/components/mobile/flags/pg.svg +0 -13
- package/src/components/mobile/flags/ph.svg +0 -1
- package/src/components/mobile/flags/pk.svg +0 -1
- package/src/components/mobile/flags/pl.svg +0 -1
- package/src/components/mobile/flags/pm.svg +0 -1
- package/src/components/mobile/flags/pn.svg +0 -1
- package/src/components/mobile/flags/pr.svg +0 -1
- package/src/components/mobile/flags/ps.svg +0 -1
- package/src/components/mobile/flags/pt.svg +0 -1
- package/src/components/mobile/flags/pw.svg +0 -1
- package/src/components/mobile/flags/py.svg +0 -1
- package/src/components/mobile/flags/qa.svg +0 -1
- package/src/components/mobile/flags/re.svg +0 -1
- package/src/components/mobile/flags/ro.svg +0 -1
- package/src/components/mobile/flags/rs.svg +0 -1
- package/src/components/mobile/flags/ru.svg +0 -1
- package/src/components/mobile/flags/rw.svg +0 -13
- package/src/components/mobile/flags/sa.svg +0 -1
- package/src/components/mobile/flags/sb.svg +0 -1
- package/src/components/mobile/flags/sc.svg +0 -7
- package/src/components/mobile/flags/sd.svg +0 -6
- package/src/components/mobile/flags/se.svg +0 -5
- package/src/components/mobile/flags/sg.svg +0 -11
- package/src/components/mobile/flags/sh.svg +0 -1
- package/src/components/mobile/flags/si.svg +0 -1
- package/src/components/mobile/flags/sj.svg +0 -1
- package/src/components/mobile/flags/sk.svg +0 -1
- package/src/components/mobile/flags/sl.svg +0 -1
- package/src/components/mobile/flags/sm.svg +0 -1
- package/src/components/mobile/flags/sn.svg +0 -1
- package/src/components/mobile/flags/so.svg +0 -1
- package/src/components/mobile/flags/sr.svg +0 -1
- package/src/components/mobile/flags/ss.svg +0 -1
- package/src/components/mobile/flags/st.svg +0 -1
- package/src/components/mobile/flags/sv.svg +0 -1
- package/src/components/mobile/flags/sx.svg +0 -1
- package/src/components/mobile/flags/sy.svg +0 -1
- package/src/components/mobile/flags/sz.svg +0 -1
- package/src/components/mobile/flags/tc.svg +0 -1
- package/src/components/mobile/flags/td.svg +0 -1
- package/src/components/mobile/flags/tf.svg +0 -1
- package/src/components/mobile/flags/tg.svg +0 -1
- package/src/components/mobile/flags/th.svg +0 -1
- package/src/components/mobile/flags/tj.svg +0 -1
- package/src/components/mobile/flags/tk.svg +0 -1
- package/src/components/mobile/flags/tl.svg +0 -1
- package/src/components/mobile/flags/tm.svg +0 -1
- package/src/components/mobile/flags/tn.svg +0 -9
- package/src/components/mobile/flags/to.svg +0 -1
- package/src/components/mobile/flags/tr.svg +0 -1
- package/src/components/mobile/flags/tt.svg +0 -5
- package/src/components/mobile/flags/tv.svg +0 -1
- package/src/components/mobile/flags/tw.svg +0 -1
- package/src/components/mobile/flags/tz.svg +0 -1
- package/src/components/mobile/flags/ua.svg +0 -1
- package/src/components/mobile/flags/ug.svg +0 -1
- package/src/components/mobile/flags/um.svg +0 -1
- package/src/components/mobile/flags/us.svg +0 -1
- package/src/components/mobile/flags/uy.svg +0 -1
- package/src/components/mobile/flags/uz.svg +0 -1
- package/src/components/mobile/flags/va.svg +0 -1
- package/src/components/mobile/flags/vc.svg +0 -1
- package/src/components/mobile/flags/ve.svg +0 -1
- package/src/components/mobile/flags/vg.svg +0 -1
- package/src/components/mobile/flags/vi.svg +0 -1
- package/src/components/mobile/flags/vn.svg +0 -1
- package/src/components/mobile/flags/vu.svg +0 -1
- package/src/components/mobile/flags/wf.svg +0 -1
- package/src/components/mobile/flags/ws.svg +0 -1
- package/src/components/mobile/flags/xk.svg +0 -1
- package/src/components/mobile/flags/ye.svg +0 -1
- package/src/components/mobile/flags/yt.svg +0 -1
- package/src/components/mobile/flags/za.svg +0 -1
- package/src/components/mobile/flags/zm.svg +0 -1
- package/src/components/mobile/flags/zw.svg +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, Injectable } from '@angular/core';
|
|
4
|
+
import { map, EMPTY } from 'rxjs';
|
|
5
|
+
import { n as PLACEHOLDER_REGEX } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
6
|
+
import { ReplaceApiKeysService } from './iss-ctrl-replace-api-keys.service-DNns4c2U.mjs';
|
|
7
|
+
|
|
8
|
+
const API_RESPONSE_MAPPER = new InjectionToken("Map backend response to required response interface.");
|
|
9
|
+
|
|
10
|
+
function isValidEndpoint(api) {
|
|
11
|
+
if (api.includes("undefined") || api.includes("null")) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
return !api.match(PLACEHOLDER_REGEX)?.length && !["undefined", "null"].includes(api);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class IssHttp {
|
|
18
|
+
#http = inject(HttpClient);
|
|
19
|
+
#apiResponseMapper = inject(API_RESPONSE_MAPPER);
|
|
20
|
+
get(url) {
|
|
21
|
+
if (isValidEndpoint(url)) {
|
|
22
|
+
return this.#http.get(url).pipe(map((res) => this.#apiResponseMapper(res)));
|
|
23
|
+
}
|
|
24
|
+
return EMPTY;
|
|
25
|
+
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: IssHttp, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: IssHttp, providedIn: "root" });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: IssHttp, decorators: [{
|
|
30
|
+
type: Injectable,
|
|
31
|
+
args: [{ providedIn: "root" }]
|
|
32
|
+
}] });
|
|
33
|
+
|
|
34
|
+
const HOST = new InjectionToken("Backend Host to call");
|
|
35
|
+
|
|
36
|
+
class LoadEventService {
|
|
37
|
+
#replaceApiKeysService = inject(ReplaceApiKeysService);
|
|
38
|
+
#host = inject(HOST);
|
|
39
|
+
getApi(args) {
|
|
40
|
+
let api;
|
|
41
|
+
if (args.action.config.fn) {
|
|
42
|
+
api = args.action.config.fn.execute(args);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
api = this.#replaceApiKeysService.execute(args);
|
|
46
|
+
}
|
|
47
|
+
return `${this.#host}${api}`;
|
|
48
|
+
}
|
|
49
|
+
fetchErrorHandler(args, err) {
|
|
50
|
+
console.error(err);
|
|
51
|
+
args.field.loading.set(false);
|
|
52
|
+
}
|
|
53
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
54
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadEventService, providedIn: "root" });
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadEventService, decorators: [{
|
|
57
|
+
type: Injectable,
|
|
58
|
+
args: [{ providedIn: "root" }]
|
|
59
|
+
}] });
|
|
60
|
+
|
|
61
|
+
export { HOST as H, IssHttp as I, LoadEventService as L };
|
|
62
|
+
//# sourceMappingURL=iss-ctrl-load-event.service-D_O5gUmg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-load-event.service-D_O5gUmg.mjs","sources":["../../../projects/iss/src/shared/tokens/api-response-mapper.token.ts","../../../projects/iss/src/shared/utilities/is-valid-api.util.ts","../../../projects/iss/src/shared/utilities/http.util.service.ts","../../../projects/iss/src/shared/tokens/host.token.ts","../../../projects/iss/src/events/load/load-event.service.ts"],"sourcesContent":["import {InjectionToken} from \"@angular/core\";\r\nimport {Dto} from \"../interfaces/dto.interface\";\r\n\r\nexport const API_RESPONSE_MAPPER: InjectionToken<(res: any) => Dto> = new InjectionToken(\"Map backend response to required response interface.\");\r\n","import {PLACEHOLDER_REGEX} from \"../constants/regex.const\";\r\n\r\nexport function isValidEndpoint(api: string): boolean {\r\n if (api.includes(\"undefined\") || api.includes(\"null\")) {\r\n return false;\r\n }\r\n return !api.match(PLACEHOLDER_REGEX)?.length && ![\"undefined\", \"null\"].includes(api);\r\n}\r\n","import {HttpClient} from \"@angular/common/http\";\r\nimport {inject, Injectable} from \"@angular/core\";\r\nimport {EMPTY, map, Observable} from \"rxjs\";\r\nimport {Dto} from \"../interfaces/dto.interface\";\r\nimport {API_RESPONSE_MAPPER} from \"../tokens/api-response-mapper.token\";\r\nimport {isValidEndpoint} from \"./is-valid-api.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class IssHttp {\r\n #http: HttpClient = inject(HttpClient);\r\n #apiResponseMapper = inject(API_RESPONSE_MAPPER);\r\n\r\n get<T>(url: string): Observable<Dto> {\r\n if (isValidEndpoint(url)) {\r\n return this.#http.get<T>(url).pipe(map((res: any): Dto => this.#apiResponseMapper(res)));\r\n }\r\n return EMPTY;\r\n }\r\n}\r\n","import {InjectionToken} from \"@angular/core\";\r\n\r\nexport const HOST: InjectionToken<string> = new InjectionToken(\"Backend Host to call\");\r\n","import {inject, Injectable} from \"@angular/core\";\r\nimport {FieldEventArgument} from \"../../shared/interfaces/field.interface\";\r\nimport {HOST} from \"../../shared/tokens/host.token\";\r\nimport {ReplaceApiKeysService} from \"./replace-api-keys.service\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class LoadEventService {\r\n #replaceApiKeysService = inject(ReplaceApiKeysService);\r\n #host: string = inject(HOST);\r\n\r\n getApi(args: FieldEventArgument) {\r\n let api;\r\n if (args.action.config.fn) {\r\n api = args.action.config.fn.execute(args);\r\n } else {\r\n api = this.#replaceApiKeysService.execute(args);\r\n }\r\n\r\n return `${this.#host}${api}`;\r\n }\r\n\r\n fetchErrorHandler(args: FieldEventArgument, err: any) {\r\n console.error(err);\r\n args.field.loading.set(false);\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;AAGO,MAAM,mBAAmB,GAAsC,IAAI,cAAc,CAAC,sDAAsD,CAAC;;ACD1I,SAAU,eAAe,CAAC,GAAW,EAAA;AACzC,IAAA,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AACrD,QAAA,OAAO,KAAK;IACd;IACA,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;AACtF;;MCCa,OAAO,CAAA;AAClB,IAAA,KAAK,GAAe,MAAM,CAAC,UAAU,CAAC;AACtC,IAAA,kBAAkB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAEhD,IAAA,GAAG,CAAI,GAAW,EAAA;AAChB,QAAA,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE;YACxB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAQ,KAAU,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1F;AACA,QAAA,OAAO,KAAK;IACd;uGATW,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAP,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,OAAO,cADK,MAAM,EAAA,CAAA;;2FAClB,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;MCLnB,IAAI,GAA2B,IAAI,cAAc,CAAC,sBAAsB;;MCIxE,gBAAgB,CAAA;AAC3B,IAAA,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACtD,IAAA,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC;AAE5B,IAAA,MAAM,CAAC,IAAwB,EAAA;AAC7B,QAAA,IAAI,GAAG;QACP,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE;AACzB,YAAA,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC3C;aAAO;YACL,GAAG,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC;QACjD;AAEA,QAAA,OAAO,GAAG,IAAI,CAAC,KAAK,CAAA,EAAG,GAAG,EAAE;IAC9B;IAEA,iBAAiB,CAAC,IAAwB,EAAE,GAAQ,EAAA;AAClD,QAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QAClB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;IAC/B;uGAlBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cADJ,MAAM,EAAA,CAAA;;2FAClB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { L as LoadEventService, I as IssHttp, H as HOST } from './iss-ctrl-load-event.service-D_O5gUmg.mjs';
|
|
4
|
+
import { m as getPropertyByPath } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
5
|
+
|
|
6
|
+
class LoadOptionsEventService {
|
|
7
|
+
loadEvent = inject(LoadEventService);
|
|
8
|
+
#http = inject(IssHttp);
|
|
9
|
+
#host = inject(HOST);
|
|
10
|
+
fire(args) {
|
|
11
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Load Event Fired", "color: green");
|
|
12
|
+
const api = this.loadEvent.getApi(args);
|
|
13
|
+
args.field.loading.set(true);
|
|
14
|
+
this.#http.get(api).subscribe({
|
|
15
|
+
next: (response) => {
|
|
16
|
+
args.field.response = response;
|
|
17
|
+
args.field.apiResponse.next(response.data);
|
|
18
|
+
if (args.action.config.afterFetchFn) {
|
|
19
|
+
args.action.config.afterFetchFn?.execute(args);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
args.field.options.set(args.field.response.data);
|
|
23
|
+
if (args.action.config.setValueFromApiResponse) {
|
|
24
|
+
args.control.setValue(getPropertyByPath(args.field.response, args.action.config.setValueFromApiResponse));
|
|
25
|
+
}
|
|
26
|
+
if (args.action.config.disableAfterFetching) {
|
|
27
|
+
args.control.disable();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
args.field.loading.set(false);
|
|
31
|
+
},
|
|
32
|
+
error: (err) => {
|
|
33
|
+
// todo handle errors
|
|
34
|
+
this.loadEvent.fetchErrorHandler(args, err);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
args.action.triggered = true;
|
|
38
|
+
}
|
|
39
|
+
revert(args) {
|
|
40
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Load Event Reverted", "color: red");
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadOptionsEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadOptionsEventService, providedIn: "root" });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadOptionsEventService, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{ providedIn: "root" }]
|
|
48
|
+
}] });
|
|
49
|
+
|
|
50
|
+
export { LoadOptionsEventService };
|
|
51
|
+
//# sourceMappingURL=iss-ctrl-load-options-event.service-CylOcoz4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-load-options-event.service-CylOcoz4.mjs","sources":["../../../projects/iss/src/events/load/load-options-event.service.ts"],"sourcesContent":["import {inject, Injectable} from \"@angular/core\";\r\nimport {Dto} from \"../../shared/interfaces/dto.interface\";\r\nimport {FieldEvent, FieldEventArgument} from \"../../shared/interfaces/field.interface\";\r\nimport {HOST} from \"../../shared/tokens/host.token\";\r\nimport {getPropertyByPath} from \"../../shared/utilities/get-property-by-path.util\";\r\nimport {IssHttp} from \"../../shared/utilities/http.util.service\";\r\nimport {LoadEventService} from \"./load-event.service\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class LoadOptionsEventService implements FieldEvent {\r\n loadEvent = inject(LoadEventService);\r\n #http: IssHttp = inject(IssHttp);\r\n #host: string = inject(HOST);\r\n\r\n fire(args: FieldEventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Load Event Fired\", \"color: green\");\r\n const api = this.loadEvent.getApi(args);\r\n\r\n args.field.loading.set(true);\r\n this.#http.get(api).subscribe({\r\n next: (response: Dto) => {\r\n args.field.response = response;\r\n args.field.apiResponse.next(response.data);\r\n\r\n if (args.action.config.afterFetchFn) {\r\n args.action.config.afterFetchFn?.execute(args);\r\n } else {\r\n args.field.options.set(args.field.response.data);\r\n\r\n if (args.action.config.setValueFromApiResponse) {\r\n args.control.setValue(getPropertyByPath(args.field.response, args.action.config.setValueFromApiResponse));\r\n }\r\n\r\n if (args.action.config.disableAfterFetching) {\r\n args.control.disable();\r\n }\r\n }\r\n args.field.loading.set(false);\r\n },\r\n error: (err) => {\r\n // todo handle errors\r\n this.loadEvent.fetchErrorHandler(args, err);\r\n },\r\n });\r\n args.action.triggered = true;\r\n }\r\n\r\n revert(args: FieldEventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Load Event Reverted\", \"color: red\");\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;MASa,uBAAuB,CAAA;AAClC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACpC,IAAA,KAAK,GAAY,MAAM,CAAC,OAAO,CAAC;AAChC,IAAA,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC;AAE5B,IAAA,IAAI,CAAC,IAAwB,EAAA;QAC3B,OAAO,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAA,GAAA,CAAK,GAAG,qBAAqB,EAAE,cAAc,CAAC;QACvH,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;QAEvC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC;AAC5B,YAAA,IAAI,EAAE,CAAC,QAAa,KAAI;AACtB,gBAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ;gBAC9B,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAE1C,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;oBACnC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC;gBAChD;qBAAO;AACL,oBAAA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAEhD,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB,EAAE;wBAC9C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;oBAC3G;oBAEA,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE;AAC3C,wBAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;oBACxB;gBACF;gBACA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;YAC/B,CAAC;AACD,YAAA,KAAK,EAAE,CAAC,GAAG,KAAI;;gBAEb,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC;YAC7C,CAAC;AACF,SAAA,CAAC;AACF,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI;IAC9B;AAEA,IAAA,MAAM,CAAC,IAAwB,EAAA;QAC7B,OAAO,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAA,GAAA,CAAK,GAAG,wBAAwB,EAAE,YAAY,CAAC;IAC1H;uGAxCW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADX,MAAM,EAAA,CAAA;;2FAClB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { m as getPropertyByPath } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
4
|
+
import { L as LoadEventService, I as IssHttp } from './iss-ctrl-load-event.service-D_O5gUmg.mjs';
|
|
5
|
+
|
|
6
|
+
class LoadValueEventService {
|
|
7
|
+
loadEvent = inject(LoadEventService);
|
|
8
|
+
#http = inject(IssHttp);
|
|
9
|
+
fire(args) {
|
|
10
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Load Event Fired", "color: green");
|
|
11
|
+
const api = this.loadEvent.getApi(args);
|
|
12
|
+
args.field.loading.set(true);
|
|
13
|
+
this.#http.get(api).subscribe({
|
|
14
|
+
next: (response) => {
|
|
15
|
+
args.field.response = response;
|
|
16
|
+
args.field.apiResponse.next(response.data);
|
|
17
|
+
if (args.action.config.afterFetchFn) {
|
|
18
|
+
args.action.config.afterFetchFn?.execute(args);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
if (args.action?.config?.setValueFromApiResponse) {
|
|
22
|
+
args.control.setValue(getPropertyByPath(args.field.response, args.action.config.setValueFromApiResponse));
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
args.control.setValue(args.field.response.data);
|
|
26
|
+
}
|
|
27
|
+
if (args.action.config.disableAfterFetching) {
|
|
28
|
+
args.control.disable();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
args.field.loading.set(false);
|
|
32
|
+
},
|
|
33
|
+
error: (err) => {
|
|
34
|
+
// todo handle errors
|
|
35
|
+
this.loadEvent.fetchErrorHandler(args, err);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
args.action.triggered = true;
|
|
39
|
+
}
|
|
40
|
+
revert(args) {
|
|
41
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Load Event Reverted", "color: red");
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadValueEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadValueEventService, providedIn: "root" });
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LoadValueEventService, decorators: [{
|
|
47
|
+
type: Injectable,
|
|
48
|
+
args: [{ providedIn: "root" }]
|
|
49
|
+
}] });
|
|
50
|
+
|
|
51
|
+
export { LoadValueEventService };
|
|
52
|
+
//# sourceMappingURL=iss-ctrl-load-value-event.service-BRz28bIm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-load-value-event.service-BRz28bIm.mjs","sources":["../../../projects/iss/src/events/load/load-value-event.service.ts"],"sourcesContent":["import {inject, Injectable} from \"@angular/core\";\r\nimport {Dto} from \"../../shared/interfaces/dto.interface\";\r\nimport {FieldEvent, FieldEventArgument} from \"../../shared/interfaces/field.interface\";\r\nimport {getPropertyByPath} from \"../../shared/utilities/get-property-by-path.util\";\r\nimport {IssHttp} from \"../../shared/utilities/http.util.service\";\r\nimport {LoadEventService} from \"./load-event.service\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class LoadValueEventService implements FieldEvent {\r\n loadEvent = inject(LoadEventService);\r\n #http: IssHttp = inject(IssHttp);\r\n\r\n fire(args: FieldEventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Load Event Fired\", \"color: green\");\r\n const api = this.loadEvent.getApi(args);\r\n\r\n args.field.loading.set(true);\r\n this.#http.get(api).subscribe({\r\n next: (response: Dto) => {\r\n args.field.response = response;\r\n args.field.apiResponse.next(response.data);\r\n\r\n if (args.action.config.afterFetchFn) {\r\n args.action.config.afterFetchFn?.execute(args);\r\n } else {\r\n if (args.action?.config?.setValueFromApiResponse) {\r\n args.control.setValue(getPropertyByPath(args.field.response, args.action.config.setValueFromApiResponse));\r\n } else {\r\n args.control.setValue(args.field.response.data);\r\n }\r\n\r\n if (args.action.config.disableAfterFetching) {\r\n args.control.disable();\r\n }\r\n }\r\n\r\n args.field.loading.set(false);\r\n },\r\n error: (err) => {\r\n // todo handle errors\r\n this.loadEvent.fetchErrorHandler(args, err);\r\n },\r\n });\r\n args.action.triggered = true;\r\n }\r\n\r\n revert(args: FieldEventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Load Event Reverted\", \"color: red\");\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;MAQa,qBAAqB,CAAA;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACpC,IAAA,KAAK,GAAY,MAAM,CAAC,OAAO,CAAC;AAEhC,IAAA,IAAI,CAAC,IAAwB,EAAA;QAC3B,OAAO,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAA,GAAA,CAAK,GAAG,qBAAqB,EAAE,cAAc,CAAC;QACvH,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;QAEvC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC;AAC5B,YAAA,IAAI,EAAE,CAAC,QAAa,KAAI;AACtB,gBAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ;gBAC9B,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAE1C,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;oBACnC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC;gBAChD;qBAAO;oBACL,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE;wBAChD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;oBAC3G;yBAAO;AACL,wBAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;oBACjD;oBAEA,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE;AAC3C,wBAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;oBACxB;gBACF;gBAEA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;YAC/B,CAAC;AACD,YAAA,KAAK,EAAE,CAAC,GAAG,KAAI;;gBAEb,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC;YAC7C,CAAC;AACF,SAAA,CAAC;AACF,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI;IAC9B;AAEA,IAAA,MAAM,CAAC,IAAwB,EAAA;QAC7B,OAAO,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAA,GAAA,CAAK,GAAG,wBAAwB,EAAE,YAAY,CAAC;IAC1H;uGAxCW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAArB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADT,MAAM,EAAA,CAAA;;2FAClB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
6
|
+
import { W as WrapperBase, V as VIEW_PROVIDER, M as MobileControl } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
7
|
+
import { V as ViewerBase } from './iss-ctrl-viewer.base-BCFfZsDG.mjs';
|
|
8
|
+
|
|
9
|
+
class MobileViewer extends ViewerBase {
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MobileViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: MobileViewer, isStandalone: true, selector: "iss-vwr-mobile", usesInheritance: true, ngImport: i0, template: `
|
|
12
|
+
<p>{{ field().value }}</p>
|
|
13
|
+
`, isInline: true });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MobileViewer, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: "iss-vwr-mobile",
|
|
19
|
+
standalone: true,
|
|
20
|
+
template: `
|
|
21
|
+
<p>{{ field().value }}</p>
|
|
22
|
+
`,
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
class MobileWrapper extends WrapperBase {
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MobileWrapper, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: MobileWrapper, isStandalone: true, selector: "iss-wrp-mobile", usesInheritance: true, ngImport: i0, template: `
|
|
29
|
+
@if (field.isVisible() && field.registered()) {
|
|
30
|
+
@if (!(field.config.hideLabel)) {
|
|
31
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@if (field.mode() === "edit") {
|
|
35
|
+
<iss-ctrl-mobile [formControlName]="field.name" />
|
|
36
|
+
} @else {
|
|
37
|
+
<iss-vwr-mobile [field]="field" />
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "component", type: MobileControl, selector: "iss-ctrl-mobile", inputs: ["preferredCountries"] }, { kind: "component", type: MobileViewer, selector: "iss-vwr-mobile" }], viewProviders: [VIEW_PROVIDER] });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: MobileWrapper, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: "iss-wrp-mobile",
|
|
46
|
+
viewProviders: [VIEW_PROVIDER],
|
|
47
|
+
imports: [
|
|
48
|
+
ReactiveFormsModule,
|
|
49
|
+
MatLabel,
|
|
50
|
+
MobileControl,
|
|
51
|
+
MobileViewer
|
|
52
|
+
],
|
|
53
|
+
template: `
|
|
54
|
+
@if (field.isVisible() && field.registered()) {
|
|
55
|
+
@if (!(field.config.hideLabel)) {
|
|
56
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@if (field.mode() === "edit") {
|
|
60
|
+
<iss-ctrl-mobile [formControlName]="field.name" />
|
|
61
|
+
} @else {
|
|
62
|
+
<iss-vwr-mobile [field]="field" />
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`
|
|
66
|
+
}]
|
|
67
|
+
}] });
|
|
68
|
+
|
|
69
|
+
export { MobileWrapper };
|
|
70
|
+
//# sourceMappingURL=iss-ctrl-mobile.wrapper-DOvO-cRi.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-mobile.wrapper-DOvO-cRi.mjs","sources":["../../../projects/iss/src/components/controls/mobile/mobile.viewer.ts","../../../projects/iss/src/components/controls/mobile/mobile.wrapper.ts"],"sourcesContent":["import {Component} from \"@angular/core\";\r\nimport {ViewerBase} from \"../base/viewer.base\";\r\n\r\n@Component({\r\n selector: \"iss-vwr-mobile\",\r\n standalone: true,\r\n template: `\r\n <p>{{ field().value }}</p>\r\n `,\r\n})\r\nexport class MobileViewer extends ViewerBase {}\r\n","import {Component} from \"@angular/core\";\r\nimport {ReactiveFormsModule} from \"@angular/forms\";\r\nimport {MatLabel} from \"@angular/material/form-field\";\r\nimport {VIEW_PROVIDER} from \"../../../shared/constants/provider.const\";\r\nimport {WrapperBase} from \"../base/wrapper.base\";\r\nimport {MobileControl} from \"./mobile.control\";\r\nimport {MobileViewer} from \"./mobile.viewer\";\r\n\r\n@Component({\r\n selector: \"iss-wrp-mobile\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel,\r\n MobileControl,\r\n MobileViewer\r\n ],\r\n template: `\r\n @if (field.isVisible() && field.registered()) {\r\n @if (!(field.config.hideLabel)) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n\r\n @if (field.mode() === \"edit\") {\r\n <iss-ctrl-mobile [formControlName]=\"field.name\" />\r\n } @else {\r\n <iss-vwr-mobile [field]=\"field\" />\r\n }\r\n }\r\n `\r\n})\r\nexport class MobileWrapper extends WrapperBase {}\r\n"],"names":[],"mappings":";;;;;;;;AAUM,MAAO,YAAa,SAAQ,UAAU,CAAA;uGAA/B,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJb,CAAA;;AAET,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAEU,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA;;AAET,EAAA,CAAA;AACF,iBAAA;;;ACsBK,MAAO,aAAc,SAAQ,WAAW,CAAA;uGAAjC,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAdd,CAAA;;;;;;;;;;;;GAYT,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAjBC,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACR,aAAa,4FACb,YAAY,EAAA,QAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,aAAA,EALC,CAAC,aAAa,CAAC,EAAA,CAAA;;2FAqBnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAvBzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,aAAa,EAAE,CAAC,aAAa,CAAC;AAC9B,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,QAAQ;wBACR,aAAa;wBACb;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;AAYT,EAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
5
|
+
import { W as WrapperBase, V as VIEW_PROVIDER } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
6
|
+
|
|
7
|
+
class NoteWrapper extends WrapperBase {
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NoteWrapper, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: NoteWrapper, isStandalone: true, selector: "iss-wrp-note", usesInheritance: true, ngImport: i0, template: `
|
|
10
|
+
@if (field.isVisible() && field.registered()) {
|
|
11
|
+
@if (!(field.config.hideLabel)) {
|
|
12
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
13
|
+
}
|
|
14
|
+
<p>
|
|
15
|
+
{{ ctrlValueChange() }}
|
|
16
|
+
</p>
|
|
17
|
+
}
|
|
18
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatLabel, selector: "mat-label" }], viewProviders: [VIEW_PROVIDER] });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NoteWrapper, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{
|
|
23
|
+
selector: "iss-wrp-note",
|
|
24
|
+
viewProviders: [VIEW_PROVIDER],
|
|
25
|
+
imports: [
|
|
26
|
+
ReactiveFormsModule,
|
|
27
|
+
MatLabel
|
|
28
|
+
],
|
|
29
|
+
template: `
|
|
30
|
+
@if (field.isVisible() && field.registered()) {
|
|
31
|
+
@if (!(field.config.hideLabel)) {
|
|
32
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
33
|
+
}
|
|
34
|
+
<p>
|
|
35
|
+
{{ ctrlValueChange() }}
|
|
36
|
+
</p>
|
|
37
|
+
}
|
|
38
|
+
`
|
|
39
|
+
}]
|
|
40
|
+
}] });
|
|
41
|
+
|
|
42
|
+
export { NoteWrapper };
|
|
43
|
+
//# sourceMappingURL=iss-ctrl-note.wrapper-BW6WOulk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-note.wrapper-BW6WOulk.mjs","sources":["../../../projects/iss/src/components/controls/note/note.wrapper.ts"],"sourcesContent":["import {Component} from \"@angular/core\";\r\nimport {ReactiveFormsModule} from \"@angular/forms\";\r\nimport {MatLabel} from \"@angular/material/form-field\";\r\nimport {VIEW_PROVIDER} from \"../../../shared/constants/provider.const\";\r\nimport {WrapperBase} from \"../base/wrapper.base\";\r\n\r\n@Component({\r\n selector: \"iss-wrp-note\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel\r\n ],\r\n template: `\r\n @if (field.isVisible() && field.registered()) {\r\n @if (!(field.config.hideLabel)) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n <p>\r\n {{ ctrlValueChange() }}\r\n </p>\r\n }\r\n `\r\n})\r\nexport class NoteWrapper extends WrapperBase {}\r\n"],"names":[],"mappings":";;;;;;AAwBM,MAAO,WAAY,SAAQ,WAAW,CAAA;uGAA/B,WAAW,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAXZ,CAAA;;;;;;;;;AAST,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAZC,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,CAAA,EAAA,aAAA,EAHK,CAAC,aAAa,CAAC,EAAA,CAAA;;2FAgBnB,WAAW,EAAA,UAAA,EAAA,CAAA;kBAlBvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;oBACxB,aAAa,EAAE,CAAC,aAAa,CAAC;AAC9B,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;AAST,EAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
6
|
+
import { P as PLATE_LETTERS, W as WrapperBase, V as VIEW_PROVIDER, g as PlateControl } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
7
|
+
import { V as ViewerBase } from './iss-ctrl-viewer.base-BCFfZsDG.mjs';
|
|
8
|
+
|
|
9
|
+
class PlateViewer extends ViewerBase {
|
|
10
|
+
numbersAr = signal(Array(4).fill(""), ...(ngDevMode ? [{ debugName: "numbersAr" }] : []));
|
|
11
|
+
numbersEn = signal(Array(4).fill(""), ...(ngDevMode ? [{ debugName: "numbersEn" }] : []));
|
|
12
|
+
lettersAr = signal(Array(3).fill(""), ...(ngDevMode ? [{ debugName: "lettersAr" }] : []));
|
|
13
|
+
lettersEn = signal(Array(3).fill(""), ...(ngDevMode ? [{ debugName: "lettersEn" }] : []));
|
|
14
|
+
effectRef = effect(() => {
|
|
15
|
+
const val = this.field().value;
|
|
16
|
+
if (val) {
|
|
17
|
+
const parts = val.split("-");
|
|
18
|
+
const letters = parts[0]?.split("") || [];
|
|
19
|
+
const numbers = parts[1]?.split("") || [];
|
|
20
|
+
// Initialize letters
|
|
21
|
+
const lAr = [];
|
|
22
|
+
const lEn = [];
|
|
23
|
+
for (let i = 0; i < 3; i++) {
|
|
24
|
+
const char = letters[i] || "";
|
|
25
|
+
if (char) {
|
|
26
|
+
const plateLetter = PLATE_LETTERS.find(l => l.value === char || l.label.en === char || l.label.ar === char);
|
|
27
|
+
if (plateLetter) {
|
|
28
|
+
lAr.push(plateLetter.label.ar);
|
|
29
|
+
lEn.push(plateLetter.label.en);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
lAr.push("");
|
|
33
|
+
lEn.push("");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
lAr.push("");
|
|
38
|
+
lEn.push("");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
this.lettersAr.set(lAr);
|
|
42
|
+
this.lettersEn.set(lEn);
|
|
43
|
+
// Initialize numbers
|
|
44
|
+
const nAr = [];
|
|
45
|
+
const nEn = [];
|
|
46
|
+
for (let i = 0; i < 4; i++) {
|
|
47
|
+
const char = numbers[i] || "";
|
|
48
|
+
if (char) {
|
|
49
|
+
nAr.push(this.convertDigit(char, "ar"));
|
|
50
|
+
nEn.push(this.convertDigit(char, "en"));
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
nAr.push("");
|
|
54
|
+
nEn.push("");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
this.numbersAr.set(nAr);
|
|
58
|
+
this.numbersEn.set(nEn);
|
|
59
|
+
}
|
|
60
|
+
}, ...(ngDevMode ? [{ debugName: "effectRef" }] : []));
|
|
61
|
+
convertDigit(digit, toLang) {
|
|
62
|
+
const arDigits = ["٠", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"];
|
|
63
|
+
const enDigits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
64
|
+
if (toLang === "ar") {
|
|
65
|
+
const index = enDigits.indexOf(digit);
|
|
66
|
+
return index !== -1 ? arDigits[index] : digit;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const index = arDigits.indexOf(digit);
|
|
70
|
+
return index !== -1 ? enDigits[index] : digit;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PlateViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: PlateViewer, isStandalone: true, selector: "iss-vwr-plate", usesInheritance: true, ngImport: i0, template: `
|
|
75
|
+
<div class="plate-container">
|
|
76
|
+
<div class="section numbers-section">
|
|
77
|
+
<div class="digit-row">
|
|
78
|
+
@for (numAr of numbersAr(); track numAr) {
|
|
79
|
+
<span>{{ numAr }}</span>
|
|
80
|
+
}
|
|
81
|
+
</div>
|
|
82
|
+
<div class="digit-row">
|
|
83
|
+
@for (numEn of numbersEn(); track numEn) {
|
|
84
|
+
<span>{{ numEn }}</span>
|
|
85
|
+
}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<div class="section emblem-section">
|
|
90
|
+
<svg class="emblem-svg" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
91
|
+
<path
|
|
92
|
+
fill-rule="evenodd"
|
|
93
|
+
clip-rule="evenodd"
|
|
94
|
+
d="M10.8072 16.8744C11.4633 16.178 11.3244 15.3914 10.7996 15.3825C10.9872 15.9606 10.5562 16.3344 10.3922 16.5266C9.97894 16.1712 9.55086 15.7761 9.10778 15.3694C11.2695 13.5812 13.6354 11.995 16.7263 11.9452C13.3983 10.7499 10.7417 12.7815 8.4925 14.8084C6.24308 12.7815 3.58672 10.7499 0.257812 11.9452C3.34944 11.995 5.71507 13.581 7.87722 15.3694C7.43329 15.7761 7.00564 16.1712 6.59172 16.5266C6.42902 16.3344 5.99777 15.9606 6.18435 15.3825C5.65992 15.3914 5.52089 16.178 6.17758 16.8744C5.91495 17.0931 5.48962 17.4631 5.15113 17.5518C4.89082 17.6199 4.68185 17.4846 4.63473 17.2026C4.53542 16.6069 3.61271 16.6959 3.72554 17.5372C3.82907 18.3044 4.76066 18.6391 5.55892 18.2837C5.87565 18.1424 6.3107 17.7413 6.66778 17.45C6.83111 17.641 7.26215 18.0145 7.07494 18.5935C7.59979 18.5838 7.7384 17.798 7.08234 17.1005C7.54845 16.7028 8.01625 16.2927 8.4925 15.887C8.96833 16.2925 9.43634 16.7028 9.90288 17.1005C9.24639 17.798 9.385 18.5838 9.91006 18.5935C9.72285 18.0145 10.1539 17.6414 10.3168 17.45C10.6745 17.7413 11.1091 18.1424 11.4263 18.2837C12.2246 18.6391 13.1555 18.3044 13.259 17.5372C13.3719 16.6959 12.4496 16.6069 12.3494 17.2026C12.3023 17.4846 12.094 17.6196 11.8332 17.5518C11.4948 17.4631 11.0696 17.0931 10.8072 16.8744ZM6.72504 5.72093C6.22365 7.04637 6.19597 8.53894 6.9169 10.1805C6.80195 8.47576 7.17594 7.06771 7.8713 6.0066L8.01815 7.46832H7.84679L8.01815 9.17958H7.84679L8.01815 10.8904H7.84679L8.01794 12.5991L7.53366 13.0819H8.4925H9.45156L8.96685 12.5991L9.13842 10.8904H8.96685L9.13842 9.17958H8.96685L9.13842 7.46832H8.96685L9.11391 6.0066C9.80906 7.06771 10.1833 8.47682 10.0683 10.1805C10.7886 8.53894 10.7616 7.047 10.2602 5.72093C11.1115 6.72478 11.7701 7.89851 12.0661 9.36572C12.3733 7.50466 11.848 5.98568 10.8852 4.8071C11.8174 5.47943 12.6184 6.33157 13.1785 7.48396C13.048 5.72072 12.1559 4.57742 10.927 3.75824C11.989 4.1054 12.8561 4.68645 13.6343 5.71798C13.1139 3.8884 11.9801 3.15564 10.575 2.74362C11.5332 2.67368 12.4386 2.78165 13.3347 3.33988C12.3621 2.02839 11.0565 1.81055 9.73257 1.95634C10.2893 1.67279 10.9158 1.53101 11.5888 1.63137C10.8302 1.07187 9.81836 1.01651 8.95227 1.48812L8.4925 0.328125L8.0321 1.48749C7.1658 1.01651 6.15476 1.07166 5.39623 1.63137C6.06877 1.53122 6.69483 1.67279 7.25179 1.95634C5.92826 1.81055 4.62311 2.0286 3.6499 3.33988C4.54662 2.78165 5.45137 2.67368 6.41001 2.74362C5.00534 3.15564 3.87112 3.8884 3.35113 5.71798C4.12868 4.68666 4.99625 4.1054 6.05842 3.75824C4.8287 4.57721 3.93704 5.72072 3.80625 7.48396C4.36618 6.33157 5.16782 5.47943 6.09962 4.8071C5.13676 5.98568 4.61149 7.50466 4.91871 9.36572C5.21494 7.89851 5.87354 6.72478 6.72504 5.72093Z"
|
|
95
|
+
fill="#1D252D"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div class="section letters-section">
|
|
101
|
+
<div class="arabic-row" dir="rtl">
|
|
102
|
+
@for (lAr of lettersAr(); track lAr) {
|
|
103
|
+
<span>{{ lAr }}</span>
|
|
104
|
+
}
|
|
105
|
+
</div>
|
|
106
|
+
<div class="english-row" dir="rtl">
|
|
107
|
+
@for (lEn of lettersEn(); track lEn) {
|
|
108
|
+
<span>{{ lEn }}</span>
|
|
109
|
+
}
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<div class="ksa-strip">
|
|
114
|
+
<svg class="mini-emblem" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
115
|
+
<path
|
|
116
|
+
fill-rule="evenodd" clip-rule="evenodd"
|
|
117
|
+
d="M10.8072 16.8744C11.4633 16.178 11.3244 15.3914 10.7996 15.3825C10.9872 15.9606 10.5562 16.3344 10.3922 16.5266C9.97894 16.1712 9.55086 15.7761 9.10778 15.3694C11.2695 13.5812 13.6354 11.995 16.7263 11.9452C13.3983 10.7499 10.7417 12.7815 8.4925 14.8084C6.24308 12.7815 3.58672 10.7499 0.257812 11.9452C3.34944 11.995 5.71507 13.581 7.87722 15.3694C7.43329 15.7761 7.00564 16.1712 6.59172 16.5266C6.42902 16.3344 5.99777 15.9606 6.18435 15.3825C5.65992 15.3914 5.52089 16.178 6.17758 16.8744C5.91495 17.0931 5.48962 17.4631 5.15113 17.5518C4.89082 17.6199 4.68185 17.4846 4.63473 17.2026C4.53542 16.6069 3.61271 16.6959 3.72554 17.5372C3.82907 18.3044 4.76066 18.6391 5.55892 18.2837C5.87565 18.1424 6.3107 17.7413 6.66778 17.45C6.83111 17.641 7.26215 18.0145 7.07494 18.5935C7.59979 18.5838 7.7384 17.798 7.08234 17.1005C7.54845 16.7028 8.01625 16.2927 8.4925 15.887C8.96833 16.2925 9.43634 16.7028 9.90288 17.1005C9.24639 17.798 9.385 18.5838 9.91006 18.5935C9.72285 18.0145 10.1539 17.6414 10.3168 17.45C10.6745 17.7413 11.1091 18.1424 11.4263 18.2837C12.2246 18.6391 13.1555 18.3044 13.259 17.5372C13.3719 16.6959 12.4496 16.6069 12.3494 17.2026C12.3023 17.4846 12.094 17.6196 11.8332 17.5518C11.4948 17.4631 11.0696 17.0931 10.8072 16.8744ZM6.72504 5.72093C6.22365 7.04637 6.19597 8.53894 6.9169 10.1805C6.80195 8.47576 7.17594 7.06771 7.8713 6.0066L8.01815 7.46832H7.84679L8.01815 9.17958H7.84679L8.01815 10.8904H7.84679L8.01794 12.5991L7.53366 13.0819H8.4925H9.45156L8.96685 12.5991L9.13842 10.8904H8.96685L9.13842 9.17958H8.96685L9.13842 7.46832H8.96685L9.11391 6.0066C9.80906 7.06771 10.1833 8.47682 10.0683 10.1805C10.7886 8.53894 10.7616 7.047 10.2602 5.72093C11.1115 6.72478 11.7701 7.89851 12.0661 9.36572C12.3733 7.50466 11.848 5.98568 10.8852 4.8071C11.8174 5.47943 12.6184 6.33157 13.1785 7.48396C13.048 5.72072 12.1559 4.57742 10.927 3.75824C11.989 4.1054 12.8561 4.68645 13.6343 5.71798C13.1139 3.8884 11.9801 3.15564 10.575 2.74362C11.5332 2.67368 12.4386 2.78165 13.3347 3.33988C12.3621 2.02839 11.0565 1.81055 9.73257 1.95634C10.2893 1.67279 10.9158 1.53101 11.5888 1.63137C10.8302 1.07187 9.81836 1.01651 8.95227 1.48812L8.4925 0.328125L8.0321 1.48749C7.1658 1.01651 6.15476 1.07166 5.39623 1.63137C6.06877 1.53122 6.69483 1.67279 7.25179 1.95634C5.92826 1.81055 4.62311 2.0286 3.6499 3.33988C4.54662 2.78165 5.45137 2.67368 6.41001 2.74362C5.00534 3.15564 3.87112 3.8884 3.35113 5.71798C4.12868 4.68666 4.99625 4.1054 6.05842 3.75824C4.8287 4.57721 3.93704 5.72072 3.80625 7.48396C4.36618 6.33157 5.16782 5.47943 6.09962 4.8071C5.13676 5.98568 4.61149 7.50466 4.91871 9.36572C5.21494 7.89851 5.87354 6.72478 6.72504 5.72093Z"
|
|
118
|
+
fill="#1D252D"
|
|
119
|
+
/>
|
|
120
|
+
</svg>
|
|
121
|
+
<span class="ksa-text">KSA</span>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
`, isInline: true, styles: [".plate-container{width:600px;height:130px;border:4px solid #1D252D;border-radius:10px;background:#fff;display:flex;box-shadow:0 4px 10px #0003;overflow:hidden;position:relative}.section{display:flex;flex-direction:column;justify-content:center;align-items:center}.numbers-section{flex:2;padding:0 10px}.digit-row{display:flex;justify-content:space-between;width:80%;font-size:38px;line-height:1;color:#1d252d;margin:2px 0}.emblem-section{flex:1.2;padding:10px}.emblem-svg{width:100%;height:100%;max-height:90px}.letters-section{flex:1.8;border-right:2px solid #1D252D;padding:0 10px}.arabic-row{font-family:Noto Sans Arabic,sans-serif;font-size:32px;display:flex;justify-content:space-around;width:100%;margin-bottom:5px;color:#1d252d}.english-row{font-size:38px;display:flex;justify-content:space-around;width:100%;color:#1d252d}.ksa-strip{width:50px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:10px 0;background-color:#fff}.mini-emblem{width:25px;height:auto}.ksa-text{writing-mode:vertical-rl;text-orientation:upright;font-weight:900;font-size:16px;letter-spacing:2px;color:#1d252d;margin-top:auto;margin-bottom:5px}.plate-input{background:transparent;border:none;text-align:center;font-family:inherit;font-size:inherit;font-weight:700;color:#1d252d;width:100%;padding:0;margin:0;outline:none}.plate-input:focus{border-bottom:2px solid #1D252D}.digit-row,.arabic-row,.english-row{display:flex;justify-content:space-between;width:100%}.number-input,.letter-input{flex:1}.plate-input::placeholder{color:#ccc;opacity:1}.input-wrapper{position:relative;display:flex;flex-direction:column;align-items:center;flex:1}.error-tooltip{position:absolute;bottom:-15px;font-size:10px;color:red;white-space:nowrap}.plate-input.invalid{color:red}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
125
|
+
}
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PlateViewer, decorators: [{
|
|
127
|
+
type: Component,
|
|
128
|
+
args: [{ selector: "iss-vwr-plate", imports: [], template: `
|
|
129
|
+
<div class="plate-container">
|
|
130
|
+
<div class="section numbers-section">
|
|
131
|
+
<div class="digit-row">
|
|
132
|
+
@for (numAr of numbersAr(); track numAr) {
|
|
133
|
+
<span>{{ numAr }}</span>
|
|
134
|
+
}
|
|
135
|
+
</div>
|
|
136
|
+
<div class="digit-row">
|
|
137
|
+
@for (numEn of numbersEn(); track numEn) {
|
|
138
|
+
<span>{{ numEn }}</span>
|
|
139
|
+
}
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<div class="section emblem-section">
|
|
144
|
+
<svg class="emblem-svg" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
145
|
+
<path
|
|
146
|
+
fill-rule="evenodd"
|
|
147
|
+
clip-rule="evenodd"
|
|
148
|
+
d="M10.8072 16.8744C11.4633 16.178 11.3244 15.3914 10.7996 15.3825C10.9872 15.9606 10.5562 16.3344 10.3922 16.5266C9.97894 16.1712 9.55086 15.7761 9.10778 15.3694C11.2695 13.5812 13.6354 11.995 16.7263 11.9452C13.3983 10.7499 10.7417 12.7815 8.4925 14.8084C6.24308 12.7815 3.58672 10.7499 0.257812 11.9452C3.34944 11.995 5.71507 13.581 7.87722 15.3694C7.43329 15.7761 7.00564 16.1712 6.59172 16.5266C6.42902 16.3344 5.99777 15.9606 6.18435 15.3825C5.65992 15.3914 5.52089 16.178 6.17758 16.8744C5.91495 17.0931 5.48962 17.4631 5.15113 17.5518C4.89082 17.6199 4.68185 17.4846 4.63473 17.2026C4.53542 16.6069 3.61271 16.6959 3.72554 17.5372C3.82907 18.3044 4.76066 18.6391 5.55892 18.2837C5.87565 18.1424 6.3107 17.7413 6.66778 17.45C6.83111 17.641 7.26215 18.0145 7.07494 18.5935C7.59979 18.5838 7.7384 17.798 7.08234 17.1005C7.54845 16.7028 8.01625 16.2927 8.4925 15.887C8.96833 16.2925 9.43634 16.7028 9.90288 17.1005C9.24639 17.798 9.385 18.5838 9.91006 18.5935C9.72285 18.0145 10.1539 17.6414 10.3168 17.45C10.6745 17.7413 11.1091 18.1424 11.4263 18.2837C12.2246 18.6391 13.1555 18.3044 13.259 17.5372C13.3719 16.6959 12.4496 16.6069 12.3494 17.2026C12.3023 17.4846 12.094 17.6196 11.8332 17.5518C11.4948 17.4631 11.0696 17.0931 10.8072 16.8744ZM6.72504 5.72093C6.22365 7.04637 6.19597 8.53894 6.9169 10.1805C6.80195 8.47576 7.17594 7.06771 7.8713 6.0066L8.01815 7.46832H7.84679L8.01815 9.17958H7.84679L8.01815 10.8904H7.84679L8.01794 12.5991L7.53366 13.0819H8.4925H9.45156L8.96685 12.5991L9.13842 10.8904H8.96685L9.13842 9.17958H8.96685L9.13842 7.46832H8.96685L9.11391 6.0066C9.80906 7.06771 10.1833 8.47682 10.0683 10.1805C10.7886 8.53894 10.7616 7.047 10.2602 5.72093C11.1115 6.72478 11.7701 7.89851 12.0661 9.36572C12.3733 7.50466 11.848 5.98568 10.8852 4.8071C11.8174 5.47943 12.6184 6.33157 13.1785 7.48396C13.048 5.72072 12.1559 4.57742 10.927 3.75824C11.989 4.1054 12.8561 4.68645 13.6343 5.71798C13.1139 3.8884 11.9801 3.15564 10.575 2.74362C11.5332 2.67368 12.4386 2.78165 13.3347 3.33988C12.3621 2.02839 11.0565 1.81055 9.73257 1.95634C10.2893 1.67279 10.9158 1.53101 11.5888 1.63137C10.8302 1.07187 9.81836 1.01651 8.95227 1.48812L8.4925 0.328125L8.0321 1.48749C7.1658 1.01651 6.15476 1.07166 5.39623 1.63137C6.06877 1.53122 6.69483 1.67279 7.25179 1.95634C5.92826 1.81055 4.62311 2.0286 3.6499 3.33988C4.54662 2.78165 5.45137 2.67368 6.41001 2.74362C5.00534 3.15564 3.87112 3.8884 3.35113 5.71798C4.12868 4.68666 4.99625 4.1054 6.05842 3.75824C4.8287 4.57721 3.93704 5.72072 3.80625 7.48396C4.36618 6.33157 5.16782 5.47943 6.09962 4.8071C5.13676 5.98568 4.61149 7.50466 4.91871 9.36572C5.21494 7.89851 5.87354 6.72478 6.72504 5.72093Z"
|
|
149
|
+
fill="#1D252D"
|
|
150
|
+
/>
|
|
151
|
+
</svg>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<div class="section letters-section">
|
|
155
|
+
<div class="arabic-row" dir="rtl">
|
|
156
|
+
@for (lAr of lettersAr(); track lAr) {
|
|
157
|
+
<span>{{ lAr }}</span>
|
|
158
|
+
}
|
|
159
|
+
</div>
|
|
160
|
+
<div class="english-row" dir="rtl">
|
|
161
|
+
@for (lEn of lettersEn(); track lEn) {
|
|
162
|
+
<span>{{ lEn }}</span>
|
|
163
|
+
}
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<div class="ksa-strip">
|
|
168
|
+
<svg class="mini-emblem" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
169
|
+
<path
|
|
170
|
+
fill-rule="evenodd" clip-rule="evenodd"
|
|
171
|
+
d="M10.8072 16.8744C11.4633 16.178 11.3244 15.3914 10.7996 15.3825C10.9872 15.9606 10.5562 16.3344 10.3922 16.5266C9.97894 16.1712 9.55086 15.7761 9.10778 15.3694C11.2695 13.5812 13.6354 11.995 16.7263 11.9452C13.3983 10.7499 10.7417 12.7815 8.4925 14.8084C6.24308 12.7815 3.58672 10.7499 0.257812 11.9452C3.34944 11.995 5.71507 13.581 7.87722 15.3694C7.43329 15.7761 7.00564 16.1712 6.59172 16.5266C6.42902 16.3344 5.99777 15.9606 6.18435 15.3825C5.65992 15.3914 5.52089 16.178 6.17758 16.8744C5.91495 17.0931 5.48962 17.4631 5.15113 17.5518C4.89082 17.6199 4.68185 17.4846 4.63473 17.2026C4.53542 16.6069 3.61271 16.6959 3.72554 17.5372C3.82907 18.3044 4.76066 18.6391 5.55892 18.2837C5.87565 18.1424 6.3107 17.7413 6.66778 17.45C6.83111 17.641 7.26215 18.0145 7.07494 18.5935C7.59979 18.5838 7.7384 17.798 7.08234 17.1005C7.54845 16.7028 8.01625 16.2927 8.4925 15.887C8.96833 16.2925 9.43634 16.7028 9.90288 17.1005C9.24639 17.798 9.385 18.5838 9.91006 18.5935C9.72285 18.0145 10.1539 17.6414 10.3168 17.45C10.6745 17.7413 11.1091 18.1424 11.4263 18.2837C12.2246 18.6391 13.1555 18.3044 13.259 17.5372C13.3719 16.6959 12.4496 16.6069 12.3494 17.2026C12.3023 17.4846 12.094 17.6196 11.8332 17.5518C11.4948 17.4631 11.0696 17.0931 10.8072 16.8744ZM6.72504 5.72093C6.22365 7.04637 6.19597 8.53894 6.9169 10.1805C6.80195 8.47576 7.17594 7.06771 7.8713 6.0066L8.01815 7.46832H7.84679L8.01815 9.17958H7.84679L8.01815 10.8904H7.84679L8.01794 12.5991L7.53366 13.0819H8.4925H9.45156L8.96685 12.5991L9.13842 10.8904H8.96685L9.13842 9.17958H8.96685L9.13842 7.46832H8.96685L9.11391 6.0066C9.80906 7.06771 10.1833 8.47682 10.0683 10.1805C10.7886 8.53894 10.7616 7.047 10.2602 5.72093C11.1115 6.72478 11.7701 7.89851 12.0661 9.36572C12.3733 7.50466 11.848 5.98568 10.8852 4.8071C11.8174 5.47943 12.6184 6.33157 13.1785 7.48396C13.048 5.72072 12.1559 4.57742 10.927 3.75824C11.989 4.1054 12.8561 4.68645 13.6343 5.71798C13.1139 3.8884 11.9801 3.15564 10.575 2.74362C11.5332 2.67368 12.4386 2.78165 13.3347 3.33988C12.3621 2.02839 11.0565 1.81055 9.73257 1.95634C10.2893 1.67279 10.9158 1.53101 11.5888 1.63137C10.8302 1.07187 9.81836 1.01651 8.95227 1.48812L8.4925 0.328125L8.0321 1.48749C7.1658 1.01651 6.15476 1.07166 5.39623 1.63137C6.06877 1.53122 6.69483 1.67279 7.25179 1.95634C5.92826 1.81055 4.62311 2.0286 3.6499 3.33988C4.54662 2.78165 5.45137 2.67368 6.41001 2.74362C5.00534 3.15564 3.87112 3.8884 3.35113 5.71798C4.12868 4.68666 4.99625 4.1054 6.05842 3.75824C4.8287 4.57721 3.93704 5.72072 3.80625 7.48396C4.36618 6.33157 5.16782 5.47943 6.09962 4.8071C5.13676 5.98568 4.61149 7.50466 4.91871 9.36572C5.21494 7.89851 5.87354 6.72478 6.72504 5.72093Z"
|
|
172
|
+
fill="#1D252D"
|
|
173
|
+
/>
|
|
174
|
+
</svg>
|
|
175
|
+
<span class="ksa-text">KSA</span>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".plate-container{width:600px;height:130px;border:4px solid #1D252D;border-radius:10px;background:#fff;display:flex;box-shadow:0 4px 10px #0003;overflow:hidden;position:relative}.section{display:flex;flex-direction:column;justify-content:center;align-items:center}.numbers-section{flex:2;padding:0 10px}.digit-row{display:flex;justify-content:space-between;width:80%;font-size:38px;line-height:1;color:#1d252d;margin:2px 0}.emblem-section{flex:1.2;padding:10px}.emblem-svg{width:100%;height:100%;max-height:90px}.letters-section{flex:1.8;border-right:2px solid #1D252D;padding:0 10px}.arabic-row{font-family:Noto Sans Arabic,sans-serif;font-size:32px;display:flex;justify-content:space-around;width:100%;margin-bottom:5px;color:#1d252d}.english-row{font-size:38px;display:flex;justify-content:space-around;width:100%;color:#1d252d}.ksa-strip{width:50px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:10px 0;background-color:#fff}.mini-emblem{width:25px;height:auto}.ksa-text{writing-mode:vertical-rl;text-orientation:upright;font-weight:900;font-size:16px;letter-spacing:2px;color:#1d252d;margin-top:auto;margin-bottom:5px}.plate-input{background:transparent;border:none;text-align:center;font-family:inherit;font-size:inherit;font-weight:700;color:#1d252d;width:100%;padding:0;margin:0;outline:none}.plate-input:focus{border-bottom:2px solid #1D252D}.digit-row,.arabic-row,.english-row{display:flex;justify-content:space-between;width:100%}.number-input,.letter-input{flex:1}.plate-input::placeholder{color:#ccc;opacity:1}.input-wrapper{position:relative;display:flex;flex-direction:column;align-items:center;flex:1}.error-tooltip{position:absolute;bottom:-15px;font-size:10px;color:red;white-space:nowrap}.plate-input.invalid{color:red}\n"] }]
|
|
179
|
+
}] });
|
|
180
|
+
|
|
181
|
+
class PlateNumberWrapper extends WrapperBase {
|
|
182
|
+
updateField($event) {
|
|
183
|
+
this.field.ctrlJsonValue.set($event);
|
|
184
|
+
}
|
|
185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PlateNumberWrapper, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
186
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: PlateNumberWrapper, isStandalone: true, selector: "iss-wrp-plate-number", usesInheritance: true, ngImport: i0, template: `
|
|
187
|
+
@if (field.isVisible() && field.registered()) {
|
|
188
|
+
@if (!(field.config.hideLabel)) {
|
|
189
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@if (field.mode() === "edit") {
|
|
193
|
+
<iss-ctrl-plate-number [formControlName]="field.name" (onChange)="updateField($event)" />
|
|
194
|
+
} @else {
|
|
195
|
+
<iss-vwr-plate [field]="field" />
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: PlateControl, selector: "iss-ctrl-plate-number" }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "component", type: PlateViewer, selector: "iss-vwr-plate" }], viewProviders: [VIEW_PROVIDER] });
|
|
199
|
+
}
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: PlateNumberWrapper, decorators: [{
|
|
201
|
+
type: Component,
|
|
202
|
+
args: [{
|
|
203
|
+
selector: "iss-wrp-plate-number",
|
|
204
|
+
viewProviders: [VIEW_PROVIDER],
|
|
205
|
+
imports: [
|
|
206
|
+
ReactiveFormsModule,
|
|
207
|
+
PlateControl,
|
|
208
|
+
MatLabel,
|
|
209
|
+
PlateViewer
|
|
210
|
+
],
|
|
211
|
+
template: `
|
|
212
|
+
@if (field.isVisible() && field.registered()) {
|
|
213
|
+
@if (!(field.config.hideLabel)) {
|
|
214
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@if (field.mode() === "edit") {
|
|
218
|
+
<iss-ctrl-plate-number [formControlName]="field.name" (onChange)="updateField($event)" />
|
|
219
|
+
} @else {
|
|
220
|
+
<iss-vwr-plate [field]="field" />
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`
|
|
224
|
+
}]
|
|
225
|
+
}] });
|
|
226
|
+
|
|
227
|
+
export { PlateNumberWrapper };
|
|
228
|
+
//# sourceMappingURL=iss-ctrl-plate-number.wrapper-B_NXePR_.mjs.map
|