iss-ctrl 0.0.11 → 0.0.13
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/fesm2022/{iss-ctrl-iss-ctrl-hz0ibyPg.mjs → iss-ctrl-iss-ctrl-BN9rcLt2.mjs} +1293 -198
- package/fesm2022/iss-ctrl-iss-ctrl-BN9rcLt2.mjs.map +1 -0
- package/fesm2022/iss-ctrl-iss-ctrl-DOmgkxUv.mjs +8924 -0
- package/fesm2022/iss-ctrl-iss-ctrl-DOmgkxUv.mjs.map +1 -0
- package/fesm2022/iss-ctrl-iss-ctrl-WfIqBEcL.mjs +8913 -0
- package/fesm2022/iss-ctrl-iss-ctrl-WfIqBEcL.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-load-event-BW5dKG8R.mjs → iss-ctrl-load-event-AgBohfHa.mjs} +3 -3
- package/fesm2022/{iss-ctrl-load-event-BW5dKG8R.mjs.map → iss-ctrl-load-event-AgBohfHa.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-load-event-D70VZuyD.mjs +60 -0
- package/fesm2022/iss-ctrl-load-event-D70VZuyD.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-event-SlQmVmyf.mjs +60 -0
- package/fesm2022/iss-ctrl-load-event-SlQmVmyf.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-load-options-event-ClX9TiiD.mjs → iss-ctrl-load-options-event-CBejHpME.mjs} +3 -3
- package/fesm2022/{iss-ctrl-load-options-event-ClX9TiiD.mjs.map → iss-ctrl-load-options-event-CBejHpME.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-load-options-event-ClQPHNBO.mjs +50 -0
- package/fesm2022/iss-ctrl-load-options-event-ClQPHNBO.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-options-event-DHmaMAOb.mjs +50 -0
- package/fesm2022/iss-ctrl-load-options-event-DHmaMAOb.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-load-value-event-DThpI9BA.mjs → iss-ctrl-load-value-event-Bu9-rZ6T.mjs} +3 -3
- package/fesm2022/{iss-ctrl-load-value-event-DThpI9BA.mjs.map → iss-ctrl-load-value-event-Bu9-rZ6T.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-load-value-event-CDAKsE_O.mjs +52 -0
- package/fesm2022/iss-ctrl-load-value-event-CDAKsE_O.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-value-event-Cpuy1og1.mjs +52 -0
- package/fesm2022/iss-ctrl-load-value-event-Cpuy1og1.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-note.field-4uLl0oS_.mjs → iss-ctrl-note.field-C9cVaAz0.mjs} +24 -2
- package/fesm2022/iss-ctrl-note.field-C9cVaAz0.mjs.map +1 -0
- package/fesm2022/iss-ctrl-note.field-IM4x1O3b.mjs +65 -0
- package/fesm2022/iss-ctrl-note.field-IM4x1O3b.mjs.map +1 -0
- package/fesm2022/iss-ctrl-note.field-onDjqI_X.mjs +65 -0
- package/fesm2022/iss-ctrl-note.field-onDjqI_X.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-replace-api-keys-BQL9zimJ.mjs → iss-ctrl-replace-api-keys-CLP4wBYu.mjs} +2 -2
- package/fesm2022/{iss-ctrl-replace-api-keys-BQL9zimJ.mjs.map → iss-ctrl-replace-api-keys-CLP4wBYu.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-replace-api-keys-Chwe42Nu.mjs +57 -0
- package/fesm2022/iss-ctrl-replace-api-keys-Chwe42Nu.mjs.map +1 -0
- package/fesm2022/iss-ctrl-replace-api-keys-CvhCKvNB.mjs +57 -0
- package/fesm2022/iss-ctrl-replace-api-keys-CvhCKvNB.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-set-value-event-BbEYFBe3.mjs → iss-ctrl-set-value-event-C7YYwHZV.mjs} +2 -2
- package/fesm2022/{iss-ctrl-set-value-event-BbEYFBe3.mjs.map → iss-ctrl-set-value-event-C7YYwHZV.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-set-value-event-CrpzRR6X.mjs +61 -0
- package/fesm2022/iss-ctrl-set-value-event-CrpzRR6X.mjs.map +1 -0
- package/fesm2022/iss-ctrl-set-value-event-DiHESiPT.mjs +61 -0
- package/fesm2022/iss-ctrl-set-value-event-DiHESiPT.mjs.map +1 -0
- package/fesm2022/iss-ctrl-table.field-BP-HMKO3.mjs +592 -0
- package/fesm2022/iss-ctrl-table.field-BP-HMKO3.mjs.map +1 -0
- package/fesm2022/iss-ctrl-table.field-CDSVakji.mjs +592 -0
- package/fesm2022/iss-ctrl-table.field-CDSVakji.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-table.field-kPIwve-M.mjs → iss-ctrl-table.field-DxwfNXNc.mjs} +77 -2
- package/fesm2022/iss-ctrl-table.field-DxwfNXNc.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-trigger-based-on-json-value-DuLD4SOS.mjs → iss-ctrl-trigger-based-on-json-value-CprcFCWi.mjs} +2 -2
- package/fesm2022/{iss-ctrl-trigger-based-on-json-value-DuLD4SOS.mjs.map → iss-ctrl-trigger-based-on-json-value-CprcFCWi.mjs.map} +1 -1
- package/fesm2022/iss-ctrl-trigger-based-on-json-value-DS4TR38v.mjs +24 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value-DS4TR38v.mjs.map +1 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value-Dp0EhVLA.mjs +24 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value-Dp0EhVLA.mjs.map +1 -0
- package/fesm2022/{iss-ctrl-user-picker.field-l-0bW6lP.mjs → iss-ctrl-user-picker.field-8Jb1325c.mjs} +33 -8
- package/fesm2022/iss-ctrl-user-picker.field-8Jb1325c.mjs.map +1 -0
- package/fesm2022/iss-ctrl-user-picker.field-Mqi37i7D.mjs +225 -0
- package/fesm2022/iss-ctrl-user-picker.field-Mqi37i7D.mjs.map +1 -0
- package/fesm2022/iss-ctrl-user-picker.field-PxT_dZ_O.mjs +225 -0
- package/fesm2022/iss-ctrl-user-picker.field-PxT_dZ_O.mjs.map +1 -0
- package/fesm2022/iss-ctrl.mjs +1 -1
- package/package.json +1 -1
- package/types/iss-ctrl.d.ts +1115 -0
- package/upgrade.scss +16 -0
- package/fesm2022/iss-ctrl-iss-ctrl-hz0ibyPg.mjs.map +0 -1
- package/fesm2022/iss-ctrl-note.field-4uLl0oS_.mjs.map +0 -1
- package/fesm2022/iss-ctrl-table.field-kPIwve-M.mjs.map +0 -1
- package/fesm2022/iss-ctrl-user-picker.field-l-0bW6lP.mjs.map +0 -1
- package/src/components/controls/mobile/flags/ad.svg +0 -282
- package/src/components/controls/mobile/flags/ae.svg +0 -6
- package/src/components/controls/mobile/flags/af.svg +0 -9
- package/src/components/controls/mobile/flags/ag.svg +0 -15
- package/src/components/controls/mobile/flags/ai.svg +0 -35
- package/src/components/controls/mobile/flags/al.svg +0 -7
- package/src/components/controls/mobile/flags/am.svg +0 -5
- package/src/components/controls/mobile/flags/ao.svg +0 -19
- package/src/components/controls/mobile/flags/aq.svg +0 -45
- package/src/components/controls/mobile/flags/ar.svg +0 -66
- package/src/components/controls/mobile/flags/as.svg +0 -225
- package/src/components/controls/mobile/flags/at.svg +0 -4
- package/src/components/controls/mobile/flags/au.svg +0 -32
- package/src/components/controls/mobile/flags/aw.svg +0 -11
- package/src/components/controls/mobile/flags/ax.svg +0 -11
- package/src/components/controls/mobile/flags/az.svg +0 -11
- package/src/components/controls/mobile/flags/ba.svg +0 -18
- package/src/components/controls/mobile/flags/bb.svg +0 -11
- package/src/components/controls/mobile/flags/bd.svg +0 -4
- package/src/components/controls/mobile/flags/be.svg +0 -5
- package/src/components/controls/mobile/flags/bf.svg +0 -14
- package/src/components/controls/mobile/flags/bg.svg +0 -5
- package/src/components/controls/mobile/flags/bh.svg +0 -4
- package/src/components/controls/mobile/flags/bi.svg +0 -26
- package/src/components/controls/mobile/flags/bj.svg +0 -5
- package/src/components/controls/mobile/flags/bl.svg +0 -5
- package/src/components/controls/mobile/flags/bm.svg +0 -374
- package/src/components/controls/mobile/flags/bn.svg +0 -70
- package/src/components/controls/mobile/flags/bo.svg +0 -3625
- package/src/components/controls/mobile/flags/bq.svg +0 -5
- package/src/components/controls/mobile/flags/br.svg +0 -92
- package/src/components/controls/mobile/flags/bs.svg +0 -5
- package/src/components/controls/mobile/flags/bt.svg +0 -487
- package/src/components/controls/mobile/flags/bv.svg +0 -11
- package/src/components/controls/mobile/flags/bw.svg +0 -5
- package/src/components/controls/mobile/flags/by.svg +0 -15
- package/src/components/controls/mobile/flags/bz.svg +0 -629
- package/src/components/controls/mobile/flags/ca.svg +0 -7
- package/src/components/controls/mobile/flags/cc.svg +0 -33
- package/src/components/controls/mobile/flags/cd.svg +0 -5
- package/src/components/controls/mobile/flags/cf.svg +0 -7
- package/src/components/controls/mobile/flags/cg.svg +0 -5
- package/src/components/controls/mobile/flags/ch.svg +0 -4
- package/src/components/controls/mobile/flags/ci.svg +0 -5
- package/src/components/controls/mobile/flags/ck.svg +0 -29
- package/src/components/controls/mobile/flags/cl.svg +0 -14
- package/src/components/controls/mobile/flags/cm.svg +0 -15
- package/src/components/controls/mobile/flags/cn.svg +0 -11
- package/src/components/controls/mobile/flags/co.svg +0 -5
- package/src/components/controls/mobile/flags/cr.svg +0 -1332
- package/src/components/controls/mobile/flags/cu.svg +0 -6
- package/src/components/controls/mobile/flags/cv.svg +0 -24
- package/src/components/controls/mobile/flags/cw.svg +0 -16
- package/src/components/controls/mobile/flags/cx.svg +0 -24
- package/src/components/controls/mobile/flags/cy.svg +0 -13
- package/src/components/controls/mobile/flags/cz.svg +0 -5
- package/src/components/controls/mobile/flags/de.svg +0 -5
- package/src/components/controls/mobile/flags/dj.svg +0 -6
- package/src/components/controls/mobile/flags/dk.svg +0 -5
- package/src/components/controls/mobile/flags/dm.svg +0 -198
- package/src/components/controls/mobile/flags/do.svg +0 -238
- package/src/components/controls/mobile/flags/dz.svg +0 -5
- package/src/components/controls/mobile/flags/ec.svg +0 -1292
- package/src/components/controls/mobile/flags/ee.svg +0 -5
- package/src/components/controls/mobile/flags/eg.svg +0 -125
- package/src/components/controls/mobile/flags/eh.svg +0 -12
- package/src/components/controls/mobile/flags/er.svg +0 -9
- package/src/components/controls/mobile/flags/es.svg +0 -445
- package/src/components/controls/mobile/flags/et.svg +0 -16
- package/src/components/controls/mobile/flags/eu.svg +0 -28
- package/src/components/controls/mobile/flags/fi.svg +0 -5
- package/src/components/controls/mobile/flags/fj.svg +0 -203
- package/src/components/controls/mobile/flags/fk.svg +0 -922
- package/src/components/controls/mobile/flags/flags.png +0 -0
- package/src/components/controls/mobile/flags/flags@2x.png +0 -0
- package/src/components/controls/mobile/flags/fm.svg +0 -16
- package/src/components/controls/mobile/flags/fo.svg +0 -11
- package/src/components/controls/mobile/flags/fonts.css +0 -271
- package/src/components/controls/mobile/flags/fr.svg +0 -5
- package/src/components/controls/mobile/flags/ga.svg +0 -5
- package/src/components/controls/mobile/flags/gb-eng.svg +0 -7
- package/src/components/controls/mobile/flags/gb-nir.svg +0 -15
- package/src/components/controls/mobile/flags/gb-sct.svg +0 -11
- package/src/components/controls/mobile/flags/gb-wls.svg +0 -16
- package/src/components/controls/mobile/flags/gb.svg +0 -15
- package/src/components/controls/mobile/flags/gd.svg +0 -11
- package/src/components/controls/mobile/flags/ge.svg +0 -17
- package/src/components/controls/mobile/flags/gf.svg +0 -5
- package/src/components/controls/mobile/flags/gg.svg +0 -8
- package/src/components/controls/mobile/flags/gh.svg +0 -6
- package/src/components/controls/mobile/flags/gi.svg +0 -69
- package/src/components/controls/mobile/flags/gl.svg +0 -4
- package/src/components/controls/mobile/flags/gm.svg +0 -7
- package/src/components/controls/mobile/flags/gn.svg +0 -5
- package/src/components/controls/mobile/flags/gp.svg +0 -5
- package/src/components/controls/mobile/flags/gq.svg +0 -88
- package/src/components/controls/mobile/flags/gr.svg +0 -4
- package/src/components/controls/mobile/flags/gs.svg +0 -693
- package/src/components/controls/mobile/flags/gt.svg +0 -317
- package/src/components/controls/mobile/flags/gu.svg +0 -58
- package/src/components/controls/mobile/flags/gw.svg +0 -13
- package/src/components/controls/mobile/flags/gy.svg +0 -7
- package/src/components/controls/mobile/flags/hk.svg +0 -17
- package/src/components/controls/mobile/flags/hm.svg +0 -32
- package/src/components/controls/mobile/flags/hn.svg +0 -10
- package/src/components/controls/mobile/flags/hr.svg +0 -282
- package/src/components/controls/mobile/flags/ht.svg +0 -1470
- package/src/components/controls/mobile/flags/hu.svg +0 -5
- package/src/components/controls/mobile/flags/id.svg +0 -4
- package/src/components/controls/mobile/flags/ie.svg +0 -5
- package/src/components/controls/mobile/flags/il.svg +0 -5
- package/src/components/controls/mobile/flags/im.svg +0 -33
- package/src/components/controls/mobile/flags/in.svg +0 -25
- package/src/components/controls/mobile/flags/io.svg +0 -895
- package/src/components/controls/mobile/flags/iq.svg +0 -12
- package/src/components/controls/mobile/flags/ir.svg +0 -31
- package/src/components/controls/mobile/flags/is.svg +0 -5
- package/src/components/controls/mobile/flags/it.svg +0 -5
- package/src/components/controls/mobile/flags/je.svg +0 -40
- package/src/components/controls/mobile/flags/jm.svg +0 -9
- package/src/components/controls/mobile/flags/jo.svg +0 -10
- package/src/components/controls/mobile/flags/jp.svg +0 -4
- package/src/components/controls/mobile/flags/ke.svg +0 -28
- package/src/components/controls/mobile/flags/kg.svg +0 -7
- package/src/components/controls/mobile/flags/kh.svg +0 -133
- package/src/components/controls/mobile/flags/ki.svg +0 -54
- package/src/components/controls/mobile/flags/km.svg +0 -13
- package/src/components/controls/mobile/flags/kn.svg +0 -24
- package/src/components/controls/mobile/flags/kp.svg +0 -16
- package/src/components/controls/mobile/flags/kr.svg +0 -16
- package/src/components/controls/mobile/flags/kw.svg +0 -6
- package/src/components/controls/mobile/flags/ky.svg +0 -153
- package/src/components/controls/mobile/flags/kz.svg +0 -49
- package/src/components/controls/mobile/flags/la.svg +0 -5
- package/src/components/controls/mobile/flags/lb.svg +0 -8
- package/src/components/controls/mobile/flags/lc.svg +0 -6
- package/src/components/controls/mobile/flags/li.svg +0 -75
- package/src/components/controls/mobile/flags/lk.svg +0 -50
- package/src/components/controls/mobile/flags/lr.svg +0 -15
- package/src/components/controls/mobile/flags/ls.svg +0 -32
- package/src/components/controls/mobile/flags/lt.svg +0 -5
- package/src/components/controls/mobile/flags/lu.svg +0 -5
- package/src/components/controls/mobile/flags/lv.svg +0 -4
- package/src/components/controls/mobile/flags/ly.svg +0 -8
- package/src/components/controls/mobile/flags/ma.svg +0 -4
- package/src/components/controls/mobile/flags/mc.svg +0 -4
- package/src/components/controls/mobile/flags/md.svg +0 -102
- package/src/components/controls/mobile/flags/me.svg +0 -240
- package/src/components/controls/mobile/flags/mf.svg +0 -5
- package/src/components/controls/mobile/flags/mg.svg +0 -5
- package/src/components/controls/mobile/flags/mh.svg +0 -18
- package/src/components/controls/mobile/flags/mk.svg +0 -6
- package/src/components/controls/mobile/flags/ml.svg +0 -5
- package/src/components/controls/mobile/flags/mm.svg +0 -12
- package/src/components/controls/mobile/flags/mn.svg +0 -12
- package/src/components/controls/mobile/flags/mo.svg +0 -13
- package/src/components/controls/mobile/flags/mp.svg +0 -2919
- package/src/components/controls/mobile/flags/mq.svg +0 -5
- package/src/components/controls/mobile/flags/mr.svg +0 -5
- package/src/components/controls/mobile/flags/ms.svg +0 -59
- package/src/components/controls/mobile/flags/mt.svg +0 -52
- package/src/components/controls/mobile/flags/mu.svg +0 -6
- package/src/components/controls/mobile/flags/mv.svg +0 -8
- package/src/components/controls/mobile/flags/mw.svg +0 -24
- package/src/components/controls/mobile/flags/mx.svg +0 -1129
- package/src/components/controls/mobile/flags/my.svg +0 -12
- package/src/components/controls/mobile/flags/mz.svg +0 -50
- package/src/components/controls/mobile/flags/na.svg +0 -17
- package/src/components/controls/mobile/flags/nc.svg +0 -5
- package/src/components/controls/mobile/flags/ne.svg +0 -6
- package/src/components/controls/mobile/flags/nf.svg +0 -8
- package/src/components/controls/mobile/flags/ng.svg +0 -4
- package/src/components/controls/mobile/flags/ni.svg +0 -281
- package/src/components/controls/mobile/flags/nl.svg +0 -5
- package/src/components/controls/mobile/flags/no.svg +0 -11
- package/src/components/controls/mobile/flags/np.svg +0 -33
- package/src/components/controls/mobile/flags/nr.svg +0 -8
- package/src/components/controls/mobile/flags/nu.svg +0 -23
- package/src/components/controls/mobile/flags/nz.svg +0 -37
- package/src/components/controls/mobile/flags/om.svg +0 -307
- package/src/components/controls/mobile/flags/pa.svg +0 -15
- package/src/components/controls/mobile/flags/pe.svg +0 -767
- package/src/components/controls/mobile/flags/pf.svg +0 -38
- package/src/components/controls/mobile/flags/pg.svg +0 -16
- package/src/components/controls/mobile/flags/ph.svg +0 -28
- package/src/components/controls/mobile/flags/pk.svg +0 -7
- package/src/components/controls/mobile/flags/pl.svg +0 -4
- package/src/components/controls/mobile/flags/pm.svg +0 -5
- package/src/components/controls/mobile/flags/pn.svg +0 -131
- package/src/components/controls/mobile/flags/pr.svg +0 -6
- package/src/components/controls/mobile/flags/ps.svg +0 -6
- package/src/components/controls/mobile/flags/pt.svg +0 -79
- package/src/components/controls/mobile/flags/pw.svg +0 -4
- package/src/components/controls/mobile/flags/py.svg +0 -192
- package/src/components/controls/mobile/flags/qa.svg +0 -7
- package/src/components/controls/mobile/flags/re.svg +0 -5
- package/src/components/controls/mobile/flags/ro.svg +0 -5
- package/src/components/controls/mobile/flags/rs.svg +0 -1143
- package/src/components/controls/mobile/flags/ru.svg +0 -5
- package/src/components/controls/mobile/flags/rw.svg +0 -17
- package/src/components/controls/mobile/flags/sa.svg +0 -23
- package/src/components/controls/mobile/flags/sb.svg +0 -30
- package/src/components/controls/mobile/flags/sc.svg +0 -7
- package/src/components/controls/mobile/flags/sd.svg +0 -6
- package/src/components/controls/mobile/flags/se.svg +0 -5
- package/src/components/controls/mobile/flags/sg.svg +0 -15
- package/src/components/controls/mobile/flags/sh.svg +0 -15
- package/src/components/controls/mobile/flags/si.svg +0 -30
- package/src/components/controls/mobile/flags/sj.svg +0 -11
- package/src/components/controls/mobile/flags/sk.svg +0 -21
- package/src/components/controls/mobile/flags/sl.svg +0 -5
- package/src/components/controls/mobile/flags/sm.svg +0 -847
- package/src/components/controls/mobile/flags/sn.svg +0 -15
- package/src/components/controls/mobile/flags/so.svg +0 -13
- package/src/components/controls/mobile/flags/sr.svg +0 -6
- package/src/components/controls/mobile/flags/ss.svg +0 -8
- package/src/components/controls/mobile/flags/st.svg +0 -16
- package/src/components/controls/mobile/flags/stc-icons.css +0 -1
- package/src/components/controls/mobile/flags/sv.svg +0 -3368
- package/src/components/controls/mobile/flags/sx.svg +0 -172
- package/src/components/controls/mobile/flags/sy.svg +0 -6
- package/src/components/controls/mobile/flags/sz.svg +0 -54
- package/src/components/controls/mobile/flags/tc.svg +0 -88
- package/src/components/controls/mobile/flags/td.svg +0 -5
- package/src/components/controls/mobile/flags/tf.svg +0 -18
- package/src/components/controls/mobile/flags/tg.svg +0 -15
- package/src/components/controls/mobile/flags/th.svg +0 -5
- package/src/components/controls/mobile/flags/tj.svg +0 -32
- package/src/components/controls/mobile/flags/tk.svg +0 -25
- package/src/components/controls/mobile/flags/tl.svg +0 -6
- package/src/components/controls/mobile/flags/tm.svg +0 -349
- package/src/components/controls/mobile/flags/tn.svg +0 -9
- package/src/components/controls/mobile/flags/to.svg +0 -8
- package/src/components/controls/mobile/flags/tr.svg +0 -6
- package/src/components/controls/mobile/flags/tt.svg +0 -5
- package/src/components/controls/mobile/flags/tv.svg +0 -18
- package/src/components/controls/mobile/flags/tw.svg +0 -12
- package/src/components/controls/mobile/flags/tz.svg +0 -13
- package/src/components/controls/mobile/flags/ua.svg +0 -4
- package/src/components/controls/mobile/flags/ug.svg +0 -46
- package/src/components/controls/mobile/flags/um.svg +0 -25
- package/src/components/controls/mobile/flags/us.svg +0 -25
- package/src/components/controls/mobile/flags/uy.svg +0 -138
- package/src/components/controls/mobile/flags/uz.svg +0 -30
- package/src/components/controls/mobile/flags/va.svg +0 -277
- package/src/components/controls/mobile/flags/vc.svg +0 -9
- package/src/components/controls/mobile/flags/ve.svg +0 -28
- package/src/components/controls/mobile/flags/vg.svg +0 -96
- package/src/components/controls/mobile/flags/vi.svg +0 -311
- package/src/components/controls/mobile/flags/vn.svg +0 -12
- package/src/components/controls/mobile/flags/vu.svg +0 -20
- package/src/components/controls/mobile/flags/wf.svg +0 -7
- package/src/components/controls/mobile/flags/ws.svg +0 -14
- package/src/components/controls/mobile/flags/xk.svg +0 -11
- package/src/components/controls/mobile/flags/ye.svg +0 -5
- package/src/components/controls/mobile/flags/yt.svg +0 -5
- package/src/components/controls/mobile/flags/za.svg +0 -17
- package/src/components/controls/mobile/flags/zm.svg +0 -20
- package/src/components/controls/mobile/flags/zw.svg +0 -130
- package/src/upgrade.scss +0 -68
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
5
|
+
import { F as FieldBase, V as VIEW_PROVIDER } from './iss-ctrl-iss-ctrl-DOmgkxUv.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `<iss-field-note>` — read-only explanatory text shown inside the form.
|
|
9
|
+
*
|
|
10
|
+
* Rendered by the outlet for fields of type `enrichment`. It has no control and no viewer:
|
|
11
|
+
* it prints its own control value as a paragraph under the label, in both modes.
|
|
12
|
+
*
|
|
13
|
+
* ### Supported `config` keys
|
|
14
|
+
* | Key | Type | Description |
|
|
15
|
+
* | --- | --- | --- |
|
|
16
|
+
* | `hideLabel` | `boolean` | Hides the field label. |
|
|
17
|
+
*
|
|
18
|
+
* ### Other field members used
|
|
19
|
+
* `label()` · `ctrlValue()`
|
|
20
|
+
*
|
|
21
|
+
* Every field also honours `visible`, `mode`, `validation`, `asyncValidation` and
|
|
22
|
+
* `events` — see {@link IssField} for the full model and {@link FieldConfig} for all keys.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```json
|
|
26
|
+
* { "name": "intro", "type": "enrichment", "label": "Before you start", "value": "Fill in every required field before submitting." }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class NoteField extends FieldBase {
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NoteField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NoteField, isStandalone: true, selector: "iss-field-note", usesInheritance: true, ngImport: i0, template: `
|
|
32
|
+
@if (field.visible()) {
|
|
33
|
+
@if (!field.config.hideLabel()) {
|
|
34
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
35
|
+
}
|
|
36
|
+
<p>
|
|
37
|
+
{{ ctrlValueChange() }}
|
|
38
|
+
</p>
|
|
39
|
+
}
|
|
40
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatLabel, selector: "mat-label" }], viewProviders: [VIEW_PROVIDER] });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NoteField, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: "iss-field-note",
|
|
46
|
+
viewProviders: [VIEW_PROVIDER],
|
|
47
|
+
imports: [
|
|
48
|
+
ReactiveFormsModule,
|
|
49
|
+
MatLabel
|
|
50
|
+
],
|
|
51
|
+
template: `
|
|
52
|
+
@if (field.visible()) {
|
|
53
|
+
@if (!field.config.hideLabel()) {
|
|
54
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
55
|
+
}
|
|
56
|
+
<p>
|
|
57
|
+
{{ ctrlValueChange() }}
|
|
58
|
+
</p>
|
|
59
|
+
}
|
|
60
|
+
`
|
|
61
|
+
}]
|
|
62
|
+
}] });
|
|
63
|
+
|
|
64
|
+
export { NoteField };
|
|
65
|
+
//# sourceMappingURL=iss-ctrl-note.field-IM4x1O3b.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-note.field-IM4x1O3b.mjs","sources":["../../../projects/iss/src/components/controls/note/note.field.ts"],"sourcesContent":["import { Component } from \"@angular/core\";\r\nimport { ReactiveFormsModule } from \"@angular/forms\";\r\nimport { MatLabel } from \"@angular/material/form-field\";\r\nimport { VIEW_PROVIDER } from \"../../../shared/constants/view-provider.const\";\r\nimport { FieldBase } from \"../base/field-base\";\r\n\r\n/**\r\n * `<iss-field-note>` — read-only explanatory text shown inside the form.\r\n *\r\n * Rendered by the outlet for fields of type `enrichment`. It has no control and no viewer:\r\n * it prints its own control value as a paragraph under the label, in both modes.\r\n *\r\n * ### Supported `config` keys\r\n * | Key | Type | Description |\r\n * | --- | --- | --- |\r\n * | `hideLabel` | `boolean` | Hides the field label. |\r\n *\r\n * ### Other field members used\r\n * `label()` · `ctrlValue()`\r\n *\r\n * Every field also honours `visible`, `mode`, `validation`, `asyncValidation` and\r\n * `events` — see {@link IssField} for the full model and {@link FieldConfig} for all keys.\r\n *\r\n * @example\r\n * ```json\r\n * { \"name\": \"intro\", \"type\": \"enrichment\", \"label\": \"Before you start\", \"value\": \"Fill in every required field before submitting.\" }\r\n * ```\r\n */\r\n@Component({\r\n selector: \"iss-field-note\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel\r\n ],\r\n template: `\r\n @if (field.visible()) {\r\n @if (!field.config.hideLabel()) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n <p>\r\n {{ ctrlValueChange() }}\r\n </p>\r\n }\r\n `\r\n})\r\nexport class NoteField extends FieldBase {}\r\n"],"names":[],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;AAqBG;AAmBG,MAAO,SAAU,SAAQ,SAAS,CAAA;uGAA3B,SAAS,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAXV,CAAA;;;;;;;;;AAST,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAZC,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,CAAA,EAAA,aAAA,EAHK,CAAC,aAAa,CAAC,EAAA,CAAA;;2FAgBnB,SAAS,EAAA,UAAA,EAAA,CAAA;kBAlBrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,aAAa,EAAE,CAAC,aAAa,CAAC;AAC9B,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;AAST,EAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
5
|
+
import { F as FieldBase, V as VIEW_PROVIDER } from './iss-ctrl-iss-ctrl-WfIqBEcL.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `<iss-field-note>` — read-only explanatory text shown inside the form.
|
|
9
|
+
*
|
|
10
|
+
* Rendered by the outlet for fields of type `enrichment`. It has no control and no viewer:
|
|
11
|
+
* it prints its own control value as a paragraph under the label, in both modes.
|
|
12
|
+
*
|
|
13
|
+
* ### Supported `config` keys
|
|
14
|
+
* | Key | Type | Description |
|
|
15
|
+
* | --- | --- | --- |
|
|
16
|
+
* | `hideLabel` | `boolean` | Hides the field label. |
|
|
17
|
+
*
|
|
18
|
+
* ### Other field members used
|
|
19
|
+
* `label()` · `ctrlValue()`
|
|
20
|
+
*
|
|
21
|
+
* Every field also honours `visible`, `mode`, `validation`, `asyncValidation` and
|
|
22
|
+
* `events` — see {@link IssField} for the full model and {@link FieldConfig} for all keys.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```json
|
|
26
|
+
* { "name": "intro", "type": "enrichment", "label": "Before you start", "value": "Fill in every required field before submitting." }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class NoteField extends FieldBase {
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NoteField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NoteField, isStandalone: true, selector: "iss-field-note", usesInheritance: true, ngImport: i0, template: `
|
|
32
|
+
@if (field.visible()) {
|
|
33
|
+
@if (!field.config.hideLabel()) {
|
|
34
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
35
|
+
}
|
|
36
|
+
<p>
|
|
37
|
+
{{ ctrlValueChange() }}
|
|
38
|
+
</p>
|
|
39
|
+
}
|
|
40
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatLabel, selector: "mat-label" }], viewProviders: [VIEW_PROVIDER] });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NoteField, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{
|
|
45
|
+
selector: "iss-field-note",
|
|
46
|
+
viewProviders: [VIEW_PROVIDER],
|
|
47
|
+
imports: [
|
|
48
|
+
ReactiveFormsModule,
|
|
49
|
+
MatLabel
|
|
50
|
+
],
|
|
51
|
+
template: `
|
|
52
|
+
@if (field.visible()) {
|
|
53
|
+
@if (!field.config.hideLabel()) {
|
|
54
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
55
|
+
}
|
|
56
|
+
<p>
|
|
57
|
+
{{ ctrlValueChange() }}
|
|
58
|
+
</p>
|
|
59
|
+
}
|
|
60
|
+
`
|
|
61
|
+
}]
|
|
62
|
+
}] });
|
|
63
|
+
|
|
64
|
+
export { NoteField };
|
|
65
|
+
//# sourceMappingURL=iss-ctrl-note.field-onDjqI_X.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-note.field-onDjqI_X.mjs","sources":["../../../projects/iss/src/components/controls/note/note.field.ts"],"sourcesContent":["import { Component } from \"@angular/core\";\r\nimport { ReactiveFormsModule } from \"@angular/forms\";\r\nimport { MatLabel } from \"@angular/material/form-field\";\r\nimport { VIEW_PROVIDER } from \"../../../shared/constants/view-provider.const\";\r\nimport { FieldBase } from \"../base/field-base\";\r\n\r\n/**\r\n * `<iss-field-note>` — read-only explanatory text shown inside the form.\r\n *\r\n * Rendered by the outlet for fields of type `enrichment`. It has no control and no viewer:\r\n * it prints its own control value as a paragraph under the label, in both modes.\r\n *\r\n * ### Supported `config` keys\r\n * | Key | Type | Description |\r\n * | --- | --- | --- |\r\n * | `hideLabel` | `boolean` | Hides the field label. |\r\n *\r\n * ### Other field members used\r\n * `label()` · `ctrlValue()`\r\n *\r\n * Every field also honours `visible`, `mode`, `validation`, `asyncValidation` and\r\n * `events` — see {@link IssField} for the full model and {@link FieldConfig} for all keys.\r\n *\r\n * @example\r\n * ```json\r\n * { \"name\": \"intro\", \"type\": \"enrichment\", \"label\": \"Before you start\", \"value\": \"Fill in every required field before submitting.\" }\r\n * ```\r\n */\r\n@Component({\r\n selector: \"iss-field-note\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel\r\n ],\r\n template: `\r\n @if (field.visible()) {\r\n @if (!field.config.hideLabel()) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n <p>\r\n {{ ctrlValueChange() }}\r\n </p>\r\n }\r\n `\r\n})\r\nexport class NoteField extends FieldBase {}\r\n"],"names":[],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;AAqBG;AAmBG,MAAO,SAAU,SAAQ,SAAS,CAAA;uGAA3B,SAAS,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAT,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAXV,CAAA;;;;;;;;;AAST,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAZC,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,CAAA,EAAA,aAAA,EAHK,CAAC,aAAa,CAAC,EAAA,CAAA;;2FAgBnB,SAAS,EAAA,UAAA,EAAA,CAAA;kBAlBrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,aAAa,EAAE,CAAC,aAAa,CAAC;AAC9B,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;AAST,EAAA;AACF,iBAAA;;;;;"}
|
package/fesm2022/{iss-ctrl-replace-api-keys-BQL9zimJ.mjs → iss-ctrl-replace-api-keys-CLP4wBYu.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable } from '@angular/core';
|
|
3
|
-
import { P as PLACEHOLDER_REGEX, g as getPropertyByPath, r as replacePlaceholders } from './iss-ctrl-iss-ctrl-
|
|
3
|
+
import { P as PLACEHOLDER_REGEX, g as getPropertyByPath, r as replacePlaceholders } from './iss-ctrl-iss-ctrl-DOmgkxUv.mjs';
|
|
4
4
|
|
|
5
5
|
class ReplaceApiKeys {
|
|
6
6
|
// todo replace {key} with tracked field value [will be deprecated]
|
|
@@ -54,4 +54,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
54
54
|
}] });
|
|
55
55
|
|
|
56
56
|
export { ReplaceApiKeys };
|
|
57
|
-
//# sourceMappingURL=iss-ctrl-replace-api-keys-
|
|
57
|
+
//# sourceMappingURL=iss-ctrl-replace-api-keys-CLP4wBYu.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iss-ctrl-replace-api-keys-
|
|
1
|
+
{"version":3,"file":"iss-ctrl-replace-api-keys-CLP4wBYu.mjs","sources":["../../../projects/iss/src/events/load/replace-api-keys.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { PLACEHOLDER_REGEX } from \"../../shared/constants/placeholder-regex.const\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\nimport { replacePlaceholders } from \"../../shared/utilities/replace-placeholder.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class ReplaceApiKeys implements EventConfigFn {\r\n // todo replace {key} with tracked field value [will be deprecated]\r\n execute(args: EventArgument): string {\r\n // console.log(\"Replace API keys - Default Implementation\");\r\n const api = args.field.api();\r\n const matches = api.match(PLACEHOLDER_REGEX);\r\n if (matches) {\r\n const replacements: any = {};\r\n matches.forEach((match) => {\r\n const replacement = match.replace(\"{\", \"\").replace(\"}\", \"\");\r\n\r\n if (replacement.includes(\".\")) {\r\n const path = this.getPath(replacement);\r\n\r\n if (replacement.includes(args.change.trackedField.name)) {\r\n replacements[replacement] = getPropertyByPath(args.change.trackedField, path);\r\n }\r\n\r\n if (replacement.includes(\"loggedInUser\")) {\r\n const loggedInUserProfileStr = localStorage.getItem(\"profile\");\r\n if (loggedInUserProfileStr) {\r\n const loggedInUserProfile = JSON.parse(loggedInUserProfileStr);\r\n replacements[replacement] = getPropertyByPath(loggedInUserProfile, path);\r\n } else {\r\n throw new Error(\"User profile not found in localStorage. Make sure that localStorage has profile key with user profile.\");\r\n }\r\n }\r\n\r\n if (replacement.includes(\"requestDto\")) {\r\n // todo replace {fromRequestDto}\r\n // todo from where to get requestDto?\r\n }\r\n } else {\r\n replacements[replacement] = args.form.get(replacement)?.getRawValue();\r\n }\r\n });\r\n return replacePlaceholders(api, replacements);\r\n }\r\n\r\n return api;\r\n }\r\n\r\n getPath(replacement: string): string {\r\n const arr = replacement.split(\".\");\r\n arr.shift();\r\n return arr.join(\".\");\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;MAOa,cAAc,CAAA;;AAEzB,IAAA,OAAO,CAAC,IAAmB,EAAA;;QAEzB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;QAC5B,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAC5C,IAAI,OAAO,EAAE;YACX,MAAM,YAAY,GAAQ,EAAE;AAC5B,YAAA,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AACxB,gBAAA,MAAM,WAAW,GAAG,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C,GAAG,CAAC,KAAK,EAAE;AACX,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;IACtB;uGA9CW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADF,MAAM,EAAA,CAAA;;2FAClB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { P as PLACEHOLDER_REGEX, g as getPropertyByPath, r as replacePlaceholders } from './iss-ctrl-iss-ctrl-WfIqBEcL.mjs';
|
|
4
|
+
|
|
5
|
+
class ReplaceApiKeys {
|
|
6
|
+
// todo replace {key} with tracked field value [will be deprecated]
|
|
7
|
+
execute(args) {
|
|
8
|
+
// console.log("Replace API keys - Default Implementation");
|
|
9
|
+
const api = args.field.api();
|
|
10
|
+
const matches = api.match(PLACEHOLDER_REGEX);
|
|
11
|
+
if (matches) {
|
|
12
|
+
const replacements = {};
|
|
13
|
+
matches.forEach((match) => {
|
|
14
|
+
const replacement = match.replace("{", "").replace("}", "");
|
|
15
|
+
if (replacement.includes(".")) {
|
|
16
|
+
const path = this.getPath(replacement);
|
|
17
|
+
if (replacement.includes(args.change.trackedField.name)) {
|
|
18
|
+
replacements[replacement] = getPropertyByPath(args.change.trackedField, path);
|
|
19
|
+
}
|
|
20
|
+
if (replacement.includes("loggedInUser")) {
|
|
21
|
+
const loggedInUserProfileStr = localStorage.getItem("profile");
|
|
22
|
+
if (loggedInUserProfileStr) {
|
|
23
|
+
const loggedInUserProfile = JSON.parse(loggedInUserProfileStr);
|
|
24
|
+
replacements[replacement] = getPropertyByPath(loggedInUserProfile, path);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("User profile not found in localStorage. Make sure that localStorage has profile key with user profile.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (replacement.includes("requestDto")) {
|
|
31
|
+
// todo replace {fromRequestDto}
|
|
32
|
+
// todo from where to get requestDto?
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
replacements[replacement] = args.form.get(replacement)?.getRawValue();
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return replacePlaceholders(api, replacements);
|
|
40
|
+
}
|
|
41
|
+
return api;
|
|
42
|
+
}
|
|
43
|
+
getPath(replacement) {
|
|
44
|
+
const arr = replacement.split(".");
|
|
45
|
+
arr.shift();
|
|
46
|
+
return arr.join(".");
|
|
47
|
+
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, providedIn: "root" });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, decorators: [{
|
|
52
|
+
type: Injectable,
|
|
53
|
+
args: [{ providedIn: "root" }]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
export { ReplaceApiKeys };
|
|
57
|
+
//# sourceMappingURL=iss-ctrl-replace-api-keys-Chwe42Nu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-replace-api-keys-Chwe42Nu.mjs","sources":["../../../projects/iss/src/events/load/replace-api-keys.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { PLACEHOLDER_REGEX } from \"../../shared/constants/placeholder-regex.const\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\nimport { replacePlaceholders } from \"../../shared/utilities/replace-placeholder.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class ReplaceApiKeys implements EventConfigFn {\r\n // todo replace {key} with tracked field value [will be deprecated]\r\n execute(args: EventArgument): string {\r\n // console.log(\"Replace API keys - Default Implementation\");\r\n const api = args.field.api();\r\n const matches = api.match(PLACEHOLDER_REGEX);\r\n if (matches) {\r\n const replacements: any = {};\r\n matches.forEach((match) => {\r\n const replacement = match.replace(\"{\", \"\").replace(\"}\", \"\");\r\n\r\n if (replacement.includes(\".\")) {\r\n const path = this.getPath(replacement);\r\n\r\n if (replacement.includes(args.change.trackedField.name)) {\r\n replacements[replacement] = getPropertyByPath(args.change.trackedField, path);\r\n }\r\n\r\n if (replacement.includes(\"loggedInUser\")) {\r\n const loggedInUserProfileStr = localStorage.getItem(\"profile\");\r\n if (loggedInUserProfileStr) {\r\n const loggedInUserProfile = JSON.parse(loggedInUserProfileStr);\r\n replacements[replacement] = getPropertyByPath(loggedInUserProfile, path);\r\n } else {\r\n throw new Error(\"User profile not found in localStorage. Make sure that localStorage has profile key with user profile.\");\r\n }\r\n }\r\n\r\n if (replacement.includes(\"requestDto\")) {\r\n // todo replace {fromRequestDto}\r\n // todo from where to get requestDto?\r\n }\r\n } else {\r\n replacements[replacement] = args.form.get(replacement)?.getRawValue();\r\n }\r\n });\r\n return replacePlaceholders(api, replacements);\r\n }\r\n\r\n return api;\r\n }\r\n\r\n getPath(replacement: string): string {\r\n const arr = replacement.split(\".\");\r\n arr.shift();\r\n return arr.join(\".\");\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;MAOa,cAAc,CAAA;;AAEzB,IAAA,OAAO,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AI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE;gBACvE;AACF,YAAA,CAAC,CAAC;AACF,YAAA,OAAO,mBAAmB,CAAC,GAAG,EAAE,YAAY,CAAC;QAC/C;AAEA,QAAA,OAAO,GAAG;IACZ;AAEA,IAAA,OAAO,CAAC,WAAmB,EAAA;QACzB,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;QAClC,GAAG,CAAC,KAAK,EAAE;AACX,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;IACtB;uGA9CW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADF,MAAM,EAAA,CAAA;;2FAClB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { P as PLACEHOLDER_REGEX, g as getPropertyByPath, r as replacePlaceholders } from './iss-ctrl-iss-ctrl-BN9rcLt2.mjs';
|
|
4
|
+
|
|
5
|
+
class ReplaceApiKeys {
|
|
6
|
+
// todo replace {key} with tracked field value [will be deprecated]
|
|
7
|
+
execute(args) {
|
|
8
|
+
// console.log("Replace API keys - Default Implementation");
|
|
9
|
+
const api = args.field.api();
|
|
10
|
+
const matches = api.match(PLACEHOLDER_REGEX);
|
|
11
|
+
if (matches) {
|
|
12
|
+
const replacements = {};
|
|
13
|
+
matches.forEach((match) => {
|
|
14
|
+
const replacement = match.replace("{", "").replace("}", "");
|
|
15
|
+
if (replacement.includes(".")) {
|
|
16
|
+
const path = this.getPath(replacement);
|
|
17
|
+
if (replacement.includes(args.change.trackedField.name)) {
|
|
18
|
+
replacements[replacement] = getPropertyByPath(args.change.trackedField, path);
|
|
19
|
+
}
|
|
20
|
+
if (replacement.includes("loggedInUser")) {
|
|
21
|
+
const loggedInUserProfileStr = localStorage.getItem("profile");
|
|
22
|
+
if (loggedInUserProfileStr) {
|
|
23
|
+
const loggedInUserProfile = JSON.parse(loggedInUserProfileStr);
|
|
24
|
+
replacements[replacement] = getPropertyByPath(loggedInUserProfile, path);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("User profile not found in localStorage. Make sure that localStorage has profile key with user profile.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (replacement.includes("requestDto")) {
|
|
31
|
+
// todo replace {fromRequestDto}
|
|
32
|
+
// todo from where to get requestDto?
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
replacements[replacement] = args.form.get(replacement)?.getRawValue();
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return replacePlaceholders(api, replacements);
|
|
40
|
+
}
|
|
41
|
+
return api;
|
|
42
|
+
}
|
|
43
|
+
getPath(replacement) {
|
|
44
|
+
const arr = replacement.split(".");
|
|
45
|
+
arr.shift();
|
|
46
|
+
return arr.join(".");
|
|
47
|
+
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, providedIn: "root" });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplaceApiKeys, decorators: [{
|
|
52
|
+
type: Injectable,
|
|
53
|
+
args: [{ providedIn: "root" }]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
export { ReplaceApiKeys };
|
|
57
|
+
//# sourceMappingURL=iss-ctrl-replace-api-keys-CvhCKvNB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-replace-api-keys-CvhCKvNB.mjs","sources":["../../../projects/iss/src/events/load/replace-api-keys.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { PLACEHOLDER_REGEX } from \"../../shared/constants/placeholder-regex.const\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\nimport { replacePlaceholders } from \"../../shared/utilities/replace-placeholder.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class ReplaceApiKeys implements EventConfigFn {\r\n // todo replace {key} with tracked field value [will be deprecated]\r\n execute(args: EventArgument): string {\r\n // console.log(\"Replace API keys - Default Implementation\");\r\n const api = args.field.api();\r\n const matches = api.match(PLACEHOLDER_REGEX);\r\n if (matches) {\r\n const replacements: any = {};\r\n matches.forEach((match) => {\r\n const replacement = match.replace(\"{\", \"\").replace(\"}\", \"\");\r\n\r\n if (replacement.includes(\".\")) {\r\n const path = this.getPath(replacement);\r\n\r\n if (replacement.includes(args.change.trackedField.name)) {\r\n replacements[replacement] = getPropertyByPath(args.change.trackedField, path);\r\n }\r\n\r\n if (replacement.includes(\"loggedInUser\")) {\r\n const loggedInUserProfileStr = localStorage.getItem(\"profile\");\r\n if (loggedInUserProfileStr) {\r\n const loggedInUserProfile = JSON.parse(loggedInUserProfileStr);\r\n replacements[replacement] = getPropertyByPath(loggedInUserProfile, path);\r\n } else {\r\n throw new Error(\"User profile not found in localStorage. Make sure that localStorage has profile key with user profile.\");\r\n }\r\n }\r\n\r\n if (replacement.includes(\"requestDto\")) {\r\n // todo replace {fromRequestDto}\r\n // todo from where to get requestDto?\r\n }\r\n } else {\r\n replacements[replacement] = args.form.get(replacement)?.getRawValue();\r\n }\r\n });\r\n return replacePlaceholders(api, replacements);\r\n }\r\n\r\n return api;\r\n }\r\n\r\n getPath(replacement: string): string {\r\n const arr = replacement.split(\".\");\r\n arr.shift();\r\n return arr.join(\".\");\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;MAOa,cAAc,CAAA;;AAEzB,IAAA,OAAO,CAAC,IAAmB,EAAA;;QAEzB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;QAC5B,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAC5C,IAAI,OAAO,EAAE;YACX,MAAM,YAAY,GAAQ,EAAE;AAC5B,YAAA,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AACxB,gBAAA,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;AAE3D,gBAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;AAEtC,oBAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;AACvD,wBAAA,YAAY,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC;oBAC/E;AAEA,oBAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;wBACxC,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC;wBAC9D,IAAI,sBAAsB,EAAE;4BAC1B,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC;4BAC9D,YAAY,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,EAAE,IAAI,CAAC;wBAC1E;6BAAO;AACL,4BAAA,MAAM,IAAI,KAAK,CAAC,wGAAwG,CAAC;wBAC3H;oBACF;AAEA,oBAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;;;oBAGxC;gBACF;qBAAO;AACL,oBAAA,YAAY,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE;gBACvE;AACF,YAAA,CAAC,CAAC;AACF,YAAA,OAAO,mBAAmB,CAAC,GAAG,EAAE,YAAY,CAAC;QAC/C;AAEA,QAAA,OAAO,GAAG;IACZ;AAEA,IAAA,OAAO,CAAC,WAAmB,EAAA;QACzB,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC;QAClC,GAAG,CAAC,KAAK,EAAE;AACX,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;IACtB;uGA9CW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADF,MAAM,EAAA,CAAA;;2FAClB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
package/fesm2022/{iss-ctrl-set-value-event-BbEYFBe3.mjs → iss-ctrl-set-value-event-C7YYwHZV.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, inject } from '@angular/core';
|
|
3
3
|
import { of, map } from 'rxjs';
|
|
4
|
-
import { g as getPropertyByPath } from './iss-ctrl-iss-ctrl-
|
|
4
|
+
import { g as getPropertyByPath } from './iss-ctrl-iss-ctrl-DOmgkxUv.mjs';
|
|
5
5
|
|
|
6
6
|
class GetValueToSet {
|
|
7
7
|
execute(args) {
|
|
@@ -58,4 +58,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
58
58
|
}] });
|
|
59
59
|
|
|
60
60
|
export { SetValueEvent };
|
|
61
|
-
//# sourceMappingURL=iss-ctrl-set-value-event-
|
|
61
|
+
//# sourceMappingURL=iss-ctrl-set-value-event-C7YYwHZV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iss-ctrl-set-value-event-
|
|
1
|
+
{"version":3,"file":"iss-ctrl-set-value-event-C7YYwHZV.mjs","sources":["../../../projects/iss/src/events/set-value/get-value-to-set.ts","../../../projects/iss/src/events/set-value/set-value-event.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { map, Observable, of } from \"rxjs\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class GetValueToSet implements EventConfigFn {\r\n execute(args: EventArgument): Observable<string> {\r\n if (args.action?.config?.setValueFromJsonValue) {\r\n return of(getPropertyByPath(args.field.ctrlJsonValue(), args.action.config.setValueFromJsonValue));\r\n }\r\n\r\n if (args.action?.config?.setValueFromApiResponse) {\r\n return args.field.apiResponse.pipe(\r\n map((value: any) => getPropertyByPath(value, args.action.config.setValueFromApiResponse))\r\n );\r\n }\r\n\r\n if (args.action?.config?.setValueFromLoggedInUser) {\r\n\r\n }\r\n\r\n if (args.action?.config?.setValueFromRequestDto) {\r\n\r\n }\r\n\r\n return of(args.change.value);\r\n }\r\n}\r\n","import { inject, Injectable } from \"@angular/core\";\r\nimport { EventArgument, EventStrategy } from \"../../shared/interfaces/event-strategy\";\r\nimport { GetValueToSet } from \"./get-value-to-set\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class SetValueEvent implements EventStrategy {\r\n getValueToSetService = inject(GetValueToSet);\r\n\r\n fire(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Fired\", \"color: green\");\r\n let valueToSet;\r\n if (args.action.config.fn) {\r\n valueToSet = args.action.config.fn.execute(args);\r\n } else {\r\n valueToSet = this.getValueToSetService.execute(args);\r\n }\r\n\r\n valueToSet.subscribe((value: string) => {\r\n args.control.setValue(value, {emitEvent: false});\r\n });\r\n\r\n if (args.action.config.disableAfterSetValue) {\r\n args.control.disable();\r\n }\r\n args.action.triggered = true;\r\n }\r\n\r\n revert(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Reverted\", \"color: red\");\r\n args.control.setValue(null);\r\n args.action.triggered = false;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;MAMa,aAAa,CAAA;AACxB,IAAA,OAAO,CAAC,IAAmB,EAAA;QACzB,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE;YAC9C,OAAO,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACpG;QAEA,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE;AAChD,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAChC,GAAG,CAAC,CAAC,KAAU,KAAK,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAC1F;QACH;QAEA,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,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,CAAC,CAAC;QAEF,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE;AAC3C,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;QACxB;AACA,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI;IAC9B;AAEA,IAAA,MAAM,CAAC,IAAmB,EAAA;QACxB,OAAO,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAA,GAAA,CAAK,GAAG,6BAA6B,EAAE,YAAY,CAAC;AAC7H,QAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC3B,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,KAAK;IAC/B;uGA1BW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAb,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADD,MAAM,EAAA,CAAA;;2FAClB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
|
+
import { of, map } from 'rxjs';
|
|
4
|
+
import { g as getPropertyByPath } from './iss-ctrl-iss-ctrl-BN9rcLt2.mjs';
|
|
5
|
+
|
|
6
|
+
class GetValueToSet {
|
|
7
|
+
execute(args) {
|
|
8
|
+
if (args.action?.config?.setValueFromJsonValue) {
|
|
9
|
+
return of(getPropertyByPath(args.field.ctrlJsonValue(), args.action.config.setValueFromJsonValue));
|
|
10
|
+
}
|
|
11
|
+
if (args.action?.config?.setValueFromApiResponse) {
|
|
12
|
+
return args.field.apiResponse.pipe(map((value) => getPropertyByPath(value, args.action.config.setValueFromApiResponse)));
|
|
13
|
+
}
|
|
14
|
+
if (args.action?.config?.setValueFromLoggedInUser) {
|
|
15
|
+
}
|
|
16
|
+
if (args.action?.config?.setValueFromRequestDto) {
|
|
17
|
+
}
|
|
18
|
+
return of(args.change.value);
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, providedIn: "root" });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, decorators: [{
|
|
24
|
+
type: Injectable,
|
|
25
|
+
args: [{ providedIn: "root" }]
|
|
26
|
+
}] });
|
|
27
|
+
|
|
28
|
+
class SetValueEvent {
|
|
29
|
+
getValueToSetService = inject(GetValueToSet);
|
|
30
|
+
fire(args) {
|
|
31
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Set Value Event Fired", "color: green");
|
|
32
|
+
let valueToSet;
|
|
33
|
+
if (args.action.config.fn) {
|
|
34
|
+
valueToSet = args.action.config.fn.execute(args);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
valueToSet = this.getValueToSetService.execute(args);
|
|
38
|
+
}
|
|
39
|
+
valueToSet.subscribe((value) => {
|
|
40
|
+
args.control.setValue(value, { emitEvent: false });
|
|
41
|
+
});
|
|
42
|
+
if (args.action.config.disableAfterSetValue) {
|
|
43
|
+
args.control.disable();
|
|
44
|
+
}
|
|
45
|
+
args.action.triggered = true;
|
|
46
|
+
}
|
|
47
|
+
revert(args) {
|
|
48
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Set Value Event Reverted", "color: red");
|
|
49
|
+
args.control.setValue(null);
|
|
50
|
+
args.action.triggered = false;
|
|
51
|
+
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
53
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, providedIn: "root" });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, decorators: [{
|
|
56
|
+
type: Injectable,
|
|
57
|
+
args: [{ providedIn: "root" }]
|
|
58
|
+
}] });
|
|
59
|
+
|
|
60
|
+
export { SetValueEvent };
|
|
61
|
+
//# sourceMappingURL=iss-ctrl-set-value-event-CrpzRR6X.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-set-value-event-CrpzRR6X.mjs","sources":["../../../projects/iss/src/events/set-value/get-value-to-set.ts","../../../projects/iss/src/events/set-value/set-value-event.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { map, Observable, of } from \"rxjs\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class GetValueToSet implements EventConfigFn {\r\n execute(args: EventArgument): Observable<string> {\r\n if (args.action?.config?.setValueFromJsonValue) {\r\n return of(getPropertyByPath(args.field.ctrlJsonValue(), args.action.config.setValueFromJsonValue));\r\n }\r\n\r\n if (args.action?.config?.setValueFromApiResponse) {\r\n return args.field.apiResponse.pipe(\r\n map((value: any) => getPropertyByPath(value, args.action.config.setValueFromApiResponse))\r\n );\r\n }\r\n\r\n if (args.action?.config?.setValueFromLoggedInUser) {\r\n\r\n }\r\n\r\n if (args.action?.config?.setValueFromRequestDto) {\r\n\r\n }\r\n\r\n return of(args.change.value);\r\n }\r\n}\r\n","import { inject, Injectable } from \"@angular/core\";\r\nimport { EventArgument, EventStrategy } from \"../../shared/interfaces/event-strategy\";\r\nimport { GetValueToSet } from \"./get-value-to-set\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class SetValueEvent implements EventStrategy {\r\n getValueToSetService = inject(GetValueToSet);\r\n\r\n fire(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Fired\", \"color: green\");\r\n let valueToSet;\r\n if (args.action.config.fn) {\r\n valueToSet = args.action.config.fn.execute(args);\r\n } else {\r\n valueToSet = this.getValueToSetService.execute(args);\r\n }\r\n\r\n valueToSet.subscribe((value: string) => {\r\n args.control.setValue(value, {emitEvent: false});\r\n });\r\n\r\n if (args.action.config.disableAfterSetValue) {\r\n args.control.disable();\r\n }\r\n args.action.triggered = true;\r\n }\r\n\r\n revert(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Reverted\", \"color: red\");\r\n args.control.setValue(null);\r\n args.action.triggered = false;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;MAMa,aAAa,CAAA;AACxB,IAAA,OAAO,CAAC,IAAmB,EAAA;QACzB,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE;YAC9C,OAAO,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACpG;QAEA,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE;AAChD,YAAA,OAAO,IAAI,CAAC,K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4
|
+
import { g as getPropertyByPath } from './iss-ctrl-iss-ctrl-WfIqBEcL.mjs';
|
|
5
|
+
|
|
6
|
+
class GetValueToSet {
|
|
7
|
+
execute(args) {
|
|
8
|
+
if (args.action?.config?.setValueFromJsonValue) {
|
|
9
|
+
return of(getPropertyByPath(args.field.ctrlJsonValue(), args.action.config.setValueFromJsonValue));
|
|
10
|
+
}
|
|
11
|
+
if (args.action?.config?.setValueFromApiResponse) {
|
|
12
|
+
return args.field.apiResponse.pipe(map((value) => getPropertyByPath(value, args.action.config.setValueFromApiResponse)));
|
|
13
|
+
}
|
|
14
|
+
if (args.action?.config?.setValueFromLoggedInUser) {
|
|
15
|
+
}
|
|
16
|
+
if (args.action?.config?.setValueFromRequestDto) {
|
|
17
|
+
}
|
|
18
|
+
return of(args.change.value);
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, providedIn: "root" });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetValueToSet, decorators: [{
|
|
24
|
+
type: Injectable,
|
|
25
|
+
args: [{ providedIn: "root" }]
|
|
26
|
+
}] });
|
|
27
|
+
|
|
28
|
+
class SetValueEvent {
|
|
29
|
+
getValueToSetService = inject(GetValueToSet);
|
|
30
|
+
fire(args) {
|
|
31
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Set Value Event Fired", "color: green");
|
|
32
|
+
let valueToSet;
|
|
33
|
+
if (args.action.config.fn) {
|
|
34
|
+
valueToSet = args.action.config.fn.execute(args);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
valueToSet = this.getValueToSetService.execute(args);
|
|
38
|
+
}
|
|
39
|
+
valueToSet.subscribe((value) => {
|
|
40
|
+
args.control.setValue(value, { emitEvent: false });
|
|
41
|
+
});
|
|
42
|
+
if (args.action.config.disableAfterSetValue) {
|
|
43
|
+
args.control.disable();
|
|
44
|
+
}
|
|
45
|
+
args.action.triggered = true;
|
|
46
|
+
}
|
|
47
|
+
revert(args) {
|
|
48
|
+
console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + "%c Set Value Event Reverted", "color: red");
|
|
49
|
+
args.control.setValue(null);
|
|
50
|
+
args.action.triggered = false;
|
|
51
|
+
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
53
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, providedIn: "root" });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SetValueEvent, decorators: [{
|
|
56
|
+
type: Injectable,
|
|
57
|
+
args: [{ providedIn: "root" }]
|
|
58
|
+
}] });
|
|
59
|
+
|
|
60
|
+
export { SetValueEvent };
|
|
61
|
+
//# sourceMappingURL=iss-ctrl-set-value-event-DiHESiPT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-set-value-event-DiHESiPT.mjs","sources":["../../../projects/iss/src/events/set-value/get-value-to-set.ts","../../../projects/iss/src/events/set-value/set-value-event.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { map, Observable, of } from \"rxjs\";\r\nimport { EventArgument, EventConfigFn } from \"../../shared/interfaces/event-strategy\";\r\nimport { getPropertyByPath } from \"../../shared/utilities/get-property-by-path.util\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class GetValueToSet implements EventConfigFn {\r\n execute(args: EventArgument): Observable<string> {\r\n if (args.action?.config?.setValueFromJsonValue) {\r\n return of(getPropertyByPath(args.field.ctrlJsonValue(), args.action.config.setValueFromJsonValue));\r\n }\r\n\r\n if (args.action?.config?.setValueFromApiResponse) {\r\n return args.field.apiResponse.pipe(\r\n map((value: any) => getPropertyByPath(value, args.action.config.setValueFromApiResponse))\r\n );\r\n }\r\n\r\n if (args.action?.config?.setValueFromLoggedInUser) {\r\n\r\n }\r\n\r\n if (args.action?.config?.setValueFromRequestDto) {\r\n\r\n }\r\n\r\n return of(args.change.value);\r\n }\r\n}\r\n","import { inject, Injectable } from \"@angular/core\";\r\nimport { EventArgument, EventStrategy } from \"../../shared/interfaces/event-strategy\";\r\nimport { GetValueToSet } from \"./get-value-to-set\";\r\n\r\n@Injectable({providedIn: \"root\"})\r\nexport class SetValueEvent implements EventStrategy {\r\n getValueToSetService = inject(GetValueToSet);\r\n\r\n fire(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Fired\", \"color: green\");\r\n let valueToSet;\r\n if (args.action.config.fn) {\r\n valueToSet = args.action.config.fn.execute(args);\r\n } else {\r\n valueToSet = this.getValueToSetService.execute(args);\r\n }\r\n\r\n valueToSet.subscribe((value: string) => {\r\n args.control.setValue(value, {emitEvent: false});\r\n });\r\n\r\n if (args.action.config.disableAfterSetValue) {\r\n args.control.disable();\r\n }\r\n args.action.triggered = true;\r\n }\r\n\r\n revert(args: EventArgument) {\r\n console.log(`${args.field.name} listens to ${args.action.trackedFieldName} =>` + \"%c Set Value Event Reverted\", \"color: red\");\r\n args.control.setValue(null);\r\n args.action.triggered = false;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;MAMa,aAAa,CAAA;AACxB,IAAA,OAAO,CAAC,IAAmB,EAAA;QACzB,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE;YAC9C,OAAO,EAAE,CAAC,iBAAiB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