@leanix/components 0.2.227 → 0.2.230
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/index.mjs +119 -0
- package/esm2020/leanix-components.mjs +5 -0
- package/esm2020/lib/core-ui/annotations/required.mjs +33 -0
- package/esm2020/lib/core-ui/components/badge/badge.component.mjs +25 -0
- package/esm2020/lib/core-ui/components/button/button.component.mjs +72 -0
- package/esm2020/lib/core-ui/components/button-group/button-group.component.mjs +28 -0
- package/esm2020/lib/core-ui/components/card/card.component.mjs +19 -0
- package/esm2020/lib/core-ui/components/collapsible/collapsible.component.mjs +53 -0
- package/esm2020/lib/core-ui/components/colored-label/colored-label.component.mjs +34 -0
- package/esm2020/lib/core-ui/components/ellipsis/ellipsis.component.mjs +70 -0
- package/esm2020/lib/core-ui/components/icon-scale/icon-scale.component.mjs +40 -0
- package/esm2020/lib/core-ui/components/spinner/spinner.component.mjs +26 -0
- package/esm2020/lib/core-ui/components/table/table-header/table-header.component.mjs +55 -0
- package/esm2020/lib/core-ui/components/table/table.component.mjs +69 -0
- package/esm2020/lib/core-ui/components/tiny-spinner/tiny-spinner.component.mjs +11 -0
- package/esm2020/lib/core-ui/core-ui.constants.mjs +13 -0
- package/esm2020/lib/core-ui/core-ui.module.mjs +177 -0
- package/esm2020/lib/core-ui/directives/after-view-init.directive.mjs +30 -0
- package/esm2020/lib/core-ui/directives/autoclose-group.service.mjs +38 -0
- package/esm2020/lib/core-ui/directives/autoclose.directive.mjs +40 -0
- package/esm2020/lib/core-ui/directives/autofocus.directive.mjs +27 -0
- package/esm2020/lib/core-ui/directives/html.directive.mjs +29 -0
- package/esm2020/lib/core-ui/functions/core-css.helpers.mjs +35 -0
- package/esm2020/lib/core-ui/pipes/br.pipe.mjs +23 -0
- package/esm2020/lib/core-ui/pipes/contrast-color.pipe.mjs +20 -0
- package/esm2020/lib/core-ui/pipes/custom-date.pipe.mjs +27 -0
- package/esm2020/lib/core-ui/pipes/highlight-range.pipe.mjs +21 -0
- package/esm2020/lib/core-ui/pipes/highlight-term.pipe.mjs +38 -0
- package/esm2020/lib/core-ui/pipes/lx-is-uuid.pipe.mjs +21 -0
- package/esm2020/lib/core-ui/pipes/lx-time-ago.pipe.mjs +25 -0
- package/esm2020/lib/core-ui/pipes/lx-translate.pipe.mjs +45 -0
- package/esm2020/lib/core-ui/pipes/markdown.pipe.mjs +29 -0
- package/esm2020/lib/core-ui/pipes/nbsp.pipe.mjs +14 -0
- package/esm2020/lib/core-ui/pipes/sort.pipe.mjs +52 -0
- package/esm2020/lib/core-ui/pipes/translation-after.pipe.mjs +28 -0
- package/esm2020/lib/core-ui/pipes/translation-before.pipe.mjs +53 -0
- package/esm2020/lib/core-ui/pipes/translation-between.pipe.mjs +67 -0
- package/esm2020/lib/core-ui/pipes/unescape-curly-braces.pipe.mjs +16 -0
- package/esm2020/lib/core-ui/tooltip/to-cdk-position.function.mjs +74 -0
- package/esm2020/lib/core-ui/tooltip/tooltip-position.interface.mjs +7 -0
- package/esm2020/lib/core-ui/tooltip/tooltip.component.mjs +26 -0
- package/esm2020/lib/core-ui/tooltip/tooltip.directive.mjs +102 -0
- package/esm2020/lib/core-ui/tooltip/tooltip.module.mjs +21 -0
- package/esm2020/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.mjs +103 -0
- package/esm2020/lib/forms-ui/components/basic-dropdown-item/basic-dropdown-item.component.mjs +33 -0
- package/esm2020/lib/forms-ui/components/cdk-options-dropdown/cdk-options-dropdown.component.mjs +216 -0
- package/esm2020/lib/forms-ui/components/cdk-options-sub-dropdown/cdk-options-sub-dropdown.component.mjs +136 -0
- package/esm2020/lib/forms-ui/components/currency/currency-input.component.mjs +141 -0
- package/esm2020/lib/forms-ui/components/currency/currency-symbol-map.constant.mjs +105 -0
- package/esm2020/lib/forms-ui/components/currency/currency-symbol.component.mjs +25 -0
- package/esm2020/lib/forms-ui/components/date-input/date-input.component.mjs +270 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/constants.mjs +5 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.mjs +49 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.mjs +102 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.module.mjs +25 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-item/keyboard-sortable-item.directive.mjs +133 -0
- package/esm2020/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-list/keyboard-sortable-list.directive.mjs +37 -0
- package/esm2020/lib/forms-ui/components/error-message/error-message.component.mjs +24 -0
- package/esm2020/lib/forms-ui/components/form-error/form-error.component.mjs +40 -0
- package/esm2020/lib/forms-ui/components/icon/icon.component.mjs +44 -0
- package/esm2020/lib/forms-ui/components/input/input.component.mjs +44 -0
- package/esm2020/lib/forms-ui/components/keyboard-select.directive.mjs +116 -0
- package/esm2020/lib/forms-ui/components/multi-select/multi-select.component.mjs +251 -0
- package/esm2020/lib/forms-ui/components/option/option.component.mjs +81 -0
- package/esm2020/lib/forms-ui/components/option-group/option-group.component.mjs +29 -0
- package/esm2020/lib/forms-ui/components/option-group-dropdown/option-group-dropdown.component.mjs +100 -0
- package/esm2020/lib/forms-ui/components/options-dropdown/options-dropdown.component.mjs +163 -0
- package/esm2020/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.mjs +92 -0
- package/esm2020/lib/forms-ui/components/picker/picker-trigger.directive.mjs +36 -0
- package/esm2020/lib/forms-ui/components/picker/picker.component.mjs +201 -0
- package/esm2020/lib/forms-ui/components/picker-option/picker-option.component.mjs +118 -0
- package/esm2020/lib/forms-ui/components/pill-item/pill-item.component.mjs +33 -0
- package/esm2020/lib/forms-ui/components/pill-list/pill-list.component.mjs +59 -0
- package/esm2020/lib/forms-ui/components/responsive-input/responsive-input.component.mjs +97 -0
- package/esm2020/lib/forms-ui/components/single-select/single-select.component.mjs +274 -0
- package/esm2020/lib/forms-ui/components/slider-toggle/slider-toggle.component.mjs +42 -0
- package/esm2020/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.mjs +52 -0
- package/esm2020/lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component.mjs +21 -0
- package/esm2020/lib/forms-ui/directives/form-error.directive.mjs +109 -0
- package/esm2020/lib/forms-ui/directives/form-submit.directive.mjs +28 -0
- package/esm2020/lib/forms-ui/directives/keyboard-action-source.directive.mjs +53 -0
- package/esm2020/lib/forms-ui/directives/mark-invalid.directive.mjs +38 -0
- package/esm2020/lib/forms-ui/directives/select-dropdown.directive.mjs +31 -0
- package/esm2020/lib/forms-ui/directives/selectable-item.directive.mjs +33 -0
- package/esm2020/lib/forms-ui/directives/selected-option.directive.mjs +26 -0
- package/esm2020/lib/forms-ui/forms-ui.module.mjs +236 -0
- package/esm2020/lib/forms-ui/helpers/key-codes.constants.mjs +11 -0
- package/esm2020/lib/forms-ui/helpers/keyboard-navigation.helpers.mjs +38 -0
- package/esm2020/lib/forms-ui/models/base-select.directive.mjs +148 -0
- package/esm2020/lib/forms-ui/models/dropdown-item.interface.mjs +2 -0
- package/esm2020/lib/forms-ui/models/single-select-padding.interface.mjs +2 -0
- package/esm2020/lib/forms-ui/models/sorting.interface.mjs +7 -0
- package/esm2020/lib/forms-ui/pipes/filter-selection.pipe.mjs +30 -0
- package/esm2020/lib/forms-ui/pipes/filter-term.pipe.mjs +26 -0
- package/esm2020/lib/forms-ui/pipes/format-number.pipe.mjs +65 -0
- package/esm2020/lib/forms-ui/validators/date-in-foreseeable-future.validator.mjs +26 -0
- package/esm2020/lib/modal-ui/components/modal/modal.component.mjs +205 -0
- package/esm2020/lib/modal-ui/components/modal-footer/modal-footer.component.mjs +11 -0
- package/esm2020/lib/modal-ui/components/modal-header/modal-header.component.mjs +23 -0
- package/esm2020/lib/modal-ui/directives/modal-content.directive.mjs +13 -0
- package/esm2020/lib/modal-ui/modal.constants.mjs +3 -0
- package/esm2020/lib/modal-ui/modal.module.mjs +26 -0
- package/esm2020/lib/popover-ui/components/popover/popover.component.mjs +199 -0
- package/esm2020/lib/popover-ui/directives/popover-click.directive.mjs +51 -0
- package/esm2020/lib/popover-ui/directives/popover-content.directive.mjs +16 -0
- package/esm2020/lib/popover-ui/directives/popover-hover.directive.mjs +87 -0
- package/esm2020/lib/popover-ui/popover-ui.module.mjs +22 -0
- package/esm2020/lib/shared/date-helpers.mjs +35 -0
- package/esm2020/lib/shared/misc-helpers.mjs +34 -0
- package/esm2020/lib/shared/observe.mjs +40 -0
- package/esm2020/lib/tab-ui/components/tab/tab.component.mjs +70 -0
- package/esm2020/lib/tab-ui/components/tab-group/tab-group.component.mjs +71 -0
- package/esm2020/lib/tab-ui/tab-ui.module.mjs +22 -0
- package/fesm2015/{leanix-components.js → leanix-components.mjs} +681 -692
- package/fesm2015/leanix-components.mjs.map +1 -0
- package/fesm2020/leanix-components.mjs +6207 -0
- package/fesm2020/leanix-components.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/lib/core-ui/functions/core-css.helpers.d.ts +7 -0
- package/lib/forms-ui/components/drag-and-drop-list/constants.d.ts +4 -0
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.d.ts +7 -6
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.d.ts +23 -17
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.module.d.ts +14 -0
- package/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-item/keyboard-sortable-item.directive.d.ts +36 -0
- package/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-list/keyboard-sortable-list.directive.d.ts +14 -0
- package/lib/forms-ui/forms-ui.module.d.ts +41 -43
- package/package.json +23 -9
- package/bundles/leanix-components.umd.js +0 -7162
- package/bundles/leanix-components.umd.js.map +0 -1
- package/esm2015/index.js +0 -117
- package/esm2015/index.js.map +0 -1
- package/esm2015/leanix-components.js +0 -5
- package/esm2015/leanix-components.js.map +0 -1
- package/esm2015/lib/core-ui/annotations/required.js +0 -33
- package/esm2015/lib/core-ui/annotations/required.js.map +0 -1
- package/esm2015/lib/core-ui/components/badge/badge.component.js +0 -29
- package/esm2015/lib/core-ui/components/badge/badge.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/button/button.component.js +0 -78
- package/esm2015/lib/core-ui/components/button/button.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/button-group/button-group.component.js +0 -32
- package/esm2015/lib/core-ui/components/button-group/button-group.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/card/card.component.js +0 -23
- package/esm2015/lib/core-ui/components/card/card.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/collapsible/collapsible.component.js +0 -58
- package/esm2015/lib/core-ui/components/collapsible/collapsible.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/colored-label/colored-label.component.js +0 -39
- package/esm2015/lib/core-ui/components/colored-label/colored-label.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/ellipsis/ellipsis.component.js +0 -74
- package/esm2015/lib/core-ui/components/ellipsis/ellipsis.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/icon-scale/icon-scale.component.js +0 -46
- package/esm2015/lib/core-ui/components/icon-scale/icon-scale.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/spinner/spinner.component.js +0 -30
- package/esm2015/lib/core-ui/components/spinner/spinner.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/table/table-header/table-header.component.js +0 -60
- package/esm2015/lib/core-ui/components/table/table-header/table-header.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/table/table.component.js +0 -70
- package/esm2015/lib/core-ui/components/table/table.component.js.map +0 -1
- package/esm2015/lib/core-ui/components/tiny-spinner/tiny-spinner.component.js +0 -14
- package/esm2015/lib/core-ui/components/tiny-spinner/tiny-spinner.component.js.map +0 -1
- package/esm2015/lib/core-ui/core-ui.constants.js +0 -13
- package/esm2015/lib/core-ui/core-ui.constants.js.map +0 -1
- package/esm2015/lib/core-ui/core-ui.module.js +0 -177
- package/esm2015/lib/core-ui/core-ui.module.js.map +0 -1
- package/esm2015/lib/core-ui/directives/after-view-init.directive.js +0 -30
- package/esm2015/lib/core-ui/directives/after-view-init.directive.js.map +0 -1
- package/esm2015/lib/core-ui/directives/autoclose-group.service.js +0 -38
- package/esm2015/lib/core-ui/directives/autoclose-group.service.js.map +0 -1
- package/esm2015/lib/core-ui/directives/autoclose.directive.js +0 -40
- package/esm2015/lib/core-ui/directives/autoclose.directive.js.map +0 -1
- package/esm2015/lib/core-ui/directives/autofocus.directive.js +0 -27
- package/esm2015/lib/core-ui/directives/autofocus.directive.js.map +0 -1
- package/esm2015/lib/core-ui/directives/html.directive.js +0 -30
- package/esm2015/lib/core-ui/directives/html.directive.js.map +0 -1
- package/esm2015/lib/core-ui/functions/core-css.helpers.js +0 -23
- package/esm2015/lib/core-ui/functions/core-css.helpers.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/br.pipe.js +0 -23
- package/esm2015/lib/core-ui/pipes/br.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/contrast-color.pipe.js +0 -20
- package/esm2015/lib/core-ui/pipes/contrast-color.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/custom-date.pipe.js +0 -27
- package/esm2015/lib/core-ui/pipes/custom-date.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/highlight-range.pipe.js +0 -21
- package/esm2015/lib/core-ui/pipes/highlight-range.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/highlight-term.pipe.js +0 -38
- package/esm2015/lib/core-ui/pipes/highlight-term.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/lx-is-uuid.pipe.js +0 -21
- package/esm2015/lib/core-ui/pipes/lx-is-uuid.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/lx-time-ago.pipe.js +0 -25
- package/esm2015/lib/core-ui/pipes/lx-time-ago.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/lx-translate.pipe.js +0 -46
- package/esm2015/lib/core-ui/pipes/lx-translate.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/markdown.pipe.js +0 -29
- package/esm2015/lib/core-ui/pipes/markdown.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/nbsp.pipe.js +0 -14
- package/esm2015/lib/core-ui/pipes/nbsp.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/sort.pipe.js +0 -52
- package/esm2015/lib/core-ui/pipes/sort.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/translation-after.pipe.js +0 -28
- package/esm2015/lib/core-ui/pipes/translation-after.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/translation-before.pipe.js +0 -53
- package/esm2015/lib/core-ui/pipes/translation-before.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/translation-between.pipe.js +0 -67
- package/esm2015/lib/core-ui/pipes/translation-between.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/pipes/unescape-curly-braces.pipe.js +0 -16
- package/esm2015/lib/core-ui/pipes/unescape-curly-braces.pipe.js.map +0 -1
- package/esm2015/lib/core-ui/tooltip/to-cdk-position.function.js +0 -74
- package/esm2015/lib/core-ui/tooltip/to-cdk-position.function.js.map +0 -1
- package/esm2015/lib/core-ui/tooltip/tooltip-position.interface.js +0 -7
- package/esm2015/lib/core-ui/tooltip/tooltip-position.interface.js.map +0 -1
- package/esm2015/lib/core-ui/tooltip/tooltip.component.js +0 -30
- package/esm2015/lib/core-ui/tooltip/tooltip.component.js.map +0 -1
- package/esm2015/lib/core-ui/tooltip/tooltip.directive.js +0 -107
- package/esm2015/lib/core-ui/tooltip/tooltip.directive.js.map +0 -1
- package/esm2015/lib/core-ui/tooltip/tooltip.module.js +0 -21
- package/esm2015/lib/core-ui/tooltip/tooltip.module.js.map +0 -1
- package/esm2015/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.js +0 -108
- package/esm2015/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/basic-dropdown-item/basic-dropdown-item.component.js +0 -38
- package/esm2015/lib/forms-ui/components/basic-dropdown-item/basic-dropdown-item.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/cdk-options-dropdown/cdk-options-dropdown.component.js +0 -223
- package/esm2015/lib/forms-ui/components/cdk-options-dropdown/cdk-options-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/cdk-options-sub-dropdown/cdk-options-sub-dropdown.component.js +0 -140
- package/esm2015/lib/forms-ui/components/cdk-options-sub-dropdown/cdk-options-sub-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/currency/currency-input.component.js +0 -147
- package/esm2015/lib/forms-ui/components/currency/currency-input.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/currency/currency-symbol-map.constant.js +0 -105
- package/esm2015/lib/forms-ui/components/currency/currency-symbol-map.constant.js.map +0 -1
- package/esm2015/lib/forms-ui/components/currency/currency-symbol.component.js +0 -28
- package/esm2015/lib/forms-ui/components/currency/currency-symbol.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/date-input/date-input.component.js +0 -276
- package/esm2015/lib/forms-ui/components/date-input/date-input.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.js +0 -57
- package/esm2015/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.js +0 -99
- package/esm2015/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/error-message/error-message.component.js +0 -29
- package/esm2015/lib/forms-ui/components/error-message/error-message.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/form-error/form-error.component.js +0 -44
- package/esm2015/lib/forms-ui/components/form-error/form-error.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/icon/icon.component.js +0 -49
- package/esm2015/lib/forms-ui/components/icon/icon.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/input/input.component.js +0 -51
- package/esm2015/lib/forms-ui/components/input/input.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/keyboard-select.directive.js +0 -117
- package/esm2015/lib/forms-ui/components/keyboard-select.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/components/multi-select/multi-select.component.js +0 -257
- package/esm2015/lib/forms-ui/components/multi-select/multi-select.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/option/option.component.js +0 -85
- package/esm2015/lib/forms-ui/components/option/option.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/option-group/option-group.component.js +0 -34
- package/esm2015/lib/forms-ui/components/option-group/option-group.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/option-group-dropdown/option-group-dropdown.component.js +0 -105
- package/esm2015/lib/forms-ui/components/option-group-dropdown/option-group-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/options-dropdown/options-dropdown.component.js +0 -169
- package/esm2015/lib/forms-ui/components/options-dropdown/options-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.js +0 -96
- package/esm2015/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/picker/picker-trigger.directive.js +0 -36
- package/esm2015/lib/forms-ui/components/picker/picker-trigger.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/components/picker/picker.component.js +0 -210
- package/esm2015/lib/forms-ui/components/picker/picker.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/picker-option/picker-option.component.js +0 -124
- package/esm2015/lib/forms-ui/components/picker-option/picker-option.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/pill-item/pill-item.component.js +0 -37
- package/esm2015/lib/forms-ui/components/pill-item/pill-item.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/pill-list/pill-list.component.js +0 -64
- package/esm2015/lib/forms-ui/components/pill-list/pill-list.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/responsive-input/responsive-input.component.js +0 -104
- package/esm2015/lib/forms-ui/components/responsive-input/responsive-input.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/single-select/single-select.component.js +0 -279
- package/esm2015/lib/forms-ui/components/single-select/single-select.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/slider-toggle/slider-toggle.component.js +0 -47
- package/esm2015/lib/forms-ui/components/slider-toggle/slider-toggle.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.js +0 -56
- package/esm2015/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.js.map +0 -1
- package/esm2015/lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component.js +0 -25
- package/esm2015/lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/form-error.directive.js +0 -111
- package/esm2015/lib/forms-ui/directives/form-error.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/form-submit.directive.js +0 -28
- package/esm2015/lib/forms-ui/directives/form-submit.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/keyboard-action-source.directive.js +0 -53
- package/esm2015/lib/forms-ui/directives/keyboard-action-source.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/mark-invalid.directive.js +0 -38
- package/esm2015/lib/forms-ui/directives/mark-invalid.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/select-dropdown.directive.js +0 -31
- package/esm2015/lib/forms-ui/directives/select-dropdown.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/selectable-item.directive.js +0 -33
- package/esm2015/lib/forms-ui/directives/selectable-item.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/directives/selected-option.directive.js +0 -26
- package/esm2015/lib/forms-ui/directives/selected-option.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/forms-ui.module.js +0 -244
- package/esm2015/lib/forms-ui/forms-ui.module.js.map +0 -1
- package/esm2015/lib/forms-ui/helpers/key-codes.constants.js +0 -11
- package/esm2015/lib/forms-ui/helpers/key-codes.constants.js.map +0 -1
- package/esm2015/lib/forms-ui/helpers/keyboard-navigation.helpers.js +0 -38
- package/esm2015/lib/forms-ui/helpers/keyboard-navigation.helpers.js.map +0 -1
- package/esm2015/lib/forms-ui/models/base-select.directive.js +0 -148
- package/esm2015/lib/forms-ui/models/base-select.directive.js.map +0 -1
- package/esm2015/lib/forms-ui/models/dropdown-item.interface.js +0 -2
- package/esm2015/lib/forms-ui/models/dropdown-item.interface.js.map +0 -1
- package/esm2015/lib/forms-ui/models/single-select-padding.interface.js +0 -2
- package/esm2015/lib/forms-ui/models/single-select-padding.interface.js.map +0 -1
- package/esm2015/lib/forms-ui/models/sorting.interface.js +0 -7
- package/esm2015/lib/forms-ui/models/sorting.interface.js.map +0 -1
- package/esm2015/lib/forms-ui/pipes/filter-selection.pipe.js +0 -30
- package/esm2015/lib/forms-ui/pipes/filter-selection.pipe.js.map +0 -1
- package/esm2015/lib/forms-ui/pipes/filter-term.pipe.js +0 -26
- package/esm2015/lib/forms-ui/pipes/filter-term.pipe.js.map +0 -1
- package/esm2015/lib/forms-ui/pipes/format-number.pipe.js +0 -65
- package/esm2015/lib/forms-ui/pipes/format-number.pipe.js.map +0 -1
- package/esm2015/lib/forms-ui/validators/date-in-foreseeable-future.validator.js +0 -26
- package/esm2015/lib/forms-ui/validators/date-in-foreseeable-future.validator.js.map +0 -1
- package/esm2015/lib/modal-ui/components/modal/modal.component.js +0 -214
- package/esm2015/lib/modal-ui/components/modal/modal.component.js.map +0 -1
- package/esm2015/lib/modal-ui/components/modal-footer/modal-footer.component.js +0 -15
- package/esm2015/lib/modal-ui/components/modal-footer/modal-footer.component.js.map +0 -1
- package/esm2015/lib/modal-ui/components/modal-header/modal-header.component.js +0 -27
- package/esm2015/lib/modal-ui/components/modal-header/modal-header.component.js.map +0 -1
- package/esm2015/lib/modal-ui/directives/modal-content.directive.js +0 -13
- package/esm2015/lib/modal-ui/directives/modal-content.directive.js.map +0 -1
- package/esm2015/lib/modal-ui/modal.constants.js +0 -3
- package/esm2015/lib/modal-ui/modal.constants.js.map +0 -1
- package/esm2015/lib/modal-ui/modal.module.js +0 -26
- package/esm2015/lib/modal-ui/modal.module.js.map +0 -1
- package/esm2015/lib/popover-ui/components/popover/popover.component.js +0 -203
- package/esm2015/lib/popover-ui/components/popover/popover.component.js.map +0 -1
- package/esm2015/lib/popover-ui/directives/popover-click.directive.js +0 -51
- package/esm2015/lib/popover-ui/directives/popover-click.directive.js.map +0 -1
- package/esm2015/lib/popover-ui/directives/popover-content.directive.js +0 -16
- package/esm2015/lib/popover-ui/directives/popover-content.directive.js.map +0 -1
- package/esm2015/lib/popover-ui/directives/popover-hover.directive.js +0 -87
- package/esm2015/lib/popover-ui/directives/popover-hover.directive.js.map +0 -1
- package/esm2015/lib/popover-ui/popover-ui.module.js +0 -22
- package/esm2015/lib/popover-ui/popover-ui.module.js.map +0 -1
- package/esm2015/lib/shared/date-helpers.js +0 -35
- package/esm2015/lib/shared/date-helpers.js.map +0 -1
- package/esm2015/lib/shared/misc-helpers.js +0 -34
- package/esm2015/lib/shared/misc-helpers.js.map +0 -1
- package/esm2015/lib/shared/observe.js +0 -40
- package/esm2015/lib/shared/observe.js.map +0 -1
- package/esm2015/lib/tab-ui/components/tab/tab.component.js +0 -75
- package/esm2015/lib/tab-ui/components/tab/tab.component.js.map +0 -1
- package/esm2015/lib/tab-ui/components/tab-group/tab-group.component.js +0 -78
- package/esm2015/lib/tab-ui/components/tab-group/tab-group.component.js.map +0 -1
- package/esm2015/lib/tab-ui/tab-ui.module.js +0 -22
- package/esm2015/lib/tab-ui/tab-ui.module.js.map +0 -1
- package/fesm2015/leanix-components.js.map +0 -1
@@ -1,148 +0,0 @@
|
|
1
|
-
import { Directive, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
2
|
-
import { FormControl } from '@angular/forms';
|
3
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
4
|
-
import { distinctUntilChanged, filter, takeUntil } from 'rxjs/operators';
|
5
|
-
import { KeyboardSelectAction } from '../components/keyboard-select.directive';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export class BaseSelectDirective {
|
8
|
-
constructor() {
|
9
|
-
this.disabled = false;
|
10
|
-
this.focusOnInit = false;
|
11
|
-
this.dropdownMaxHeight = 250;
|
12
|
-
this.allowQuery = true;
|
13
|
-
this.query = new EventEmitter();
|
14
|
-
this.close = new EventEmitter();
|
15
|
-
this.open = new EventEmitter();
|
16
|
-
this.query$ = this.query.asObservable();
|
17
|
-
this.dropdownDirection$ = new BehaviorSubject('BOTTOM');
|
18
|
-
this.dropdownOpen = false;
|
19
|
-
// an axis, where the negative range represents the selected item in the selection
|
20
|
-
this.selectionKeyboardSelectAction$ = new Subject();
|
21
|
-
this.optionsKeyboardSelectAction$ = new Subject();
|
22
|
-
this.virtualCursorPosition = 0;
|
23
|
-
this.inputWasFocused = false;
|
24
|
-
this.queryControl = new FormControl();
|
25
|
-
this.isInputFocused = false;
|
26
|
-
this.destroyed$ = new Subject();
|
27
|
-
}
|
28
|
-
ngAfterViewInit() {
|
29
|
-
this.queryControl.valueChanges
|
30
|
-
.pipe(filter(() => this.allowQuery), takeUntil(this.destroyed$))
|
31
|
-
.subscribe((value) => {
|
32
|
-
if (value && value.length > 0) {
|
33
|
-
this.open.next(true);
|
34
|
-
}
|
35
|
-
this.query.emit(value);
|
36
|
-
this.selectFirstOption();
|
37
|
-
});
|
38
|
-
this.open
|
39
|
-
.pipe(filter(() => !this.disabled), distinctUntilChanged(), takeUntil(this.destroyed$))
|
40
|
-
.subscribe((isOpen) => {
|
41
|
-
this.dropdownOpen = isOpen;
|
42
|
-
if (isOpen) {
|
43
|
-
this.setOpenDirection();
|
44
|
-
}
|
45
|
-
else {
|
46
|
-
this.resetSelectState();
|
47
|
-
this.close.emit();
|
48
|
-
}
|
49
|
-
});
|
50
|
-
if (this.focusOnInit) {
|
51
|
-
setTimeout(() => this.focus());
|
52
|
-
}
|
53
|
-
}
|
54
|
-
ngOnChanges(changes) {
|
55
|
-
if ('disabled' in changes) {
|
56
|
-
if (this.disabled) {
|
57
|
-
this.queryControl.disable();
|
58
|
-
}
|
59
|
-
else {
|
60
|
-
this.queryControl.enable();
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
ngOnDestroy() {
|
65
|
-
this.destroyed$.next();
|
66
|
-
}
|
67
|
-
/**
|
68
|
-
* @param toggle is true when the caret to the right in a select component was clicked
|
69
|
-
*/
|
70
|
-
handleClick(toggle) {
|
71
|
-
if (toggle || !this.dropdownOpen || !this.allowQuery) {
|
72
|
-
this.open.next(!this.dropdownOpen);
|
73
|
-
}
|
74
|
-
this.focus();
|
75
|
-
}
|
76
|
-
handleBackdropClick(event) {
|
77
|
-
event.stopPropagation();
|
78
|
-
this.closeInput();
|
79
|
-
}
|
80
|
-
closeInput() {
|
81
|
-
this.open.next(false);
|
82
|
-
this.resetInput();
|
83
|
-
this.query.emit('');
|
84
|
-
}
|
85
|
-
setOpenDirection() {
|
86
|
-
const dropdownRect = this.optionsContainer.nativeElement.getBoundingClientRect();
|
87
|
-
const spaceAtTheBottom = document.documentElement.clientHeight - dropdownRect.top - dropdownRect.height - this.dropdownMaxHeight;
|
88
|
-
const spaceAtTheTop = dropdownRect.top - this.dropdownMaxHeight;
|
89
|
-
const isTop = spaceAtTheBottom < 0 && spaceAtTheTop > spaceAtTheBottom;
|
90
|
-
this.dropdownDirection$.next(isTop ? 'TOP' : 'BOTTOM');
|
91
|
-
}
|
92
|
-
resetSelectState() {
|
93
|
-
this.virtualCursorPosition = 0;
|
94
|
-
this.selectionKeyboardSelectAction$.next(KeyboardSelectAction.UNSELECT);
|
95
|
-
this.optionsKeyboardSelectAction$.next(KeyboardSelectAction.UNSELECT);
|
96
|
-
this.resetInput();
|
97
|
-
this.query.emit('');
|
98
|
-
}
|
99
|
-
mapToEventSet(event, input, virtualCursorPosition, selectionLength) {
|
100
|
-
return {
|
101
|
-
event,
|
102
|
-
inputCursorPosition: this.doGetCaretPosition(input),
|
103
|
-
virtualCursorPosition,
|
104
|
-
selectionLength
|
105
|
-
};
|
106
|
-
}
|
107
|
-
/*
|
108
|
-
* Returns the caret (cursor) position of the specified text field.
|
109
|
-
* Return value range is 0-oField.value.length.
|
110
|
-
* https://stackoverflow.com/questions/2897155/get-cursor-position-in-characters-within-a-text-input-field
|
111
|
-
*/
|
112
|
-
doGetCaretPosition(oField) {
|
113
|
-
let iCaretPos = 0;
|
114
|
-
if (oField.selectionStart || parseInt(oField.selectionStart, 10) === 0) {
|
115
|
-
// Check when range selection using null we prevent deleting on
|
116
|
-
iCaretPos = oField.selectionStart === oField.selectionEnd ? oField.selectionStart : null;
|
117
|
-
}
|
118
|
-
return iCaretPos;
|
119
|
-
}
|
120
|
-
selectFirstOption() {
|
121
|
-
this.optionsKeyboardSelectAction$.next(KeyboardSelectAction.FIRST);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
BaseSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: BaseSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
125
|
-
BaseSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.4", type: BaseSelectDirective, inputs: { placeholder: "placeholder", disabled: "disabled", focusOnInit: "focusOnInit", dropdownMaxHeight: "dropdownMaxHeight", allowQuery: "allowQuery" }, outputs: { query: "query", close: "close", open: "open" }, viewQueries: [{ propertyName: "optionsContainer", first: true, predicate: ["optionsContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0 });
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: BaseSelectDirective, decorators: [{
|
127
|
-
type: Directive
|
128
|
-
}], propDecorators: { placeholder: [{
|
129
|
-
type: Input
|
130
|
-
}], disabled: [{
|
131
|
-
type: Input
|
132
|
-
}], focusOnInit: [{
|
133
|
-
type: Input
|
134
|
-
}], dropdownMaxHeight: [{
|
135
|
-
type: Input
|
136
|
-
}], allowQuery: [{
|
137
|
-
type: Input
|
138
|
-
}], query: [{
|
139
|
-
type: Output
|
140
|
-
}], close: [{
|
141
|
-
type: Output
|
142
|
-
}], open: [{
|
143
|
-
type: Output
|
144
|
-
}], optionsContainer: [{
|
145
|
-
type: ViewChild,
|
146
|
-
args: ['optionsContainer', { static: true }]
|
147
|
-
}] } });
|
148
|
-
//# sourceMappingURL=../../../../../../../libs/components/src/lib/forms-ui/models/base-select.directive.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base-select.directive.js","sourceRoot":"","sources":["base-select.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,YAAY,EACZ,KAAK,EAGL,MAAM,EAEN,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;;AAU/E,MAAM,OAAgB,mBAAmB;IADzC;QAGW,aAAQ,GAAY,KAAK,CAAC;QAC1B,gBAAW,GAAY,KAAK,CAAC;QAC7B,sBAAiB,GAAW,GAAG,CAAC;QAChC,eAAU,GAAY,IAAI,CAAC;QAE1B,UAAK,GAAG,IAAI,YAAY,EAAU,CAAC;QACnC,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;QACjC,SAAI,GAAG,IAAI,YAAY,EAAW,CAAC;QAO7B,WAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QACnC,uBAAkB,GAAG,I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,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;;gHA5JmB,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBADxC,SAAS;8BAEC,WAAW;sBAAnB,KAAK;gBACG,QAAQ;sBAAhB,KAAK;gBACG,WAAW;sBAAnB,KAAK;gBACG,iBAAiB;sBAAzB,KAAK;gBACG,UAAU;sBAAlB,KAAK;gBAEI,KAAK;sBAAd,MAAM;gBACG,KAAK;sBAAd,MAAM;gBACG,IAAI;sBAAb,MAAM;gBAE0C,gBAAgB;sBAAhE,SAAS;uBAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dropdown-item.interface.js","sourceRoot":"","sources":["dropdown-item.interface.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"single-select-padding.interface.js","sourceRoot":"","sources":["single-select-padding.interface.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sorting.interface.js","sourceRoot":"","sources":["sorting.interface.ts"],"names":[],"mappings":"AACA,MAAM,OAAO,OAAO;IAApB;QACE,QAAG,GAAW,EAAE,CAAC;QACjB,UAAK,GAAiB,KAAK,CAAC;IAC9B,CAAC;CAAA"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { Pipe } from '@angular/core';
|
2
|
-
import { filter, find, includes, isEqual, isObject } from 'lodash/fp';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export class FilterSelectionPipe {
|
5
|
-
transform(items, selection, itemKey) {
|
6
|
-
const isArray = Array.isArray(selection);
|
7
|
-
return filter((item) => {
|
8
|
-
if (isArray) {
|
9
|
-
if (isObject(item)) {
|
10
|
-
return itemKey
|
11
|
-
? !find((selectedItem) => { var _a; return (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem[itemKey]) === ((_a = item) === null || _a === void 0 ? void 0 : _a[itemKey]); }, selection)
|
12
|
-
: !find(item, selection);
|
13
|
-
}
|
14
|
-
else {
|
15
|
-
return !includes(item, selection);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
else {
|
19
|
-
return !isEqual(item, selection);
|
20
|
-
}
|
21
|
-
}, items);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
FilterSelectionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterSelectionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
25
|
-
FilterSelectionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterSelectionPipe, name: "lxFilterBySelection" });
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterSelectionPipe, decorators: [{
|
27
|
-
type: Pipe,
|
28
|
-
args: [{ name: 'lxFilterBySelection' }]
|
29
|
-
}] });
|
30
|
-
//# sourceMappingURL=../../../../../../../libs/components/src/lib/forms-ui/pipes/filter-selection.pipe.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filter-selection.pipe.js","sourceRoot":"","sources":["filter-selection.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;;AAGtE,MAAM,OAAO,mBAAmB;IAC9B,SAAS,CAAC,KAA+B,EAAE,SAAc,EAAE,OAAgB;QACzE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACzC,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,IAAI,OAAO,EAAE;gBACX,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;oBAClB,OAAO,OAAO;wBACZ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,WAAC,OAAA,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,OAAO,CAAC,OAAK,MAAC,IAAY,0CAAG,OAAO,CAAC,CAAA,CAAA,EAAA,EAAE,SAAS,CAAC;wBAC1F,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;iBAC5B;qBAAM;oBACL,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;iBACnC;aACF;iBAAM;gBACL,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;aAClC;QACH,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC;;gHAhBU,mBAAmB;8GAAnB,mBAAmB;2FAAnB,mBAAmB;kBAD/B,IAAI;mBAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Pipe } from '@angular/core';
|
2
|
-
import { filter, toLower } from 'lodash/fp';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export class FilterTermPipe {
|
5
|
-
transform(items, options) {
|
6
|
-
if (items === null) {
|
7
|
-
return [];
|
8
|
-
}
|
9
|
-
if (options.term) {
|
10
|
-
return filter((item) => {
|
11
|
-
const value = options.key ? item[options.key] : item;
|
12
|
-
return toLower(value).indexOf(toLower(options.term)) > -1;
|
13
|
-
}, items);
|
14
|
-
}
|
15
|
-
else {
|
16
|
-
return items;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
FilterTermPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterTermPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
21
|
-
FilterTermPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterTermPipe, name: "lxFilterByTerm" });
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FilterTermPipe, decorators: [{
|
23
|
-
type: Pipe,
|
24
|
-
args: [{ name: 'lxFilterByTerm' }]
|
25
|
-
}] });
|
26
|
-
//# sourceMappingURL=../../../../../../../libs/components/src/lib/forms-ui/pipes/filter-term.pipe.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filter-term.pipe.js","sourceRoot":"","sources":["filter-term.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AAG5C,MAAM,OAAO,cAAc;IACzB,SAAS,CAAC,KAAmB,EAAE,OAA+C;QAC5E,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,OAAO,EAAE,CAAC;SACX;QACD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;gBACrB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;gBACrD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7D,CAAC,EAAE,KAAK,CAAC,CAAC;SACX;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;;2GAbU,cAAc;yGAAd,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE"}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { Inject, Pipe } from '@angular/core';
|
2
|
-
import { map } from 'rxjs/operators';
|
3
|
-
import { LOCALE_FN } from '../../core-ui/core-ui.constants';
|
4
|
-
import { CURRENCY_SYMBOL_MAP } from '../components/currency/currency-symbol-map.constant';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
/**
|
7
|
-
* Reformats numbers into a short format.
|
8
|
-
* @example {{ 1000 | lxFormatNumber | async }} prints 1K
|
9
|
-
*
|
10
|
-
* If the parameter currency is set, a currency sign is inserted based on the value and the current locale.
|
11
|
-
* In this case, the pipe must be used with an innerHtml attribute.
|
12
|
-
* @example [lxHtml]="1000 | lxFormatNumber: 'USD' | async" prints $1K
|
13
|
-
*/
|
14
|
-
export class FormatNumberPipe {
|
15
|
-
constructor(getLocale) {
|
16
|
-
this.getLocale = getLocale;
|
17
|
-
}
|
18
|
-
transform(number, currency) {
|
19
|
-
const locale$ = this.getLocale();
|
20
|
-
return locale$.pipe(map((locale) => {
|
21
|
-
if (number === null || number === undefined) {
|
22
|
-
return null;
|
23
|
-
}
|
24
|
-
const options = {
|
25
|
-
notation: 'compact',
|
26
|
-
compactDisplay: 'short'
|
27
|
-
};
|
28
|
-
if (currency) {
|
29
|
-
try {
|
30
|
-
const currencyOptions = Object.assign(Object.assign({}, options), { currency, style: 'currency' });
|
31
|
-
const formatedNumberWithCurrency = new Intl.NumberFormat(locale, currencyOptions).format(number);
|
32
|
-
return this.getFormatedCurrency(formatedNumberWithCurrency, currency);
|
33
|
-
}
|
34
|
-
catch (_error) {
|
35
|
-
console.warn(`FormatNumberPipe: Invalid currency code: ${currency}`);
|
36
|
-
return new Intl.NumberFormat(locale, options).format(number);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
return new Intl.NumberFormat(locale, options).format(number);
|
40
|
-
}));
|
41
|
-
}
|
42
|
-
/**
|
43
|
-
* Use custom currency symbol, when the currency in the formated number doesn't match the
|
44
|
-
* symbol in the CURRENCY_SYMBOL_MAP.
|
45
|
-
*/
|
46
|
-
getFormatedCurrency(formatedNumberWitCurrency, currency) {
|
47
|
-
const currencyMapping = CURRENCY_SYMBOL_MAP[currency];
|
48
|
-
if (currencyMapping && currencyMapping !== currency && !formatedNumberWitCurrency.includes(currencyMapping)) {
|
49
|
-
return formatedNumberWitCurrency.replace(currency, currencyMapping);
|
50
|
-
}
|
51
|
-
return formatedNumberWitCurrency;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
FormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FormatNumberPipe, deps: [{ token: LOCALE_FN }], target: i0.ɵɵFactoryTarget.Pipe });
|
55
|
-
FormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FormatNumberPipe, name: "lxFormatNumber" });
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: FormatNumberPipe, decorators: [{
|
57
|
-
type: Pipe,
|
58
|
-
args: [{
|
59
|
-
name: 'lxFormatNumber'
|
60
|
-
}]
|
61
|
-
}], ctorParameters: function () { return [{ type: Function, decorators: [{
|
62
|
-
type: Inject,
|
63
|
-
args: [LOCALE_FN]
|
64
|
-
}] }]; } });
|
65
|
-
//# sourceMappingURL=../../../../../../../libs/components/src/lib/forms-ui/pipes/format-number.pipe.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"format-number.pipe.js","sourceRoot":"","sources":["format-number.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;;AAE1F;;;;;;;GAOG;AAIH,MAAM,OAAO,gBAAgB;IAC3B,YAAuC,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAAG,CAAC;IAE9D,SAAS,CAAC,MAAiC,EAAE,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C,QAAQ,EAAE,eAAe,CAAC,CAAC;SACrE;QACD,OAAO,yBAAyB,CAAC;IACnC,CAAC;;6GAvCU,gBAAgB,kBACP,SAAS;2GADlB,gBAAgB;2FAAhB,gBAAgB;kBAH5B,IAAI;mBAAC;oBACJ,IAAI,EAAE,gBAAgB;iBACvB;0DAEmD,QAAQ;0BAA7C,MAAM;2BAAC,SAAS"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { formatDate } from '@angular/common';
|
2
|
-
/**
|
3
|
-
* Due to limitations of the native html datepicker this validator is needed:
|
4
|
-
* In the datepicker the min and max values only apply if the date is altered e.g. via scrolling.
|
5
|
-
* It is still possible to manually input a value lower or higher than min and max value.
|
6
|
-
*/
|
7
|
-
export function ValidateDateInForeseeableFuture(control) {
|
8
|
-
// matches yyyy-mm-dd
|
9
|
-
const dateRegex = /^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$/;
|
10
|
-
if (control.value && dateRegex.test(control.value)) {
|
11
|
-
const today = formatDate(new Date(), 'yyyy-MM-dd', 'en');
|
12
|
-
const maxDate = '2999-12-31';
|
13
|
-
if (control.value < today || control.value > maxDate) {
|
14
|
-
return {
|
15
|
-
dateInForseeableFuture: {
|
16
|
-
valid: false
|
17
|
-
}
|
18
|
-
};
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
return null;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
return null;
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=../../../../../../../libs/components/src/lib/forms-ui/validators/date-in-foreseeable-future.validator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"date-in-foreseeable-future.validator.js","sourceRoot":"","sources":["date-in-foreseeable-future.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAAC,OAAwB;IACtE,qBAAqB;IACrB,MAAM,SAAS,GAAG,oDAAoD,CAAC;IAEvE,IAAI,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAClD,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,YAAY,CAAC;QAC7B,IAAI,OAAO,CAAC,KAAK,GAAG,KAAK,IAAI,OAAO,CAAC,KAAK,GAAG,OAAO,EAAE;YACpD,OAAO;gBACL,sBAAsB,EAAE;oBACtB,KAAK,EAAE,KAAK;iBACb;aACF,CAAC;SACH;aAAM;YACL,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
@@ -1,214 +0,0 @@
|
|
1
|
-
import { __awaiter } from "tslib";
|
2
|
-
import { animate, style, transition, trigger } from '@angular/animations';
|
3
|
-
import { CdkPortal } from '@angular/cdk/portal';
|
4
|
-
import { Component, ContentChild, EventEmitter, HostListener, Inject, Input, Optional, Output, TemplateRef, ViewChild } from '@angular/core';
|
5
|
-
import { Subject, timer } from 'rxjs';
|
6
|
-
import { takeUntil } from 'rxjs/operators';
|
7
|
-
import { ModalContentDirective } from '../../directives/modal-content.directive';
|
8
|
-
import { MODAL_CLOSE } from '../../modal.constants';
|
9
|
-
import { ModalFooterComponent } from '../modal-footer/modal-footer.component';
|
10
|
-
import { ModalHeaderComponent } from '../modal-header/modal-header.component';
|
11
|
-
import * as i0 from "@angular/core";
|
12
|
-
import * as i1 from "@angular/cdk/overlay";
|
13
|
-
import * as i2 from "@angular/cdk/a11y";
|
14
|
-
import * as i3 from "@angular/cdk/portal";
|
15
|
-
import * as i4 from "@angular/common";
|
16
|
-
import * as i5 from "@ngx-translate/core";
|
17
|
-
import * as i6 from "rxjs";
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* ATTENTION - SCROLLABLE DIALOG:
|
21
|
-
* The <lx-modal> component when used as "dialog" is not designed to work with a
|
22
|
-
* scrollable body (via "overflow: auto | scroll") in combination with dropdowns.
|
23
|
-
* The overflow on the body will also clip the dropdowns, which is expected.
|
24
|
-
*
|
25
|
-
* Reasoning:
|
26
|
-
* The contents within the dialog should be just a few elements which fit and
|
27
|
-
* justify the usage of a dialog. If the content is larger than the dialog, and thus
|
28
|
-
* requires scrolling, we should discuss whether to put it into a dialog at all
|
29
|
-
* and rather think about putting the content on a separate route or
|
30
|
-
* using the fullscreen version of the modal.
|
31
|
-
*
|
32
|
-
*/
|
33
|
-
export class ModalComponent {
|
34
|
-
constructor(overlay, renderer, closeModal$, focusTrap) {
|
35
|
-
this.overlay = overlay;
|
36
|
-
this.renderer = renderer;
|
37
|
-
this.closeModal$ = closeModal$;
|
38
|
-
this.focusTrap = focusTrap;
|
39
|
-
this.NAME = 'ModalComponent';
|
40
|
-
this.open = false;
|
41
|
-
this.showCloseButton = true;
|
42
|
-
this.showBackButton = false;
|
43
|
-
/*
|
44
|
-
* If true, then the content area scrolls vertically instead of expanding its height.
|
45
|
-
* This can be a problem if the content has dropdowns or date inputs, but can be good if the content has a huge amount of text.
|
46
|
-
*/
|
47
|
-
this.verticalScroll = false;
|
48
|
-
this.size = 'fullscreen';
|
49
|
-
this.isFocusTrap = false;
|
50
|
-
this.close = new EventEmitter();
|
51
|
-
this.back = new EventEmitter();
|
52
|
-
this.destroyed$ = new Subject();
|
53
|
-
}
|
54
|
-
get content() {
|
55
|
-
return this.explicitContent || this.implicitContent;
|
56
|
-
}
|
57
|
-
onEscape() {
|
58
|
-
this.closeModal();
|
59
|
-
}
|
60
|
-
ngOnInit() {
|
61
|
-
var _a;
|
62
|
-
(_a = this.closeModal$) === null || _a === void 0 ? void 0 : _a.pipe(takeUntil(this.destroyed$)).subscribe(() => this.closeModal());
|
63
|
-
if (this.size === 'fullscreen') {
|
64
|
-
this.overlayRef = this.overlay.create({
|
65
|
-
panelClass: this.size,
|
66
|
-
width: '100%',
|
67
|
-
height: '100vh'
|
68
|
-
});
|
69
|
-
}
|
70
|
-
else if (this.size === 'dialog-large') {
|
71
|
-
const positionStrategy = this.overlay.position().global().top('4vh').centerHorizontally();
|
72
|
-
this.overlayRef = this.overlay.create({
|
73
|
-
panelClass: this.size,
|
74
|
-
positionStrategy,
|
75
|
-
hasBackdrop: true,
|
76
|
-
width: '90%',
|
77
|
-
height: '90vh'
|
78
|
-
});
|
79
|
-
}
|
80
|
-
else {
|
81
|
-
// size 'dialog'
|
82
|
-
const positionStrategy = this.overlay.position().global().top('8vh').centerHorizontally();
|
83
|
-
this.overlayRef = this.overlay.create({
|
84
|
-
panelClass: this.size,
|
85
|
-
minWidth: '600px',
|
86
|
-
positionStrategy,
|
87
|
-
hasBackdrop: true,
|
88
|
-
scrollStrategy: this.overlay.scrollStrategies.block()
|
89
|
-
});
|
90
|
-
}
|
91
|
-
if (this.size !== 'fullscreen') {
|
92
|
-
this.overlayRef
|
93
|
-
.backdropClick()
|
94
|
-
.pipe(takeUntil(this.destroyed$))
|
95
|
-
.subscribe(() => this.closeModal());
|
96
|
-
}
|
97
|
-
}
|
98
|
-
ngOnChanges() {
|
99
|
-
if (this.open && this.overlayRef && !this.overlayRef.hasAttached()) {
|
100
|
-
this.openModal();
|
101
|
-
}
|
102
|
-
if (!this.open && this.overlayRef && this.overlayRef.hasAttached()) {
|
103
|
-
this.closeModal();
|
104
|
-
}
|
105
|
-
if (this.open && this.overlayRef && this.overlayRef.hasAttached() && this.isFocusTrap) {
|
106
|
-
this.trapFocusInModal(this.overlayRef.hostElement);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
ngAfterViewInit() {
|
110
|
-
if (this.open) {
|
111
|
-
timer()
|
112
|
-
.pipe(takeUntil(this.destroyed$))
|
113
|
-
.subscribe(() => this.openModal());
|
114
|
-
}
|
115
|
-
}
|
116
|
-
openModal() {
|
117
|
-
this.oldOverflow = document.documentElement.style.overflowY;
|
118
|
-
if (this.size === 'fullscreen') {
|
119
|
-
this.renderer.setStyle(document.documentElement, 'overflowY', 'hidden');
|
120
|
-
}
|
121
|
-
this.overlayRef.attach(this.cdkPortal);
|
122
|
-
this.trapFocusInModal(this.overlayRef.hostElement);
|
123
|
-
}
|
124
|
-
emitBack() {
|
125
|
-
this.back.emit();
|
126
|
-
}
|
127
|
-
ngOnDestroy() {
|
128
|
-
this.destroyed$.next();
|
129
|
-
if (this.size === 'fullscreen') {
|
130
|
-
this.renderer.setStyle(document.documentElement, 'overflowY', this.oldOverflow);
|
131
|
-
}
|
132
|
-
if (this.overlayRef) {
|
133
|
-
this.overlayRef.dispose();
|
134
|
-
}
|
135
|
-
}
|
136
|
-
closeModal() {
|
137
|
-
return __awaiter(this, void 0, void 0, function* () {
|
138
|
-
if (!this.canModalBeClosed || (yield this.canModalBeClosed())) {
|
139
|
-
this.open = false;
|
140
|
-
this.overlayRef.detach();
|
141
|
-
if (this.size === 'fullscreen') {
|
142
|
-
this.renderer.setStyle(document.documentElement, 'overflowY', this.oldOverflow);
|
143
|
-
}
|
144
|
-
this.close.emit();
|
145
|
-
}
|
146
|
-
});
|
147
|
-
}
|
148
|
-
trapFocusInModal(hostElement) {
|
149
|
-
this.focusTrap.create(hostElement);
|
150
|
-
}
|
151
|
-
}
|
152
|
-
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ModalComponent, deps: [{ token: i1.Overlay }, { token: i0.Renderer2 }, { token: MODAL_CLOSE, optional: true }, { token: i2.ConfigurableFocusTrapFactory }], target: i0.ɵɵFactoryTarget.Component });
|
153
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.4", type: ModalComponent, selector: "lx-modal", inputs: { open: "open", showCloseButton: "showCloseButton", showBackButton: "showBackButton", verticalScroll: "verticalScroll", size: "size", isFocusTrap: "isFocusTrap", canModalBeClosed: "canModalBeClosed" }, outputs: { close: "close", back: "back" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, queries: [{ propertyName: "header", first: true, predicate: ModalHeaderComponent, descendants: true }, { propertyName: "footer", first: true, predicate: ModalFooterComponent, descendants: true }, { propertyName: "explicitContent", first: true, predicate: ModalContentDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "cdkPortal", first: true, predicate: CdkPortal, descendants: true, static: true }, { propertyName: "implicitContent", first: true, predicate: ["implicitContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template cdkPortal>\n <div\n *ngIf=\"open\"\n role=\"dialog\"\n class=\"lxmodal\"\n [class.lxmodal--fullscreen]=\"size === 'fullscreen'\"\n [class.lxmodal--dialog]=\"size === 'dialog'\"\n [class.lxmodal--dialog-large]=\"size === 'dialog-large'\"\n [class.lxmodal--withFooter]=\"!!footer\"\n [class.lxmodal--verticalScroll]=\"verticalScroll\"\n @modal\n >\n <div\n *ngIf=\"size === 'fullscreen' && showBackButton\"\n (click)=\"emitBack()\"\n (keyup.enter)=\"emitBack()\"\n tabindex=\"0\"\n role=\"button\"\n class=\"fal fa-long-arrow-left\"\n ></div>\n <button\n *ngIf=\"showCloseButton\"\n (click)=\"closeModal()\"\n [attr.aria-label]=\"NAME + '.close' | translate\"\n class=\"fal fa-times closeButton\"\n ></button>\n <ng-content *ngIf=\"header\" select=\"lx-modal-header\"></ng-content>\n <div class=\"modalContentContainer\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <ng-content *ngIf=\"footer\" select=\"lx-modal-footer\"></ng-content>\n </div>\n</ng-template>\n<ng-template #implicitContent>\n <ng-content></ng-content>\n</ng-template>\n", styles: ["@-webkit-keyframes subtleScaleUpKeyFrames{0%{transform:scale(.95);opacity:0}}@keyframes subtleScaleUpKeyFrames{0%{transform:scale(.95);opacity:0}}.lxmodal{background:#fff;width:100%}.lxmodal--withFooter.lxmodal--fullscreen .modalContentContainer{bottom:70px;overflow:hidden}.lxmodal--verticalScroll .modalContentContainer{overflow-y:auto}.lxmodal--fullscreen{height:100%;display:flex;flex-direction:column}.lxmodal--fullscreen .closeButton{border:0;background:transparent;position:absolute;text-align:center;transition:all .18s;transition-delay:.6s;transition-timing-function:ease;border-radius:50%;color:#b2bccc;width:48px;height:48px;font-size:24px;line-height:48px;right:36px;top:16px;z-index:1}.lxmodal--fullscreen .closeButton:before{cursor:pointer}.lxmodal--fullscreen .closeButton:focus,.lxmodal--fullscreen .closeButton:hover{color:#526179;background-color:#eaedf1}.lxmodal--fullscreen .closeButton:focus{outline:0}.lxmodal--fullscreen .fa-long-arrow-left{border:0;background:transparent;position:absolute;text-align:center;transition:all .18s;transition-delay:.6s;transition-timing-function:ease;border-radius:50%;color:#b2bccc;width:48px;height:48px;font-size:24px;line-height:48px;left:36px;top:16px}.lxmodal--fullscreen .fa-long-arrow-left:before{cursor:pointer}.lxmodal--fullscreen .fa-long-arrow-left:focus,.lxmodal--fullscreen .fa-long-arrow-left:hover{color:#526179;background-color:#eaedf1}.lxmodal--fullscreen .fa-long-arrow-left:focus{outline:0}.lxmodal--dialog,.lxmodal--dialog-large{display:block;position:relative;border-radius:6px;box-shadow:0 8px 20px 0 rgba(0,0,0,.24)}.lxmodal--dialog-large .modalContentContainer,.lxmodal--dialog .modalContentContainer{padding:16px;position:relative}.lxmodal--dialog-large .closeButton,.lxmodal--dialog .closeButton{border:0;background:transparent;position:absolute;text-align:center;transition:all .18s;transition-delay:.6s;transition-timing-function:ease;border-radius:50%;color:#8594ad;height:32px;width:32px;font-size:16px;z-index:999;right:10px;top:10px}.lxmodal--dialog-large .closeButton:before,.lxmodal--dialog .closeButton:before{cursor:pointer}.lxmodal--dialog-large .closeButton:focus,.lxmodal--dialog-large .closeButton:hover,.lxmodal--dialog .closeButton:focus,.lxmodal--dialog .closeButton:hover{color:#526179;background-color:#eaedf1}.lxmodal--dialog-large .closeButton:focus,.lxmodal--dialog .closeButton:focus{outline:0}.lxmodal--dialog-large .modalContentContainer{height:calc(100% - 48px - 64px)}.modalContentContainer{flex:1}"], directives: [{ type: i3.CdkPortal, selector: "[cdkPortal]", exportAs: ["cdkPortal"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "translate": i5.TranslatePipe }, animations: [
|
154
|
-
trigger('modal', [
|
155
|
-
transition(':enter', [style({ opacity: 0 }), animate('0.15s', style({ opacity: 1 }))]),
|
156
|
-
transition(':leave', animate('0.15s', style({ opacity: 0 })))
|
157
|
-
])
|
158
|
-
] });
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ModalComponent, decorators: [{
|
160
|
-
type: Component,
|
161
|
-
args: [{
|
162
|
-
selector: 'lx-modal',
|
163
|
-
templateUrl: 'modal.component.html',
|
164
|
-
styleUrls: ['modal.component.scss'],
|
165
|
-
animations: [
|
166
|
-
trigger('modal', [
|
167
|
-
transition(':enter', [style({ opacity: 0 }), animate('0.15s', style({ opacity: 1 }))]),
|
168
|
-
transition(':leave', animate('0.15s', style({ opacity: 0 })))
|
169
|
-
])
|
170
|
-
]
|
171
|
-
}]
|
172
|
-
}], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Renderer2 }, { type: i6.Observable, decorators: [{
|
173
|
-
type: Optional
|
174
|
-
}, {
|
175
|
-
type: Inject,
|
176
|
-
args: [MODAL_CLOSE]
|
177
|
-
}] }, { type: i2.ConfigurableFocusTrapFactory }]; }, propDecorators: { open: [{
|
178
|
-
type: Input
|
179
|
-
}], showCloseButton: [{
|
180
|
-
type: Input
|
181
|
-
}], showBackButton: [{
|
182
|
-
type: Input
|
183
|
-
}], verticalScroll: [{
|
184
|
-
type: Input
|
185
|
-
}], size: [{
|
186
|
-
type: Input
|
187
|
-
}], isFocusTrap: [{
|
188
|
-
type: Input
|
189
|
-
}], canModalBeClosed: [{
|
190
|
-
type: Input
|
191
|
-
}], close: [{
|
192
|
-
type: Output
|
193
|
-
}], back: [{
|
194
|
-
type: Output
|
195
|
-
}], header: [{
|
196
|
-
type: ContentChild,
|
197
|
-
args: [ModalHeaderComponent]
|
198
|
-
}], footer: [{
|
199
|
-
type: ContentChild,
|
200
|
-
args: [ModalFooterComponent]
|
201
|
-
}], cdkPortal: [{
|
202
|
-
type: ViewChild,
|
203
|
-
args: [CdkPortal, { static: true }]
|
204
|
-
}], implicitContent: [{
|
205
|
-
type: ViewChild,
|
206
|
-
args: ['implicitContent', { static: true }]
|
207
|
-
}], explicitContent: [{
|
208
|
-
type: ContentChild,
|
209
|
-
args: [ModalContentDirective, { read: TemplateRef, static: true }]
|
210
|
-
}], onEscape: [{
|
211
|
-
type: HostListener,
|
212
|
-
args: ['document:keydown.escape']
|
213
|
-
}] } });
|
214
|
-
//# sourceMappingURL=../../../../../../../../libs/components/src/lib/modal-ui/components/modal/modal.component.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"modal.component.js","sourceRoot":"","sources":["modal.component.ts","modal.component.html"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG1E,OAAO,EAAE,SAAS,EAAU,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAEL,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,KAAK,EAIL,QAAQ,EACR,MAAM,EAEN,WAAW,EACX,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO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4
|
-
}
|
5
|
-
ModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
6
|
-
ModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.4", type: ModalFooterComponent, selector: "lx-modal-footer", ngImport: i0, template: "<div class=\"footerContainer\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:block;text-align:right}:host-context(.fullscreen) .footerContainer{padding-left:90px;height:70px}:host-context(.dialog) .footerContainer,:host-context(.dialog-large) .footerContainer{padding:16px;height:64px;background-color:#f0f2f5;border-radius:0 0 6px 6px}.footerContainer{border-top:1px solid #cfd5df}"] });
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.4", ngImport: i0, type: ModalFooterComponent, decorators: [{
|
8
|
-
type: Component,
|
9
|
-
args: [{
|
10
|
-
selector: 'lx-modal-footer',
|
11
|
-
templateUrl: 'modal-footer.component.html',
|
12
|
-
styleUrls: ['modal-footer.component.scss']
|
13
|
-
}]
|
14
|
-
}] });
|
15
|
-
//# sourceMappingURL=../../../../../../../../libs/components/src/lib/modal-ui/components/modal-footer/modal-footer.component.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"modal-footer.component.js","sourceRoot":"","sources":["modal-footer.component.ts","modal-footer.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;AAO1C,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;qGAApB,oBAAoB,uDCPjC,wEAGA;2FDIa,oBAAoB;kBALhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,WAAW,EAAE,6BAA6B;oBAC1C,SAAS,EAAE,CAAC,6BAA6B,CAAC;iBAC3C"}
|