@smartsoft001/angular 1.1.800 → 1.1.804
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 +27 -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 +6637 -0
- package/fesm2015/smartsoft001-angular.mjs.map +1 -0
- package/fesm2020/smartsoft001-angular.mjs +6536 -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 +5 -6
- 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 +39 -26
- 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,166 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Input, Directive, ViewChild, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { map } from "rxjs/operators";
|
|
4
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
5
|
+
import { FieldType, } from "@smartsoft001/models";
|
|
6
|
+
import { DetailsPage } from "../../../pages/details/details.page";
|
|
7
|
+
import { PaginationMode, } from "../../../models/interfaces";
|
|
8
|
+
import { AlertService } from "../../../services/alert/alert.service";
|
|
9
|
+
import { AuthService } from "../../../services/auth/auth.service";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../../services/auth/auth.service";
|
|
12
|
+
import * as i2 from "@angular/router";
|
|
13
|
+
import * as i3 from "../../../services/alert/alert.service";
|
|
14
|
+
import * as i4 from "@ngx-translate/core";
|
|
15
|
+
export class ListBaseComponent {
|
|
16
|
+
constructor(authService, router, alertService, cd, translateService) {
|
|
17
|
+
this.authService = authService;
|
|
18
|
+
this.router = router;
|
|
19
|
+
this.alertService = alertService;
|
|
20
|
+
this.cd = cd;
|
|
21
|
+
this.translateService = translateService;
|
|
22
|
+
this.removed = new Set();
|
|
23
|
+
this.FieldType = FieldType;
|
|
24
|
+
this.PaginationMode = PaginationMode;
|
|
25
|
+
this.detailsButtonOptions = {
|
|
26
|
+
loading$: this.loading$,
|
|
27
|
+
click: () => {
|
|
28
|
+
this.unselect();
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
set options(val) {
|
|
33
|
+
this._internalOptions = val;
|
|
34
|
+
this._fields = val.fields;
|
|
35
|
+
this.provider = val.provider;
|
|
36
|
+
this.sort = val.sort;
|
|
37
|
+
this.cellPipe = val.cellPipe;
|
|
38
|
+
this.selectMode = val.select;
|
|
39
|
+
this.type = val.type;
|
|
40
|
+
this.initKeys();
|
|
41
|
+
this.initList(val);
|
|
42
|
+
this.initLoading();
|
|
43
|
+
if (val.remove) {
|
|
44
|
+
this.removeHandler = async (obj) => {
|
|
45
|
+
const alertResult = await this.alertService.show({
|
|
46
|
+
header: this.translateService.instant("OBJECT.confirmDelete"),
|
|
47
|
+
buttons: [
|
|
48
|
+
{
|
|
49
|
+
text: this.translateService.instant("cancel"),
|
|
50
|
+
role: "cancel"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
text: this.translateService.instant("confirm"),
|
|
54
|
+
handler: () => {
|
|
55
|
+
val.remove["provider"].invoke(obj.id);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
backdropDismiss: false
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (val.item) {
|
|
64
|
+
if (!val.item["options"])
|
|
65
|
+
throw Error("Must set edit options");
|
|
66
|
+
this.itemHandler = (id) => {
|
|
67
|
+
if (val.item["options"].routingPrefix)
|
|
68
|
+
this.router.navigate([val.item["options"].routingPrefix, id]);
|
|
69
|
+
if (val.item["options"].select)
|
|
70
|
+
val.item["options"].select(id);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
if (val.details) {
|
|
74
|
+
if (!val.details["provider"])
|
|
75
|
+
throw Error("Must set details provider");
|
|
76
|
+
this.detailsComponent = DetailsPage;
|
|
77
|
+
this.detailsComponentProps = {
|
|
78
|
+
item$: val.details["provider"].item$,
|
|
79
|
+
type: val.type,
|
|
80
|
+
loading$: val.details["provider"].loading$,
|
|
81
|
+
itemHandler: this.itemHandler,
|
|
82
|
+
removeHandler: this.removeHandler,
|
|
83
|
+
componentFactories: val.details["componentFactories"],
|
|
84
|
+
};
|
|
85
|
+
this.select = val.details["provider"].getData;
|
|
86
|
+
this.unselect = val.details["provider"].clearData;
|
|
87
|
+
}
|
|
88
|
+
if (val.pagination) {
|
|
89
|
+
this.loadNextPage = async (event = null) => {
|
|
90
|
+
await val.pagination.loadNextPage();
|
|
91
|
+
if (event)
|
|
92
|
+
event.target.complete();
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
window.scrollTo(0, 0);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
this.loadPrevPage = async (event = null) => {
|
|
98
|
+
await val.pagination.loadPrevPage();
|
|
99
|
+
if (event)
|
|
100
|
+
event.target.complete();
|
|
101
|
+
setTimeout(() => {
|
|
102
|
+
window.scrollTo(0, 10000);
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
this.page$ = val.pagination.page$;
|
|
106
|
+
this.totalPages$ = val.pagination.totalPages$;
|
|
107
|
+
}
|
|
108
|
+
this.afterInitOptions();
|
|
109
|
+
}
|
|
110
|
+
get options() {
|
|
111
|
+
return this._internalOptions;
|
|
112
|
+
}
|
|
113
|
+
initKeys(data = null) {
|
|
114
|
+
const result = [];
|
|
115
|
+
this._fields
|
|
116
|
+
.filter((field) => {
|
|
117
|
+
if (field.options.list &&
|
|
118
|
+
field.options.list.permissions) {
|
|
119
|
+
return this.authService.expectPermissions(field.options.list.permissions);
|
|
120
|
+
}
|
|
121
|
+
return true;
|
|
122
|
+
})
|
|
123
|
+
.forEach((field) => {
|
|
124
|
+
if (field.options.list.dynamic) {
|
|
125
|
+
if (!data?.length)
|
|
126
|
+
return;
|
|
127
|
+
data[0][field.key]
|
|
128
|
+
.map((_, index) => '__array.' + field.key + '.' + index
|
|
129
|
+
+ '.' + field.options.list.dynamic.headerKey
|
|
130
|
+
+ '.' + field.options.list.dynamic.rowKey)
|
|
131
|
+
.forEach(item => result.push(item));
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
result.push(field.key);
|
|
135
|
+
});
|
|
136
|
+
if (!this.keys || this.keys.length !== result.length)
|
|
137
|
+
this.keys = result;
|
|
138
|
+
}
|
|
139
|
+
initList(val) {
|
|
140
|
+
this.list$ = this.provider.list$.pipe(map((list) => {
|
|
141
|
+
if (!list)
|
|
142
|
+
return list;
|
|
143
|
+
const result = list.filter((item) => !this.removed.has(item.id));
|
|
144
|
+
this.initKeys(list);
|
|
145
|
+
return result;
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
initLoading() {
|
|
149
|
+
this.loading$ = this.provider.loading$;
|
|
150
|
+
}
|
|
151
|
+
ngOnInit() { }
|
|
152
|
+
afterInitOptions() {
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
ListBaseComponent.smartType = "list";
|
|
156
|
+
/** @nocollapse */ /** @nocollapse */ ListBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListBaseComponent, deps: [{ token: i1.AuthService }, { token: i2.Router }, { token: i3.AlertService }, { token: i0.ChangeDetectorRef }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
157
|
+
/** @nocollapse */ /** @nocollapse */ ListBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ListBaseComponent, inputs: { options: "options" }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0 });
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListBaseComponent, decorators: [{
|
|
159
|
+
type: Directive
|
|
160
|
+
}], ctorParameters: function () { return [{ type: i1.AuthService }, { type: i2.Router }, { type: i3.AlertService }, { type: i0.ChangeDetectorRef }, { type: i4.TranslateService }]; }, propDecorators: { options: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], contentTpl: [{
|
|
163
|
+
type: ViewChild,
|
|
164
|
+
args: ["contentTpl", { read: ViewContainerRef, static: true }]
|
|
165
|
+
}] } });
|
|
166
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFy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1xuXG4gICAgaWYgKHZhbC5yZW1vdmUpIHtcbiAgICAgIHRoaXMucmVtb3ZlSGFuZGxlciA9IGFzeW5jIChvYmo6IFQpID0+IHtcbiAgICAgICAgY29uc3QgYWxlcnRSZXN1bHQgPSBhd2FpdCB0aGlzLmFsZXJ0U2VydmljZS5zaG93KHtcbiAgICAgICAgICBoZWFkZXI6IHRoaXMudHJhbnNsYXRlU2VydmljZS5pbnN0YW50KFwiT0JKRUNULmNvbmZpcm1EZWxldGVcIiksXG4gICAgICAgICAgYnV0dG9uczogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICB0ZXh0OiB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudChcImNhbmNlbFwiKSxcbiAgICAgICAgICAgICAgcm9sZTogXCJjYW5jZWxcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgdGV4dDogdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoXCJjb25maXJtXCIpLFxuICAgICAgICAgICAgICBoYW5kbGVyOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdmFsLnJlbW92ZVtcInByb3ZpZGVyXCJdLmludm9rZShvYmouaWQpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgXSxcbiAgICAgICAgICBiYWNrZHJvcERpc21pc3M6IGZhbHNlXG4gICAgICAgIH0pO1xuICAgICAgfTtcbiAgICB9XG5cbiAgICBpZiAodmFsLml0ZW0pIHtcbiAgICAgIGlmICghdmFsLml0ZW1bXCJvcHRpb25zXCJdKSB0aHJvdyBFcnJvcihcIk11c3Qgc2V0IGVkaXQgb3B0aW9uc1wiKTtcblxuICAgICAgdGhpcy5pdGVtSGFuZGxlciA9IChpZCkgPT4ge1xuICAgICAgICBpZiAodmFsLml0ZW1bXCJvcHRpb25zXCJdLnJvdXRpbmdQcmVmaXgpIHRoaXMucm91dGVyLm5hdmlnYXRlKFt2YWwua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sZW5ndGgpIHJldHVybjtcblxuICAgICAgICAgIChkYXRhWzBdW2ZpZWxkLmtleV0gYXMgW10pXG4gICAgICAgICAgICAgIC5tYXAoKF8sIGluZGV4KSA9PlxuICAgICAgICAgICAgICAgICAgJ19fYXJyYXkuJyArIGZpZWxkLmtleSArICcuJyArIGluZGV4XG4gICAgICAgICAgICAgICAgICArICcuJyArIChmaWVsZC5vcHRpb25zLmxpc3QgYXMgSUZpZWxkTGlzdE1ldGFkYXRhKS5keW5hbWljLmhlYWRlcktleVxuICAgICAgICAgICAgICAgICAgKyAnLicgKyAoZmllbGQub3B0aW9ucy5saXN0IGFzIElGaWVsZExpc3RNZXRhZGF0YSkuZHluYW1pYy5yb3dLZXlcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAuZm9yRWFjaChpdGVtID0+IHJlc3VsdC5wdXNoKGl0ZW0pKTtcblxuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHJlc3VsdC5wdXNoKGZpZWxkLmtleSk7XG4gICAgICB9KTtcblxuICAgIGlmICghdGhpcy5rZXlzIHx8IHRoaXMua2V5cy5sZW5ndGggIT09IHJlc3VsdC5sZW5ndGgpIHRoaXMua2V5cyA9IHJlc3VsdDtcbiAgfVxuXG4gIHByb3RlY3RlZCBpbml0TGlzdCh2YWw6IElMaXN0SW50ZXJuYWxPcHRpb25zPFQ+KTogdm9pZCB7XG4gICAgdGhpcy5saXN0JCA9IHRoaXMucHJvdmlkZXIubGlzdCQucGlwZShcbiAgICAgIG1hcCgobGlzdCkgPT4ge1xuICAgICAgICBpZiAoIWxpc3QpIHJldHVybiBsaXN0O1xuICAgICAgICBjb25zdCByZXN1bHQgPSAgbGlzdC5maWx0ZXIoKGl0ZW0pID0+ICF0aGlzLnJlbW92ZWQuaGFzKGl0ZW0uaWQpKTtcbiAgICAgICAgdGhpcy5pbml0S2V5cyhsaXN0KTtcblxuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgfSlcbiAgICApO1xuICB9XG5cbiAgcHJvdGVjdGVkIGluaXRMb2FkaW5nKCk6IHZvaWQge1xuICAgIHRoaXMubG9hZGluZyQgPSB0aGlzLnByb3ZpZGVyLmxvYWRpbmckO1xuICB9XG5cbiAgbmdPbkluaXQoKSB7fVxuXG4gIHByb3RlY3RlZCBhZnRlckluaXRPcHRpb25zKCk6IHZvaWQge1xuXG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, ViewChild, ViewContainerRef, } from "@angular/core";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
4
|
+
import { Subscription } from "rxjs";
|
|
5
|
+
import { MatSort } from "@angular/material/sort";
|
|
6
|
+
import { ScrollDispatcher } from "@angular/cdk/overlay";
|
|
7
|
+
import { ListBaseComponent } from "../base/base.component";
|
|
8
|
+
import { AlertService } from "../../../services/alert/alert.service";
|
|
9
|
+
import { AuthService } from "../../../services/auth/auth.service";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../../services/auth/auth.service";
|
|
12
|
+
import * as i2 from "@angular/router";
|
|
13
|
+
import * as i3 from "../../../services/alert/alert.service";
|
|
14
|
+
import * as i4 from "@ngx-translate/core";
|
|
15
|
+
import * as i5 from "@angular/cdk/overlay";
|
|
16
|
+
import * as i6 from "@angular/cdk/table";
|
|
17
|
+
import * as i7 from "@ionic/angular";
|
|
18
|
+
import * as i8 from "@angular/material/sort";
|
|
19
|
+
import * as i9 from "../../paging/paging.component";
|
|
20
|
+
import * as i10 from "@angular/common";
|
|
21
|
+
import * as i11 from "@angular/material/table";
|
|
22
|
+
import * as i12 from "../../../directives/details/details.directive";
|
|
23
|
+
import * as i13 from "ng-lazyload-image";
|
|
24
|
+
import * as i14 from "../../../pipes/list-header/list-header.pipe";
|
|
25
|
+
import * as i15 from "../../../pipes/list-cell/list-cell.pipe";
|
|
26
|
+
import * as i16 from "../../../pipes/file-url/file-url.pipe";
|
|
27
|
+
export class ListDesktopComponent extends ListBaseComponent {
|
|
28
|
+
constructor(authService, router, alertService, cd, translateService, scrollDispatcher) {
|
|
29
|
+
super(authService, router, alertService, cd, translateService);
|
|
30
|
+
this.scrollDispatcher = scrollDispatcher;
|
|
31
|
+
this._subscriptions = new Subscription();
|
|
32
|
+
this._multiSelected = [];
|
|
33
|
+
}
|
|
34
|
+
get desktopKeys() {
|
|
35
|
+
if (this.keys) {
|
|
36
|
+
return [
|
|
37
|
+
...(this.selectMode === 'multi' ? ["selectMulti"] : []),
|
|
38
|
+
...this.keys,
|
|
39
|
+
...(this.removeHandler ? ["removeAction"] : []),
|
|
40
|
+
// TODO : nikt tego nie chce :(
|
|
41
|
+
//...(this.detailsComponent ? ["detailsAction"] : []),
|
|
42
|
+
...(this.itemHandler ? ["itemAction"] : []),
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
initList(val) {
|
|
48
|
+
super.initList(val);
|
|
49
|
+
this.componentFactories = val.componentFactories;
|
|
50
|
+
this.generateDynamicComponents();
|
|
51
|
+
}
|
|
52
|
+
onChangeMultiselect(checked, element, list) {
|
|
53
|
+
this._multiSelected = this._multiSelected.filter(m => list.some(i => i === m));
|
|
54
|
+
if (checked) {
|
|
55
|
+
this._multiSelected.push(element);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const index = this._multiSelected.indexOf(element);
|
|
59
|
+
if (index > -1) {
|
|
60
|
+
this._multiSelected.splice(index, 1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (this.provider.onChangeMultiSelected) {
|
|
64
|
+
this.provider.onChangeMultiSelected(this._multiSelected);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
myTrackById(val) {
|
|
68
|
+
return val?.id;
|
|
69
|
+
}
|
|
70
|
+
ngAfterViewInit() {
|
|
71
|
+
this.generateDynamicComponents();
|
|
72
|
+
}
|
|
73
|
+
ngOnInit() {
|
|
74
|
+
super.ngOnInit();
|
|
75
|
+
if (this.sort) {
|
|
76
|
+
this.sortObj.active = this.sort["default"];
|
|
77
|
+
this.sortObj.direction = this.sort["defaultDesc"] ? "desc" : "asc";
|
|
78
|
+
this._subscriptions.add(this.sortObj.sortChange.subscribe((sort) => {
|
|
79
|
+
this.provider.getData({
|
|
80
|
+
offset: 0,
|
|
81
|
+
sortBy: sort.active ? sort.active : "",
|
|
82
|
+
sortDesc: this.sortObj.direction === "desc",
|
|
83
|
+
});
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.sortObj.disabled = true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
ngOnDestroy() {
|
|
91
|
+
if (this._subscriptions) {
|
|
92
|
+
this._subscriptions.unsubscribe();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
generateDynamicComponents() {
|
|
96
|
+
if (!this.componentFactories)
|
|
97
|
+
return;
|
|
98
|
+
if (this.componentFactories.top && this.topTpl) {
|
|
99
|
+
if (!this.topTpl.get(0)) {
|
|
100
|
+
this.topTpl.createComponent(this.componentFactories.top);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
projectContentChanged() {
|
|
105
|
+
console.log("dupa");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/** @nocollapse */ /** @nocollapse */ ListDesktopComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListDesktopComponent, deps: [{ token: i1.AuthService }, { token: i2.Router }, { token: i3.AlertService }, { token: i0.ChangeDetectorRef }, { token: i4.TranslateService }, { token: i5.ScrollDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
/** @nocollapse */ /** @nocollapse */ ListDesktopComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ListDesktopComponent, selector: "smart-list-desktop", viewQueries: [{ propertyName: "sortObj", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n", ""], components: [{ type: i6.CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { type: i7.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }, { type: i7.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { type: i7.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { type: i8.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { type: i6.CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { type: i6.CdkRow, selector: "cdk-row, tr[cdk-row]" }, { type: i7.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { type: i7.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { type: i9.PagingComponent, selector: "smart-paging", inputs: ["page", "totalPages"], outputs: ["nextPage", "prevPage"] }], directives: [{ type: i6.CdkRecycleRows, selector: "cdk-table[recycleRows], table[cdk-table][recycleRows]" }, { type: i8.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i11.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i6.CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { type: i11.MatCellDef, selector: "[matCellDef]" }, { type: i6.CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i12.DetailsDirective, selector: "[smartDetails]", inputs: ["smartDetails"], outputs: ["smartDetailsShowed", "smartDetailsDismissed"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i13.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { type: i11.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i11.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }], pipes: { "async": i10.AsyncPipe, "smartListHeader": i14.ListHeaderPipe, "smartListCell": i15.ListCellPipe, "smartFileUrl": i16.FileUrlPipe, "translate": i4.TranslatePipe } });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListDesktopComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{ selector: "smart-list-desktop", template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n", ""] }]
|
|
113
|
+
}], ctorParameters: function () { return [{ type: i1.AuthService }, { type: i2.Router }, { type: i3.AlertService }, { type: i0.ChangeDetectorRef }, { type: i4.TranslateService }, { type: i5.ScrollDispatcher }]; }, propDecorators: { sortObj: [{
|
|
114
|
+
type: ViewChild,
|
|
115
|
+
args: [MatSort, { static: true }]
|
|
116
|
+
}], topTpl: [{
|
|
117
|
+
type: ViewChild,
|
|
118
|
+
args: ["topTpl", { read: ViewContainerRef, static: true }]
|
|
119
|
+
}] } });
|
|
120
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVza3RvcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9saXN0L2Rlc2t0b3AvZGVza3RvcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9saXN0L2Rlc2t0b3AvZGVza3RvcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsaUJBQWlCLEVBQ2pCLFNBQVMsRUFLVCxTQUFTLEVBQ1QsZ0JBQWdCLEdBQ2pCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8s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ICAgICAgICAgPC90aD5cbiAgICAgICAgICA8dGQgY2RrLWNlbGwgKm1hdENlbGxEZWY9XCJsZXQgZWxlbWVudFwiPlxuICAgICAgICAgICAgPGlvbi1idXR0b25cbiAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImRldGFpbHNCdXR0b25PcHRpb25zLmNsaWNrKClcIlxuICAgICAgICAgICAgICAgICAgICBbc21hcnREZXRhaWxzXT1cIntcbiAgICAgICAgICAgICAgY29tcG9uZW50OiBkZXRhaWxzQ29tcG9uZW50LFxuICAgICAgICAgICAgICBwYXJhbXM6IGRldGFpbHNDb21wb25lbnRQcm9wcyxcbiAgICAgICAgICAgICAgbW9kZTogJ2JvdHRvbSdcbiAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgICAgICAgICAoc21hcnREZXRhaWxzU2hvd2VkKT1cInNlbGVjdCAmJiBzZWxlY3QoZWxlbWVudC5pZClcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8aW9uLWljb24gc2xvdD1cImljb24tb25seVwiIG5hbWU9XCJlbGxpcHNpcy12ZXJ0aWNhbC1vdXRsaW5lXCI+PC9pb24taWNvbj5cbiAgICAgICAgICAgIDwvaW9uLWJ1dHRvbj5cbiAgICAgICAgICA8L3RkPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCInaXRlbUFjdGlvbidcIj5cbiAgICAgICAgICA8dGggY2RrLWhlYWRlci1jZWxsIGNsYXNzPVwiY2VsbC1kZXRhaWxzXCIgKm1hdEhlYWRlckNlbGxEZWY+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwicGFnaW5hdGlvblwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgIDwvdGg+XG4gICAgICAgICAgPHRkIGNkay1jZWxsICptYXRDZWxsRGVmPVwibGV0IGVsZW1lbnRcIj5cbiAgICAgICAgICAgIDxpb24tYnV0dG9uIChjbGljayk9XCJpdGVtSGFuZGxlcihlbGVtZW50LmlkKVwiPlxuICAgICAgICAgICAgICA8aW9uLWljb24gc2xvdD1cImljb24tb25seVwiIG5hbWU9XCJhcnJvdy1mb3J3YXJkLW91dGxpbmVcIj48L2lvbi1pY29uPlxuICAgICAgICAgICAgPC9pb24tYnV0dG9uPlxuICAgICAgICAgIDwvdGQ+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nU3dpdGNoRGVmYXVsdD5cbiAgICAgICAgICA8dGggY2RrLWhlYWRlci1jZWxsICptYXRIZWFkZXJDZWxsRGVmIG1hdC1zb3J0LWhlYWRlcj1cInt7IGtleSB9fVwiPlxuICAgICAgICAgICAge3sgKGxpc3QkIHwgYXN5bmMpIHwgc21hcnRMaXN0SGVhZGVyIDoga2V5IDogdHlwZSB8IGFzeW5jIH19XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwicGFnaW5hdGlvblwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgIDwvdGg+XG4gICAgICAgICAgPG5nLWNvbnRhaW5lciAqbWF0Q2VsbERlZj1cImxldCBlbGVtZW50XCI+XG4gICAgICAgICAgICA8dGQgY2RrLWNlbGwgW2F0dHIuc21hcnQtaXRlbS1rZXldPVwia2V5XCJcbiAgICAgICAgICAgICAgICAqbmdJZj1cImVsZW1lbnQgfCBzbWFydExpc3RDZWxsIDoga2V5IDogY2VsbFBpcGUgOiB0eXBlOyBlbHNlIGJsYW5rQ2VsbFRwbDsgbGV0IGNlbGxcIlxuICAgICAgICAgICAgICAgIFtzdHlsZS53aWR0aC5weF09XCJjZWxsLnR5cGUgPT09IEZpZWxkVHlwZS5pbWFnZSA/IDYwIDogbnVsbFwiXG4gICAgICAgICAgICAgICAgW3N0eWxlLnRleHRBbGlnbl09XCJjZWxsLnR5cGUgPT09IEZpZWxkVHlwZS5pb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k6IHRydWVcIj48L3RyPlxuICAgIDx0ciBjZGstcm93ICptYXRSb3dEZWY9XCJsZXQgcm93OyBjb2x1bW5zOiBkZXNrdG9wS2V5c1wiPjwvdHI+XG4gIDwvdGFibGU+XG48L2Rpdj5cblxuPGlvbi1pbmZpbml0ZS1zY3JvbGxcbiAgdGhyZXNob2xkPVwiMTAwcHhcIlxuICAqbmdJZj1cImxvYWROZXh0UGFnZSAmJiAobGlzdCQgfCBhc3luYyk/Lmxlbmd0aCAmJiBvcHRpb25zLnBhZ2luYXRpb24/Lm1vZGUgIT09IFBhZ2luYXRpb25Nb2RlLnNpbmdsZVBhZ2VcIlxuICAoaW9uSW5maW5pdGUpPVwibG9hZE5leHRQYWdlKCRldmVudClcIlxuPlxuICA8aW9uLWluZmluaXRlLXNjcm9sbC1jb250ZW50IGxvYWRpbmdTcGlubmVyPVwiY2lyY2xlc1wiPlxuICA8L2lvbi1pbmZpbml0ZS1zY3JvbGwtY29udGVudD5cbjwvaW9uLWluZmluaXRlLXNjcm9sbD5cblxuPHNtYXJ0LXBhZ2luZyAqbmdJZj1cIm9wdGlvbnM/LnBhZ2luYXRpb24/Lm1vZGUgPT09IFBhZ2luYXRpb25Nb2RlLnNpbmdsZVBhZ2VcIlxuICAgICAgICAgICAgICBbcGFnZV09XCJwYWdlJCB8IGFzeW5jXCJcbiAgICAgICAgICAgICAgW3RvdGFsUGFnZXNdPVwidG90YWxQYWdlcyQgfCBhc3luY1wiXG4gICAgICAgICAgICAgIChwcmV2UGFnZSk9XCJsb2FkUHJldlBhZ2UoKVwiXG4gICAgICAgICAgICAgIChuZXh0UGFnZSk9XCJsb2FkTmV4dFBhZ2UoKVwiXG4+PC9zbWFydC1wYWdpbmc+XG4iXX0=
|
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentFactoryResolver, Input, NgModuleRef, QueryList, TemplateRef, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import * as _ from 'lodash';
|
|
3
|
+
import { getModelFieldsWithOptions } from "@smartsoft001/models";
|
|
4
|
+
import { ListMode } from "../../models/interfaces";
|
|
5
|
+
import { HardwareService } from "../../services/hardware/hardware.service";
|
|
6
|
+
import { CreateDynamicComponent } from "../base/base.component";
|
|
7
|
+
import { DynamicContentDirective } from "../../directives/dynamic-content/dynamic-content.directive";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../../services/hardware/hardware.service";
|
|
10
|
+
import * as i2 from "./desktop/desktop.component";
|
|
11
|
+
import * as i3 from "./mobile/mobile.component";
|
|
12
|
+
import * as i4 from "./masonry-grid/masonry-grid.component";
|
|
13
|
+
import * as i5 from "@ionic/angular";
|
|
14
|
+
import * as i6 from "../loader/loader.component";
|
|
15
|
+
import * as i7 from "@angular/common";
|
|
16
|
+
import * as i8 from "../../directives/dynamic-content/dynamic-content.directive";
|
|
17
|
+
import * as i9 from "@ngx-translate/core";
|
|
18
|
+
export class ListComponent extends CreateDynamicComponent('list') {
|
|
19
|
+
constructor(hardwareService, cd, moduleRef, componentFactoryResolver) {
|
|
20
|
+
super(cd, moduleRef, componentFactoryResolver);
|
|
21
|
+
this.hardwareService = hardwareService;
|
|
22
|
+
this.cd = cd;
|
|
23
|
+
this.moduleRef = moduleRef;
|
|
24
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
25
|
+
this.ListMode = ListMode;
|
|
26
|
+
this.dynamicContents = new QueryList();
|
|
27
|
+
}
|
|
28
|
+
set options(val) {
|
|
29
|
+
this._options = val;
|
|
30
|
+
this.initFields();
|
|
31
|
+
this.initModel();
|
|
32
|
+
this.refreshDynamicInstance();
|
|
33
|
+
}
|
|
34
|
+
get internalOptions() {
|
|
35
|
+
return this._options;
|
|
36
|
+
}
|
|
37
|
+
ngOnInit() {
|
|
38
|
+
}
|
|
39
|
+
refreshProperties() {
|
|
40
|
+
this.baseInstance.options = this.internalOptions;
|
|
41
|
+
}
|
|
42
|
+
initFields() {
|
|
43
|
+
this._options.fields = _.sortBy(getModelFieldsWithOptions(new this._options.type()).filter(item => item?.options?.list), item => item?.options?.list.order);
|
|
44
|
+
}
|
|
45
|
+
initModel() {
|
|
46
|
+
if (this._options.mode) {
|
|
47
|
+
this.mode = this._options.mode;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.mode = this.hardwareService.isMobileWeb ? ListMode.mobile : ListMode.desktop;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** @nocollapse */ /** @nocollapse */ ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListComponent, deps: [{ token: i1.HardwareService }, { token: i0.ChangeDetectorRef }, { token: i0.NgModuleRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
+
/** @nocollapse */ /** @nocollapse */ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ListComponent, selector: "smart-list", inputs: { options: "options" }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: ["contentTpl"], descendants: true, read: TemplateRef }, { propertyName: "dynamicContents", predicate: DynamicContentDirective, descendants: true, read: DynamicContentDirective }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"template === 'default'\">\n <ng-container [ngSwitch]=\"mode\">\n <smart-list-desktop *ngSwitchCase=\"ListMode.desktop\" [options]=\"internalOptions\"></smart-list-desktop>\n <smart-list-mobile *ngSwitchCase=\"ListMode.mobile\" [options]=\"internalOptions\"></smart-list-mobile>\n <smart-list-masonry-grid *ngSwitchCase=\"ListMode.masonryGrid\" [options]=\"internalOptions\"></smart-list-masonry-grid>\n </ng-container>\n\n <ion-row>\n <ion-col></ion-col>\n <ion-col size=\"auto\">\n <smart-loader [show]=\"internalOptions?.provider?.loading$ | async\"></smart-loader>\n <h2 *ngIf=\"!(internalOptions?.provider?.loading$ | async) && !(internalOptions.provider.list$ | async)?.length\">\n <br/>\n {{ 'noResults' | translate }}\n </h2>\n </ion-col>\n <ion-col></ion-col>\n </ion-row>\n\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n</ng-container>\n<ng-template #contentTpl>\n <ng-content></ng-content>\n</ng-template>\n<div class=\"dynamic-content\"></div>\n", styles: ["", "span{--error-color: #f04141}.smart-modal-bottom .modal-wrapper{position:fixed;height:75%;bottom:0}.alert-tappable.alert-radio{height:auto;contain:content}.alert-radio-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-ios{white-space:normal}: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)}\n"], components: [{ type: i2.ListDesktopComponent, selector: "smart-list-desktop" }, { type: i3.ListMobileComponent, selector: "smart-list-mobile" }, { type: i4.ListMasonryGridComponent, selector: "smart-list-masonry-grid" }, { type: i5.IonRow, selector: "ion-row" }, { type: i5.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { type: i6.LoaderComponent, selector: "smart-loader", inputs: ["show", "height"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.DynamicContentDirective, selector: ".dynamic-content" }], pipes: { "async": i7.AsyncPipe, "translate": i9.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ListComponent, decorators: [{
|
|
57
|
+
type: Component,
|
|
58
|
+
args: [{ selector: 'smart-list', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"template === 'default'\">\n <ng-container [ngSwitch]=\"mode\">\n <smart-list-desktop *ngSwitchCase=\"ListMode.desktop\" [options]=\"internalOptions\"></smart-list-desktop>\n <smart-list-mobile *ngSwitchCase=\"ListMode.mobile\" [options]=\"internalOptions\"></smart-list-mobile>\n <smart-list-masonry-grid *ngSwitchCase=\"ListMode.masonryGrid\" [options]=\"internalOptions\"></smart-list-masonry-grid>\n </ng-container>\n\n <ion-row>\n <ion-col></ion-col>\n <ion-col size=\"auto\">\n <smart-loader [show]=\"internalOptions?.provider?.loading$ | async\"></smart-loader>\n <h2 *ngIf=\"!(internalOptions?.provider?.loading$ | async) && !(internalOptions.provider.list$ | async)?.length\">\n <br/>\n {{ 'noResults' | translate }}\n </h2>\n </ion-col>\n <ion-col></ion-col>\n </ion-row>\n\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n</ng-container>\n<ng-template #contentTpl>\n <ng-content></ng-content>\n</ng-template>\n<div class=\"dynamic-content\"></div>\n", styles: ["", "span{--error-color: #f04141}.smart-modal-bottom .modal-wrapper{position:fixed;height:75%;bottom:0}.alert-tappable.alert-radio{height:auto;contain:content}.alert-radio-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-ios{white-space:normal}: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)}\n"] }]
|
|
59
|
+
}], ctorParameters: function () { return [{ type: i1.HardwareService }, { type: i0.ChangeDetectorRef }, { type: i0.NgModuleRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { options: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], contentTpl: [{
|
|
62
|
+
type: ViewChild,
|
|
63
|
+
args: ["contentTpl", { read: TemplateRef, static: false }]
|
|
64
|
+
}], dynamicContents: [{
|
|
65
|
+
type: ViewChildren,
|
|
66
|
+
args: [DynamicContentDirective, { read: DynamicContentDirective }]
|
|
67
|
+
}] } });
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3NoYXJlZC9hbmd1bGFyL3NyYy9saWIvY29tcG9uZW50cy9saXN0L2xpc3QuY29tcG9uZW50LnRzIiwiLi4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