iss-ctrl 0.0.2 → 0.0.3
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/.editorconfig +13 -0
- package/.eslintrc.json +90 -0
- package/README.md +25 -24
- package/angular.json +190 -0
- package/bun.lock +1998 -0
- package/package.json +48 -19
- package/projects/iss/.eslintrc.json +37 -0
- package/projects/iss/README.md +24 -0
- package/projects/iss/ng-package.json +10 -0
- package/projects/iss/package.json +17 -0
- package/projects/iss/src/components/controls/base/control.base.ts +77 -0
- package/projects/iss/src/components/controls/base/viewer.base.ts +8 -0
- package/projects/iss/src/components/controls/base/wrapper.base.ts +85 -0
- package/projects/iss/src/components/controls/checkbox/checkbox.control.ts +93 -0
- package/projects/iss/src/components/controls/checkbox/checkbox.viewer.ts +15 -0
- package/projects/iss/src/components/controls/checkbox/checkbox.wrapper.ts +36 -0
- package/projects/iss/src/components/controls/chips/chips.control.ts +99 -0
- package/projects/iss/src/components/controls/chips/chips.viewer.ts +23 -0
- package/projects/iss/src/components/controls/chips/chips.wrapper.ts +31 -0
- package/projects/iss/src/components/controls/date-picker/date-picker.control.ts +85 -0
- package/projects/iss/src/components/controls/date-picker/date-picker.viewer.ts +14 -0
- package/projects/iss/src/components/controls/date-picker/date-picker.wrapper.ts +35 -0
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.control.ts +143 -0
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.viewer.ts +22 -0
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.wrapper.ts +35 -0
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.control.ts +109 -0
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.viewer.ts +17 -0
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.wrapper.ts +38 -0
- package/projects/iss/src/components/controls/file-picker/attachment.viewer.ts +165 -0
- package/projects/iss/src/components/controls/file-picker/droppable.directive.ts +28 -0
- package/projects/iss/src/components/controls/file-picker/file-handler.service.ts +115 -0
- package/projects/iss/src/components/controls/file-picker/file-picker.control.ts +187 -0
- package/projects/iss/src/components/controls/file-picker/file-picker.wrapper.ts +120 -0
- package/projects/iss/src/components/controls/input/input.control.ts +95 -0
- package/projects/iss/src/components/controls/input/input.viewer.ts +11 -0
- package/projects/iss/src/components/controls/input/input.wrapper.ts +40 -0
- package/projects/iss/src/components/controls/mobile/flags/ad.svg +282 -0
- package/projects/iss/src/components/controls/mobile/flags/ae.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/af.svg +9 -0
- package/projects/iss/src/components/controls/mobile/flags/ag.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/ai.svg +35 -0
- package/projects/iss/src/components/controls/mobile/flags/al.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/am.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ao.svg +19 -0
- package/projects/iss/src/components/controls/mobile/flags/aq.svg +45 -0
- package/projects/iss/src/components/controls/mobile/flags/ar.svg +66 -0
- package/projects/iss/src/components/controls/mobile/flags/as.svg +225 -0
- package/projects/iss/src/components/controls/mobile/flags/at.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/au.svg +32 -0
- package/projects/iss/src/components/controls/mobile/flags/aw.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/ax.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/az.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/ba.svg +18 -0
- package/projects/iss/src/components/controls/mobile/flags/bb.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/bd.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/be.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/bf.svg +14 -0
- package/projects/iss/src/components/controls/mobile/flags/bg.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/bh.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/bi.svg +26 -0
- package/projects/iss/src/components/controls/mobile/flags/bj.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/bl.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/bm.svg +374 -0
- package/projects/iss/src/components/controls/mobile/flags/bn.svg +70 -0
- package/projects/iss/src/components/controls/mobile/flags/bo.svg +3625 -0
- package/projects/iss/src/components/controls/mobile/flags/bq.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/br.svg +92 -0
- package/projects/iss/src/components/controls/mobile/flags/bs.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/bt.svg +487 -0
- package/projects/iss/src/components/controls/mobile/flags/bv.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/bw.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/by.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/bz.svg +629 -0
- package/projects/iss/src/components/controls/mobile/flags/ca.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/cc.svg +33 -0
- package/projects/iss/src/components/controls/mobile/flags/cd.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/cf.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/cg.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ch.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ci.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ck.svg +29 -0
- package/projects/iss/src/components/controls/mobile/flags/cl.svg +14 -0
- package/projects/iss/src/components/controls/mobile/flags/cm.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/cn.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/co.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/cr.svg +1332 -0
- package/projects/iss/src/components/controls/mobile/flags/cu.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/cv.svg +24 -0
- package/projects/iss/src/components/controls/mobile/flags/cw.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/cx.svg +24 -0
- package/projects/iss/src/components/controls/mobile/flags/cy.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/cz.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/de.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/dj.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/dk.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/dm.svg +198 -0
- package/projects/iss/src/components/controls/mobile/flags/do.svg +238 -0
- package/projects/iss/src/components/controls/mobile/flags/dz.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ec.svg +1292 -0
- package/projects/iss/src/components/controls/mobile/flags/ee.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/eg.svg +125 -0
- package/projects/iss/src/components/controls/mobile/flags/eh.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/er.svg +9 -0
- package/projects/iss/src/components/controls/mobile/flags/es.svg +445 -0
- package/projects/iss/src/components/controls/mobile/flags/et.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/eu.svg +28 -0
- package/projects/iss/src/components/controls/mobile/flags/fi.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/fj.svg +203 -0
- package/projects/iss/src/components/controls/mobile/flags/fk.svg +922 -0
- package/projects/iss/src/components/controls/mobile/flags/flags.png +0 -0
- package/projects/iss/src/components/controls/mobile/flags/flags@2x.png +0 -0
- package/projects/iss/src/components/controls/mobile/flags/fm.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/fo.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/fonts.css +271 -0
- package/projects/iss/src/components/controls/mobile/flags/fr.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ga.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/gb-eng.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/gb-nir.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/gb-sct.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/gb-wls.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/gb.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/gd.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/ge.svg +17 -0
- package/projects/iss/src/components/controls/mobile/flags/gf.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/gg.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/gh.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/gi.svg +69 -0
- package/projects/iss/src/components/controls/mobile/flags/gl.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/gm.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/gn.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/gp.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/gq.svg +88 -0
- package/projects/iss/src/components/controls/mobile/flags/gr.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/gs.svg +693 -0
- package/projects/iss/src/components/controls/mobile/flags/gt.svg +317 -0
- package/projects/iss/src/components/controls/mobile/flags/gu.svg +58 -0
- package/projects/iss/src/components/controls/mobile/flags/gw.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/gy.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/hk.svg +17 -0
- package/projects/iss/src/components/controls/mobile/flags/hm.svg +32 -0
- package/projects/iss/src/components/controls/mobile/flags/hn.svg +10 -0
- package/projects/iss/src/components/controls/mobile/flags/hr.svg +282 -0
- package/projects/iss/src/components/controls/mobile/flags/ht.svg +1470 -0
- package/projects/iss/src/components/controls/mobile/flags/hu.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/id.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ie.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/il.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/im.svg +33 -0
- package/projects/iss/src/components/controls/mobile/flags/in.svg +25 -0
- package/projects/iss/src/components/controls/mobile/flags/io.svg +895 -0
- package/projects/iss/src/components/controls/mobile/flags/iq.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/ir.svg +31 -0
- package/projects/iss/src/components/controls/mobile/flags/is.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/it.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/je.svg +40 -0
- package/projects/iss/src/components/controls/mobile/flags/jm.svg +9 -0
- package/projects/iss/src/components/controls/mobile/flags/jo.svg +10 -0
- package/projects/iss/src/components/controls/mobile/flags/jp.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ke.svg +28 -0
- package/projects/iss/src/components/controls/mobile/flags/kg.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/kh.svg +133 -0
- package/projects/iss/src/components/controls/mobile/flags/ki.svg +54 -0
- package/projects/iss/src/components/controls/mobile/flags/km.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/kn.svg +24 -0
- package/projects/iss/src/components/controls/mobile/flags/kp.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/kr.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/kw.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/ky.svg +153 -0
- package/projects/iss/src/components/controls/mobile/flags/kz.svg +49 -0
- package/projects/iss/src/components/controls/mobile/flags/la.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/lb.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/lc.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/li.svg +75 -0
- package/projects/iss/src/components/controls/mobile/flags/lk.svg +50 -0
- package/projects/iss/src/components/controls/mobile/flags/lr.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/ls.svg +32 -0
- package/projects/iss/src/components/controls/mobile/flags/lt.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/lu.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/lv.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ly.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/ma.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/mc.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/md.svg +102 -0
- package/projects/iss/src/components/controls/mobile/flags/me.svg +240 -0
- package/projects/iss/src/components/controls/mobile/flags/mf.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/mg.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/mh.svg +18 -0
- package/projects/iss/src/components/controls/mobile/flags/mk.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/ml.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/mm.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/mn.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/mo.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/mp.svg +2919 -0
- package/projects/iss/src/components/controls/mobile/flags/mq.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/mr.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ms.svg +59 -0
- package/projects/iss/src/components/controls/mobile/flags/mt.svg +52 -0
- package/projects/iss/src/components/controls/mobile/flags/mu.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/mv.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/mw.svg +24 -0
- package/projects/iss/src/components/controls/mobile/flags/mx.svg +1129 -0
- package/projects/iss/src/components/controls/mobile/flags/my.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/mz.svg +50 -0
- package/projects/iss/src/components/controls/mobile/flags/na.svg +17 -0
- package/projects/iss/src/components/controls/mobile/flags/nc.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ne.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/nf.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/ng.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ni.svg +281 -0
- package/projects/iss/src/components/controls/mobile/flags/nl.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/no.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/np.svg +33 -0
- package/projects/iss/src/components/controls/mobile/flags/nr.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/nu.svg +23 -0
- package/projects/iss/src/components/controls/mobile/flags/nz.svg +37 -0
- package/projects/iss/src/components/controls/mobile/flags/om.svg +307 -0
- package/projects/iss/src/components/controls/mobile/flags/pa.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/pe.svg +767 -0
- package/projects/iss/src/components/controls/mobile/flags/pf.svg +38 -0
- package/projects/iss/src/components/controls/mobile/flags/pg.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/ph.svg +28 -0
- package/projects/iss/src/components/controls/mobile/flags/pk.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/pl.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/pm.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/pn.svg +131 -0
- package/projects/iss/src/components/controls/mobile/flags/pr.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/ps.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/pt.svg +79 -0
- package/projects/iss/src/components/controls/mobile/flags/pw.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/py.svg +192 -0
- package/projects/iss/src/components/controls/mobile/flags/qa.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/re.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/ro.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/rs.svg +1143 -0
- package/projects/iss/src/components/controls/mobile/flags/ru.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/rw.svg +17 -0
- package/projects/iss/src/components/controls/mobile/flags/sa.svg +23 -0
- package/projects/iss/src/components/controls/mobile/flags/sb.svg +30 -0
- package/projects/iss/src/components/controls/mobile/flags/sc.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/sd.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/se.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/sg.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/sh.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/si.svg +30 -0
- package/projects/iss/src/components/controls/mobile/flags/sj.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/sk.svg +21 -0
- package/projects/iss/src/components/controls/mobile/flags/sl.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/sm.svg +847 -0
- package/projects/iss/src/components/controls/mobile/flags/sn.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/so.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/sr.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/ss.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/st.svg +16 -0
- package/projects/iss/src/components/controls/mobile/flags/stc-icons.css +1 -0
- package/projects/iss/src/components/controls/mobile/flags/sv.svg +3368 -0
- package/projects/iss/src/components/controls/mobile/flags/sx.svg +172 -0
- package/projects/iss/src/components/controls/mobile/flags/sy.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/sz.svg +54 -0
- package/projects/iss/src/components/controls/mobile/flags/tc.svg +88 -0
- package/projects/iss/src/components/controls/mobile/flags/td.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/tf.svg +18 -0
- package/projects/iss/src/components/controls/mobile/flags/tg.svg +15 -0
- package/projects/iss/src/components/controls/mobile/flags/th.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/tj.svg +32 -0
- package/projects/iss/src/components/controls/mobile/flags/tk.svg +25 -0
- package/projects/iss/src/components/controls/mobile/flags/tl.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/tm.svg +349 -0
- package/projects/iss/src/components/controls/mobile/flags/tn.svg +9 -0
- package/projects/iss/src/components/controls/mobile/flags/to.svg +8 -0
- package/projects/iss/src/components/controls/mobile/flags/tr.svg +6 -0
- package/projects/iss/src/components/controls/mobile/flags/tt.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/tv.svg +18 -0
- package/projects/iss/src/components/controls/mobile/flags/tw.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/tz.svg +13 -0
- package/projects/iss/src/components/controls/mobile/flags/ua.svg +4 -0
- package/projects/iss/src/components/controls/mobile/flags/ug.svg +46 -0
- package/projects/iss/src/components/controls/mobile/flags/um.svg +25 -0
- package/projects/iss/src/components/controls/mobile/flags/us.svg +25 -0
- package/projects/iss/src/components/controls/mobile/flags/uy.svg +138 -0
- package/projects/iss/src/components/controls/mobile/flags/uz.svg +30 -0
- package/projects/iss/src/components/controls/mobile/flags/va.svg +277 -0
- package/projects/iss/src/components/controls/mobile/flags/vc.svg +9 -0
- package/projects/iss/src/components/controls/mobile/flags/ve.svg +28 -0
- package/projects/iss/src/components/controls/mobile/flags/vg.svg +96 -0
- package/projects/iss/src/components/controls/mobile/flags/vi.svg +311 -0
- package/projects/iss/src/components/controls/mobile/flags/vn.svg +12 -0
- package/projects/iss/src/components/controls/mobile/flags/vu.svg +20 -0
- package/projects/iss/src/components/controls/mobile/flags/wf.svg +7 -0
- package/projects/iss/src/components/controls/mobile/flags/ws.svg +14 -0
- package/projects/iss/src/components/controls/mobile/flags/xk.svg +11 -0
- package/projects/iss/src/components/controls/mobile/flags/ye.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/yt.svg +5 -0
- package/projects/iss/src/components/controls/mobile/flags/za.svg +17 -0
- package/projects/iss/src/components/controls/mobile/flags/zm.svg +20 -0
- package/projects/iss/src/components/controls/mobile/flags/zw.svg +130 -0
- package/projects/iss/src/components/controls/mobile/mobile.control.ts +222 -0
- package/projects/iss/src/components/controls/mobile/mobile.viewer.ts +11 -0
- package/projects/iss/src/components/controls/mobile/mobile.wrapper.ts +32 -0
- package/projects/iss/src/components/controls/mobile/phone.service.ts +96 -0
- package/projects/iss/src/components/controls/note/note.wrapper.ts +25 -0
- package/projects/iss/src/components/controls/plate/plate-letter.pipe.ts +14 -0
- package/projects/iss/src/components/controls/plate/plate-number.wrapper.ts +36 -0
- package/projects/iss/src/components/controls/plate/plate.control.ts +481 -0
- package/projects/iss/src/components/controls/plate/plate.viewer.ts +289 -0
- package/projects/iss/src/components/controls/radio/radio.control.ts +48 -0
- package/projects/iss/src/components/controls/radio/radio.viewer.ts +14 -0
- package/projects/iss/src/components/controls/radio/radio.wrapper.ts +38 -0
- package/projects/iss/src/components/controls/select/select.control.ts +261 -0
- package/projects/iss/src/components/controls/select/select.viewer.ts +14 -0
- package/projects/iss/src/components/controls/select/select.wrapper.ts +41 -0
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.control.ts +24 -0
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.viewer.ts +14 -0
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.wrapper.ts +31 -0
- package/projects/iss/src/components/controls/table/field.viewer.ts +23 -0
- package/projects/iss/src/components/controls/table/table.wrapper.ts +233 -0
- package/projects/iss/src/components/controls/textarea/textarea.control.ts +54 -0
- package/projects/iss/src/components/controls/textarea/textarea.viewer.ts +11 -0
- package/projects/iss/src/components/controls/textarea/textarea.wrapper.ts +34 -0
- package/projects/iss/src/components/controls/time-picker/time-picker.control.ts +86 -0
- package/projects/iss/src/components/controls/time-picker/time-picker.viewer.ts +10 -0
- package/projects/iss/src/components/controls/time-picker/time-picker.wrapper.ts +31 -0
- package/projects/iss/src/components/controls/toggle-button/toggle-button.control.ts +105 -0
- package/projects/iss/src/components/controls/toggle-button/toggle-button.viewer.ts +15 -0
- package/projects/iss/src/components/controls/toggle-button/toggle-button.wrapper.ts +40 -0
- package/projects/iss/src/components/controls/user-picker/employee.service.ts +73 -0
- package/projects/iss/src/components/controls/user-picker/user-picker.wrapper.ts +128 -0
- package/projects/iss/src/components/outlet/field-data-injector.pipe.ts +20 -0
- package/projects/iss/src/components/outlet/outlet.ts +152 -0
- package/projects/iss/src/components/shared/hints.component.ts +38 -0
- package/projects/iss/src/components/shared/validation-message.component.ts +36 -0
- package/projects/iss/src/events/event-handler.service.ts +47 -0
- package/projects/iss/src/events/load/after-fetch.service.ts +29 -0
- package/projects/iss/src/events/load/load-event.service.ts +26 -0
- package/projects/iss/src/events/load/load-options-event.service.ts +51 -0
- package/projects/iss/src/events/load/load-value-event.service.ts +50 -0
- package/projects/iss/src/events/load/replace-api-keys.service.ts +55 -0
- package/projects/iss/src/events/set-value/get-value-to-set.service.ts +29 -0
- package/projects/iss/src/events/set-value/set-value-event.service.ts +33 -0
- package/projects/iss/src/events/show/show-event.service.ts +11 -0
- package/projects/iss/src/events/triggers/action-trigger-manager.service.ts +51 -0
- package/projects/iss/src/events/triggers/action-trigger.service.ts +30 -0
- package/projects/iss/src/events/triggers/trigger-based-on-json-value.service.ts +19 -0
- package/projects/iss/src/public-api.ts +102 -0
- package/projects/iss/src/shared/classes/field-action-config.ts +56 -0
- package/projects/iss/src/shared/classes/field-action.ts +28 -0
- package/projects/iss/src/shared/classes/field-async-validation.ts +7 -0
- package/projects/iss/src/shared/classes/field-config.ts +113 -0
- package/projects/iss/src/shared/classes/field-option.ts +9 -0
- package/projects/iss/src/shared/classes/field-validation.ts +15 -0
- package/projects/iss/src/shared/classes/form-field.ts +94 -0
- package/projects/iss/src/shared/constants/countries.const.ts +2051 -0
- package/projects/iss/src/shared/constants/date.const.ts +18 -0
- package/projects/iss/src/shared/constants/plate-letters.const.ts +21 -0
- package/projects/iss/src/shared/constants/provider.const.ts +7 -0
- package/projects/iss/src/shared/constants/regex.const.ts +1 -0
- package/projects/iss/src/shared/constants/validation.const.ts +115 -0
- package/projects/iss/src/shared/indexes/components.index.ts +27 -0
- package/projects/iss/src/shared/indexes/services.index.ts +11 -0
- package/projects/iss/src/shared/indexes/validators.index.ts +21 -0
- package/projects/iss/src/shared/interfaces/action.interface.ts +7 -0
- package/projects/iss/src/shared/interfaces/attachment.interface.ts +7 -0
- package/projects/iss/src/shared/interfaces/country.interface.ts +11 -0
- package/projects/iss/src/shared/interfaces/date-range.interface.ts +5 -0
- package/projects/iss/src/shared/interfaces/datetime.interface.ts +4 -0
- package/projects/iss/src/shared/interfaces/dto.interface.ts +12 -0
- package/projects/iss/src/shared/interfaces/field.interface.ts +27 -0
- package/projects/iss/src/shared/interfaces/file.interface.ts +9 -0
- package/projects/iss/src/shared/interfaces/hint.interface.ts +8 -0
- package/projects/iss/src/shared/interfaces/i18n.interface.ts +4 -0
- package/projects/iss/src/shared/interfaces/import.interface.ts +3 -0
- package/projects/iss/src/shared/interfaces/mobile.interface.ts +12 -0
- package/projects/iss/src/shared/interfaces/option.interface.ts +4 -0
- package/projects/iss/src/shared/interfaces/outlet.interface.ts +8 -0
- package/projects/iss/src/shared/interfaces/plate-letter.interface.ts +7 -0
- package/projects/iss/src/shared/interfaces/validation.interface.ts +5 -0
- package/projects/iss/src/shared/pipes/arabic-number.pipe.ts +14 -0
- package/projects/iss/src/shared/pipes/select-status.pipe.ts +10 -0
- package/projects/iss/src/shared/pipes/translate.pipe.ts +20 -0
- package/projects/iss/src/shared/services/form-engine.service.ts +121 -0
- package/projects/iss/src/shared/services/loader.service.ts +51 -0
- package/projects/iss/src/shared/tokens/api-response-mapper.token.ts +4 -0
- package/projects/iss/src/shared/tokens/attachment.token.ts +6 -0
- package/projects/iss/src/shared/tokens/field.token.ts +4 -0
- package/projects/iss/src/shared/tokens/host.token.ts +3 -0
- package/projects/iss/src/shared/tokens/language.token.ts +3 -0
- package/projects/iss/src/shared/tokens/url.token.ts +3 -0
- package/projects/iss/src/shared/types/iso2.type.ts +244 -0
- package/projects/iss/src/shared/types/validation.type.ts +3 -0
- package/projects/iss/src/shared/utilities/array-from.util.ts +7 -0
- package/projects/iss/src/shared/utilities/format-file-size.util.ts +9 -0
- package/projects/iss/src/shared/utilities/get-property-by-path.util.ts +30 -0
- package/projects/iss/src/shared/utilities/http.util.service.ts +19 -0
- package/projects/iss/src/shared/utilities/is-valid-api.util.ts +8 -0
- package/projects/iss/src/shared/utilities/replace-placeholder.util.ts +12 -0
- package/projects/iss/src/validators/core.validator.ts +39 -0
- package/projects/iss/src/validators/file.validator.ts +100 -0
- package/projects/iss/src/validators/time.validator.ts +31 -0
- package/projects/iss/tsconfig.lib.json +13 -0
- package/projects/iss/tsconfig.lib.prod.json +9 -0
- package/projects/iss/tsconfig.spec.json +13 -0
- package/projects/iss/upgrade.scss +68 -0
- package/projects/playground/.eslintrc.json +37 -0
- package/projects/playground/public/favicon.ico +0 -0
- package/projects/playground/public/flags/ad.svg +282 -0
- package/projects/playground/public/flags/ae.svg +6 -0
- package/projects/playground/public/flags/af.svg +9 -0
- package/projects/playground/public/flags/ag.svg +15 -0
- package/projects/playground/public/flags/ai.svg +35 -0
- package/projects/playground/public/flags/al.svg +7 -0
- package/projects/playground/public/flags/am.svg +5 -0
- package/projects/playground/public/flags/ao.svg +19 -0
- package/projects/playground/public/flags/aq.svg +45 -0
- package/projects/playground/public/flags/ar.svg +66 -0
- package/projects/playground/public/flags/as.svg +225 -0
- package/projects/playground/public/flags/at.svg +4 -0
- package/projects/playground/public/flags/au.svg +32 -0
- package/projects/playground/public/flags/aw.svg +11 -0
- package/projects/playground/public/flags/ax.svg +11 -0
- package/projects/playground/public/flags/az.svg +11 -0
- package/projects/playground/public/flags/ba.svg +18 -0
- package/projects/playground/public/flags/bb.svg +11 -0
- package/projects/playground/public/flags/bd.svg +4 -0
- package/projects/playground/public/flags/be.svg +5 -0
- package/projects/playground/public/flags/bf.svg +14 -0
- package/projects/playground/public/flags/bg.svg +5 -0
- package/projects/playground/public/flags/bh.svg +4 -0
- package/projects/playground/public/flags/bi.svg +26 -0
- package/projects/playground/public/flags/bj.svg +5 -0
- package/projects/playground/public/flags/bl.svg +5 -0
- package/projects/playground/public/flags/bm.svg +374 -0
- package/projects/playground/public/flags/bn.svg +70 -0
- package/projects/playground/public/flags/bo.svg +3625 -0
- package/projects/playground/public/flags/bq.svg +5 -0
- package/projects/playground/public/flags/br.svg +92 -0
- package/projects/playground/public/flags/bs.svg +5 -0
- package/projects/playground/public/flags/bt.svg +487 -0
- package/projects/playground/public/flags/bv.svg +11 -0
- package/projects/playground/public/flags/bw.svg +5 -0
- package/projects/playground/public/flags/by.svg +15 -0
- package/projects/playground/public/flags/bz.svg +629 -0
- package/projects/playground/public/flags/ca.svg +7 -0
- package/projects/playground/public/flags/cc.svg +33 -0
- package/projects/playground/public/flags/cd.svg +5 -0
- package/projects/playground/public/flags/cf.svg +7 -0
- package/projects/playground/public/flags/cg.svg +5 -0
- package/projects/playground/public/flags/ch.svg +4 -0
- package/projects/playground/public/flags/ci.svg +5 -0
- package/projects/playground/public/flags/ck.svg +29 -0
- package/projects/playground/public/flags/cl.svg +14 -0
- package/projects/playground/public/flags/cm.svg +15 -0
- package/projects/playground/public/flags/cn.svg +11 -0
- package/projects/playground/public/flags/co.svg +5 -0
- package/projects/playground/public/flags/cr.svg +1332 -0
- package/projects/playground/public/flags/cu.svg +6 -0
- package/projects/playground/public/flags/cv.svg +24 -0
- package/projects/playground/public/flags/cw.svg +16 -0
- package/projects/playground/public/flags/cx.svg +24 -0
- package/projects/playground/public/flags/cy.svg +13 -0
- package/projects/playground/public/flags/cz.svg +5 -0
- package/projects/playground/public/flags/de.svg +5 -0
- package/projects/playground/public/flags/dj.svg +6 -0
- package/projects/playground/public/flags/dk.svg +5 -0
- package/projects/playground/public/flags/dm.svg +198 -0
- package/projects/playground/public/flags/do.svg +238 -0
- package/projects/playground/public/flags/dz.svg +5 -0
- package/projects/playground/public/flags/ec.svg +1292 -0
- package/projects/playground/public/flags/ee.svg +5 -0
- package/projects/playground/public/flags/eg.svg +125 -0
- package/projects/playground/public/flags/eh.svg +12 -0
- package/projects/playground/public/flags/er.svg +9 -0
- package/projects/playground/public/flags/es.svg +445 -0
- package/projects/playground/public/flags/et.svg +16 -0
- package/projects/playground/public/flags/eu.svg +28 -0
- package/projects/playground/public/flags/fi.svg +5 -0
- package/projects/playground/public/flags/fj.svg +203 -0
- package/projects/playground/public/flags/fk.svg +922 -0
- package/projects/playground/public/flags/flags.png +0 -0
- package/projects/playground/public/flags/flags@2x.png +0 -0
- package/projects/playground/public/flags/fm.svg +16 -0
- package/projects/playground/public/flags/fo.svg +11 -0
- package/projects/playground/public/flags/fonts.css +271 -0
- package/projects/playground/public/flags/fr.svg +5 -0
- package/projects/playground/public/flags/ga.svg +5 -0
- package/projects/playground/public/flags/gb-eng.svg +7 -0
- package/projects/playground/public/flags/gb-nir.svg +15 -0
- package/projects/playground/public/flags/gb-sct.svg +11 -0
- package/projects/playground/public/flags/gb-wls.svg +16 -0
- package/projects/playground/public/flags/gb.svg +15 -0
- package/projects/playground/public/flags/gd.svg +11 -0
- package/projects/playground/public/flags/ge.svg +17 -0
- package/projects/playground/public/flags/gf.svg +5 -0
- package/projects/playground/public/flags/gg.svg +8 -0
- package/projects/playground/public/flags/gh.svg +6 -0
- package/projects/playground/public/flags/gi.svg +69 -0
- package/projects/playground/public/flags/gl.svg +4 -0
- package/projects/playground/public/flags/gm.svg +7 -0
- package/projects/playground/public/flags/gn.svg +5 -0
- package/projects/playground/public/flags/gp.svg +5 -0
- package/projects/playground/public/flags/gq.svg +88 -0
- package/projects/playground/public/flags/gr.svg +4 -0
- package/projects/playground/public/flags/gs.svg +693 -0
- package/projects/playground/public/flags/gt.svg +317 -0
- package/projects/playground/public/flags/gu.svg +58 -0
- package/projects/playground/public/flags/gw.svg +13 -0
- package/projects/playground/public/flags/gy.svg +7 -0
- package/projects/playground/public/flags/hk.svg +17 -0
- package/projects/playground/public/flags/hm.svg +32 -0
- package/projects/playground/public/flags/hn.svg +10 -0
- package/projects/playground/public/flags/hr.svg +282 -0
- package/projects/playground/public/flags/ht.svg +1470 -0
- package/projects/playground/public/flags/hu.svg +5 -0
- package/projects/playground/public/flags/id.svg +4 -0
- package/projects/playground/public/flags/ie.svg +5 -0
- package/projects/playground/public/flags/il.svg +5 -0
- package/projects/playground/public/flags/im.svg +33 -0
- package/projects/playground/public/flags/in.svg +25 -0
- package/projects/playground/public/flags/io.svg +895 -0
- package/projects/playground/public/flags/iq.svg +12 -0
- package/projects/playground/public/flags/ir.svg +31 -0
- package/projects/playground/public/flags/is.svg +5 -0
- package/projects/playground/public/flags/it.svg +5 -0
- package/projects/playground/public/flags/je.svg +40 -0
- package/projects/playground/public/flags/jm.svg +9 -0
- package/projects/playground/public/flags/jo.svg +10 -0
- package/projects/playground/public/flags/jp.svg +4 -0
- package/projects/playground/public/flags/ke.svg +28 -0
- package/projects/playground/public/flags/kg.svg +7 -0
- package/projects/playground/public/flags/kh.svg +133 -0
- package/projects/playground/public/flags/ki.svg +54 -0
- package/projects/playground/public/flags/km.svg +13 -0
- package/projects/playground/public/flags/kn.svg +24 -0
- package/projects/playground/public/flags/kp.svg +16 -0
- package/projects/playground/public/flags/kr.svg +16 -0
- package/projects/playground/public/flags/kw.svg +6 -0
- package/projects/playground/public/flags/ky.svg +153 -0
- package/projects/playground/public/flags/kz.svg +49 -0
- package/projects/playground/public/flags/la.svg +5 -0
- package/projects/playground/public/flags/lb.svg +8 -0
- package/projects/playground/public/flags/lc.svg +6 -0
- package/projects/playground/public/flags/li.svg +79 -0
- package/projects/playground/public/flags/lk.svg +50 -0
- package/projects/playground/public/flags/lr.svg +15 -0
- package/projects/playground/public/flags/ls.svg +32 -0
- package/projects/playground/public/flags/lt.svg +5 -0
- package/projects/playground/public/flags/lu.svg +5 -0
- package/projects/playground/public/flags/lv.svg +4 -0
- package/projects/playground/public/flags/ly.svg +8 -0
- package/projects/playground/public/flags/ma.svg +4 -0
- package/projects/playground/public/flags/mc.svg +4 -0
- package/projects/playground/public/flags/md.svg +102 -0
- package/projects/playground/public/flags/me.svg +240 -0
- package/projects/playground/public/flags/mf.svg +5 -0
- package/projects/playground/public/flags/mg.svg +5 -0
- package/projects/playground/public/flags/mh.svg +18 -0
- package/projects/playground/public/flags/mk.svg +6 -0
- package/projects/playground/public/flags/ml.svg +5 -0
- package/projects/playground/public/flags/mm.svg +12 -0
- package/projects/playground/public/flags/mn.svg +12 -0
- package/projects/playground/public/flags/mo.svg +13 -0
- package/projects/playground/public/flags/mp.svg +2919 -0
- package/projects/playground/public/flags/mq.svg +5 -0
- package/projects/playground/public/flags/mr.svg +5 -0
- package/projects/playground/public/flags/ms.svg +59 -0
- package/projects/playground/public/flags/mt.svg +52 -0
- package/projects/playground/public/flags/mu.svg +6 -0
- package/projects/playground/public/flags/mv.svg +8 -0
- package/projects/playground/public/flags/mw.svg +24 -0
- package/projects/playground/public/flags/mx.svg +1129 -0
- package/projects/playground/public/flags/my.svg +12 -0
- package/projects/playground/public/flags/mz.svg +50 -0
- package/projects/playground/public/flags/na.svg +17 -0
- package/projects/playground/public/flags/nc.svg +5 -0
- package/projects/playground/public/flags/ne.svg +6 -0
- package/projects/playground/public/flags/nf.svg +8 -0
- package/projects/playground/public/flags/ng.svg +4 -0
- package/projects/playground/public/flags/ni.svg +281 -0
- package/projects/playground/public/flags/nl.svg +5 -0
- package/projects/playground/public/flags/no.svg +11 -0
- package/projects/playground/public/flags/np.svg +33 -0
- package/projects/playground/public/flags/nr.svg +8 -0
- package/projects/playground/public/flags/nu.svg +23 -0
- package/projects/playground/public/flags/nz.svg +37 -0
- package/projects/playground/public/flags/om.svg +307 -0
- package/projects/playground/public/flags/pa.svg +15 -0
- package/projects/playground/public/flags/pe.svg +767 -0
- package/projects/playground/public/flags/pf.svg +38 -0
- package/projects/playground/public/flags/pg.svg +16 -0
- package/projects/playground/public/flags/ph.svg +28 -0
- package/projects/playground/public/flags/pk.svg +7 -0
- package/projects/playground/public/flags/pl.svg +4 -0
- package/projects/playground/public/flags/pm.svg +5 -0
- package/projects/playground/public/flags/pn.svg +131 -0
- package/projects/playground/public/flags/pr.svg +6 -0
- package/projects/playground/public/flags/ps.svg +6 -0
- package/projects/playground/public/flags/pt.svg +79 -0
- package/projects/playground/public/flags/pw.svg +4 -0
- package/projects/playground/public/flags/py.svg +192 -0
- package/projects/playground/public/flags/qa.svg +7 -0
- package/projects/playground/public/flags/re.svg +5 -0
- package/projects/playground/public/flags/ro.svg +5 -0
- package/projects/playground/public/flags/rs.svg +1143 -0
- package/projects/playground/public/flags/ru.svg +5 -0
- package/projects/playground/public/flags/rw.svg +17 -0
- package/projects/playground/public/flags/sa.svg +23 -0
- package/projects/playground/public/flags/sb.svg +30 -0
- package/projects/playground/public/flags/sc.svg +7 -0
- package/projects/playground/public/flags/sd.svg +6 -0
- package/projects/playground/public/flags/se.svg +5 -0
- package/projects/playground/public/flags/sg.svg +15 -0
- package/projects/playground/public/flags/sh.svg +15 -0
- package/projects/playground/public/flags/si.svg +30 -0
- package/projects/playground/public/flags/sj.svg +11 -0
- package/projects/playground/public/flags/sk.svg +21 -0
- package/projects/playground/public/flags/sl.svg +5 -0
- package/projects/playground/public/flags/sm.svg +847 -0
- package/projects/playground/public/flags/sn.svg +15 -0
- package/projects/playground/public/flags/so.svg +13 -0
- package/projects/playground/public/flags/sr.svg +6 -0
- package/projects/playground/public/flags/ss.svg +8 -0
- package/projects/playground/public/flags/st.svg +16 -0
- package/projects/playground/public/flags/stc-icons.css +1 -0
- package/projects/playground/public/flags/sv.svg +3368 -0
- package/projects/playground/public/flags/sx.svg +172 -0
- package/projects/playground/public/flags/sy.svg +6 -0
- package/projects/playground/public/flags/sz.svg +54 -0
- package/projects/playground/public/flags/tc.svg +88 -0
- package/projects/playground/public/flags/td.svg +5 -0
- package/projects/playground/public/flags/tf.svg +18 -0
- package/projects/playground/public/flags/tg.svg +15 -0
- package/projects/playground/public/flags/th.svg +5 -0
- package/projects/playground/public/flags/tj.svg +32 -0
- package/projects/playground/public/flags/tk.svg +25 -0
- package/projects/playground/public/flags/tl.svg +6 -0
- package/projects/playground/public/flags/tm.svg +349 -0
- package/projects/playground/public/flags/tn.svg +9 -0
- package/projects/playground/public/flags/to.svg +8 -0
- package/projects/playground/public/flags/tr.svg +6 -0
- package/projects/playground/public/flags/tt.svg +5 -0
- package/projects/playground/public/flags/tv.svg +18 -0
- package/projects/playground/public/flags/tw.svg +12 -0
- package/projects/playground/public/flags/tz.svg +13 -0
- package/projects/playground/public/flags/ua.svg +4 -0
- package/projects/playground/public/flags/ug.svg +46 -0
- package/projects/playground/public/flags/um.svg +25 -0
- package/projects/playground/public/flags/us.svg +25 -0
- package/projects/playground/public/flags/uy.svg +138 -0
- package/projects/playground/public/flags/uz.svg +30 -0
- package/projects/playground/public/flags/va.svg +277 -0
- package/projects/playground/public/flags/vc.svg +9 -0
- package/projects/playground/public/flags/ve.svg +28 -0
- package/projects/playground/public/flags/vg.svg +96 -0
- package/projects/playground/public/flags/vi.svg +311 -0
- package/projects/playground/public/flags/vn.svg +12 -0
- package/projects/playground/public/flags/vu.svg +20 -0
- package/projects/playground/public/flags/wf.svg +7 -0
- package/projects/playground/public/flags/ws.svg +14 -0
- package/projects/playground/public/flags/xk.svg +11 -0
- package/projects/playground/public/flags/ye.svg +5 -0
- package/projects/playground/public/flags/yt.svg +5 -0
- package/projects/playground/public/flags/za.svg +17 -0
- package/projects/playground/public/flags/zm.svg +20 -0
- package/projects/playground/public/flags/zw.svg +130 -0
- package/projects/playground/src/app/app.component.ts +119 -0
- package/projects/playground/src/app/app.config.ts +51 -0
- package/projects/playground/src/app/app.routes.ts +41 -0
- package/projects/playground/src/app/login.service.ts +21 -0
- package/projects/playground/src/components/attachment-wrapper.component.ts +45 -0
- package/projects/playground/src/components/attachment.component.ts +35 -0
- package/projects/playground/src/components/checkbox-wrapper.component.ts +43 -0
- package/projects/playground/src/components/chips-wrapper.component.ts +37 -0
- package/projects/playground/src/components/ctrl-array-wrapper.component.ts +76 -0
- package/projects/playground/src/components/date-picker-container.component.ts +22 -0
- package/projects/playground/src/components/date-picker-wrapper.component.ts +41 -0
- package/projects/playground/src/components/date-range-picker-container.component.ts +24 -0
- package/projects/playground/src/components/date-range-picker-wrapper.component.ts +41 -0
- package/projects/playground/src/components/datetime-container.component.ts +25 -0
- package/projects/playground/src/components/datetime-picker-wrapper.component.ts +62 -0
- package/projects/playground/src/components/input-container.component.ts +35 -0
- package/projects/playground/src/components/input-wrapper.component.ts +41 -0
- package/projects/playground/src/components/mobile-container.component.ts +23 -0
- package/projects/playground/src/components/mobile-wrapper.component.ts +36 -0
- package/projects/playground/src/components/note-wrapper.component.ts +37 -0
- package/projects/playground/src/components/outlet-container.component.ts +144 -0
- package/projects/playground/src/components/plate-container.component.ts +22 -0
- package/projects/playground/src/components/plate-wrapper.component.ts +39 -0
- package/projects/playground/src/components/radio-wrapper.component.ts +45 -0
- package/projects/playground/src/components/select-container.component.ts +31 -0
- package/projects/playground/src/components/select-wrapper.component.ts +48 -0
- package/projects/playground/src/components/ships-container.component.ts +23 -0
- package/projects/playground/src/components/slide-toggle-wrapper.component.ts +40 -0
- package/projects/playground/src/components/textarea-container.component.ts +23 -0
- package/projects/playground/src/components/textarea-wrapper.component.ts +54 -0
- package/projects/playground/src/components/time-picker-container.component.ts +23 -0
- package/projects/playground/src/components/time-picker-wrapper.component.ts +43 -0
- package/projects/playground/src/components/toggle-button-wrapper.component.ts +49 -0
- package/projects/playground/src/components/user-picker-wrapper.component.ts +37 -0
- package/projects/playground/src/eServices/create-request.component.ts +28 -0
- package/projects/playground/src/eServices/e-service.component.ts +112 -0
- package/projects/playground/src/eServices/view-request.component.ts +13 -0
- package/projects/playground/src/index.html +13 -0
- package/projects/playground/src/interceptors/header.interceptor.ts +71 -0
- package/projects/playground/src/main.ts +8 -0
- package/projects/playground/src/services/ss.service.ts +62 -0
- package/projects/playground/src/styles.scss +33 -0
- package/projects/playground/src/validators/customValidator.validator.ts +10 -0
- package/projects/playground/tsconfig.app.json +15 -0
- package/tsconfig.json +31 -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/fesm2022/iss-ctrl.mjs +0 -3658
- package/fesm2022/iss-ctrl.mjs.map +0 -1
- 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,481 @@
|
|
|
1
|
+
import {Component, signal} from "@angular/core";
|
|
2
|
+
import {NG_VALUE_ACCESSOR, ReactiveFormsModule} from "@angular/forms";
|
|
3
|
+
import {PLATE_LETTERS} from "../../../shared/constants/plate-letters.const";
|
|
4
|
+
import {ControlBase} from "../base/control.base";
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "iss-ctrl-plate-number",
|
|
8
|
+
imports: [
|
|
9
|
+
ReactiveFormsModule
|
|
10
|
+
],
|
|
11
|
+
providers: [
|
|
12
|
+
{provide: NG_VALUE_ACCESSOR, useExisting: PlateControl, multi: true}
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<div class="plate-container">
|
|
16
|
+
<div class="section numbers-section">
|
|
17
|
+
<div class="digit-row">
|
|
18
|
+
@for (num of numbersAr(); track $index) {
|
|
19
|
+
<input
|
|
20
|
+
type="text"
|
|
21
|
+
class="plate-input number-input"
|
|
22
|
+
maxlength="1"
|
|
23
|
+
[id]="'num-ar-' + $index"
|
|
24
|
+
[value]="num"
|
|
25
|
+
placeholder="١"
|
|
26
|
+
(keydown)="preventNonDigits($event, 'ar')"
|
|
27
|
+
(keyup)="preventNonDigits($event, 'ar')"
|
|
28
|
+
(input)="onNumberInput($index, $event, 'ar')"
|
|
29
|
+
/>
|
|
30
|
+
}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="digit-row">
|
|
34
|
+
@for (num of numbersEn(); track $index) {
|
|
35
|
+
<input
|
|
36
|
+
type="text"
|
|
37
|
+
class="plate-input number-input"
|
|
38
|
+
maxlength="1"
|
|
39
|
+
[id]="'num-en-' + $index"
|
|
40
|
+
[value]="num"
|
|
41
|
+
placeholder="1"
|
|
42
|
+
(keydown)="preventNonDigits($event, 'en')"
|
|
43
|
+
(keyup)="preventNonDigits($event, 'en')"
|
|
44
|
+
(input)="onNumberInput($index, $event, 'en')"
|
|
45
|
+
/>
|
|
46
|
+
}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="section emblem-section">
|
|
51
|
+
<svg class="emblem-svg" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
52
|
+
<path
|
|
53
|
+
fill-rule="evenodd"
|
|
54
|
+
clip-rule="evenodd"
|
|
55
|
+
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"
|
|
56
|
+
fill="#1D252D"
|
|
57
|
+
/>
|
|
58
|
+
</svg>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="section letters-section">
|
|
62
|
+
<div class="arabic-row" dir="rtl">
|
|
63
|
+
@for (letter of lettersAr(); track $index) {
|
|
64
|
+
<div class="input-wrapper">
|
|
65
|
+
<input
|
|
66
|
+
type="text"
|
|
67
|
+
class="plate-input letter-input"
|
|
68
|
+
maxlength="1"
|
|
69
|
+
[id]="'let-ar-' + $index"
|
|
70
|
+
[class.invalid]="letterErrors()[$index]"
|
|
71
|
+
[value]="letter"
|
|
72
|
+
placeholder="س"
|
|
73
|
+
(input)="onLetterInput($index, $event, 'ar')"
|
|
74
|
+
/>
|
|
75
|
+
@if (letterErrors()[$index]) {
|
|
76
|
+
<span class="error-tooltip">Invalid</span>
|
|
77
|
+
}
|
|
78
|
+
</div>
|
|
79
|
+
}
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div class="english-row" dir="rtl">
|
|
83
|
+
@for (letter of lettersEn(); track $index) {
|
|
84
|
+
<div class="input-wrapper">
|
|
85
|
+
<input
|
|
86
|
+
type="text"
|
|
87
|
+
class="plate-input letter-input"
|
|
88
|
+
maxlength="1"
|
|
89
|
+
[id]="'let-en-' + $index"
|
|
90
|
+
[class.invalid]="letterErrors()[$index]"
|
|
91
|
+
[value]="letter"
|
|
92
|
+
placeholder="S"
|
|
93
|
+
(input)="onLetterInput($index, $event, 'en')"
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div class="ksa-strip">
|
|
101
|
+
<svg class="mini-emblem" viewBox="0 0 17 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
102
|
+
<path
|
|
103
|
+
fill-rule="evenodd"
|
|
104
|
+
clip-rule="evenodd"
|
|
105
|
+
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"
|
|
106
|
+
fill="#1D252D"
|
|
107
|
+
/>
|
|
108
|
+
</svg>
|
|
109
|
+
<span class="ksa-text">KSA</span>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
`,
|
|
113
|
+
styles: `
|
|
114
|
+
.plate-container {
|
|
115
|
+
width: 600px;
|
|
116
|
+
height: 130px;
|
|
117
|
+
border: 4px solid #1D252D;
|
|
118
|
+
border-radius: 10px;
|
|
119
|
+
background: white;
|
|
120
|
+
display: flex;
|
|
121
|
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
position: relative;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* General Section Styling */
|
|
127
|
+
.section {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Left Section: Numbers/Asterisks */
|
|
135
|
+
.numbers-section {
|
|
136
|
+
flex: 2;
|
|
137
|
+
padding: 0 10px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.digit-row {
|
|
141
|
+
display: flex;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
width: 80%;
|
|
144
|
+
font-size: 38px;
|
|
145
|
+
line-height: 1;
|
|
146
|
+
color: #1D252D;
|
|
147
|
+
margin: 2px 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Middle Section: Emblem */
|
|
151
|
+
.emblem-section {
|
|
152
|
+
flex: 1.2;
|
|
153
|
+
padding: 10px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.emblem-svg {
|
|
157
|
+
width: 100%;
|
|
158
|
+
height: 100%;
|
|
159
|
+
max-height: 90px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Right Section: Letters */
|
|
163
|
+
.letters-section {
|
|
164
|
+
flex: 1.8;
|
|
165
|
+
border-right: 2px solid #1D252D;
|
|
166
|
+
padding: 0 10px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.arabic-row {
|
|
170
|
+
font-family: 'Noto Sans Arabic', sans-serif;
|
|
171
|
+
font-size: 32px;
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: space-around;
|
|
174
|
+
width: 100%;
|
|
175
|
+
margin-bottom: 5px;
|
|
176
|
+
color: #1D252D;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.english-row {
|
|
180
|
+
font-size: 38px;
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: space-around;
|
|
183
|
+
width: 100%;
|
|
184
|
+
color: #1D252D;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Far Right: KSA Strip */
|
|
188
|
+
.ksa-strip {
|
|
189
|
+
width: 50px;
|
|
190
|
+
display: flex;
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
justify-content: space-between;
|
|
193
|
+
align-items: center;
|
|
194
|
+
padding: 10px 0;
|
|
195
|
+
background-color: #fff; /* or specific reflective white */
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mini-emblem {
|
|
199
|
+
width: 25px;
|
|
200
|
+
height: auto;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ksa-text {
|
|
204
|
+
writing-mode: vertical-rl;
|
|
205
|
+
text-orientation: upright;
|
|
206
|
+
font-weight: 900;
|
|
207
|
+
font-size: 16px;
|
|
208
|
+
letter-spacing: 2px;
|
|
209
|
+
color: #1D252D;
|
|
210
|
+
margin-top: auto;
|
|
211
|
+
margin-bottom: 5px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.plate-input {
|
|
215
|
+
background: transparent;
|
|
216
|
+
border: none;
|
|
217
|
+
text-align: center;
|
|
218
|
+
font-family: inherit;
|
|
219
|
+
font-size: inherit;
|
|
220
|
+
font-weight: bold;
|
|
221
|
+
color: #1D252D;
|
|
222
|
+
width: 100%; /* Fill the flex/grid item */
|
|
223
|
+
padding: 0;
|
|
224
|
+
margin: 0;
|
|
225
|
+
outline: none; /* Remove blue outline on focus */
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Optional: Add a subtle underline or color change when user clicks the input */
|
|
229
|
+
.plate-input:focus {
|
|
230
|
+
border-bottom: 2px solid #1D252D;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Adjusting the container flex settings to ensure inputs fit */
|
|
234
|
+
.digit-row, .arabic-row, .english-row {
|
|
235
|
+
display: flex;
|
|
236
|
+
justify-content: space-between;
|
|
237
|
+
width: 100%;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Specific sizing for numbers to ensure they match plate proportions */
|
|
241
|
+
.number-input {
|
|
242
|
+
/* Adjust width based on your container size, roughly 20-25% */
|
|
243
|
+
flex: 1;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Specific sizing for letters */
|
|
247
|
+
.letter-input {
|
|
248
|
+
flex: 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Placeholder styling to look like a ghost plate */
|
|
252
|
+
.plate-input::placeholder {
|
|
253
|
+
color: #ccc;
|
|
254
|
+
opacity: 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.input-wrapper {
|
|
258
|
+
position: relative;
|
|
259
|
+
display: flex;
|
|
260
|
+
flex-direction: column;
|
|
261
|
+
align-items: center;
|
|
262
|
+
flex: 1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.error-tooltip {
|
|
266
|
+
position: absolute;
|
|
267
|
+
bottom: -15px;
|
|
268
|
+
font-size: 10px;
|
|
269
|
+
color: red;
|
|
270
|
+
white-space: nowrap;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.plate-input.invalid {
|
|
274
|
+
color: red;
|
|
275
|
+
}
|
|
276
|
+
`,
|
|
277
|
+
})
|
|
278
|
+
export class PlateControl extends ControlBase {
|
|
279
|
+
numbersAr = signal<string[]>(Array(4).fill(""));
|
|
280
|
+
numbersEn = signal<string[]>(Array(4).fill(""));
|
|
281
|
+
lettersAr = signal<string[]>(Array(3).fill(""));
|
|
282
|
+
lettersEn = signal<string[]>(Array(3).fill(""));
|
|
283
|
+
letterErrors = signal<boolean[]>(Array(3).fill(false));
|
|
284
|
+
|
|
285
|
+
override writeValue(value: string) {
|
|
286
|
+
const val = value;
|
|
287
|
+
if (val) {
|
|
288
|
+
const parts = val.split("-");
|
|
289
|
+
const letters = parts[0]?.split("") || [];
|
|
290
|
+
const numbers = parts[1]?.split("") || [];
|
|
291
|
+
|
|
292
|
+
// Initialize letters
|
|
293
|
+
const lAr: string[] = [];
|
|
294
|
+
const lEn: string[] = [];
|
|
295
|
+
for (let i = 0; i < 3; i++) {
|
|
296
|
+
const char = letters[i] || "";
|
|
297
|
+
if (char) {
|
|
298
|
+
const plateLetter = PLATE_LETTERS.find(l => l.value === char || l.label.en === char || l.label.ar === char);
|
|
299
|
+
if (plateLetter) {
|
|
300
|
+
lAr.push(plateLetter.label.ar);
|
|
301
|
+
lEn.push(plateLetter.label.en);
|
|
302
|
+
} else {
|
|
303
|
+
lAr.push("");
|
|
304
|
+
lEn.push("");
|
|
305
|
+
}
|
|
306
|
+
} else {
|
|
307
|
+
lAr.push("");
|
|
308
|
+
lEn.push("");
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
this.lettersAr.set(lAr);
|
|
312
|
+
this.lettersEn.set(lEn);
|
|
313
|
+
|
|
314
|
+
// Initialize numbers
|
|
315
|
+
const nAr: string[] = [];
|
|
316
|
+
const nEn: string[] = [];
|
|
317
|
+
for (let i = 0; i < 4; i++) {
|
|
318
|
+
const char = numbers[i] || "";
|
|
319
|
+
if (char) {
|
|
320
|
+
nAr.push(this.convertDigit(char, "ar"));
|
|
321
|
+
nEn.push(this.convertDigit(char, "en"));
|
|
322
|
+
} else {
|
|
323
|
+
nAr.push("");
|
|
324
|
+
nEn.push("");
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
this.numbersAr.set(nAr);
|
|
328
|
+
this.numbersEn.set(nEn);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
onNumberInput(index: number, event: Event, lang: "ar" | "en") {
|
|
333
|
+
const input = event.target as HTMLInputElement;
|
|
334
|
+
let value = input.value;
|
|
335
|
+
|
|
336
|
+
// Allow only numbers
|
|
337
|
+
if (!/^[0-9\u0660-\u0669]*$/.test(value)) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
input.value = lang === "ar" ? this.numbersAr()[index] : this.numbersEn()[index];
|
|
342
|
+
|
|
343
|
+
// Take only the last character if multiple characters are entered
|
|
344
|
+
if (value.length > 1) {
|
|
345
|
+
value = value.slice(-1);
|
|
346
|
+
input.value = value;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (!value) {
|
|
350
|
+
const newAr = [...this.numbersAr()];
|
|
351
|
+
const newEn = [...this.numbersEn()];
|
|
352
|
+
newAr[index] = "";
|
|
353
|
+
newEn[index] = "";
|
|
354
|
+
this.numbersAr.set(newAr);
|
|
355
|
+
this.numbersEn.set(newEn);
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
const arDigits = ["٠", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"];
|
|
360
|
+
const enDigits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
361
|
+
|
|
362
|
+
let digitIndex = enDigits.indexOf(value);
|
|
363
|
+
|
|
364
|
+
if (digitIndex === -1) {
|
|
365
|
+
digitIndex = arDigits.indexOf(value);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const newAr = [...this.numbersAr()];
|
|
369
|
+
const newEn = [...this.numbersEn()];
|
|
370
|
+
|
|
371
|
+
if (digitIndex !== -1) {
|
|
372
|
+
newAr[index] = arDigits[digitIndex];
|
|
373
|
+
newEn[index] = enDigits[digitIndex];
|
|
374
|
+
|
|
375
|
+
// Focus next
|
|
376
|
+
if (index < 3) {
|
|
377
|
+
this.focusInput(`num-${lang}-${index + 1}`);
|
|
378
|
+
} else {
|
|
379
|
+
this.focusInput(`let-${lang}-0`);
|
|
380
|
+
}
|
|
381
|
+
} else {
|
|
382
|
+
// Should not happen due to regex check, but safe fallback
|
|
383
|
+
newAr[index] = "";
|
|
384
|
+
newEn[index] = "";
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
this.numbersAr.set(newAr);
|
|
388
|
+
this.numbersEn.set(newEn);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
onLetterInput(index: number, event: Event, lang: "ar" | "en") {
|
|
392
|
+
const input = event.target as HTMLInputElement;
|
|
393
|
+
let value = input.value;
|
|
394
|
+
|
|
395
|
+
if (!value) {
|
|
396
|
+
const newAr = [...this.lettersAr()];
|
|
397
|
+
const newEn = [...this.lettersEn()];
|
|
398
|
+
const newErrors = [...this.letterErrors()];
|
|
399
|
+
newAr[index] = "";
|
|
400
|
+
newEn[index] = "";
|
|
401
|
+
newErrors[index] = false;
|
|
402
|
+
this.lettersAr.set(newAr);
|
|
403
|
+
this.lettersEn.set(newEn);
|
|
404
|
+
this.letterErrors.set(newErrors);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Take only the last character
|
|
409
|
+
if (value.length > 1) {
|
|
410
|
+
value = value.slice(-1);
|
|
411
|
+
input.value = value;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const plateLetter = PLATE_LETTERS.find(l =>
|
|
415
|
+
l.value === value.toUpperCase() ||
|
|
416
|
+
l.label.en === value.toUpperCase() ||
|
|
417
|
+
l.label.ar === value
|
|
418
|
+
);
|
|
419
|
+
|
|
420
|
+
const newAr = [...this.lettersAr()];
|
|
421
|
+
const newEn = [...this.lettersEn()];
|
|
422
|
+
const newErrors = [...this.letterErrors()];
|
|
423
|
+
|
|
424
|
+
if (plateLetter) {
|
|
425
|
+
newAr[index] = plateLetter.label.ar;
|
|
426
|
+
newEn[index] = plateLetter.label.en;
|
|
427
|
+
newErrors[index] = false;
|
|
428
|
+
|
|
429
|
+
// Focus next
|
|
430
|
+
if (index < 2) {
|
|
431
|
+
this.focusInput(`let-${lang}-${index + 1}`);
|
|
432
|
+
} else {
|
|
433
|
+
this.focusInput(`num-${lang}-0`);
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
// Show error
|
|
437
|
+
if (lang === "ar") {
|
|
438
|
+
newAr[index] = value;
|
|
439
|
+
newEn[index] = ""; // Or keep previous?
|
|
440
|
+
} else {
|
|
441
|
+
newEn[index] = value;
|
|
442
|
+
newAr[index] = "";
|
|
443
|
+
}
|
|
444
|
+
newErrors[index] = true;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
this.lettersAr.set(newAr);
|
|
448
|
+
this.lettersEn.set(newEn);
|
|
449
|
+
this.letterErrors.set(newErrors);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
protected preventNonDigits($event: KeyboardEvent, ar: string) {
|
|
453
|
+
if ($event.key.length === 1 && !/^[0-9\u0660-\u0669]$/.test($event.key)) {
|
|
454
|
+
$event.preventDefault();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
private focusInput(id: string) {
|
|
459
|
+
setTimeout(() => {
|
|
460
|
+
const element = document.getElementById(id);
|
|
461
|
+
if (element) {
|
|
462
|
+
element.focus();
|
|
463
|
+
// Optional: Select text so user can overwrite easily if they cycle back
|
|
464
|
+
(element as HTMLInputElement).select();
|
|
465
|
+
}
|
|
466
|
+
}, 0);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
private convertDigit(digit: string, toLang: "ar" | "en"): string {
|
|
470
|
+
const arDigits = ["٠", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"];
|
|
471
|
+
const enDigits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
472
|
+
|
|
473
|
+
if (toLang === "ar") {
|
|
474
|
+
const index = enDigits.indexOf(digit);
|
|
475
|
+
return index !== -1 ? arDigits[index] : digit;
|
|
476
|
+
} else {
|
|
477
|
+
const index = arDigits.indexOf(digit);
|
|
478
|
+
return index !== -1 ? enDigits[index] : digit;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|