@smartsoft001/angular 1.1.800 → 1.1.802
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/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/esm2020/lib/+state/error.effects.mjs +24 -0
- package/esm2020/lib/components/accordion/accordion.component.mjs +29 -0
- package/esm2020/lib/components/accordion/body/body.component.mjs +14 -0
- package/esm2020/lib/components/accordion/header/header.component.mjs +14 -0
- package/{esm2015/lib/components/accordion/index.js → esm2020/lib/components/accordion/index.mjs} +0 -0
- package/esm2020/lib/components/app/base/base.component.mjs +134 -0
- package/{esm2015/lib/components/app/index.js → esm2020/lib/components/app/index.mjs} +0 -0
- package/esm2020/lib/components/app/split-panel/split-panel.component.mjs +45 -0
- package/esm2020/lib/components/base/base.component.mjs +72 -0
- package/{esm2015/lib/components/base/index.js → esm2020/lib/components/base/index.mjs} +0 -0
- package/esm2020/lib/components/button/base/base.component.mjs +39 -0
- package/esm2020/lib/components/button/button.component.mjs +65 -0
- package/{esm2015/lib/components/button/index.js → esm2020/lib/components/button/index.mjs} +0 -0
- package/esm2020/lib/components/button/standard/standard.component.mjs +15 -0
- package/esm2020/lib/components/card/card.component.mjs +18 -0
- package/{esm2015/lib/components/card/index.js → esm2020/lib/components/card/index.mjs} +0 -0
- package/esm2020/lib/components/chart/bar/bar.component.mjs +57 -0
- package/esm2020/lib/components/chart/base/base.component.mjs +13 -0
- package/esm2020/lib/components/chart/chart.component.mjs +21 -0
- package/{esm2015/lib/components/chart/index.js → esm2020/lib/components/chart/index.mjs} +0 -0
- package/esm2020/lib/components/chart/line/line.component.mjs +57 -0
- package/esm2020/lib/components/components.module.mjs +422 -0
- package/esm2020/lib/components/date-edit/date-edit.component.mjs +171 -0
- package/{esm2015/lib/components/date-edit/index.js → esm2020/lib/components/date-edit/index.mjs} +0 -0
- package/esm2020/lib/components/date-range/date-range.component.mjs +357 -0
- package/{esm2015/lib/components/date-range/index.js → esm2020/lib/components/date-range/index.mjs} +0 -0
- package/esm2020/lib/components/detail/address/address.component.mjs +17 -0
- package/esm2020/lib/components/detail/array/array.component.mjs +37 -0
- package/esm2020/lib/components/detail/attachment/attachment.component.mjs +28 -0
- package/esm2020/lib/components/detail/base/base.component.mjs +24 -0
- package/esm2020/lib/components/detail/color/color.component.mjs +14 -0
- package/esm2020/lib/components/detail/date-range/date-range.component.mjs +13 -0
- package/esm2020/lib/components/detail/detail.component.mjs +40 -0
- package/esm2020/lib/components/detail/email/email.component.mjs +13 -0
- package/esm2020/lib/components/detail/enum/enum.component.mjs +14 -0
- package/esm2020/lib/components/detail/flag/flag.component.mjs +14 -0
- package/esm2020/lib/components/detail/image/image.component.mjs +29 -0
- package/{esm2015/lib/components/detail/index.js → esm2020/lib/components/detail/index.mjs} +0 -0
- package/esm2020/lib/components/detail/logo/logo.component.mjs +14 -0
- package/esm2020/lib/components/detail/object/object.component.mjs +35 -0
- package/esm2020/lib/components/detail/pdf/pdf.component.mjs +28 -0
- package/esm2020/lib/components/detail/phone-number-pl/phone-number-pl.component.mjs +15 -0
- package/esm2020/lib/components/detail/text/text.component.mjs +15 -0
- package/esm2020/lib/components/detail/video/video.component.mjs +22 -0
- package/esm2020/lib/components/details/base/base.component.mjs +101 -0
- package/esm2020/lib/components/details/details.component.mjs +67 -0
- package/{esm2015/lib/components/details/index.js → esm2020/lib/components/details/index.mjs} +0 -0
- package/esm2020/lib/components/details/standard/standard.component.mjs +17 -0
- package/esm2020/lib/components/dynamic/dynamic.component.mjs +24 -0
- package/{esm2015/lib/components/dynamic/index.js → esm2020/lib/components/dynamic/index.mjs} +0 -0
- package/esm2020/lib/components/error-context/error-context.component.mjs +25 -0
- package/{esm2015/lib/components/error-context/index.js → esm2020/lib/components/error-context/index.mjs} +0 -0
- package/esm2020/lib/components/export/export.component.mjs +30 -0
- package/{esm2015/lib/components/export/index.js → esm2020/lib/components/export/index.mjs} +0 -0
- package/esm2020/lib/components/form/base/base.component.mjs +69 -0
- package/esm2020/lib/components/form/form.component.mjs +256 -0
- package/{esm2015/lib/components/form/index.js → esm2020/lib/components/form/index.mjs} +0 -0
- package/esm2020/lib/components/form/standard/standard.component.mjs +17 -0
- package/esm2020/lib/components/form/stepper/stepper.component.mjs +65 -0
- package/esm2020/lib/components/grid/column/column.component.mjs +20 -0
- package/esm2020/lib/components/grid/grid.component.mjs +20 -0
- package/{esm2015/lib/components/grid/index.js → esm2020/lib/components/grid/index.mjs} +0 -0
- package/esm2020/lib/components/grid/row/row.component.mjs +20 -0
- package/esm2020/lib/components/import/import.component.mjs +35 -0
- package/{esm2015/lib/components/import/index.js → esm2020/lib/components/import/index.mjs} +0 -0
- package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
- package/{esm2015/lib/components/info/index.js → esm2020/lib/components/info/index.mjs} +0 -0
- package/esm2020/lib/components/info/info.component.mjs +49 -0
- package/esm2020/lib/components/input/address/address.component.mjs +21 -0
- package/esm2020/lib/components/input/array/array.component.mjs +113 -0
- package/esm2020/lib/components/input/attachment/attachment.component.mjs +25 -0
- package/esm2020/lib/components/input/base/base.component.mjs +35 -0
- package/esm2020/lib/components/input/base/file.component.mjs +84 -0
- package/esm2020/lib/components/input/base/possibilities.component.mjs +45 -0
- package/esm2020/lib/components/input/check/check.component.mjs +62 -0
- package/esm2020/lib/components/input/color/color.component.mjs +35 -0
- package/esm2020/lib/components/input/currency/currency.component.mjs +20 -0
- package/esm2020/lib/components/input/date/date.component.mjs +72 -0
- package/esm2020/lib/components/input/date-range/date-range.component.mjs +20 -0
- package/esm2020/lib/components/input/date-with-edit/date-with-edit.component.mjs +46 -0
- package/esm2020/lib/components/input/email/email.component.mjs +20 -0
- package/esm2020/lib/components/input/enum/enum.component.mjs +45 -0
- package/esm2020/lib/components/input/error/error.component.mjs +16 -0
- package/esm2020/lib/components/input/file/file.component.mjs +59 -0
- package/esm2020/lib/components/input/flag/flag.component.mjs +21 -0
- package/esm2020/lib/components/input/float/float.component.mjs +21 -0
- package/esm2020/lib/components/input/image/image.component.mjs +35 -0
- package/{esm2015/lib/components/input/index.js → esm2020/lib/components/input/index.mjs} +0 -0
- package/esm2020/lib/components/input/input.component.mjs +124 -0
- package/esm2020/lib/components/input/int/int.component.mjs +21 -0
- package/esm2020/lib/components/input/ints/ints.component.mjs +59 -0
- package/esm2020/lib/components/input/logo/logo.component.mjs +48 -0
- package/esm2020/lib/components/input/long-text/long-text.component.mjs +55 -0
- package/esm2020/lib/components/input/nip/nip.component.mjs +35 -0
- package/esm2020/lib/components/input/object/object.component.mjs +33 -0
- package/esm2020/lib/components/input/password/password.component.mjs +49 -0
- package/esm2020/lib/components/input/pdf/pdf.component.mjs +25 -0
- package/esm2020/lib/components/input/pesel/pesel.component.mjs +20 -0
- package/esm2020/lib/components/input/phone-number/phone-number.component.mjs +20 -0
- package/esm2020/lib/components/input/phone-number-pl/phone-number-pl.component.mjs +28 -0
- package/esm2020/lib/components/input/radio/radio.component.mjs +48 -0
- package/esm2020/lib/components/input/strings/strings.component.mjs +59 -0
- package/esm2020/lib/components/input/text/text.component.mjs +20 -0
- package/esm2020/lib/components/input/video/video.component.mjs +45 -0
- package/esm2020/lib/components/list/base/base.component.mjs +166 -0
- package/esm2020/lib/components/list/desktop/desktop.component.mjs +120 -0
- package/{esm2015/lib/components/list/index.js → esm2020/lib/components/list/index.mjs} +0 -0
- package/esm2020/lib/components/list/list.component.mjs +68 -0
- package/esm2020/lib/components/list/masonry-grid/masonry-grid.component.mjs +66 -0
- package/esm2020/lib/components/list/mobile/mobile.component.mjs +49 -0
- package/{esm2015/lib/components/loader/index.js → esm2020/lib/components/loader/index.mjs} +0 -0
- package/esm2020/lib/components/loader/loader.component.mjs +17 -0
- package/esm2020/lib/components/page/base/base.component.mjs +62 -0
- package/{esm2015/lib/components/page/index.js → esm2020/lib/components/page/index.mjs} +0 -0
- package/esm2020/lib/components/page/page.component.mjs +66 -0
- package/esm2020/lib/components/page/standard/standard.component.mjs +25 -0
- package/{esm2015/lib/components/paging/index.js → esm2020/lib/components/paging/index.mjs} +0 -0
- package/esm2020/lib/components/paging/paging.component.mjs +25 -0
- package/{esm2015/lib/components/password-strength/index.js → esm2020/lib/components/password-strength/index.mjs} +0 -0
- package/esm2020/lib/components/password-strength/password-strength.component.mjs +115 -0
- package/{esm2015/lib/components/searchbar/index.js → esm2020/lib/components/searchbar/index.mjs} +0 -0
- package/esm2020/lib/components/searchbar/searchbar.component.mjs +54 -0
- package/{esm2015/lib/components/tabs/index.js → esm2020/lib/components/tabs/index.mjs} +0 -0
- package/esm2020/lib/components/tabs/tab/tab.component.mjs +19 -0
- package/esm2020/lib/components/tabs/tabs.component.mjs +51 -0
- package/{esm2015/lib/decorators/index.js → esm2020/lib/decorators/index.mjs} +0 -0
- package/{esm2015/lib/decorators/module/module.decorator.js → esm2020/lib/decorators/module/module.decorator.mjs} +0 -0
- package/{esm2015/lib/decorators/redux-action/redux-action.decorator.js → esm2020/lib/decorators/redux-action/redux-action.decorator.mjs} +0 -0
- package/{esm2015/lib/decorators/redux-select/redux-select.decorator.js → esm2020/lib/decorators/redux-select/redux-select.decorator.mjs} +0 -0
- package/esm2020/lib/directives/date-validator/date-validator.directive.mjs +29 -0
- package/esm2020/lib/directives/details/details.directive.mjs +54 -0
- package/esm2020/lib/directives/directives.module.mjs +41 -0
- package/esm2020/lib/directives/dynamic-content/dynamic-content.directive.mjs +17 -0
- package/{esm2015/lib/directives/index.js → esm2020/lib/directives/index.mjs} +0 -0
- package/esm2020/lib/directives/viewport-show/viewport-show.directive.mjs +35 -0
- package/esm2020/lib/factories/factories.module.mjs +25 -0
- package/esm2020/lib/factories/form/form.factory.mjs +280 -0
- package/{esm2015/lib/factories/index.js → esm2020/lib/factories/index.mjs} +0 -0
- package/{esm2015/lib/models/chart.js → esm2020/lib/models/chart.mjs} +0 -0
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
- package/esm2020/lib/models/interfaces.mjs +12 -0
- package/{esm2015/lib/models/style.js → esm2020/lib/models/style.mjs} +0 -0
- package/esm2020/lib/ngrx-shared.module.mjs +39 -0
- package/esm2020/lib/pages/details/details.page.mjs +64 -0
- package/{esm2015/lib/pages/index.js → esm2020/lib/pages/index.mjs} +0 -0
- package/esm2020/lib/pages/pages.module.mjs +41 -0
- package/esm2020/lib/pipes/enum-to-list/enum-to-list.pipe.mjs +18 -0
- package/esm2020/lib/pipes/file-url/file-url.pipe.mjs +21 -0
- package/{esm2015/lib/pipes/index.js → esm2020/lib/pipes/index.mjs} +0 -0
- package/esm2020/lib/pipes/list-cell/list-cell.pipe.mjs +70 -0
- package/esm2020/lib/pipes/list-header/list-header.pipe.mjs +42 -0
- package/esm2020/lib/pipes/model-label/model-label.pipe.mjs +39 -0
- package/esm2020/lib/pipes/pipes.module.mjs +25 -0
- package/esm2020/lib/pipes/trust-html/trust-html.pipe.mjs +23 -0
- package/esm2020/lib/pipes/virtual-data-source/virtual-data-source.pipe.mjs +18 -0
- package/{esm2015/lib/providers/index.js → esm2020/lib/providers/index.mjs} +0 -0
- package/{esm2015/lib/providers/interfaces.js → esm2020/lib/providers/interfaces.mjs} +0 -0
- package/{esm2015/lib/providers/model-export.provider.js → esm2020/lib/providers/model-export.provider.mjs} +0 -0
- package/{esm2015/lib/providers/model-import.provider.js → esm2020/lib/providers/model-import.provider.mjs} +0 -0
- package/{esm2015/lib/providers/model-label.provider.js → esm2020/lib/providers/model-label.provider.mjs} +0 -0
- package/{esm2015/lib/providers/model-possibilities.provider.js → esm2020/lib/providers/model-possibilities.provider.mjs} +0 -0
- package/{esm2015/lib/providers/model-validators.provider.js → esm2020/lib/providers/model-validators.provider.mjs} +0 -0
- package/esm2020/lib/services/alert/alert.service.mjs +19 -0
- package/{esm2015/lib/services/app/app.service.js → esm2020/lib/services/app/app.service.mjs} +9 -20
- package/esm2020/lib/services/auth/auth.service.mjs +43 -0
- package/{esm2015/lib/services/calendar/calendar.service.js → esm2020/lib/services/calendar/calendar.service.mjs} +8 -14
- package/esm2020/lib/services/camera/camera.service.mjs +22 -0
- package/esm2020/lib/services/details/details.service.mjs +23 -0
- package/esm2020/lib/services/dynamic-component-loader/dynamic-component-loader.service.mjs +34 -0
- package/esm2020/lib/services/dynamic-component-storage/dynamic-component-storage.service.mjs +29 -0
- package/esm2020/lib/services/error/error.service.mjs +31 -0
- package/esm2020/lib/services/file/file.service.mjs +51 -0
- package/esm2020/lib/services/fingerprint/fingerprint.service.mjs +61 -0
- package/{esm2015/lib/services/form/form.group.js → esm2020/lib/services/form/form.group.mjs} +0 -0
- package/esm2020/lib/services/hardware/hardware.service.mjs +27 -0
- package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
- package/esm2020/lib/services/menu/menu.service.mjs +88 -0
- package/esm2020/lib/services/modal/modal.service.mjs +38 -0
- package/esm2020/lib/services/ngrx-store/ngrx-store.service.mjs +22 -0
- package/esm2020/lib/services/popover/popover.service.mjs +18 -0
- package/esm2020/lib/services/services.module.mjs +81 -0
- package/esm2020/lib/services/storage/storage.service.mjs +73 -0
- package/esm2020/lib/services/style/style.service.mjs +105 -0
- package/esm2020/lib/services/toast/toast.service.mjs +57 -0
- package/esm2020/lib/services/ui/ui.service.mjs +54 -0
- package/{esm2015/lib/shared.animations.js → esm2020/lib/shared.animations.mjs} +0 -0
- package/esm2020/lib/shared.inectors.mjs +4 -0
- package/esm2020/lib/shared.module.mjs +70 -0
- package/{esm2015/lib/translations-default.js → esm2020/lib/translations-default.mjs} +0 -0
- package/esm2020/lib/utils-shared.module.mjs +18 -0
- package/esm2020/smartsoft001-angular.mjs +5 -0
- package/fesm2015/smartsoft001-angular.mjs +6654 -0
- package/fesm2015/smartsoft001-angular.mjs.map +1 -0
- package/fesm2020/smartsoft001-angular.mjs +6553 -0
- package/fesm2020/smartsoft001-angular.mjs.map +1 -0
- package/lib/+state/error.effects.d.ts +3 -0
- package/lib/components/accordion/accordion.component.d.ts +3 -0
- package/lib/components/accordion/body/body.component.d.ts +3 -0
- package/lib/components/accordion/header/header.component.d.ts +3 -0
- package/lib/components/app/base/base.component.d.ts +3 -0
- package/lib/components/app/split-panel/split-panel.component.d.ts +3 -0
- package/lib/components/base/base.component.d.ts +3 -0
- package/lib/components/button/base/base.component.d.ts +3 -0
- package/lib/components/button/button.component.d.ts +4 -1
- package/lib/components/button/standard/standard.component.d.ts +3 -0
- package/lib/components/card/card.component.d.ts +3 -0
- package/lib/components/chart/bar/bar.component.d.ts +3 -0
- package/lib/components/chart/base/base.component.d.ts +3 -0
- package/lib/components/chart/chart.component.d.ts +3 -0
- package/lib/components/chart/line/line.component.d.ts +3 -0
- package/lib/components/components.module.d.ts +124 -10
- package/lib/components/date-edit/date-edit.component.d.ts +3 -0
- package/lib/components/date-range/date-range.component.d.ts +5 -0
- package/lib/components/detail/address/address.component.d.ts +3 -0
- package/lib/components/detail/array/array.component.d.ts +7 -1
- package/lib/components/detail/attachment/attachment.component.d.ts +3 -0
- package/lib/components/detail/base/base.component.d.ts +3 -0
- package/lib/components/detail/color/color.component.d.ts +3 -0
- package/lib/components/detail/date-range/date-range.component.d.ts +3 -0
- package/lib/components/detail/detail.component.d.ts +3 -0
- package/lib/components/detail/email/email.component.d.ts +3 -0
- package/lib/components/detail/enum/enum.component.d.ts +3 -0
- package/lib/components/detail/flag/flag.component.d.ts +3 -0
- package/lib/components/detail/image/image.component.d.ts +3 -0
- package/lib/components/detail/logo/logo.component.d.ts +3 -0
- package/lib/components/detail/object/object.component.d.ts +7 -1
- package/lib/components/detail/pdf/pdf.component.d.ts +3 -0
- package/lib/components/detail/phone-number-pl/phone-number-pl.component.d.ts +3 -0
- package/lib/components/detail/text/text.component.d.ts +3 -0
- package/lib/components/detail/video/video.component.d.ts +3 -0
- package/lib/components/details/base/base.component.d.ts +3 -0
- package/lib/components/details/details.component.d.ts +5 -2
- package/lib/components/details/standard/standard.component.d.ts +3 -0
- package/lib/components/dynamic/dynamic.component.d.ts +3 -0
- package/lib/components/error-context/error-context.component.d.ts +3 -0
- package/lib/components/export/export.component.d.ts +3 -0
- package/lib/components/form/base/base.component.d.ts +3 -0
- package/lib/components/form/form.component.d.ts +4 -1
- package/lib/components/form/standard/standard.component.d.ts +3 -0
- package/lib/components/form/stepper/stepper.component.d.ts +3 -0
- package/lib/components/grid/column/column.component.d.ts +3 -0
- package/lib/components/grid/grid.component.d.ts +3 -0
- package/lib/components/grid/row/row.component.d.ts +3 -0
- package/lib/components/import/import.component.d.ts +3 -0
- package/lib/components/info/info.component.d.ts +5 -0
- package/lib/components/input/address/address.component.d.ts +3 -0
- package/lib/components/input/array/array.component.d.ts +5 -1
- package/lib/components/input/attachment/attachment.component.d.ts +3 -0
- package/lib/components/input/base/base.component.d.ts +3 -0
- package/lib/components/input/base/file.component.d.ts +3 -0
- package/lib/components/input/base/possibilities.component.d.ts +3 -0
- package/lib/components/input/check/check.component.d.ts +3 -0
- package/lib/components/input/color/color.component.d.ts +3 -0
- package/lib/components/input/currency/currency.component.d.ts +3 -0
- package/lib/components/input/date/date.component.d.ts +3 -0
- package/lib/components/input/date-range/date-range.component.d.ts +3 -0
- package/lib/components/input/date-with-edit/date-with-edit.component.d.ts +3 -0
- package/lib/components/input/email/email.component.d.ts +3 -0
- package/lib/components/input/enum/enum.component.d.ts +3 -0
- package/lib/components/input/error/error.component.d.ts +3 -0
- package/lib/components/input/file/file.component.d.ts +3 -0
- package/lib/components/input/flag/flag.component.d.ts +3 -0
- package/lib/components/input/float/float.component.d.ts +3 -0
- package/lib/components/input/image/image.component.d.ts +3 -0
- package/lib/components/input/input.component.d.ts +3 -0
- package/lib/components/input/int/int.component.d.ts +3 -0
- package/lib/components/input/ints/ints.component.d.ts +3 -0
- package/lib/components/input/logo/logo.component.d.ts +3 -0
- package/lib/components/input/long-text/long-text.component.d.ts +3 -0
- package/lib/components/input/nip/nip.component.d.ts +3 -0
- package/lib/components/input/object/object.component.d.ts +6 -2
- package/lib/components/input/password/password.component.d.ts +3 -0
- package/lib/components/input/pdf/pdf.component.d.ts +3 -0
- package/lib/components/input/pesel/pesel.component.d.ts +3 -0
- package/lib/components/input/phone-number/phone-number.component.d.ts +3 -0
- package/lib/components/input/phone-number-pl/phone-number-pl.component.d.ts +3 -0
- package/lib/components/input/radio/radio.component.d.ts +3 -0
- package/lib/components/input/strings/strings.component.d.ts +3 -0
- package/lib/components/input/text/text.component.d.ts +3 -0
- package/lib/components/input/video/video.component.d.ts +3 -0
- package/lib/components/list/base/base.component.d.ts +4 -2
- package/lib/components/list/desktop/desktop.component.d.ts +4 -2
- package/lib/components/list/list.component.d.ts +5 -9
- package/lib/components/list/masonry-grid/masonry-grid.component.d.ts +4 -2
- package/lib/components/list/mobile/mobile.component.d.ts +4 -2
- package/lib/components/loader/loader.component.d.ts +3 -0
- package/lib/components/page/base/base.component.d.ts +3 -0
- package/lib/components/page/page.component.d.ts +3 -0
- package/lib/components/page/standard/standard.component.d.ts +3 -0
- package/lib/components/paging/paging.component.d.ts +3 -0
- package/lib/components/password-strength/password-strength.component.d.ts +3 -0
- package/lib/components/searchbar/searchbar.component.d.ts +3 -0
- package/lib/components/tabs/tab/tab.component.d.ts +3 -0
- package/lib/components/tabs/tabs.component.d.ts +3 -0
- package/lib/directives/date-validator/date-validator.directive.d.ts +3 -0
- package/lib/directives/details/details.directive.d.ts +3 -0
- package/lib/directives/directives.module.d.ts +9 -0
- package/lib/directives/dynamic-content/dynamic-content.directive.d.ts +3 -0
- package/lib/directives/viewport-show/viewport-show.directive.d.ts +3 -0
- package/lib/factories/factories.module.d.ts +5 -0
- package/lib/factories/form/form.factory.d.ts +3 -0
- package/lib/models/interfaces.d.ts +7 -1
- package/lib/ngrx-shared.module.d.ts +7 -0
- package/lib/pages/details/details.page.d.ts +3 -0
- package/lib/pages/pages.module.d.ts +9 -0
- package/lib/pipes/enum-to-list/enum-to-list.pipe.d.ts +3 -0
- package/lib/pipes/file-url/file-url.pipe.d.ts +3 -0
- package/lib/pipes/list-cell/list-cell.pipe.d.ts +3 -0
- package/lib/pipes/list-header/list-header.pipe.d.ts +3 -0
- package/lib/pipes/model-label/model-label.pipe.d.ts +3 -0
- package/lib/pipes/pipes.module.d.ts +12 -1
- package/lib/pipes/trust-html/trust-html.pipe.d.ts +3 -0
- package/lib/pipes/virtual-data-source/virtual-data-source.pipe.d.ts +3 -0
- package/lib/services/alert/alert.service.d.ts +3 -0
- package/lib/services/app/app.service.d.ts +3 -0
- package/lib/services/auth/auth.service.d.ts +3 -0
- package/lib/services/calendar/calendar.service.d.ts +3 -0
- package/lib/services/camera/camera.service.d.ts +3 -0
- package/lib/services/details/details.service.d.ts +3 -0
- package/lib/services/dynamic-component-loader/dynamic-component-loader.service.d.ts +3 -0
- package/lib/services/error/error.service.d.ts +3 -0
- package/lib/services/file/file.service.d.ts +3 -0
- package/lib/services/fingerprint/fingerprint.service.d.ts +3 -0
- package/lib/services/hardware/hardware.service.d.ts +3 -0
- package/lib/services/menu/menu.service.d.ts +3 -0
- package/lib/services/modal/modal.service.d.ts +3 -0
- package/lib/services/ngrx-store/ngrx-store.service.d.ts +3 -0
- package/lib/services/popover/popover.service.d.ts +3 -0
- package/lib/services/services.module.d.ts +7 -0
- package/lib/services/storage/storage.service.d.ts +3 -0
- package/lib/services/style/style.service.d.ts +3 -0
- package/lib/services/toast/toast.service.d.ts +3 -0
- package/lib/services/ui/ui.service.d.ts +3 -0
- package/lib/shared.inectors.d.ts +3 -0
- package/lib/shared.module.d.ts +15 -0
- package/lib/utils-shared.module.d.ts +5 -0
- package/package.json +38 -25
- package/smartsoft001-angular.d.ts +1 -142
- package/bundles/smartsoft001-angular.umd.js +0 -9127
- package/bundles/smartsoft001-angular.umd.js.map +0 -1
- package/esm2015/lib/+state/error.effects.js +0 -31
- package/esm2015/lib/components/accordion/accordion.component.js +0 -37
- package/esm2015/lib/components/accordion/body/body.component.js +0 -23
- package/esm2015/lib/components/accordion/header/header.component.js +0 -23
- package/esm2015/lib/components/app/base/base.component.js +0 -144
- package/esm2015/lib/components/app/split-panel/split-panel.component.js +0 -58
- package/esm2015/lib/components/base/base.component.js +0 -82
- package/esm2015/lib/components/button/base/base.component.js +0 -36
- package/esm2015/lib/components/button/button.component.js +0 -48
- package/esm2015/lib/components/button/standard/standard.component.js +0 -15
- package/esm2015/lib/components/card/card.component.js +0 -27
- package/esm2015/lib/components/chart/bar/bar.component.js +0 -68
- package/esm2015/lib/components/chart/base/base.component.js +0 -19
- package/esm2015/lib/components/chart/chart.component.js +0 -30
- package/esm2015/lib/components/chart/line/line.component.js +0 -68
- package/esm2015/lib/components/components.module.js +0 -257
- package/esm2015/lib/components/date-edit/date-edit.component.js +0 -184
- package/esm2015/lib/components/date-range/date-range.component.js +0 -387
- package/esm2015/lib/components/detail/address/address.component.js +0 -17
- package/esm2015/lib/components/detail/array/array.component.js +0 -28
- package/esm2015/lib/components/detail/attachment/attachment.component.js +0 -36
- package/esm2015/lib/components/detail/base/base.component.js +0 -34
- package/esm2015/lib/components/detail/color/color.component.js +0 -13
- package/esm2015/lib/components/detail/date-range/date-range.component.js +0 -13
- package/esm2015/lib/components/detail/detail.component.js +0 -32
- package/esm2015/lib/components/detail/email/email.component.js +0 -13
- package/esm2015/lib/components/detail/enum/enum.component.js +0 -13
- package/esm2015/lib/components/detail/flag/flag.component.js +0 -13
- package/esm2015/lib/components/detail/image/image.component.js +0 -38
- package/esm2015/lib/components/detail/logo/logo.component.js +0 -13
- package/esm2015/lib/components/detail/object/object.component.js +0 -26
- package/esm2015/lib/components/detail/pdf/pdf.component.js +0 -36
- package/esm2015/lib/components/detail/phone-number-pl/phone-number-pl.component.js +0 -13
- package/esm2015/lib/components/detail/text/text.component.js +0 -13
- package/esm2015/lib/components/detail/video/video.component.js +0 -32
- package/esm2015/lib/components/details/base/base.component.js +0 -104
- package/esm2015/lib/components/details/details.component.js +0 -66
- package/esm2015/lib/components/details/standard/standard.component.js +0 -15
- package/esm2015/lib/components/dynamic/dynamic.component.js +0 -34
- package/esm2015/lib/components/error-context/error-context.component.js +0 -35
- package/esm2015/lib/components/export/export.component.js +0 -41
- package/esm2015/lib/components/form/base/base.component.js +0 -75
- package/esm2015/lib/components/form/form.component.js +0 -216
- package/esm2015/lib/components/form/standard/standard.component.js +0 -16
- package/esm2015/lib/components/form/stepper/stepper.component.js +0 -68
- package/esm2015/lib/components/grid/column/column.component.js +0 -29
- package/esm2015/lib/components/grid/grid.component.js +0 -30
- package/esm2015/lib/components/grid/row/row.component.js +0 -29
- package/esm2015/lib/components/import/import.component.js +0 -48
- package/esm2015/lib/components/info/info.component.js +0 -70
- package/esm2015/lib/components/input/address/address.component.js +0 -27
- package/esm2015/lib/components/input/array/array.component.js +0 -110
- package/esm2015/lib/components/input/attachment/attachment.component.js +0 -34
- package/esm2015/lib/components/input/base/base.component.js +0 -45
- package/esm2015/lib/components/input/base/file.component.js +0 -94
- package/esm2015/lib/components/input/base/possibilities.component.js +0 -49
- package/esm2015/lib/components/input/check/check.component.js +0 -64
- package/esm2015/lib/components/input/color/color.component.js +0 -42
- package/esm2015/lib/components/input/currency/currency.component.js +0 -27
- package/esm2015/lib/components/input/date/date.component.js +0 -69
- package/esm2015/lib/components/input/date-range/date-range.component.js +0 -26
- package/esm2015/lib/components/input/date-with-edit/date-with-edit.component.js +0 -53
- package/esm2015/lib/components/input/email/email.component.js +0 -27
- package/esm2015/lib/components/input/enum/enum.component.js +0 -51
- package/esm2015/lib/components/input/error/error.component.js +0 -17
- package/esm2015/lib/components/input/file/file.component.js +0 -66
- package/esm2015/lib/components/input/flag/flag.component.js +0 -28
- package/esm2015/lib/components/input/float/float.component.js +0 -29
- package/esm2015/lib/components/input/image/image.component.js +0 -44
- package/esm2015/lib/components/input/input.component.js +0 -104
- package/esm2015/lib/components/input/int/int.component.js +0 -29
- package/esm2015/lib/components/input/ints/ints.component.js +0 -66
- package/esm2015/lib/components/input/logo/logo.component.js +0 -56
- package/esm2015/lib/components/input/long-text/long-text.component.js +0 -61
- package/esm2015/lib/components/input/nip/nip.component.js +0 -42
- package/esm2015/lib/components/input/object/object.component.js +0 -35
- package/esm2015/lib/components/input/password/password.component.js +0 -56
- package/esm2015/lib/components/input/pdf/pdf.component.js +0 -34
- package/esm2015/lib/components/input/pesel/pesel.component.js +0 -27
- package/esm2015/lib/components/input/phone-number/phone-number.component.js +0 -27
- package/esm2015/lib/components/input/phone-number-pl/phone-number-pl.component.js +0 -35
- package/esm2015/lib/components/input/radio/radio.component.js +0 -49
- package/esm2015/lib/components/input/strings/strings.component.js +0 -66
- package/esm2015/lib/components/input/text/text.component.js +0 -27
- package/esm2015/lib/components/input/video/video.component.js +0 -54
- package/esm2015/lib/components/list/base/base.component.js +0 -175
- package/esm2015/lib/components/list/desktop/desktop.component.js +0 -119
- package/esm2015/lib/components/list/list.component.js +0 -73
- package/esm2015/lib/components/list/masonry-grid/masonry-grid.component.js +0 -73
- package/esm2015/lib/components/list/mobile/mobile.component.js +0 -55
- package/esm2015/lib/components/loader/loader.component.js +0 -17
- package/esm2015/lib/components/page/base/base.component.js +0 -74
- package/esm2015/lib/components/page/page.component.js +0 -64
- package/esm2015/lib/components/page/standard/standard.component.js +0 -36
- package/esm2015/lib/components/paging/paging.component.js +0 -24
- package/esm2015/lib/components/password-strength/password-strength.component.js +0 -118
- package/esm2015/lib/components/searchbar/searchbar.component.js +0 -62
- package/esm2015/lib/components/tabs/tab/tab.component.js +0 -31
- package/esm2015/lib/components/tabs/tabs.component.js +0 -48
- package/esm2015/lib/directives/date-validator/date-validator.directive.js +0 -26
- package/esm2015/lib/directives/details/details.directive.js +0 -60
- package/esm2015/lib/directives/directives.module.js +0 -29
- package/esm2015/lib/directives/dynamic-content/dynamic-content.directive.js +0 -24
- package/esm2015/lib/directives/viewport-show/viewport-show.directive.js +0 -43
- package/esm2015/lib/factories/factories.module.js +0 -17
- package/esm2015/lib/factories/form/form.factory.js +0 -275
- package/esm2015/lib/models/interfaces.js +0 -12
- package/esm2015/lib/ngrx-shared.module.js +0 -37
- package/esm2015/lib/pages/details/details.page.js +0 -72
- package/esm2015/lib/pages/pages.module.js +0 -32
- package/esm2015/lib/pipes/enum-to-list/enum-to-list.pipe.js +0 -15
- package/esm2015/lib/pipes/file-url/file-url.pipe.js +0 -27
- package/esm2015/lib/pipes/list-cell/list-cell.pipe.js +0 -76
- package/esm2015/lib/pipes/list-header/list-header.pipe.js +0 -43
- package/esm2015/lib/pipes/model-label/model-label.pipe.js +0 -40
- package/esm2015/lib/pipes/pipes.module.js +0 -21
- package/esm2015/lib/pipes/trust-html/trust-html.pipe.js +0 -29
- package/esm2015/lib/pipes/virtual-data-source/virtual-data-source.pipe.js +0 -15
- package/esm2015/lib/services/alert/alert.service.js +0 -29
- package/esm2015/lib/services/auth/auth.service.js +0 -50
- package/esm2015/lib/services/camera/camera.service.js +0 -23
- package/esm2015/lib/services/details/details.service.js +0 -29
- package/esm2015/lib/services/dynamic-component-loader/dynamic-component-loader.service.js +0 -46
- package/esm2015/lib/services/dynamic-component-storage/dynamic-component-storage.service.js +0 -30
- package/esm2015/lib/services/error/error.service.js +0 -41
- package/esm2015/lib/services/file/file.service.js +0 -54
- package/esm2015/lib/services/fingerprint/fingerprint.service.js +0 -75
- package/esm2015/lib/services/hardware/hardware.service.js +0 -34
- package/esm2015/lib/services/menu/menu.service.js +0 -105
- package/esm2015/lib/services/modal/modal.service.js +0 -50
- package/esm2015/lib/services/ngrx-store/ngrx-store.service.js +0 -20
- package/esm2015/lib/services/popover/popover.service.js +0 -28
- package/esm2015/lib/services/services.module.js +0 -53
- package/esm2015/lib/services/storage/storage.service.js +0 -82
- package/esm2015/lib/services/style/style.service.js +0 -107
- package/esm2015/lib/services/toast/toast.service.js +0 -69
- package/esm2015/lib/services/ui/ui.service.js +0 -72
- package/esm2015/lib/shared.module.js +0 -53
- package/esm2015/lib/utils-shared.module.js +0 -14
- package/esm2015/smartsoft001-angular.js +0 -147
- package/fesm2015/smartsoft001-angular.js +0 -7502
- package/fesm2015/smartsoft001-angular.js.map +0 -1
- package/smartsoft001-angular.metadata.json +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Output, Renderer2, ViewChild, Input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ionic/angular";
|
|
4
|
+
export class ImportComponent {
|
|
5
|
+
constructor(renderer) {
|
|
6
|
+
this.renderer = renderer;
|
|
7
|
+
this.accept = "application/json";
|
|
8
|
+
this.set = new EventEmitter();
|
|
9
|
+
}
|
|
10
|
+
async onClick() {
|
|
11
|
+
this.inputElementRef.nativeElement.click();
|
|
12
|
+
}
|
|
13
|
+
ngAfterViewInit() {
|
|
14
|
+
this.renderer.listen(this.inputElementRef.nativeElement, 'change', () => {
|
|
15
|
+
const file = this.inputElementRef.nativeElement.files[0];
|
|
16
|
+
this.inputElementRef.nativeElement.type = 'text';
|
|
17
|
+
this.inputElementRef.nativeElement.type = 'file';
|
|
18
|
+
this.set.next(file);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** @nocollapse */ /** @nocollapse */ ImportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ImportComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
/** @nocollapse */ /** @nocollapse */ ImportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ImportComponent, selector: "smart-import", inputs: { accept: "accept" }, outputs: { set: "set" }, viewQueries: [{ propertyName: "inputElementRef", first: true, predicate: ["inputObj"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ion-button title=\"import\" (click)=\"onClick()\" slot=\"icon-only\">\n <ion-icon name=\"cloud-upload\"></ion-icon>\n</ion-button>\n<input type=\"file\" [accept]=\"accept ? accept : 'application/json'\" [hidden]=\"true\" #inputObj>", styles: [":host{cursor:pointer;font-size:3rem;height:3rem;margin:10px}\n"], components: [{ type: i1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { type: i1.IonIcon, selector: "ion-icon", inputs: ["ariaHidden", "ariaLabel", "color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ImportComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: "smart-import", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-button title=\"import\" (click)=\"onClick()\" slot=\"icon-only\">\n <ion-icon name=\"cloud-upload\"></ion-icon>\n</ion-button>\n<input type=\"file\" [accept]=\"accept ? accept : 'application/json'\" [hidden]=\"true\" #inputObj>", styles: [":host{cursor:pointer;font-size:3rem;height:3rem;margin:10px}\n"] }]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { accept: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], set: [{
|
|
30
|
+
type: Output
|
|
31
|
+
}], inputElementRef: [{
|
|
32
|
+
type: ViewChild,
|
|
33
|
+
args: ['inputObj', { read: ElementRef }]
|
|
34
|
+
}] } });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1wb3J0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkL2FuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL2ltcG9ydC9pbXBvcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW1wb3J0L2ltcG9ydC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cGxpY2F0aW9uL2pzb24nXCIgW2hpZGRlbl09XCJ0cnVlXCIgI2lucHV0T2JqPiJdfQ==
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from "@angular/core";
|
|
2
|
+
import { NavParams, PopoverController } from "@ionic/angular";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ionic/angular";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
export class InfoComponent {
|
|
7
|
+
constructor(popoverCtrl) {
|
|
8
|
+
this.popoverCtrl = popoverCtrl;
|
|
9
|
+
}
|
|
10
|
+
async onClick(ev) {
|
|
11
|
+
const popover = await this.popoverCtrl.create({
|
|
12
|
+
backdropDismiss: true,
|
|
13
|
+
component: InfoModalComponent,
|
|
14
|
+
componentProps: {
|
|
15
|
+
text: this.text
|
|
16
|
+
},
|
|
17
|
+
event: ev
|
|
18
|
+
});
|
|
19
|
+
await popover.present();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** @nocollapse */ /** @nocollapse */ InfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InfoComponent, deps: [{ token: i1.PopoverController }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
/** @nocollapse */ /** @nocollapse */ InfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: InfoComponent, selector: "smart-info", inputs: { text: "text" }, ngImport: i0, template: "<ion-icon name=\"information-circle-outline\" (click)=\"onClick($event)\"></ion-icon>", styles: [":host{cursor:pointer;font-size:2.4rem;transform:translateY(-50%)}:host ion-icon{color:var(--smart-color-primary)}.item-multiple-inputs :host{height:100%;width:.1rem;border:.1rem dotted rgba(var(--smart-color-primary-rgb),.3)!important;right:3.2rem}.item-multiple-inputs :host ion-icon{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:666;color:var(--smart-color-primary);background-color:#fff;border-radius:50%;padding-left:.1rem}.item-multiple-inputs.item-datetime :host{right:7.8rem;height:2.4rem;margin-top:-.3rem;border:none!important}.item-datetime :host{right:6.4rem;height:2.4rem}\n"], components: [{ type: i1.IonIcon, selector: "ion-icon", inputs: ["ariaHidden", "ariaLabel", "color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InfoComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: "smart-info", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-icon name=\"information-circle-outline\" (click)=\"onClick($event)\"></ion-icon>", styles: [":host{cursor:pointer;font-size:2.4rem;transform:translateY(-50%)}:host ion-icon{color:var(--smart-color-primary)}.item-multiple-inputs :host{height:100%;width:.1rem;border:.1rem dotted rgba(var(--smart-color-primary-rgb),.3)!important;right:3.2rem}.item-multiple-inputs :host ion-icon{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:666;color:var(--smart-color-primary);background-color:#fff;border-radius:50%;padding-left:.1rem}.item-multiple-inputs.item-datetime :host{right:7.8rem;height:2.4rem;margin-top:-.3rem;border:none!important}.item-datetime :host{right:6.4rem;height:2.4rem}\n"] }]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i1.PopoverController }]; }, propDecorators: { text: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}] } });
|
|
30
|
+
export class InfoModalComponent {
|
|
31
|
+
constructor(params) {
|
|
32
|
+
this.text = params.get('text');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** @nocollapse */ /** @nocollapse */ InfoModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InfoModalComponent, deps: [{ token: i1.NavParams }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
/** @nocollapse */ /** @nocollapse */ InfoModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: InfoModalComponent, selector: "smart-info-modal", ngImport: i0, template: `
|
|
37
|
+
<ion-content class="ion-padding" [innerHTML]="text | translate"></ion-content>
|
|
38
|
+
`, isInline: true, components: [{ type: i1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InfoModalComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{
|
|
42
|
+
selector: "smart-info-modal",
|
|
43
|
+
template: `
|
|
44
|
+
<ion-content class="ion-padding" [innerHTML]="text | translate"></ion-content>
|
|
45
|
+
`,
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
47
|
+
}]
|
|
48
|
+
}], ctorParameters: function () { return [{ type: i1.NavParams }]; } });
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9pbmZvL2luZm8uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW5mby9pbmZvLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFT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AgICAgICAgYXdhaXQgcG9wb3Zlci5wcmVzZW50KCk7XG4gICAgfVxufVxuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogXCJzbWFydC1pbmZvLW1vZGFsXCIsXG4gICAgdGVtcGxhdGU6IGBcbiAgICAgICAgPGlvbi1jb250ZW50IGNsYXNzPVwiaW9uLXBhZGRpbmdcIiBbaW5uZXJIVE1MXT1cInRleHQgfCB0cmFuc2xhdGVcIj48L2lvbi1jb250ZW50PlxuICAgIGAsXG4gICAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2hcbn0pXG5leHBvcnQgY2xhc3MgSW5mb01vZGFsQ29tcG9uZW50IHtcbiAgICB0ZXh0OiBzdHJpbmc7XG5cbiAgICBjb25zdHJ1Y3RvcihwYXJhbXM6IE5hdlBhcmFtcykge1xuICAgICAgICB0aGlzLnRleHQgPSBwYXJhbXMuZ2V0KCd0ZXh0Jyk7XG4gICAgfVxufSIsIjxpb24taWNvbiBuYW1lPVwiaW5mb3JtYXRpb24tY2lyY2xlLW91dGxpbmVcIiAoY2xpY2spPVwib25DbGljaygkZXZlbnQpXCI+PC9pb24taWNvbj4iXX0=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
2
|
+
import { InputBaseComponent } from "../base/base.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ionic/angular";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import * as i4 from "../../../pipes/model-label/model-label.pipe";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
export class InputAddressComponent extends InputBaseComponent {
|
|
10
|
+
constructor(cd) {
|
|
11
|
+
super(cd);
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() { }
|
|
14
|
+
}
|
|
15
|
+
/** @nocollapse */ /** @nocollapse */ InputAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputAddressComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
/** @nocollapse */ /** @nocollapse */ InputAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: InputAddressComponent, selector: "smart-input-address", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control\">\n <br/>\n <ion-label>\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n\n <ion-list [formGroup]=\"control\">\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.city' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"city\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.zipCode' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"zipCode\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.street' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"street\" [attr.autofocus]=\"fieldOptions?.focused\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.buildingNumber' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"buildingNumber\"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.flatNumber' | translate }}\n </ion-label>\n <ion-input formControlName=\"flatNumber\"></ion-input>\n </ion-item>\n </ion-list>\n</ng-container>\n", styles: [":root{--smart-color-primary: #0f4c81;--smart-color-primary-rgb: 15, 76, 129;--smart-color-primary-contrast: #ffffff;--smart-color-primary-contrast-rgb: 255, 255, 255;--smart-color-primary-shade: #0d4372;--smart-color-primary-tint: #275e8e;--smart-color-secondary: #1568b0;--smart-color-secondary-rgb: 21, 104, 176;--smart-color-secondary-contrast: #ffffff;--smart-color-secondary-contrast-rgb: 255, 255, 255;--smart-color-secondary-shade: #125c9b;--smart-color-secondary-tint: #2c77b8;--smart-color-tertiary: #0c2949;--smart-color-tertiary-rgb: 12, 41, 73;--smart-color-tertiary-contrast: #ffffff;--smart-color-tertiary-contrast-rgb: 255, 255, 255;--smart-color-tertiary-shade: #0b2440;--smart-color-tertiary-tint: #243e5b;--smart-color-success: #2dd36f;--smart-color-success-rgb: 45, 211, 111;--smart-color-success-contrast: #ffffff;--smart-color-success-contrast-rgb: 255, 255, 255;--smart-color-success-shade: #28ba62;--smart-color-success-tint: #42d77d;--smart-color-warning: #ffc409;--smart-color-warning-rgb: 255, 196, 9;--smart-color-warning-contrast: #000000;--smart-color-warning-contrast-rgb: 0, 0, 0;--smart-color-warning-shade: #e0ac08;--smart-color-warning-tint: #ffca22;--smart-color-danger: #eb445a;--smart-color-danger-rgb: 235, 68, 90;--smart-color-danger-contrast: #ffffff;--smart-color-danger-contrast-rgb: 255, 255, 255;--smart-color-danger-shade: #cf3c4f;--smart-color-danger-tint: #ed576b;--smart-color-dark: #222428;--smart-color-dark-rgb: 34, 36, 40;--smart-color-dark-contrast: #ffffff;--smart-color-dark-contrast-rgb: 255, 255, 255;--smart-color-dark-shade: #1e2023;--smart-color-dark-tint: #383a3e;--smart-color-medium: #92949c;--smart-color-medium-rgb: 146, 148, 156;--smart-color-medium-contrast: #ffffff;--smart-color-medium-contrast-rgb: 255, 255, 255;--smart-color-medium-shade: #808289;--smart-color-medium-tint: #9d9fa6;--smart-color-light: #f4f5f8;--smart-color-light-rgb: 244, 245, 248;--smart-color-light-contrast: #000000;--smart-color-light-contrast-rgb: 0, 0, 0;--smart-color-light-shade: #d7d8da;--smart-color-light-tint: #f5f6f9}:root{--smart-button-height: 3.6rem;--smart-button-min-width: 3.6rem;--smart-button-padding-right: 1.6rem;--smart-button-padding-left: 1.6rem;--smart-button-padding-top: .9rem;--smart-button-padding-bottom: .9rem;--smart-button-icon-size: 1.8rem}@font-face{font-family:SF Display;font-weight:900;src:url(https://sf.abarba.me/SF-UI-Display-Black.otf)}@font-face{font-family:SF Display;font-weight:700;src:url(https://sf.abarba.me/SF-UI-Display-Bold.otf)}@font-face{font-family:SF Display;font-weight:800;src:url(https://sf.abarba.me/SF-UI-Display-Heavy.otf)}@font-face{font-family:SF Display;font-weight:200;src:url(https://sf.abarba.me/SF-UI-Display-Light.otf)}@font-face{font-family:SF Display;font-weight:500;src:url(https://sf.abarba.me/SF-UI-Display-Medium.otf)}@font-face{font-family:SF Display;font-weight:400;src:url(https://sf.abarba.me/SF-UI-Display-Regular.otf)}@font-face{font-family:SF Display;font-weight:600;src:url(https://sf.abarba.me/SF-UI-Display-Semibold.otf)}@font-face{font-family:SF Display;font-weight:300;src:url(https://sf.abarba.me/SF-UI-Display-Thin.otf)}@font-face{font-family:SF Display;font-weight:100;src:url(https://sf.abarba.me/SF-UI-Display-Ultralight.otf)}@font-face{font-family:SF Text;font-weight:700;src:url(https://sf.abarba.me/SF-UI-Text-Bold.otf)}@font-face{font-family:SF Text;font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-BoldItalic.otf)}@font-face{font-family:SF Text;font-weight:800;src:url(https://sf.abarba.me/SF-UI-Text-Heavy.otf)}@font-face{font-family:SF Text;font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-HeavyItalic.otf)}@font-face{font-family:SF Text;font-weight:200;src:url(https://sf.abarba.me/SF-UI-Text-Light.otf)}@font-face{font-family:SF Text;font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-LightItalic.otf)}@font-face{font-family:SF Text;font-weight:500;src:url(https://sf.abarba.me/SF-UI-Text-Medium.otf)}@font-face{font-family:SF Text;font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-MediumItalic.otf)}@font-face{font-family:SF Text;font-weight:400;src:url(https://sf.abarba.me/SF-UI-Text-Regular.otf)}@font-face{font-family:SF Text;font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-RegularItalic.otf)}@font-face{font-family:SF Text;font-weight:600;src:url(https://sf.abarba.me/SF-UI-Text-Semibold.otf)}@font-face{font-family:SF Text;font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-SemiboldItalic.otf)}@font-face{font-family:SF Text;font-weight:100;src:url(https://sf.abarba.me/SF-UI-Text-Ultrathin.otf)}@font-face{font-family:SF Text;font-weight:100;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-UltrathinItalic.otf)}@font-face{font-family:SF Mono;font-weight:700;src:url(https://sf.abarba.me/SFMono-Bold.otf)}@font-face{font-family:SF Mono;font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SFMono-BoldItalic.otf)}@font-face{font-family:SF Mono;font-weight:800;src:url(https://sf.abarba.me/SFMono-Heavy.otf)}@font-face{font-family:SF Mono;font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SFMono-HeavyItalic.otf)}@font-face{font-family:SF Mono;font-weight:200;src:url(https://sf.abarba.me/SFMono-Light.otf)}@font-face{font-family:SF Mono;font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SFMono-LightItalic.otf)}@font-face{font-family:SF Mono;font-weight:500;src:url(https://sf.abarba.me/SFMono-Medium.otf)}@font-face{font-family:SF Mono;font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SFMono-MediumItalic.otf)}@font-face{font-family:SF Mono;font-weight:400;src:url(https://sf.abarba.me/SFMono-Regular.otf)}@font-face{font-family:SF Mono;font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SFMono-RegularItalic.otf)}@font-face{font-family:SF Mono;font-weight:600;src:url(https://sf.abarba.me/SFMono-Semibold.otf)}@font-face{font-family:SF Mono;font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SFMono-SemiboldItalic.otf)}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=biUEjW7P-lfzIZFXrcy-wQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=7KXg6nyyqN8gyMoNwQ7aOQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=daIfzbEw-lbjMyv4rMUUTj8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=iE8HhaRzdhPxC93dOdA05z8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=jB4HYzUnEmLtjz-UHQe60fesZW2xOQ-xsNqO47m55DA) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=vxNK-E6B13CyehuDCmvQvw) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=1_sFLBJZ_MiiGcnkjN_Mgg) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=MMDEOSa6i6T9gBocjYCJkQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=owYYXKukxFDFjr0ZO8NXhz8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=b9PWBSMHrT2zM5FgUdtu0T8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=d-QWLnp4didxos_6urzFtg) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=grlryt2bdKIyfMSOhzd1eA) format(\"woff\")}:root{--default-smart-font: \"Roboto\";--default-smart-font-size: 2.4rem;--default-smart-font-weight: 200;--default-smart-font-style: italic;--default-md-smart-font: \"Roboto\";--default-md-smart-font-size: 2.4rem;--default-md-smart-font-weight: bold;--default-md-smart-font-style: normal;--default-ios-smart-font: \"SF Text\";--default-ios-smart-font-size: 2.4rem;--default-ios-smart-font-weight: thin;--default-ios-smart-font-style: italic;--default-font-size: 14px;--small-font-size: 12px}:root{--smart-phone-breakpoint: 420px;--smart-tablet-breakpoint: 860px}.smart-bg-container{background:url(../assets/smart-bg.png) no-repeat center center}:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint);--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style);font-size:var(--default-font-size);--ion-statusbar-padding: 0;--ion-safe-area-top: 0;--ion-safe-area-right: 0;--ion-safe-area-bottom: 0;--ion-safe-area-left: 0;--phone-breakpoint: var(--smart-phone-breakpoint);--tablet-breakpoint: var(--smart-tablet-breakpoint)}@media (prefers-color-scheme: dark){:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint)}.ios body,.md body{--ion-background-color: #ffffff;--ion-background-color-rgb: 255, 255, 255;--ion-text-color: #000000;--ion-text-color-rgb: 0, 0, 0;--ion-color-step-50: #f2f2f2;--ion-color-step-100: #e6e6e6;--ion-color-step-150: #d9d9d9;--ion-color-step-200: #cccccc;--ion-color-step-250: #bfbfbf;--ion-color-step-300: #b3b3b3;--ion-color-step-350: #a6a6a6;--ion-color-step-400: #999999;--ion-color-step-450: #8c8c8c;--ion-color-step-500: #808080;--ion-color-step-550: #737373;--ion-color-step-600: #666666;--ion-color-step-650: #595959;--ion-color-step-700: #4d4d4d;--ion-color-step-750: #404040;--ion-color-step-800: #333333;--ion-color-step-850: #262626;--ion-color-step-900: #191919;--ion-color-step-950: #0d0d0d;--ion-toolbar-background: inherit;--ion-item-background: #FFF;--ion-card-background: #FFF}}:root[mode=md]{--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style)}:root[mode=ios]{--ion-font-family: var(--default-ios-smart-font);--default-font-weight: var(--default-ios-smart-font-weight);--default-font-style: var(--$default-ios-smart-font-style)}*{box-sizing:border-box}html{font-family:var(--ion-font-family);font-weight:var(--default-font-weight);font-style:var(--default-font-style);font-size:62.5%!important}body{font-size:var(--default-font-size)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:var(--smart-color-secondary)}.mat-stepper-next{background-color:var(--smart-color-primary);border:.1rem solid var(--smart-color-primary);color:var(--smart-color-light);height:3.6rem;padding:0 .9rem;vertical-align:middle}.mat-stepper-previous{height:3.6rem;border:.1rem solid #dedede;color:#777;margin-right:.6rem;padding:0 .9rem;vertical-align:middle}ion-alert .alert-checkbox-group .alert-tappable{height:7rem!important;border:.1rem solid #efefef}ion-alert .alert-checkbox-group .alert-tappable .alert-checkbox-label{padding:.6rem 2.4rem .6rem 5.2rem!important;font-size:1.5rem!important}ion-alert .alert-checkbox-group .alert-checkbox-label{white-space:normal!important;word-wrap:break-word!important}tr.cdk-row:nth-child(even){background-color:#fdfdfd}tr.cdk-row:hover{background-color:rgba(var(--smart-color-primary-rgb),.05)!important}td.cdk-cell{padding-left:.6rem!important;border-right:.1rem solid #f6f6f6;border-bottom:.1rem solid #e6e6e6;text-overflow:unset}td.cdk-cell:last-child{border-right:0}td.cdk-cell:first-child{padding-left:1.2rem!important}th{background-color:var(--smart-color-light);padding-left:.6rem!important;text-align:left!important}th.cdk-header-cell{color:var(--smart-color-secondary)!important}th:first-child{padding-left:1.2rem!important}th .cdk-sort-header-button{color:var(--smart-color-secondary)}.label-floating{--color: var(--smart-color-medium)}.label-floating.ios{--color: var(--smart-color-medium);margin-top:.6rem!important}\n"], components: [{ type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i1.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i1.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "size", "spellcheck", "step", "type", "value"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "async": i2.AsyncPipe, "smartModelLabel": i4.ModelLabelPipe, "translate": i5.TranslatePipe } });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputAddressComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: 'smart-input-address', template: "<ng-container *ngIf=\"control\">\n <br/>\n <ion-label>\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n\n <ion-list [formGroup]=\"control\">\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.city' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"city\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.zipCode' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"zipCode\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.street' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"street\" [attr.autofocus]=\"fieldOptions?.focused\"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.buildingNumber' | translate }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-input formControlName=\"buildingNumber\"></ion-input>\n </ion-item>\n <ion-item>\n <ion-label position=\"floating\">\n {{ 'MODEL.flatNumber' | translate }}\n </ion-label>\n <ion-input formControlName=\"flatNumber\"></ion-input>\n </ion-item>\n </ion-list>\n</ng-container>\n", styles: [":root{--smart-color-primary: #0f4c81;--smart-color-primary-rgb: 15, 76, 129;--smart-color-primary-contrast: #ffffff;--smart-color-primary-contrast-rgb: 255, 255, 255;--smart-color-primary-shade: #0d4372;--smart-color-primary-tint: #275e8e;--smart-color-secondary: #1568b0;--smart-color-secondary-rgb: 21, 104, 176;--smart-color-secondary-contrast: #ffffff;--smart-color-secondary-contrast-rgb: 255, 255, 255;--smart-color-secondary-shade: #125c9b;--smart-color-secondary-tint: #2c77b8;--smart-color-tertiary: #0c2949;--smart-color-tertiary-rgb: 12, 41, 73;--smart-color-tertiary-contrast: #ffffff;--smart-color-tertiary-contrast-rgb: 255, 255, 255;--smart-color-tertiary-shade: #0b2440;--smart-color-tertiary-tint: #243e5b;--smart-color-success: #2dd36f;--smart-color-success-rgb: 45, 211, 111;--smart-color-success-contrast: #ffffff;--smart-color-success-contrast-rgb: 255, 255, 255;--smart-color-success-shade: #28ba62;--smart-color-success-tint: #42d77d;--smart-color-warning: #ffc409;--smart-color-warning-rgb: 255, 196, 9;--smart-color-warning-contrast: #000000;--smart-color-warning-contrast-rgb: 0, 0, 0;--smart-color-warning-shade: #e0ac08;--smart-color-warning-tint: #ffca22;--smart-color-danger: #eb445a;--smart-color-danger-rgb: 235, 68, 90;--smart-color-danger-contrast: #ffffff;--smart-color-danger-contrast-rgb: 255, 255, 255;--smart-color-danger-shade: #cf3c4f;--smart-color-danger-tint: #ed576b;--smart-color-dark: #222428;--smart-color-dark-rgb: 34, 36, 40;--smart-color-dark-contrast: #ffffff;--smart-color-dark-contrast-rgb: 255, 255, 255;--smart-color-dark-shade: #1e2023;--smart-color-dark-tint: #383a3e;--smart-color-medium: #92949c;--smart-color-medium-rgb: 146, 148, 156;--smart-color-medium-contrast: #ffffff;--smart-color-medium-contrast-rgb: 255, 255, 255;--smart-color-medium-shade: #808289;--smart-color-medium-tint: #9d9fa6;--smart-color-light: #f4f5f8;--smart-color-light-rgb: 244, 245, 248;--smart-color-light-contrast: #000000;--smart-color-light-contrast-rgb: 0, 0, 0;--smart-color-light-shade: #d7d8da;--smart-color-light-tint: #f5f6f9}:root{--smart-button-height: 3.6rem;--smart-button-min-width: 3.6rem;--smart-button-padding-right: 1.6rem;--smart-button-padding-left: 1.6rem;--smart-button-padding-top: .9rem;--smart-button-padding-bottom: .9rem;--smart-button-icon-size: 1.8rem}@font-face{font-family:SF Display;font-weight:900;src:url(https://sf.abarba.me/SF-UI-Display-Black.otf)}@font-face{font-family:SF Display;font-weight:700;src:url(https://sf.abarba.me/SF-UI-Display-Bold.otf)}@font-face{font-family:SF Display;font-weight:800;src:url(https://sf.abarba.me/SF-UI-Display-Heavy.otf)}@font-face{font-family:SF Display;font-weight:200;src:url(https://sf.abarba.me/SF-UI-Display-Light.otf)}@font-face{font-family:SF Display;font-weight:500;src:url(https://sf.abarba.me/SF-UI-Display-Medium.otf)}@font-face{font-family:SF Display;font-weight:400;src:url(https://sf.abarba.me/SF-UI-Display-Regular.otf)}@font-face{font-family:SF Display;font-weight:600;src:url(https://sf.abarba.me/SF-UI-Display-Semibold.otf)}@font-face{font-family:SF Display;font-weight:300;src:url(https://sf.abarba.me/SF-UI-Display-Thin.otf)}@font-face{font-family:SF Display;font-weight:100;src:url(https://sf.abarba.me/SF-UI-Display-Ultralight.otf)}@font-face{font-family:SF Text;font-weight:700;src:url(https://sf.abarba.me/SF-UI-Text-Bold.otf)}@font-face{font-family:SF Text;font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-BoldItalic.otf)}@font-face{font-family:SF Text;font-weight:800;src:url(https://sf.abarba.me/SF-UI-Text-Heavy.otf)}@font-face{font-family:SF Text;font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-HeavyItalic.otf)}@font-face{font-family:SF Text;font-weight:200;src:url(https://sf.abarba.me/SF-UI-Text-Light.otf)}@font-face{font-family:SF Text;font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-LightItalic.otf)}@font-face{font-family:SF Text;font-weight:500;src:url(https://sf.abarba.me/SF-UI-Text-Medium.otf)}@font-face{font-family:SF Text;font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-MediumItalic.otf)}@font-face{font-family:SF Text;font-weight:400;src:url(https://sf.abarba.me/SF-UI-Text-Regular.otf)}@font-face{font-family:SF Text;font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-RegularItalic.otf)}@font-face{font-family:SF Text;font-weight:600;src:url(https://sf.abarba.me/SF-UI-Text-Semibold.otf)}@font-face{font-family:SF Text;font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-SemiboldItalic.otf)}@font-face{font-family:SF Text;font-weight:100;src:url(https://sf.abarba.me/SF-UI-Text-Ultrathin.otf)}@font-face{font-family:SF Text;font-weight:100;font-style:italic;src:url(https://sf.abarba.me/SF-UI-Text-UltrathinItalic.otf)}@font-face{font-family:SF Mono;font-weight:700;src:url(https://sf.abarba.me/SFMono-Bold.otf)}@font-face{font-family:SF Mono;font-weight:700;font-style:italic;src:url(https://sf.abarba.me/SFMono-BoldItalic.otf)}@font-face{font-family:SF Mono;font-weight:800;src:url(https://sf.abarba.me/SFMono-Heavy.otf)}@font-face{font-family:SF Mono;font-weight:800;font-style:italic;src:url(https://sf.abarba.me/SFMono-HeavyItalic.otf)}@font-face{font-family:SF Mono;font-weight:200;src:url(https://sf.abarba.me/SFMono-Light.otf)}@font-face{font-family:SF Mono;font-weight:200;font-style:italic;src:url(https://sf.abarba.me/SFMono-LightItalic.otf)}@font-face{font-family:SF Mono;font-weight:500;src:url(https://sf.abarba.me/SFMono-Medium.otf)}@font-face{font-family:SF Mono;font-weight:500;font-style:italic;src:url(https://sf.abarba.me/SFMono-MediumItalic.otf)}@font-face{font-family:SF Mono;font-weight:400;src:url(https://sf.abarba.me/SFMono-Regular.otf)}@font-face{font-family:SF Mono;font-weight:400;font-style:italic;src:url(https://sf.abarba.me/SFMono-RegularItalic.otf)}@font-face{font-family:SF Mono;font-weight:600;src:url(https://sf.abarba.me/SFMono-Semibold.otf)}@font-face{font-family:SF Mono;font-weight:600;font-style:italic;src:url(https://sf.abarba.me/SFMono-SemiboldItalic.otf)}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=biUEjW7P-lfzIZFXrcy-wQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=7KXg6nyyqN8gyMoNwQ7aOQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:500;src:url(https://themes.googleusercontent.com/font?kit=daIfzbEw-lbjMyv4rMUUTj8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=iE8HhaRzdhPxC93dOdA05z8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=jB4HYzUnEmLtjz-UHQe60fesZW2xOQ-xsNqO47m55DA) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=vxNK-E6B13CyehuDCmvQvw) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=1_sFLBJZ_MiiGcnkjN_Mgg) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(https://themes.googleusercontent.com/font?kit=MMDEOSa6i6T9gBocjYCJkQ) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:700;src:url(https://themes.googleusercontent.com/font?kit=owYYXKukxFDFjr0ZO8NXhz8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:italic;font-weight:900;src:url(https://themes.googleusercontent.com/font?kit=b9PWBSMHrT2zM5FgUdtu0T8E0i7KZn-EPnyo3HZu7kw) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(https://themes.googleusercontent.com/font?kit=d-QWLnp4didxos_6urzFtg) format(\"woff\")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://themes.googleusercontent.com/font?kit=grlryt2bdKIyfMSOhzd1eA) format(\"woff\")}:root{--default-smart-font: \"Roboto\";--default-smart-font-size: 2.4rem;--default-smart-font-weight: 200;--default-smart-font-style: italic;--default-md-smart-font: \"Roboto\";--default-md-smart-font-size: 2.4rem;--default-md-smart-font-weight: bold;--default-md-smart-font-style: normal;--default-ios-smart-font: \"SF Text\";--default-ios-smart-font-size: 2.4rem;--default-ios-smart-font-weight: thin;--default-ios-smart-font-style: italic;--default-font-size: 14px;--small-font-size: 12px}:root{--smart-phone-breakpoint: 420px;--smart-tablet-breakpoint: 860px}.smart-bg-container{background:url(../assets/smart-bg.png) no-repeat center center}:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint);--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style);font-size:var(--default-font-size);--ion-statusbar-padding: 0;--ion-safe-area-top: 0;--ion-safe-area-right: 0;--ion-safe-area-bottom: 0;--ion-safe-area-left: 0;--phone-breakpoint: var(--smart-phone-breakpoint);--tablet-breakpoint: var(--smart-tablet-breakpoint)}@media (prefers-color-scheme: dark){:root{--ion-color-primary: var(--smart-color-primary);--ion-color-primary-rgb: var(--smart-color-primary-rgb);--ion-color-primary-contrast: var(--smart-color-primary-contrast);--ion-color-primary-contrast-rgb: var(--smart-color-primary-contrast-rgb);--ion-color-primary-shade: var(--smart-color-primary-shade);--ion-color-primary-tint: var(--smart-color-primary-tint);--ion-color-secondary: var(--smart-color-secondary);--ion-color-secondary-rgb: var(--smart-color-secondary-rgb);--ion-color-secondary-contrast: var(--smart-color-secondary-contrast);--ion-color-secondary-contrast-rgb: var(--smart-color-secondary-contrast-rgb);--ion-color-secondary-shade: var(--smart-color-secondary-shade);--ion-color-secondary-tint: var(--smart-color-secondary-tint);--ion-color-tertiary: var(--smart-color-tertiary);--ion-color-tertiary-rgb: var(--smart-color-tertiary-rgb);--ion-color-tertiary-contrast: var(--smart-color-tertiary-contrast);--ion-color-tertiary-contrast-rgb: var(--smart-color-tertiary-contrast-rgb);--ion-color-tertiary-shade: var(--smart-color-tertiary-shade);--ion-color-tertiary-tint: var(--smart-color-tertiary-tint);--ion-color-success: var(--smart-color-success);--ion-color-success-rgb: var(--smart-color-success-rgb);--ion-color-success-contrast: var(--smart-color-success-contrast);--ion-color-success-contrast-rgb: var(--smart-color-success-contrast-rgb);--ion-color-success-shade: var(--smart-color-success-shade);--ion-color-success-tint: var(--smart-color-success-tint);--ion-color-warning: var(--smart-color-warning);--ion-color-warning-rgb: var(--smart-color-warning-rgb);--ion-color-warning-contrast: var(--smart-color-warning-contrast);--ion-color-warning-contrast-rgb: var(--smart-color-warning-rgb);--ion-color-warning-shade: var(--smart-color-warning-shade);--ion-color-warning-tint: var(--smart-color-warning-tint);--ion-color-danger: var(--smart-color-danger);--ion-color-danger-rgb: var(--smart-color-danger-rgb);--ion-color-danger-contrast: var(--smart-color-danger-contrast);--ion-color-danger-contrast-rgb: var(--smart-color-danger-contrast-rgb);--ion-color-danger-shade: var(--smart-color-danger-shade);--ion-color-danger-tint: var(--smart-color-danger-tint);--ion-color-dark: var(--smart-color-dark);--ion-color-dark-rgb: var(--smart-color-dark-rgb);--ion-color-dark-contrast: var(--smart-color-dark-contrast);--ion-color-dark-contrast-rgb: var(--smart-color-dark-contrast-rgb);--ion-color-dark-shade: var(--smart-color-dark-shade);--ion-color-dark-tint: var(--smart-color-dark-tint);--ion-color-medium: var(--smart-color-medium);--ion-color-medium-rgb: var(--smart-color-medium-rgb);--ion-color-medium-contrast: var(--smart-color-medium-contrast);--ion-color-medium-contrast-rgb: var(--smart-color-medium-contrast-rgb);--ion-color-medium-shade: var(--smart-color-medium-shade);--ion-color-medium-tint: var(--smart-color-medium-tint);--ion-color-light: var(--smart-color-light);--ion-color-light-rgb: var(--smart-color-light-rgb);--ion-color-light-contrast: var(--smart-color-light-contrast);--ion-color-light-contrast-rgb: var(--smart-color-light-contrast-rgb);--ion-color-light-shade: var(--smart-color-light-shade);--ion-color-light-tint: var(--smart-color-light-tint)}.ios body,.md body{--ion-background-color: #ffffff;--ion-background-color-rgb: 255, 255, 255;--ion-text-color: #000000;--ion-text-color-rgb: 0, 0, 0;--ion-color-step-50: #f2f2f2;--ion-color-step-100: #e6e6e6;--ion-color-step-150: #d9d9d9;--ion-color-step-200: #cccccc;--ion-color-step-250: #bfbfbf;--ion-color-step-300: #b3b3b3;--ion-color-step-350: #a6a6a6;--ion-color-step-400: #999999;--ion-color-step-450: #8c8c8c;--ion-color-step-500: #808080;--ion-color-step-550: #737373;--ion-color-step-600: #666666;--ion-color-step-650: #595959;--ion-color-step-700: #4d4d4d;--ion-color-step-750: #404040;--ion-color-step-800: #333333;--ion-color-step-850: #262626;--ion-color-step-900: #191919;--ion-color-step-950: #0d0d0d;--ion-toolbar-background: inherit;--ion-item-background: #FFF;--ion-card-background: #FFF}}:root[mode=md]{--ion-font-family: var(--default-md-smart-font);--default-font-weight: var(--default-md-smart-font-weight);--default-font-style: var(--default-md-smart-font-style)}:root[mode=ios]{--ion-font-family: var(--default-ios-smart-font);--default-font-weight: var(--default-ios-smart-font-weight);--default-font-style: var(--$default-ios-smart-font-style)}*{box-sizing:border-box}html{font-family:var(--ion-font-family);font-weight:var(--default-font-weight);font-style:var(--default-font-style);font-size:62.5%!important}body{font-size:var(--default-font-size)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:var(--smart-color-secondary)}.mat-stepper-next{background-color:var(--smart-color-primary);border:.1rem solid var(--smart-color-primary);color:var(--smart-color-light);height:3.6rem;padding:0 .9rem;vertical-align:middle}.mat-stepper-previous{height:3.6rem;border:.1rem solid #dedede;color:#777;margin-right:.6rem;padding:0 .9rem;vertical-align:middle}ion-alert .alert-checkbox-group .alert-tappable{height:7rem!important;border:.1rem solid #efefef}ion-alert .alert-checkbox-group .alert-tappable .alert-checkbox-label{padding:.6rem 2.4rem .6rem 5.2rem!important;font-size:1.5rem!important}ion-alert .alert-checkbox-group .alert-checkbox-label{white-space:normal!important;word-wrap:break-word!important}tr.cdk-row:nth-child(even){background-color:#fdfdfd}tr.cdk-row:hover{background-color:rgba(var(--smart-color-primary-rgb),.05)!important}td.cdk-cell{padding-left:.6rem!important;border-right:.1rem solid #f6f6f6;border-bottom:.1rem solid #e6e6e6;text-overflow:unset}td.cdk-cell:last-child{border-right:0}td.cdk-cell:first-child{padding-left:1.2rem!important}th{background-color:var(--smart-color-light);padding-left:.6rem!important;text-align:left!important}th.cdk-header-cell{color:var(--smart-color-secondary)!important}th:first-child{padding-left:1.2rem!important}th .cdk-sort-header-button{color:var(--smart-color-secondary)}.label-floating{--color: var(--smart-color-medium)}.label-floating.ios{--color: var(--smart-color-medium);margin-top:.6rem!important}\n"] }]
|
|
20
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9pbnB1dC9hZGRyZXNzL2FkZHJlc3MuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQvYWRkcmVzcy9hZGRyZXNzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU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hdGUgfX1cbiAgICAgICAgICAgICAgICA8aW9uLXRleHQgY29sb3I9XCJkYW5nZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJyZXF1aXJlZFwiPio8L3NwYW4+XG4gICAgICAgICAgICAgICAgPC9pb24tdGV4dD5cbiAgICAgICAgICAgIDwvaW9uLWxhYmVsPlxuICAgICAgICAgICAgPGlvbi1pbnB1dCBmb3JtQ29udHJvbE5hbWU9XCJ6aXBDb2RlXCI+PC9pb24taW5wdXQ+XG4gICAgICAgIDwvaW9uLWl0ZW0+XG5cbiAgICAgICAgPGlvbi1pdGVtPlxuICAgICAgICAgICAgPGlvbi1sYWJlbCBwb3NpdGlvbj1cImZsb2F0aW5nXCI+XG4gICAgICAgICAgICAgICAge3sgJ01PREVMLnN0cmVldCcgfCB0cmFuc2xhdGUgfX1cbiAgICAgICAgICAgICAgICA8aW9uLXRleHQgY29sb3I9XCJkYW5nZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJyZXF1aXJlZFwiPio8L3NwYW4+XG4gICAgICAgICAgICAgICAgPC9pb24tdGV4dD5cbiAgICAgICAgICAgIDwvaW9uLWxhYmVsPlxuICAgICAgICAgICAgPGlvbi1pbnB1dCBmb3JtQ29udHJvbE5hbWU9XCJzdHJlZXRcIiBbYXR0ci5hdXRvZm9jdXNdPVwiZmllbGRPcHRpb25zPy5mb2N1c2VkXCI+PC9pb24taW5wdXQ+XG4gICAgICAgIDwvaW9uLWl0ZW0+XG5cbiAgICAgICAgPGlvbi1pdGVtPlxuICAgICAgICAgICAgPGlvbi1sYWJlbCBwb3NpdGlvbj1cImZsb2F0aW5nXCI+XG4gICAgICAgICAgICAgICAge3sgJ01PREVMLmJ1aWxkaW5nTnVtYmVyJyB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgICAgIDxpb24tdGV4dCBjb2xvcj1cImRhbmdlclwiPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cInJlcXVpcmVkXCI+Kjwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8L2lvbi10ZXh0PlxuICAgICAgICAgICAgPC9pb24tbGFiZWw+XG4gICAgICAgICAgICA8aW9uLWlucHV0IGZvcm1Db250cm9sTmFtZT1cImJ1aWxkaW5nTnVtYmVyXCI+PC9pb24taW5wdXQ+XG4gICAgICAgIDwvaW9uLWl0ZW0+XG4gICAgICAgIDxpb24taXRlbT5cbiAgICAgICAgICAgIDxpb24tbGFiZWwgcG9zaXRpb249XCJmbG9hdGluZ1wiPlxuICAgICAgICAgICAgICAgIHt7ICdNT0RFTC5mbGF0TnVtYmVyJyB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgPC9pb24tbGFiZWw+XG4gICAgICAgICAgICA8aW9uLWlucHV0IGZvcm1Db250cm9sTmFtZT1cImZsYXROdW1iZXJcIj48L2lvbi1pbnB1dD5cbiAgICAgICAgPC9pb24taXRlbT5cbiAgICA8L2lvbi1saXN0PlxuPC9uZy1jb250YWluZXI+XG4iXX0=
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Inject } from '@angular/core';
|
|
2
|
+
import { ObjectService } from "@smartsoft001/utils";
|
|
3
|
+
import { InputBaseComponent } from "../base/base.component";
|
|
4
|
+
import { FormFactory } from "../../../factories/form/form.factory";
|
|
5
|
+
import { FieldType, getModelFieldOptions, getModelOptions } from "@smartsoft001/models";
|
|
6
|
+
import { FORM_COMPONENT_TOKEN } from "../../../shared.inectors";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../../factories/form/form.factory";
|
|
9
|
+
import * as i2 from "@ionic/angular";
|
|
10
|
+
import * as i3 from "../../accordion/accordion.component";
|
|
11
|
+
import * as i4 from "../../accordion/header/header.component";
|
|
12
|
+
import * as i5 from "../../accordion/body/body.component";
|
|
13
|
+
import * as i6 from "../../button/button.component";
|
|
14
|
+
import * as i7 from "@angular/common";
|
|
15
|
+
import * as i8 from "@angular/cdk/drag-drop";
|
|
16
|
+
import * as i9 from "ng-dynamic-component";
|
|
17
|
+
import * as i10 from "../../../pipes/model-label/model-label.pipe";
|
|
18
|
+
import * as i11 from "@ngx-translate/core";
|
|
19
|
+
export class InputArrayComponent extends InputBaseComponent {
|
|
20
|
+
constructor(cd, factory, formComponent) {
|
|
21
|
+
super(cd);
|
|
22
|
+
this.factory = factory;
|
|
23
|
+
this.formComponent = formComponent;
|
|
24
|
+
this.addButtonOptions = {
|
|
25
|
+
click: async () => {
|
|
26
|
+
const options = this.getOptions();
|
|
27
|
+
const modelOptions = getModelOptions(options.classType);
|
|
28
|
+
const control = await this.factory.create(new this.fieldOptions.classType(), {
|
|
29
|
+
mode: this.internalOptions.mode,
|
|
30
|
+
root: this.internalOptions.control.root
|
|
31
|
+
});
|
|
32
|
+
this.internalOptions.control.push(control);
|
|
33
|
+
this.childOptions.push({
|
|
34
|
+
treeLevel: this.internalOptions.treeLevel + 1,
|
|
35
|
+
mode: this.internalOptions.mode,
|
|
36
|
+
control,
|
|
37
|
+
model: ObjectService.createByType(control.value, options.classType),
|
|
38
|
+
fieldOptions: options,
|
|
39
|
+
modelOptions,
|
|
40
|
+
show: true
|
|
41
|
+
});
|
|
42
|
+
this.control.markAsDirty();
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
this.cd.detectChanges();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.FieldType = FieldType;
|
|
49
|
+
}
|
|
50
|
+
afterSetOptionsHandler() {
|
|
51
|
+
this.initData();
|
|
52
|
+
}
|
|
53
|
+
onRemove(index) {
|
|
54
|
+
this.internalOptions.control.removeAt(index);
|
|
55
|
+
this.initData();
|
|
56
|
+
this.control.markAsDirty();
|
|
57
|
+
this.control.setValue(this.childOptions.map(o => o.control.value));
|
|
58
|
+
}
|
|
59
|
+
ngOnInit() { }
|
|
60
|
+
initData() {
|
|
61
|
+
this.childOptions = this.internalOptions.control.controls.map(control => {
|
|
62
|
+
const options = this.getOptions();
|
|
63
|
+
const modelOptions = getModelOptions(options.classType);
|
|
64
|
+
return {
|
|
65
|
+
treeLevel: this.internalOptions.treeLevel + 1,
|
|
66
|
+
mode: this.internalOptions.mode,
|
|
67
|
+
control,
|
|
68
|
+
model: ObjectService.createByType(control.value, options.classType),
|
|
69
|
+
fieldOptions: options,
|
|
70
|
+
modelOptions,
|
|
71
|
+
show: false
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
this.internalOptions.control.valueChanges
|
|
75
|
+
.pipe(this.takeUntilDestroy)
|
|
76
|
+
.subscribe(val => {
|
|
77
|
+
this.control.markAsDirty();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
drop(event) {
|
|
81
|
+
this.control.markAsDirty();
|
|
82
|
+
const swapArray = function (arr, index1, index2) {
|
|
83
|
+
const temp = arr[index1];
|
|
84
|
+
arr[index1] = arr[index2];
|
|
85
|
+
arr[index2] = temp;
|
|
86
|
+
};
|
|
87
|
+
swapArray(this.childOptions, event.previousIndex, event.currentIndex);
|
|
88
|
+
const swapFormArray = function (arr, index1, index2) {
|
|
89
|
+
const c1 = arr.at(index1);
|
|
90
|
+
const c2 = arr.at(index2);
|
|
91
|
+
arr.controls[index2] = c1;
|
|
92
|
+
arr.controls[index1] = c2;
|
|
93
|
+
};
|
|
94
|
+
swapFormArray(this.control, event.previousIndex, event.currentIndex);
|
|
95
|
+
this.control.updateValueAndValidity();
|
|
96
|
+
}
|
|
97
|
+
getOptions() {
|
|
98
|
+
const options = this.internalOptions.model[0] && this.internalOptions.model[0][this.internalOptions.fieldKey] ?
|
|
99
|
+
getModelFieldOptions(this.internalOptions.model[0], this.internalOptions.fieldKey)
|
|
100
|
+
: getModelFieldOptions(this.internalOptions.model, this.internalOptions.fieldKey);
|
|
101
|
+
return options;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/** @nocollapse */ /** @nocollapse */ InputArrayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputArrayComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FormFactory }, { token: FORM_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
+
/** @nocollapse */ /** @nocollapse */ InputArrayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: InputArrayComponent, selector: "smart-input-array", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control\">\n <ion-label position=\"static\">\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-list class=\"array\"\n cdkDropList\n [cdkDropListDisabled]=\"fieldOptions?.possibilities?.static\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <ion-item class=\"array-box\" *ngFor=\"let options of childOptions; let index = index\" lines=\"none\" cdkDrag>\n <ion-card *ngIf=\"!(fieldOptions?.possibilities?.static); else staticCardTpl\">\n <smart-accordion [(show)]=\"options.show\" >\n <smart-accordion-header>\n <ion-card-header>\n <ion-item lines=\"none\">\n <ion-label *ngIf=\"!options.show && options.control?.value[options.modelOptions.titleKey]\">\n {{ options.control.value[options.modelOptions.titleKey] | translate }}\n </ion-label>\n <ion-button (click)=\"onRemove(index)\" size=\"small\" fill=\"outline\" slot=\"end\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-item>\n </ion-card-header>\n </smart-accordion-header>\n <smart-accordion-body>\n <ion-card-content>\n <ng-template [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: options }\"\n ></ng-template>\n </ion-card-content>\n </smart-accordion-body>\n </smart-accordion>\n </ion-card>\n\n <ng-template #staticCardTpl>\n <ion-card>\n <ion-card-content>\n <ng-template [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: options }\"\n ></ng-template>\n </ion-card-content>\n </ion-card>\n </ng-template>\n </ion-item>\n </ion-list>\n <smart-button [options]=\"addButtonOptions\" class=\"add\" *ngIf=\"!(fieldOptions?.possibilities?.static)\">\n <span style=\"font-weight: 300\">{{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }} > </span><b>{{ 'add' | translate }}</b>\n </smart-button>\n</ng-container>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Icons\";@import\"https://fonts.googleapis.com/css2?family=Material+Icons+Outlined\";ion-label[position=static]{margin-top:1.6rem}.add{float:right}smart-form{width:100%;margin:.3rem 0;display:block;border-radius:.5rem}smart-form form{margin:0 -.9rem}smart-form ion-item{--padding-start: 0 !important;--padding-end: 0 !important;width:100%;padding-inline-end:0!important}smart-form[tree-level=\"1\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"2\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"2\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"2\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}smart-form[tree-level=\"3\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"3\"] .button-solid{--background: var(--smart-color-primary) !important;--color: var(--smart-color-light) !important}smart-form[tree-level=\"3\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#fff;background-color:var(--smart-color-primary)}smart-form[tree-level=\"4\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"4\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"4\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}smart-form[tree-level=\"5\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"5\"] .button-solid{--background: var(--smart-color-primary) !important;--color: var(--smart-color-light) !important}smart-form[tree-level=\"5\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#fff;background-color:var(--smart-color-primary)}smart-form[tree-level=\"6\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"6\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"6\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}.cdk-drag-disabled smart-form[tree-level=\"1\"],.cdk-drag-disabled smart-form[tree-level=\"2\"],.cdk-drag-disabled smart-form[tree-level=\"3\"],.cdk-drag-disabled smart-form[tree-level=\"4\"],.cdk-drag-disabled smart-form[tree-level=\"5\"],.cdk-drag-disabled smart-form[tree-level=\"6\"]{border-left:.1rem solid #dedede;border-bottom:.1rem solid #dedede}.cdk-drag-disabled smart-form[tree-level=\"1\"]:before,.cdk-drag-disabled smart-form[tree-level=\"2\"]:before,.cdk-drag-disabled smart-form[tree-level=\"3\"]:before,.cdk-drag-disabled smart-form[tree-level=\"4\"]:before,.cdk-drag-disabled smart-form[tree-level=\"5\"]:before,.cdk-drag-disabled smart-form[tree-level=\"6\"]:before{display:none}ion-card{width:100%;margin:.3rem;padding-left:0}ion-card ion-card-header{padding:0;margin:0}ion-card ion-card-header ion-item{margin:0}ion-card ion-card-header ion-item item-inner{margin:0;padding:0}ion-card ion-card-header ion-button[fill=outline]{--border-color: transparent !important;margin-right:-1.2rem}ion-card ion-card-content{padding:0}.array,.smart-list{max-width:100%;min-height:60px;display:block;border-radius:4px;overflow:hidden;padding-top:0!important;padding-bottom:0!important}.array-box{padding:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;font-size:14px;background-color:transparent;box-shadow:none}.cdk-drag-preview{margin:0;padding:0;box-sizing:border-box;border-radius:4px}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.array-box:last-child{border:none}.array.cdk-drop-list-dragging .array-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}smart-accordion-header{cursor:move}\n"], components: [{ type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i2.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i2.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i2.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i3.AccordionComponent, selector: "smart-accordion", inputs: ["show"], outputs: ["showChange"] }, { type: i4.AccordionHeaderComponent, selector: "smart-accordion-header" }, { type: i2.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { type: i2.IonIcon, selector: "ion-icon", inputs: ["ariaHidden", "ariaLabel", "color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { type: i5.AccordionBodyComponent, selector: "smart-accordion-body" }, { type: i2.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }, { type: i6.ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i7.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }, { type: i9.ComponentOutletInjectorDirective, selector: "[ngComponentOutlet]", exportAs: ["ndcComponentOutletInjector"] }, { type: i9.DynamicIoDirective, selector: "[ndcDynamicInputs],[ndcDynamicOutputs],[ngComponentOutletNdcDynamicInputs],[ngComponentOutletNdcDynamicOutputs]", inputs: ["ndcDynamicInputs", "ngComponentOutletNdcDynamicInputs", "ndcDynamicOutputs", "ngComponentOutletNdcDynamicOutputs"] }], pipes: { "async": i7.AsyncPipe, "smartModelLabel": i10.ModelLabelPipe, "translate": i11.TranslatePipe } });
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputArrayComponent, decorators: [{
|
|
107
|
+
type: Component,
|
|
108
|
+
args: [{ selector: 'smart-input-array', template: "<ng-container *ngIf=\"control\">\n <ion-label position=\"static\">\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label>\n <ion-list class=\"array\"\n cdkDropList\n [cdkDropListDisabled]=\"fieldOptions?.possibilities?.static\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n <ion-item class=\"array-box\" *ngFor=\"let options of childOptions; let index = index\" lines=\"none\" cdkDrag>\n <ion-card *ngIf=\"!(fieldOptions?.possibilities?.static); else staticCardTpl\">\n <smart-accordion [(show)]=\"options.show\" >\n <smart-accordion-header>\n <ion-card-header>\n <ion-item lines=\"none\">\n <ion-label *ngIf=\"!options.show && options.control?.value[options.modelOptions.titleKey]\">\n {{ options.control.value[options.modelOptions.titleKey] | translate }}\n </ion-label>\n <ion-button (click)=\"onRemove(index)\" size=\"small\" fill=\"outline\" slot=\"end\">\n <ion-icon name=\"close-outline\"></ion-icon>\n </ion-button>\n </ion-item>\n </ion-card-header>\n </smart-accordion-header>\n <smart-accordion-body>\n <ion-card-content>\n <ng-template [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: options }\"\n ></ng-template>\n </ion-card-content>\n </smart-accordion-body>\n </smart-accordion>\n </ion-card>\n\n <ng-template #staticCardTpl>\n <ion-card>\n <ion-card-content>\n <ng-template [ngComponentOutlet]=\"formComponent\"\n [ndcDynamicInputs]=\"{ options: options }\"\n ></ng-template>\n </ion-card-content>\n </ion-card>\n </ng-template>\n </ion-item>\n </ion-list>\n <smart-button [options]=\"addButtonOptions\" class=\"add\" *ngIf=\"!(fieldOptions?.possibilities?.static)\">\n <span style=\"font-weight: 300\">{{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }} > </span><b>{{ 'add' | translate }}</b>\n </smart-button>\n</ng-container>", styles: ["@import\"https://fonts.googleapis.com/css2?family=Material+Icons\";@import\"https://fonts.googleapis.com/css2?family=Material+Icons+Outlined\";ion-label[position=static]{margin-top:1.6rem}.add{float:right}smart-form{width:100%;margin:.3rem 0;display:block;border-radius:.5rem}smart-form form{margin:0 -.9rem}smart-form ion-item{--padding-start: 0 !important;--padding-end: 0 !important;width:100%;padding-inline-end:0!important}smart-form[tree-level=\"1\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"2\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"2\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"2\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}smart-form[tree-level=\"3\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"3\"] .button-solid{--background: var(--smart-color-primary) !important;--color: var(--smart-color-light) !important}smart-form[tree-level=\"3\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#fff;background-color:var(--smart-color-primary)}smart-form[tree-level=\"4\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"4\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"4\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}smart-form[tree-level=\"5\"]{margin:0!important;border-left:.2rem solid var(--smart-color-primary);border-bottom:.2rem solid var(--smart-color-primary)}smart-form[tree-level=\"5\"] .button-solid{--background: var(--smart-color-primary) !important;--color: var(--smart-color-light) !important}smart-form[tree-level=\"5\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#fff;background-color:var(--smart-color-primary)}smart-form[tree-level=\"6\"]{margin:0!important;border-left:.2rem solid #dedede;border-bottom:.2rem solid #dedede}smart-form[tree-level=\"6\"] .button-solid{--background: #dedede !important;--color: #333 !important}smart-form[tree-level=\"6\"]:before{box-sizing:border-box;position:absolute;display:block;width:4.8rem;height:5rem;border-radius:.5rem 50% 50% 0;z-index:666;left:0;top:-4.8rem;font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:2.4rem;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;content:\"open_with\";padding:1.3rem 0 0 .9rem;color:#999;background-color:#dedede}.cdk-drag-disabled smart-form[tree-level=\"1\"],.cdk-drag-disabled smart-form[tree-level=\"2\"],.cdk-drag-disabled smart-form[tree-level=\"3\"],.cdk-drag-disabled smart-form[tree-level=\"4\"],.cdk-drag-disabled smart-form[tree-level=\"5\"],.cdk-drag-disabled smart-form[tree-level=\"6\"]{border-left:.1rem solid #dedede;border-bottom:.1rem solid #dedede}.cdk-drag-disabled smart-form[tree-level=\"1\"]:before,.cdk-drag-disabled smart-form[tree-level=\"2\"]:before,.cdk-drag-disabled smart-form[tree-level=\"3\"]:before,.cdk-drag-disabled smart-form[tree-level=\"4\"]:before,.cdk-drag-disabled smart-form[tree-level=\"5\"]:before,.cdk-drag-disabled smart-form[tree-level=\"6\"]:before{display:none}ion-card{width:100%;margin:.3rem;padding-left:0}ion-card ion-card-header{padding:0;margin:0}ion-card ion-card-header ion-item{margin:0}ion-card ion-card-header ion-item item-inner{margin:0;padding:0}ion-card ion-card-header ion-button[fill=outline]{--border-color: transparent !important;margin-right:-1.2rem}ion-card ion-card-content{padding:0}.array,.smart-list{max-width:100%;min-height:60px;display:block;border-radius:4px;overflow:hidden;padding-top:0!important;padding-bottom:0!important}.array-box{padding:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;font-size:14px;background-color:transparent;box-shadow:none}.cdk-drag-preview{margin:0;padding:0;box-sizing:border-box;border-radius:4px}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.array-box:last-child{border:none}.array.cdk-drop-list-dragging .array-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}smart-accordion-header{cursor:move}\n"] }]
|
|
109
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FormFactory }, { type: undefined, decorators: [{
|
|
110
|
+
type: Inject,
|
|
111
|
+
args: [FORM_COMPONENT_TOKEN]
|
|
112
|
+
}] }]; } });
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQvYXJyYXkvYXJyYXkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQvYXJyYXkvYXJyYXkuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVMsTUFBT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29uc3Qgb3B0aW9ucyA9IHRoaXMuZ2V0T3B0aW9ucygpO1xuICAgICAgICAgICAgY29uc3QgbW9kZWxPcHRpb25zID0gZ2V0TW9kZWxPcHRpb25zKG9wdGlvbnMuY2xhc3NUeXBlKTtcbiAgICAgICAgICAgIGNvbnN0IGNvbnRyb2wgPSBhd2FpdCB0aGlzLmZhY3RvcnkuY3JlYXRlKFxuICAgICAgICAgICAgICAgIG5ldyB0aGlzLmZpZWxkT3B0aW9ucy5jbGFzc1R5cGUoKSxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIG1vZGU6IHRoaXMuaW50ZXJuYWxPcHRpb25zLm1vZGUsXG4gICAgICAgICAgICAgICAgICAgIHJvb3Q6IHRoaXMuaW50ZXJuYWxPcHRpb25zLmNvbnRyb2wucm9vdFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICAodGhpcy5pbnRlcm5hbE9wdGlvbnMuY29udHJvbCBhcyBGb3JtQXJyYXkpLnB1c2goY29udHJvbCk7XG4gICAgICAgICAgICB0aGlzLmNoaWxkT3B0aW9ucy5wdXNoKHtcbiAgICAgICAgICAgICAgICB0cmVlTGV2ZWw6IHRoaXMuaW50ZXJuYWxPcHRpb25zLnRyZWVMZXZlbCArIDEsXG4gICAgICAgICAgICAgICAgbW9kZTogdGhpcy5pbnRlcm5hbE9wdGlvbnMubW9kZSxcbiAgICAgICAgICAgICAgICBjb250cm9sLFxuICAgICAgICAgICAgICAgIG1vZGVsIDogT2JqZWN0U2VydmljZS5jcmVhdGVCeVR5cGUoY29udHJvbC52YWx1ZSwgb3B0aW9ucy5jbGFzc1R5cGUpLFxuICAgICAgICAgICAgICAgIGZpZWxkT3B0aW9uczogb3B0aW9ucyxcbiAgICAgICAgICAgICAgICBtb2RlbE9wdGlvbnMsXG4gICAgICAgICAgICAgICAgc2hvdzogdHJ1ZVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB0aGlz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wgPT4ge1xuICAgICAgICAgICAgY29uc3Qgb3B0aW9ucyA9IHRoaXMuZ2V0T3B0aW9ucygpO1xuICAgICAgICAgICAgY29uc3QgbW9kZWxPcHRpb25zID0gZ2V0TW9kZWxPcHRpb25zKG9wdGlvbnMuY2xhc3NUeXBlKTtcblxuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICB0cmVlTGV2ZWw6IHRoaXMuaW50ZXJuYWxPcHRpb25zLnRyZWVMZXZlbCArIDEsXG4gICAgICAgICAgICAgICAgbW9kZTogdGhpcy5pbnRlcm5hbE9wdGlvbnMubW9kZSxcbiAgICAgICAgICAgICAgICBjb250cm9sLFxuICAgICAgICAgICAgICAgIG1vZGVsIDogT2JqZWN0U2VydmljZS5jcmVhdGVCeVR5cGUoY29udHJvbC52YWx1ZSwgb3B0aW9ucy5jbGFzc1R5cGUpLFxuICAgICAgICAgICAgICAgIGZpZWxkT3B0aW9uczogb3B0aW9ucyxcbiAgICAgICAgICAgICAgICBtb2RlbE9wdGlvbnMsXG4gICAgICAgICAgICAgICAgc2hvdzogZmFsc2VcbiAgICAgICAgICAgIH0gYXMgSUZvcm1PcHRpb25zPFRDaGlsZD4gJiB7IGZpZWxkT3B0aW9uczogSUZpZWxkT3B0aW9ucywgbW9kZWxPcHRpb25zOiBJTW9kZWxPcHRpb25zIH07XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuaW50ZXJuYWxPcHRpb25zLmNvbnRyb2wudmFsdWVDaGFuZ2VzXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICB0aGlzLnRha2VVbnRpbERlc3Ryb3lcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUodmFsID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRyb2wubWFya0FzRGlydHkoKTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxuICAgIGRyb3AoZXZlbnQ6IENka0RyYWdEcm9wPFQsI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1cImRyb3AoJGV2ZW50KVwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGlvbi1pdGVtIGNsYXNzPVwiYXJyYXktYm94XCIgKm5nRm9yPVwibGV0IG9wdGlvbnMgb2YgY2hpbGRPcHRpb25zOyBsZXQgaW5kZXggPSBpbmRleFwiIGxpbmVzPVwibm9uZVwiIGNka0RyYWc+XG4gICAgICAgICAgICAgICAgICAgIDxpb24tY2FyZCAqbmdJZj1cIiEoZmllbGRPcHRpb25zPy5wb3NzaWJpbGl0aWVzPy5zdGF0aWMpOyBlbHNlIHN0YXRpY0NhcmRUcGxcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxzbWFydC1hY2NvcmRpb24gWyhzaG93KV09XCJvcHRpb25zLnNob3dcIiA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNtYXJ0LWFjY29yZGlvbi1oZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpb24tY2FyZC1oZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWl0ZW0gbGluZXM9XCJub25lXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1sYWJlbCAqbmdJZj1cIiFvcHRpb25zLnNob3cgJiYgb3B0aW9ucy5jb250cm9sPy52YWx1ZVtvcHRpb25zLm1vZGVsT3B0aW9ucy50aXRsZUtleV1cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgb3B0aW9ucy5jb250cm9sLnZhbHVlW29wdGlvbnMubW9kZWxPcHRpb25zLnRpdGxlS2V5XSB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaW9uLWxhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpb24tYnV0dG9uIChjbGljayk9XCJvblJlbW92ZShpbmRleClcIiBzaXplPVwic21hbGxcIiBmaWxsPVwib3V0bGluZVwiIHNsb3Q9XCJlbmRcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1pY29uIG5hbWU9XCJjbG9zZS1vdXRsaW5lXCI+PC9pb24taWNvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1idXR0b24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1pdGVtPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1jYXJkLWhlYWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NtYXJ0LWFjY29yZGlvbi1oZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNtYXJ0LWFjY29yZGlvbi1ib2R5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWNhcmQtY29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBbbmdDb21wb25lbnRPdXRsZXRdPVwiZm9ybUNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW25kY0R5bmFtaWNJbnB1dHNdPVwieyBvcHRpb25zOiBvcHRpb25zIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaW9uLWNhcmQtY29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NtYXJ0LWFjY29yZGlvbi1ib2R5PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9zbWFydC1hY2NvcmRpb24+XG4gICAgICAgICAgICAgICAgICAgIDwvaW9uLWNhcmQ+XG5cbiAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNzdGF0aWNDYXJkVHBsPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1jYXJkPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpb24tY2FyZC1jb250ZW50PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgW25nQ29tcG9uZW50T3V0bGV0XT1cImZvcm1Db21wb25lbnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW25kY0R5bmFtaWNJbnB1dHNdPVwieyBvcHRpb25zOiBvcHRpb25zIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+PC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1jYXJkLWNvbnRlbnQ+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1jYXJkPlxuICAgICAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgICAgIDwvaW9uLWl0ZW0+XG4gICAgICAgICAgICA8L2lvbi1saXN0PlxuICAgIDxzbWFydC1idXR0b24gW29wdGlvbnNdPVwiYWRkQnV0dG9uT3B0aW9uc1wiIGNsYXNzPVwiYWRkXCIgKm5nSWY9XCIhKGZpZWxkT3B0aW9ucz8ucG9zc2liaWxpdGllcz8uc3RhdGljKVwiPlxuICAgICAgICA8c3BhbiBzdHlsZT1cImZvbnQtd2VpZ2h0OiAzMDBcIj57eyBjb250cm9sPy5wYXJlbnQ/LnZhbHVlIHwgc21hcnRNb2RlbExhYmVsIDogaW50ZXJuYWxPcHRpb25zLmZpZWxkS2V5IDogaW50ZXJuYWxPcHRpb25zPy5tb2RlbD8uY29uc3RydWN0b3IgfCBhc3luYyB9fSA+ICZuYnNwOzwvc3Bhbj48Yj57eyAnYWRkJyB8IHRyYW5zbGF0ZSB9fTwvYj5cbiAgICA8L3NtYXJ0LWJ1dHRvbj5cbjwvbmctY29udGFpbmVyPiJdfQ==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Renderer2, } from '@angular/core';
|
|
2
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
3
|
+
import { InputFileBaseComponent } from "../base/file.component";
|
|
4
|
+
import { FileService } from "../../../services/file/file.service";
|
|
5
|
+
import { ToastService } from "../../../services/toast/toast.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../../services/file/file.service";
|
|
8
|
+
import * as i2 from "../../../services/toast/toast.service";
|
|
9
|
+
import * as i3 from "@ngx-translate/core";
|
|
10
|
+
import * as i4 from "@ionic/angular";
|
|
11
|
+
import * as i5 from "../../button/button.component";
|
|
12
|
+
import * as i6 from "@angular/common";
|
|
13
|
+
import * as i7 from "../../../pipes/model-label/model-label.pipe";
|
|
14
|
+
export class InputAttachmentComponent extends InputFileBaseComponent {
|
|
15
|
+
constructor(cd, renderer, fileService, toastService, translateService) {
|
|
16
|
+
super(cd, renderer, fileService, toastService, translateService);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/** @nocollapse */ /** @nocollapse */ InputAttachmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputAttachmentComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.FileService }, { token: i2.ToastService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
/** @nocollapse */ /** @nocollapse */ InputAttachmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: InputAttachmentComponent, selector: "smart-input-attachment", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control\">\n <ion-label position=\"floating\">\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ng-container *ngIf=\"control.value\">({{ control.value.fileName }})</ng-container>\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label><br/>\n <smart-button [options]=\"addButtonOptions\">{{ (control.value ? 'change' : 'add') | translate }}</smart-button>\n\n <smart-button *ngIf=\"control.value\" [options]=\"showButtonOptions\">{{ 'download' | translate }}</smart-button>\n\n <smart-button *ngIf=\"control.value\" [options]=\"deleteButtonOptions\">{{ 'delete' | translate }}</smart-button>\n\n <ion-progress-bar *ngIf=\"loading$ | async\" [value]=\"(percent$ | async) / 100\"></ion-progress-bar>\n</ng-container>\n<input type=\"file\" [attr.accept]=\"fieldOptions?.possibilities\" [hidden]=\"true\" #inputObj>\n", styles: [""], components: [{ type: i4.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i4.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i5.ButtonComponent, selector: "smart-button", inputs: ["options", "disabled"] }, { type: i4.IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i6.AsyncPipe, "smartModelLabel": i7.ModelLabelPipe, "translate": i3.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputAttachmentComponent, decorators: [{
|
|
22
|
+
type: Component,
|
|
23
|
+
args: [{ selector: "smart-input-attachment", changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"control\">\n <ion-label position=\"floating\">\n {{ control?.parent?.value | smartModelLabel : internalOptions.fieldKey : internalOptions?.model?.constructor | async }}\n <ng-container *ngIf=\"control.value\">({{ control.value.fileName }})</ng-container>\n <ion-text color=\"danger\">\n <span *ngIf=\"required\">*</span>\n </ion-text>\n </ion-label><br/>\n <smart-button [options]=\"addButtonOptions\">{{ (control.value ? 'change' : 'add') | translate }}</smart-button>\n\n <smart-button *ngIf=\"control.value\" [options]=\"showButtonOptions\">{{ 'download' | translate }}</smart-button>\n\n <smart-button *ngIf=\"control.value\" [options]=\"deleteButtonOptions\">{{ 'delete' | translate }}</smart-button>\n\n <ion-progress-bar *ngIf=\"loading$ | async\" [value]=\"(percent$ | async) / 100\"></ion-progress-bar>\n</ng-container>\n<input type=\"file\" [attr.accept]=\"fieldOptions?.possibilities\" [hidden]=\"true\" #inputObj>\n", styles: [""] }]
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i1.FileService }, { type: i2.ToastService }, { type: i3.TranslateService }]; } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0YWNobWVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9pbnB1dC9hdHRhY2htZW50L2F0dGFjaG1lbnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvaW5wdXQvYXR0YWNobWVudC9hdHRhY2htZW50LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFBRSxpQkFBaUIsRUFDMUMsU0FBUyxFQUNELFNBQVMsR0FDcEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFFckQsT0FBTyxFQUFDLHNCQUFzQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDOUQsT0FBTyxFQUFDLFd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eDetectorRef, Input, Directive } from "@angular/core";
|
|
2
|
+
import { BaseComponent } from "../../base";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class InputBaseComponent extends BaseComponent {
|
|
5
|
+
constructor(cd) {
|
|
6
|
+
super();
|
|
7
|
+
this.cd = cd;
|
|
8
|
+
}
|
|
9
|
+
set options(val) {
|
|
10
|
+
if (!val)
|
|
11
|
+
return;
|
|
12
|
+
this.internalOptions = val;
|
|
13
|
+
this.control = this.internalOptions.control;
|
|
14
|
+
this.possibilities$ = val.possibilities$;
|
|
15
|
+
this.setRequired();
|
|
16
|
+
this.afterSetOptionsHandler();
|
|
17
|
+
this.cd.detectChanges();
|
|
18
|
+
}
|
|
19
|
+
afterSetOptionsHandler() {
|
|
20
|
+
}
|
|
21
|
+
setRequired() {
|
|
22
|
+
const validator = this.control?.validator ? this.control.validator({}) : null;
|
|
23
|
+
this.required = validator && validator.required;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** @nocollapse */ /** @nocollapse */ InputBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputBaseComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
/** @nocollapse */ /** @nocollapse */ InputBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: InputBaseComponent, inputs: { fieldOptions: "fieldOptions", options: "options" }, usesInheritance: true, ngImport: i0 });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: InputBaseComponent, decorators: [{
|
|
29
|
+
type: Directive
|
|
30
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldOptions: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], options: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}] } });
|
|
35
|
+
//# sour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