@inobeta/ui 18.0.1-build.1722007687
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/_index.scss +1 -0
- package/esm2022/inobeta-ui.mjs +5 -0
- package/esm2022/public_api.mjs +17 -0
- package/esm2022/src/app/inobeta-ui/core/filter.pipe.mjs +23 -0
- package/esm2022/src/app/inobeta-ui/core/index.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/http/auth/guard.service.mjs +157 -0
- package/esm2022/src/app/inobeta-ui/http/auth/login.service.mjs +137 -0
- package/esm2022/src/app/inobeta-ui/http/auth/login.service.stub.spec.mjs +20 -0
- package/esm2022/src/app/inobeta-ui/http/auth/session.model.mjs +16 -0
- package/esm2022/src/app/inobeta-ui/http/http/auth.interceptor.mjs +79 -0
- package/esm2022/src/app/inobeta-ui/http/http/error.interceptor.mjs +76 -0
- package/esm2022/src/app/inobeta-ui/http/http/loader.interceptor.mjs +45 -0
- package/esm2022/src/app/inobeta-ui/http/http/loading-skeleton-container.component.mjs +36 -0
- package/esm2022/src/app/inobeta-ui/http/http/loading-skeleton.component.mjs +34 -0
- package/esm2022/src/app/inobeta-ui/http/http/loading-skeleton.directive.mjs +66 -0
- package/esm2022/src/app/inobeta-ui/http/http/loading-skeleton.directive.stub.spec.mjs +22 -0
- package/esm2022/src/app/inobeta-ui/http/http/messages.decorator.mjs +42 -0
- package/esm2022/src/app/inobeta-ui/http/http/role-check.directive.mjs +45 -0
- package/esm2022/src/app/inobeta-ui/http/http/spinner-loading.component.mjs +28 -0
- package/esm2022/src/app/inobeta-ui/http/http/spinner-loading.stub.spec.mjs +15 -0
- package/esm2022/src/app/inobeta-ui/http/http-test.module.mjs +35 -0
- package/esm2022/src/app/inobeta-ui/http/http.module.mjs +178 -0
- package/esm2022/src/app/inobeta-ui/http/index.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/http/store/index.mjs +11 -0
- package/esm2022/src/app/inobeta-ui/http/store/loader/actions.mjs +7 -0
- package/esm2022/src/app/inobeta-ui/http/store/loader/interfaces.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/http/store/loader/reducers.mjs +35 -0
- package/esm2022/src/app/inobeta-ui/http/store/loader/selectors.mjs +9 -0
- package/esm2022/src/app/inobeta-ui/http/store/session/actions.mjs +17 -0
- package/esm2022/src/app/inobeta-ui/http/store/session/effects.mjs +50 -0
- package/esm2022/src/app/inobeta-ui/http/store/session/interfaces.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/http/store/session/reducers.mjs +12 -0
- package/esm2022/src/app/inobeta-ui/http/store/session/selectors.mjs +22 -0
- package/esm2022/src/app/inobeta-ui/http/translations.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/hydration/actions.mjs +3 -0
- package/esm2022/src/app/inobeta-ui/hydration/effects.mjs +45 -0
- package/esm2022/src/app/inobeta-ui/hydration/index.mjs +21 -0
- package/esm2022/src/app/inobeta-ui/hydration/reducer.mjs +36 -0
- package/esm2022/src/app/inobeta-ui/storage/index.mjs +4 -0
- package/esm2022/src/app/inobeta-ui/storage/storage-test.module.mjs +23 -0
- package/esm2022/src/app/inobeta-ui/storage/storage.module.mjs +22 -0
- package/esm2022/src/app/inobeta-ui/storage/storage.service.mjs +105 -0
- package/esm2022/src/app/inobeta-ui/storage/storage.stub.spec.mjs +8 -0
- package/esm2022/src/app/inobeta-ui/translate/index.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/translate/translate-loader.service.mjs +37 -0
- package/esm2022/src/app/inobeta-ui/ui/breadcrumb/breadcrumb.component.mjs +63 -0
- package/esm2022/src/app/inobeta-ui/ui/breadcrumb/breadcrumb.module.mjs +44 -0
- package/esm2022/src/app/inobeta-ui/ui/breadcrumb/index.mjs +4 -0
- package/esm2022/src/app/inobeta-ui/ui/breadcrumb/material-breadcrumb/material-breadcrumb.component.mjs +16 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/data-export.module.mjs +92 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/data-export.service.mjs +83 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/formats/csv-export.service.mjs +42 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/formats/pdf-export.service.mjs +66 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/formats/xlsx-export.service.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/index.mjs +10 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/provider.mjs +3 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/table-data-export-dialog.component.mjs +113 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/table-data-export.component.mjs +58 -0
- package/esm2022/src/app/inobeta-ui/ui/data-export/transformer.mjs +68 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/array/array.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/controls/checkbox.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/controls/dropdown.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/controls/form-control-base.mjs +80 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/controls/radio.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/controls/textbox.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/dynamic-form/dynamic-form.component.mjs +118 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/dynamic-form-array/dynamic-form-array.component.mjs +46 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/dynamic-form-control/dynamic-form-control.component.mjs +28 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/form-control.service.mjs +57 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/forms.module.mjs +36 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/forms.pipes.mjs +41 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/forms.types.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/forms/index.mjs +12 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filter-button/filter-action-group.component.mjs +14 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filter-button/filter-button.component.mjs +31 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filter.component.mjs +149 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filter.types.mjs +30 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/base/filter-base.mjs +83 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/boolean/boolean-filter.component.mjs +48 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/date/filter-date.component.mjs +284 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/number/filter-number.component.mjs +111 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/search-bar/search-bar.component.mjs +99 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/tag/filter-tag.component.mjs +106 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters/text/filter-text.component.mjs +98 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters.mjs +109 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/filters.module.mjs +175 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/index.mjs +14 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/tokens.mjs +3 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-filter/translations.mjs +51 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/action.mjs +48 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/cells.mjs +212 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/action-column.mjs +23 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/column.mjs +260 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/date-column.mjs +93 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/index.mjs +7 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/number-column.mjs +112 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/selection-column.mjs +149 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/columns/text-column.mjs +90 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/index.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/paginator-intl.mjs +53 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/remote-data-source.mjs +73 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/rowgroup.mjs +17 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/sort-header.mjs +37 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/const.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/index.mjs +9 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/url-state/actions.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/url-state/effects.mjs +47 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/url-state/interfaces.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/url-state/reducers.mjs +56 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/store/url-state/selectors.mjs +19 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/table-data-source.mjs +450 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/table-url.service.mjs +129 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/table.component.mjs +260 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/table.module.mjs +150 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/table.types.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/tokens.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/ui/kai-table/translations.mjs +41 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/components/main-menu-bar/main-menu-bar.component.mjs +120 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/components/main-menu-bar/main-menu-bar.stub.spec.mjs +38 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/components/main-menu-dialog/main-menu-dialog.component.mjs +48 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/components/main-menu-expanded/header-footer-buttons.component.mjs +139 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/components/main-menu-expanded/main-menu-expanded.component.mjs +41 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/index.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/main-menu-test.module.mjs +24 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/main-menu.module.mjs +63 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/models/main-menu-button.model.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/models/main-menu-data-set.model.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/main-menu/models/main-menu-data.model.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/autocomplete.mjs +108 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/button.mjs +80 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/checkbox.mjs +54 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/datepicker.mjs +96 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/dropdown.mjs +149 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/label.mjs +50 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/padding.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/radio.mjs +61 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/slide-toggle.mjs +62 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/textarea.mjs +63 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/controls/textbox.mjs +205 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/index.mjs +18 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/intl/datepicker.intl.mjs +73 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form/material-form.component.mjs +48 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form/material-form.stub.spec.mjs +65 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form-array/material-form-array.component.mjs +18 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form-control/material-form-control.component.mjs +64 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form-test.module.mjs +32 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/material-form.module.mjs +168 -0
- package/esm2022/src/app/inobeta-ui/ui/material-forms/translations.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/index.mjs +7 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal-message.component.mjs +76 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal-message.model.mjs +2 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal-message.service.mjs +64 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal-message.service.stub.spec.mjs +15 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal-test.module.mjs +26 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/modal.module.mjs +46 -0
- package/esm2022/src/app/inobeta-ui/ui/modal/translations.mjs +10 -0
- package/esm2022/src/app/inobeta-ui/ui/toast/index.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/toast/toast-test.module.mjs +23 -0
- package/esm2022/src/app/inobeta-ui/ui/toast/toast.module.mjs +21 -0
- package/esm2022/src/app/inobeta-ui/ui/toast/toast.service.mjs +54 -0
- package/esm2022/src/app/inobeta-ui/ui/toast/toast.service.stub.spec.mjs +4 -0
- package/esm2022/src/app/inobeta-ui/ui/uploader/index.mjs +3 -0
- package/esm2022/src/app/inobeta-ui/ui/uploader/uploader.component.mjs +41 -0
- package/esm2022/src/app/inobeta-ui/ui/uploader/uploader.module.mjs +42 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/default-table-view/default-table-view.component.mjs +20 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/index.mjs +6 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/table-view/table-view.component.mjs +37 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/table-view-group/table-view-group.component.mjs +186 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/view-dialog/view-dialog.component.mjs +110 -0
- package/esm2022/src/app/inobeta-ui/ui/views/components/view-list/view-list.component.mjs +43 -0
- package/esm2022/src/app/inobeta-ui/ui/views/index.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/actions.mjs +11 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/index.mjs +3 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/reducer.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/views/index.mjs +4 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/views/reducer.mjs +19 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/views/selectors.mjs +5 -0
- package/esm2022/src/app/inobeta-ui/ui/views/store/views/table-view.mjs +13 -0
- package/esm2022/src/app/inobeta-ui/ui/views/translations.mjs +34 -0
- package/esm2022/src/app/inobeta-ui/ui/views/view.module.mjs +98 -0
- package/esm2022/src/app/inobeta-ui/ui/views/view.service.mjs +137 -0
- package/fesm2022/inobeta-ui.mjs +8610 -0
- package/fesm2022/inobeta-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +55 -0
- package/public_api.d.ts +16 -0
- package/src/app/inobeta-ui/core/filter.pipe.d.ts +7 -0
- package/src/app/inobeta-ui/core/index.d.ts +1 -0
- package/src/app/inobeta-ui/http/auth/guard.service.d.ts +96 -0
- package/src/app/inobeta-ui/http/auth/login.service.d.ts +63 -0
- package/src/app/inobeta-ui/http/auth/login.service.stub.spec.d.ts +9 -0
- package/src/app/inobeta-ui/http/auth/session.model.d.ts +18 -0
- package/src/app/inobeta-ui/http/http/auth.interceptor.d.ts +21 -0
- package/src/app/inobeta-ui/http/http/error.interceptor.d.ts +18 -0
- package/src/app/inobeta-ui/http/http/loader.interceptor.d.ts +17 -0
- package/src/app/inobeta-ui/http/http/loading-skeleton-container.component.d.ts +13 -0
- package/src/app/inobeta-ui/http/http/loading-skeleton.component.d.ts +12 -0
- package/src/app/inobeta-ui/http/http/loading-skeleton.directive.d.ts +27 -0
- package/src/app/inobeta-ui/http/http/loading-skeleton.directive.stub.spec.d.ts +13 -0
- package/src/app/inobeta-ui/http/http/messages.decorator.d.ts +18 -0
- package/src/app/inobeta-ui/http/http/role-check.directive.d.ts +17 -0
- package/src/app/inobeta-ui/http/http/spinner-loading.component.d.ts +9 -0
- package/src/app/inobeta-ui/http/http/spinner-loading.stub.spec.d.ts +5 -0
- package/src/app/inobeta-ui/http/http-test.module.d.ts +8 -0
- package/src/app/inobeta-ui/http/http.module.d.ts +20 -0
- package/src/app/inobeta-ui/http/index.d.ts +23 -0
- package/src/app/inobeta-ui/http/store/index.d.ts +10 -0
- package/src/app/inobeta-ui/http/store/loader/actions.d.ts +17 -0
- package/src/app/inobeta-ui/http/store/loader/interfaces.d.ts +8 -0
- package/src/app/inobeta-ui/http/store/loader/reducers.d.ts +3 -0
- package/src/app/inobeta-ui/http/store/loader/selectors.d.ts +5 -0
- package/src/app/inobeta-ui/http/store/session/actions.d.ts +20 -0
- package/src/app/inobeta-ui/http/store/session/effects.d.ts +16 -0
- package/src/app/inobeta-ui/http/store/session/interfaces.d.ts +4 -0
- package/src/app/inobeta-ui/http/store/session/reducers.d.ts +3 -0
- package/src/app/inobeta-ui/http/store/session/selectors.d.ts +4 -0
- package/src/app/inobeta-ui/http/translations.d.ts +12 -0
- package/src/app/inobeta-ui/hydration/actions.d.ts +1 -0
- package/src/app/inobeta-ui/hydration/effects.d.ts +13 -0
- package/src/app/inobeta-ui/hydration/index.d.ts +13 -0
- package/src/app/inobeta-ui/hydration/reducer.d.ts +2 -0
- package/src/app/inobeta-ui/storage/index.d.ts +3 -0
- package/src/app/inobeta-ui/storage/storage-test.module.d.ts +6 -0
- package/src/app/inobeta-ui/storage/storage.module.d.ts +6 -0
- package/src/app/inobeta-ui/storage/storage.service.d.ts +62 -0
- package/src/app/inobeta-ui/storage/storage.stub.spec.d.ts +5 -0
- package/src/app/inobeta-ui/translate/index.d.ts +1 -0
- package/src/app/inobeta-ui/translate/translate-loader.service.d.ts +11 -0
- package/src/app/inobeta-ui/ui/_index.scss +87 -0
- package/src/app/inobeta-ui/ui/breadcrumb/breadcrumb.component.d.ts +28 -0
- package/src/app/inobeta-ui/ui/breadcrumb/breadcrumb.module.d.ts +12 -0
- package/src/app/inobeta-ui/ui/breadcrumb/index.d.ts +3 -0
- package/src/app/inobeta-ui/ui/breadcrumb/material-breadcrumb/material-breadcrumb.component.d.ts +6 -0
- package/src/app/inobeta-ui/ui/data-export/data-export.module.d.ts +20 -0
- package/src/app/inobeta-ui/ui/data-export/data-export.service.d.ts +35 -0
- package/src/app/inobeta-ui/ui/data-export/formats/csv-export.service.d.ts +19 -0
- package/src/app/inobeta-ui/ui/data-export/formats/pdf-export.service.d.ts +20 -0
- package/src/app/inobeta-ui/ui/data-export/formats/xlsx-export.service.d.ts +14 -0
- package/src/app/inobeta-ui/ui/data-export/index.d.ts +9 -0
- package/src/app/inobeta-ui/ui/data-export/provider.d.ts +15 -0
- package/src/app/inobeta-ui/ui/data-export/table-data-export-dialog.component.d.ts +23 -0
- package/src/app/inobeta-ui/ui/data-export/table-data-export.component.d.ts +13 -0
- package/src/app/inobeta-ui/ui/data-export/transformer.d.ts +50 -0
- package/src/app/inobeta-ui/ui/forms/array/array.d.ts +32 -0
- package/src/app/inobeta-ui/ui/forms/controls/checkbox.d.ts +4 -0
- package/src/app/inobeta-ui/ui/forms/controls/dropdown.d.ts +4 -0
- package/src/app/inobeta-ui/ui/forms/controls/form-control-base.d.ts +88 -0
- package/src/app/inobeta-ui/ui/forms/controls/radio.d.ts +4 -0
- package/src/app/inobeta-ui/ui/forms/controls/textbox.d.ts +4 -0
- package/src/app/inobeta-ui/ui/forms/dynamic-form/dynamic-form.component.d.ts +50 -0
- package/src/app/inobeta-ui/ui/forms/dynamic-form-array/dynamic-form-array.component.d.ts +18 -0
- package/src/app/inobeta-ui/ui/forms/dynamic-form-control/dynamic-form-control.component.d.ts +11 -0
- package/src/app/inobeta-ui/ui/forms/form-control.service.d.ts +13 -0
- package/src/app/inobeta-ui/ui/forms/forms.module.d.ts +12 -0
- package/src/app/inobeta-ui/ui/forms/forms.pipes.d.ts +20 -0
- package/src/app/inobeta-ui/ui/forms/forms.types.d.ts +3 -0
- package/src/app/inobeta-ui/ui/forms/index.d.ts +11 -0
- package/src/app/inobeta-ui/ui/kai-filter/filter-button/filter-action-group.component.d.ts +5 -0
- package/src/app/inobeta-ui/ui/kai-filter/filter-button/filter-button.component.d.ts +8 -0
- package/src/app/inobeta-ui/ui/kai-filter/filter.component.d.ts +41 -0
- package/src/app/inobeta-ui/ui/kai-filter/filter.types.d.ts +141 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/base/filter-base.d.ts +42 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/boolean/boolean-filter.component.d.ts +12 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/date/filter-date.component.d.ts +56 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/number/filter-number.component.d.ts +27 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/search-bar/search-bar.component.d.ts +16 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/tag/filter-tag.component.d.ts +28 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters/text/filter-text.component.d.ts +21 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters.d.ts +16 -0
- package/src/app/inobeta-ui/ui/kai-filter/filters.module.d.ts +35 -0
- package/src/app/inobeta-ui/ui/kai-filter/index.d.ts +13 -0
- package/src/app/inobeta-ui/ui/kai-filter/tokens.d.ts +2 -0
- package/src/app/inobeta-ui/ui/kai-filter/translations.d.ts +50 -0
- package/src/app/inobeta-ui/ui/kai-table/_table-theme.scss +123 -0
- package/src/app/inobeta-ui/ui/kai-table/action.d.ts +19 -0
- package/src/app/inobeta-ui/ui/kai-table/cells.d.ts +88 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/action-column.d.ts +9 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/column.d.ts +87 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/date-column.d.ts +21 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/index.d.ts +6 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/number-column.d.ts +16 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/selection-column.d.ts +26 -0
- package/src/app/inobeta-ui/ui/kai-table/columns/text-column.d.ts +16 -0
- package/src/app/inobeta-ui/ui/kai-table/index.d.ts +12 -0
- package/src/app/inobeta-ui/ui/kai-table/paginator-intl.d.ts +18 -0
- package/src/app/inobeta-ui/ui/kai-table/remote-data-source.d.ts +60 -0
- package/src/app/inobeta-ui/ui/kai-table/rowgroup.d.ts +8 -0
- package/src/app/inobeta-ui/ui/kai-table/sort-header.d.ts +20 -0
- package/src/app/inobeta-ui/ui/kai-table/store/const.d.ts +1 -0
- package/src/app/inobeta-ui/ui/kai-table/store/index.d.ts +8 -0
- package/src/app/inobeta-ui/ui/kai-table/store/url-state/actions.d.ts +59 -0
- package/src/app/inobeta-ui/ui/kai-table/store/url-state/effects.d.ts +15 -0
- package/src/app/inobeta-ui/ui/kai-table/store/url-state/interfaces.d.ts +16 -0
- package/src/app/inobeta-ui/ui/kai-table/store/url-state/reducers.d.ts +2 -0
- package/src/app/inobeta-ui/ui/kai-table/store/url-state/selectors.d.ts +3 -0
- package/src/app/inobeta-ui/ui/kai-table/table-data-source.d.ts +164 -0
- package/src/app/inobeta-ui/ui/kai-table/table-url.service.d.ts +51 -0
- package/src/app/inobeta-ui/ui/kai-table/table.component.d.ts +79 -0
- package/src/app/inobeta-ui/ui/kai-table/table.module.d.ts +30 -0
- package/src/app/inobeta-ui/ui/kai-table/table.types.d.ts +21 -0
- package/src/app/inobeta-ui/ui/kai-table/tokens.d.ts +22 -0
- package/src/app/inobeta-ui/ui/kai-table/translations.d.ts +40 -0
- package/src/app/inobeta-ui/ui/main-menu/_main-menu-theme.scss +226 -0
- package/src/app/inobeta-ui/ui/main-menu/components/main-menu-bar/main-menu-bar.component.d.ts +56 -0
- package/src/app/inobeta-ui/ui/main-menu/components/main-menu-bar/main-menu-bar.stub.spec.d.ts +18 -0
- package/src/app/inobeta-ui/ui/main-menu/components/main-menu-dialog/main-menu-dialog.component.d.ts +13 -0
- package/src/app/inobeta-ui/ui/main-menu/components/main-menu-expanded/header-footer-buttons.component.d.ts +9 -0
- package/src/app/inobeta-ui/ui/main-menu/components/main-menu-expanded/main-menu-expanded.component.d.ts +16 -0
- package/src/app/inobeta-ui/ui/main-menu/index.d.ts +10 -0
- package/src/app/inobeta-ui/ui/main-menu/main-menu-test.module.d.ts +8 -0
- package/src/app/inobeta-ui/ui/main-menu/main-menu.module.d.ts +16 -0
- package/src/app/inobeta-ui/ui/main-menu/models/main-menu-button.model.d.ts +8 -0
- package/src/app/inobeta-ui/ui/main-menu/models/main-menu-data-set.model.d.ts +14 -0
- package/src/app/inobeta-ui/ui/main-menu/models/main-menu-data.model.d.ts +4 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/autocomplete.d.ts +14 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/button.d.ts +28 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/checkbox.d.ts +10 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/datepicker.d.ts +17 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/dropdown.d.ts +29 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/label.d.ts +10 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/padding.d.ts +10 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/radio.d.ts +10 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/slide-toggle.d.ts +10 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/textarea.d.ts +17 -0
- package/src/app/inobeta-ui/ui/material-forms/controls/textbox.d.ts +21 -0
- package/src/app/inobeta-ui/ui/material-forms/index.d.ts +17 -0
- package/src/app/inobeta-ui/ui/material-forms/intl/datepicker.intl.d.ts +25 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form/material-form.component.d.ts +26 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form/material-form.stub.spec.d.ts +21 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form-array/material-form-array.component.d.ts +6 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form-control/material-form-control.component.d.ts +19 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form-test.module.d.ts +9 -0
- package/src/app/inobeta-ui/ui/material-forms/material-form.module.d.ts +49 -0
- package/src/app/inobeta-ui/ui/material-forms/translations.d.ts +25 -0
- package/src/app/inobeta-ui/ui/modal/index.d.ts +6 -0
- package/src/app/inobeta-ui/ui/modal/modal-message.component.d.ts +10 -0
- package/src/app/inobeta-ui/ui/modal/modal-message.model.d.ts +32 -0
- package/src/app/inobeta-ui/ui/modal/modal-message.service.d.ts +49 -0
- package/src/app/inobeta-ui/ui/modal/modal-message.service.stub.spec.d.ts +6 -0
- package/src/app/inobeta-ui/ui/modal/modal-test.module.d.ts +7 -0
- package/src/app/inobeta-ui/ui/modal/modal.module.d.ts +11 -0
- package/src/app/inobeta-ui/ui/modal/translations.d.ts +9 -0
- package/src/app/inobeta-ui/ui/toast/_toast-theme.scss +56 -0
- package/src/app/inobeta-ui/ui/toast/index.d.ts +4 -0
- package/src/app/inobeta-ui/ui/toast/toast-test.module.d.ts +6 -0
- package/src/app/inobeta-ui/ui/toast/toast.module.d.ts +7 -0
- package/src/app/inobeta-ui/ui/toast/toast.service.d.ts +36 -0
- package/src/app/inobeta-ui/ui/toast/toast.service.stub.spec.d.ts +3 -0
- package/src/app/inobeta-ui/ui/uploader/index.d.ts +2 -0
- package/src/app/inobeta-ui/ui/uploader/uploader.component.d.ts +12 -0
- package/src/app/inobeta-ui/ui/uploader/uploader.module.d.ts +10 -0
- package/src/app/inobeta-ui/ui/views/components/default-table-view/default-table-view.component.d.ts +8 -0
- package/src/app/inobeta-ui/ui/views/components/index.d.ts +5 -0
- package/src/app/inobeta-ui/ui/views/components/table-view/table-view.component.d.ts +14 -0
- package/src/app/inobeta-ui/ui/views/components/table-view-group/table-view-group.component.d.ts +45 -0
- package/src/app/inobeta-ui/ui/views/components/view-dialog/view-dialog.component.d.ts +22 -0
- package/src/app/inobeta-ui/ui/views/components/view-list/view-list.component.d.ts +16 -0
- package/src/app/inobeta-ui/ui/views/index.d.ts +4 -0
- package/src/app/inobeta-ui/ui/views/store/actions.d.ts +27 -0
- package/src/app/inobeta-ui/ui/views/store/index.d.ts +2 -0
- package/src/app/inobeta-ui/ui/views/store/reducer.d.ts +7 -0
- package/src/app/inobeta-ui/ui/views/store/views/index.d.ts +3 -0
- package/src/app/inobeta-ui/ui/views/store/views/reducer.d.ts +3 -0
- package/src/app/inobeta-ui/ui/views/store/views/selectors.d.ts +4 -0
- package/src/app/inobeta-ui/ui/views/store/views/table-view.d.ts +22 -0
- package/src/app/inobeta-ui/ui/views/translations.d.ts +33 -0
- package/src/app/inobeta-ui/ui/views/view.module.d.ts +23 -0
- package/src/app/inobeta-ui/ui/views/view.service.d.ts +40 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/core";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/forms";
|
|
8
|
+
import * as i5 from "@angular/material/form-field";
|
|
9
|
+
import * as i6 from "@angular/material/input";
|
|
10
|
+
import * as i7 from "@angular/material/datepicker";
|
|
11
|
+
export class IbMatDatepickerComponent {
|
|
12
|
+
adapter;
|
|
13
|
+
translate;
|
|
14
|
+
data;
|
|
15
|
+
constructor(adapter, translate) {
|
|
16
|
+
this.adapter = adapter;
|
|
17
|
+
this.translate = translate;
|
|
18
|
+
this.adapter.setLocale(this.translate.currentLang);
|
|
19
|
+
this.translate.onTranslationChange.subscribe(ev => {
|
|
20
|
+
this.adapter.setLocale(ev.lang);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatDatepickerComponent, deps: [{ token: i1.DateAdapter }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatDatepickerComponent, selector: "[ib-mat-datepicker]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
25
|
+
<mat-form-field appearance="fill" style="width: 100%;" [formGroup]="data.form">
|
|
26
|
+
<mat-label>{{data.base.label | translate}}</mat-label>
|
|
27
|
+
<input
|
|
28
|
+
[formControlName]="data.base.key"
|
|
29
|
+
matInput
|
|
30
|
+
[matDatepicker]="picker"
|
|
31
|
+
(dateInput)="data.base.change(data.self)"
|
|
32
|
+
(dateChange)="data.base.change(data.self)"
|
|
33
|
+
(change)="data.base.change(data.self)"
|
|
34
|
+
>
|
|
35
|
+
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
36
|
+
<mat-datepicker #picker></mat-datepicker>
|
|
37
|
+
<mat-error>
|
|
38
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
39
|
+
</mat-error>
|
|
40
|
+
</mat-form-field>
|
|
41
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i7.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i7.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i7.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatDatepickerComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{
|
|
46
|
+
selector: '[ib-mat-datepicker]',
|
|
47
|
+
template: `
|
|
48
|
+
<mat-form-field appearance="fill" style="width: 100%;" [formGroup]="data.form">
|
|
49
|
+
<mat-label>{{data.base.label | translate}}</mat-label>
|
|
50
|
+
<input
|
|
51
|
+
[formControlName]="data.base.key"
|
|
52
|
+
matInput
|
|
53
|
+
[matDatepicker]="picker"
|
|
54
|
+
(dateInput)="data.base.change(data.self)"
|
|
55
|
+
(dateChange)="data.base.change(data.self)"
|
|
56
|
+
(change)="data.base.change(data.self)"
|
|
57
|
+
>
|
|
58
|
+
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
59
|
+
<mat-datepicker #picker></mat-datepicker>
|
|
60
|
+
<mat-error>
|
|
61
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
62
|
+
</mat-error>
|
|
63
|
+
</mat-form-field>
|
|
64
|
+
`
|
|
65
|
+
}]
|
|
66
|
+
}], ctorParameters: () => [{ type: i1.DateAdapter }, { type: i2.TranslateService }], propDecorators: { data: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}] } });
|
|
69
|
+
export class IbMatDatepickerControl extends IbFormControlBase {
|
|
70
|
+
constructor(options) {
|
|
71
|
+
if (options.value && typeof options.value === 'string') {
|
|
72
|
+
options.value = new Date(options.value);
|
|
73
|
+
}
|
|
74
|
+
if (!options.value) {
|
|
75
|
+
options.value = null;
|
|
76
|
+
}
|
|
77
|
+
if (options.required) {
|
|
78
|
+
options.validators = options.validators || [];
|
|
79
|
+
options.validators.push(dateRequiredValidator());
|
|
80
|
+
}
|
|
81
|
+
super(options);
|
|
82
|
+
this.control = new IbFormControlBaseComponent(IbMatDatepickerComponent, {
|
|
83
|
+
base: this
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export function dateRequiredValidator() {
|
|
88
|
+
return (control) => {
|
|
89
|
+
if (!control.value || isNaN(control.value.getTime())) {
|
|
90
|
+
return {
|
|
91
|
+
required: true
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvaW5vYmV0YS11aS91aS9tYXRlcmlhbC1mb3Jtcy9jb250cm9scy9kYXRlcGlja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSWpELE9BQU8sRUFBMEIsaUJBQWlCLEVBQUUsMEJBQTBCLEVBQ2hDLE1BQU0sd0NBQXdDLENBQUM7Ozs7Ozs7OztBQXdCN0YsTUFBTSxPQUFPLHdCQUF3QjtJQUd6QjtJQUNBO0lBSEQsSUFBSSxDQUFvQjtJQUNqQyxZQUNVLE9BQXlCLEVBQ3pCLFNBQTJCO1FBRDNCLFlBQU8sR0FBUCxPQUFPLENBQWtCO1FBQ3pCLGNBQVMsR0FBVCxTQUFTLENBQWtCO1FBRW5DLElBQUksQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLENBQUM7UUFDbkQsSUFBSSxDQUFDLFNBQVMsQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLEVBQUU7WUFDaEQsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyx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KTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZGF0ZVJlcXVpcmVkVmFsaWRhdG9yKCk6IFZhbGlkYXRvckZuIHtcbiAgcmV0dXJuIChjb250cm9sOiBBYnN0cmFjdENvbnRyb2wpOiB7W2tleTogc3RyaW5nXTogYW55fSB8IG51bGwgPT4ge1xuICAgIGlmICghY29udHJvbC52YWx1ZSB8fCBpc05hTihjb250cm9sLnZhbHVlLmdldFRpbWUoKSkpIHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIHJlcXVpcmVkOiB0cnVlXG4gICAgICB9O1xuICAgIH1cbiAgfTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent, } from "../../forms/controls/form-control-base";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@angular/material/form-field";
|
|
7
|
+
import * as i4 from "@angular/material/core";
|
|
8
|
+
import * as i5 from "@angular/material/select";
|
|
9
|
+
import * as i6 from "@angular/material/icon";
|
|
10
|
+
import * as i7 from "@angular/material/tooltip";
|
|
11
|
+
import * as i8 from "@ngx-translate/core";
|
|
12
|
+
export class IbMatDropdownComponent {
|
|
13
|
+
data;
|
|
14
|
+
all = false;
|
|
15
|
+
get hintMessage() {
|
|
16
|
+
return this.data.base.hintMessage ? this.data.base.hintMessage() : null;
|
|
17
|
+
}
|
|
18
|
+
selectAll() {
|
|
19
|
+
this.all = !this.all;
|
|
20
|
+
if (this.all) {
|
|
21
|
+
const newValues = this.data.base.options.map((t) => t.key);
|
|
22
|
+
this.data.self.setValue(newValues);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.data.self.setValue([]);
|
|
26
|
+
}
|
|
27
|
+
this.data.base.change(this.data.self);
|
|
28
|
+
}
|
|
29
|
+
handleSelection(option) {
|
|
30
|
+
if (this.data.base.multiple) {
|
|
31
|
+
if (option.value.includes("__all")) {
|
|
32
|
+
this.selectAll();
|
|
33
|
+
}
|
|
34
|
+
const currentValue = this.data.self.value.filter((t) => t !== "__all");
|
|
35
|
+
this.all =
|
|
36
|
+
currentValue && currentValue.length === this.data.base.options.length;
|
|
37
|
+
}
|
|
38
|
+
this.data.base.change(this.data.self);
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatDropdownComponent, selector: "[ib-mat-dropdown]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
42
|
+
<mat-form-field
|
|
43
|
+
appearance="fill"
|
|
44
|
+
style="width: 100%;"
|
|
45
|
+
[formGroup]="data.form"
|
|
46
|
+
>
|
|
47
|
+
<mat-label>{{ data.base.label | translate }}</mat-label>
|
|
48
|
+
<mat-select
|
|
49
|
+
[formControlName]="data.base.key"
|
|
50
|
+
[multiple]="data.base.multiple"
|
|
51
|
+
(selectionChange)="handleSelection($event)"
|
|
52
|
+
>
|
|
53
|
+
<mat-option
|
|
54
|
+
*ngIf="data.base.multiple"
|
|
55
|
+
class="ib-mat-dropdown-select-all"
|
|
56
|
+
value="__all"
|
|
57
|
+
>{{
|
|
58
|
+
(this.all
|
|
59
|
+
? "shared.ibDropdown.selectNone"
|
|
60
|
+
: "shared.ibDropdown.selectAll"
|
|
61
|
+
) | translate
|
|
62
|
+
}}</mat-option
|
|
63
|
+
>
|
|
64
|
+
<mat-option *ngIf="data.base.emptyRow" [value]="data.base.emptyRow.key">
|
|
65
|
+
{{ data.base.emptyRow.value | translate }}
|
|
66
|
+
</mat-option>
|
|
67
|
+
<mat-option *ngFor="let opt of data.base.options" [value]="opt.key">
|
|
68
|
+
{{ opt.value | translate }}
|
|
69
|
+
</mat-option>
|
|
70
|
+
</mat-select>
|
|
71
|
+
<mat-icon
|
|
72
|
+
matSuffix
|
|
73
|
+
*ngIf="hintMessage"
|
|
74
|
+
[matTooltip]="hintMessage | translate"
|
|
75
|
+
>
|
|
76
|
+
help_outline
|
|
77
|
+
</mat-icon>
|
|
78
|
+
<mat-error>
|
|
79
|
+
<ng-container
|
|
80
|
+
*ngTemplateOutlet="data.formControlErrors; context: this"
|
|
81
|
+
></ng-container>
|
|
82
|
+
</mat-error>
|
|
83
|
+
</mat-form-field>
|
|
84
|
+
`, isInline: true, styles: [".ib-mat-dropdown-select-all ::ng-deep mat-pseudo-checkbox{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatDropdownComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{ selector: "[ib-mat-dropdown]", template: `
|
|
89
|
+
<mat-form-field
|
|
90
|
+
appearance="fill"
|
|
91
|
+
style="width: 100%;"
|
|
92
|
+
[formGroup]="data.form"
|
|
93
|
+
>
|
|
94
|
+
<mat-label>{{ data.base.label | translate }}</mat-label>
|
|
95
|
+
<mat-select
|
|
96
|
+
[formControlName]="data.base.key"
|
|
97
|
+
[multiple]="data.base.multiple"
|
|
98
|
+
(selectionChange)="handleSelection($event)"
|
|
99
|
+
>
|
|
100
|
+
<mat-option
|
|
101
|
+
*ngIf="data.base.multiple"
|
|
102
|
+
class="ib-mat-dropdown-select-all"
|
|
103
|
+
value="__all"
|
|
104
|
+
>{{
|
|
105
|
+
(this.all
|
|
106
|
+
? "shared.ibDropdown.selectNone"
|
|
107
|
+
: "shared.ibDropdown.selectAll"
|
|
108
|
+
) | translate
|
|
109
|
+
}}</mat-option
|
|
110
|
+
>
|
|
111
|
+
<mat-option *ngIf="data.base.emptyRow" [value]="data.base.emptyRow.key">
|
|
112
|
+
{{ data.base.emptyRow.value | translate }}
|
|
113
|
+
</mat-option>
|
|
114
|
+
<mat-option *ngFor="let opt of data.base.options" [value]="opt.key">
|
|
115
|
+
{{ opt.value | translate }}
|
|
116
|
+
</mat-option>
|
|
117
|
+
</mat-select>
|
|
118
|
+
<mat-icon
|
|
119
|
+
matSuffix
|
|
120
|
+
*ngIf="hintMessage"
|
|
121
|
+
[matTooltip]="hintMessage | translate"
|
|
122
|
+
>
|
|
123
|
+
help_outline
|
|
124
|
+
</mat-icon>
|
|
125
|
+
<mat-error>
|
|
126
|
+
<ng-container
|
|
127
|
+
*ngTemplateOutlet="data.formControlErrors; context: this"
|
|
128
|
+
></ng-container>
|
|
129
|
+
</mat-error>
|
|
130
|
+
</mat-form-field>
|
|
131
|
+
`, styles: [".ib-mat-dropdown-select-all ::ng-deep mat-pseudo-checkbox{display:none}\n"] }]
|
|
132
|
+
}], propDecorators: { data: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}] } });
|
|
135
|
+
export class IbMatDropdownControl extends IbFormControlBase {
|
|
136
|
+
multiple = false;
|
|
137
|
+
emptyRow = null;
|
|
138
|
+
hintMessage;
|
|
139
|
+
constructor(options) {
|
|
140
|
+
super(options);
|
|
141
|
+
this.multiple = options.multiple || false;
|
|
142
|
+
this.emptyRow = options.emptyRow || null;
|
|
143
|
+
this.hintMessage = options.hintMessage || null;
|
|
144
|
+
this.control = new IbFormControlBaseComponent(IbMatDropdownComponent, {
|
|
145
|
+
base: this,
|
|
146
|
+
});
|
|
147
|
+
}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udW1iZXI7IHZhbHVlOiBzdHJpbmcgfTtcbiAgaGludE1lc3NhZ2U/OiAoKSA9PiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSWJEcm9wZG93bkRhdGEgZXh0ZW5kcyBJYkZvcm1Db250cm9sRGF0YSB7XG4gIGJhc2U6IEliTWF0RHJvcGRvd25QYXJhbXM7XG59XG4iXX0=
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@ngx-translate/core";
|
|
6
|
+
export class IbMatLabelComponent {
|
|
7
|
+
data;
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatLabelComponent, selector: "[ib-mat-label]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
10
|
+
<div style="width:100%;height:50px;">
|
|
11
|
+
<div
|
|
12
|
+
*ngIf="data.base.label"
|
|
13
|
+
style="padding-right:10px;"
|
|
14
|
+
>{{data.base.label | translate}}: </div>
|
|
15
|
+
<div
|
|
16
|
+
*ngIf="data.base.value"
|
|
17
|
+
style="font-weight:bold;"
|
|
18
|
+
>{{ data.base.value }}</div>
|
|
19
|
+
</div>
|
|
20
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatLabelComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: '[ib-mat-label]',
|
|
26
|
+
template: `
|
|
27
|
+
<div style="width:100%;height:50px;">
|
|
28
|
+
<div
|
|
29
|
+
*ngIf="data.base.label"
|
|
30
|
+
style="padding-right:10px;"
|
|
31
|
+
>{{data.base.label | translate}}: </div>
|
|
32
|
+
<div
|
|
33
|
+
*ngIf="data.base.value"
|
|
34
|
+
style="font-weight:bold;"
|
|
35
|
+
>{{ data.base.value }}</div>
|
|
36
|
+
</div>
|
|
37
|
+
`
|
|
38
|
+
}]
|
|
39
|
+
}], propDecorators: { data: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}] } });
|
|
42
|
+
export class IbMatLabelControl extends IbFormControlBase {
|
|
43
|
+
constructor(options) {
|
|
44
|
+
super(options);
|
|
45
|
+
this.control = new IbFormControlBaseComponent(IbMatLabelComponent, {
|
|
46
|
+
base: this
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFiZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2lub2JldGEtdWkvdWkvbWF0ZXJpYWwtZm9ybXMvY29udHJvbHMvbGFiZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUEwQixpQkFBaUIsRUFBRSwwQkFBMEIsRUFBOEMsTUFBTSx3Q0FBd0MsQ0FBQzs7OztBQWtCM0ssTUFBTSxPQUFPLG1CQUFtQjtJQUNyQixJQUFJLENBQW9CO3VHQUR0QixtQkFBbUI7MkZBQW5CLG1CQUFtQixnRkFkcEI7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fX06IDwvZGl2PlxuICAgICAgPGRpdlxuICAgICAgICAqbmdJZj1cImRhdGEuYmFzZS52YWx1ZVwiXG4gICAgICAgIHN0eWxlPVwiZm9udC13ZWlnaHQ6Ym9sZDtcIlxuICAgICAgPnt7IGRhdGEuYmFzZS52YWx1ZSB9fTwvZGl2PlxuPC9kaXY+XG4gIGBcbn0pXG5cbmV4cG9ydCBjbGFzcyBJYk1hdExhYmVsQ29tcG9uZW50IGltcGxlbWVudHMgSWJGb3JtQ29udHJvbEludGVyZmFjZSB7XG4gIEBJbnB1dCgpIGRhdGE6IEliRm9ybUNvbnRyb2xEYXRhO1xufVxuXG5cbmV4cG9ydCBjbGFzcyBJYk1hdExhYmVsQ29udHJvbCBleHRlbmRzIEliRm9ybUNvbnRyb2xCYXNlPHN0cmluZz57XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnM6IEliRm9ybUNvbnRyb2xCYXNlUGFyYW1zPHN0cmluZz4pe1xuICAgIHN1cGVyKG9wdGlvbnMpXG4gICAgdGhpcy5jb250cm9sID0gbmV3IEliRm9ybUNvbnRyb2xCYXNlQ29tcG9uZW50KEliTWF0TGFiZWxDb21wb25lbnQsIHtcbiAgICAgIGJhc2U6IHRoaXNcbiAgICB9KVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class IbMatPaddingComponent {
|
|
5
|
+
data;
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatPaddingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatPaddingComponent, selector: "[ib-mat-padding]", inputs: { data: "data" }, ngImport: i0, template: ``, isInline: true });
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatPaddingComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{
|
|
12
|
+
selector: '[ib-mat-padding]',
|
|
13
|
+
template: ``
|
|
14
|
+
}]
|
|
15
|
+
}], propDecorators: { data: [{
|
|
16
|
+
type: Input
|
|
17
|
+
}] } });
|
|
18
|
+
export class IbMatPaddingControl extends IbFormControlBase {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super(options);
|
|
21
|
+
this.control = new IbFormControlBaseComponent(IbMatPaddingComponent, {
|
|
22
|
+
base: this
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFkZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvaW5vYmV0YS11aS91aS9tYXRlcmlhbC1mb3Jtcy9jb250cm9scy9wYWRkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSwwQkFBMEIsRUFBc0UsTUFBTSx3Q0FBd0MsQ0FBQzs7QUFLM0ssTUFBTSxPQUFPLHFCQUFxQjtJQUN2QixJQUFJLENBQW9CO3VHQUR0QixxQkFBcUI7MkZBQXJCLHFCQUFxQixrRkFGdEIsRUFBRTs7MkZBRUQscUJBQXFCO2tCQUpqQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxrQkFBa0I7b0JBQzVCLFFBQVEsRUFBRSxFQUFFO2lCQUNiOzhCQUVVLElBQUk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m1Db250cm9sQmFzZUNvbXBvbmVudChJYk1hdFBhZGRpbmdDb21wb25lbnQsIHtcbiAgICAgIGJhc2U6IHRoaXNcbiAgICB9KVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@angular/material/form-field";
|
|
7
|
+
import * as i4 from "@angular/material/radio";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
export class IbMatRadioComponent {
|
|
10
|
+
data;
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatRadioComponent, selector: "[ib-mat-radio]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
13
|
+
<div style="width: 100%;" [formGroup]="data.form">
|
|
14
|
+
<mat-label [attr.for]="data.base.key" style="display: block">{{data.base.label | translate}} {{(data.base.required) ? '*' : ''}}</mat-label>
|
|
15
|
+
<mat-radio-group
|
|
16
|
+
[formControlName]="data.base.key"
|
|
17
|
+
(change)="data.base.change(data.self)"
|
|
18
|
+
>
|
|
19
|
+
<mat-radio-button style="margin: 5px" *ngFor="let opt of data.base.options" [value]="opt.key">
|
|
20
|
+
{{opt.value | translate}}
|
|
21
|
+
</mat-radio-button>
|
|
22
|
+
</mat-radio-group>
|
|
23
|
+
<mat-error>
|
|
24
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
25
|
+
</mat-error>
|
|
26
|
+
</div>
|
|
27
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatRadioComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[ib-mat-radio]',
|
|
33
|
+
template: `
|
|
34
|
+
<div style="width: 100%;" [formGroup]="data.form">
|
|
35
|
+
<mat-label [attr.for]="data.base.key" style="display: block">{{data.base.label | translate}} {{(data.base.required) ? '*' : ''}}</mat-label>
|
|
36
|
+
<mat-radio-group
|
|
37
|
+
[formControlName]="data.base.key"
|
|
38
|
+
(change)="data.base.change(data.self)"
|
|
39
|
+
>
|
|
40
|
+
<mat-radio-button style="margin: 5px" *ngFor="let opt of data.base.options" [value]="opt.key">
|
|
41
|
+
{{opt.value | translate}}
|
|
42
|
+
</mat-radio-button>
|
|
43
|
+
</mat-radio-group>
|
|
44
|
+
<mat-error>
|
|
45
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
46
|
+
</mat-error>
|
|
47
|
+
</div>
|
|
48
|
+
`
|
|
49
|
+
}]
|
|
50
|
+
}], propDecorators: { data: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
export class IbMatRadioControl extends IbFormControlBase {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
super(options);
|
|
56
|
+
this.control = new IbFormControlBaseComponent(IbMatRadioComponent, {
|
|
57
|
+
base: this
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2lub2JldGEtdWkvdWkvbWF0ZXJpYWwtZm9ybXMvY29udHJvbHMvcmFkaW8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUEwQixpQkFBaUIsRUFBRSwwQkFBMEIsRUFBOEMsTUFBTSx3Q0FBd0MsQ0FBQzs7Ozs7OztBQXNCM0ssTUFBTSxPQUFPLG1CQUFtQjtJQUNyQixJQUFJLENBQW9CO3VHQUR0QixtQkFBbUI7MkZBQW5CLG1CQUFtQixnRkFsQn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LmNvbnRyb2wgPSBuZXcgSWJGb3JtQ29udHJvbEJhc2VDb21wb25lbnQoSWJNYXRSYWRpb0NvbXBvbmVudCwge1xuICAgICAgYmFzZTogdGhpc1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@angular/material/form-field";
|
|
7
|
+
import * as i4 from "@angular/material/slide-toggle";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
export class IbMatSlideToggleComponent {
|
|
10
|
+
data;
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatSlideToggleComponent, selector: "[ib-mat-slide-toggle]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
13
|
+
<div style="width: 100%;" [formGroup]="data.form">
|
|
14
|
+
<mat-slide-toggle
|
|
15
|
+
[formControlName]="data.base.key"
|
|
16
|
+
(change)="data.base.change(data.self)"
|
|
17
|
+
>
|
|
18
|
+
{{data.base.label | translate}}{{(data.base.required) ? '*' : ''}}
|
|
19
|
+
</mat-slide-toggle>
|
|
20
|
+
<mat-error>
|
|
21
|
+
<ng-container
|
|
22
|
+
*ngTemplateOutlet="data.formControlErrors;context: this">
|
|
23
|
+
</ng-container>
|
|
24
|
+
</mat-error>
|
|
25
|
+
</div>
|
|
26
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatSlideToggleComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
selector: '[ib-mat-slide-toggle]',
|
|
32
|
+
template: `
|
|
33
|
+
<div style="width: 100%;" [formGroup]="data.form">
|
|
34
|
+
<mat-slide-toggle
|
|
35
|
+
[formControlName]="data.base.key"
|
|
36
|
+
(change)="data.base.change(data.self)"
|
|
37
|
+
>
|
|
38
|
+
{{data.base.label | translate}}{{(data.base.required) ? '*' : ''}}
|
|
39
|
+
</mat-slide-toggle>
|
|
40
|
+
<mat-error>
|
|
41
|
+
<ng-container
|
|
42
|
+
*ngTemplateOutlet="data.formControlErrors;context: this">
|
|
43
|
+
</ng-container>
|
|
44
|
+
</mat-error>
|
|
45
|
+
</div>
|
|
46
|
+
`
|
|
47
|
+
}]
|
|
48
|
+
}], propDecorators: { data: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}] } });
|
|
51
|
+
export class IbMatSlideToggleControl extends IbFormControlBase {
|
|
52
|
+
constructor(options) {
|
|
53
|
+
if (!options.value) {
|
|
54
|
+
options.value = false;
|
|
55
|
+
}
|
|
56
|
+
super(options);
|
|
57
|
+
this.control = new IbFormControlBaseComponent(IbMatSlideToggleComponent, {
|
|
58
|
+
base: this
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUtdG9nZ2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9pbm9iZXRhLXVpL3VpL21hdGVyaWFsLWZvcm1zL2NvbnRyb2xzL3NsaWRlLXRvZ2dsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsMEJBQTBCLEVBQ2dCLE1BQU0sd0NBQXdDLENBQUM7Ozs7Ozs7QUFxQnJILE1BQU0sT0FBTyx5QkFBeUI7SUFDM0IsSUFBSSxDQUFvQjt1R0FEdEIseUJBQXlCOzJGQUF6Qix5QkFBeUIsdUZBakIxQjs7Ozs7Ozs7Ozs7Ozs7R0FjVDs7MkZBR1UseUJBQXlCO2tCQW5CckMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsdUJBQXVCO29CQUNqQyxRQUFRLEVBQUU7Ozs7Ozs7Ozs7Ozs7O0dBY1Q7aUJBQ0Y7OEJBR1UsSUFBSTtzQkFBWixLQUFLOztBQUlSLE1BQU0sT0FBTyx1QkFBd0IsU0FBUSxpQkFBNEM7SUFDdkYsWUFB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lyZWQpID8gJyonIDogJyd9fVxuICAgICAgICA8L21hdC1zbGlkZS10b2dnbGU+XG4gICAgICAgIDxtYXQtZXJyb3I+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJkYXRhLmZvcm1Db250cm9sRXJyb3JzO2NvbnRleHQ6IHRoaXNcIj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICA8L21hdC1lcnJvcj5cbiAgICA8L2Rpdj5cbiAgYFxufSlcblxuZXhwb3J0IGNsYXNzIEliTWF0U2xpZGVUb2dnbGVDb21wb25lbnQgaW1wbGVtZW50cyBJYkZvcm1Db250cm9sSW50ZXJmYWNlIHtcbiAgQElucHV0KCkgZGF0YTogSWJGb3JtQ29udHJvbERhdGE7XG59XG5cblxuZXhwb3J0IGNsYXNzIEliTWF0U2xpZGVUb2dnbGVDb250cm9sIGV4dGVuZHMgSWJGb3JtQ29udHJvbEJhc2U8Ym9vbGVhbiB8IG51bWJlciB8IHN0cmluZz4ge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBJYkZvcm1Db250cm9sQmFzZVBhcmFtczxib29sZWFuIHwgbnVtYmVyIHwgc3RyaW5nPikge1xuICAgIGlmICghb3B0aW9ucy52YWx1ZSkge1xuICAgICAgICBvcHRpb25zLnZhbHVlID0gZmFsc2U7XG4gICAgfVxuICAgIHN1cGVyKG9wdGlvbnMpO1xuICAgIHRoaXMuY29udHJvbCA9IG5ldyBJYkZvcm1Db250cm9sQmFzZUNvbXBvbmVudChJYk1hdFNsaWRlVG9nZ2xlQ29tcG9uZW50LCB7XG4gICAgICBiYXNlOiB0aGlzXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { IbFormControlBase, IbFormControlBaseComponent } from '../../forms/controls/form-control-base';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@angular/material/form-field";
|
|
7
|
+
import * as i4 from "@angular/material/input";
|
|
8
|
+
import * as i5 from "@ngx-translate/core";
|
|
9
|
+
export class IbMatTextareaComponent {
|
|
10
|
+
data;
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.1", type: IbMatTextareaComponent, selector: "[ib-mat-textarea]", inputs: { data: "data" }, ngImport: i0, template: `
|
|
13
|
+
<mat-form-field appearance="fill" style="width: 100%;" [formGroup]="data.form">
|
|
14
|
+
<mat-label>{{data.base.label | translate}}</mat-label>
|
|
15
|
+
<textarea
|
|
16
|
+
matInput
|
|
17
|
+
[formControlName]="data.base.key"
|
|
18
|
+
[type]="data.base.type"
|
|
19
|
+
(keyup)="data.base.change(data.self)"
|
|
20
|
+
(change)="data.base.change(data.self)"
|
|
21
|
+
[style.height]="data.base.height"
|
|
22
|
+
></textarea>
|
|
23
|
+
<mat-error>
|
|
24
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
25
|
+
</mat-error>
|
|
26
|
+
</mat-form-field>
|
|
27
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: IbMatTextareaComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[ib-mat-textarea]',
|
|
33
|
+
template: `
|
|
34
|
+
<mat-form-field appearance="fill" style="width: 100%;" [formGroup]="data.form">
|
|
35
|
+
<mat-label>{{data.base.label | translate}}</mat-label>
|
|
36
|
+
<textarea
|
|
37
|
+
matInput
|
|
38
|
+
[formControlName]="data.base.key"
|
|
39
|
+
[type]="data.base.type"
|
|
40
|
+
(keyup)="data.base.change(data.self)"
|
|
41
|
+
(change)="data.base.change(data.self)"
|
|
42
|
+
[style.height]="data.base.height"
|
|
43
|
+
></textarea>
|
|
44
|
+
<mat-error>
|
|
45
|
+
<ng-container *ngTemplateOutlet="data.formControlErrors;context: this"></ng-container>
|
|
46
|
+
</mat-error>
|
|
47
|
+
</mat-form-field>
|
|
48
|
+
`
|
|
49
|
+
}]
|
|
50
|
+
}], propDecorators: { data: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
export class IbMatTextareaControl extends IbFormControlBase {
|
|
54
|
+
height = 'auto';
|
|
55
|
+
constructor(options) {
|
|
56
|
+
super(options);
|
|
57
|
+
this.height = options.height || 'auto';
|
|
58
|
+
this.control = new IbFormControlBaseComponent(IbMatTextareaComponent, {
|
|
59
|
+
base: this
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2lub2JldGEtdWkvdWkvbWF0ZXJpYWwtZm9ybXMvY29udHJvbHMvdGV4dGFyZWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLDBCQUEwQixFQUFzRSxNQUFNLHdDQUF3QyxDQUFDOzs7Ozs7O0FBc0IzSyxNQUFNLE9BQU8sc0JBQXNCO0lBQ3hCLElBQUksQ0FBb0I7dUdBRHRCLHNCQUFzQjsyRkFBdEIsc0JBQXNCLG1GQWxCdkI7Ozs7Ozs7Ozs7Ozs7OztHQWVUOzsyRkFHVSxzQkFBc0I7a0JBcEJsQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxtQkFBbUI7b0JBQzdCLFFBQVEsRUFBRTs7Ozs7Ozs7Ozs7Ozs7O0dBZVQ7aUJBQ0Y7OEJBR1UsSUFBSTtzQkFBWixLQUFLOztBQUlSLE1BQU0sT0FB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