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
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, computed, CUSTOM_ELEMENTS_SCHEMA, Component, inject, signal, effect } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
6
|
+
import { catchError, EMPTY } from 'rxjs';
|
|
7
|
+
import { W as WrapperBase, F as FileHandlerService, V as VIEW_PROVIDER, e as FilePickerControl, c as ValidationMessageComponent } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
8
|
+
import { MatProgressBar } from '@angular/material/progress-bar';
|
|
9
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
10
|
+
import { V as ViewerBase } from './iss-ctrl-viewer.base-BCFfZsDG.mjs';
|
|
11
|
+
|
|
12
|
+
class AttachmentViewer extends ViewerBase {
|
|
13
|
+
uploading = input(false, ...(ngDevMode ? [{ debugName: "uploading" }] : []));
|
|
14
|
+
uploadingError = input("", ...(ngDevMode ? [{ debugName: "uploadingError" }] : []));
|
|
15
|
+
deleteOut = output();
|
|
16
|
+
attachments = computed(() => {
|
|
17
|
+
return this.field().ctrlJsonValue().map((attachment) => {
|
|
18
|
+
return {
|
|
19
|
+
name: attachment.name,
|
|
20
|
+
size: attachment.size,
|
|
21
|
+
type: attachment.type,
|
|
22
|
+
errorMsg: attachment.errorMsg,
|
|
23
|
+
file: attachment.file
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
}, ...(ngDevMode ? [{ debugName: "attachments" }] : []));
|
|
27
|
+
onDownload($event) {
|
|
28
|
+
const fileUrl = this.#createObjectUrl($event.detail.value);
|
|
29
|
+
const anchorElement = this.#createAnchorElement(fileUrl, $event.detail.value.name);
|
|
30
|
+
this.#useAnchorElementThenDispose(anchorElement, fileUrl);
|
|
31
|
+
}
|
|
32
|
+
onDelete(index) {
|
|
33
|
+
const fileHtmlElement = document.getElementById("file");
|
|
34
|
+
if (fileHtmlElement) {
|
|
35
|
+
fileHtmlElement.value = "";
|
|
36
|
+
}
|
|
37
|
+
const updatedFiles = this.field().ctrlJsonValue().filter((_, i) => i !== index);
|
|
38
|
+
this.field().ctrlJsonValue = computed(() => updatedFiles, ...(ngDevMode ? [{ debugName: "ctrlJsonValue" }] : []));
|
|
39
|
+
this.deleteOut.emit(this.field().ctrlJsonValue());
|
|
40
|
+
}
|
|
41
|
+
#createObjectUrl(file) {
|
|
42
|
+
const blob = new Blob([file], { type: "application/octet-stream" });
|
|
43
|
+
return window.URL.createObjectURL(blob);
|
|
44
|
+
}
|
|
45
|
+
#createAnchorElement(fileUrl, fileName) {
|
|
46
|
+
const a = document.createElement("a");
|
|
47
|
+
a.setAttribute("style", "display: none");
|
|
48
|
+
a.href = fileUrl;
|
|
49
|
+
a.download = fileName;
|
|
50
|
+
return a;
|
|
51
|
+
}
|
|
52
|
+
#useAnchorElementThenDispose(a, fileUrl) {
|
|
53
|
+
a.click();
|
|
54
|
+
window.URL.revokeObjectURL(fileUrl);
|
|
55
|
+
a.remove();
|
|
56
|
+
}
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AttachmentViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: AttachmentViewer, isStandalone: true, selector: "iss-vwr-attachment", inputs: { uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, uploadingError: { classPropertyName: "uploadingError", publicName: "uploadingError", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { deleteOut: "deleteOut" }, usesInheritance: true, ngImport: i0, template: `
|
|
59
|
+
@if (attachments()?.length) {
|
|
60
|
+
<section class="files-list">
|
|
61
|
+
@for (file of attachments(); track $index) {
|
|
62
|
+
<div class="file-item-container">
|
|
63
|
+
@if (file) {
|
|
64
|
+
<ds-attachments
|
|
65
|
+
[matTooltip]="file.name"
|
|
66
|
+
[file]="file.file ?? file"
|
|
67
|
+
[showDownload]="field().config.showDownloadButton"
|
|
68
|
+
[attr.readonly]="!field().config.showDeleteButton"
|
|
69
|
+
(downloadEvent)="onDownload($event)"
|
|
70
|
+
(deleteEvent)="onDelete($index)"
|
|
71
|
+
>
|
|
72
|
+
</ds-attachments>
|
|
73
|
+
@if (uploading()) {
|
|
74
|
+
<mat-progress-bar mode="indeterminate" />
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
</div>
|
|
78
|
+
}
|
|
79
|
+
</section>
|
|
80
|
+
}
|
|
81
|
+
`, isInline: true, styles: [".insideTableStyle{width:272px}.files-list{--file-item-width: 270px;display:grid;grid-template-columns:repeat(auto-fill,var(--file-item-width));grid-gap:.5rem}@media(max-width:768px){.files-list{grid-template-columns:repeat(auto-fill,minmax(var(--file-item-width),1fr))}}.mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: var(--purple);--mat-progress-bar-track-color: rgba(var(--rgb-purple), .25)}.file-item-container .file-item{--file-bg: var(--off-white);--file-radius: var(--box-radius);--icon-color: var(--purple);--icon-size: 2rem;--file-border: transparent;display:flex;align-items:center;background-color:var(--file-bg);border:1px solid var(--file-border);border-radius:var(--file-radius);padding:0 1rem;height:70px;gap:.75rem}.file-item-container .file-item.error{--file-bg: rgba(var(--rgb-red), 10%);--file-border: var(--red);--icon-color: var(--red)}.file-item-container .file-item .icon{color:var(--icon-color);font-size:var(--icon-size)}.file-item-container .file-item .file-action{display:flex;align-items:center;gap:.5rem}ds-attachments::part(base){--file-width: 250px}\n"], dependencies: [{ kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
82
|
+
}
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AttachmentViewer, decorators: [{
|
|
84
|
+
type: Component,
|
|
85
|
+
args: [{ selector: "iss-vwr-attachment", imports: [
|
|
86
|
+
MatTooltip,
|
|
87
|
+
MatProgressBar,
|
|
88
|
+
], template: `
|
|
89
|
+
@if (attachments()?.length) {
|
|
90
|
+
<section class="files-list">
|
|
91
|
+
@for (file of attachments(); track $index) {
|
|
92
|
+
<div class="file-item-container">
|
|
93
|
+
@if (file) {
|
|
94
|
+
<ds-attachments
|
|
95
|
+
[matTooltip]="file.name"
|
|
96
|
+
[file]="file.file ?? file"
|
|
97
|
+
[showDownload]="field().config.showDownloadButton"
|
|
98
|
+
[attr.readonly]="!field().config.showDeleteButton"
|
|
99
|
+
(downloadEvent)="onDownload($event)"
|
|
100
|
+
(deleteEvent)="onDelete($index)"
|
|
101
|
+
>
|
|
102
|
+
</ds-attachments>
|
|
103
|
+
@if (uploading()) {
|
|
104
|
+
<mat-progress-bar mode="indeterminate" />
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</div>
|
|
108
|
+
}
|
|
109
|
+
</section>
|
|
110
|
+
}
|
|
111
|
+
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], styles: [".insideTableStyle{width:272px}.files-list{--file-item-width: 270px;display:grid;grid-template-columns:repeat(auto-fill,var(--file-item-width));grid-gap:.5rem}@media(max-width:768px){.files-list{grid-template-columns:repeat(auto-fill,minmax(var(--file-item-width),1fr))}}.mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: var(--purple);--mat-progress-bar-track-color: rgba(var(--rgb-purple), .25)}.file-item-container .file-item{--file-bg: var(--off-white);--file-radius: var(--box-radius);--icon-color: var(--purple);--icon-size: 2rem;--file-border: transparent;display:flex;align-items:center;background-color:var(--file-bg);border:1px solid var(--file-border);border-radius:var(--file-radius);padding:0 1rem;height:70px;gap:.75rem}.file-item-container .file-item.error{--file-bg: rgba(var(--rgb-red), 10%);--file-border: var(--red);--icon-color: var(--red)}.file-item-container .file-item .icon{color:var(--icon-color);font-size:var(--icon-size)}.file-item-container .file-item .file-action{display:flex;align-items:center;gap:.5rem}ds-attachments::part(base){--file-width: 250px}\n"] }]
|
|
112
|
+
}], propDecorators: { uploading: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploading", required: false }] }], uploadingError: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadingError", required: false }] }], deleteOut: [{ type: i0.Output, args: ["deleteOut"] }] } });
|
|
113
|
+
|
|
114
|
+
class FilePickerWrapper extends WrapperBase {
|
|
115
|
+
picker = new FormControl();
|
|
116
|
+
fileHandlerService = inject(FileHandlerService);
|
|
117
|
+
uploading = signal(false, ...(ngDevMode ? [{ debugName: "uploading" }] : []));
|
|
118
|
+
viewField = computed(() => this.#generateViewField(this.field.ctrlJsonValue()), ...(ngDevMode ? [{ debugName: "viewField" }] : []));
|
|
119
|
+
attachments = signal([], ...(ngDevMode ? [{ debugName: "attachments" }] : []));
|
|
120
|
+
uploadingError = signal(undefined, ...(ngDevMode ? [{ debugName: "uploadingError" }] : []));
|
|
121
|
+
#valueEffect = effect(() => {
|
|
122
|
+
if (this.ctrlValueChange() && this.field.value) {
|
|
123
|
+
this.fileHandlerService.fetchFiles(this.ctrlValueChange()).subscribe((res) => {
|
|
124
|
+
const filesOnly = res.map((attachment) => attachment.file);
|
|
125
|
+
const formDataValue = this.fileHandlerService.formDataFactory(filesOnly, !!this.field.config.multiple);
|
|
126
|
+
this.picker.setValue(formDataValue);
|
|
127
|
+
this.field.ctrlJsonValue.set(res);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}, ...(ngDevMode ? [{ debugName: "#valueEffect" }] : []));
|
|
131
|
+
captureFile(formData) {
|
|
132
|
+
this.uploading.set(true);
|
|
133
|
+
const notUploadedFiles = this.#getNotUploadedFiles(formData);
|
|
134
|
+
if (this.fileHandlerService.formDataHasValue(notUploadedFiles)) {
|
|
135
|
+
this.fileHandlerService.upload(notUploadedFiles).pipe(catchError((err) => {
|
|
136
|
+
this.uploading.set(false);
|
|
137
|
+
this.uploadingError.set(err?.message ?? "Uploading Failed!");
|
|
138
|
+
console.error(err);
|
|
139
|
+
return EMPTY;
|
|
140
|
+
})).subscribe((res) => {
|
|
141
|
+
this.attachments.set(res);
|
|
142
|
+
const stringifiedValue = this.stringifyIssAttachment(this.attachments());
|
|
143
|
+
this.ctrl.setValue(stringifiedValue);
|
|
144
|
+
this.uploading.set(false);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
this.uploading.set(false);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
stringifyIssAttachment(attachments) {
|
|
152
|
+
return attachments.map((attachment) => attachment.id).join(",");
|
|
153
|
+
}
|
|
154
|
+
ngOnDestroy() {
|
|
155
|
+
super.ngOnDestroy();
|
|
156
|
+
this.#valueEffect.destroy();
|
|
157
|
+
}
|
|
158
|
+
#generateViewField(value) {
|
|
159
|
+
return {
|
|
160
|
+
config: {
|
|
161
|
+
showDownloadButton: true,
|
|
162
|
+
showDeleteButton: false
|
|
163
|
+
},
|
|
164
|
+
ctrlJsonValue: signal(value ?? [])
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
#getNotUploadedFiles(formData) {
|
|
168
|
+
const fd = new FormData();
|
|
169
|
+
if (formData) {
|
|
170
|
+
for (const pair of formData.entries()) {
|
|
171
|
+
const file = pair[1];
|
|
172
|
+
if (!file.id) {
|
|
173
|
+
fd.append(pair[0], pair[1]);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return fd;
|
|
178
|
+
}
|
|
179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FilePickerWrapper, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: FilePickerWrapper, isStandalone: true, selector: "iss-wrp-file-picker", usesInheritance: true, ngImport: i0, template: `
|
|
181
|
+
@if (field.isVisible() && field.registered()) {
|
|
182
|
+
@if (!(field.config.hideLabel)) {
|
|
183
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
184
|
+
}
|
|
185
|
+
@if (field.mode() === "edit") {
|
|
186
|
+
<input type="hidden" [formControlName]="field.name">
|
|
187
|
+
<iss-ctrl-file-picker
|
|
188
|
+
[formControl]="picker"
|
|
189
|
+
[accept]="field.validation.fileType"
|
|
190
|
+
[showDeleteButton]="field.config.showDeleteButton"
|
|
191
|
+
[showDownloadButton]="field.config.showDownloadButton"
|
|
192
|
+
(onChange)="captureFile($event)"
|
|
193
|
+
[multiple]="field.config.multiple"
|
|
194
|
+
[uploading]="uploading()"
|
|
195
|
+
[uploadedFiles]="attachments()"
|
|
196
|
+
[uploadingError]="uploadingError()"
|
|
197
|
+
/>
|
|
198
|
+
<iss-validation-message-viewer [errors]="ctrl.errors" [showMessage]="ctrl.touched" />
|
|
199
|
+
} @else {
|
|
200
|
+
<iss-vwr-attachment [uploading]="uploading()" [field]="viewField()" />
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "component", type: FilePickerControl, selector: "iss-ctrl-file-picker", inputs: ["accept", "showDownloadButton", "showDeleteButton", "uploading", "uploadedFiles", "uploadingError"] }, { kind: "component", type: ValidationMessageComponent, selector: "iss-validation-message-viewer", inputs: ["errors", "showMessage"] }, { kind: "component", type: AttachmentViewer, selector: "iss-vwr-attachment", inputs: ["uploading", "uploadingError"], outputs: ["deleteOut"] }], viewProviders: [VIEW_PROVIDER] });
|
|
204
|
+
}
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FilePickerWrapper, decorators: [{
|
|
206
|
+
type: Component,
|
|
207
|
+
args: [{
|
|
208
|
+
selector: "iss-wrp-file-picker",
|
|
209
|
+
viewProviders: [VIEW_PROVIDER],
|
|
210
|
+
imports: [
|
|
211
|
+
ReactiveFormsModule,
|
|
212
|
+
MatLabel,
|
|
213
|
+
FilePickerControl,
|
|
214
|
+
ValidationMessageComponent,
|
|
215
|
+
AttachmentViewer
|
|
216
|
+
],
|
|
217
|
+
template: `
|
|
218
|
+
@if (field.isVisible() && field.registered()) {
|
|
219
|
+
@if (!(field.config.hideLabel)) {
|
|
220
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
221
|
+
}
|
|
222
|
+
@if (field.mode() === "edit") {
|
|
223
|
+
<input type="hidden" [formControlName]="field.name">
|
|
224
|
+
<iss-ctrl-file-picker
|
|
225
|
+
[formControl]="picker"
|
|
226
|
+
[accept]="field.validation.fileType"
|
|
227
|
+
[showDeleteButton]="field.config.showDeleteButton"
|
|
228
|
+
[showDownloadButton]="field.config.showDownloadButton"
|
|
229
|
+
(onChange)="captureFile($event)"
|
|
230
|
+
[multiple]="field.config.multiple"
|
|
231
|
+
[uploading]="uploading()"
|
|
232
|
+
[uploadedFiles]="attachments()"
|
|
233
|
+
[uploadingError]="uploadingError()"
|
|
234
|
+
/>
|
|
235
|
+
<iss-validation-message-viewer [errors]="ctrl.errors" [showMessage]="ctrl.touched" />
|
|
236
|
+
} @else {
|
|
237
|
+
<iss-vwr-attachment [uploading]="uploading()" [field]="viewField()" />
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
`
|
|
241
|
+
}]
|
|
242
|
+
}] });
|
|
243
|
+
|
|
244
|
+
export { FilePickerWrapper };
|
|
245
|
+
//# sourceMappingURL=iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-file-picker.wrapper-D_4dLsqz.mjs","sources":["../../../projects/iss/src/components/controls/file-picker/attachment.viewer.ts","../../../projects/iss/src/components/controls/file-picker/file-picker.wrapper.ts"],"sourcesContent":["import {Component, computed, CUSTOM_ELEMENTS_SCHEMA, input, InputSignal, output, OutputEmitterRef} from \"@angular/core\";\r\nimport {MatProgressBar} from \"@angular/material/progress-bar\";\r\nimport {MatTooltip} from \"@angular/material/tooltip\";\r\nimport {IssFile} from \"../../../shared/interfaces/file.interface\";\r\nimport {ViewerBase} from \"../base/viewer.base\";\r\n\r\n@Component({\r\n selector: \"iss-vwr-attachment\",\r\n imports: [\r\n MatTooltip,\r\n MatProgressBar,\r\n ],\r\n template: `\r\n @if (attachments()?.length) {\r\n <section class=\"files-list\">\r\n @for (file of attachments(); track $index) {\r\n <div class=\"file-item-container\">\r\n @if (file) {\r\n <ds-attachments\r\n [matTooltip]=\"file.name\"\r\n [file]=\"file.file ?? file\"\r\n [showDownload]=\"field().config.showDownloadButton\"\r\n [attr.readonly]=\"!field().config.showDeleteButton\"\r\n (downloadEvent)=\"onDownload($event)\"\r\n (deleteEvent)=\"onDelete($index)\"\r\n >\r\n </ds-attachments>\r\n @if (uploading()) {\r\n <mat-progress-bar mode=\"indeterminate\" />\r\n }\r\n }\r\n </div>\r\n }\r\n </section>\r\n }\r\n `,\r\n styles: `\r\n .insideTableStyle {\r\n width: 272px;\r\n }\r\n\r\n .files-list {\r\n --file-item-width: 270px;\r\n display: grid;\r\n grid-template-columns: repeat(auto-fill, var(--file-item-width));\r\n grid-gap: 0.5rem;\r\n @media (max-width: 768px) {\r\n grid-template-columns: repeat(auto-fill, minmax(var(--file-item-width), 1fr));\r\n }\r\n\r\n\r\n }\r\n\r\n .mat-mdc-progress-bar {\r\n --mat-progress-bar-active-indicator-color: var(--purple);\r\n --mat-progress-bar-track-color: rgba(var(--rgb-purple), .25);\r\n }\r\n\r\n\r\n .file-item-container {\r\n .file-item {\r\n --file-bg: var(--off-white);\r\n --file-radius: var(--box-radius);\r\n --icon-color: var(--purple);\r\n --icon-size: 2rem;\r\n --file-border: transparent;\r\n\r\n display: flex;\r\n align-items: center;\r\n background-color: var(--file-bg);\r\n border: 1px solid var(--file-border);\r\n border-radius: var(--file-radius);\r\n padding: 0 1rem;\r\n height: 70px;\r\n gap: 0.75rem;\r\n\r\n &.error {\r\n --file-bg: rgba(var(--rgb-red), 10%);\r\n --file-border: var(--red);\r\n --icon-color: var(--red);\r\n }\r\n\r\n .icon {\r\n color: var(--icon-color);\r\n font-size: var(--icon-size);\r\n }\r\n\r\n .file-action {\r\n display: flex;\r\n align-items: center;\r\n gap: 0.5rem;\r\n }\r\n }\r\n }\r\n\r\n ds-attachments::part(base) {\r\n --file-width: 250px;\r\n }\r\n\r\n ::ng-deep {\r\n .file-item .name-size {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n flex-grow: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n min-width: 120px;\r\n }\r\n }\r\n `,\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class AttachmentViewer extends ViewerBase {\r\n uploading: InputSignal<boolean> = input(false);\r\n uploadingError: InputSignal<string> = input(\"\");\r\n deleteOut: OutputEmitterRef<File[]> = output();\r\n attachments = computed(() => {\r\n return this.field().ctrlJsonValue().map((attachment: IssFile): IssFile => {\r\n return {\r\n name: attachment.name,\r\n size: attachment.size,\r\n type: attachment.type,\r\n errorMsg: attachment.errorMsg,\r\n file: attachment.file\r\n };\r\n });\r\n });\r\n\r\n protected onDownload($event: any) {\r\n const fileUrl: string = this.#createObjectUrl($event.detail.value);\r\n const anchorElement: HTMLAnchorElement = this.#createAnchorElement(fileUrl, $event.detail.value.name);\r\n this.#useAnchorElementThenDispose(anchorElement, fileUrl);\r\n }\r\n\r\n protected onDelete(index: number) {\r\n const fileHtmlElement: HTMLInputElement | null = document.getElementById(\"file\") as HTMLInputElement;\r\n if (fileHtmlElement) {\r\n fileHtmlElement.value = \"\";\r\n }\r\n const updatedFiles = this.field().ctrlJsonValue().filter((_: any, i: number): boolean => i !== index);\r\n this.field().ctrlJsonValue = computed(() => updatedFiles);\r\n this.deleteOut.emit(this.field().ctrlJsonValue());\r\n }\r\n\r\n #createObjectUrl(file: File): string {\r\n const blob: Blob = new Blob([file], {type: \"application/octet-stream\"});\r\n return window.URL.createObjectURL(blob);\r\n }\r\n\r\n #createAnchorElement(fileUrl: string, fileName: string): HTMLAnchorElement {\r\n const a: HTMLAnchorElement = document.createElement(\"a\");\r\n a.setAttribute(\"style\", \"display: none\");\r\n a.href = fileUrl;\r\n a.download = fileName;\r\n return a;\r\n }\r\n\r\n #useAnchorElementThenDispose(a: HTMLAnchorElement, fileUrl: string) {\r\n a.click();\r\n window.URL.revokeObjectURL(fileUrl);\r\n a.remove();\r\n }\r\n}\r\n","import {Component, computed, effect, inject, OnDestroy, Signal, signal, WritableSignal,} from \"@angular/core\";\r\nimport {FormControl, ReactiveFormsModule} from \"@angular/forms\";\r\nimport {MatLabel} from \"@angular/material/form-field\";\r\nimport {catchError, EMPTY} from \"rxjs\";\r\nimport {VIEW_PROVIDER} from \"../../../shared/constants/provider.const\";\r\nimport {IssAttachment} from \"../../../shared/interfaces/attachment.interface\";\r\nimport {IssFile} from \"../../../shared/interfaces/file.interface\";\r\nimport {ValidationMessageComponent} from \"../../shared/validation-message.component\";\r\nimport {WrapperBase} from \"../base/wrapper.base\";\r\nimport {AttachmentViewer} from \"./attachment.viewer\";\r\nimport {FileHandlerService} from \"./file-handler.service\";\r\nimport {FilePickerControl} from \"./file-picker.control\";\r\n\r\n@Component({\r\n selector: \"iss-wrp-file-picker\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel,\r\n FilePickerControl,\r\n ValidationMessageComponent,\r\n AttachmentViewer\r\n ],\r\n template: `\r\n @if (field.isVisible() && field.registered()) {\r\n @if (!(field.config.hideLabel)) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n @if (field.mode() === \"edit\") {\r\n <input type=\"hidden\" [formControlName]=\"field.name\">\r\n <iss-ctrl-file-picker\r\n [formControl]=\"picker\"\r\n [accept]=\"field.validation.fileType\"\r\n [showDeleteButton]=\"field.config.showDeleteButton\"\r\n [showDownloadButton]=\"field.config.showDownloadButton\"\r\n (onChange)=\"captureFile($event)\"\r\n [multiple]=\"field.config.multiple\"\r\n [uploading]=\"uploading()\"\r\n [uploadedFiles]=\"attachments()\"\r\n [uploadingError]=\"uploadingError()\"\r\n />\r\n <iss-validation-message-viewer [errors]=\"ctrl.errors\" [showMessage]=\"ctrl.touched\" />\r\n } @else {\r\n <iss-vwr-attachment [uploading]=\"uploading()\" [field]=\"viewField()\" />\r\n }\r\n }\r\n `\r\n})\r\nexport class FilePickerWrapper extends WrapperBase implements OnDestroy {\r\n picker = new FormControl();\r\n fileHandlerService = inject(FileHandlerService);\r\n uploading: WritableSignal<boolean> = signal(false);\r\n viewField: Signal<any> = computed(() => this.#generateViewField(this.field.ctrlJsonValue()));\r\n attachments: WritableSignal<IssAttachment[]> = signal([]);\r\n uploadingError = signal<string | undefined>(undefined);\r\n #valueEffect = effect(() => {\r\n if (this.ctrlValueChange() && this.field.value) {\r\n this.fileHandlerService.fetchFiles(this.ctrlValueChange()).subscribe((res: any) => {\r\n const filesOnly = res.map((attachment: any) => attachment.file);\r\n const formDataValue: FormData | null = this.fileHandlerService.formDataFactory(filesOnly, !!this.field.config.multiple);\r\n this.picker.setValue(formDataValue);\r\n this.field.ctrlJsonValue.set(res);\r\n });\r\n }\r\n });\r\n\r\n captureFile(formData: FormData) {\r\n this.uploading.set(true);\r\n const notUploadedFiles: FormData = this.#getNotUploadedFiles(formData);\r\n if (this.fileHandlerService.formDataHasValue(notUploadedFiles)) {\r\n this.fileHandlerService.upload(notUploadedFiles).pipe(\r\n catchError((err) => {\r\n this.uploading.set(false);\r\n this.uploadingError.set(err?.message ?? \"Uploading Failed!\");\r\n console.error(err);\r\n return EMPTY;\r\n }),\r\n ).subscribe((res: any) => {\r\n this.attachments.set(res);\r\n const stringifiedValue = this.stringifyIssAttachment(this.attachments());\r\n this.ctrl.setValue(stringifiedValue);\r\n this.uploading.set(false);\r\n });\r\n } else {\r\n this.uploading.set(false);\r\n }\r\n }\r\n\r\n stringifyIssAttachment(attachments: IssAttachment[]): string {\r\n return attachments.map((attachment: IssAttachment) => attachment.id).join(\",\");\r\n }\r\n\r\n override ngOnDestroy() {\r\n super.ngOnDestroy();\r\n this.#valueEffect.destroy();\r\n }\r\n\r\n #generateViewField(value: IssFile[]) {\r\n return {\r\n config: {\r\n showDownloadButton: true,\r\n showDeleteButton: false\r\n },\r\n ctrlJsonValue: signal(value ?? [])\r\n };\r\n }\r\n\r\n #getNotUploadedFiles(formData: FormData): FormData {\r\n const fd: FormData = new FormData();\r\n if (formData) {\r\n for (const pair of formData.entries()) {\r\n const file: IssFile = pair[1] as unknown as IssFile;\r\n if (!file.id) {\r\n fd.append(pair[0], pair[1]);\r\n }\r\n }\r\n }\r\n return fd;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;AAkHM,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AAC9C,IAAA,SAAS,GAAyB,KAAK,CAAC,KAAK,qDAAC;AAC9C,IAAA,cAAc,GAAwB,KAAK,CAAC,EAAE,0DAAC;IAC/C,SAAS,GAA6B,MAAM,EAAE;AAC9C,IAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;AAC1B,QAAA,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,CAAC,UAAmB,KAAa;YACvE,OAAO;gBACL,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,IAAI,EAAE,UAAU,CAAC;aAClB;AACH,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC,uDAAC;AAEQ,IAAA,UAAU,CAAC,MAAW,EAAA;AAC9B,QAAA,MAAM,OAAO,GAAW,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CA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A,WAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EANH,CAAC,aAAa,CAAC,EAAA,CAAA;;2FAiCnB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnC7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;oBAC/B,aAAa,EAAE,CAAC,aAAa,CAAC;AAC9B,oBAAA,OAAO,EAAE;wBACP,mBAAmB;wBACnB,QAAQ;wBACR,iBAAiB;wBACjB,0BAA0B;wBAC1B;AACD,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA;AACF,iBAAA;;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { MatLabel } from '@angular/material/form-field';
|
|
6
|
+
import { W as WrapperBase, V as VIEW_PROVIDER, I as InputControl, c as ValidationMessageComponent } from './iss-ctrl-iss-ctrl-BhZGHw0A.mjs';
|
|
7
|
+
import { V as ViewerBase } from './iss-ctrl-viewer.base-BCFfZsDG.mjs';
|
|
8
|
+
|
|
9
|
+
class InputViewer extends ViewerBase {
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: InputViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: InputViewer, isStandalone: true, selector: "iss-vwr-input", usesInheritance: true, ngImport: i0, template: `
|
|
12
|
+
{{ field().ctrlValue() }}
|
|
13
|
+
`, isInline: true });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: InputViewer, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: "iss-vwr-input",
|
|
19
|
+
standalone: true,
|
|
20
|
+
template: `
|
|
21
|
+
{{ field().ctrlValue() }}
|
|
22
|
+
`,
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
class InputWrapper extends WrapperBase {
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: InputWrapper, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: InputWrapper, isStandalone: true, selector: "iss-wrp-input", usesInheritance: true, ngImport: i0, template: `
|
|
29
|
+
@if (field.isVisible() && field.registered()) {
|
|
30
|
+
@if (!(field.config.hideLabel)) {
|
|
31
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
32
|
+
}
|
|
33
|
+
@if (field.mode() === "edit") {
|
|
34
|
+
<iss-ctrl-input
|
|
35
|
+
[formControlName]="field.name"
|
|
36
|
+
[type]="field.config.type ?? ''"
|
|
37
|
+
[placeholder]="field.config.placeholder ?? ''"
|
|
38
|
+
[min]="field.config.min ?? null"
|
|
39
|
+
[max]="field.config.max ?? null"
|
|
40
|
+
/>
|
|
41
|
+
<iss-validation-message-viewer [errors]="ctrl.errors" [showMessage]="!ctrl.untouched" />
|
|
42
|
+
} @else {
|
|
43
|
+
<iss-vwr-input [field]="field" />
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "component", type: InputControl, selector: "iss-ctrl-input", inputs: ["type", "prefixIcon", "prefixText", "suffixIcon", "suffixText"], outputs: ["onPrefixClick", "onSuffixClick"] }, { kind: "component", type: InputViewer, selector: "iss-vwr-input" }, { kind: "component", type: ValidationMessageComponent, selector: "iss-validation-message-viewer", inputs: ["errors", "showMessage"] }], viewProviders: [VIEW_PROVIDER] });
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: InputWrapper, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: "iss-wrp-input",
|
|
52
|
+
viewProviders: [VIEW_PROVIDER],
|
|
53
|
+
imports: [
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
MatLabel,
|
|
56
|
+
InputControl,
|
|
57
|
+
InputViewer,
|
|
58
|
+
ValidationMessageComponent
|
|
59
|
+
],
|
|
60
|
+
template: `
|
|
61
|
+
@if (field.isVisible() && field.registered()) {
|
|
62
|
+
@if (!(field.config.hideLabel)) {
|
|
63
|
+
<mat-label>{{ field.label() }}</mat-label>
|
|
64
|
+
}
|
|
65
|
+
@if (field.mode() === "edit") {
|
|
66
|
+
<iss-ctrl-input
|
|
67
|
+
[formControlName]="field.name"
|
|
68
|
+
[type]="field.config.type ?? ''"
|
|
69
|
+
[placeholder]="field.config.placeholder ?? ''"
|
|
70
|
+
[min]="field.config.min ?? null"
|
|
71
|
+
[max]="field.config.max ?? null"
|
|
72
|
+
/>
|
|
73
|
+
<iss-validation-message-viewer [errors]="ctrl.errors" [showMessage]="!ctrl.untouched" />
|
|
74
|
+
} @else {
|
|
75
|
+
<iss-vwr-input [field]="field" />
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`
|
|
79
|
+
}]
|
|
80
|
+
}] });
|
|
81
|
+
|
|
82
|
+
export { InputWrapper };
|
|
83
|
+
//# sourceMappingURL=iss-ctrl-input.wrapper-dK79kSim.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iss-ctrl-input.wrapper-dK79kSim.mjs","sources":["../../../projects/iss/src/components/controls/input/input.viewer.ts","../../../projects/iss/src/components/controls/input/input.wrapper.ts"],"sourcesContent":["import {Component} from \"@angular/core\";\r\nimport {ViewerBase} from \"../base/viewer.base\";\r\n\r\n@Component({\r\n selector: \"iss-vwr-input\",\r\n standalone: true,\r\n template: `\r\n {{ field().ctrlValue() }}\r\n `,\r\n})\r\nexport class InputViewer extends ViewerBase {}\r\n","import {Component} from \"@angular/core\";\r\nimport {ReactiveFormsModule} from \"@angular/forms\";\r\nimport {MatLabel} from \"@angular/material/form-field\";\r\nimport {VIEW_PROVIDER} from \"../../../shared/constants/provider.const\";\r\nimport {ValidationMessageComponent} from \"../../shared/validation-message.component\";\r\nimport {WrapperBase} from \"../base/wrapper.base\";\r\nimport {InputControl} from \"./input.control\";\r\nimport {InputViewer} from \"./input.viewer\";\r\n\r\n@Component({\r\n selector: \"iss-wrp-input\",\r\n viewProviders: [VIEW_PROVIDER],\r\n imports: [\r\n ReactiveFormsModule,\r\n MatLabel,\r\n InputControl,\r\n InputViewer,\r\n ValidationMessageComponent\r\n ],\r\n template: `\r\n @if (field.isVisible() && field.registered()) {\r\n @if (!(field.config.hideLabel)) {\r\n <mat-label>{{ field.label() }}</mat-label>\r\n }\r\n @if (field.mode() === \"edit\") {\r\n <iss-ctrl-input\r\n [formControlName]=\"field.name\"\r\n [type]=\"field.config.type ?? ''\"\r\n [placeholder]=\"field.config.placeholder ?? ''\"\r\n [min]=\"field.config.min ?? null\"\r\n [max]=\"field.config.max ?? null\"\r\n />\r\n <iss-validation-message-viewer [errors]=\"ctrl.errors\" [showMessage]=\"!ctrl.untouched\" />\r\n } @else {\r\n <iss-vwr-input [field]=\"field\" />\r\n }\r\n }\r\n `\r\n})\r\nexport class InputWrapper extends WrapperBase {}\r\n"],"names":[],"mappings":";;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