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
package/package.json
CHANGED
|
@@ -1,25 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iss-ctrl",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"ng": "ng",
|
|
6
|
+
"start": "ng serve --port 9090 -o",
|
|
7
|
+
"build": "ng build iss",
|
|
8
|
+
"watch": "ng build --watch --configuration development iss",
|
|
9
|
+
"test": "ng test",
|
|
10
|
+
"lint": "ng lint iss"
|
|
7
11
|
},
|
|
8
12
|
"dependencies": {
|
|
9
|
-
"
|
|
13
|
+
"@angular/animations": "^21.0.6",
|
|
14
|
+
"@angular/cdk": "^21.0.5",
|
|
15
|
+
"@angular/common": "^21.0.6",
|
|
16
|
+
"@angular/compiler": "^21.0.6",
|
|
17
|
+
"@angular/core": "^21.0.6",
|
|
18
|
+
"@angular/forms": "^21.0.6",
|
|
19
|
+
"@angular/material": "^21.0.5",
|
|
20
|
+
"@angular/material-date-fns-adapter": "^21.0.5",
|
|
21
|
+
"@angular/platform-browser": "^21.0.6",
|
|
22
|
+
"@angular/platform-browser-dynamic": "^21.0.6",
|
|
23
|
+
"@angular/router": "^21.0.6",
|
|
24
|
+
"@basic-ui-components-stc/basic-ui-components": "1.0.4",
|
|
25
|
+
"bootstrap": "^5.3.3",
|
|
26
|
+
"date-fns": "^4.1.0",
|
|
27
|
+
"jsencrypt": "^3.3.2",
|
|
28
|
+
"libphonenumber-js": "^1.12.33",
|
|
29
|
+
"rxjs": "~7.8.0",
|
|
30
|
+
"tslib": "^2.3.0",
|
|
31
|
+
"zone.js": "~0.15.0"
|
|
10
32
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@angular-eslint/builder": "19.0.2",
|
|
35
|
+
"@angular-eslint/eslint-plugin": "19.0.2",
|
|
36
|
+
"@angular-eslint/eslint-plugin-template": "19.0.2",
|
|
37
|
+
"@angular-eslint/schematics": "19.0.2",
|
|
38
|
+
"@angular-eslint/template-parser": "19.0.2",
|
|
39
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
40
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
41
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
42
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
43
|
+
"@angular/build": "^21.0.4",
|
|
44
|
+
"@angular/cli": "^21.0.4",
|
|
45
|
+
"@angular/compiler-cli": "^21.0.6",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "7.11.0",
|
|
47
|
+
"@typescript-eslint/parser": "7.11.0",
|
|
48
|
+
"angular-eslint": "19.0.2",
|
|
49
|
+
"eslint": "8.57.0",
|
|
50
|
+
"ng-packagr": "^21.0.1",
|
|
51
|
+
"typescript": "~5.9.3",
|
|
52
|
+
"typescript-eslint": "8.18.0"
|
|
24
53
|
}
|
|
25
|
-
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"rules": {
|
|
12
|
+
"@angular-eslint/directive-selector": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
"type": "attribute",
|
|
16
|
+
"prefix": "iss",
|
|
17
|
+
"style": "camelCase"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"@angular-eslint/component-selector": [
|
|
21
|
+
"error",
|
|
22
|
+
{
|
|
23
|
+
"type": "element",
|
|
24
|
+
"prefix": "iss",
|
|
25
|
+
"style": "kebab-case"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"files": [
|
|
32
|
+
"*.html"
|
|
33
|
+
],
|
|
34
|
+
"rules": {}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Iss
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.1.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project iss` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project iss`.
|
|
8
|
+
> Note: Don't forget to add `--project iss` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build iss` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build iss`, go to the dist folder `cd dist/iss` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test iss` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "iss",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^21.0.6",
|
|
6
|
+
"@angular/core": "^21.0.6",
|
|
7
|
+
"@angular/material": "^21.0.5",
|
|
8
|
+
"@angular/material-date-fns-adapter": "^21.0.5",
|
|
9
|
+
"@basic-ui-components-stc/basic-ui-components": "1.0.4",
|
|
10
|
+
"date-fns": "^4.1.0",
|
|
11
|
+
"libphonenumber-js": "^1.12.33"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"tslib": "^2.3.0"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false
|
|
17
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {Component, input, InputSignal, output, OutputEmitterRef, signal, WritableSignal} from "@angular/core";
|
|
2
|
+
import {AbstractControl, ControlValueAccessor, FormControl, ValidationErrors, Validator} from "@angular/forms";
|
|
3
|
+
import {Hint} from "../../../shared/interfaces/hint.interface";
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
template: ``,
|
|
7
|
+
})
|
|
8
|
+
export class ControlBase implements ControlValueAccessor, Validator {
|
|
9
|
+
formControlName: InputSignal<string> = input<string>("");
|
|
10
|
+
min: InputSignal<number | string | null> = input<number | string | null>(null);
|
|
11
|
+
max: InputSignal<number | string | null> = input<number | string | null>(null);
|
|
12
|
+
disabled: WritableSignal<boolean> = signal(false);
|
|
13
|
+
multiple: InputSignal<boolean | undefined> = input<boolean | undefined>(false);
|
|
14
|
+
placeholder: InputSignal<string> = input<string>("");
|
|
15
|
+
hints: InputSignal<Hint[]> = input<Hint[]>([]);
|
|
16
|
+
className: InputSignal<string | null> = input<string | null>(null);
|
|
17
|
+
touched: WritableSignal<boolean> = signal(false);
|
|
18
|
+
onChange: OutputEmitterRef<any> = output<any>();
|
|
19
|
+
protected ctrl: FormControl = new FormControl(null);
|
|
20
|
+
protected onTouch: () => void = () => { };
|
|
21
|
+
protected onPropagateValue: (_: any) => void = (_: any) => { };
|
|
22
|
+
|
|
23
|
+
registerOnChange(fn: () => void): void {
|
|
24
|
+
this.onPropagateValue = fn;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
registerOnTouched(fn: () => void): void {
|
|
28
|
+
this.onTouch = fn;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
setDisabledState(isDisabled: boolean): void {
|
|
32
|
+
this.disabled.set(isDisabled);
|
|
33
|
+
if (isDisabled) {
|
|
34
|
+
this.ctrl.disable();
|
|
35
|
+
} else {
|
|
36
|
+
this.ctrl.enable();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
writeValue(value: string | FormData | Date | null): void {
|
|
41
|
+
this.ctrl.setValue(value);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
markAsTouched() {
|
|
45
|
+
this.touched.set(true);
|
|
46
|
+
this.onTouch();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
validate(control: AbstractControl): ValidationErrors | null {
|
|
50
|
+
return this.ctrl.errors;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
protected emitValue(value?: any) {
|
|
54
|
+
let emissionValue = this.ctrl.getRawValue();
|
|
55
|
+
if (value !== undefined) {
|
|
56
|
+
emissionValue = value;
|
|
57
|
+
}
|
|
58
|
+
this.onPropagateValue(emissionValue);
|
|
59
|
+
this.emitOnChangeEvent(emissionValue);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
protected propagateValue(value?: any) {
|
|
63
|
+
let emissionValue = this.ctrl.getRawValue();
|
|
64
|
+
if (value !== undefined) {
|
|
65
|
+
emissionValue = value;
|
|
66
|
+
}
|
|
67
|
+
this.onPropagateValue(emissionValue);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
protected emitOnChangeEvent($event?: any) {
|
|
71
|
+
let emissionValue = this.ctrl.getRawValue();
|
|
72
|
+
if ($event !== undefined) {
|
|
73
|
+
emissionValue = $event;
|
|
74
|
+
}
|
|
75
|
+
this.onChange.emit(emissionValue);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {Component, DestroyRef, effect, EffectRef, inject, input, InputSignal, OnDestroy, OnInit} from "@angular/core";
|
|
2
|
+
import {takeUntilDestroyed, toSignal} from "@angular/core/rxjs-interop";
|
|
3
|
+
import {ControlContainer, FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
|
|
4
|
+
import {EventHandlerService} from "../../../events/event-handler.service";
|
|
5
|
+
import {FormField} from "../../../shared/classes/form-field";
|
|
6
|
+
import {FieldChange} from "../../../shared/interfaces/field.interface";
|
|
7
|
+
import {FormEngine} from "../../../shared/services/form-engine.service";
|
|
8
|
+
import {FIELD_DATA} from "../../../shared/tokens/field.token";
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
template: ``,
|
|
12
|
+
imports: [ReactiveFormsModule]
|
|
13
|
+
})
|
|
14
|
+
export class WrapperBase implements OnInit, OnDestroy {
|
|
15
|
+
issField: InputSignal<FormField> = input.required<FormField>();
|
|
16
|
+
formReady = input<boolean>();
|
|
17
|
+
field: FormField = inject(FIELD_DATA);
|
|
18
|
+
parentFormGroup: ControlContainer = inject(ControlContainer);
|
|
19
|
+
formEngine: FormEngine = inject(FormEngine);
|
|
20
|
+
eventHandler: EventHandlerService = inject(EventHandlerService);
|
|
21
|
+
destroyRef: DestroyRef = inject(DestroyRef);
|
|
22
|
+
ctrl: FormControl = new FormControl(null);
|
|
23
|
+
ctrlValueChange = toSignal(this.ctrl.valueChanges, {initialValue: this.ctrl.getRawValue()});
|
|
24
|
+
#valueChangeEffectRef = effect(() => {
|
|
25
|
+
this.field.ctrlValue.set(this.ctrlValueChange());
|
|
26
|
+
});
|
|
27
|
+
#eventEffectRef: EffectRef = effect(() => {
|
|
28
|
+
if (this.formReady()) {
|
|
29
|
+
this.#initiateEvents();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
get form() {
|
|
34
|
+
return this.parentFormGroup.control as FormGroup;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
ngOnInit() {
|
|
38
|
+
this.#addControlToForm();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ngOnDestroy() {
|
|
42
|
+
this.#valueChangeEffectRef.destroy();
|
|
43
|
+
this.#eventEffectRef.destroy();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#addControlToForm(): void {
|
|
47
|
+
this.ctrl.setValue(this.formEngine.getFieldValue(this.field));
|
|
48
|
+
this.ctrl.setValidators(this.formEngine.createValidators(this.field));
|
|
49
|
+
this.ctrl.setAsyncValidators(this.formEngine.createAsyncValidators(this.field));
|
|
50
|
+
this.form.addControl(this.field.name, this.ctrl);
|
|
51
|
+
|
|
52
|
+
if (this.ctrl.getRawValue()) {
|
|
53
|
+
this.ctrl.markAsTouched();
|
|
54
|
+
}
|
|
55
|
+
this.field.registered.set(true);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#initiateEvents(): void {
|
|
59
|
+
// todo don't start events in view mode, just set value
|
|
60
|
+
if (this.field.events && this.field.events.length) {
|
|
61
|
+
this.#startEvents();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (this.field.validation) {
|
|
65
|
+
this.#updateValidityOnMasterChanges();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#startEvents(): void {
|
|
70
|
+
this.formEngine.trackChangesEvents(this.field, this.form)
|
|
71
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
72
|
+
.subscribe((change: FieldChange) => {
|
|
73
|
+
this.eventHandler.revert(this.ctrl, this.form, this.field, change).then();
|
|
74
|
+
this.eventHandler.fire(this.ctrl, this.form, this.field, change).then();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#updateValidityOnMasterChanges() {
|
|
79
|
+
this.formEngine.trackChangesValidations(this.field, this.form)
|
|
80
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
81
|
+
.subscribe(() => {
|
|
82
|
+
this.ctrl.updateValueAndValidity({emitEvent: false});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {Component, input, InputSignal, signal, WritableSignal} from "@angular/core";
|
|
2
|
+
import {NG_VALUE_ACCESSOR, ReactiveFormsModule} from "@angular/forms";
|
|
3
|
+
import {MatCheckboxModule} from "@angular/material/checkbox";
|
|
4
|
+
import {Option} from "../../../shared/interfaces/option.interface";
|
|
5
|
+
import {SelectStatusPipe} from "../../../shared/pipes/select-status.pipe";
|
|
6
|
+
import {ControlBase} from "../base/control.base";
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: "iss-ctrl-checkbox",
|
|
10
|
+
imports: [ReactiveFormsModule, MatCheckboxModule, SelectStatusPipe],
|
|
11
|
+
providers: [
|
|
12
|
+
{provide: NG_VALUE_ACCESSOR, useExisting: CheckboxControl, multi: true},
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ul class="list-unstyled">
|
|
16
|
+
@for (option of options(); track option.value; ) {
|
|
17
|
+
<li class="mb-2">
|
|
18
|
+
<mat-checkbox
|
|
19
|
+
[checked]="option | selectStatus: selectedOptions()"
|
|
20
|
+
(change)="onCheckboxChange($event.checked, option.value)"
|
|
21
|
+
>
|
|
22
|
+
{{ option.label }}
|
|
23
|
+
</mat-checkbox>
|
|
24
|
+
</li>
|
|
25
|
+
}
|
|
26
|
+
</ul>
|
|
27
|
+
`
|
|
28
|
+
})
|
|
29
|
+
export class CheckboxControl extends ControlBase {
|
|
30
|
+
options: InputSignal<Option[]> = input.required();
|
|
31
|
+
selectedOptions: WritableSignal<Map<string, Option>> = signal(new Map<string, Option>());
|
|
32
|
+
|
|
33
|
+
override writeValue(value: string | null) {
|
|
34
|
+
this.#reset();
|
|
35
|
+
if (value === null || value === undefined) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const values: string[] = value.split(",").map((val: string) => val.trim());
|
|
39
|
+
const selectedOptions: Option[] = this.options().filter((option: Option) => values.includes(option.value));
|
|
40
|
+
this.addToSelectedOptionsMap(this.#selectedOptionsMapFactory(selectedOptions));
|
|
41
|
+
this.ctrl.setValue(selectedOptions);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
addToSelectedOptionsMap(option: Map<string, Option>) {
|
|
45
|
+
if (option) {
|
|
46
|
+
this.selectedOptions = signal(option);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onCheckboxChange(checked: boolean, value: string) {
|
|
51
|
+
const selectedOption = this.options().find((option: Option) => option.value === value);
|
|
52
|
+
|
|
53
|
+
if (!selectedOption) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
this.selectedOptions.update((prev) => {
|
|
58
|
+
const options = prev;
|
|
59
|
+
if (checked) {
|
|
60
|
+
options.set(selectedOption.value, selectedOption!);
|
|
61
|
+
} else {
|
|
62
|
+
options.delete(selectedOption.value);
|
|
63
|
+
}
|
|
64
|
+
return options;
|
|
65
|
+
});
|
|
66
|
+
this.getEmissionValue(this.selectedOptions());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
stringifySelectedOptions(): string | null {
|
|
70
|
+
if (!this.selectedOptions()?.size) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return Array.from(this.selectedOptions(), ([value]) => value).join();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
getEmissionValue(options: any) {
|
|
77
|
+
this.addToSelectedOptionsMap(options);
|
|
78
|
+
this.emitValue(this.stringifySelectedOptions());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#selectedOptionsMapFactory(selectedOptions: Option[]) {
|
|
82
|
+
const selectedOptionsMap: Map<string, Option> = new Map();
|
|
83
|
+
for (const option of selectedOptions) {
|
|
84
|
+
selectedOptionsMap.set(option.value, option);
|
|
85
|
+
}
|
|
86
|
+
return selectedOptionsMap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#reset() {
|
|
90
|
+
this.selectedOptions().clear();
|
|
91
|
+
this.ctrl.setValue(null);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {Component} from "@angular/core";
|
|
2
|
+
import {ViewerBase} from "../base/viewer.base";
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: "iss-vwr-checkbox",
|
|
6
|
+
standalone: true,
|
|
7
|
+
template: `
|
|
8
|
+
<p>
|
|
9
|
+
@for (item of field().ctrlJsonValue(); track item?.value; let last = $last) {
|
|
10
|
+
<span>{{ item.label }} {{ last ? '' : ', ' }}</span>
|
|
11
|
+
}
|
|
12
|
+
</p>
|
|
13
|
+
`,
|
|
14
|
+
})
|
|
15
|
+
export class CheckboxViewer extends ViewerBase {}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {Component} from "@angular/core";
|
|
2
|
+
import {ReactiveFormsModule} from "@angular/forms";
|
|
3
|
+
import {MatLabel} from "@angular/material/form-field";
|
|
4
|
+
import {VIEW_PROVIDER} from "../../../shared/constants/provider.const";
|
|
5
|
+
import {WrapperBase} from "../base/wrapper.base";
|
|
6
|
+
import {CheckboxControl} from "./checkbox.control";
|
|
7
|
+
import {CheckboxViewer} from "./checkbox.viewer";
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: "iss-wrp-checkbox",
|
|
11
|
+
viewProviders: [VIEW_PROVIDER],
|
|
12
|
+
imports: [
|
|
13
|
+
ReactiveFormsModule,
|
|
14
|
+
MatLabel,
|
|
15
|
+
CheckboxControl,
|
|
16
|
+
CheckboxViewer
|
|
17
|
+
],
|
|
18
|
+
template: `
|
|
19
|
+
@if (field.isVisible() && field.registered()) {
|
|
20
|
+
@if (!(field.config.hideLabel)) {
|
|
21
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@if (field.mode() === "edit") {
|
|
25
|
+
<iss-ctrl-checkbox [formControlName]="field.name" [options]="field.options()" (onChange)="updateField($event)" />
|
|
26
|
+
} @else {
|
|
27
|
+
<iss-vwr-checkbox [field]="field" />
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`
|
|
31
|
+
})
|
|
32
|
+
export class CheckboxWrapper extends WrapperBase {
|
|
33
|
+
updateField($event: any) {
|
|
34
|
+
this.field.jsonValue = $event;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {Component, CUSTOM_ELEMENTS_SCHEMA, effect, EffectRef, OnDestroy, Signal, signal, WritableSignal} from "@angular/core";
|
|
2
|
+
import {toSignal} from "@angular/core/rxjs-interop";
|
|
3
|
+
import {NG_VALUE_ACCESSOR, ReactiveFormsModule} from "@angular/forms";
|
|
4
|
+
import {MatChipGrid, MatChipInput, MatChipInputEvent, MatChipRemove, MatChipRow} from "@angular/material/chips";
|
|
5
|
+
import {MatFormField} from "@angular/material/form-field";
|
|
6
|
+
import {MatInput, MatInputModule} from "@angular/material/input";
|
|
7
|
+
import {ControlBase} from "../base/control.base";
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: "iss-ctrl-chips",
|
|
11
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
12
|
+
imports: [
|
|
13
|
+
MatFormField,
|
|
14
|
+
MatChipGrid,
|
|
15
|
+
MatChipRow,
|
|
16
|
+
ReactiveFormsModule,
|
|
17
|
+
MatChipInput,
|
|
18
|
+
MatInput,
|
|
19
|
+
MatChipRemove,
|
|
20
|
+
MatInputModule,
|
|
21
|
+
],
|
|
22
|
+
providers: [
|
|
23
|
+
{provide: NG_VALUE_ACCESSOR, useExisting: ChipsControl, multi: true}
|
|
24
|
+
],
|
|
25
|
+
template: `
|
|
26
|
+
<mat-form-field floatLabel="auto" class="">
|
|
27
|
+
<mat-label class="fs-16 fc-black">
|
|
28
|
+
<ng-content select="label"></ng-content>
|
|
29
|
+
</mat-label>
|
|
30
|
+
<input
|
|
31
|
+
matInput
|
|
32
|
+
[placeholder]="placeholder()"
|
|
33
|
+
[matChipInputFor]="chipGrid"
|
|
34
|
+
(matChipInputTokenEnd)="add($event)"
|
|
35
|
+
/>
|
|
36
|
+
</mat-form-field>
|
|
37
|
+
<mat-chip-grid #chipGrid>
|
|
38
|
+
@for (keyword of keywords(); track keyword) {
|
|
39
|
+
<mat-chip-row (removed)="remove(keyword)">
|
|
40
|
+
{{ keyword }}
|
|
41
|
+
<button matChipRemove>
|
|
42
|
+
<ds-icon icon="trash" class="fc-red"></ds-icon>
|
|
43
|
+
</button>
|
|
44
|
+
</mat-chip-row>
|
|
45
|
+
}
|
|
46
|
+
</mat-chip-grid>
|
|
47
|
+
`
|
|
48
|
+
})
|
|
49
|
+
export class ChipsControl extends ControlBase implements OnDestroy {
|
|
50
|
+
readonly keywords: WritableSignal<string[]> = signal([]);
|
|
51
|
+
#ctrlChanges: Signal<string> = toSignal(this.ctrl.valueChanges);
|
|
52
|
+
#effect: EffectRef = effect(() => {
|
|
53
|
+
if (this.#ctrlChanges()) {
|
|
54
|
+
this.emitValue(this.#stringifyValues());
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
override writeValue(value: string | null) {
|
|
59
|
+
if (typeof value === "string") {
|
|
60
|
+
this.keywords.set(this.#parseValues(value));
|
|
61
|
+
}
|
|
62
|
+
if (value === undefined || value === null) {
|
|
63
|
+
this.keywords.set([]);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
remove(keyword: string) {
|
|
68
|
+
this.keywords.update((keywords: string[]): string[] => {
|
|
69
|
+
const index: number = keywords.indexOf(keyword);
|
|
70
|
+
if (index < 0) {
|
|
71
|
+
return keywords;
|
|
72
|
+
}
|
|
73
|
+
keywords.splice(index, 1);
|
|
74
|
+
return [...keywords];
|
|
75
|
+
});
|
|
76
|
+
this.emitValue(this.#stringifyValues());
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
add(event: MatChipInputEvent): void {
|
|
80
|
+
const value: string = (event.value || "").trim();
|
|
81
|
+
if (value) {
|
|
82
|
+
this.keywords.update((keywords: string[]): string[] => [...keywords, value]);
|
|
83
|
+
}
|
|
84
|
+
event.chipInput!.clear();
|
|
85
|
+
this.emitValue(this.#stringifyValues());
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
ngOnDestroy(): void {
|
|
89
|
+
this.#effect.destroy();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#stringifyValues() {
|
|
93
|
+
return this.keywords().map((s: string) => s.trim()).join();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#parseValues(values: string) {
|
|
97
|
+
return values.split(",").map((c: string) => c.trim());
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {Component, computed} from "@angular/core";
|
|
2
|
+
import {MatChip, MatChipSet} from "@angular/material/chips";
|
|
3
|
+
import {ViewerBase} from "../base/viewer.base";
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: "iss-vwr-chips",
|
|
7
|
+
imports: [
|
|
8
|
+
MatChipSet,
|
|
9
|
+
MatChip
|
|
10
|
+
],
|
|
11
|
+
template: `
|
|
12
|
+
<mat-chip-set>
|
|
13
|
+
@for (keyword of keywords(); track keyword) {
|
|
14
|
+
<mat-chip>{{ keyword }}</mat-chip>
|
|
15
|
+
}
|
|
16
|
+
</mat-chip-set>
|
|
17
|
+
`
|
|
18
|
+
})
|
|
19
|
+
export class ChipsViewer extends ViewerBase {
|
|
20
|
+
keywords = computed(() => {
|
|
21
|
+
return this.field().ctrlValue().split(",").map((c: string) => c.trim());
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {Component} from "@angular/core";
|
|
2
|
+
import {ReactiveFormsModule} from "@angular/forms";
|
|
3
|
+
import {MatLabel} from "@angular/material/form-field";
|
|
4
|
+
import {VIEW_PROVIDER} from "../../../shared/constants/provider.const";
|
|
5
|
+
import {WrapperBase} from "../base/wrapper.base";
|
|
6
|
+
import {ChipsControl} from "./chips.control";
|
|
7
|
+
import {ChipsViewer} from "./chips.viewer";
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: "iss-wrp-chips",
|
|
11
|
+
viewProviders: [VIEW_PROVIDER],
|
|
12
|
+
imports: [
|
|
13
|
+
ReactiveFormsModule,
|
|
14
|
+
MatLabel,
|
|
15
|
+
ChipsControl,
|
|
16
|
+
ChipsViewer
|
|
17
|
+
],
|
|
18
|
+
template: `
|
|
19
|
+
@if (field.isVisible() && field.registered()) {
|
|
20
|
+
@if (!(field.config.hideLabel)) {
|
|
21
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
22
|
+
}
|
|
23
|
+
@if (field.mode() === "edit") {
|
|
24
|
+
<iss-ctrl-chips [formControlName]="field.name" />
|
|
25
|
+
} @else {
|
|
26
|
+
<iss-vwr-chips [field]="field" />
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`
|
|
30
|
+
})
|
|
31
|
+
export class ChipsWrapper extends WrapperBase {}
|