iss-ctrl 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -17
- package/fesm2022/iss-ctrl-checkbox.wrapper-BVw3Pu1B.mjs +81 -0
- package/fesm2022/iss-ctrl-checkbox.wrapper-BVw3Pu1B.mjs.map +1 -0
- package/fesm2022/iss-ctrl-chips.wrapper-FY02vbu1.mjs +83 -0
- package/fesm2022/iss-ctrl-chips.wrapper-FY02vbu1.mjs.map +1 -0
- package/fesm2022/iss-ctrl-date-picker.wrapper-BTyZyhiU.mjs +79 -0
- package/fesm2022/iss-ctrl-date-picker.wrapper-BTyZyhiU.mjs.map +1 -0
- package/fesm2022/iss-ctrl-date-range-picker.wrapper-BW1pwRKg.mjs +87 -0
- package/fesm2022/iss-ctrl-date-range-picker.wrapper-BW1pwRKg.mjs.map +1 -0
- package/fesm2022/iss-ctrl-datetime-picker.wrapper-h0P56I6e.mjs +83 -0
- package/fesm2022/iss-ctrl-datetime-picker.wrapper-h0P56I6e.mjs.map +1 -0
- package/fesm2022/iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs +245 -0
- package/fesm2022/iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs.map +1 -0
- package/fesm2022/iss-ctrl-input.wrapper-dK79kSim.mjs +83 -0
- package/fesm2022/iss-ctrl-input.wrapper-dK79kSim.mjs.map +1 -0
- package/fesm2022/iss-ctrl-iss-ctrl-BhZGHw0A.mjs +6024 -0
- package/fesm2022/iss-ctrl-iss-ctrl-BhZGHw0A.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-event.service-D_O5gUmg.mjs +62 -0
- package/fesm2022/iss-ctrl-load-event.service-D_O5gUmg.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-options-event.service-CylOcoz4.mjs +51 -0
- package/fesm2022/iss-ctrl-load-options-event.service-CylOcoz4.mjs.map +1 -0
- package/fesm2022/iss-ctrl-load-value-event.service-BRz28bIm.mjs +52 -0
- package/fesm2022/iss-ctrl-load-value-event.service-BRz28bIm.mjs.map +1 -0
- package/fesm2022/iss-ctrl-mobile.wrapper-DOvO-cRi.mjs +70 -0
- package/fesm2022/iss-ctrl-mobile.wrapper-DOvO-cRi.mjs.map +1 -0
- package/fesm2022/iss-ctrl-note.wrapper-BW6WOulk.mjs +43 -0
- package/fesm2022/iss-ctrl-note.wrapper-BW6WOulk.mjs.map +1 -0
- package/fesm2022/iss-ctrl-plate-number.wrapper-B_NXePR_.mjs +228 -0
- package/fesm2022/iss-ctrl-plate-number.wrapper-B_NXePR_.mjs.map +1 -0
- package/fesm2022/iss-ctrl-radio.wrapper-BHXkIyX9.mjs +84 -0
- package/fesm2022/iss-ctrl-radio.wrapper-BHXkIyX9.mjs.map +1 -0
- package/fesm2022/iss-ctrl-replace-api-keys.service-DNns4c2U.mjs +57 -0
- package/fesm2022/iss-ctrl-replace-api-keys.service-DNns4c2U.mjs.map +1 -0
- package/fesm2022/iss-ctrl-select.viewer-Bd4flLOk.mjs +30 -0
- package/fesm2022/iss-ctrl-select.viewer-Bd4flLOk.mjs.map +1 -0
- package/fesm2022/iss-ctrl-select.wrapper-B78Aap__.mjs +66 -0
- package/fesm2022/iss-ctrl-select.wrapper-B78Aap__.mjs.map +1 -0
- package/fesm2022/iss-ctrl-set-value-event.service-Dc4bcaTp.mjs +61 -0
- package/fesm2022/iss-ctrl-set-value-event.service-Dc4bcaTp.mjs.map +1 -0
- package/fesm2022/iss-ctrl-show-event.service-Bg9VNotN.mjs +18 -0
- package/fesm2022/iss-ctrl-show-event.service-Bg9VNotN.mjs.map +1 -0
- package/fesm2022/iss-ctrl-slide-toggle.wrapper-CRTpag4Q.mjs +75 -0
- package/fesm2022/iss-ctrl-slide-toggle.wrapper-CRTpag4Q.mjs.map +1 -0
- package/fesm2022/iss-ctrl-table.wrapper-B1q8mXCB.mjs +312 -0
- package/fesm2022/iss-ctrl-table.wrapper-B1q8mXCB.mjs.map +1 -0
- package/fesm2022/iss-ctrl-textarea.wrapper-LR5_KMxK.mjs +70 -0
- package/fesm2022/iss-ctrl-textarea.wrapper-LR5_KMxK.mjs.map +1 -0
- package/fesm2022/iss-ctrl-time-picker.wrapper-D_td2M3Z.mjs +67 -0
- package/fesm2022/iss-ctrl-time-picker.wrapper-D_td2M3Z.mjs.map +1 -0
- package/fesm2022/iss-ctrl-toggle-button.wrapper-DxA2jL1S.mjs +89 -0
- package/fesm2022/iss-ctrl-toggle-button.wrapper-DxA2jL1S.mjs.map +1 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value.service-CAnJWl6G.mjs +24 -0
- package/fesm2022/iss-ctrl-trigger-based-on-json-value.service-CAnJWl6G.mjs.map +1 -0
- package/fesm2022/iss-ctrl-user-picker.wrapper-UeA0dCqd.mjs +190 -0
- package/fesm2022/iss-ctrl-user-picker.wrapper-UeA0dCqd.mjs.map +1 -0
- package/fesm2022/iss-ctrl-viewer.base-BCFfZsDG.mjs +17 -0
- package/fesm2022/iss-ctrl-viewer.base-BCFfZsDG.mjs.map +1 -0
- package/fesm2022/iss-ctrl.mjs +2 -0
- package/fesm2022/iss-ctrl.mjs.map +1 -0
- package/package.json +18 -44
- package/types/iss-ctrl.d.ts +712 -0
- package/.editorconfig +0 -13
- package/.eslintrc.json +0 -90
- package/angular.json +0 -190
- package/bun.lock +0 -1998
- package/projects/iss/.eslintrc.json +0 -37
- package/projects/iss/README.md +0 -24
- package/projects/iss/ng-package.json +0 -10
- package/projects/iss/package.json +0 -17
- package/projects/iss/src/components/controls/base/control.base.ts +0 -77
- package/projects/iss/src/components/controls/base/viewer.base.ts +0 -8
- package/projects/iss/src/components/controls/base/wrapper.base.ts +0 -85
- package/projects/iss/src/components/controls/checkbox/checkbox.control.ts +0 -93
- package/projects/iss/src/components/controls/checkbox/checkbox.viewer.ts +0 -15
- package/projects/iss/src/components/controls/checkbox/checkbox.wrapper.ts +0 -36
- package/projects/iss/src/components/controls/chips/chips.control.ts +0 -99
- package/projects/iss/src/components/controls/chips/chips.viewer.ts +0 -23
- package/projects/iss/src/components/controls/chips/chips.wrapper.ts +0 -31
- package/projects/iss/src/components/controls/date-picker/date-picker.control.ts +0 -85
- package/projects/iss/src/components/controls/date-picker/date-picker.viewer.ts +0 -14
- package/projects/iss/src/components/controls/date-picker/date-picker.wrapper.ts +0 -35
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.control.ts +0 -143
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.viewer.ts +0 -22
- package/projects/iss/src/components/controls/date-range-picker/date-range-picker.wrapper.ts +0 -35
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.control.ts +0 -109
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.viewer.ts +0 -17
- package/projects/iss/src/components/controls/datetime-picker/datetime-picker.wrapper.ts +0 -38
- package/projects/iss/src/components/controls/file-picker/attachment.viewer.ts +0 -165
- package/projects/iss/src/components/controls/file-picker/droppable.directive.ts +0 -28
- package/projects/iss/src/components/controls/file-picker/file-handler.service.ts +0 -115
- package/projects/iss/src/components/controls/file-picker/file-picker.control.ts +0 -187
- package/projects/iss/src/components/controls/file-picker/file-picker.wrapper.ts +0 -120
- package/projects/iss/src/components/controls/input/input.control.ts +0 -95
- package/projects/iss/src/components/controls/input/input.viewer.ts +0 -11
- package/projects/iss/src/components/controls/input/input.wrapper.ts +0 -40
- package/projects/iss/src/components/controls/mobile/mobile.control.ts +0 -222
- package/projects/iss/src/components/controls/mobile/mobile.viewer.ts +0 -11
- package/projects/iss/src/components/controls/mobile/mobile.wrapper.ts +0 -32
- package/projects/iss/src/components/controls/mobile/phone.service.ts +0 -96
- package/projects/iss/src/components/controls/note/note.wrapper.ts +0 -25
- package/projects/iss/src/components/controls/plate/plate-letter.pipe.ts +0 -14
- package/projects/iss/src/components/controls/plate/plate-number.wrapper.ts +0 -36
- package/projects/iss/src/components/controls/plate/plate.control.ts +0 -481
- package/projects/iss/src/components/controls/plate/plate.viewer.ts +0 -289
- package/projects/iss/src/components/controls/radio/radio.control.ts +0 -48
- package/projects/iss/src/components/controls/radio/radio.viewer.ts +0 -14
- package/projects/iss/src/components/controls/radio/radio.wrapper.ts +0 -38
- package/projects/iss/src/components/controls/select/select.control.ts +0 -261
- package/projects/iss/src/components/controls/select/select.viewer.ts +0 -14
- package/projects/iss/src/components/controls/select/select.wrapper.ts +0 -41
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.control.ts +0 -24
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.viewer.ts +0 -14
- package/projects/iss/src/components/controls/slide-toggle/slide-toggle.wrapper.ts +0 -31
- package/projects/iss/src/components/controls/table/field.viewer.ts +0 -23
- package/projects/iss/src/components/controls/table/table.wrapper.ts +0 -233
- package/projects/iss/src/components/controls/textarea/textarea.control.ts +0 -54
- package/projects/iss/src/components/controls/textarea/textarea.viewer.ts +0 -11
- package/projects/iss/src/components/controls/textarea/textarea.wrapper.ts +0 -34
- package/projects/iss/src/components/controls/time-picker/time-picker.control.ts +0 -86
- package/projects/iss/src/components/controls/time-picker/time-picker.viewer.ts +0 -10
- package/projects/iss/src/components/controls/time-picker/time-picker.wrapper.ts +0 -31
- package/projects/iss/src/components/controls/toggle-button/toggle-button.control.ts +0 -105
- package/projects/iss/src/components/controls/toggle-button/toggle-button.viewer.ts +0 -15
- package/projects/iss/src/components/controls/toggle-button/toggle-button.wrapper.ts +0 -40
- package/projects/iss/src/components/controls/user-picker/employee.service.ts +0 -73
- package/projects/iss/src/components/controls/user-picker/user-picker.wrapper.ts +0 -128
- package/projects/iss/src/components/outlet/field-data-injector.pipe.ts +0 -20
- package/projects/iss/src/components/outlet/outlet.ts +0 -152
- package/projects/iss/src/components/shared/hints.component.ts +0 -38
- package/projects/iss/src/components/shared/validation-message.component.ts +0 -36
- package/projects/iss/src/events/event-handler.service.ts +0 -47
- package/projects/iss/src/events/load/after-fetch.service.ts +0 -29
- package/projects/iss/src/events/load/load-event.service.ts +0 -26
- package/projects/iss/src/events/load/load-options-event.service.ts +0 -51
- package/projects/iss/src/events/load/load-value-event.service.ts +0 -50
- package/projects/iss/src/events/load/replace-api-keys.service.ts +0 -55
- package/projects/iss/src/events/set-value/get-value-to-set.service.ts +0 -29
- package/projects/iss/src/events/set-value/set-value-event.service.ts +0 -33
- package/projects/iss/src/events/show/show-event.service.ts +0 -11
- package/projects/iss/src/events/triggers/action-trigger-manager.service.ts +0 -51
- package/projects/iss/src/events/triggers/action-trigger.service.ts +0 -30
- package/projects/iss/src/events/triggers/trigger-based-on-json-value.service.ts +0 -19
- package/projects/iss/src/public-api.ts +0 -102
- package/projects/iss/src/shared/classes/field-action-config.ts +0 -56
- package/projects/iss/src/shared/classes/field-action.ts +0 -28
- package/projects/iss/src/shared/classes/field-async-validation.ts +0 -7
- package/projects/iss/src/shared/classes/field-config.ts +0 -113
- package/projects/iss/src/shared/classes/field-option.ts +0 -9
- package/projects/iss/src/shared/classes/field-validation.ts +0 -15
- package/projects/iss/src/shared/classes/form-field.ts +0 -94
- package/projects/iss/src/shared/constants/countries.const.ts +0 -2051
- package/projects/iss/src/shared/constants/date.const.ts +0 -18
- package/projects/iss/src/shared/constants/plate-letters.const.ts +0 -21
- package/projects/iss/src/shared/constants/provider.const.ts +0 -7
- package/projects/iss/src/shared/constants/regex.const.ts +0 -1
- package/projects/iss/src/shared/constants/validation.const.ts +0 -115
- package/projects/iss/src/shared/indexes/components.index.ts +0 -27
- package/projects/iss/src/shared/indexes/services.index.ts +0 -11
- package/projects/iss/src/shared/indexes/validators.index.ts +0 -21
- package/projects/iss/src/shared/interfaces/action.interface.ts +0 -7
- package/projects/iss/src/shared/interfaces/attachment.interface.ts +0 -7
- package/projects/iss/src/shared/interfaces/country.interface.ts +0 -11
- package/projects/iss/src/shared/interfaces/date-range.interface.ts +0 -5
- package/projects/iss/src/shared/interfaces/datetime.interface.ts +0 -4
- package/projects/iss/src/shared/interfaces/dto.interface.ts +0 -12
- package/projects/iss/src/shared/interfaces/field.interface.ts +0 -27
- package/projects/iss/src/shared/interfaces/file.interface.ts +0 -9
- package/projects/iss/src/shared/interfaces/hint.interface.ts +0 -8
- package/projects/iss/src/shared/interfaces/i18n.interface.ts +0 -4
- package/projects/iss/src/shared/interfaces/import.interface.ts +0 -3
- package/projects/iss/src/shared/interfaces/mobile.interface.ts +0 -12
- package/projects/iss/src/shared/interfaces/option.interface.ts +0 -4
- package/projects/iss/src/shared/interfaces/outlet.interface.ts +0 -8
- package/projects/iss/src/shared/interfaces/plate-letter.interface.ts +0 -7
- package/projects/iss/src/shared/interfaces/validation.interface.ts +0 -5
- package/projects/iss/src/shared/pipes/arabic-number.pipe.ts +0 -14
- package/projects/iss/src/shared/pipes/select-status.pipe.ts +0 -10
- package/projects/iss/src/shared/pipes/translate.pipe.ts +0 -20
- package/projects/iss/src/shared/services/form-engine.service.ts +0 -121
- package/projects/iss/src/shared/services/loader.service.ts +0 -51
- package/projects/iss/src/shared/tokens/api-response-mapper.token.ts +0 -4
- package/projects/iss/src/shared/tokens/attachment.token.ts +0 -6
- package/projects/iss/src/shared/tokens/field.token.ts +0 -4
- package/projects/iss/src/shared/tokens/host.token.ts +0 -3
- package/projects/iss/src/shared/tokens/language.token.ts +0 -3
- package/projects/iss/src/shared/tokens/url.token.ts +0 -3
- package/projects/iss/src/shared/types/iso2.type.ts +0 -244
- package/projects/iss/src/shared/types/validation.type.ts +0 -3
- package/projects/iss/src/shared/utilities/array-from.util.ts +0 -7
- package/projects/iss/src/shared/utilities/format-file-size.util.ts +0 -9
- package/projects/iss/src/shared/utilities/get-property-by-path.util.ts +0 -30
- package/projects/iss/src/shared/utilities/http.util.service.ts +0 -19
- package/projects/iss/src/shared/utilities/is-valid-api.util.ts +0 -8
- package/projects/iss/src/shared/utilities/replace-placeholder.util.ts +0 -12
- package/projects/iss/src/validators/core.validator.ts +0 -39
- package/projects/iss/src/validators/file.validator.ts +0 -100
- package/projects/iss/src/validators/time.validator.ts +0 -31
- package/projects/iss/tsconfig.lib.json +0 -13
- package/projects/iss/tsconfig.lib.prod.json +0 -9
- package/projects/iss/tsconfig.spec.json +0 -13
- package/projects/playground/.eslintrc.json +0 -37
- package/projects/playground/public/favicon.ico +0 -0
- package/projects/playground/public/flags/ad.svg +0 -282
- package/projects/playground/public/flags/ae.svg +0 -6
- package/projects/playground/public/flags/af.svg +0 -9
- package/projects/playground/public/flags/ag.svg +0 -15
- package/projects/playground/public/flags/ai.svg +0 -35
- package/projects/playground/public/flags/al.svg +0 -7
- package/projects/playground/public/flags/am.svg +0 -5
- package/projects/playground/public/flags/ao.svg +0 -19
- package/projects/playground/public/flags/aq.svg +0 -45
- package/projects/playground/public/flags/ar.svg +0 -66
- package/projects/playground/public/flags/as.svg +0 -225
- package/projects/playground/public/flags/at.svg +0 -4
- package/projects/playground/public/flags/au.svg +0 -32
- package/projects/playground/public/flags/aw.svg +0 -11
- package/projects/playground/public/flags/ax.svg +0 -11
- package/projects/playground/public/flags/az.svg +0 -11
- package/projects/playground/public/flags/ba.svg +0 -18
- package/projects/playground/public/flags/bb.svg +0 -11
- package/projects/playground/public/flags/bd.svg +0 -4
- package/projects/playground/public/flags/be.svg +0 -5
- package/projects/playground/public/flags/bf.svg +0 -14
- package/projects/playground/public/flags/bg.svg +0 -5
- package/projects/playground/public/flags/bh.svg +0 -4
- package/projects/playground/public/flags/bi.svg +0 -26
- package/projects/playground/public/flags/bj.svg +0 -5
- package/projects/playground/public/flags/bl.svg +0 -5
- package/projects/playground/public/flags/bm.svg +0 -374
- package/projects/playground/public/flags/bn.svg +0 -70
- package/projects/playground/public/flags/bo.svg +0 -3625
- package/projects/playground/public/flags/bq.svg +0 -5
- package/projects/playground/public/flags/br.svg +0 -92
- package/projects/playground/public/flags/bs.svg +0 -5
- package/projects/playground/public/flags/bt.svg +0 -487
- package/projects/playground/public/flags/bv.svg +0 -11
- package/projects/playground/public/flags/bw.svg +0 -5
- package/projects/playground/public/flags/by.svg +0 -15
- package/projects/playground/public/flags/bz.svg +0 -629
- package/projects/playground/public/flags/ca.svg +0 -7
- package/projects/playground/public/flags/cc.svg +0 -33
- package/projects/playground/public/flags/cd.svg +0 -5
- package/projects/playground/public/flags/cf.svg +0 -7
- package/projects/playground/public/flags/cg.svg +0 -5
- package/projects/playground/public/flags/ch.svg +0 -4
- package/projects/playground/public/flags/ci.svg +0 -5
- package/projects/playground/public/flags/ck.svg +0 -29
- package/projects/playground/public/flags/cl.svg +0 -14
- package/projects/playground/public/flags/cm.svg +0 -15
- package/projects/playground/public/flags/cn.svg +0 -11
- package/projects/playground/public/flags/co.svg +0 -5
- package/projects/playground/public/flags/cr.svg +0 -1332
- package/projects/playground/public/flags/cu.svg +0 -6
- package/projects/playground/public/flags/cv.svg +0 -24
- package/projects/playground/public/flags/cw.svg +0 -16
- package/projects/playground/public/flags/cx.svg +0 -24
- package/projects/playground/public/flags/cy.svg +0 -13
- package/projects/playground/public/flags/cz.svg +0 -5
- package/projects/playground/public/flags/de.svg +0 -5
- package/projects/playground/public/flags/dj.svg +0 -6
- package/projects/playground/public/flags/dk.svg +0 -5
- package/projects/playground/public/flags/dm.svg +0 -198
- package/projects/playground/public/flags/do.svg +0 -238
- package/projects/playground/public/flags/dz.svg +0 -5
- package/projects/playground/public/flags/ec.svg +0 -1292
- package/projects/playground/public/flags/ee.svg +0 -5
- package/projects/playground/public/flags/eg.svg +0 -125
- package/projects/playground/public/flags/eh.svg +0 -12
- package/projects/playground/public/flags/er.svg +0 -9
- package/projects/playground/public/flags/es.svg +0 -445
- package/projects/playground/public/flags/et.svg +0 -16
- package/projects/playground/public/flags/eu.svg +0 -28
- package/projects/playground/public/flags/fi.svg +0 -5
- package/projects/playground/public/flags/fj.svg +0 -203
- package/projects/playground/public/flags/fk.svg +0 -922
- 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 +0 -16
- package/projects/playground/public/flags/fo.svg +0 -11
- package/projects/playground/public/flags/fonts.css +0 -271
- package/projects/playground/public/flags/fr.svg +0 -5
- package/projects/playground/public/flags/ga.svg +0 -5
- package/projects/playground/public/flags/gb-eng.svg +0 -7
- package/projects/playground/public/flags/gb-nir.svg +0 -15
- package/projects/playground/public/flags/gb-sct.svg +0 -11
- package/projects/playground/public/flags/gb-wls.svg +0 -16
- package/projects/playground/public/flags/gb.svg +0 -15
- package/projects/playground/public/flags/gd.svg +0 -11
- package/projects/playground/public/flags/ge.svg +0 -17
- package/projects/playground/public/flags/gf.svg +0 -5
- package/projects/playground/public/flags/gg.svg +0 -8
- package/projects/playground/public/flags/gh.svg +0 -6
- package/projects/playground/public/flags/gi.svg +0 -69
- package/projects/playground/public/flags/gl.svg +0 -4
- package/projects/playground/public/flags/gm.svg +0 -7
- package/projects/playground/public/flags/gn.svg +0 -5
- package/projects/playground/public/flags/gp.svg +0 -5
- package/projects/playground/public/flags/gq.svg +0 -88
- package/projects/playground/public/flags/gr.svg +0 -4
- package/projects/playground/public/flags/gs.svg +0 -693
- package/projects/playground/public/flags/gt.svg +0 -317
- package/projects/playground/public/flags/gu.svg +0 -58
- package/projects/playground/public/flags/gw.svg +0 -13
- package/projects/playground/public/flags/gy.svg +0 -7
- package/projects/playground/public/flags/hk.svg +0 -17
- package/projects/playground/public/flags/hm.svg +0 -32
- package/projects/playground/public/flags/hn.svg +0 -10
- package/projects/playground/public/flags/hr.svg +0 -282
- package/projects/playground/public/flags/ht.svg +0 -1470
- package/projects/playground/public/flags/hu.svg +0 -5
- package/projects/playground/public/flags/id.svg +0 -4
- package/projects/playground/public/flags/ie.svg +0 -5
- package/projects/playground/public/flags/il.svg +0 -5
- package/projects/playground/public/flags/im.svg +0 -33
- package/projects/playground/public/flags/in.svg +0 -25
- package/projects/playground/public/flags/io.svg +0 -895
- package/projects/playground/public/flags/iq.svg +0 -12
- package/projects/playground/public/flags/ir.svg +0 -31
- package/projects/playground/public/flags/is.svg +0 -5
- package/projects/playground/public/flags/it.svg +0 -5
- package/projects/playground/public/flags/je.svg +0 -40
- package/projects/playground/public/flags/jm.svg +0 -9
- package/projects/playground/public/flags/jo.svg +0 -10
- package/projects/playground/public/flags/jp.svg +0 -4
- package/projects/playground/public/flags/ke.svg +0 -28
- package/projects/playground/public/flags/kg.svg +0 -7
- package/projects/playground/public/flags/kh.svg +0 -133
- package/projects/playground/public/flags/ki.svg +0 -54
- package/projects/playground/public/flags/km.svg +0 -13
- package/projects/playground/public/flags/kn.svg +0 -24
- package/projects/playground/public/flags/kp.svg +0 -16
- package/projects/playground/public/flags/kr.svg +0 -16
- package/projects/playground/public/flags/kw.svg +0 -6
- package/projects/playground/public/flags/ky.svg +0 -153
- package/projects/playground/public/flags/kz.svg +0 -49
- package/projects/playground/public/flags/la.svg +0 -5
- package/projects/playground/public/flags/lb.svg +0 -8
- package/projects/playground/public/flags/lc.svg +0 -6
- package/projects/playground/public/flags/li.svg +0 -79
- package/projects/playground/public/flags/lk.svg +0 -50
- package/projects/playground/public/flags/lr.svg +0 -15
- package/projects/playground/public/flags/ls.svg +0 -32
- package/projects/playground/public/flags/lt.svg +0 -5
- package/projects/playground/public/flags/lu.svg +0 -5
- package/projects/playground/public/flags/lv.svg +0 -4
- package/projects/playground/public/flags/ly.svg +0 -8
- package/projects/playground/public/flags/ma.svg +0 -4
- package/projects/playground/public/flags/mc.svg +0 -4
- package/projects/playground/public/flags/md.svg +0 -102
- package/projects/playground/public/flags/me.svg +0 -240
- package/projects/playground/public/flags/mf.svg +0 -5
- package/projects/playground/public/flags/mg.svg +0 -5
- package/projects/playground/public/flags/mh.svg +0 -18
- package/projects/playground/public/flags/mk.svg +0 -6
- package/projects/playground/public/flags/ml.svg +0 -5
- package/projects/playground/public/flags/mm.svg +0 -12
- package/projects/playground/public/flags/mn.svg +0 -12
- package/projects/playground/public/flags/mo.svg +0 -13
- package/projects/playground/public/flags/mp.svg +0 -2919
- package/projects/playground/public/flags/mq.svg +0 -5
- package/projects/playground/public/flags/mr.svg +0 -5
- package/projects/playground/public/flags/ms.svg +0 -59
- package/projects/playground/public/flags/mt.svg +0 -52
- package/projects/playground/public/flags/mu.svg +0 -6
- package/projects/playground/public/flags/mv.svg +0 -8
- package/projects/playground/public/flags/mw.svg +0 -24
- package/projects/playground/public/flags/mx.svg +0 -1129
- package/projects/playground/public/flags/my.svg +0 -12
- package/projects/playground/public/flags/mz.svg +0 -50
- package/projects/playground/public/flags/na.svg +0 -17
- package/projects/playground/public/flags/nc.svg +0 -5
- package/projects/playground/public/flags/ne.svg +0 -6
- package/projects/playground/public/flags/nf.svg +0 -8
- package/projects/playground/public/flags/ng.svg +0 -4
- package/projects/playground/public/flags/ni.svg +0 -281
- package/projects/playground/public/flags/nl.svg +0 -5
- package/projects/playground/public/flags/no.svg +0 -11
- package/projects/playground/public/flags/np.svg +0 -33
- package/projects/playground/public/flags/nr.svg +0 -8
- package/projects/playground/public/flags/nu.svg +0 -23
- package/projects/playground/public/flags/nz.svg +0 -37
- package/projects/playground/public/flags/om.svg +0 -307
- package/projects/playground/public/flags/pa.svg +0 -15
- package/projects/playground/public/flags/pe.svg +0 -767
- package/projects/playground/public/flags/pf.svg +0 -38
- package/projects/playground/public/flags/pg.svg +0 -16
- package/projects/playground/public/flags/ph.svg +0 -28
- package/projects/playground/public/flags/pk.svg +0 -7
- package/projects/playground/public/flags/pl.svg +0 -4
- package/projects/playground/public/flags/pm.svg +0 -5
- package/projects/playground/public/flags/pn.svg +0 -131
- package/projects/playground/public/flags/pr.svg +0 -6
- package/projects/playground/public/flags/ps.svg +0 -6
- package/projects/playground/public/flags/pt.svg +0 -79
- package/projects/playground/public/flags/pw.svg +0 -4
- package/projects/playground/public/flags/py.svg +0 -192
- package/projects/playground/public/flags/qa.svg +0 -7
- package/projects/playground/public/flags/re.svg +0 -5
- package/projects/playground/public/flags/ro.svg +0 -5
- package/projects/playground/public/flags/rs.svg +0 -1143
- package/projects/playground/public/flags/ru.svg +0 -5
- package/projects/playground/public/flags/rw.svg +0 -17
- package/projects/playground/public/flags/sa.svg +0 -23
- package/projects/playground/public/flags/sb.svg +0 -30
- package/projects/playground/public/flags/sc.svg +0 -7
- package/projects/playground/public/flags/sd.svg +0 -6
- package/projects/playground/public/flags/se.svg +0 -5
- package/projects/playground/public/flags/sg.svg +0 -15
- package/projects/playground/public/flags/sh.svg +0 -15
- package/projects/playground/public/flags/si.svg +0 -30
- package/projects/playground/public/flags/sj.svg +0 -11
- package/projects/playground/public/flags/sk.svg +0 -21
- package/projects/playground/public/flags/sl.svg +0 -5
- package/projects/playground/public/flags/sm.svg +0 -847
- package/projects/playground/public/flags/sn.svg +0 -15
- package/projects/playground/public/flags/so.svg +0 -13
- package/projects/playground/public/flags/sr.svg +0 -6
- package/projects/playground/public/flags/ss.svg +0 -8
- package/projects/playground/public/flags/st.svg +0 -16
- package/projects/playground/public/flags/stc-icons.css +0 -1
- package/projects/playground/public/flags/sv.svg +0 -3368
- package/projects/playground/public/flags/sx.svg +0 -172
- package/projects/playground/public/flags/sy.svg +0 -6
- package/projects/playground/public/flags/sz.svg +0 -54
- package/projects/playground/public/flags/tc.svg +0 -88
- package/projects/playground/public/flags/td.svg +0 -5
- package/projects/playground/public/flags/tf.svg +0 -18
- package/projects/playground/public/flags/tg.svg +0 -15
- package/projects/playground/public/flags/th.svg +0 -5
- package/projects/playground/public/flags/tj.svg +0 -32
- package/projects/playground/public/flags/tk.svg +0 -25
- package/projects/playground/public/flags/tl.svg +0 -6
- package/projects/playground/public/flags/tm.svg +0 -349
- package/projects/playground/public/flags/tn.svg +0 -9
- package/projects/playground/public/flags/to.svg +0 -8
- package/projects/playground/public/flags/tr.svg +0 -6
- package/projects/playground/public/flags/tt.svg +0 -5
- package/projects/playground/public/flags/tv.svg +0 -18
- package/projects/playground/public/flags/tw.svg +0 -12
- package/projects/playground/public/flags/tz.svg +0 -13
- package/projects/playground/public/flags/ua.svg +0 -4
- package/projects/playground/public/flags/ug.svg +0 -46
- package/projects/playground/public/flags/um.svg +0 -25
- package/projects/playground/public/flags/us.svg +0 -25
- package/projects/playground/public/flags/uy.svg +0 -138
- package/projects/playground/public/flags/uz.svg +0 -30
- package/projects/playground/public/flags/va.svg +0 -277
- package/projects/playground/public/flags/vc.svg +0 -9
- package/projects/playground/public/flags/ve.svg +0 -28
- package/projects/playground/public/flags/vg.svg +0 -96
- package/projects/playground/public/flags/vi.svg +0 -311
- package/projects/playground/public/flags/vn.svg +0 -12
- package/projects/playground/public/flags/vu.svg +0 -20
- package/projects/playground/public/flags/wf.svg +0 -7
- package/projects/playground/public/flags/ws.svg +0 -14
- package/projects/playground/public/flags/xk.svg +0 -11
- package/projects/playground/public/flags/ye.svg +0 -5
- package/projects/playground/public/flags/yt.svg +0 -5
- package/projects/playground/public/flags/za.svg +0 -17
- package/projects/playground/public/flags/zm.svg +0 -20
- package/projects/playground/public/flags/zw.svg +0 -130
- package/projects/playground/src/app/app.component.ts +0 -119
- package/projects/playground/src/app/app.config.ts +0 -51
- package/projects/playground/src/app/app.routes.ts +0 -41
- package/projects/playground/src/app/login.service.ts +0 -21
- package/projects/playground/src/components/attachment-wrapper.component.ts +0 -45
- package/projects/playground/src/components/attachment.component.ts +0 -35
- package/projects/playground/src/components/checkbox-wrapper.component.ts +0 -43
- package/projects/playground/src/components/chips-wrapper.component.ts +0 -37
- package/projects/playground/src/components/ctrl-array-wrapper.component.ts +0 -76
- package/projects/playground/src/components/date-picker-container.component.ts +0 -22
- package/projects/playground/src/components/date-picker-wrapper.component.ts +0 -41
- package/projects/playground/src/components/date-range-picker-container.component.ts +0 -24
- package/projects/playground/src/components/date-range-picker-wrapper.component.ts +0 -41
- package/projects/playground/src/components/datetime-container.component.ts +0 -25
- package/projects/playground/src/components/datetime-picker-wrapper.component.ts +0 -62
- package/projects/playground/src/components/input-container.component.ts +0 -35
- package/projects/playground/src/components/input-wrapper.component.ts +0 -41
- package/projects/playground/src/components/mobile-container.component.ts +0 -23
- package/projects/playground/src/components/mobile-wrapper.component.ts +0 -36
- package/projects/playground/src/components/note-wrapper.component.ts +0 -37
- package/projects/playground/src/components/outlet-container.component.ts +0 -144
- package/projects/playground/src/components/plate-container.component.ts +0 -22
- package/projects/playground/src/components/plate-wrapper.component.ts +0 -39
- package/projects/playground/src/components/radio-wrapper.component.ts +0 -45
- package/projects/playground/src/components/select-container.component.ts +0 -31
- package/projects/playground/src/components/select-wrapper.component.ts +0 -48
- package/projects/playground/src/components/ships-container.component.ts +0 -23
- package/projects/playground/src/components/slide-toggle-wrapper.component.ts +0 -40
- package/projects/playground/src/components/textarea-container.component.ts +0 -23
- package/projects/playground/src/components/textarea-wrapper.component.ts +0 -54
- package/projects/playground/src/components/time-picker-container.component.ts +0 -23
- package/projects/playground/src/components/time-picker-wrapper.component.ts +0 -43
- package/projects/playground/src/components/toggle-button-wrapper.component.ts +0 -49
- package/projects/playground/src/components/user-picker-wrapper.component.ts +0 -37
- package/projects/playground/src/eServices/create-request.component.ts +0 -28
- package/projects/playground/src/eServices/e-service.component.ts +0 -112
- package/projects/playground/src/eServices/view-request.component.ts +0 -13
- package/projects/playground/src/index.html +0 -13
- package/projects/playground/src/interceptors/header.interceptor.ts +0 -71
- package/projects/playground/src/main.ts +0 -8
- package/projects/playground/src/services/ss.service.ts +0 -62
- package/projects/playground/src/styles.scss +0 -33
- package/projects/playground/src/validators/customValidator.validator.ts +0 -10
- package/projects/playground/tsconfig.app.json +0 -15
- package/tsconfig.json +0 -31
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ad.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ae.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/af.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ag.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ai.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/al.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/am.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ao.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/aq.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ar.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/as.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/at.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/au.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/aw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ax.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/az.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ba.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bb.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bd.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/be.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bi.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bj.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bo.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bq.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/br.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bs.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/by.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/bz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ca.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cd.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ch.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ci.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ck.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/co.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cx.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cy.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/cz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/de.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/dj.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/dk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/dm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/do.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/dz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ec.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ee.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/eg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/eh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/er.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/es.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/et.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/eu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fi.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fj.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/flags.png +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/flags@2x.png +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fo.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fonts.css +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/fr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ga.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gb-eng.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gb-nir.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gb-sct.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gb-wls.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gb.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gd.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ge.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gi.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gp.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gq.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gs.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/gy.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/hk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/hm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/hn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/hr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ht.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/hu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/id.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ie.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/il.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/im.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/in.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/io.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/iq.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ir.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/is.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/it.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/je.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/jm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/jo.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/jp.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ke.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ki.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/km.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kp.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ky.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/kz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/la.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lb.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/li.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ls.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/lv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ly.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ma.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/md.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/me.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ml.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mo.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mp.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mq.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ms.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mx.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/my.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/mz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/na.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ne.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ng.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ni.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/no.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/np.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/nz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/om.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pa.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pe.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ph.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ps.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/pw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/py.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/qa.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/re.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ro.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/rs.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ru.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/rw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sa.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sb.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sd.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/se.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sh.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/si.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sj.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/so.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ss.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/st.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/stc-icons.css +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sx.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sy.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/sz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/td.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/th.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tj.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tl.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/to.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tr.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tv.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tw.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/tz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ua.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ug.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/um.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/us.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/uy.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/uz.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/va.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/vc.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ve.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/vg.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/vi.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/vn.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/vu.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/wf.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ws.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/xk.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/ye.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/yt.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/za.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/zm.svg +0 -0
- /package/{projects/iss/src → src}/components/controls/mobile/flags/zw.svg +0 -0
- /package/{projects/iss → src}/upgrade.scss +0 -0
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import {CdkConnectedOverlay, CdkOverlayOrigin} from "@angular/cdk/overlay";
|
|
2
|
-
import {NgClass, NgOptimizedImage} from "@angular/common";
|
|
3
|
-
import {Component, computed, CUSTOM_ELEMENTS_SCHEMA, effect, EffectRef, inject, input, InputSignal, OnDestroy, Signal, signal, WritableSignal} from "@angular/core";
|
|
4
|
-
import {toSignal} from "@angular/core/rxjs-interop";
|
|
5
|
-
import {AbstractControl, FormControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, ReactiveFormsModule, ValidationErrors, Validator} from "@angular/forms";
|
|
6
|
-
import {MatFormField, MatPrefix} from "@angular/material/form-field";
|
|
7
|
-
import {MatInput, MatInputModule} from "@angular/material/input";
|
|
8
|
-
import {COUNTRIES, DEFAULT_COUNTRY} from "../../../shared/constants/countries.const";
|
|
9
|
-
import {Country} from "../../../shared/interfaces/country.interface";
|
|
10
|
-
import {Mobile} from "../../../shared/interfaces/mobile.interface";
|
|
11
|
-
import {ISO2} from "../../../shared/types/iso2.type";
|
|
12
|
-
import {ControlBase} from "../base/control.base";
|
|
13
|
-
import {PhoneService} from "./phone.service";
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: "iss-ctrl-mobile",
|
|
17
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
18
|
-
imports: [
|
|
19
|
-
ReactiveFormsModule,
|
|
20
|
-
NgClass,
|
|
21
|
-
CdkConnectedOverlay,
|
|
22
|
-
CdkOverlayOrigin,
|
|
23
|
-
MatFormField,
|
|
24
|
-
MatInput,
|
|
25
|
-
MatPrefix,
|
|
26
|
-
NgOptimizedImage,
|
|
27
|
-
MatInputModule,
|
|
28
|
-
],
|
|
29
|
-
providers: [
|
|
30
|
-
{provide: NG_VALUE_ACCESSOR, useExisting: MobileControl, multi: true},
|
|
31
|
-
{provide: NG_VALIDATORS, useExisting: MobileControl, multi: true}
|
|
32
|
-
],
|
|
33
|
-
template: `
|
|
34
|
-
<mat-form-field floatLabel="auto" cdkOverlayOrigin #trigger="cdkOverlayOrigin">
|
|
35
|
-
<mat-label class="fs-16 fc-black">
|
|
36
|
-
<ng-content select="label"></ng-content>
|
|
37
|
-
</mat-label>
|
|
38
|
-
<div class="d-inline-flex align-items-center gap-1 country-flag" matPrefix (click)="toggleCountryCodeMenu()">
|
|
39
|
-
<img
|
|
40
|
-
ngSrc="./flags/{{selectedCountry().code.toLowerCase()}}.svg"
|
|
41
|
-
width="20"
|
|
42
|
-
height="20"
|
|
43
|
-
[alt]="selectedCountry().code.toLowerCase()"
|
|
44
|
-
class="country-flag--image"
|
|
45
|
-
[priority]="true"
|
|
46
|
-
>
|
|
47
|
-
<ds-icon icon="arrow-down" class="fs-12 fc-dark-gray"></ds-icon>
|
|
48
|
-
</div>
|
|
49
|
-
<input
|
|
50
|
-
matInput
|
|
51
|
-
type="tel"
|
|
52
|
-
autocomplete="off"
|
|
53
|
-
(blur)="markAsTouched()"
|
|
54
|
-
(keydown)="onInput($event)"
|
|
55
|
-
(input)="emit()"
|
|
56
|
-
[formControl]="ctrl"
|
|
57
|
-
[placeholder]="selectedCountry().placeholder"
|
|
58
|
-
/>
|
|
59
|
-
</mat-form-field>
|
|
60
|
-
<ng-template
|
|
61
|
-
cdkConnectedOverlay
|
|
62
|
-
[cdkConnectedOverlayHasBackdrop]="true"
|
|
63
|
-
(backdropClick)="closeCountryCodeMenu()"
|
|
64
|
-
[cdkConnectedOverlayGrowAfterOpen]="true"
|
|
65
|
-
[cdkConnectedOverlayOrigin]="trigger"
|
|
66
|
-
[cdkConnectedOverlayOpen]="isOpen()"
|
|
67
|
-
>
|
|
68
|
-
<div class="country-dropdown bc-white box-shadow p-2">
|
|
69
|
-
<div class="search-container">
|
|
70
|
-
<mat-form-field>
|
|
71
|
-
<input matInput id="country-search-box" [formControl]="searchInput" (click)="$event.stopPropagation()" />
|
|
72
|
-
</mat-form-field>
|
|
73
|
-
</div>
|
|
74
|
-
<ul class="country-list">
|
|
75
|
-
@for (country of filteredCountries(); track $index) {
|
|
76
|
-
<li
|
|
77
|
-
#countryEl
|
|
78
|
-
[ngClass]="country.order > 1 ? 'preferredCounty' : ''"
|
|
79
|
-
class="d-flex align-items-center gap-2 cursor-pointer p-2"
|
|
80
|
-
(click)="onSelectCountry(country)"
|
|
81
|
-
>
|
|
82
|
-
@defer (on viewport(countryEl)) {
|
|
83
|
-
<img ngSrc="./flags/{{country.code.toLowerCase()}}.svg" width="20" height="20" alt="" class="country-flag--image">
|
|
84
|
-
}
|
|
85
|
-
<span class="fs-12 fc-dark-gray">(+{{ country.dailCode }})</span>
|
|
86
|
-
<span class="fs-12 fc-black">{{ country.name }}</span>
|
|
87
|
-
</li>
|
|
88
|
-
}
|
|
89
|
-
</ul>
|
|
90
|
-
</div>
|
|
91
|
-
</ng-template>
|
|
92
|
-
`,
|
|
93
|
-
styles: `
|
|
94
|
-
.country-flag {
|
|
95
|
-
border-inline-end: var(--input-border);
|
|
96
|
-
padding-inline-end: .5rem;
|
|
97
|
-
margin-inline-end: .5rem;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
}
|
|
100
|
-
`
|
|
101
|
-
})
|
|
102
|
-
export class MobileControl extends ControlBase implements OnDestroy, Validator {
|
|
103
|
-
phoneService: PhoneService = inject(PhoneService);
|
|
104
|
-
isOpen: WritableSignal<boolean> = signal(false);
|
|
105
|
-
selectedCountry: WritableSignal<Country> = signal<Country>(DEFAULT_COUNTRY);
|
|
106
|
-
preferredCountries: InputSignal<ISO2[]> = input<ISO2[]>(["SA"]);
|
|
107
|
-
searchInput: FormControl = new FormControl("");
|
|
108
|
-
filteredCountries: Signal<Country[]> = computed(() => this.#searchInCountries());
|
|
109
|
-
#ctrlChanges: Signal<string> = toSignal(this.ctrl.valueChanges);
|
|
110
|
-
#searchQuery: Signal<string> = toSignal(this.searchInput.valueChanges);
|
|
111
|
-
#disabledEffect: EffectRef = effect(() => {
|
|
112
|
-
if (this.disabled()) {
|
|
113
|
-
this.ctrl.disable();
|
|
114
|
-
} else {
|
|
115
|
-
this.ctrl.enable();
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
override writeValue(value: string) {
|
|
120
|
-
if (value) {
|
|
121
|
-
const mobileObject = this.phoneService.getPhoneNumberObject(value);
|
|
122
|
-
if (mobileObject) {
|
|
123
|
-
this.selectedCountry.set(mobileObject);
|
|
124
|
-
this.emitOnChangeEvent(this.selectedCountry());
|
|
125
|
-
}
|
|
126
|
-
this.ctrl.setValue(mobileObject?.nationalNumber);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
emit() {
|
|
131
|
-
if (this.#ctrlChanges()) {
|
|
132
|
-
const mobileInput = `+${this.selectedCountry().dailCode}${this.#ctrlChanges()}`;
|
|
133
|
-
const numberObject: Mobile | undefined = this.phoneService.getPhoneNumberObject(mobileInput);
|
|
134
|
-
if (numberObject) {
|
|
135
|
-
this.selectedCountry.set(numberObject);
|
|
136
|
-
this.propagateValue(`+${numberObject.dailCode}${numberObject.nationalNumber}`);
|
|
137
|
-
this.emitOnChangeEvent(this.selectedCountry());
|
|
138
|
-
} else {
|
|
139
|
-
this.propagateValue(mobileInput);
|
|
140
|
-
this.emitOnChangeEvent(this.selectedCountry());
|
|
141
|
-
}
|
|
142
|
-
} else {
|
|
143
|
-
this.propagateValue(null);
|
|
144
|
-
this.emitOnChangeEvent(null);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
override validate(control: AbstractControl): ValidationErrors | null {
|
|
149
|
-
if (!control.getRawValue()) {
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
const error: any = {invalidPhoneNumber: {accepted: this.selectedCountry().placeholder, input: control.getRawValue()}};
|
|
154
|
-
const isValid: boolean = this.phoneService.validate(control.getRawValue());
|
|
155
|
-
if (isValid) {
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return error;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
ngOnDestroy() {
|
|
163
|
-
this.#disabledEffect.destroy();
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
protected onInput(event: KeyboardEvent) {
|
|
167
|
-
const allowedChars = /[0-9+\-()]/;
|
|
168
|
-
const allowedCtrlChars = /[axcv]/; // Allows copy-pasting
|
|
169
|
-
const allowedOtherKeys = [
|
|
170
|
-
"ArrowLeft",
|
|
171
|
-
"ArrowUp",
|
|
172
|
-
"ArrowRight",
|
|
173
|
-
"ArrowDown",
|
|
174
|
-
"Home",
|
|
175
|
-
"End",
|
|
176
|
-
"Insert",
|
|
177
|
-
"Delete",
|
|
178
|
-
"Backspace",
|
|
179
|
-
];
|
|
180
|
-
if (!allowedChars.test(event.key) && !(event.ctrlKey && allowedCtrlChars.test(event.key)) && !allowedOtherKeys.includes(event.key)) {
|
|
181
|
-
event.preventDefault();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
protected onSelectCountry(country: Country) {
|
|
186
|
-
this.selectedCountry.set(country);
|
|
187
|
-
this.searchInput.setValue("");
|
|
188
|
-
this.closeCountryCodeMenu();
|
|
189
|
-
this.propagateValue(`+${this.selectedCountry().dailCode}${this.#ctrlChanges()}`);
|
|
190
|
-
this.emitOnChangeEvent(`+${this.selectedCountry().dailCode}${this.#ctrlChanges()}`);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
protected closeCountryCodeMenu() {
|
|
194
|
-
this.isOpen.set(false);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
protected toggleCountryCodeMenu() {
|
|
198
|
-
this.isOpen.update((isOpen: boolean) => !isOpen);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
#sortCountries() {
|
|
202
|
-
return COUNTRIES.map((country: Country) => {
|
|
203
|
-
if (this.preferredCountries().includes(country.code)) {
|
|
204
|
-
country.order = country.priority + (-1 * (this.preferredCountries().indexOf(country.code) - this.preferredCountries().length)) * 100;
|
|
205
|
-
}
|
|
206
|
-
return country;
|
|
207
|
-
}).sort((a, b) => b.order - a.order);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
#searchInCountries(): Country[] {
|
|
211
|
-
if (this.#searchQuery()) {
|
|
212
|
-
return this.#sortCountries().filter((country: Country) => {
|
|
213
|
-
return (
|
|
214
|
-
country.code.toLowerCase().includes(this.#searchQuery())
|
|
215
|
-
|| country.name.toLowerCase().includes(this.#searchQuery())
|
|
216
|
-
|| country.dailCode.toLowerCase().includes(this.#searchQuery())
|
|
217
|
-
);
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
return this.#sortCountries();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {Component} from "@angular/core";
|
|
2
|
-
import {ViewerBase} from "../base/viewer.base";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "iss-vwr-mobile",
|
|
6
|
-
standalone: true,
|
|
7
|
-
template: `
|
|
8
|
-
<p>{{ field().value }}</p>
|
|
9
|
-
`,
|
|
10
|
-
})
|
|
11
|
-
export class MobileViewer extends ViewerBase {}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 {MobileControl} from "./mobile.control";
|
|
7
|
-
import {MobileViewer} from "./mobile.viewer";
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: "iss-wrp-mobile",
|
|
11
|
-
viewProviders: [VIEW_PROVIDER],
|
|
12
|
-
imports: [
|
|
13
|
-
ReactiveFormsModule,
|
|
14
|
-
MatLabel,
|
|
15
|
-
MobileControl,
|
|
16
|
-
MobileViewer
|
|
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-mobile [formControlName]="field.name" />
|
|
26
|
-
} @else {
|
|
27
|
-
<iss-vwr-mobile [field]="field" />
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`
|
|
31
|
-
})
|
|
32
|
-
export class MobileWrapper extends WrapperBase {}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {Injectable} from "@angular/core";
|
|
2
|
-
import {getExampleNumber, parsePhoneNumber, PhoneNumber} from "libphonenumber-js/mobile";
|
|
3
|
-
import examples from "libphonenumber-js/mobile/examples";
|
|
4
|
-
import {COUNTRIES} from "../../../shared/constants/countries.const";
|
|
5
|
-
import {Country} from "../../../shared/interfaces/country.interface";
|
|
6
|
-
import {Mobile} from "../../../shared/interfaces/mobile.interface";
|
|
7
|
-
import {ISO2} from "../../../shared/types/iso2.type";
|
|
8
|
-
|
|
9
|
-
@Injectable({providedIn: "root"})
|
|
10
|
-
export class PhoneService {
|
|
11
|
-
|
|
12
|
-
parse(phoneNumber: string, countryCode?: ISO2): PhoneNumber | undefined {
|
|
13
|
-
try {
|
|
14
|
-
return parsePhoneNumber(phoneNumber, countryCode);
|
|
15
|
-
} catch (e) {
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
getPhoneNumberObject(number: string): Mobile | undefined {
|
|
21
|
-
const parsedNumber: PhoneNumber | undefined = this.parse(number);
|
|
22
|
-
if (parsedNumber) {
|
|
23
|
-
const dailCode: string = parsedNumber.countryCallingCode;
|
|
24
|
-
const code: ISO2 = this.getCountryIsoCode(dailCode, parsedNumber) as ISO2;
|
|
25
|
-
const nationalNumber: string = parsedNumber.nationalNumber;
|
|
26
|
-
const internationalNumber: string = parsedNumber.format("E.164");
|
|
27
|
-
const placeholder = this.getPlaceholder(code);
|
|
28
|
-
const name: string = this.getCountryByDailCode(dailCode, parsedNumber)?.name ?? "";
|
|
29
|
-
return {dailCode, code, nationalNumber, internationalNumber, placeholder, name, priority: 0, order: 0};
|
|
30
|
-
}
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
format(phoneNumber: string, countryCode: ISO2, numberFormat: "E.164" | "INTERNATIONAL" | "NATIONAL"): string {
|
|
35
|
-
const number = this.parse(phoneNumber, countryCode);
|
|
36
|
-
|
|
37
|
-
if (number) {
|
|
38
|
-
return number.format(numberFormat);
|
|
39
|
-
}
|
|
40
|
-
return "";
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
validate(number: string): boolean {
|
|
44
|
-
try {
|
|
45
|
-
const parsedNumber = parsePhoneNumber(number);
|
|
46
|
-
// Check if it's a mobile number type
|
|
47
|
-
if (parsedNumber.getType() !== "MOBILE") {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return parsedNumber.isValid();
|
|
51
|
-
} catch (e) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
getPlaceholder(countryCode: ISO2): string {
|
|
57
|
-
try {
|
|
58
|
-
const exampleNumber = getExampleNumber(countryCode, examples);
|
|
59
|
-
return exampleNumber ? (countryCode === "SA" ? "050 123 4567" : exampleNumber.formatNational()) : "";
|
|
60
|
-
} catch (e) {
|
|
61
|
-
return "";
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
getCountryIsoCode(dailCode: string, number: PhoneNumber): string {
|
|
66
|
-
return this.getCountryByDailCode(dailCode, number)?.code ?? "";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
getCountryByDailCode(dailCode: string | undefined, number: PhoneNumber): Country | undefined {
|
|
70
|
-
// Will use this to match area code from the first numbers
|
|
71
|
-
const rawNumber = number.nationalNumber;
|
|
72
|
-
// List of all countries with dailCode (can be more than one. e.x. US, CA, DO, PR all have +1 dailCode)
|
|
73
|
-
const countries: Country[] = COUNTRIES.filter((c: Country) => c.dailCode === dailCode?.toString());
|
|
74
|
-
// Main country is the country, which has no areaCodes specified in country-code.ts file.
|
|
75
|
-
const mainCountry: Country | undefined = countries.find((c: Country) => c.areaCodes === undefined);
|
|
76
|
-
// Secondary countries are all countries, which have areaCodes specified in country-code.ts file.
|
|
77
|
-
const secondaryCountries: Country[] = countries.filter((c: Country) => c.areaCodes !== undefined);
|
|
78
|
-
let matchedCountry: Country | undefined = mainCountry ? mainCountry : undefined;
|
|
79
|
-
|
|
80
|
-
/*
|
|
81
|
-
Iterate over each secondary country and check if nationalNumber starts with any of areaCodes available.
|
|
82
|
-
If no matches found, fallback to the main country.
|
|
83
|
-
*/
|
|
84
|
-
secondaryCountries.forEach((country) => {
|
|
85
|
-
if (country && country.areaCodes) {
|
|
86
|
-
country.areaCodes.forEach((areaCode) => {
|
|
87
|
-
if (rawNumber.startsWith(areaCode)) {
|
|
88
|
-
matchedCountry = country;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
return matchedCountry;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: "iss-wrp-note",
|
|
9
|
-
viewProviders: [VIEW_PROVIDER],
|
|
10
|
-
imports: [
|
|
11
|
-
ReactiveFormsModule,
|
|
12
|
-
MatLabel
|
|
13
|
-
],
|
|
14
|
-
template: `
|
|
15
|
-
@if (field.isVisible() && field.registered()) {
|
|
16
|
-
@if (!(field.config.hideLabel)) {
|
|
17
|
-
<mat-label>{{ field.label() }}</mat-label>
|
|
18
|
-
}
|
|
19
|
-
<p>
|
|
20
|
-
{{ ctrlValueChange() }}
|
|
21
|
-
</p>
|
|
22
|
-
}
|
|
23
|
-
`
|
|
24
|
-
})
|
|
25
|
-
export class NoteWrapper extends WrapperBase {}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {Pipe, PipeTransform} from "@angular/core";
|
|
2
|
-
import {PLATE_LETTERS} from "../../../shared/constants/plate-letters.const";
|
|
3
|
-
import {PlateLetter} from "../../../shared/interfaces/plate-letter.interface";
|
|
4
|
-
|
|
5
|
-
@Pipe({name: "plateLetter"})
|
|
6
|
-
export class PlateLetterPipe implements PipeTransform {
|
|
7
|
-
transform(value: string): unknown {
|
|
8
|
-
const letter: PlateLetter | undefined = PLATE_LETTERS.find((l: PlateLetter) => l.value === value);
|
|
9
|
-
if (letter) {
|
|
10
|
-
return letter.label.ar;
|
|
11
|
-
}
|
|
12
|
-
return value;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 {PlateControl} from "./plate.control";
|
|
7
|
-
import {PlateViewer} from "./plate.viewer";
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: "iss-wrp-plate-number",
|
|
11
|
-
viewProviders: [VIEW_PROVIDER],
|
|
12
|
-
imports: [
|
|
13
|
-
ReactiveFormsModule,
|
|
14
|
-
PlateControl,
|
|
15
|
-
MatLabel,
|
|
16
|
-
PlateViewer
|
|
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-plate-number [formControlName]="field.name" (onChange)="updateField($event)" />
|
|
26
|
-
} @else {
|
|
27
|
-
<iss-vwr-plate [field]="field" />
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`
|
|
31
|
-
})
|
|
32
|
-
export class PlateNumberWrapper extends WrapperBase {
|
|
33
|
-
updateField($event: any) {
|
|
34
|
-
this.field.ctrlJsonValue.set($event);
|
|
35
|
-
}
|
|
36
|
-
}
|