@lucca-front/ng 7.2.0 → 8.0.0-alpha.1
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/animations/lucca-front-ng-animations.d.ts +1 -0
- package/animations/package.json +6 -10
- package/api/lib/api.module.d.ts +5 -0
- package/api/lib/select/api-select.module.d.ts +8 -0
- package/api/lib/select/feeder/api-feeder.component.d.ts +3 -0
- package/api/lib/select/feeder/api-feeder.module.d.ts +6 -0
- package/api/lib/select/input/api-select-input.component.d.ts +7 -6
- package/api/lib/select/input/api-select-input.module.d.ts +9 -0
- package/api/lib/select/pager/api-pager.component.d.ts +3 -0
- package/api/lib/select/pager/api-pager.module.d.ts +6 -0
- package/api/lib/select/searcher/api-searcher.component.d.ts +7 -3
- package/api/lib/select/searcher/api-searcher.model.d.ts +4 -5
- package/api/lib/select/searcher/api-searcher.module.d.ts +9 -0
- package/api/lib/service/api-hybrid.service.d.ts +3 -0
- package/api/lib/service/api-service.model.d.ts +2 -3
- package/api/lib/service/api-v3.service.d.ts +3 -0
- package/api/lib/service/api-v4.service.d.ts +3 -0
- package/api/lucca-front-ng-api.d.ts +1 -0
- package/api/package.json +6 -10
- package/core/lib/date/native/native-date.adapter.d.ts +3 -0
- package/core/lib/date/string/string-date.adapter.d.ts +3 -0
- package/core/lucca-front-ng-core.d.ts +1 -0
- package/core/package.json +6 -10
- package/date/lib/adapter/date-adapter.module.d.ts +5 -0
- package/date/lib/adapter/date-adapter.pipe.d.ts +3 -0
- package/date/lib/calendar/calendar-input.component.d.ts +6 -3
- package/date/lib/calendar/calendar-input.module.d.ts +7 -0
- package/date/lib/calendar/calendar-item.class.d.ts +1 -1
- package/date/lib/calendar/calendar-item.factory.d.ts +3 -0
- package/date/lib/date.module.d.ts +9 -0
- package/date/lib/input/date-input.directive.d.ts +3 -0
- package/date/lib/input/date-input.intl.d.ts +3 -0
- package/date/lib/input/date-input.module.d.ts +5 -0
- package/date/lib/picker/date-picker.component.d.ts +3 -0
- package/date/lib/picker/date-picker.module.d.ts +11 -0
- package/date/lib/select/date-select-input.component.d.ts +3 -0
- package/date/lib/select/date-select-input.intl.d.ts +3 -0
- package/date/lib/select/date-select-input.module.d.ts +9 -0
- package/date/lucca-front-ng-date.d.ts +1 -1
- package/date/package.json +6 -10
- package/department/lib/department.module.d.ts +5 -0
- package/department/lib/select/department-select.module.d.ts +6 -0
- package/department/lib/select/feeder/department-feeder.component.d.ts +3 -0
- package/department/lib/select/feeder/department-feeder.module.d.ts +6 -0
- package/department/lib/select/input/department-select-input.component.d.ts +8 -7
- package/department/lib/select/input/department-select-input.intl.d.ts +3 -0
- package/department/lib/select/input/department-select-input.module.d.ts +10 -0
- package/department/lib/service/department-v3.service.d.ts +3 -0
- package/department/lucca-front-ng-department.d.ts +1 -0
- package/department/package.json +6 -10
- package/dropdown/lib/dropdown.module.d.ts +7 -0
- package/dropdown/lib/item/dropdown-item.directive.d.ts +3 -0
- package/dropdown/lib/item/dropdown-item.module.d.ts +5 -0
- package/dropdown/lib/panel/dropdown-panel.component.d.ts +3 -0
- package/dropdown/lib/panel/dropdown-panel.module.d.ts +6 -0
- package/dropdown/lib/trigger/dropdown-trigger.directive.d.ts +3 -0
- package/dropdown/lib/trigger/dropdown-trigger.module.d.ts +6 -0
- package/dropdown/lucca-front-ng-dropdown.d.ts +1 -0
- package/dropdown/package.json +6 -10
- package/{animations/esm2015/index.js → esm2020/animations/index.mjs} +0 -0
- package/{animations/esm2015/lib/animation.factory.js → esm2020/animations/lib/animation.factory.mjs} +0 -0
- package/{animations/esm2015/lib/fade.animation.js → esm2020/animations/lib/fade.animation.mjs} +0 -0
- package/{animations/esm2015/lib/index.js → esm2020/animations/lib/index.mjs} +0 -0
- package/{animations/esm2015/lib/scale.animation.js → esm2020/animations/lib/scale.animation.mjs} +0 -0
- package/{animations/esm2015/lib/slide.animation.js → esm2020/animations/lib/slide.animation.mjs} +0 -0
- package/{animations/esm2015/lucca-front-ng-animations.js → esm2020/animations/lucca-front-ng-animations.mjs} +0 -0
- package/{animations/esm2015/public-api.js → esm2020/animations/public-api.mjs} +0 -0
- package/{api/esm2015/index.js → esm2020/api/index.mjs} +0 -0
- package/{api/esm2015/lib/api.model.js → esm2020/api/lib/api.model.mjs} +0 -0
- package/esm2020/api/lib/api.module.mjs +22 -0
- package/{api/esm2015/lib/index.js → esm2020/api/lib/index.mjs} +0 -0
- package/esm2020/api/lib/select/api-select.module.mjs +43 -0
- package/esm2020/api/lib/select/feeder/api-feeder.component.mjs +78 -0
- package/{api/esm2015/lib/select/feeder/api-feeder.model.js → esm2020/api/lib/select/feeder/api-feeder.model.mjs} +0 -0
- package/esm2020/api/lib/select/feeder/api-feeder.module.mjs +26 -0
- package/{api/esm2015/lib/select/feeder/index.js → esm2020/api/lib/select/feeder/index.mjs} +0 -0
- package/{api/esm2015/lib/select/index.js → esm2020/api/lib/select/index.mjs} +0 -0
- package/esm2020/api/lib/select/input/api-select-input.component.mjs +48 -0
- package/esm2020/api/lib/select/input/api-select-input.module.mjs +44 -0
- package/{api/esm2015/lib/select/input/index.js → esm2020/api/lib/select/input/index.mjs} +0 -0
- package/esm2020/api/lib/select/pager/api-pager.component.mjs +89 -0
- package/{api/esm2015/lib/select/pager/api-pager.model.js → esm2020/api/lib/select/pager/api-pager.model.mjs} +0 -0
- package/esm2020/api/lib/select/pager/api-pager.module.mjs +26 -0
- package/{api/esm2015/lib/select/pager/index.js → esm2020/api/lib/select/pager/index.mjs} +0 -0
- package/esm2020/api/lib/select/searcher/api-searcher.component.mjs +210 -0
- package/esm2020/api/lib/select/searcher/api-searcher.model.mjs +69 -0
- package/esm2020/api/lib/select/searcher/api-searcher.module.mjs +42 -0
- package/{api/esm2015/lib/select/searcher/index.js → esm2020/api/lib/select/searcher/index.mjs} +0 -0
- package/esm2020/api/lib/service/api-hybrid.service.mjs +59 -0
- package/esm2020/api/lib/service/api-service.model.mjs +3 -0
- package/esm2020/api/lib/service/api-v3.service.mjs +65 -0
- package/esm2020/api/lib/service/api-v4.service.mjs +55 -0
- package/{api/esm2015/lib/service/index.js → esm2020/api/lib/service/index.mjs} +0 -0
- package/{api/esm2015/lucca-front-ng-api.js → esm2020/api/lucca-front-ng-api.mjs} +0 -0
- package/{api/esm2015/public-api.js → esm2020/api/public-api.mjs} +0 -0
- package/{core/esm2015/index.js → esm2020/core/index.mjs} +0 -0
- package/{core/esm2015/lib/date/date-adapter.class.js → esm2020/core/lib/date/date-adapter.class.mjs} +0 -0
- package/{core/esm2015/lib/date/date-adapter.interface.js → esm2020/core/lib/date/date-adapter.interface.mjs} +0 -0
- package/{core/esm2015/lib/date/date-granularity.enum.js → esm2020/core/lib/date/date-granularity.enum.mjs} +0 -0
- package/{core/esm2015/lib/date/index.js → esm2020/core/lib/date/index.mjs} +0 -0
- package/{core/esm2015/lib/date/native/index.js → esm2020/core/lib/date/native/index.mjs} +0 -0
- package/esm2020/core/lib/date/native/native-date.adapter.mjs +228 -0
- package/{core/esm2015/lib/date/native/native-date.option.js → esm2020/core/lib/date/native/native-date.option.mjs} +0 -0
- package/{core/esm2015/lib/date/string/index.js → esm2020/core/lib/date/string/index.mjs} +0 -0
- package/esm2020/core/lib/date/string/string-date.adapter.mjs +81 -0
- package/{core/esm2015/lib/event/index.js → esm2020/core/lib/event/index.mjs} +0 -0
- package/{core/esm2015/lib/event/on-close.subscriber.js → esm2020/core/lib/event/on-close.subscriber.mjs} +0 -0
- package/{core/esm2015/lib/event/on-open.subscriber.js → esm2020/core/lib/event/on-open.subscriber.mjs} +0 -0
- package/{core/esm2015/lib/event/on-scroll-bottom.subscriber.js → esm2020/core/lib/event/on-scroll-bottom.subscriber.mjs} +0 -0
- package/{core/esm2015/lib/group/group.interface.js → esm2020/core/lib/group/group.interface.mjs} +0 -0
- package/{core/esm2015/lib/group/index.js → esm2020/core/lib/group/index.mjs} +0 -0
- package/{core/esm2015/lib/id/id.generator.js → esm2020/core/lib/id/id.generator.mjs} +0 -0
- package/{core/esm2015/lib/id/index.js → esm2020/core/lib/id/index.mjs} +0 -0
- package/{core/esm2015/lib/index.js → esm2020/core/lib/index.mjs} +0 -0
- package/{core/esm2015/lib/translate/index.js → esm2020/core/lib/translate/index.mjs} +0 -0
- package/esm2020/core/lib/translate/intl.model.mjs +13 -0
- package/{core/esm2015/lib/translate/translation.model.js → esm2020/core/lib/translate/translation.model.mjs} +0 -0
- package/{core/esm2015/lib/tree/index.js → esm2020/core/lib/tree/index.mjs} +0 -0
- package/{core/esm2015/lib/tree/tree.model.js → esm2020/core/lib/tree/tree.model.mjs} +0 -0
- package/{core/esm2015/lucca-front-ng-core.js → esm2020/core/lucca-front-ng-core.mjs} +0 -0
- package/{core/esm2015/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/{date/esm2015/index.js → esm2020/date/index.mjs} +0 -0
- package/esm2020/date/lib/adapter/date-adapter.module.mjs +20 -0
- package/esm2020/date/lib/adapter/date-adapter.pipe.mjs +24 -0
- package/{date/esm2015/lib/adapter/index.js → esm2020/date/lib/adapter/index.mjs} +0 -0
- package/esm2020/date/lib/calendar/calendar-input.component.mjs +331 -0
- package/esm2020/date/lib/calendar/calendar-input.module.mjs +36 -0
- package/esm2020/date/lib/calendar/calendar-item.class.mjs +41 -0
- package/esm2020/date/lib/calendar/calendar-item.factory.mjs +38 -0
- package/{date/esm2015/lib/calendar/calendar-item.interface.js → esm2020/date/lib/calendar/calendar-item.interface.mjs} +0 -0
- package/{date/esm2015/lib/calendar/index.js → esm2020/date/lib/calendar/index.mjs} +0 -0
- package/esm2020/date/lib/date.module.mjs +50 -0
- package/{date/esm2015/lib/index.js → esm2020/date/lib/index.mjs} +0 -0
- package/esm2020/date/lib/input/date-input.directive.mjs +138 -0
- package/esm2020/date/lib/input/date-input.intl.mjs +21 -0
- package/esm2020/date/lib/input/date-input.module.mjs +31 -0
- package/{date/esm2015/lib/input/date-input.token.js → esm2020/date/lib/input/date-input.token.mjs} +0 -0
- package/{date/esm2015/lib/input/date-input.translate.js → esm2020/date/lib/input/date-input.translate.mjs} +0 -0
- package/{date/esm2015/lib/input/index.js → esm2020/date/lib/input/index.mjs} +0 -0
- package/esm2020/date/lib/picker/date-picker.component.mjs +104 -0
- package/esm2020/date/lib/picker/date-picker.module.mjs +46 -0
- package/{date/esm2015/lib/picker/index.js → esm2020/date/lib/picker/index.mjs} +0 -0
- package/esm2020/date/lib/select/date-select-input.component.mjs +100 -0
- package/esm2020/date/lib/select/date-select-input.intl.mjs +21 -0
- package/esm2020/date/lib/select/date-select-input.module.mjs +54 -0
- package/{date/esm2015/lib/select/date-select-input.token.js → esm2020/date/lib/select/date-select-input.token.mjs} +0 -0
- package/{date/esm2015/lib/select/date-select-input.translate.js → esm2020/date/lib/select/date-select-input.translate.mjs} +0 -0
- package/{date/esm2015/lib/select/index.js → esm2020/date/lib/select/index.mjs} +0 -0
- package/esm2020/date/lucca-front-ng-date.mjs +5 -0
- package/{date/esm2015/public-api.js → esm2020/date/public-api.mjs} +0 -0
- package/{department/esm2015/index.js → esm2020/department/index.mjs} +0 -0
- package/{department/esm2015/lib/department.model.js → esm2020/department/lib/department.model.mjs} +0 -0
- package/esm2020/department/lib/department.module.mjs +22 -0
- package/{department/esm2015/lib/index.js → esm2020/department/lib/index.mjs} +0 -0
- package/esm2020/department/lib/select/department-select.module.mjs +29 -0
- package/esm2020/department/lib/select/feeder/department-feeder.component.mjs +72 -0
- package/esm2020/department/lib/select/feeder/department-feeder.module.mjs +26 -0
- package/{department/esm2015/lib/select/feeder/index.js → esm2020/department/lib/select/feeder/index.mjs} +0 -0
- package/{department/esm2015/lib/select/index.js → esm2020/department/lib/select/index.mjs} +0 -0
- package/esm2020/department/lib/select/input/department-select-input.component.mjs +51 -0
- package/esm2020/department/lib/select/input/department-select-input.intl.mjs +21 -0
- package/esm2020/department/lib/select/input/department-select-input.module.mjs +64 -0
- package/{department/esm2015/lib/select/input/department-select-input.token.js → esm2020/department/lib/select/input/department-select-input.token.mjs} +0 -0
- package/{department/esm2015/lib/select/input/department-select-input.translate.js → esm2020/department/lib/select/input/department-select-input.translate.mjs} +0 -0
- package/{department/esm2015/lib/select/input/index.js → esm2020/department/lib/select/input/index.mjs} +0 -0
- package/{department/esm2015/lib/service/department-service.model.js → esm2020/department/lib/service/department-service.model.mjs} +0 -0
- package/esm2020/department/lib/service/department-v3.service.mjs +37 -0
- package/{department/esm2015/lib/service/index.js → esm2020/department/lib/service/index.mjs} +0 -0
- package/{department/esm2015/lucca-front-ng-department.js → esm2020/department/lucca-front-ng-department.mjs} +0 -0
- package/{department/esm2015/public-api.js → esm2020/department/public-api.mjs} +0 -0
- package/esm2020/dropdown/lib/dropdown.module.mjs +36 -0
- package/{dropdown/esm2015/lib/index.js → esm2020/dropdown/lib/index.mjs} +0 -0
- package/esm2020/dropdown/lib/item/dropdown-item.directive.mjs +55 -0
- package/{dropdown/esm2015/lib/item/dropdown-item.model.js → esm2020/dropdown/lib/item/dropdown-item.model.mjs} +0 -0
- package/esm2020/dropdown/lib/item/dropdown-item.module.mjs +21 -0
- package/{dropdown/esm2015/lib/item/index.js → esm2020/dropdown/lib/item/index.mjs} +0 -0
- package/esm2020/dropdown/lib/panel/dropdown-panel.component.mjs +109 -0
- package/{dropdown/esm2015/lib/panel/dropdown-panel.model.js → esm2020/dropdown/lib/panel/dropdown-panel.model.mjs} +0 -0
- package/esm2020/dropdown/lib/panel/dropdown-panel.module.mjs +26 -0
- package/{dropdown/esm2015/lib/panel/index.js → esm2020/dropdown/lib/panel/index.mjs} +0 -0
- package/esm2020/dropdown/lib/trigger/dropdown-trigger.directive.mjs +105 -0
- package/esm2020/dropdown/lib/trigger/dropdown-trigger.module.mjs +26 -0
- package/{dropdown/esm2015/lib/trigger/index.js → esm2020/dropdown/lib/trigger/index.mjs} +0 -0
- package/{dropdown/esm2015/lucca-front-ng-dropdown.js → esm2020/dropdown/lucca-front-ng-dropdown.mjs} +0 -0
- package/{dropdown/esm2015/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
- package/{establishment/esm2015/index.js → esm2020/establishment/index.mjs} +0 -0
- package/{establishment/esm2015/lib/establishment.model.js → esm2020/establishment/lib/establishment.model.mjs} +0 -0
- package/esm2020/establishment/lib/establishment.module.mjs +22 -0
- package/{establishment/esm2015/lib/index.js → esm2020/establishment/lib/index.mjs} +0 -0
- package/esm2020/establishment/lib/select/establishment-select.module.mjs +50 -0
- package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.directive.mjs +49 -0
- package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.module.mjs +16 -0
- package/{establishment/esm2015/lib/select/for-legal-units/index.js → esm2020/establishment/lib/select/for-legal-units/index.mjs} +0 -0
- package/{establishment/esm2015/lib/select/index.js → esm2020/establishment/lib/select/index.mjs} +0 -0
- package/esm2020/establishment/lib/select/input/establishment-select-input.component.mjs +122 -0
- package/esm2020/establishment/lib/select/input/establishment-select-input.intl.mjs +21 -0
- package/esm2020/establishment/lib/select/input/establishment-select-input.module.mjs +64 -0
- package/{establishment/esm2015/lib/select/input/establishment-select-input.token.js → esm2020/establishment/lib/select/input/establishment-select-input.token.mjs} +0 -0
- package/{establishment/esm2015/lib/select/input/establishment-select-input.translate.js → esm2020/establishment/lib/select/input/establishment-select-input.translate.mjs} +0 -0
- package/{establishment/esm2015/lib/select/input/index.js → esm2020/establishment/lib/select/input/index.mjs} +0 -0
- package/{establishment/esm2015/lib/select/legal-unit-selector/index.js → esm2020/establishment/lib/select/legal-unit-selector/index.mjs} +0 -0
- package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.directive.mjs +102 -0
- package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.mjs +18 -0
- package/esm2020/establishment/lib/select/searcher/establishment-searcher.component.mjs +169 -0
- package/esm2020/establishment/lib/select/searcher/establishment-searcher.module.mjs +38 -0
- package/{establishment/esm2015/lib/select/searcher/index.js → esm2020/establishment/lib/select/searcher/index.mjs} +0 -0
- package/esm2020/establishment/lib/select/select-all/establishment-select-all.component.mjs +90 -0
- package/esm2020/establishment/lib/select/select-all/establishment-select-all.module.mjs +40 -0
- package/{establishment/esm2015/lib/select/select-all/establishment-select-all.translate.js → esm2020/establishment/lib/select/select-all/establishment-select-all.translate.mjs} +0 -0
- package/{establishment/esm2015/lib/select/select-all/index.js → esm2020/establishment/lib/select/select-all/index.mjs} +0 -0
- package/{establishment/esm2015/lib/service/establishment-service.model.js → esm2020/establishment/lib/service/establishment-service.model.mjs} +0 -0
- package/esm2020/establishment/lib/service/establishment.service.mjs +33 -0
- package/{establishment/esm2015/lib/service/index.js → esm2020/establishment/lib/service/index.mjs} +0 -0
- package/{establishment/esm2015/lib/service/legal-unit-service.model.js → esm2020/establishment/lib/service/legal-unit-service.model.mjs} +0 -0
- package/esm2020/establishment/lib/service/legal-unit.service.mjs +33 -0
- package/{establishment/esm2015/lucca-front-ng-establishment.js → esm2020/establishment/lucca-front-ng-establishment.mjs} +0 -0
- package/{establishment/esm2015/public-api.js → esm2020/establishment/public-api.mjs} +0 -0
- package/{formly/esm2015/index.js → esm2020/formly/index.mjs} +0 -0
- package/{formly/esm2015/lib/formly.config.js → esm2020/formly/lib/formly.config.mjs} +0 -0
- package/esm2020/formly/lib/formly.module.mjs +110 -0
- package/{formly/esm2015/lib/index.js → esm2020/formly/lib/index.mjs} +0 -0
- package/esm2020/formly/lib/types/api.mjs +33 -0
- package/esm2020/formly/lib/types/checkbox.mjs +21 -0
- package/esm2020/formly/lib/types/date.mjs +21 -0
- package/esm2020/formly/lib/types/department.mjs +21 -0
- package/esm2020/formly/lib/types/establishment.mjs +21 -0
- package/{formly/esm2015/lib/types/index.js → esm2020/formly/lib/types/index.mjs} +0 -0
- package/esm2020/formly/lib/types/input.mjs +25 -0
- package/esm2020/formly/lib/types/qualification.mjs +21 -0
- package/esm2020/formly/lib/types/radios.mjs +24 -0
- package/esm2020/formly/lib/types/select.mjs +27 -0
- package/esm2020/formly/lib/types/textarea.mjs +21 -0
- package/esm2020/formly/lib/types/user.mjs +21 -0
- package/esm2020/formly/lib/wrappers/checkbox-layout.mjs +31 -0
- package/esm2020/formly/lib/wrappers/error.mjs +62 -0
- package/esm2020/formly/lib/wrappers/helper.mjs +27 -0
- package/esm2020/formly/lib/wrappers/icon.mjs +35 -0
- package/{formly/esm2015/lib/wrappers/index.js → esm2020/formly/lib/wrappers/index.mjs} +0 -0
- package/esm2020/formly/lib/wrappers/radiosfield-layout.mjs +31 -0
- package/esm2020/formly/lib/wrappers/suffix.mjs +30 -0
- package/esm2020/formly/lib/wrappers/textfield-layout.mjs +42 -0
- package/{formly/esm2015/lucca-front-ng-formly.js → esm2020/formly/lucca-front-ng-formly.mjs} +0 -0
- package/{formly/esm2015/public-api.js → esm2020/formly/public-api.mjs} +0 -0
- package/{input/esm2015/index.js → esm2020/input/index.mjs} +0 -0
- package/esm2020/input/lib/clearer/clearer.component.mjs +32 -0
- package/{input/esm2015/lib/clearer/clearer.model.js → esm2020/input/lib/clearer/clearer.model.mjs} +0 -0
- package/esm2020/input/lib/clearer/clearer.module.mjs +26 -0
- package/{input/esm2015/lib/clearer/index.js → esm2020/input/lib/clearer/index.mjs} +0 -0
- package/{input/esm2015/lib/displayer/index.js → esm2020/input/lib/displayer/index.mjs} +0 -0
- package/esm2020/input/lib/displayer/input-displayer.directive.mjs +58 -0
- package/{input/esm2015/lib/displayer/input-displayer.model.js → esm2020/input/lib/displayer/input-displayer.model.mjs} +0 -0
- package/esm2020/input/lib/displayer/input-displayer.module.mjs +17 -0
- package/{input/esm2015/lib/index.js → esm2020/input/lib/index.mjs} +0 -0
- package/esm2020/input/lib/input.directive.mjs +41 -0
- package/esm2020/input/lib/input.model.mjs +48 -0
- package/esm2020/input/lib/input.module.mjs +35 -0
- package/{input/esm2015/lucca-front-ng-input.js → esm2020/input/lucca-front-ng-input.mjs} +0 -0
- package/{input/esm2015/public-api.js → esm2020/input/public-api.mjs} +0 -0
- package/esm2020/lucca-front-ng.mjs +5 -0
- package/{material/esm2015/index.js → esm2020/material/index.mjs} +0 -0
- package/{material/esm2015/lib/index.js → esm2020/material/lib/index.mjs} +0 -0
- package/esm2020/material/lib/module.mjs +12 -0
- package/{material/esm2015/lucca-front-ng-material.js → esm2020/material/lucca-front-ng-material.mjs} +0 -0
- package/{material/esm2015/public-api.js → esm2020/material/public-api.mjs} +0 -0
- package/{modal/esm2015/index.js → esm2020/modal/index.mjs} +0 -0
- package/{modal/esm2015/lib/index.js → esm2020/modal/lib/index.mjs} +0 -0
- package/{modal/esm2015/lib/modal-config.default.js → esm2020/modal/lib/modal-config.default.mjs} +0 -0
- package/{modal/esm2015/lib/modal-config.model.js → esm2020/modal/lib/modal-config.model.mjs} +0 -0
- package/esm2020/modal/lib/modal-panel.component.mjs +130 -0
- package/esm2020/modal/lib/modal-ref.factory.mjs +50 -0
- package/{modal/esm2015/lib/modal-ref.model.js → esm2020/modal/lib/modal-ref.model.mjs} +0 -0
- package/esm2020/modal/lib/modal.intl.mjs +21 -0
- package/{modal/esm2015/lib/modal.model.js → esm2020/modal/lib/modal.model.mjs} +0 -0
- package/esm2020/modal/lib/modal.module.mjs +65 -0
- package/esm2020/modal/lib/modal.service.mjs +23 -0
- package/{modal/esm2015/lib/modal.token.js → esm2020/modal/lib/modal.token.mjs} +0 -0
- package/{modal/esm2015/lib/modal.translate.js → esm2020/modal/lib/modal.translate.mjs} +0 -0
- package/esm2020/modal/lucca-front-ng-modal.mjs +5 -0
- package/{modal/esm2015/public-api.js → esm2020/modal/public-api.mjs} +0 -0
- package/{number/esm2015/index.js → esm2020/number/index.mjs} +0 -0
- package/{number/esm2015/lib/index.js → esm2020/number/lib/index.mjs} +0 -0
- package/esm2020/number/lib/number.module.mjs +18 -0
- package/esm2020/number/lib/number.pipe.mjs +35 -0
- package/{number/esm2015/lucca-front-ng-number.js → esm2020/number/lucca-front-ng-number.mjs} +0 -0
- package/{number/esm2015/public-api.js → esm2020/number/public-api.mjs} +0 -0
- package/{option/esm2015/index.js → esm2020/option/index.mjs} +0 -0
- package/{option/esm2015/lib/index.js → esm2020/option/lib/index.mjs} +0 -0
- package/{option/esm2015/lib/item/index.js → esm2020/option/lib/item/index.mjs} +0 -0
- package/esm2020/option/lib/item/option-item.component.mjs +59 -0
- package/{option/esm2015/lib/item/option-item.model.js → esm2020/option/lib/item/option-item.model.mjs} +0 -0
- package/esm2020/option/lib/item/option-item.module.mjs +20 -0
- package/esm2020/option/lib/item/tree-option-item.component.mjs +117 -0
- package/esm2020/option/lib/item/tree-option-item.intl.mjs +21 -0
- package/{option/esm2015/lib/item/tree-option-item.model.js → esm2020/option/lib/item/tree-option-item.model.mjs} +0 -0
- package/esm2020/option/lib/item/tree-option-item.module.mjs +43 -0
- package/{option/esm2015/lib/item/tree-option-item.token.js → esm2020/option/lib/item/tree-option-item.token.mjs} +0 -0
- package/{option/esm2015/lib/item/tree-option-item.translate.js → esm2020/option/lib/item/tree-option-item.translate.mjs} +0 -0
- package/{option/esm2015/lib/operator/feeder/index.js → esm2020/option/lib/operator/feeder/index.mjs} +0 -0
- package/esm2020/option/lib/operator/feeder/option-feeder.component.mjs +33 -0
- package/esm2020/option/lib/operator/feeder/option-feeder.module.mjs +21 -0
- package/esm2020/option/lib/operator/feeder/tree-option-feeder.component.mjs +33 -0
- package/esm2020/option/lib/operator/feeder/tree-option-feeder.module.mjs +20 -0
- package/esm2020/option/lib/operator/for-groups/for-groups.directive.mjs +80 -0
- package/esm2020/option/lib/operator/for-groups/for-groups.module.mjs +21 -0
- package/{option/esm2015/lib/operator/for-groups/index.js → esm2020/option/lib/operator/for-groups/index.mjs} +0 -0
- package/esm2020/option/lib/operator/for-options/for-options.directive.mjs +49 -0
- package/esm2020/option/lib/operator/for-options/for-options.module.mjs +21 -0
- package/esm2020/option/lib/operator/for-options/for-tree-options.directive.mjs +28 -0
- package/esm2020/option/lib/operator/for-options/for-tree-options.module.mjs +21 -0
- package/{option/esm2015/lib/operator/for-options/index.js → esm2020/option/lib/operator/for-options/index.mjs} +0 -0
- package/{option/esm2015/lib/operator/index.js → esm2020/option/lib/operator/index.mjs} +0 -0
- package/{option/esm2015/lib/operator/option-operator.model.js → esm2020/option/lib/operator/option-operator.model.mjs} +0 -0
- package/esm2020/option/lib/operator/option-operator.module.mjs +50 -0
- package/{option/esm2015/lib/operator/pager/index.js → esm2020/option/lib/operator/pager/index.mjs} +0 -0
- package/esm2020/option/lib/operator/pager/option-pager.component.mjs +52 -0
- package/esm2020/option/lib/operator/pager/option-pager.module.mjs +20 -0
- package/esm2020/option/lib/operator/pager/tree-option-pager.component.mjs +68 -0
- package/esm2020/option/lib/operator/pager/tree-option-pager.module.mjs +21 -0
- package/{option/esm2015/lib/operator/searcher/index.js → esm2020/option/lib/operator/searcher/index.mjs} +0 -0
- package/esm2020/option/lib/operator/searcher/option-searcher.component.mjs +65 -0
- package/esm2020/option/lib/operator/searcher/option-searcher.module.mjs +34 -0
- package/esm2020/option/lib/operator/searcher/tree-option-searcher.component.mjs +80 -0
- package/esm2020/option/lib/operator/searcher/tree-option-searcher.module.mjs +34 -0
- package/{option/esm2015/lib/operator/tree-option-operator.model.js → esm2020/option/lib/operator/tree-option-operator.model.mjs} +0 -0
- package/esm2020/option/lib/operator/tree-option-operator.module.mjs +43 -0
- package/esm2020/option/lib/option.module.mjs +50 -0
- package/{option/esm2015/lib/picker/index.js → esm2020/option/lib/picker/index.mjs} +0 -0
- package/esm2020/option/lib/picker/option-picker-advanced.component.mjs +142 -0
- package/esm2020/option/lib/picker/option-picker.component.mjs +289 -0
- package/esm2020/option/lib/picker/option-picker.model.mjs +69 -0
- package/esm2020/option/lib/picker/option-picker.module.mjs +49 -0
- package/esm2020/option/lib/picker/tree-option-picker-advanced.component.mjs +138 -0
- package/esm2020/option/lib/picker/tree-option-picker.component.mjs +171 -0
- package/esm2020/option/lib/picker/tree-option-picker.model.mjs +4 -0
- package/esm2020/option/lib/picker/tree-option-picker.module.mjs +43 -0
- package/{option/esm2015/lib/placeholder/index.js → esm2020/option/lib/placeholder/index.mjs} +0 -0
- package/esm2020/option/lib/placeholder/option-placeholder.component.mjs +24 -0
- package/esm2020/option/lib/placeholder/option-placeholder.intl.mjs +21 -0
- package/esm2020/option/lib/placeholder/option-placeholder.module.mjs +30 -0
- package/{option/esm2015/lib/placeholder/option-placeholder.token.js → esm2020/option/lib/placeholder/option-placeholder.token.mjs} +0 -0
- package/{option/esm2015/lib/placeholder/option-placeholder.translate.js → esm2020/option/lib/placeholder/option-placeholder.translate.mjs} +0 -0
- package/{option/esm2015/lib/selector/all/index.js → esm2020/option/lib/selector/all/index.mjs} +0 -0
- package/esm2020/option/lib/selector/all/select-all.component.mjs +63 -0
- package/esm2020/option/lib/selector/all/select-all.intl.mjs +21 -0
- package/esm2020/option/lib/selector/all/select-all.module.mjs +30 -0
- package/{option/esm2015/lib/selector/all/select-all.token.js → esm2020/option/lib/selector/all/select-all.token.mjs} +0 -0
- package/{option/esm2015/lib/selector/all/select-all.translate.js → esm2020/option/lib/selector/all/select-all.translate.mjs} +0 -0
- package/esm2020/option/lib/selector/all/tree-select-all.component.mjs +68 -0
- package/esm2020/option/lib/selector/all/tree-select-all.module.mjs +30 -0
- package/{option/esm2015/lib/selector/index.js → esm2020/option/lib/selector/index.mjs} +0 -0
- package/{option/esm2015/lib/selector/option-selector.model.js → esm2020/option/lib/selector/option-selector.model.mjs} +0 -0
- package/esm2020/option/lib/selector/option-selector.module.mjs +22 -0
- package/{option/esm2015/lib/selector/tree-option-selector.model.js → esm2020/option/lib/selector/tree-option-selector.model.mjs} +0 -0
- package/esm2020/option/lib/selector/tree-option-selector.module.mjs +22 -0
- package/esm2020/option/lib/tree-option.module.mjs +43 -0
- package/{option/esm2015/lucca-front-ng-option.js → esm2020/option/lucca-front-ng-option.mjs} +0 -0
- package/{option/esm2015/public-api.js → esm2020/option/public-api.mjs} +0 -0
- package/{picker/esm2015/index.js → esm2020/picker/index.mjs} +0 -0
- package/{picker/esm2015/lib/index.js → esm2020/picker/lib/index.mjs} +0 -0
- package/esm2020/picker/lib/input-picker.model.mjs +4 -0
- package/{picker/esm2015/lucca-front-ng-picker.js → esm2020/picker/lucca-front-ng-picker.mjs} +0 -0
- package/{picker/esm2015/public-api.js → esm2020/picker/public-api.mjs} +0 -0
- package/{popover/esm2015/index.js → esm2020/popover/index.mjs} +0 -0
- package/{popover/esm2015/lib/animation/index.js → esm2020/popover/lib/animation/index.mjs} +0 -0
- package/{popover/esm2015/lib/animation/popover.animation.js → esm2020/popover/lib/animation/popover.animation.mjs} +0 -0
- package/{popover/esm2015/lib/index.js → esm2020/popover/lib/index.mjs} +0 -0
- package/{popover/esm2015/lib/panel/index.js → esm2020/popover/lib/panel/index.mjs} +0 -0
- package/esm2020/popover/lib/panel/popover-panel.component.mjs +121 -0
- package/esm2020/popover/lib/panel/popover-panel.model.mjs +96 -0
- package/esm2020/popover/lib/panel/popover-panel.module.mjs +34 -0
- package/esm2020/popover/lib/popover.module.mjs +36 -0
- package/{popover/esm2015/lib/target/index.js → esm2020/popover/lib/target/index.mjs} +0 -0
- package/esm2020/popover/lib/target/popover-target.directive.mjs +42 -0
- package/{popover/esm2015/lib/target/popover-target.error.js → esm2020/popover/lib/target/popover-target.error.mjs} +0 -0
- package/{popover/esm2015/lib/target/popover-target.model.js → esm2020/popover/lib/target/popover-target.model.mjs} +0 -0
- package/esm2020/popover/lib/target/popover-target.module.mjs +30 -0
- package/{popover/esm2015/lib/trigger/index.js → esm2020/popover/lib/trigger/index.mjs} +0 -0
- package/esm2020/popover/lib/trigger/popover-trigger.directive.mjs +155 -0
- package/{popover/esm2015/lib/trigger/popover-trigger.error.js → esm2020/popover/lib/trigger/popover-trigger.error.mjs} +0 -0
- package/esm2020/popover/lib/trigger/popover-trigger.model.mjs +406 -0
- package/esm2020/popover/lib/trigger/popover-trigger.module.mjs +38 -0
- package/{popover/esm2015/lucca-front-ng-popover.js → esm2020/popover/lucca-front-ng-popover.mjs} +0 -0
- package/{popover/esm2015/public-api.js → esm2020/popover/public-api.mjs} +0 -0
- package/{popup/esm2015/index.js → esm2020/popup/index.mjs} +0 -0
- package/{popup/esm2015/lib/index.js → esm2020/popup/lib/index.mjs} +0 -0
- package/{popup/esm2015/lib/popup-config.default.js → esm2020/popup/lib/popup-config.default.mjs} +0 -0
- package/{popup/esm2015/lib/popup-config.model.js → esm2020/popup/lib/popup-config.model.mjs} +0 -0
- package/esm2020/popup/lib/popup-ref.factory.mjs +28 -0
- package/esm2020/popup/lib/popup-ref.model.mjs +118 -0
- package/{popup/esm2015/lib/popup.model.js → esm2020/popup/lib/popup.model.mjs} +0 -0
- package/esm2020/popup/lib/popup.module.mjs +33 -0
- package/esm2020/popup/lib/popup.service.mjs +27 -0
- package/{popup/esm2015/lib/popup.token.js → esm2020/popup/lib/popup.token.mjs} +0 -0
- package/{popup/esm2015/lucca-front-ng-popup.js → esm2020/popup/lucca-front-ng-popup.mjs} +0 -0
- package/{popup/esm2015/public-api.js → esm2020/popup/public-api.mjs} +0 -0
- package/esm2020/public_api.mjs +2 -0
- package/{qualification/esm2015/index.js → esm2020/qualification/index.mjs} +0 -0
- package/{qualification/esm2015/lib/index.js → esm2020/qualification/lib/index.mjs} +0 -0
- package/{qualification/esm2015/lib/qualification.model.js → esm2020/qualification/lib/qualification.model.mjs} +0 -0
- package/esm2020/qualification/lib/qualification.module.mjs +22 -0
- package/{qualification/esm2015/lib/select/index.js → esm2020/qualification/lib/select/index.mjs} +0 -0
- package/{qualification/esm2015/lib/select/input/index.js → esm2020/qualification/lib/select/input/index.mjs} +0 -0
- package/esm2020/qualification/lib/select/input/qualification-select-input.component.mjs +61 -0
- package/esm2020/qualification/lib/select/input/qualification-select-input.intl.mjs +21 -0
- package/esm2020/qualification/lib/select/input/qualification-select-input.module.mjs +55 -0
- package/{qualification/esm2015/lib/select/input/qualification-select-input.token.js → esm2020/qualification/lib/select/input/qualification-select-input.token.mjs} +0 -0
- package/{qualification/esm2015/lib/select/input/qualification-select-input.translate.js → esm2020/qualification/lib/select/input/qualification-select-input.translate.mjs} +0 -0
- package/esm2020/qualification/lib/select/qualification-select.module.mjs +22 -0
- package/{qualification/esm2015/lucca-front-ng-qualification.js → esm2020/qualification/lucca-front-ng-qualification.mjs} +0 -0
- package/{qualification/esm2015/public-api.js → esm2020/qualification/public-api.mjs} +0 -0
- package/{safe-content/esm2015/index.js → esm2020/safe-content/index.mjs} +0 -0
- package/{safe-content/esm2015/lib/index.js → esm2020/safe-content/lib/index.mjs} +0 -0
- package/{safe-content/esm2015/lib/safe-content.model.js → esm2020/safe-content/lib/safe-content.model.mjs} +0 -0
- package/esm2020/safe-content/lib/safe-content.module.mjs +19 -0
- package/esm2020/safe-content/lib/safe-content.pipe.mjs +25 -0
- package/{safe-content/esm2015/lucca-front-ng-safe-content.js → esm2020/safe-content/lucca-front-ng-safe-content.mjs} +0 -0
- package/{safe-content/esm2015/public-api.js → esm2020/safe-content/public-api.mjs} +0 -0
- package/{scroll/esm2015/index.js → esm2020/scroll/index.mjs} +0 -0
- package/{scroll/esm2015/lib/index.js → esm2020/scroll/lib/index.mjs} +0 -0
- package/esm2020/scroll/lib/scroll.directive.mjs +75 -0
- package/{scroll/esm2015/lib/scroll.model.js → esm2020/scroll/lib/scroll.model.mjs} +0 -0
- package/esm2020/scroll/lib/scroll.module.mjs +20 -0
- package/esm2020/scroll/lucca-front-ng-scroll.mjs +5 -0
- package/{scroll/esm2015/public-api.js → esm2020/scroll/public-api.mjs} +0 -0
- package/{select/esm2015/index.js → esm2020/select/index.mjs} +0 -0
- package/{select/esm2015/lib/index.js → esm2020/select/lib/index.mjs} +0 -0
- package/{select/esm2015/lib/input/index.js → esm2020/select/lib/input/index.mjs} +0 -0
- package/esm2020/select/lib/input/select-input.component.mjs +229 -0
- package/esm2020/select/lib/input/select-input.model.mjs +167 -0
- package/esm2020/select/lib/input/select-input.module.mjs +30 -0
- package/esm2020/select/lib/select.module.mjs +22 -0
- package/{select/esm2015/lucca-front-ng-select.js → esm2020/select/lucca-front-ng-select.mjs} +0 -0
- package/{select/esm2015/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/{sidepanel/esm2015/index.js → esm2020/sidepanel/index.mjs} +0 -0
- package/{sidepanel/esm2015/lib/index.js → esm2020/sidepanel/lib/index.mjs} +0 -0
- package/{sidepanel/esm2015/lib/sidepanel-config.default.js → esm2020/sidepanel/lib/sidepanel-config.default.mjs} +0 -0
- package/{sidepanel/esm2015/lib/sidepanel-config.model.js → esm2020/sidepanel/lib/sidepanel-config.model.mjs} +0 -0
- package/esm2020/sidepanel/lib/sidepanel-panel.component.mjs +37 -0
- package/esm2020/sidepanel/lib/sidepanel-ref.factory.mjs +49 -0
- package/{sidepanel/esm2015/lib/sidepanel-ref.model.js → esm2020/sidepanel/lib/sidepanel-ref.model.mjs} +0 -0
- package/esm2020/sidepanel/lib/sidepanel.intl.mjs +21 -0
- package/{sidepanel/esm2015/lib/sidepanel.model.js → esm2020/sidepanel/lib/sidepanel.model.mjs} +0 -0
- package/esm2020/sidepanel/lib/sidepanel.module.mjs +65 -0
- package/esm2020/sidepanel/lib/sidepanel.service.mjs +23 -0
- package/{sidepanel/esm2015/lib/sidepanel.token.js → esm2020/sidepanel/lib/sidepanel.token.mjs} +0 -0
- package/{sidepanel/esm2015/lib/sidepanel.translate.js → esm2020/sidepanel/lib/sidepanel.translate.mjs} +0 -0
- package/{sidepanel/esm2015/lucca-front-ng-sidepanel.js → esm2020/sidepanel/lucca-front-ng-sidepanel.mjs} +0 -0
- package/{sidepanel/esm2015/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
- package/{tooltip/esm2015/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{tooltip/esm2015/lib/animation/index.js → esm2020/tooltip/lib/animation/index.mjs} +0 -0
- package/{tooltip/esm2015/lib/animation/tooltip.animation.js → esm2020/tooltip/lib/animation/tooltip.animation.mjs} +0 -0
- package/{tooltip/esm2015/lib/index.js → esm2020/tooltip/lib/index.mjs} +0 -0
- package/{tooltip/esm2015/lib/panel/index.js → esm2020/tooltip/lib/panel/index.mjs} +0 -0
- package/esm2020/tooltip/lib/panel/tooltip-panel.component.mjs +53 -0
- package/esm2020/tooltip/lib/panel/tooltip-panel.module.mjs +33 -0
- package/esm2020/tooltip/lib/tooltip.module.mjs +29 -0
- package/{tooltip/esm2015/lib/trigger/index.js → esm2020/tooltip/lib/trigger/index.mjs} +0 -0
- package/esm2020/tooltip/lib/trigger/tooltip-trigger.directive.mjs +141 -0
- package/esm2020/tooltip/lib/trigger/tooltip-trigger.module.mjs +26 -0
- package/{tooltip/esm2015/lucca-front-ng-tooltip.js → esm2020/tooltip/lucca-front-ng-tooltip.mjs} +0 -0
- package/{tooltip/esm2015/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{user/esm2015/index.js → esm2020/user/index.mjs} +0 -0
- package/{user/esm2015/lib/display/display-format.model.js → esm2020/user/lib/display/display-format.model.mjs} +0 -0
- package/{user/esm2015/lib/display/index.js → esm2020/user/lib/display/index.mjs} +0 -0
- package/esm2020/user/lib/display/user-display.module.mjs +19 -0
- package/esm2020/user/lib/display/user-display.pipe.mjs +62 -0
- package/{user/esm2015/lib/index.js → esm2020/user/lib/index.mjs} +0 -0
- package/{user/esm2015/lib/picture/index.js → esm2020/user/lib/picture/index.mjs} +0 -0
- package/esm2020/user/lib/picture/user-picture.component.mjs +66 -0
- package/esm2020/user/lib/picture/user-picture.module.mjs +19 -0
- package/{user/esm2015/lib/select/homonyms/index.js → esm2020/user/lib/select/homonyms/index.mjs} +0 -0
- package/esm2020/user/lib/select/homonyms/user-homonyms.component.mjs +68 -0
- package/esm2020/user/lib/select/homonyms/user-homonyms.module.mjs +30 -0
- package/esm2020/user/lib/select/homonyms/user-homonyms.service.mjs +47 -0
- package/{user/esm2015/lib/select/index.js → esm2020/user/lib/select/index.mjs} +0 -0
- package/{user/esm2015/lib/select/input/index.js → esm2020/user/lib/select/input/index.mjs} +0 -0
- package/esm2020/user/lib/select/input/user-select-input.component.mjs +69 -0
- package/esm2020/user/lib/select/input/user-select-input.intl.mjs +21 -0
- package/esm2020/user/lib/select/input/user-select-input.module.mjs +66 -0
- package/{user/esm2015/lib/select/input/user-select-input.token.js → esm2020/user/lib/select/input/user-select-input.token.mjs} +0 -0
- package/{user/esm2015/lib/select/input/user-select-input.translate.js → esm2020/user/lib/select/input/user-select-input.translate.mjs} +0 -0
- package/{user/esm2015/lib/select/me/index.js → esm2020/user/lib/select/me/index.mjs} +0 -0
- package/esm2020/user/lib/select/me/me-option.directive.mjs +97 -0
- package/esm2020/user/lib/select/me/me-option.module.mjs +22 -0
- package/{user/esm2015/lib/select/searcher/index.js → esm2020/user/lib/select/searcher/index.mjs} +0 -0
- package/esm2020/user/lib/select/searcher/user-searcher.component.mjs +180 -0
- package/esm2020/user/lib/select/searcher/user-searcher.intl.mjs +21 -0
- package/esm2020/user/lib/select/searcher/user-searcher.module.mjs +48 -0
- package/{user/esm2015/lib/select/searcher/user-searcher.token.js → esm2020/user/lib/select/searcher/user-searcher.token.mjs} +0 -0
- package/{user/esm2015/lib/select/searcher/user-searcher.translate.js → esm2020/user/lib/select/searcher/user-searcher.translate.mjs} +0 -0
- package/esm2020/user/lib/select/user-select.module.mjs +43 -0
- package/{user/esm2015/lib/service/index.js → esm2020/user/lib/service/index.mjs} +0 -0
- package/{user/esm2015/lib/service/user-service.model.js → esm2020/user/lib/service/user-service.model.mjs} +0 -0
- package/esm2020/user/lib/service/user-v3.service.mjs +48 -0
- package/{user/esm2015/lib/tile/index.js → esm2020/user/lib/tile/index.mjs} +0 -0
- package/esm2020/user/lib/tile/user-tile.component.mjs +67 -0
- package/esm2020/user/lib/tile/user-tile.module.mjs +20 -0
- package/{user/esm2015/lib/user.model.js → esm2020/user/lib/user.model.mjs} +0 -0
- package/esm2020/user/lib/user.module.mjs +43 -0
- package/{user/esm2015/lucca-front-ng-user.js → esm2020/user/lucca-front-ng-user.mjs} +0 -0
- package/{user/esm2015/public-api.js → esm2020/user/public-api.mjs} +0 -0
- package/establishment/lib/establishment.module.d.ts +5 -0
- package/establishment/lib/select/establishment-select.module.d.ts +9 -0
- package/establishment/lib/select/for-legal-units/for-legal-units.directive.d.ts +3 -2
- package/establishment/lib/select/for-legal-units/for-legal-units.module.d.ts +5 -0
- package/establishment/lib/select/input/establishment-select-input.component.d.ts +4 -1
- package/establishment/lib/select/input/establishment-select-input.intl.d.ts +3 -0
- package/establishment/lib/select/input/establishment-select-input.module.d.ts +13 -0
- package/establishment/lib/select/legal-unit-selector/legal-unit-selector.directive.d.ts +3 -0
- package/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.d.ts +6 -0
- package/establishment/lib/select/searcher/establishment-searcher.component.d.ts +3 -0
- package/establishment/lib/select/searcher/establishment-searcher.module.d.ts +9 -0
- package/establishment/lib/select/select-all/establishment-select-all.component.d.ts +3 -1
- package/establishment/lib/select/select-all/establishment-select-all.module.d.ts +8 -0
- package/establishment/lib/service/establishment.service.d.ts +3 -0
- package/establishment/lib/service/legal-unit.service.d.ts +3 -0
- package/establishment/lucca-front-ng-establishment.d.ts +1 -0
- package/establishment/package.json +6 -10
- package/fesm2015/lucca-front-ng-animations.mjs +276 -0
- package/fesm2015/lucca-front-ng-animations.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-api.mjs +901 -0
- package/fesm2015/lucca-front-ng-api.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-core.mjs +414 -0
- package/fesm2015/lucca-front-ng-core.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-date.mjs +1070 -0
- package/fesm2015/lucca-front-ng-date.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-department.mjs +327 -0
- package/fesm2015/lucca-front-ng-department.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-dropdown.mjs +370 -0
- package/fesm2015/lucca-front-ng-dropdown.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-establishment.mjs +854 -0
- package/fesm2015/lucca-front-ng-establishment.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-formly.mjs +624 -0
- package/fesm2015/lucca-front-ng-formly.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-input.mjs +260 -0
- package/fesm2015/lucca-front-ng-input.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-material.mjs +23 -0
- package/fesm2015/lucca-front-ng-material.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-modal.mjs +320 -0
- package/fesm2015/lucca-front-ng-modal.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-number.mjs +62 -0
- package/fesm2015/lucca-front-ng-number.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-option.mjs +2267 -0
- package/fesm2015/lucca-front-ng-option.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-picker.mjs +15 -0
- package/fesm2015/lucca-front-ng-picker.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-popover.mjs +1031 -0
- package/fesm2015/lucca-front-ng-popover.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-popup.mjs +220 -0
- package/fesm2015/lucca-front-ng-popup.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-qualification.mjs +195 -0
- package/fesm2015/lucca-front-ng-qualification.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-safe-content.mjs +52 -0
- package/fesm2015/lucca-front-ng-safe-content.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-scroll.mjs +103 -0
- package/fesm2015/lucca-front-ng-scroll.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-select.mjs +452 -0
- package/fesm2015/lucca-front-ng-select.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-sidepanel.mjs +226 -0
- package/fesm2015/lucca-front-ng-sidepanel.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-tooltip.mjs +297 -0
- package/fesm2015/lucca-front-ng-tooltip.mjs.map +1 -0
- package/fesm2015/lucca-front-ng-user.mjs +1028 -0
- package/fesm2015/lucca-front-ng-user.mjs.map +1 -0
- package/fesm2015/lucca-front-ng.mjs +6 -0
- package/fesm2015/lucca-front-ng.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-animations.mjs +276 -0
- package/fesm2020/lucca-front-ng-animations.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-api.mjs +887 -0
- package/fesm2020/lucca-front-ng-api.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-core.mjs +410 -0
- package/fesm2020/lucca-front-ng-core.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-date.mjs +1060 -0
- package/fesm2020/lucca-front-ng-date.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-department.mjs +320 -0
- package/fesm2020/lucca-front-ng-department.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-dropdown.mjs +370 -0
- package/fesm2020/lucca-front-ng-dropdown.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-establishment.mjs +842 -0
- package/fesm2020/lucca-front-ng-establishment.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-formly.mjs +624 -0
- package/fesm2020/lucca-front-ng-formly.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-input.mjs +260 -0
- package/fesm2020/lucca-front-ng-input.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-material.mjs +23 -0
- package/fesm2020/lucca-front-ng-material.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-modal.mjs +310 -0
- package/fesm2020/lucca-front-ng-modal.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-number.mjs +60 -0
- package/fesm2020/lucca-front-ng-number.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-option.mjs +2237 -0
- package/fesm2020/lucca-front-ng-option.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-picker.mjs +15 -0
- package/fesm2020/lucca-front-ng-picker.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-popover.mjs +1031 -0
- package/fesm2020/lucca-front-ng-popover.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-popup.mjs +218 -0
- package/fesm2020/lucca-front-ng-popup.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-qualification.mjs +191 -0
- package/fesm2020/lucca-front-ng-qualification.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-safe-content.mjs +52 -0
- package/fesm2020/lucca-front-ng-safe-content.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-scroll.mjs +103 -0
- package/fesm2020/lucca-front-ng-scroll.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-select.mjs +452 -0
- package/fesm2020/lucca-front-ng-select.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-sidepanel.mjs +218 -0
- package/fesm2020/lucca-front-ng-sidepanel.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-tooltip.mjs +296 -0
- package/fesm2020/lucca-front-ng-tooltip.mjs.map +1 -0
- package/fesm2020/lucca-front-ng-user.mjs +1015 -0
- package/fesm2020/lucca-front-ng-user.mjs.map +1 -0
- package/fesm2020/lucca-front-ng.mjs +6 -0
- package/fesm2020/lucca-front-ng.mjs.map +1 -0
- package/formly/lib/formly.module.d.ts +34 -0
- package/formly/lib/types/api.d.ts +3 -0
- package/formly/lib/types/checkbox.d.ts +3 -0
- package/formly/lib/types/date.d.ts +3 -0
- package/formly/lib/types/department.d.ts +3 -0
- package/formly/lib/types/establishment.d.ts +3 -0
- package/formly/lib/types/input.d.ts +3 -0
- package/formly/lib/types/qualification.d.ts +3 -0
- package/formly/lib/types/radios.d.ts +3 -0
- package/formly/lib/types/select.d.ts +3 -0
- package/formly/lib/types/textarea.d.ts +3 -0
- package/formly/lib/types/user.d.ts +3 -0
- package/formly/lib/wrappers/checkbox-layout.d.ts +3 -0
- package/formly/lib/wrappers/error.d.ts +5 -0
- package/formly/lib/wrappers/helper.d.ts +3 -0
- package/formly/lib/wrappers/icon.d.ts +3 -0
- package/formly/lib/wrappers/radiosfield-layout.d.ts +3 -0
- package/formly/lib/wrappers/suffix.d.ts +3 -0
- package/formly/lib/wrappers/textfield-layout.d.ts +3 -0
- package/formly/lucca-front-ng-formly.d.ts +1 -0
- package/formly/package.json +6 -10
- package/input/lib/clearer/clearer.component.d.ts +3 -0
- package/input/lib/clearer/clearer.module.d.ts +6 -0
- package/input/lib/displayer/input-displayer.directive.d.ts +3 -0
- package/input/lib/displayer/input-displayer.module.d.ts +5 -0
- package/input/lib/input.directive.d.ts +3 -0
- package/input/lib/input.model.d.ts +3 -3
- package/input/lib/input.module.d.ts +7 -0
- package/input/lucca-front-ng-input.d.ts +1 -0
- package/input/package.json +6 -10
- package/lucca-front-ng.d.ts +2 -1
- package/material/lib/module.d.ts +4 -0
- package/material/lucca-front-ng-material.d.ts +1 -0
- package/material/package.json +6 -10
- package/material/style/main-v11.overridable.scss +1 -1
- package/material/style/main-v11.scss +1 -1
- package/material/style/main.overridable.scss +1 -1
- package/material/style/main.scss +1 -1
- package/modal/lib/modal-panel.component.d.ts +7 -0
- package/modal/lib/modal-ref.factory.d.ts +9 -6
- package/modal/lib/modal.intl.d.ts +3 -0
- package/modal/lib/modal.module.d.ts +9 -0
- package/modal/lib/modal.service.d.ts +3 -0
- package/modal/lucca-front-ng-modal.d.ts +5 -0
- package/modal/package.json +7 -11
- package/number/lib/number.module.d.ts +6 -0
- package/number/lib/number.pipe.d.ts +3 -0
- package/number/lucca-front-ng-number.d.ts +1 -0
- package/number/package.json +6 -10
- package/option/lib/item/option-item.component.d.ts +3 -0
- package/option/lib/item/option-item.module.d.ts +5 -0
- package/option/lib/item/tree-option-item.component.d.ts +3 -0
- package/option/lib/item/tree-option-item.intl.d.ts +3 -0
- package/option/lib/item/tree-option-item.module.d.ts +7 -0
- package/option/lib/operator/feeder/option-feeder.component.d.ts +3 -0
- package/option/lib/operator/feeder/option-feeder.module.d.ts +5 -0
- package/option/lib/operator/feeder/tree-option-feeder.component.d.ts +3 -0
- package/option/lib/operator/feeder/tree-option-feeder.module.d.ts +5 -0
- package/option/lib/operator/for-groups/for-groups.directive.d.ts +3 -0
- package/option/lib/operator/for-groups/for-groups.module.d.ts +5 -0
- package/option/lib/operator/for-options/for-options.directive.d.ts +3 -0
- package/option/lib/operator/for-options/for-options.module.d.ts +5 -0
- package/option/lib/operator/for-options/for-tree-options.directive.d.ts +3 -0
- package/option/lib/operator/for-options/for-tree-options.module.d.ts +5 -0
- package/option/lib/operator/option-operator.module.d.ts +9 -0
- package/option/lib/operator/pager/option-pager.component.d.ts +3 -0
- package/option/lib/operator/pager/option-pager.module.d.ts +5 -0
- package/option/lib/operator/pager/tree-option-pager.component.d.ts +3 -0
- package/option/lib/operator/pager/tree-option-pager.module.d.ts +5 -0
- package/option/lib/operator/searcher/option-searcher.component.d.ts +3 -0
- package/option/lib/operator/searcher/option-searcher.module.d.ts +8 -0
- package/option/lib/operator/searcher/tree-option-searcher.component.d.ts +3 -0
- package/option/lib/operator/searcher/tree-option-searcher.module.d.ts +8 -0
- package/option/lib/operator/tree-option-operator.module.d.ts +8 -0
- package/option/lib/option.module.d.ts +9 -0
- package/option/lib/picker/option-picker-advanced.component.d.ts +9 -5
- package/option/lib/picker/option-picker.component.d.ts +12 -7
- package/option/lib/picker/option-picker.model.d.ts +5 -5
- package/option/lib/picker/option-picker.module.d.ts +11 -0
- package/option/lib/picker/tree-option-picker-advanced.component.d.ts +9 -5
- package/option/lib/picker/tree-option-picker.component.d.ts +11 -7
- package/option/lib/picker/tree-option-picker.model.d.ts +3 -3
- package/option/lib/picker/tree-option-picker.module.d.ts +10 -0
- package/option/lib/placeholder/option-placeholder.component.d.ts +3 -0
- package/option/lib/placeholder/option-placeholder.intl.d.ts +3 -0
- package/option/lib/placeholder/option-placeholder.module.d.ts +5 -0
- package/option/lib/selector/all/select-all.component.d.ts +3 -0
- package/option/lib/selector/all/select-all.intl.d.ts +3 -0
- package/option/lib/selector/all/select-all.module.d.ts +5 -0
- package/option/lib/selector/all/tree-select-all.component.d.ts +3 -0
- package/option/lib/selector/all/tree-select-all.module.d.ts +5 -0
- package/option/lib/selector/option-selector.module.d.ts +5 -0
- package/option/lib/selector/tree-option-selector.module.d.ts +5 -0
- package/option/lib/tree-option.module.d.ts +8 -0
- package/option/lucca-front-ng-option.d.ts +1 -0
- package/option/package.json +6 -10
- package/package.json +209 -12
- package/picker/lib/input-picker.model.d.ts +1 -1
- package/picker/lucca-front-ng-picker.d.ts +1 -0
- package/picker/package.json +6 -10
- package/popover/lib/panel/popover-panel.component.d.ts +3 -0
- package/popover/lib/panel/popover-panel.module.d.ts +8 -0
- package/popover/lib/popover.module.d.ts +7 -0
- package/popover/lib/target/popover-target.directive.d.ts +3 -0
- package/popover/lib/target/popover-target.module.d.ts +7 -0
- package/popover/lib/trigger/popover-trigger.directive.d.ts +3 -0
- package/popover/lib/trigger/popover-trigger.model.d.ts +7 -7
- package/popover/lib/trigger/popover-trigger.module.d.ts +9 -0
- package/popover/lucca-front-ng-popover.d.ts +1 -0
- package/popover/package.json +6 -10
- package/popup/lib/popup-ref.factory.d.ts +3 -0
- package/popup/lib/popup-ref.model.d.ts +3 -4
- package/popup/lib/popup.module.d.ts +5 -0
- package/popup/lib/popup.service.d.ts +3 -0
- package/popup/lucca-front-ng-popup.d.ts +1 -0
- package/popup/package.json +6 -10
- package/public_api.d.ts +2 -0
- package/qualification/lib/qualification.module.d.ts +5 -0
- package/qualification/lib/select/input/qualification-select-input.component.d.ts +4 -1
- package/qualification/lib/select/input/qualification-select-input.intl.d.ts +3 -0
- package/qualification/lib/select/input/qualification-select-input.module.d.ts +10 -0
- package/qualification/lib/select/qualification-select.module.d.ts +5 -0
- package/qualification/lucca-front-ng-qualification.d.ts +1 -0
- package/qualification/package.json +6 -10
- package/safe-content/lib/safe-content.module.d.ts +6 -0
- package/safe-content/lib/safe-content.pipe.d.ts +3 -0
- package/safe-content/lucca-front-ng-safe-content.d.ts +1 -0
- package/safe-content/package.json +6 -10
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/file-content.js +17 -0
- package/schematics/ng-add/index.js +29 -0
- package/schematics/ng-add/tasks.js +42 -0
- package/scroll/lib/scroll.directive.d.ts +3 -0
- package/scroll/lib/scroll.module.d.ts +5 -0
- package/scroll/lucca-front-ng-scroll.d.ts +5 -0
- package/scroll/package.json +7 -11
- package/select/lib/input/select-input.component.d.ts +9 -4
- package/select/lib/input/select-input.model.d.ts +1 -1
- package/select/lib/input/select-input.module.d.ts +7 -0
- package/select/lib/select.module.d.ts +5 -0
- package/select/lucca-front-ng-select.d.ts +1 -0
- package/select/package.json +6 -10
- package/sidepanel/lib/sidepanel-panel.component.d.ts +5 -0
- package/sidepanel/lib/sidepanel-ref.factory.d.ts +9 -6
- package/sidepanel/lib/sidepanel.intl.d.ts +3 -0
- package/sidepanel/lib/sidepanel.module.d.ts +9 -0
- package/sidepanel/lib/sidepanel.service.d.ts +3 -0
- package/sidepanel/lucca-front-ng-sidepanel.d.ts +1 -0
- package/sidepanel/package.json +6 -10
- package/tooltip/lib/panel/tooltip-panel.component.d.ts +3 -0
- package/tooltip/lib/panel/tooltip-panel.module.d.ts +7 -0
- package/tooltip/lib/tooltip.module.d.ts +6 -0
- package/tooltip/lib/trigger/tooltip-trigger.directive.d.ts +3 -0
- package/tooltip/lib/trigger/tooltip-trigger.module.d.ts +6 -0
- package/tooltip/lucca-front-ng-tooltip.d.ts +1 -0
- package/tooltip/package.json +6 -10
- package/user/lib/display/user-display.module.d.ts +6 -0
- package/user/lib/display/user-display.pipe.d.ts +3 -0
- package/user/lib/picture/user-picture.component.d.ts +3 -0
- package/user/lib/picture/user-picture.module.d.ts +7 -0
- package/user/lib/select/homonyms/user-homonyms.component.d.ts +3 -0
- package/user/lib/select/homonyms/user-homonyms.module.d.ts +7 -0
- package/user/lib/select/homonyms/user-homonyms.service.d.ts +3 -0
- package/user/lib/select/input/user-select-input.component.d.ts +4 -2
- package/user/lib/select/input/user-select-input.intl.d.ts +3 -0
- package/user/lib/select/input/user-select-input.module.d.ts +12 -0
- package/user/lib/select/me/me-option.directive.d.ts +4 -1
- package/user/lib/select/me/me-option.module.d.ts +5 -0
- package/user/lib/select/searcher/user-searcher.component.d.ts +3 -0
- package/user/lib/select/searcher/user-searcher.intl.d.ts +3 -0
- package/user/lib/select/searcher/user-searcher.module.d.ts +9 -0
- package/user/lib/select/user-select.module.d.ts +8 -0
- package/user/lib/service/user-v3.service.d.ts +3 -0
- package/user/lib/tile/user-tile.component.d.ts +3 -0
- package/user/lib/tile/user-tile.module.d.ts +8 -0
- package/user/lib/user.module.d.ts +8 -0
- package/user/lucca-front-ng-user.d.ts +1 -0
- package/user/package.json +6 -10
- package/README.md +0 -1
- package/animations/bundles/lucca-front-ng-animations.umd.js +0 -611
- package/animations/bundles/lucca-front-ng-animations.umd.js.map +0 -1
- package/animations/fesm2015/lucca-front-ng-animations.js +0 -276
- package/animations/fesm2015/lucca-front-ng-animations.js.map +0 -1
- package/animations/lucca-front-ng-animations.metadata.json +0 -1
- package/api/bundles/lucca-front-ng-api.umd.js +0 -1268
- package/api/bundles/lucca-front-ng-api.umd.js.map +0 -1
- package/api/esm2015/lib/api.module.js +0 -15
- package/api/esm2015/lib/select/api-select.module.js +0 -24
- package/api/esm2015/lib/select/feeder/api-feeder.component.js +0 -52
- package/api/esm2015/lib/select/feeder/api-feeder.module.js +0 -19
- package/api/esm2015/lib/select/input/api-select-input.component.js +0 -45
- package/api/esm2015/lib/select/input/api-select-input.module.js +0 -28
- package/api/esm2015/lib/select/pager/api-pager.component.js +0 -58
- package/api/esm2015/lib/select/pager/api-pager.module.js +0 -19
- package/api/esm2015/lib/select/searcher/api-searcher.component.js +0 -142
- package/api/esm2015/lib/select/searcher/api-searcher.model.js +0 -69
- package/api/esm2015/lib/select/searcher/api-searcher.module.js +0 -27
- package/api/esm2015/lib/service/api-hybrid.service.js +0 -59
- package/api/esm2015/lib/service/api-service.model.js +0 -3
- package/api/esm2015/lib/service/api-v3.service.js +0 -65
- package/api/esm2015/lib/service/api-v4.service.js +0 -55
- package/api/fesm2015/lucca-front-ng-api.js +0 -704
- package/api/fesm2015/lucca-front-ng-api.js.map +0 -1
- package/api/lucca-front-ng-api.metadata.json +0 -1
- package/bundles/lucca-front-ng.umd.js +0 -32
- package/bundles/lucca-front-ng.umd.js.map +0 -1
- package/core/bundles/lucca-front-ng-core.umd.js +0 -759
- package/core/bundles/lucca-front-ng-core.umd.js.map +0 -1
- package/core/esm2015/lib/date/native/native-date.adapter.js +0 -221
- package/core/esm2015/lib/date/string/string-date.adapter.js +0 -78
- package/core/esm2015/lib/translate/intl.model.js +0 -13
- package/core/fesm2015/lucca-front-ng-core.js +0 -401
- package/core/fesm2015/lucca-front-ng-core.js.map +0 -1
- package/core/lucca-front-ng-core.metadata.json +0 -1
- package/date/bundles/lucca-front-ng-date.umd.js +0 -1360
- package/date/bundles/lucca-front-ng-date.umd.js.map +0 -1
- package/date/esm2015/lib/adapter/date-adapter.module.js +0 -15
- package/date/esm2015/lib/adapter/date-adapter.pipe.js +0 -23
- package/date/esm2015/lib/calendar/calendar-input.component.js +0 -322
- package/date/esm2015/lib/calendar/calendar-input.module.js +0 -25
- package/date/esm2015/lib/calendar/calendar-item.class.js +0 -41
- package/date/esm2015/lib/calendar/calendar-item.factory.js +0 -38
- package/date/esm2015/lib/date.module.js +0 -27
- package/date/esm2015/lib/input/date-input.directive.js +0 -118
- package/date/esm2015/lib/input/date-input.intl.js +0 -16
- package/date/esm2015/lib/input/date-input.module.js +0 -25
- package/date/esm2015/lib/picker/date-picker.component.js +0 -91
- package/date/esm2015/lib/picker/date-picker.module.js +0 -29
- package/date/esm2015/lib/select/date-select-input.component.js +0 -88
- package/date/esm2015/lib/select/date-select-input.intl.js +0 -16
- package/date/esm2015/lib/select/date-select-input.module.js +0 -36
- package/date/esm2015/lucca-front-ng-date.js +0 -6
- package/date/fesm2015/lucca-front-ng-date.js +0 -933
- package/date/fesm2015/lucca-front-ng-date.js.map +0 -1
- package/date/lucca-front-ng-date.metadata.json +0 -1
- package/department/bundles/lucca-front-ng-department.umd.js +0 -623
- package/department/bundles/lucca-front-ng-department.umd.js.map +0 -1
- package/department/esm2015/lib/department.module.js +0 -15
- package/department/esm2015/lib/select/department-select.module.js +0 -18
- package/department/esm2015/lib/select/feeder/department-feeder.component.js +0 -50
- package/department/esm2015/lib/select/feeder/department-feeder.module.js +0 -19
- package/department/esm2015/lib/select/input/department-select-input.component.js +0 -48
- package/department/esm2015/lib/select/input/department-select-input.intl.js +0 -16
- package/department/esm2015/lib/select/input/department-select-input.module.js +0 -39
- package/department/esm2015/lib/service/department-v3.service.js +0 -38
- package/department/fesm2015/lucca-front-ng-department.js +0 -246
- package/department/fesm2015/lucca-front-ng-department.js.map +0 -1
- package/department/lucca-front-ng-department.metadata.json +0 -1
- package/dropdown/bundles/lucca-front-ng-dropdown.umd.js +0 -706
- package/dropdown/bundles/lucca-front-ng-dropdown.umd.js.map +0 -1
- package/dropdown/esm2015/lib/dropdown.module.js +0 -21
- package/dropdown/esm2015/lib/item/dropdown-item.directive.js +0 -45
- package/dropdown/esm2015/lib/item/dropdown-item.module.js +0 -16
- package/dropdown/esm2015/lib/panel/dropdown-panel.component.js +0 -102
- package/dropdown/esm2015/lib/panel/dropdown-panel.module.js +0 -19
- package/dropdown/esm2015/lib/trigger/dropdown-trigger.directive.js +0 -86
- package/dropdown/esm2015/lib/trigger/dropdown-trigger.module.js +0 -19
- package/dropdown/fesm2015/lucca-front-ng-dropdown.js +0 -305
- package/dropdown/fesm2015/lucca-front-ng-dropdown.js.map +0 -1
- package/dropdown/lucca-front-ng-dropdown.metadata.json +0 -1
- package/esm2015/index.js +0 -2
- package/esm2015/lib/index.js +0 -2
- package/esm2015/lib/module.js +0 -10
- package/esm2015/lucca-front-ng.js +0 -5
- package/esm2015/public-api.js +0 -5
- package/establishment/bundles/lucca-front-ng-establishment.umd.js +0 -1104
- package/establishment/bundles/lucca-front-ng-establishment.umd.js.map +0 -1
- package/establishment/esm2015/lib/establishment.module.js +0 -15
- package/establishment/esm2015/lib/select/establishment-select.module.js +0 -27
- package/establishment/esm2015/lib/select/for-legal-units/for-legal-units.directive.js +0 -46
- package/establishment/esm2015/lib/select/for-legal-units/for-legal-units.module.js +0 -11
- package/establishment/esm2015/lib/select/input/establishment-select-input.component.js +0 -86
- package/establishment/esm2015/lib/select/input/establishment-select-input.intl.js +0 -16
- package/establishment/esm2015/lib/select/input/establishment-select-input.module.js +0 -40
- package/establishment/esm2015/lib/select/legal-unit-selector/legal-unit-selector.directive.js +0 -73
- package/establishment/esm2015/lib/select/legal-unit-selector/legal-unit-selector.module.js +0 -13
- package/establishment/esm2015/lib/select/searcher/establishment-searcher.component.js +0 -127
- package/establishment/esm2015/lib/select/searcher/establishment-searcher.module.js +0 -25
- package/establishment/esm2015/lib/select/select-all/establishment-select-all.component.js +0 -67
- package/establishment/esm2015/lib/select/select-all/establishment-select-all.module.js +0 -29
- package/establishment/esm2015/lib/service/establishment.service.js +0 -33
- package/establishment/esm2015/lib/service/legal-unit.service.js +0 -33
- package/establishment/fesm2015/lucca-front-ng-establishment.js +0 -637
- package/establishment/fesm2015/lucca-front-ng-establishment.js.map +0 -1
- package/establishment/lucca-front-ng-establishment.metadata.json +0 -1
- package/fesm2015/lucca-front-ng.js +0 -21
- package/fesm2015/lucca-front-ng.js.map +0 -1
- package/formly/bundles/lucca-front-ng-formly.umd.js +0 -1126
- package/formly/bundles/lucca-front-ng-formly.umd.js.map +0 -1
- package/formly/esm2015/lib/formly.module.js +0 -61
- package/formly/esm2015/lib/types/api.js +0 -30
- package/formly/esm2015/lib/types/checkbox.js +0 -18
- package/formly/esm2015/lib/types/date.js +0 -18
- package/formly/esm2015/lib/types/department.js +0 -18
- package/formly/esm2015/lib/types/establishment.js +0 -18
- package/formly/esm2015/lib/types/input.js +0 -21
- package/formly/esm2015/lib/types/qualification.js +0 -18
- package/formly/esm2015/lib/types/radios.js +0 -21
- package/formly/esm2015/lib/types/select.js +0 -21
- package/formly/esm2015/lib/types/textarea.js +0 -18
- package/formly/esm2015/lib/types/user.js +0 -18
- package/formly/esm2015/lib/wrappers/checkbox-layout.js +0 -31
- package/formly/esm2015/lib/wrappers/error.js +0 -59
- package/formly/esm2015/lib/wrappers/helper.js +0 -27
- package/formly/esm2015/lib/wrappers/icon.js +0 -35
- package/formly/esm2015/lib/wrappers/radiosfield-layout.js +0 -31
- package/formly/esm2015/lib/wrappers/suffix.js +0 -30
- package/formly/esm2015/lib/wrappers/textfield-layout.js +0 -42
- package/formly/fesm2015/lucca-front-ng-formly.js +0 -583
- package/formly/fesm2015/lucca-front-ng-formly.js.map +0 -1
- package/formly/lucca-front-ng-formly.metadata.json +0 -1
- package/index.d.ts +0 -1
- package/input/bundles/lucca-front-ng-input.umd.js +0 -604
- package/input/bundles/lucca-front-ng-input.umd.js.map +0 -1
- package/input/esm2015/lib/clearer/clearer.component.js +0 -31
- package/input/esm2015/lib/clearer/clearer.module.js +0 -19
- package/input/esm2015/lib/displayer/input-displayer.directive.js +0 -49
- package/input/esm2015/lib/displayer/input-displayer.module.js +0 -12
- package/input/esm2015/lib/input.directive.js +0 -42
- package/input/esm2015/lib/input.model.js +0 -48
- package/input/esm2015/lib/input.module.js +0 -23
- package/input/fesm2015/lucca-front-ng-input.js +0 -232
- package/input/fesm2015/lucca-front-ng-input.js.map +0 -1
- package/input/lucca-front-ng-input.metadata.json +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/module.d.ts +0 -5
- package/lucca-front-ng.metadata.json +0 -1
- package/material/bundles/lucca-front-ng-material.umd.js +0 -29
- package/material/bundles/lucca-front-ng-material.umd.js.map +0 -1
- package/material/esm2015/lib/module.js +0 -7
- package/material/fesm2015/lucca-front-ng-material.js +0 -18
- package/material/fesm2015/lucca-front-ng-material.js.map +0 -1
- package/material/lucca-front-ng-material.metadata.json +0 -1
- package/modal/bundles/lucca-front-modal.umd.js +0 -685
- package/modal/bundles/lucca-front-modal.umd.js.map +0 -1
- package/modal/esm2015/lib/modal-panel.component.js +0 -136
- package/modal/esm2015/lib/modal-ref.factory.js +0 -54
- package/modal/esm2015/lib/modal.intl.js +0 -16
- package/modal/esm2015/lib/modal.module.js +0 -46
- package/modal/esm2015/lib/modal.service.js +0 -18
- package/modal/esm2015/lucca-front-modal.js +0 -5
- package/modal/fesm2015/lucca-front-modal.js +0 -293
- package/modal/fesm2015/lucca-front-modal.js.map +0 -1
- package/modal/lucca-front-modal.d.ts +0 -4
- package/modal/lucca-front-modal.metadata.json +0 -1
- package/number/bundles/lucca-front-ng-number.umd.js +0 -65
- package/number/bundles/lucca-front-ng-number.umd.js.map +0 -1
- package/number/esm2015/lib/number.module.js +0 -13
- package/number/esm2015/lib/number.pipe.js +0 -31
- package/number/fesm2015/lucca-front-ng-number.js +0 -52
- package/number/fesm2015/lucca-front-ng-number.js.map +0 -1
- package/number/lucca-front-ng-number.metadata.json +0 -1
- package/option/bundles/lucca-front-ng-option.umd.js +0 -2653
- package/option/bundles/lucca-front-ng-option.umd.js.map +0 -1
- package/option/esm2015/lib/item/option-item.component.js +0 -54
- package/option/esm2015/lib/item/option-item.module.js +0 -15
- package/option/esm2015/lib/item/tree-option-item.component.js +0 -101
- package/option/esm2015/lib/item/tree-option-item.intl.js +0 -16
- package/option/esm2015/lib/item/tree-option-item.module.js +0 -33
- package/option/esm2015/lib/operator/feeder/option-feeder.component.js +0 -29
- package/option/esm2015/lib/operator/feeder/option-feeder.module.js +0 -16
- package/option/esm2015/lib/operator/feeder/tree-option-feeder.component.js +0 -29
- package/option/esm2015/lib/operator/feeder/tree-option-feeder.module.js +0 -15
- package/option/esm2015/lib/operator/for-groups/for-groups.directive.js +0 -75
- package/option/esm2015/lib/operator/for-groups/for-groups.module.js +0 -16
- package/option/esm2015/lib/operator/for-options/for-options.directive.js +0 -46
- package/option/esm2015/lib/operator/for-options/for-options.module.js +0 -16
- package/option/esm2015/lib/operator/for-options/for-tree-options.directive.js +0 -18
- package/option/esm2015/lib/operator/for-options/for-tree-options.module.js +0 -16
- package/option/esm2015/lib/operator/option-operator.module.js +0 -27
- package/option/esm2015/lib/operator/pager/option-pager.component.js +0 -42
- package/option/esm2015/lib/operator/pager/option-pager.module.js +0 -16
- package/option/esm2015/lib/operator/pager/tree-option-pager.component.js +0 -58
- package/option/esm2015/lib/operator/pager/tree-option-pager.module.js +0 -16
- package/option/esm2015/lib/operator/searcher/option-searcher.component.js +0 -52
- package/option/esm2015/lib/operator/searcher/option-searcher.module.js +0 -23
- package/option/esm2015/lib/operator/searcher/tree-option-searcher.component.js +0 -67
- package/option/esm2015/lib/operator/searcher/tree-option-searcher.module.js +0 -23
- package/option/esm2015/lib/operator/tree-option-operator.module.js +0 -24
- package/option/esm2015/lib/option.module.js +0 -27
- package/option/esm2015/lib/picker/option-picker-advanced.component.js +0 -127
- package/option/esm2015/lib/picker/option-picker.component.js +0 -270
- package/option/esm2015/lib/picker/option-picker.model.js +0 -69
- package/option/esm2015/lib/picker/option-picker.module.js +0 -30
- package/option/esm2015/lib/picker/tree-option-picker-advanced.component.js +0 -123
- package/option/esm2015/lib/picker/tree-option-picker.component.js +0 -163
- package/option/esm2015/lib/picker/tree-option-picker.model.js +0 -4
- package/option/esm2015/lib/picker/tree-option-picker.module.js +0 -28
- package/option/esm2015/lib/placeholder/option-placeholder.component.js +0 -25
- package/option/esm2015/lib/placeholder/option-placeholder.intl.js +0 -16
- package/option/esm2015/lib/placeholder/option-placeholder.module.js +0 -24
- package/option/esm2015/lib/selector/all/select-all.component.js +0 -54
- package/option/esm2015/lib/selector/all/select-all.intl.js +0 -16
- package/option/esm2015/lib/selector/all/select-all.module.js +0 -24
- package/option/esm2015/lib/selector/all/tree-select-all.component.js +0 -59
- package/option/esm2015/lib/selector/all/tree-select-all.module.js +0 -24
- package/option/esm2015/lib/selector/option-selector.module.js +0 -15
- package/option/esm2015/lib/selector/tree-option-selector.module.js +0 -15
- package/option/esm2015/lib/tree-option.module.js +0 -24
- package/option/fesm2015/lucca-front-ng-option.js +0 -1889
- package/option/fesm2015/lucca-front-ng-option.js.map +0 -1
- package/option/lucca-front-ng-option.metadata.json +0 -1
- package/picker/bundles/lucca-front-ng-picker.umd.js +0 -346
- package/picker/bundles/lucca-front-ng-picker.umd.js.map +0 -1
- package/picker/esm2015/lib/input-picker.model.js +0 -4
- package/picker/fesm2015/lucca-front-ng-picker.js +0 -15
- package/picker/fesm2015/lucca-front-ng-picker.js.map +0 -1
- package/picker/lucca-front-ng-picker.metadata.json +0 -1
- package/popover/bundles/lucca-front-ng-popover.umd.js +0 -1489
- package/popover/bundles/lucca-front-ng-popover.umd.js.map +0 -1
- package/popover/esm2015/lib/panel/popover-panel.component.js +0 -106
- package/popover/esm2015/lib/panel/popover-panel.model.js +0 -96
- package/popover/esm2015/lib/panel/popover-panel.module.js +0 -23
- package/popover/esm2015/lib/popover.module.js +0 -21
- package/popover/esm2015/lib/target/popover-target.directive.js +0 -33
- package/popover/esm2015/lib/target/popover-target.module.js +0 -21
- package/popover/esm2015/lib/trigger/popover-trigger.directive.js +0 -116
- package/popover/esm2015/lib/trigger/popover-trigger.model.js +0 -406
- package/popover/esm2015/lib/trigger/popover-trigger.module.js +0 -25
- package/popover/fesm2015/lucca-front-ng-popover.js +0 -925
- package/popover/fesm2015/lucca-front-ng-popover.js.map +0 -1
- package/popover/lucca-front-ng-popover.metadata.json +0 -1
- package/popup/bundles/lucca-front-ng-popup.umd.js +0 -550
- package/popup/bundles/lucca-front-ng-popup.umd.js.map +0 -1
- package/popup/esm2015/lib/popup-ref.factory.js +0 -29
- package/popup/esm2015/lib/popup-ref.model.js +0 -120
- package/popup/esm2015/lib/popup.module.js +0 -24
- package/popup/esm2015/lib/popup.service.js +0 -22
- package/popup/fesm2015/lucca-front-ng-popup.js +0 -208
- package/popup/fesm2015/lucca-front-ng-popup.js.map +0 -1
- package/popup/lucca-front-ng-popup.metadata.json +0 -1
- package/public-api.d.ts +0 -1
- package/qualification/bundles/lucca-front-ng-qualification.umd.js +0 -501
- package/qualification/bundles/lucca-front-ng-qualification.umd.js.map +0 -1
- package/qualification/esm2015/lib/qualification.module.js +0 -15
- package/qualification/esm2015/lib/select/input/qualification-select-input.component.js +0 -59
- package/qualification/esm2015/lib/select/input/qualification-select-input.intl.js +0 -16
- package/qualification/esm2015/lib/select/input/qualification-select-input.module.js +0 -37
- package/qualification/esm2015/lib/select/qualification-select.module.js +0 -15
- package/qualification/fesm2015/lucca-front-ng-qualification.js +0 -155
- package/qualification/fesm2015/lucca-front-ng-qualification.js.map +0 -1
- package/qualification/lucca-front-ng-qualification.metadata.json +0 -1
- package/safe-content/bundles/lucca-front-ng-safe-content.umd.js +0 -59
- package/safe-content/bundles/lucca-front-ng-safe-content.umd.js.map +0 -1
- package/safe-content/esm2015/lib/safe-content.module.js +0 -14
- package/safe-content/esm2015/lib/safe-content.pipe.js +0 -24
- package/safe-content/fesm2015/lucca-front-ng-safe-content.js +0 -47
- package/safe-content/fesm2015/lucca-front-ng-safe-content.js.map +0 -1
- package/safe-content/lucca-front-ng-safe-content.metadata.json +0 -1
- package/scroll/bundles/lucca-front-ngscroll.umd.js +0 -105
- package/scroll/bundles/lucca-front-ngscroll.umd.js.map +0 -1
- package/scroll/esm2015/lib/scroll.directive.js +0 -68
- package/scroll/esm2015/lib/scroll.module.js +0 -16
- package/scroll/esm2015/lucca-front-ngscroll.js +0 -5
- package/scroll/fesm2015/lucca-front-ngscroll.js +0 -93
- package/scroll/fesm2015/lucca-front-ngscroll.js.map +0 -1
- package/scroll/lucca-front-ngscroll.d.ts +0 -4
- package/scroll/lucca-front-ngscroll.metadata.json +0 -1
- package/select/bundles/lucca-front-ng-select.umd.js +0 -806
- package/select/bundles/lucca-front-ng-select.umd.js.map +0 -1
- package/select/esm2015/lib/input/select-input.component.js +0 -188
- package/select/esm2015/lib/input/select-input.model.js +0 -167
- package/select/esm2015/lib/input/select-input.module.js +0 -21
- package/select/esm2015/lib/select.module.js +0 -15
- package/select/fesm2015/lucca-front-ng-select.js +0 -396
- package/select/fesm2015/lucca-front-ng-select.js.map +0 -1
- package/select/lucca-front-ng-select.metadata.json +0 -1
- package/sidepanel/bundles/lucca-front-ng-sidepanel.umd.js +0 -560
- package/sidepanel/bundles/lucca-front-ng-sidepanel.umd.js.map +0 -1
- package/sidepanel/esm2015/lib/sidepanel-panel.component.js +0 -43
- package/sidepanel/esm2015/lib/sidepanel-ref.factory.js +0 -53
- package/sidepanel/esm2015/lib/sidepanel.intl.js +0 -16
- package/sidepanel/esm2015/lib/sidepanel.module.js +0 -46
- package/sidepanel/esm2015/lib/sidepanel.service.js +0 -18
- package/sidepanel/fesm2015/lucca-front-ng-sidepanel.js +0 -201
- package/sidepanel/fesm2015/lucca-front-ng-sidepanel.js.map +0 -1
- package/sidepanel/lucca-front-ng-sidepanel.metadata.json +0 -1
- package/tooltip/bundles/lucca-front-ng-tooltip.umd.js +0 -628
- package/tooltip/bundles/lucca-front-ng-tooltip.umd.js.map +0 -1
- package/tooltip/esm2015/lib/panel/tooltip-panel.component.js +0 -51
- package/tooltip/esm2015/lib/panel/tooltip-panel.module.js +0 -24
- package/tooltip/esm2015/lib/tooltip.module.js +0 -18
- package/tooltip/esm2015/lib/trigger/tooltip-trigger.directive.js +0 -121
- package/tooltip/esm2015/lib/trigger/tooltip-trigger.module.js +0 -19
- package/tooltip/fesm2015/lucca-front-ng-tooltip.js +0 -250
- package/tooltip/fesm2015/lucca-front-ng-tooltip.js.map +0 -1
- package/tooltip/lucca-front-ng-tooltip.metadata.json +0 -1
- package/user/bundles/lucca-front-ng-user.umd.js +0 -1330
- package/user/bundles/lucca-front-ng-user.umd.js.map +0 -1
- package/user/esm2015/lib/display/user-display.module.js +0 -14
- package/user/esm2015/lib/display/user-display.pipe.js +0 -58
- package/user/esm2015/lib/picture/user-picture.component.js +0 -70
- package/user/esm2015/lib/picture/user-picture.module.js +0 -14
- package/user/esm2015/lib/select/homonyms/user-homonyms.component.js +0 -46
- package/user/esm2015/lib/select/homonyms/user-homonyms.module.js +0 -21
- package/user/esm2015/lib/select/homonyms/user-homonyms.service.js +0 -47
- package/user/esm2015/lib/select/input/user-select-input.component.js +0 -57
- package/user/esm2015/lib/select/input/user-select-input.intl.js +0 -16
- package/user/esm2015/lib/select/input/user-select-input.module.js +0 -43
- package/user/esm2015/lib/select/me/me-option.directive.js +0 -68
- package/user/esm2015/lib/select/me/me-option.module.js +0 -17
- package/user/esm2015/lib/select/searcher/user-searcher.component.js +0 -135
- package/user/esm2015/lib/select/searcher/user-searcher.intl.js +0 -16
- package/user/esm2015/lib/select/searcher/user-searcher.module.js +0 -34
- package/user/esm2015/lib/select/user-select.module.js +0 -24
- package/user/esm2015/lib/service/user-v3.service.js +0 -48
- package/user/esm2015/lib/tile/user-tile.component.js +0 -68
- package/user/esm2015/lib/tile/user-tile.module.js +0 -15
- package/user/esm2015/lib/user.module.js +0 -24
- package/user/fesm2015/lucca-front-ng-user.js +0 -823
- package/user/fesm2015/lucca-front-ng-user.js.map +0 -1
- package/user/lucca-front-ng-user.metadata.json +0 -1
|
@@ -0,0 +1,2267 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, forwardRef, ElementRef, Component, ChangeDetectionStrategy, Input, Output, ViewChild, NgModule, InjectionToken, LOCALE_ID, Injectable, Inject, ViewContainerRef, ContentChild, Directive, TemplateRef, ContentChildren, HostBinding } from '@angular/core';
|
|
3
|
+
import { ALuInputDisplayer } from '@lucca-front/ng/input';
|
|
4
|
+
import { ALuIntl, ALuOnScrollBottomSubscriber, ALuOnOpenSubscriber, ALuOnCloseSubscriber } from '@lucca-front/ng/core';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule, NgForOf, DOCUMENT } from '@angular/common';
|
|
7
|
+
import * as i2 from '@lucca-front/ng/tooltip';
|
|
8
|
+
import { LuTooltipModule } from '@lucca-front/ng/tooltip';
|
|
9
|
+
import * as i2$2 from '@angular/cdk/a11y';
|
|
10
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
11
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
12
|
+
import * as i2$3 from '@lucca-front/ng/scroll';
|
|
13
|
+
import { LuScrollModule } from '@lucca-front/ng/scroll';
|
|
14
|
+
import { luTransformPopover } from '@lucca-front/ng/popover';
|
|
15
|
+
import { BehaviorSubject, combineLatest, merge, of, Subscription, Subject } from 'rxjs';
|
|
16
|
+
import { map, switchMap, delay, share, tap, first, mapTo, startWith, shareReplay, mergeAll } from 'rxjs/operators';
|
|
17
|
+
import { ALuPickerPanel } from '@lucca-front/ng/picker';
|
|
18
|
+
import * as i2$1 from '@angular/forms';
|
|
19
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
20
|
+
import { TAB, ESCAPE, DOWN_ARROW, UP_ARROW, ENTER } from '@angular/cdk/keycodes';
|
|
21
|
+
|
|
22
|
+
class ALuOptionItem {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class LuOptionItemComponent extends ALuOptionItem {
|
|
26
|
+
constructor(_cdr) {
|
|
27
|
+
super();
|
|
28
|
+
this._cdr = _cdr;
|
|
29
|
+
this._selected = false;
|
|
30
|
+
this._highlighted = false;
|
|
31
|
+
this.onSelect = new EventEmitter();
|
|
32
|
+
}
|
|
33
|
+
get selected() { return this._selected; }
|
|
34
|
+
set selected(s) {
|
|
35
|
+
if (s !== this._selected) {
|
|
36
|
+
this._selected = s;
|
|
37
|
+
this._cdr.markForCheck();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
get highlighted() { return this._highlighted; }
|
|
41
|
+
set highlighted(h) {
|
|
42
|
+
if (h !== this._highlighted) {
|
|
43
|
+
this._highlighted = h;
|
|
44
|
+
this._cdr.markForCheck();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
select() {
|
|
48
|
+
this.onSelect.emit(this);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
LuOptionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
LuOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionItemComponent, selector: "lu-option", inputs: { selected: "selected", highlighted: "highlighted", value: "value" }, outputs: { onSelect: "onSelect" }, providers: [
|
|
53
|
+
{
|
|
54
|
+
provide: ALuOptionItem,
|
|
55
|
+
useExisting: forwardRef(() => LuOptionItemComponent),
|
|
56
|
+
multi: true,
|
|
57
|
+
},
|
|
58
|
+
], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"optionItem\" #element>\r\n\t<div class=\"optionItem-value\" (click)=\"select()\" [class.is-selected]=\"selected\" [class.is-highlighted]=\"highlighted\">\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:\"Lucca icons\";display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#485075;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemComponent, decorators: [{
|
|
60
|
+
type: Component,
|
|
61
|
+
args: [{ selector: 'lu-option', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
62
|
+
{
|
|
63
|
+
provide: ALuOptionItem,
|
|
64
|
+
useExisting: forwardRef(() => LuOptionItemComponent),
|
|
65
|
+
multi: true,
|
|
66
|
+
},
|
|
67
|
+
], template: "<div class=\"optionItem\" #element>\r\n\t<div class=\"optionItem-value\" (click)=\"select()\" [class.is-selected]=\"selected\" [class.is-highlighted]=\"highlighted\">\r\n\t\t<ng-content></ng-content>\r\n\t</div>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:\"Lucca icons\";display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#485075;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}\n"] }]
|
|
68
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selected: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], highlighted: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], value: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], onSelect: [{
|
|
75
|
+
type: Output
|
|
76
|
+
}], element: [{
|
|
77
|
+
type: ViewChild,
|
|
78
|
+
args: ['element', { read: ElementRef, static: true }]
|
|
79
|
+
}] } });
|
|
80
|
+
|
|
81
|
+
class LuOptionItemModule {
|
|
82
|
+
}
|
|
83
|
+
LuOptionItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
84
|
+
LuOptionItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemModule, declarations: [LuOptionItemComponent], exports: [LuOptionItemComponent] });
|
|
85
|
+
LuOptionItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemModule });
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionItemModule, decorators: [{
|
|
87
|
+
type: NgModule,
|
|
88
|
+
args: [{
|
|
89
|
+
declarations: [
|
|
90
|
+
LuOptionItemComponent,
|
|
91
|
+
],
|
|
92
|
+
exports: [
|
|
93
|
+
LuOptionItemComponent,
|
|
94
|
+
],
|
|
95
|
+
}]
|
|
96
|
+
}] });
|
|
97
|
+
|
|
98
|
+
class ALuTreeOptionItem extends ALuOptionItem {
|
|
99
|
+
get allChildren() {
|
|
100
|
+
return this.children
|
|
101
|
+
.map(c => [c, ...c.allChildren])
|
|
102
|
+
.reduce((aggr, val) => [...aggr, ...val], []);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const LU_TREE_OPTION_ITEM_TRANSLATIONS = new InjectionToken('LuTreeOptionItemTranslations');
|
|
107
|
+
|
|
108
|
+
class LuTreeOptionItemIntl extends ALuIntl {
|
|
109
|
+
constructor(translations, locale) {
|
|
110
|
+
super(translations, locale);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
LuTreeOptionItemIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemIntl, deps: [{ token: LU_TREE_OPTION_ITEM_TRANSLATIONS }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
114
|
+
LuTreeOptionItemIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemIntl });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemIntl, decorators: [{
|
|
116
|
+
type: Injectable
|
|
117
|
+
}], ctorParameters: function () {
|
|
118
|
+
return [{ type: undefined, decorators: [{
|
|
119
|
+
type: Inject,
|
|
120
|
+
args: [LU_TREE_OPTION_ITEM_TRANSLATIONS]
|
|
121
|
+
}] }, { type: undefined, decorators: [{
|
|
122
|
+
type: Inject,
|
|
123
|
+
args: [LOCALE_ID]
|
|
124
|
+
}] }];
|
|
125
|
+
} });
|
|
126
|
+
|
|
127
|
+
class LuTreeOptionItemComponent extends ALuTreeOptionItem {
|
|
128
|
+
constructor(_componentFactoryResolver, intl, _cdr) {
|
|
129
|
+
super();
|
|
130
|
+
this._componentFactoryResolver = _componentFactoryResolver;
|
|
131
|
+
this.intl = intl;
|
|
132
|
+
this._cdr = _cdr;
|
|
133
|
+
this._children = [];
|
|
134
|
+
this.onSelect = new EventEmitter();
|
|
135
|
+
this.onSelectSelf = new EventEmitter();
|
|
136
|
+
this.onSelectChildren = new EventEmitter();
|
|
137
|
+
this._selected = false;
|
|
138
|
+
this._highlighted = false;
|
|
139
|
+
}
|
|
140
|
+
select() {
|
|
141
|
+
this.onSelect.emit(this);
|
|
142
|
+
}
|
|
143
|
+
selectSelf() {
|
|
144
|
+
this.onSelectSelf.emit(this);
|
|
145
|
+
}
|
|
146
|
+
selectChildren() {
|
|
147
|
+
this.onSelectChildren.emit(this);
|
|
148
|
+
}
|
|
149
|
+
set tree(t) {
|
|
150
|
+
this._tree = t;
|
|
151
|
+
this._renderValue(t.value);
|
|
152
|
+
this._renderChildren(t.children);
|
|
153
|
+
}
|
|
154
|
+
get value() { return this._tree.value; }
|
|
155
|
+
get children() { return this._children; }
|
|
156
|
+
set children(c) { this._children = c; }
|
|
157
|
+
get hasChildren() { return !!this.children && this.children.length > 0; }
|
|
158
|
+
get selected() { return this._selected; }
|
|
159
|
+
set selected(s) {
|
|
160
|
+
if (s !== this._selected) {
|
|
161
|
+
this._selected = s;
|
|
162
|
+
this._cdr.markForCheck();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
get highlighted() { return this._highlighted; }
|
|
166
|
+
set highlighted(h) {
|
|
167
|
+
if (h !== this._highlighted) {
|
|
168
|
+
this._highlighted = h;
|
|
169
|
+
this._cdr.markForCheck();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
set _contentChildDisplayer(displayer) {
|
|
173
|
+
this._displayer = displayer;
|
|
174
|
+
}
|
|
175
|
+
_renderValue(value) {
|
|
176
|
+
const evr = this._displayer.getViewRef(value);
|
|
177
|
+
this._valueVCR.clear();
|
|
178
|
+
this._valueVCR.insert(evr);
|
|
179
|
+
}
|
|
180
|
+
_renderChildren(children = []) {
|
|
181
|
+
const factory = this._componentFactoryResolver.resolveComponentFactory(LuTreeOptionItemComponent);
|
|
182
|
+
this._childrenVCR.clear();
|
|
183
|
+
this.children = children.map(c => {
|
|
184
|
+
const ref = this._childrenVCR.createComponent(factory);
|
|
185
|
+
ref.instance._displayer = this._displayer;
|
|
186
|
+
ref.instance.tree = c;
|
|
187
|
+
return ref.instance;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
LuTreeOptionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: LuTreeOptionItemIntl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
192
|
+
LuTreeOptionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionItemComponent, selector: "lu-tree-option", inputs: { tree: "tree", selected: "selected", highlighted: "highlighted" }, outputs: { onSelect: "onSelect", onSelectSelf: "onSelectSelf", onSelectChildren: "onSelectChildren" }, providers: [
|
|
193
|
+
{
|
|
194
|
+
provide: ALuTreeOptionItem,
|
|
195
|
+
useExisting: forwardRef(() => LuTreeOptionItemComponent),
|
|
196
|
+
multi: true,
|
|
197
|
+
},
|
|
198
|
+
], queries: [{ propertyName: "_contentChildDisplayer", first: true, predicate: ALuInputDisplayer, descendants: true, static: true }], viewQueries: [{ propertyName: "_valueVCR", first: true, predicate: ["value"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "_childrenVCR", first: true, predicate: ["children"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"optionItem\" #element>\r\n\t<div class=\"optionItem-value\" (click)=\"select()\" [class.is-selected]=\"selected\" [class.is-highlighted]=\"highlighted\">\r\n\t\t<ng-container #value></ng-container>\r\n\t</div>\r\n\t<div class=\"optionItem-icons\" *ngIf=\"hasChildren\">\r\n\t\t<span class=\"optionItem-icon parentOnly\" (click)=\"selectSelf()\" [luTooltip]=\"intl.parentOnly\">\r\n\t\t\t<svg class=\"optionItem-icon-shape\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">\r\n\t\t\t\t<path opacity=\"0.2\"\r\n\t\t\t\t\td=\"M8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18ZM8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18Z\"\r\n\t\t\t\t/>\r\n\t\t\t\t<path\r\n\t\t\t\t\td=\"M4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7ZM4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7Z\"\r\n\t\t\t\t/>\r\n\t\t\t</svg>\r\n\t\t</span>\r\n\t\t<span class=\"optionItem-icon childrenOnly\" (click)=\"selectChildren()\" [luTooltip]=\"intl.childrenOnly\">\r\n\t\t\t<svg class=\"optionItem-icon-shape\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">\r\n\t\t\t\t<path\r\n\t\t\t\t\td=\"M8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18ZM8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18Z\"\r\n\t\t\t\t/>\r\n\t\t\t\t<path opacity=\"0.2\"\r\n\t\t\t\t\td=\"M4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7ZM4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7Z\"\r\n\t\t\t\t/>\r\n\t\t\t</svg>\r\n\t\t</span>\r\n\t</div>\r\n</div>\r\n\r\n<div #children class=\"children\">\r\n\t<ng-container #children></ng-container>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:\"Lucca icons\";display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#485075;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}.optionItem:hover .optionItem-value{background:var(--palettes-primary-50);background:var(--commons-highlight)}.optionItem:hover .optionItem-icons{opacity:1}.optionItem-value{padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal) var(--components-options-item-padding-vertical) .5rem}.optionItem-icons{display:none;position:absolute;top:.5rem;right:.5rem;opacity:0;transition:all .1s ease;transition:all var(--commons-animations-durations-fast) ease}.optionItem-icon{cursor:pointer;opacity:.66;margin-left:.5rem;transition:all .1s ease;transition:all var(--commons-animations-durations-fast) ease}.optionItem-icon:hover{opacity:1}.optionItem-icon-shape{fill:var(--components-options-item-icon-color);width:1.4rem;height:1.4rem}:host-context(.lu-picker-panel){padding:0}:host-context(.lu-picker-panel) .optionItem-value:before{top:1.3rem;left:.5rem;pointer-events:none}:host-context(.lu-picker-panel) .optionItem-value:after{top:1.3rem;left:.5rem;pointer-events:none}:host-context(.lu-picker-panel.mod-multiple) .optionItem-icons{display:block}:host-context(.lu-picker-panel.mod-multiple) .optionItem-value{padding-right:4rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value{padding-left:1.5rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value:before{left:1.5rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value:after{left:1.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option) .optionItem-value{padding-left:3rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value{padding-left:2.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value:before{left:2.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value:after{left:2.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option) .optionItem-value{padding-left:4rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:3.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:3.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:3.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:4.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:4.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:4.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:6rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:5.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:5.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:5.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:7rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:6.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:6.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:6.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:8rem}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipPosition"], outputs: ["luTooltipOnOpen", "luTooltipOnClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemComponent, decorators: [{
|
|
200
|
+
type: Component,
|
|
201
|
+
args: [{ selector: 'lu-tree-option', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
202
|
+
{
|
|
203
|
+
provide: ALuTreeOptionItem,
|
|
204
|
+
useExisting: forwardRef(() => LuTreeOptionItemComponent),
|
|
205
|
+
multi: true,
|
|
206
|
+
},
|
|
207
|
+
], template: "<div class=\"optionItem\" #element>\r\n\t<div class=\"optionItem-value\" (click)=\"select()\" [class.is-selected]=\"selected\" [class.is-highlighted]=\"highlighted\">\r\n\t\t<ng-container #value></ng-container>\r\n\t</div>\r\n\t<div class=\"optionItem-icons\" *ngIf=\"hasChildren\">\r\n\t\t<span class=\"optionItem-icon parentOnly\" (click)=\"selectSelf()\" [luTooltip]=\"intl.parentOnly\">\r\n\t\t\t<svg class=\"optionItem-icon-shape\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">\r\n\t\t\t\t<path opacity=\"0.2\"\r\n\t\t\t\t\td=\"M8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18ZM8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18Z\"\r\n\t\t\t\t/>\r\n\t\t\t\t<path\r\n\t\t\t\t\td=\"M4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7ZM4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7Z\"\r\n\t\t\t\t/>\r\n\t\t\t</svg>\r\n\t\t</span>\r\n\t\t<span class=\"optionItem-icon childrenOnly\" (click)=\"selectChildren()\" [luTooltip]=\"intl.childrenOnly\">\r\n\t\t\t<svg class=\"optionItem-icon-shape\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">\r\n\t\t\t\t<path\r\n\t\t\t\t\td=\"M8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18ZM8 13C8.55 13 9 12.55 9 12C9 11.45 8.55 11 8 11C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13ZM8 18C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16C7.45 16 7 16.45 7 17C7 17.55 7.45 18 8 18ZM12 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H12C11.45 11 11 11.45 11 12C11 12.55 11.45 13 12 13ZM12 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H12C11.45 16 11 16.45 11 17C11 17.55 11.45 18 12 18Z\"\r\n\t\t\t\t/>\r\n\t\t\t\t<path opacity=\"0.2\"\r\n\t\t\t\t\td=\"M4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7ZM4 8C4.55 8 5 7.55 5 7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7C3 7.55 3.45 8 4 8ZM7 7C7 7.55 7.45 8 8 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H8C7.45 6 7 6.45 7 7Z\"\r\n\t\t\t\t/>\r\n\t\t\t</svg>\r\n\t\t</span>\r\n\t</div>\r\n</div>\r\n\r\n<div #children class=\"children\">\r\n\t<ng-container #children></ng-container>\r\n</div>\r\n", styles: [":host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);transition:background 50ms ease}.optionItem-value.is-selected{background:var(--palettes-primary-100);background:var(--commons-selected)}.optionItem-value:hover,.optionItem-value.is-highlighted,.optionItem-value.is-focus{background:var(--palettes-primary-50);background:var(--commons-highlight)}:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.lu-select-value) .optionItem-value.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted{background:inherit}:host-context(.mod-multiple) .optionItem-value{position:relative;padding-left:2rem;padding-left:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before{display:block;position:absolute;left:.5rem;left:var(--components-options-checkbox-left);top:50%;transform:translateY(-50%)}:host-context(.mod-multiple) .optionItem-value:before{border-radius:var(--commons-border-radius);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--palettes-grey-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);content:\"\";display:block;height:1rem;height:var(--components-options-checkbox-size);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after{color:#fff;font-size:.8rem;content:\"\\e91a\";font-family:\"Lucca icons\";display:inline-block;vertical-align:text-bottom;font-style:normal;line-height:1rem;line-height:var(--components-options-checkbox-size);padding-top:.05rem;position:absolute;text-align:center;transform:translateY(-50%) scale(0);transition:all .1s ease;width:1rem;width:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before{background-color:#485075;background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after{transform:translateY(-50%) scale(1)}:host-context(.mod-multiple) .optionItem-value:hover:before{box-shadow:inset 0 0 0 2px #485075;box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple).establishmentOption .optionItem-value{position:relative;padding-left:2.5rem;padding-left:calc(2 * var(--components-options-item-padding-horizontal) + var(--components-options-checkbox-size) + var(--spacings-smaller))}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after{left:1rem;left:calc(2 * var(--components-options-item-padding-horizontal))}.optionItem:hover .optionItem-value{background:var(--palettes-primary-50);background:var(--commons-highlight)}.optionItem:hover .optionItem-icons{opacity:1}.optionItem-value{padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal) var(--components-options-item-padding-vertical) .5rem}.optionItem-icons{display:none;position:absolute;top:.5rem;right:.5rem;opacity:0;transition:all .1s ease;transition:all var(--commons-animations-durations-fast) ease}.optionItem-icon{cursor:pointer;opacity:.66;margin-left:.5rem;transition:all .1s ease;transition:all var(--commons-animations-durations-fast) ease}.optionItem-icon:hover{opacity:1}.optionItem-icon-shape{fill:var(--components-options-item-icon-color);width:1.4rem;height:1.4rem}:host-context(.lu-picker-panel){padding:0}:host-context(.lu-picker-panel) .optionItem-value:before{top:1.3rem;left:.5rem;pointer-events:none}:host-context(.lu-picker-panel) .optionItem-value:after{top:1.3rem;left:.5rem;pointer-events:none}:host-context(.lu-picker-panel.mod-multiple) .optionItem-icons{display:block}:host-context(.lu-picker-panel.mod-multiple) .optionItem-value{padding-right:4rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value{padding-left:1.5rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value:before{left:1.5rem}:host-context(.lu-picker-panel lu-tree-option) .optionItem-value:after{left:1.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option) .optionItem-value{padding-left:3rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value{padding-left:2.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value:before{left:2.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option) .optionItem-value:after{left:2.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option) .optionItem-value{padding-left:4rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:3.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:3.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:3.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:4.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:4.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:4.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:6rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:5.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:5.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:5.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:7rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:6.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:before{left:6.5rem}:host-context(.lu-picker-panel lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value:after{left:6.5rem}:host-context(.lu-picker-panel.mod-multiple lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option lu-tree-option) .optionItem-value{padding-left:8rem}\n"] }]
|
|
208
|
+
}], ctorParameters: function () {
|
|
209
|
+
return [{ type: i0.ComponentFactoryResolver }, { type: undefined, decorators: [{
|
|
210
|
+
type: Inject,
|
|
211
|
+
args: [LuTreeOptionItemIntl]
|
|
212
|
+
}] }, { type: i0.ChangeDetectorRef }];
|
|
213
|
+
}, propDecorators: { _valueVCR: [{
|
|
214
|
+
type: ViewChild,
|
|
215
|
+
args: ['value', { static: true, read: ViewContainerRef }]
|
|
216
|
+
}], _childrenVCR: [{
|
|
217
|
+
type: ViewChild,
|
|
218
|
+
args: ['children', { static: true, read: ViewContainerRef }]
|
|
219
|
+
}], element: [{
|
|
220
|
+
type: ViewChild,
|
|
221
|
+
args: ['element', { read: ElementRef, static: true }]
|
|
222
|
+
}], onSelect: [{
|
|
223
|
+
type: Output
|
|
224
|
+
}], onSelectSelf: [{
|
|
225
|
+
type: Output
|
|
226
|
+
}], onSelectChildren: [{
|
|
227
|
+
type: Output
|
|
228
|
+
}], tree: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], selected: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], highlighted: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}], _contentChildDisplayer: [{
|
|
235
|
+
type: ContentChild,
|
|
236
|
+
args: [ALuInputDisplayer, { static: true }]
|
|
237
|
+
}] } });
|
|
238
|
+
|
|
239
|
+
class ALuTreeOptionItemLabel {
|
|
240
|
+
}
|
|
241
|
+
const luTreeOptionItemTranslations = {
|
|
242
|
+
en: {
|
|
243
|
+
parentOnly: 'Parent only',
|
|
244
|
+
childrenOnly: 'Children only',
|
|
245
|
+
},
|
|
246
|
+
fr: {
|
|
247
|
+
parentOnly: 'Seulement le parent',
|
|
248
|
+
childrenOnly: 'Seulement les enfants',
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
class LuTreeOptionItemModule {
|
|
253
|
+
}
|
|
254
|
+
LuTreeOptionItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
255
|
+
LuTreeOptionItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemModule, declarations: [LuTreeOptionItemComponent], imports: [CommonModule,
|
|
256
|
+
LuTooltipModule], exports: [LuTreeOptionItemComponent] });
|
|
257
|
+
LuTreeOptionItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemModule, providers: [
|
|
258
|
+
LuTreeOptionItemIntl,
|
|
259
|
+
{ provide: LU_TREE_OPTION_ITEM_TRANSLATIONS, useValue: luTreeOptionItemTranslations },
|
|
260
|
+
], imports: [[
|
|
261
|
+
CommonModule,
|
|
262
|
+
LuTooltipModule,
|
|
263
|
+
]] });
|
|
264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionItemModule, decorators: [{
|
|
265
|
+
type: NgModule,
|
|
266
|
+
args: [{
|
|
267
|
+
declarations: [
|
|
268
|
+
LuTreeOptionItemComponent,
|
|
269
|
+
],
|
|
270
|
+
exports: [
|
|
271
|
+
LuTreeOptionItemComponent,
|
|
272
|
+
],
|
|
273
|
+
entryComponents: [
|
|
274
|
+
LuTreeOptionItemComponent,
|
|
275
|
+
],
|
|
276
|
+
imports: [
|
|
277
|
+
CommonModule,
|
|
278
|
+
LuTooltipModule,
|
|
279
|
+
],
|
|
280
|
+
providers: [
|
|
281
|
+
LuTreeOptionItemIntl,
|
|
282
|
+
{ provide: LU_TREE_OPTION_ITEM_TRANSLATIONS, useValue: luTreeOptionItemTranslations },
|
|
283
|
+
],
|
|
284
|
+
}]
|
|
285
|
+
}] });
|
|
286
|
+
|
|
287
|
+
class ALuOptionOperator {
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
class LuOptionFeederComponent {
|
|
291
|
+
constructor() {
|
|
292
|
+
this.outOptions$ = new BehaviorSubject([]);
|
|
293
|
+
}
|
|
294
|
+
set options(options) {
|
|
295
|
+
this.outOptions$.next(options);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
LuOptionFeederComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
299
|
+
LuOptionFeederComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionFeederComponent, selector: "lu-option-feeder", inputs: { options: "options" }, providers: [
|
|
300
|
+
{
|
|
301
|
+
provide: ALuOptionOperator,
|
|
302
|
+
useExisting: forwardRef(() => LuOptionFeederComponent),
|
|
303
|
+
multi: true,
|
|
304
|
+
},
|
|
305
|
+
], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederComponent, decorators: [{
|
|
307
|
+
type: Component,
|
|
308
|
+
args: [{ selector: 'lu-option-feeder', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
309
|
+
{
|
|
310
|
+
provide: ALuOptionOperator,
|
|
311
|
+
useExisting: forwardRef(() => LuOptionFeederComponent),
|
|
312
|
+
multi: true,
|
|
313
|
+
},
|
|
314
|
+
], styles: [] }]
|
|
315
|
+
}], propDecorators: { options: [{
|
|
316
|
+
type: Input
|
|
317
|
+
}] } });
|
|
318
|
+
|
|
319
|
+
class LuOptionFeederModule {
|
|
320
|
+
}
|
|
321
|
+
LuOptionFeederModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
322
|
+
LuOptionFeederModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederModule, declarations: [LuOptionFeederComponent], exports: [LuOptionFeederComponent] });
|
|
323
|
+
LuOptionFeederModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederModule, imports: [[]] });
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionFeederModule, decorators: [{
|
|
325
|
+
type: NgModule,
|
|
326
|
+
args: [{
|
|
327
|
+
imports: [],
|
|
328
|
+
declarations: [
|
|
329
|
+
LuOptionFeederComponent,
|
|
330
|
+
],
|
|
331
|
+
exports: [
|
|
332
|
+
LuOptionFeederComponent,
|
|
333
|
+
],
|
|
334
|
+
}]
|
|
335
|
+
}] });
|
|
336
|
+
|
|
337
|
+
class ALuTreeOptionOperator extends ALuOptionOperator {
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
class LuTreeOptionFeederComponent {
|
|
341
|
+
constructor() {
|
|
342
|
+
this.outOptions$ = new BehaviorSubject([]);
|
|
343
|
+
}
|
|
344
|
+
set options(options) {
|
|
345
|
+
this.outOptions$.next(options);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
LuTreeOptionFeederComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
349
|
+
LuTreeOptionFeederComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionFeederComponent, selector: "lu-tree-option-feeder", inputs: { options: "options" }, providers: [
|
|
350
|
+
{
|
|
351
|
+
provide: ALuTreeOptionOperator,
|
|
352
|
+
useExisting: forwardRef(() => LuTreeOptionFeederComponent),
|
|
353
|
+
multi: true,
|
|
354
|
+
},
|
|
355
|
+
], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederComponent, decorators: [{
|
|
357
|
+
type: Component,
|
|
358
|
+
args: [{ selector: 'lu-tree-option-feeder', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
359
|
+
{
|
|
360
|
+
provide: ALuTreeOptionOperator,
|
|
361
|
+
useExisting: forwardRef(() => LuTreeOptionFeederComponent),
|
|
362
|
+
multi: true,
|
|
363
|
+
},
|
|
364
|
+
], styles: [] }]
|
|
365
|
+
}], propDecorators: { options: [{
|
|
366
|
+
type: Input
|
|
367
|
+
}] } });
|
|
368
|
+
|
|
369
|
+
class LuTreeOptionFeederModule {
|
|
370
|
+
}
|
|
371
|
+
LuTreeOptionFeederModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
372
|
+
LuTreeOptionFeederModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederModule, declarations: [LuTreeOptionFeederComponent], exports: [LuTreeOptionFeederComponent] });
|
|
373
|
+
LuTreeOptionFeederModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederModule });
|
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionFeederModule, decorators: [{
|
|
375
|
+
type: NgModule,
|
|
376
|
+
args: [{
|
|
377
|
+
declarations: [
|
|
378
|
+
LuTreeOptionFeederComponent,
|
|
379
|
+
],
|
|
380
|
+
exports: [
|
|
381
|
+
LuTreeOptionFeederComponent,
|
|
382
|
+
],
|
|
383
|
+
}]
|
|
384
|
+
}] });
|
|
385
|
+
|
|
386
|
+
const MAGIC_STEP$1 = 10;
|
|
387
|
+
class LuOptionPagerComponent extends ALuOptionOperator {
|
|
388
|
+
constructor() {
|
|
389
|
+
super(...arguments);
|
|
390
|
+
this.paging$ = new BehaviorSubject(MAGIC_STEP$1);
|
|
391
|
+
}
|
|
392
|
+
set inOptions$(in$) {
|
|
393
|
+
this.outOptions$ = combineLatest(in$, this.paging$, (options, paging) => {
|
|
394
|
+
return (options || []).slice(0, paging);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
next() {
|
|
398
|
+
this.paging$.next(this.paging$.value + MAGIC_STEP$1);
|
|
399
|
+
}
|
|
400
|
+
onScrollBottom() {
|
|
401
|
+
this.next();
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
LuOptionPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
405
|
+
LuOptionPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionPagerComponent, selector: "lu-option-pager", providers: [
|
|
406
|
+
{
|
|
407
|
+
provide: ALuOptionOperator,
|
|
408
|
+
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
409
|
+
multi: true,
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
provide: ALuOnScrollBottomSubscriber,
|
|
413
|
+
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
414
|
+
multi: true,
|
|
415
|
+
},
|
|
416
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerComponent, decorators: [{
|
|
418
|
+
type: Component,
|
|
419
|
+
args: [{ selector: 'lu-option-pager', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
420
|
+
{
|
|
421
|
+
provide: ALuOptionOperator,
|
|
422
|
+
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
423
|
+
multi: true,
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
provide: ALuOnScrollBottomSubscriber,
|
|
427
|
+
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
428
|
+
multi: true,
|
|
429
|
+
},
|
|
430
|
+
], styles: [] }]
|
|
431
|
+
}] });
|
|
432
|
+
|
|
433
|
+
class LuOptionPagerModule {
|
|
434
|
+
}
|
|
435
|
+
LuOptionPagerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
436
|
+
LuOptionPagerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerModule, declarations: [LuOptionPagerComponent], exports: [LuOptionPagerComponent] });
|
|
437
|
+
LuOptionPagerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerModule });
|
|
438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPagerModule, decorators: [{
|
|
439
|
+
type: NgModule,
|
|
440
|
+
args: [{
|
|
441
|
+
declarations: [
|
|
442
|
+
LuOptionPagerComponent,
|
|
443
|
+
],
|
|
444
|
+
exports: [
|
|
445
|
+
LuOptionPagerComponent,
|
|
446
|
+
],
|
|
447
|
+
}]
|
|
448
|
+
}] });
|
|
449
|
+
|
|
450
|
+
const MAGIC_STEP = 10;
|
|
451
|
+
class LuTreeOptionPagerComponent extends ALuTreeOptionOperator {
|
|
452
|
+
constructor() {
|
|
453
|
+
super(...arguments);
|
|
454
|
+
this.paging$ = new BehaviorSubject(MAGIC_STEP);
|
|
455
|
+
}
|
|
456
|
+
set inOptions$(in$) {
|
|
457
|
+
this.outOptions$ = combineLatest(in$, this.paging$, (options, paging) => {
|
|
458
|
+
return this.trim(options, paging);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
next() {
|
|
462
|
+
this.paging$.next(this.paging$.value + MAGIC_STEP);
|
|
463
|
+
}
|
|
464
|
+
onScrollBottom() {
|
|
465
|
+
this.next();
|
|
466
|
+
}
|
|
467
|
+
trim(trees = [], paging = MAGIC_STEP) {
|
|
468
|
+
const flat = this.flatten(trees);
|
|
469
|
+
const flatTrimmed = flat.slice(0, paging);
|
|
470
|
+
return this.filter(trees, flatTrimmed);
|
|
471
|
+
}
|
|
472
|
+
flatten(trees = []) {
|
|
473
|
+
return trees.map(t => [t.value, ...this.flatten(t.children)]).reduce((a, v) => [...a, ...v], []);
|
|
474
|
+
}
|
|
475
|
+
filter(trees = [], values) {
|
|
476
|
+
return trees.map(t => {
|
|
477
|
+
if (!values.some(v => v === t.value)) {
|
|
478
|
+
return undefined;
|
|
479
|
+
}
|
|
480
|
+
return Object.assign(Object.assign({}, t), { children: this.filter(t.children, values) });
|
|
481
|
+
}).filter(t => !!t);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
LuTreeOptionPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
485
|
+
LuTreeOptionPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionPagerComponent, selector: "lu-tree-option-pager", providers: [
|
|
486
|
+
{
|
|
487
|
+
provide: ALuTreeOptionOperator,
|
|
488
|
+
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
489
|
+
multi: true,
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
provide: ALuOnScrollBottomSubscriber,
|
|
493
|
+
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
494
|
+
multi: true,
|
|
495
|
+
},
|
|
496
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerComponent, decorators: [{
|
|
498
|
+
type: Component,
|
|
499
|
+
args: [{ selector: 'lu-tree-option-pager', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
500
|
+
{
|
|
501
|
+
provide: ALuTreeOptionOperator,
|
|
502
|
+
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
503
|
+
multi: true,
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
provide: ALuOnScrollBottomSubscriber,
|
|
507
|
+
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
508
|
+
multi: true,
|
|
509
|
+
},
|
|
510
|
+
], styles: [] }]
|
|
511
|
+
}] });
|
|
512
|
+
|
|
513
|
+
class LuTreeOptionPagerModule {
|
|
514
|
+
}
|
|
515
|
+
LuTreeOptionPagerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
516
|
+
LuTreeOptionPagerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerModule, declarations: [LuTreeOptionPagerComponent], exports: [LuTreeOptionPagerComponent] });
|
|
517
|
+
LuTreeOptionPagerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerModule, imports: [[]] });
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPagerModule, decorators: [{
|
|
519
|
+
type: NgModule,
|
|
520
|
+
args: [{
|
|
521
|
+
imports: [],
|
|
522
|
+
declarations: [
|
|
523
|
+
LuTreeOptionPagerComponent,
|
|
524
|
+
],
|
|
525
|
+
exports: [
|
|
526
|
+
LuTreeOptionPagerComponent,
|
|
527
|
+
],
|
|
528
|
+
}]
|
|
529
|
+
}] });
|
|
530
|
+
|
|
531
|
+
const LU_OPTION_PLACEHOLDER_TRANSLATIONS = new InjectionToken('LuOptionPlaceholderTranslations');
|
|
532
|
+
|
|
533
|
+
class LuOptionPlaceholderIntl extends ALuIntl {
|
|
534
|
+
constructor(translations, locale) {
|
|
535
|
+
super(translations, locale);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
LuOptionPlaceholderIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderIntl, deps: [{ token: LU_OPTION_PLACEHOLDER_TRANSLATIONS }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
539
|
+
LuOptionPlaceholderIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderIntl });
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderIntl, decorators: [{
|
|
541
|
+
type: Injectable
|
|
542
|
+
}], ctorParameters: function () {
|
|
543
|
+
return [{ type: undefined, decorators: [{
|
|
544
|
+
type: Inject,
|
|
545
|
+
args: [LU_OPTION_PLACEHOLDER_TRANSLATIONS]
|
|
546
|
+
}] }, { type: undefined, decorators: [{
|
|
547
|
+
type: Inject,
|
|
548
|
+
args: [LOCALE_ID]
|
|
549
|
+
}] }];
|
|
550
|
+
} });
|
|
551
|
+
|
|
552
|
+
class LuOptionPlaceholderComponent {
|
|
553
|
+
constructor(intl) {
|
|
554
|
+
this.intl = intl;
|
|
555
|
+
this.onClear = new EventEmitter();
|
|
556
|
+
}
|
|
557
|
+
clear() {
|
|
558
|
+
this.onClear.emit();
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
LuOptionPlaceholderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderComponent, deps: [{ token: LuOptionPlaceholderIntl }], target: i0.ɵɵFactoryTarget.Component });
|
|
562
|
+
LuOptionPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionPlaceholderComponent, selector: "lu-option-placeholder", outputs: { onClear: "onClear" }, ngImport: i0, template: "<div class=\"optionPlaceholder\">\r\n\t<p class=\"optionPlaceholder-content u-marginBottomReset\">\r\n\t\t{{intl.placeholderDescription}}\r\n\t</p>\r\n\t<button class=\"link\" (click)=\"clear()\">\r\n\t\t{{intl.placeholderAction}}\r\n\t</button>\r\n</div>", styles: [".optionPlaceholder{display:block;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);font-style:italic;color:#96a6c5;color:var(--colors-text-light-color)}\n"] });
|
|
563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderComponent, decorators: [{
|
|
564
|
+
type: Component,
|
|
565
|
+
args: [{ selector: 'lu-option-placeholder', template: "<div class=\"optionPlaceholder\">\r\n\t<p class=\"optionPlaceholder-content u-marginBottomReset\">\r\n\t\t{{intl.placeholderDescription}}\r\n\t</p>\r\n\t<button class=\"link\" (click)=\"clear()\">\r\n\t\t{{intl.placeholderAction}}\r\n\t</button>\r\n</div>", styles: [".optionPlaceholder{display:block;padding:.5rem;padding:var(--components-options-item-padding-vertical) var(--components-options-item-padding-horizontal);font-style:italic;color:#96a6c5;color:var(--colors-text-light-color)}\n"] }]
|
|
566
|
+
}], ctorParameters: function () {
|
|
567
|
+
return [{ type: undefined, decorators: [{
|
|
568
|
+
type: Inject,
|
|
569
|
+
args: [LuOptionPlaceholderIntl]
|
|
570
|
+
}] }];
|
|
571
|
+
}, propDecorators: { onClear: [{
|
|
572
|
+
type: Output
|
|
573
|
+
}] } });
|
|
574
|
+
|
|
575
|
+
class LuOptionSearcherComponent extends ALuOptionOperator {
|
|
576
|
+
constructor() {
|
|
577
|
+
super(...arguments);
|
|
578
|
+
this.searchControl = new FormControl();
|
|
579
|
+
this.clue$ = merge(of(''), this.searchControl.valueChanges);
|
|
580
|
+
this.searchFn = () => true;
|
|
581
|
+
}
|
|
582
|
+
set inOptions$(in$) {
|
|
583
|
+
this.outOptions$ = combineLatest(in$, this.clue$, (options, clue) => {
|
|
584
|
+
return !!clue ? (options || []).filter(o => this.searchFn(o, clue)) : options || [];
|
|
585
|
+
});
|
|
586
|
+
this.empty$ = this.outOptions$.pipe(map(o => !o || o.length === 0));
|
|
587
|
+
}
|
|
588
|
+
onOpen() {
|
|
589
|
+
this.searchInput.nativeElement.focus();
|
|
590
|
+
this.searchControl.setValue('');
|
|
591
|
+
}
|
|
592
|
+
resetClue() {
|
|
593
|
+
this.searchControl.setValue('');
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
LuOptionSearcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
597
|
+
LuOptionSearcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionSearcherComponent, selector: "lu-option-searcher", inputs: { searchFn: "searchFn" }, providers: [
|
|
598
|
+
{
|
|
599
|
+
provide: ALuOptionOperator,
|
|
600
|
+
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
601
|
+
multi: true,
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
provide: ALuOnOpenSubscriber,
|
|
605
|
+
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
606
|
+
multi: true,
|
|
607
|
+
},
|
|
608
|
+
], viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"textfield mod-search\">\r\n\t<input #searchInput class=\"textfield-input\" [formControl]=\"searchControl\">\r\n</div>\r\n\r\n<lu-option-placeholder *ngIf=\"empty$ | async\" (onClear)=\"resetClue()\"></lu-option-placeholder>", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#898fae;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}\n"], components: [{ type: LuOptionPlaceholderComponent, selector: "lu-option-placeholder", outputs: ["onClear"] }], directives: [{ type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherComponent, decorators: [{
|
|
610
|
+
type: Component,
|
|
611
|
+
args: [{ selector: 'lu-option-searcher', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
612
|
+
{
|
|
613
|
+
provide: ALuOptionOperator,
|
|
614
|
+
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
615
|
+
multi: true,
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
provide: ALuOnOpenSubscriber,
|
|
619
|
+
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
620
|
+
multi: true,
|
|
621
|
+
},
|
|
622
|
+
], template: "<div class=\"textfield mod-search\">\r\n\t<input #searchInput class=\"textfield-input\" [formControl]=\"searchControl\">\r\n</div>\r\n\r\n<lu-option-placeholder *ngIf=\"empty$ | async\" (onClear)=\"resetClue()\"></lu-option-placeholder>", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#898fae;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}\n"] }]
|
|
623
|
+
}], propDecorators: { searchInput: [{
|
|
624
|
+
type: ViewChild,
|
|
625
|
+
args: ['searchInput', { read: ElementRef, static: true }]
|
|
626
|
+
}], searchFn: [{
|
|
627
|
+
type: Input
|
|
628
|
+
}] } });
|
|
629
|
+
|
|
630
|
+
class ALuOptionPlaceholderLabel {
|
|
631
|
+
}
|
|
632
|
+
const luOptionPlaceholderTranslations = {
|
|
633
|
+
en: {
|
|
634
|
+
placeholderDescription: 'No results match your search criteria.',
|
|
635
|
+
placeholderAction: 'Clear search',
|
|
636
|
+
},
|
|
637
|
+
fr: {
|
|
638
|
+
placeholderDescription: 'Aucun résultat pour votre recherche',
|
|
639
|
+
placeholderAction: 'Vider la recherche',
|
|
640
|
+
},
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
class LuOptionPlaceholderModule {
|
|
644
|
+
}
|
|
645
|
+
LuOptionPlaceholderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
646
|
+
LuOptionPlaceholderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderModule, declarations: [LuOptionPlaceholderComponent], exports: [LuOptionPlaceholderComponent] });
|
|
647
|
+
LuOptionPlaceholderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderModule, providers: [
|
|
648
|
+
LuOptionPlaceholderIntl,
|
|
649
|
+
{ provide: LU_OPTION_PLACEHOLDER_TRANSLATIONS, useValue: luOptionPlaceholderTranslations },
|
|
650
|
+
] });
|
|
651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPlaceholderModule, decorators: [{
|
|
652
|
+
type: NgModule,
|
|
653
|
+
args: [{
|
|
654
|
+
declarations: [
|
|
655
|
+
LuOptionPlaceholderComponent,
|
|
656
|
+
],
|
|
657
|
+
exports: [
|
|
658
|
+
LuOptionPlaceholderComponent,
|
|
659
|
+
],
|
|
660
|
+
providers: [
|
|
661
|
+
LuOptionPlaceholderIntl,
|
|
662
|
+
{ provide: LU_OPTION_PLACEHOLDER_TRANSLATIONS, useValue: luOptionPlaceholderTranslations },
|
|
663
|
+
]
|
|
664
|
+
}]
|
|
665
|
+
}] });
|
|
666
|
+
|
|
667
|
+
class LuOptionSearcherModule {
|
|
668
|
+
}
|
|
669
|
+
LuOptionSearcherModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
670
|
+
LuOptionSearcherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherModule, declarations: [LuOptionSearcherComponent], imports: [ReactiveFormsModule,
|
|
671
|
+
CommonModule,
|
|
672
|
+
LuOptionPlaceholderModule], exports: [LuOptionSearcherComponent] });
|
|
673
|
+
LuOptionSearcherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherModule, imports: [[
|
|
674
|
+
ReactiveFormsModule,
|
|
675
|
+
CommonModule,
|
|
676
|
+
LuOptionPlaceholderModule,
|
|
677
|
+
]] });
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSearcherModule, decorators: [{
|
|
679
|
+
type: NgModule,
|
|
680
|
+
args: [{
|
|
681
|
+
imports: [
|
|
682
|
+
ReactiveFormsModule,
|
|
683
|
+
CommonModule,
|
|
684
|
+
LuOptionPlaceholderModule,
|
|
685
|
+
],
|
|
686
|
+
declarations: [
|
|
687
|
+
LuOptionSearcherComponent,
|
|
688
|
+
],
|
|
689
|
+
exports: [
|
|
690
|
+
LuOptionSearcherComponent,
|
|
691
|
+
],
|
|
692
|
+
}]
|
|
693
|
+
}] });
|
|
694
|
+
|
|
695
|
+
class LuTreeOptionSearcherComponent extends ALuTreeOptionOperator {
|
|
696
|
+
constructor() {
|
|
697
|
+
super(...arguments);
|
|
698
|
+
this.searchControl = new FormControl();
|
|
699
|
+
this.clue$ = merge(of(''), this.searchControl.valueChanges);
|
|
700
|
+
this.searchFn = () => true;
|
|
701
|
+
}
|
|
702
|
+
set inOptions$(in$) {
|
|
703
|
+
this.outOptions$ = combineLatest(in$, this.clue$, (options, clue) => {
|
|
704
|
+
if (!clue) {
|
|
705
|
+
return options || [];
|
|
706
|
+
}
|
|
707
|
+
return this.trim(options, clue);
|
|
708
|
+
});
|
|
709
|
+
this.empty$ = this.outOptions$.pipe(map(o => !o || o.length === 0));
|
|
710
|
+
}
|
|
711
|
+
onOpen() {
|
|
712
|
+
this.searchInput.nativeElement.focus();
|
|
713
|
+
this.searchControl.setValue('');
|
|
714
|
+
}
|
|
715
|
+
trim(options, clue) {
|
|
716
|
+
return options.map(option => {
|
|
717
|
+
if (this.searchFn(option.value, clue)) {
|
|
718
|
+
return Object.assign({}, option);
|
|
719
|
+
}
|
|
720
|
+
const trimmedChildren = option.children ? this.trim(option.children, clue) : [];
|
|
721
|
+
if (trimmedChildren.length) {
|
|
722
|
+
return Object.assign(Object.assign({}, option), { children: trimmedChildren });
|
|
723
|
+
}
|
|
724
|
+
return undefined;
|
|
725
|
+
}).filter(o => !!o);
|
|
726
|
+
}
|
|
727
|
+
resetClue() {
|
|
728
|
+
this.searchControl.setValue('');
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
LuTreeOptionSearcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
732
|
+
LuTreeOptionSearcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionSearcherComponent, selector: "lu-tree-option-searcher", inputs: { searchFn: "searchFn" }, providers: [
|
|
733
|
+
{
|
|
734
|
+
provide: ALuTreeOptionOperator,
|
|
735
|
+
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
736
|
+
multi: true,
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
provide: ALuOnOpenSubscriber,
|
|
740
|
+
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
741
|
+
multi: true,
|
|
742
|
+
},
|
|
743
|
+
], viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"textfield mod-search\">\r\n\t<input #searchInput class=\"textfield-input\" [formControl]=\"searchControl\">\r\n</div>\r\n\r\n<lu-option-placeholder *ngIf=\"empty$ | async\" (onClear)=\"resetClue()\"></lu-option-placeholder>", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#898fae;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}\n"], components: [{ type: LuOptionPlaceholderComponent, selector: "lu-option-placeholder", outputs: ["onClear"] }], directives: [{ type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherComponent, decorators: [{
|
|
745
|
+
type: Component,
|
|
746
|
+
args: [{ selector: 'lu-tree-option-searcher', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
747
|
+
{
|
|
748
|
+
provide: ALuTreeOptionOperator,
|
|
749
|
+
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
750
|
+
multi: true,
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
provide: ALuOnOpenSubscriber,
|
|
754
|
+
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
755
|
+
multi: true,
|
|
756
|
+
},
|
|
757
|
+
], template: "<div class=\"textfield mod-search\">\r\n\t<input #searchInput class=\"textfield-input\" [formControl]=\"searchControl\">\r\n</div>\r\n\r\n<lu-option-placeholder *ngIf=\"empty$ | async\" (onClear)=\"resetClue()\"></lu-option-placeholder>", styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#FFFFFF;border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color)}.textfield-input:hover{background-color:#ebf0fa;background-color:var(--palettes-grey-50)}.textfield-input:focus{background-color:#fff;border-bottom-color:#898fae;border-bottom-color:var(--palettes-primary-600)}.checkbox.mod-formerEmployee{padding:.25rem .5rem;padding:var(--spacings-smallest) var(--components-options-item-padding-horizontal);border-bottom:1px solid var(--palettes-grey-200);border-bottom:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}\n"] }]
|
|
758
|
+
}], propDecorators: { searchInput: [{
|
|
759
|
+
type: ViewChild,
|
|
760
|
+
args: ['searchInput', { read: ElementRef, static: true }]
|
|
761
|
+
}], searchFn: [{
|
|
762
|
+
type: Input
|
|
763
|
+
}] } });
|
|
764
|
+
|
|
765
|
+
class LuTreeOptionSearcherModule {
|
|
766
|
+
}
|
|
767
|
+
LuTreeOptionSearcherModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
768
|
+
LuTreeOptionSearcherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherModule, declarations: [LuTreeOptionSearcherComponent], imports: [ReactiveFormsModule,
|
|
769
|
+
CommonModule,
|
|
770
|
+
LuOptionPlaceholderModule], exports: [LuTreeOptionSearcherComponent] });
|
|
771
|
+
LuTreeOptionSearcherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherModule, imports: [[
|
|
772
|
+
ReactiveFormsModule,
|
|
773
|
+
CommonModule,
|
|
774
|
+
LuOptionPlaceholderModule,
|
|
775
|
+
]] });
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSearcherModule, decorators: [{
|
|
777
|
+
type: NgModule,
|
|
778
|
+
args: [{
|
|
779
|
+
imports: [
|
|
780
|
+
ReactiveFormsModule,
|
|
781
|
+
CommonModule,
|
|
782
|
+
LuOptionPlaceholderModule,
|
|
783
|
+
],
|
|
784
|
+
declarations: [
|
|
785
|
+
LuTreeOptionSearcherComponent,
|
|
786
|
+
],
|
|
787
|
+
exports: [
|
|
788
|
+
LuTreeOptionSearcherComponent,
|
|
789
|
+
],
|
|
790
|
+
}]
|
|
791
|
+
}] });
|
|
792
|
+
|
|
793
|
+
class LuForGroupContext {
|
|
794
|
+
constructor($implicit, index, count) {
|
|
795
|
+
this.$implicit = $implicit;
|
|
796
|
+
this.index = index;
|
|
797
|
+
this.count = count;
|
|
798
|
+
}
|
|
799
|
+
get first() { return this.index === 0; }
|
|
800
|
+
get last() { return this.index === this.count - 1; }
|
|
801
|
+
get even() { return this.index % 2 === 0; }
|
|
802
|
+
get odd() { return !this.even; }
|
|
803
|
+
}
|
|
804
|
+
class LuForGroupsDirective {
|
|
805
|
+
constructor(_vcr, _cdr, _templateRef) {
|
|
806
|
+
this._vcr = _vcr;
|
|
807
|
+
this._cdr = _cdr;
|
|
808
|
+
this._templateRef = _templateRef;
|
|
809
|
+
this._subs = new Subscription();
|
|
810
|
+
}
|
|
811
|
+
set attrGroupBy(fn) {
|
|
812
|
+
this._groupByFn = fn;
|
|
813
|
+
}
|
|
814
|
+
set inOptions$(options$) {
|
|
815
|
+
this._subs.add(options$.subscribe(options => this.render(options)));
|
|
816
|
+
this.outOptions$ = options$;
|
|
817
|
+
}
|
|
818
|
+
ngOnDestroy() {
|
|
819
|
+
this._subs.unsubscribe();
|
|
820
|
+
}
|
|
821
|
+
render(options) {
|
|
822
|
+
this._vcr.clear();
|
|
823
|
+
const count = options.length;
|
|
824
|
+
const groups = this.groupBy(options);
|
|
825
|
+
groups.forEach((group, index) => {
|
|
826
|
+
const view = this._vcr.createEmbeddedView(this._templateRef, new LuForGroupContext(group, index, count));
|
|
827
|
+
});
|
|
828
|
+
this._cdr.markForCheck();
|
|
829
|
+
}
|
|
830
|
+
groupBy(items) {
|
|
831
|
+
const groups = [];
|
|
832
|
+
items.forEach((item) => {
|
|
833
|
+
const key = this._groupByFn(item);
|
|
834
|
+
let group = groups.find(g => g.key === key);
|
|
835
|
+
if (!group) {
|
|
836
|
+
group = { key: key, items: [] };
|
|
837
|
+
groups.push(group);
|
|
838
|
+
}
|
|
839
|
+
group.items.push(item);
|
|
840
|
+
});
|
|
841
|
+
return groups;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
LuForGroupsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
845
|
+
LuForGroupsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: LuForGroupsDirective, selector: "[luForGroups]", inputs: { attrGroupBy: ["luForGroupsGroupBy", "attrGroupBy"] }, providers: [
|
|
846
|
+
{
|
|
847
|
+
provide: ALuOptionOperator,
|
|
848
|
+
useExisting: forwardRef(() => LuForGroupsDirective),
|
|
849
|
+
multi: true,
|
|
850
|
+
},
|
|
851
|
+
], ngImport: i0 });
|
|
852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsDirective, decorators: [{
|
|
853
|
+
type: Directive,
|
|
854
|
+
args: [{
|
|
855
|
+
selector: '[luForGroups]',
|
|
856
|
+
providers: [
|
|
857
|
+
{
|
|
858
|
+
provide: ALuOptionOperator,
|
|
859
|
+
useExisting: forwardRef(() => LuForGroupsDirective),
|
|
860
|
+
multi: true,
|
|
861
|
+
},
|
|
862
|
+
],
|
|
863
|
+
}]
|
|
864
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i0.TemplateRef }]; }, propDecorators: { attrGroupBy: [{
|
|
865
|
+
type: Input,
|
|
866
|
+
args: ['luForGroupsGroupBy']
|
|
867
|
+
}] } });
|
|
868
|
+
|
|
869
|
+
class LuForGroupsModule {
|
|
870
|
+
}
|
|
871
|
+
LuForGroupsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
872
|
+
LuForGroupsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsModule, declarations: [LuForGroupsDirective], exports: [LuForGroupsDirective] });
|
|
873
|
+
LuForGroupsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsModule, imports: [[]] });
|
|
874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForGroupsModule, decorators: [{
|
|
875
|
+
type: NgModule,
|
|
876
|
+
args: [{
|
|
877
|
+
imports: [],
|
|
878
|
+
declarations: [
|
|
879
|
+
LuForGroupsDirective,
|
|
880
|
+
],
|
|
881
|
+
exports: [
|
|
882
|
+
LuForGroupsDirective,
|
|
883
|
+
],
|
|
884
|
+
}]
|
|
885
|
+
}] });
|
|
886
|
+
|
|
887
|
+
class LuForOptionsDirective extends NgForOf {
|
|
888
|
+
constructor(_viewContainer, _template, _differs, _changeDetectionRef) {
|
|
889
|
+
super(_viewContainer, _template, _differs);
|
|
890
|
+
this._changeDetectionRef = _changeDetectionRef;
|
|
891
|
+
this._subs = new Subscription();
|
|
892
|
+
}
|
|
893
|
+
set inOptions$(options$) {
|
|
894
|
+
this._subs.add(options$.subscribe(options => {
|
|
895
|
+
this.ngForOf = options;
|
|
896
|
+
this._changeDetectionRef.markForCheck();
|
|
897
|
+
}));
|
|
898
|
+
this.outOptions$ = options$;
|
|
899
|
+
}
|
|
900
|
+
set luForOptionsTrackBy(fn) {
|
|
901
|
+
this.ngForTrackBy = fn;
|
|
902
|
+
}
|
|
903
|
+
ngOnDestroy() {
|
|
904
|
+
this._subs.unsubscribe();
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
LuForOptionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
908
|
+
LuForOptionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: LuForOptionsDirective, selector: "[luForOptions]", inputs: { luForOptionsTrackBy: "luForOptionsTrackBy" }, providers: [
|
|
909
|
+
{
|
|
910
|
+
provide: ALuOptionOperator,
|
|
911
|
+
useExisting: forwardRef(() => LuForOptionsDirective),
|
|
912
|
+
multi: true,
|
|
913
|
+
},
|
|
914
|
+
], usesInheritance: true, ngImport: i0 });
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsDirective, decorators: [{
|
|
916
|
+
type: Directive,
|
|
917
|
+
args: [{
|
|
918
|
+
selector: '[luForOptions]',
|
|
919
|
+
providers: [
|
|
920
|
+
{
|
|
921
|
+
provide: ALuOptionOperator,
|
|
922
|
+
useExisting: forwardRef(() => LuForOptionsDirective),
|
|
923
|
+
multi: true,
|
|
924
|
+
},
|
|
925
|
+
],
|
|
926
|
+
}]
|
|
927
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { luForOptionsTrackBy: [{
|
|
928
|
+
type: Input
|
|
929
|
+
}] } });
|
|
930
|
+
|
|
931
|
+
class LuForOptionsModule {
|
|
932
|
+
}
|
|
933
|
+
LuForOptionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
934
|
+
LuForOptionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsModule, declarations: [LuForOptionsDirective], exports: [LuForOptionsDirective] });
|
|
935
|
+
LuForOptionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsModule, imports: [[]] });
|
|
936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForOptionsModule, decorators: [{
|
|
937
|
+
type: NgModule,
|
|
938
|
+
args: [{
|
|
939
|
+
imports: [],
|
|
940
|
+
declarations: [
|
|
941
|
+
LuForOptionsDirective,
|
|
942
|
+
],
|
|
943
|
+
exports: [
|
|
944
|
+
LuForOptionsDirective,
|
|
945
|
+
],
|
|
946
|
+
}]
|
|
947
|
+
}] });
|
|
948
|
+
|
|
949
|
+
class LuForTreeOptionsDirective extends LuForOptionsDirective {
|
|
950
|
+
}
|
|
951
|
+
LuForTreeOptionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
952
|
+
LuForTreeOptionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: LuForTreeOptionsDirective, selector: "[luForTreeOptions]", providers: [
|
|
953
|
+
{
|
|
954
|
+
provide: ALuTreeOptionOperator,
|
|
955
|
+
useExisting: forwardRef(() => LuForTreeOptionsDirective),
|
|
956
|
+
multi: true,
|
|
957
|
+
},
|
|
958
|
+
], usesInheritance: true, ngImport: i0 });
|
|
959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsDirective, decorators: [{
|
|
960
|
+
type: Directive,
|
|
961
|
+
args: [{
|
|
962
|
+
selector: '[luForTreeOptions]',
|
|
963
|
+
providers: [
|
|
964
|
+
{
|
|
965
|
+
provide: ALuTreeOptionOperator,
|
|
966
|
+
useExisting: forwardRef(() => LuForTreeOptionsDirective),
|
|
967
|
+
multi: true,
|
|
968
|
+
},
|
|
969
|
+
],
|
|
970
|
+
}]
|
|
971
|
+
}] });
|
|
972
|
+
|
|
973
|
+
class LuForTreeOptionsModule {
|
|
974
|
+
}
|
|
975
|
+
LuForTreeOptionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
976
|
+
LuForTreeOptionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsModule, declarations: [LuForTreeOptionsDirective], exports: [LuForTreeOptionsDirective] });
|
|
977
|
+
LuForTreeOptionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsModule, imports: [[]] });
|
|
978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuForTreeOptionsModule, decorators: [{
|
|
979
|
+
type: NgModule,
|
|
980
|
+
args: [{
|
|
981
|
+
imports: [],
|
|
982
|
+
declarations: [
|
|
983
|
+
LuForTreeOptionsDirective,
|
|
984
|
+
],
|
|
985
|
+
exports: [
|
|
986
|
+
LuForTreeOptionsDirective,
|
|
987
|
+
],
|
|
988
|
+
}]
|
|
989
|
+
}] });
|
|
990
|
+
|
|
991
|
+
class LuOptionOperatorModule {
|
|
992
|
+
}
|
|
993
|
+
LuOptionOperatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionOperatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
994
|
+
LuOptionOperatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionOperatorModule, imports: [LuOptionPagerModule,
|
|
995
|
+
LuOptionFeederModule,
|
|
996
|
+
LuOptionSearcherModule,
|
|
997
|
+
LuForOptionsModule,
|
|
998
|
+
LuForGroupsModule], exports: [LuOptionPagerModule,
|
|
999
|
+
LuOptionFeederModule,
|
|
1000
|
+
LuOptionSearcherModule,
|
|
1001
|
+
LuForOptionsModule,
|
|
1002
|
+
LuForGroupsModule] });
|
|
1003
|
+
LuOptionOperatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionOperatorModule, imports: [[
|
|
1004
|
+
LuOptionPagerModule,
|
|
1005
|
+
LuOptionFeederModule,
|
|
1006
|
+
LuOptionSearcherModule,
|
|
1007
|
+
LuForOptionsModule,
|
|
1008
|
+
LuForGroupsModule,
|
|
1009
|
+
], LuOptionPagerModule,
|
|
1010
|
+
LuOptionFeederModule,
|
|
1011
|
+
LuOptionSearcherModule,
|
|
1012
|
+
LuForOptionsModule,
|
|
1013
|
+
LuForGroupsModule] });
|
|
1014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionOperatorModule, decorators: [{
|
|
1015
|
+
type: NgModule,
|
|
1016
|
+
args: [{
|
|
1017
|
+
imports: [
|
|
1018
|
+
LuOptionPagerModule,
|
|
1019
|
+
LuOptionFeederModule,
|
|
1020
|
+
LuOptionSearcherModule,
|
|
1021
|
+
LuForOptionsModule,
|
|
1022
|
+
LuForGroupsModule,
|
|
1023
|
+
],
|
|
1024
|
+
exports: [
|
|
1025
|
+
LuOptionPagerModule,
|
|
1026
|
+
LuOptionFeederModule,
|
|
1027
|
+
LuOptionSearcherModule,
|
|
1028
|
+
LuForOptionsModule,
|
|
1029
|
+
LuForGroupsModule,
|
|
1030
|
+
],
|
|
1031
|
+
}]
|
|
1032
|
+
}] });
|
|
1033
|
+
|
|
1034
|
+
class LuTreeOptionOperatorModule {
|
|
1035
|
+
}
|
|
1036
|
+
LuTreeOptionOperatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionOperatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1037
|
+
LuTreeOptionOperatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionOperatorModule, imports: [LuTreeOptionFeederModule,
|
|
1038
|
+
LuForTreeOptionsModule,
|
|
1039
|
+
LuTreeOptionPagerModule,
|
|
1040
|
+
LuTreeOptionSearcherModule], exports: [LuTreeOptionFeederModule,
|
|
1041
|
+
LuForTreeOptionsModule,
|
|
1042
|
+
LuTreeOptionPagerModule,
|
|
1043
|
+
LuTreeOptionSearcherModule] });
|
|
1044
|
+
LuTreeOptionOperatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionOperatorModule, imports: [[
|
|
1045
|
+
LuTreeOptionFeederModule,
|
|
1046
|
+
LuForTreeOptionsModule,
|
|
1047
|
+
LuTreeOptionPagerModule,
|
|
1048
|
+
LuTreeOptionSearcherModule,
|
|
1049
|
+
], LuTreeOptionFeederModule,
|
|
1050
|
+
LuForTreeOptionsModule,
|
|
1051
|
+
LuTreeOptionPagerModule,
|
|
1052
|
+
LuTreeOptionSearcherModule] });
|
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionOperatorModule, decorators: [{
|
|
1054
|
+
type: NgModule,
|
|
1055
|
+
args: [{
|
|
1056
|
+
imports: [
|
|
1057
|
+
LuTreeOptionFeederModule,
|
|
1058
|
+
LuForTreeOptionsModule,
|
|
1059
|
+
LuTreeOptionPagerModule,
|
|
1060
|
+
LuTreeOptionSearcherModule,
|
|
1061
|
+
],
|
|
1062
|
+
exports: [
|
|
1063
|
+
LuTreeOptionFeederModule,
|
|
1064
|
+
LuForTreeOptionsModule,
|
|
1065
|
+
LuTreeOptionPagerModule,
|
|
1066
|
+
LuTreeOptionSearcherModule,
|
|
1067
|
+
],
|
|
1068
|
+
}]
|
|
1069
|
+
}] });
|
|
1070
|
+
|
|
1071
|
+
class ALuOptionPicker extends ALuPickerPanel {
|
|
1072
|
+
constructor() {
|
|
1073
|
+
super(...arguments);
|
|
1074
|
+
this._subs = new Subscription();
|
|
1075
|
+
this.optionComparer = (option1, option2) => JSON.stringify(option1) === JSON.stringify(option2);
|
|
1076
|
+
}
|
|
1077
|
+
setValue(value) {
|
|
1078
|
+
this._value = value;
|
|
1079
|
+
this._applySelected();
|
|
1080
|
+
}
|
|
1081
|
+
get _options$() { return this.__options$; }
|
|
1082
|
+
set _options$(options$) {
|
|
1083
|
+
this.__options$ = options$;
|
|
1084
|
+
// reapply selected when the options change
|
|
1085
|
+
this._subs.add(options$
|
|
1086
|
+
.subscribe(o => {
|
|
1087
|
+
this._applySelected();
|
|
1088
|
+
this._applyHighlight();
|
|
1089
|
+
}));
|
|
1090
|
+
// subscribe to any option.onSelect
|
|
1091
|
+
const singleFlow$ = options$.pipe(switchMap(items => merge(...items.map(i => i.onSelect))));
|
|
1092
|
+
this._subs.add(singleFlow$.subscribe(option => this._toggle(option)));
|
|
1093
|
+
}
|
|
1094
|
+
_toggle(option) {
|
|
1095
|
+
const value = option.value;
|
|
1096
|
+
if (!this.multiple) {
|
|
1097
|
+
this._select(value);
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
const values = this._value || [];
|
|
1101
|
+
let newValues;
|
|
1102
|
+
if (values.some(v => this.optionComparer(v, value))) {
|
|
1103
|
+
// value was present, we remove it
|
|
1104
|
+
newValues = values.filter(v => !this.optionComparer(v, value));
|
|
1105
|
+
}
|
|
1106
|
+
else {
|
|
1107
|
+
// value was absent, we add it
|
|
1108
|
+
newValues = [...values, value];
|
|
1109
|
+
}
|
|
1110
|
+
this._select(newValues);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
_select(val) {
|
|
1114
|
+
this._emitSelectValue(val);
|
|
1115
|
+
if (!this.multiple) {
|
|
1116
|
+
this._emitCloseEvent();
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
destroy() {
|
|
1120
|
+
this._subs.unsubscribe();
|
|
1121
|
+
}
|
|
1122
|
+
_handleKeydown(event) {
|
|
1123
|
+
switch (event.keyCode) {
|
|
1124
|
+
case ESCAPE:
|
|
1125
|
+
this._emitCloseEvent();
|
|
1126
|
+
event.preventDefault();
|
|
1127
|
+
event.stopPropagation();
|
|
1128
|
+
break;
|
|
1129
|
+
case TAB:
|
|
1130
|
+
this._emitCloseEvent();
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
class ALuOptionPickerComponent extends ALuOptionPicker {
|
|
1137
|
+
constructor(_changeDetectorRef, document) {
|
|
1138
|
+
super();
|
|
1139
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1140
|
+
this.document = document;
|
|
1141
|
+
this.close = new EventEmitter();
|
|
1142
|
+
this.open = new EventEmitter();
|
|
1143
|
+
this.hovered = new EventEmitter();
|
|
1144
|
+
this.onSelectValue = new EventEmitter();
|
|
1145
|
+
this._defaultOverlayPaneClasses = ['mod-optionPicker'];
|
|
1146
|
+
this._options = [];
|
|
1147
|
+
this._highlightIndex = -1;
|
|
1148
|
+
this._isOptionItemsInitialized = false;
|
|
1149
|
+
this.overlayPaneClass = this._defaultOverlayPaneClasses;
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* This method takes classes set on the host lu-popover element and applies them on the
|
|
1153
|
+
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
1154
|
+
* to style the containing popover from outside the component.
|
|
1155
|
+
* @param classes list of class names
|
|
1156
|
+
*/
|
|
1157
|
+
set inputPanelClasses(classes) {
|
|
1158
|
+
this.panelClasses = classes;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* This method takes classes set on the host lu-popover element and applies them on the
|
|
1162
|
+
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
1163
|
+
* to style the containing popover from outside the component.
|
|
1164
|
+
* @param classes list of class names
|
|
1165
|
+
*/
|
|
1166
|
+
set inputContentClasses(classes) {
|
|
1167
|
+
this.contentClasses = classes;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* This method take a function that compare options from feeder and options from form value.
|
|
1171
|
+
* By default, compare JSON values.
|
|
1172
|
+
*/
|
|
1173
|
+
set inputOptionComparer(comparer) {
|
|
1174
|
+
this.optionComparer = comparer;
|
|
1175
|
+
}
|
|
1176
|
+
set optionsQL(ql) {
|
|
1177
|
+
this._optionsQL = ql;
|
|
1178
|
+
}
|
|
1179
|
+
_emitSelectValue(val) {
|
|
1180
|
+
this.onSelectValue.emit(val);
|
|
1181
|
+
}
|
|
1182
|
+
ngOnDestroy() {
|
|
1183
|
+
super.destroy();
|
|
1184
|
+
}
|
|
1185
|
+
_emitOpenEvent() {
|
|
1186
|
+
this.open.emit();
|
|
1187
|
+
}
|
|
1188
|
+
_emitCloseEvent() {
|
|
1189
|
+
this.close.emit();
|
|
1190
|
+
}
|
|
1191
|
+
_emitHoveredEvent(h) {
|
|
1192
|
+
this.hovered.emit(h);
|
|
1193
|
+
}
|
|
1194
|
+
onOpen() {
|
|
1195
|
+
super.onOpen();
|
|
1196
|
+
this.highlightIndex = 0;
|
|
1197
|
+
// this._initObserver();
|
|
1198
|
+
this._applySelected();
|
|
1199
|
+
}
|
|
1200
|
+
set vcTemplateRef(tr) {
|
|
1201
|
+
this.templateRef = tr;
|
|
1202
|
+
}
|
|
1203
|
+
// keydown
|
|
1204
|
+
_handleKeydown(event) {
|
|
1205
|
+
super._handleKeydown(event);
|
|
1206
|
+
switch (event.keyCode) {
|
|
1207
|
+
case ENTER:
|
|
1208
|
+
this._selectHighlighted();
|
|
1209
|
+
event.preventDefault();
|
|
1210
|
+
event.stopPropagation();
|
|
1211
|
+
break;
|
|
1212
|
+
case UP_ARROW:
|
|
1213
|
+
this._decrHighlight();
|
|
1214
|
+
event.preventDefault();
|
|
1215
|
+
event.stopPropagation();
|
|
1216
|
+
break;
|
|
1217
|
+
case DOWN_ARROW:
|
|
1218
|
+
this._incrHighlight();
|
|
1219
|
+
event.preventDefault();
|
|
1220
|
+
event.stopPropagation();
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
get highlightIndex() { return this._highlightIndex; }
|
|
1225
|
+
set highlightIndex(i) {
|
|
1226
|
+
this._highlightIndex = i;
|
|
1227
|
+
this._applyHighlight(true);
|
|
1228
|
+
}
|
|
1229
|
+
_initHighlight() {
|
|
1230
|
+
this._subs.add(this._options$.subscribe(options => {
|
|
1231
|
+
const optionCount = options.length;
|
|
1232
|
+
const newHighlight = Math.max(Math.min(this.highlightIndex, optionCount - 1), -1);
|
|
1233
|
+
if (newHighlight !== this.highlightIndex) {
|
|
1234
|
+
this.highlightIndex = newHighlight;
|
|
1235
|
+
}
|
|
1236
|
+
}));
|
|
1237
|
+
setTimeout(() => {
|
|
1238
|
+
this.highlightIndex = -1;
|
|
1239
|
+
}, 1);
|
|
1240
|
+
}
|
|
1241
|
+
_incrHighlight() {
|
|
1242
|
+
const optionCount = this._options.length;
|
|
1243
|
+
this.highlightIndex = Math.max(Math.min(this.highlightIndex + 1, optionCount - 1), -1);
|
|
1244
|
+
}
|
|
1245
|
+
_decrHighlight() {
|
|
1246
|
+
this.highlightIndex = Math.max(this.highlightIndex - 1, -1);
|
|
1247
|
+
}
|
|
1248
|
+
_applyHighlight(reScroll = false) {
|
|
1249
|
+
if (!this.isOpen) {
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
// const highlightClass = 'is-highlighted';
|
|
1253
|
+
const options = this._options;
|
|
1254
|
+
// remove `is-highlighted` class from all other options
|
|
1255
|
+
options.forEach(option => option.highlighted = false);
|
|
1256
|
+
// apply `is-highlighted` to current highlight
|
|
1257
|
+
const highlightedOption = options[this.highlightIndex];
|
|
1258
|
+
if (!!highlightedOption) {
|
|
1259
|
+
highlightedOption.highlighted = true;
|
|
1260
|
+
// scroll to let the highlighted option visible
|
|
1261
|
+
if (reScroll) {
|
|
1262
|
+
setTimeout(() => {
|
|
1263
|
+
this._scrollToHighlight(highlightedOption.element.nativeElement);
|
|
1264
|
+
}, 1);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
this._changeDetectorRef.markForCheck();
|
|
1268
|
+
}
|
|
1269
|
+
_scrollToHighlight(targetElt) {
|
|
1270
|
+
if (!targetElt) {
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
const contentElt = this.document.querySelector('.lu-picker-content');
|
|
1274
|
+
if (!contentElt) {
|
|
1275
|
+
return;
|
|
1276
|
+
}
|
|
1277
|
+
const headerElt = this.document.querySelector('.lu-picker-content .lu-picker-header');
|
|
1278
|
+
const headerHeight = headerElt ? headerElt.offsetHeight : 0;
|
|
1279
|
+
const footerElt = this.document.querySelector('.lu-picker-content .lu-picker-footer');
|
|
1280
|
+
const footerHeight = footerElt ? footerElt.offsetHeight : 0;
|
|
1281
|
+
// highlighted option is too high
|
|
1282
|
+
if (contentElt.scrollTop + headerHeight > targetElt.offsetTop) {
|
|
1283
|
+
contentElt.scrollTop = targetElt.offsetTop - headerHeight;
|
|
1284
|
+
return;
|
|
1285
|
+
}
|
|
1286
|
+
// highlight option is too low
|
|
1287
|
+
const offsetHeight = contentElt.offsetHeight;
|
|
1288
|
+
if (contentElt.scrollTop + offsetHeight - footerHeight < targetElt.offsetTop + targetElt.offsetHeight) {
|
|
1289
|
+
contentElt.scrollTop = targetElt.offsetTop + targetElt.offsetHeight - offsetHeight + footerHeight;
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
_selectHighlighted() {
|
|
1294
|
+
const options = this._options ? this._options : [];
|
|
1295
|
+
const highlightedOption = options[this.highlightIndex];
|
|
1296
|
+
if (!!highlightedOption) {
|
|
1297
|
+
this._toggle(highlightedOption);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
_initSelected() {
|
|
1301
|
+
this._subs.add(this._options$.subscribe(() => {
|
|
1302
|
+
this._applySelected();
|
|
1303
|
+
}));
|
|
1304
|
+
}
|
|
1305
|
+
_applySelected() {
|
|
1306
|
+
if (!this._options) {
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
// const selectedClass = 'is-selected';
|
|
1310
|
+
const options = this._options;
|
|
1311
|
+
// remove `is-selected` class from all other options
|
|
1312
|
+
options.forEach(option => option.selected = false);
|
|
1313
|
+
// add `is-selected` to all selected indexes
|
|
1314
|
+
const selectedIndexes = [];
|
|
1315
|
+
if (!this.multiple) {
|
|
1316
|
+
const selectedIndex = this._options.findIndex(o => this.optionComparer(o.value, this._value));
|
|
1317
|
+
if (selectedIndex !== -1) {
|
|
1318
|
+
selectedIndexes.push(selectedIndex);
|
|
1319
|
+
}
|
|
1320
|
+
if (selectedIndex !== -1 && this.highlightIndex === -1) {
|
|
1321
|
+
this.highlightIndex = selectedIndex;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
else {
|
|
1325
|
+
const values = this._value || [];
|
|
1326
|
+
const matchingIndexes = this._options.map(o => values.some(v => this.optionComparer(o.value, v))).map((f, i) => f ? i : null)
|
|
1327
|
+
.filter(i => i !== null);
|
|
1328
|
+
selectedIndexes.push(...matchingIndexes);
|
|
1329
|
+
// selectedIndexes.push(
|
|
1330
|
+
// ...values
|
|
1331
|
+
// .map(v => this._options.findIndex(o => this.optionComparer(o.value, v)))
|
|
1332
|
+
// .filter(i => i !== -1)
|
|
1333
|
+
// );
|
|
1334
|
+
}
|
|
1335
|
+
selectedIndexes.forEach(i => {
|
|
1336
|
+
const option = options[i];
|
|
1337
|
+
if (!!option) {
|
|
1338
|
+
option.selected = true;
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
initItems() {
|
|
1343
|
+
const items$ = merge(of(this._optionsQL), this._optionsQL.changes)
|
|
1344
|
+
.pipe(map(q => q.toArray()), delay(0), share());
|
|
1345
|
+
items$.subscribe(o => this._options = o || []);
|
|
1346
|
+
this._options$ = items$;
|
|
1347
|
+
this._initHighlight();
|
|
1348
|
+
this._initSelected();
|
|
1349
|
+
}
|
|
1350
|
+
ngAfterViewInit() {
|
|
1351
|
+
this.initItems();
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
ALuOptionPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuOptionPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1355
|
+
ALuOptionPickerComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: ALuOptionPickerComponent, inputs: { inputPanelClasses: ["panel-classes", "inputPanelClasses"], inputContentClasses: ["content-classes", "inputContentClasses"], inputOptionComparer: ["option-comparer", "inputOptionComparer"] }, outputs: { close: "close", open: "open", hovered: "hovered", onSelectValue: "onSelectValue" }, queries: [{ propertyName: "optionsQL", predicate: ALuOptionItem, descendants: true }], viewQueries: [{ propertyName: "vcTemplateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
|
1356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuOptionPickerComponent, decorators: [{
|
|
1357
|
+
type: Directive
|
|
1358
|
+
}], ctorParameters: function () {
|
|
1359
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
1360
|
+
type: Inject,
|
|
1361
|
+
args: [DOCUMENT]
|
|
1362
|
+
}] }];
|
|
1363
|
+
}, propDecorators: { inputPanelClasses: [{
|
|
1364
|
+
type: Input,
|
|
1365
|
+
args: ['panel-classes']
|
|
1366
|
+
}], inputContentClasses: [{
|
|
1367
|
+
type: Input,
|
|
1368
|
+
args: ['content-classes']
|
|
1369
|
+
}], inputOptionComparer: [{
|
|
1370
|
+
type: Input,
|
|
1371
|
+
args: ['option-comparer']
|
|
1372
|
+
}], close: [{
|
|
1373
|
+
type: Output
|
|
1374
|
+
}], open: [{
|
|
1375
|
+
type: Output
|
|
1376
|
+
}], hovered: [{
|
|
1377
|
+
type: Output
|
|
1378
|
+
}], onSelectValue: [{
|
|
1379
|
+
type: Output
|
|
1380
|
+
}], optionsQL: [{
|
|
1381
|
+
type: ContentChildren,
|
|
1382
|
+
args: [ALuOptionItem, { descendants: true }]
|
|
1383
|
+
}], vcTemplateRef: [{
|
|
1384
|
+
type: ViewChild,
|
|
1385
|
+
args: [TemplateRef, { static: true }]
|
|
1386
|
+
}] } });
|
|
1387
|
+
/**
|
|
1388
|
+
* basic option picker panel
|
|
1389
|
+
*/
|
|
1390
|
+
class LuOptionPickerComponent extends ALuOptionPickerComponent {
|
|
1391
|
+
constructor(_changeDetectorRef, document) {
|
|
1392
|
+
super(_changeDetectorRef, document);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
LuOptionPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
1396
|
+
LuOptionPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionPickerComponent, selector: "lu-option-picker", providers: [
|
|
1397
|
+
{
|
|
1398
|
+
provide: ALuPickerPanel,
|
|
1399
|
+
useExisting: forwardRef(() => LuOptionPickerComponent),
|
|
1400
|
+
},
|
|
1401
|
+
], exportAs: ["LuOptionPicker"], usesInheritance: true, ngImport: i0, template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t(click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [luTransformPopover], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerComponent, decorators: [{
|
|
1403
|
+
type: Component,
|
|
1404
|
+
args: [{ selector: 'lu-option-picker', changeDetection: ChangeDetectionStrategy.OnPush, animations: [luTransformPopover], exportAs: 'LuOptionPicker', providers: [
|
|
1405
|
+
{
|
|
1406
|
+
provide: ALuPickerPanel,
|
|
1407
|
+
useExisting: forwardRef(() => LuOptionPickerComponent),
|
|
1408
|
+
},
|
|
1409
|
+
], template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t(click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""] }]
|
|
1410
|
+
}], ctorParameters: function () {
|
|
1411
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
1412
|
+
type: Inject,
|
|
1413
|
+
args: [DOCUMENT]
|
|
1414
|
+
}] }];
|
|
1415
|
+
} });
|
|
1416
|
+
|
|
1417
|
+
class ALuOptionSelector {
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
const LU_OPTION_SELECT_ALL_TRANSLATIONS = new InjectionToken('LuOptionSelectAllTranslations');
|
|
1421
|
+
|
|
1422
|
+
class LuOptionSelectAllIntl extends ALuIntl {
|
|
1423
|
+
constructor(translations, locale) {
|
|
1424
|
+
super(translations, locale);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
LuOptionSelectAllIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllIntl, deps: [{ token: LU_OPTION_SELECT_ALL_TRANSLATIONS }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1428
|
+
LuOptionSelectAllIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllIntl });
|
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllIntl, decorators: [{
|
|
1430
|
+
type: Injectable
|
|
1431
|
+
}], ctorParameters: function () {
|
|
1432
|
+
return [{ type: undefined, decorators: [{
|
|
1433
|
+
type: Inject,
|
|
1434
|
+
args: [LU_OPTION_SELECT_ALL_TRANSLATIONS]
|
|
1435
|
+
}] }, { type: undefined, decorators: [{
|
|
1436
|
+
type: Inject,
|
|
1437
|
+
args: [LOCALE_ID]
|
|
1438
|
+
}] }];
|
|
1439
|
+
} });
|
|
1440
|
+
|
|
1441
|
+
class LuOptionSelectAllComponent extends ALuOptionOperator {
|
|
1442
|
+
constructor(intl) {
|
|
1443
|
+
super();
|
|
1444
|
+
this.intl = intl;
|
|
1445
|
+
this.multiple = true;
|
|
1446
|
+
this.onSelectValue = new Subject();
|
|
1447
|
+
this.fixed = true;
|
|
1448
|
+
}
|
|
1449
|
+
set inOptions$(in$) {
|
|
1450
|
+
this.outOptions$ = in$.pipe(tap(options => this.options = options));
|
|
1451
|
+
}
|
|
1452
|
+
selectAll() {
|
|
1453
|
+
this.onSelectValue.next([...this.options]);
|
|
1454
|
+
}
|
|
1455
|
+
deselectAll() {
|
|
1456
|
+
this.onSelectValue.next([]);
|
|
1457
|
+
}
|
|
1458
|
+
setValue(values) {
|
|
1459
|
+
this._values = values;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
LuOptionSelectAllComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllComponent, deps: [{ token: LuOptionSelectAllIntl }], target: i0.ɵɵFactoryTarget.Component });
|
|
1463
|
+
LuOptionSelectAllComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionSelectAllComponent, selector: "lu-option-select-all", host: { properties: { "class.position-fixed": "this.fixed" } }, providers: [
|
|
1464
|
+
{
|
|
1465
|
+
provide: ALuOptionOperator,
|
|
1466
|
+
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1467
|
+
multi: true,
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
provide: ALuOptionSelector,
|
|
1471
|
+
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1472
|
+
multi: true,
|
|
1473
|
+
},
|
|
1474
|
+
], usesInheritance: true, ngImport: i0, template: "<button (click)=\"selectAll()\" class=\"link selectAll-button\">{{intl.select}}</button>\r\n<button (click)=\"deselectAll()\" class=\"link selectAll-button u-marginLeftSmaller\">{{intl.deselect}}</button>", styles: [":host .selectAll-button{color:var(--colors-text-light-color);font-size:var(--sizes-small-font-size);outline:none}:host .selectAll-button:hover{color:var(--colors-text-default-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllComponent, decorators: [{
|
|
1476
|
+
type: Component,
|
|
1477
|
+
args: [{ selector: 'lu-option-select-all', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1478
|
+
{
|
|
1479
|
+
provide: ALuOptionOperator,
|
|
1480
|
+
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1481
|
+
multi: true,
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
provide: ALuOptionSelector,
|
|
1485
|
+
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1486
|
+
multi: true,
|
|
1487
|
+
},
|
|
1488
|
+
], template: "<button (click)=\"selectAll()\" class=\"link selectAll-button\">{{intl.select}}</button>\r\n<button (click)=\"deselectAll()\" class=\"link selectAll-button u-marginLeftSmaller\">{{intl.deselect}}</button>", styles: [":host .selectAll-button{color:var(--colors-text-light-color);font-size:var(--sizes-small-font-size);outline:none}:host .selectAll-button:hover{color:var(--colors-text-default-color)}\n"] }]
|
|
1489
|
+
}], ctorParameters: function () {
|
|
1490
|
+
return [{ type: undefined, decorators: [{
|
|
1491
|
+
type: Inject,
|
|
1492
|
+
args: [LuOptionSelectAllIntl]
|
|
1493
|
+
}] }];
|
|
1494
|
+
}, propDecorators: { fixed: [{
|
|
1495
|
+
type: HostBinding,
|
|
1496
|
+
args: ['class.position-fixed']
|
|
1497
|
+
}] } });
|
|
1498
|
+
|
|
1499
|
+
class ALuOptionSelectAllLabel {
|
|
1500
|
+
}
|
|
1501
|
+
const luOptionSelectAllTranslations = {
|
|
1502
|
+
en: {
|
|
1503
|
+
select: 'Select all',
|
|
1504
|
+
deselect: 'Deselect all',
|
|
1505
|
+
},
|
|
1506
|
+
fr: {
|
|
1507
|
+
select: 'Tout sélectionner',
|
|
1508
|
+
deselect: 'Tout Déselectionner'
|
|
1509
|
+
},
|
|
1510
|
+
de: {
|
|
1511
|
+
select: 'Alle auswählen',
|
|
1512
|
+
deselect: 'Alle abwählen'
|
|
1513
|
+
},
|
|
1514
|
+
pt: {
|
|
1515
|
+
select: 'Selecionar tudo',
|
|
1516
|
+
deselect: 'Desselecionar tudo'
|
|
1517
|
+
},
|
|
1518
|
+
es: {
|
|
1519
|
+
select: 'Seleccionar todo',
|
|
1520
|
+
deselect: 'Desmarcar todo'
|
|
1521
|
+
},
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
class LuOptionSelectAllModule {
|
|
1525
|
+
}
|
|
1526
|
+
LuOptionSelectAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1527
|
+
LuOptionSelectAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllModule, declarations: [LuOptionSelectAllComponent], exports: [LuOptionSelectAllComponent] });
|
|
1528
|
+
LuOptionSelectAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllModule, providers: [
|
|
1529
|
+
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: luOptionSelectAllTranslations },
|
|
1530
|
+
LuOptionSelectAllIntl,
|
|
1531
|
+
] });
|
|
1532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectAllModule, decorators: [{
|
|
1533
|
+
type: NgModule,
|
|
1534
|
+
args: [{
|
|
1535
|
+
declarations: [
|
|
1536
|
+
LuOptionSelectAllComponent,
|
|
1537
|
+
],
|
|
1538
|
+
exports: [
|
|
1539
|
+
LuOptionSelectAllComponent,
|
|
1540
|
+
],
|
|
1541
|
+
providers: [
|
|
1542
|
+
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: luOptionSelectAllTranslations },
|
|
1543
|
+
LuOptionSelectAllIntl,
|
|
1544
|
+
]
|
|
1545
|
+
}]
|
|
1546
|
+
}] });
|
|
1547
|
+
|
|
1548
|
+
class ALuTreeOptionSelector extends ALuOptionSelector {
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
class LuTreeOptionSelectAllComponent extends ALuTreeOptionOperator {
|
|
1552
|
+
constructor(intl) {
|
|
1553
|
+
super();
|
|
1554
|
+
this.intl = intl;
|
|
1555
|
+
this.multiple = true;
|
|
1556
|
+
this.onSelectValue = new Subject();
|
|
1557
|
+
this.fixed = true;
|
|
1558
|
+
}
|
|
1559
|
+
set inOptions$(in$) {
|
|
1560
|
+
this.outOptions$ = in$.pipe(tap(options => this.flatOptions = this.flattenTree(options)));
|
|
1561
|
+
}
|
|
1562
|
+
selectAll() {
|
|
1563
|
+
this.onSelectValue.next([...this.flatOptions]);
|
|
1564
|
+
}
|
|
1565
|
+
deselectAll() {
|
|
1566
|
+
this.onSelectValue.next([]);
|
|
1567
|
+
}
|
|
1568
|
+
setValue(values) {
|
|
1569
|
+
this._values = values;
|
|
1570
|
+
}
|
|
1571
|
+
flattenTree(tree = []) {
|
|
1572
|
+
return tree
|
|
1573
|
+
.map(t => [t.value, ...this.flattenTree(t.children)])
|
|
1574
|
+
.reduce((agg, cur) => [...agg, ...cur], []);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
LuTreeOptionSelectAllComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllComponent, deps: [{ token: LuOptionSelectAllIntl }], target: i0.ɵɵFactoryTarget.Component });
|
|
1578
|
+
LuTreeOptionSelectAllComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionSelectAllComponent, selector: "lu-tree-option-select-all", host: { properties: { "class.position-fixed": "this.fixed" } }, providers: [
|
|
1579
|
+
{
|
|
1580
|
+
provide: ALuTreeOptionOperator,
|
|
1581
|
+
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1582
|
+
multi: true,
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
provide: ALuTreeOptionSelector,
|
|
1586
|
+
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1587
|
+
multi: true,
|
|
1588
|
+
},
|
|
1589
|
+
], usesInheritance: true, ngImport: i0, template: "<button (click)=\"selectAll()\" class=\"link selectAll-button\">{{intl.select}}</button>\r\n<button (click)=\"deselectAll()\" class=\"link selectAll-button u-marginLeftSmaller\">{{intl.deselect}}</button>", styles: [":host .selectAll-button{color:var(--colors-text-light-color);font-size:var(--sizes-small-font-size);outline:none}:host .selectAll-button:hover{color:var(--colors-text-default-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllComponent, decorators: [{
|
|
1591
|
+
type: Component,
|
|
1592
|
+
args: [{ selector: 'lu-tree-option-select-all', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1593
|
+
{
|
|
1594
|
+
provide: ALuTreeOptionOperator,
|
|
1595
|
+
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1596
|
+
multi: true,
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
provide: ALuTreeOptionSelector,
|
|
1600
|
+
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1601
|
+
multi: true,
|
|
1602
|
+
},
|
|
1603
|
+
], template: "<button (click)=\"selectAll()\" class=\"link selectAll-button\">{{intl.select}}</button>\r\n<button (click)=\"deselectAll()\" class=\"link selectAll-button u-marginLeftSmaller\">{{intl.deselect}}</button>", styles: [":host .selectAll-button{color:var(--colors-text-light-color);font-size:var(--sizes-small-font-size);outline:none}:host .selectAll-button:hover{color:var(--colors-text-default-color)}\n"] }]
|
|
1604
|
+
}], ctorParameters: function () {
|
|
1605
|
+
return [{ type: undefined, decorators: [{
|
|
1606
|
+
type: Inject,
|
|
1607
|
+
args: [LuOptionSelectAllIntl]
|
|
1608
|
+
}] }];
|
|
1609
|
+
}, propDecorators: { fixed: [{
|
|
1610
|
+
type: HostBinding,
|
|
1611
|
+
args: ['class.position-fixed']
|
|
1612
|
+
}] } });
|
|
1613
|
+
|
|
1614
|
+
class LuTreeOptionSelectAllModule {
|
|
1615
|
+
}
|
|
1616
|
+
LuTreeOptionSelectAllModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1617
|
+
LuTreeOptionSelectAllModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllModule, declarations: [LuTreeOptionSelectAllComponent], exports: [LuTreeOptionSelectAllComponent] });
|
|
1618
|
+
LuTreeOptionSelectAllModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllModule, providers: [
|
|
1619
|
+
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: luOptionSelectAllTranslations },
|
|
1620
|
+
LuOptionSelectAllIntl,
|
|
1621
|
+
] });
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectAllModule, decorators: [{
|
|
1623
|
+
type: NgModule,
|
|
1624
|
+
args: [{
|
|
1625
|
+
declarations: [
|
|
1626
|
+
LuTreeOptionSelectAllComponent,
|
|
1627
|
+
],
|
|
1628
|
+
exports: [
|
|
1629
|
+
LuTreeOptionSelectAllComponent,
|
|
1630
|
+
],
|
|
1631
|
+
providers: [
|
|
1632
|
+
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: luOptionSelectAllTranslations },
|
|
1633
|
+
LuOptionSelectAllIntl,
|
|
1634
|
+
]
|
|
1635
|
+
}]
|
|
1636
|
+
}] });
|
|
1637
|
+
|
|
1638
|
+
class LuOptionSelectorModule {
|
|
1639
|
+
}
|
|
1640
|
+
LuOptionSelectorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1641
|
+
LuOptionSelectorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectorModule, imports: [LuOptionSelectAllModule], exports: [LuOptionSelectAllModule] });
|
|
1642
|
+
LuOptionSelectorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectorModule, imports: [[
|
|
1643
|
+
LuOptionSelectAllModule,
|
|
1644
|
+
], LuOptionSelectAllModule] });
|
|
1645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionSelectorModule, decorators: [{
|
|
1646
|
+
type: NgModule,
|
|
1647
|
+
args: [{
|
|
1648
|
+
imports: [
|
|
1649
|
+
LuOptionSelectAllModule,
|
|
1650
|
+
],
|
|
1651
|
+
exports: [
|
|
1652
|
+
LuOptionSelectAllModule,
|
|
1653
|
+
],
|
|
1654
|
+
}]
|
|
1655
|
+
}] });
|
|
1656
|
+
|
|
1657
|
+
class LuTreeOptionSelectorModule {
|
|
1658
|
+
}
|
|
1659
|
+
LuTreeOptionSelectorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1660
|
+
LuTreeOptionSelectorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectorModule, imports: [LuTreeOptionSelectAllModule], exports: [LuTreeOptionSelectAllModule] });
|
|
1661
|
+
LuTreeOptionSelectorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectorModule, imports: [[
|
|
1662
|
+
LuTreeOptionSelectAllModule,
|
|
1663
|
+
], LuTreeOptionSelectAllModule] });
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionSelectorModule, decorators: [{
|
|
1665
|
+
type: NgModule,
|
|
1666
|
+
args: [{
|
|
1667
|
+
imports: [
|
|
1668
|
+
LuTreeOptionSelectAllModule,
|
|
1669
|
+
],
|
|
1670
|
+
exports: [
|
|
1671
|
+
LuTreeOptionSelectAllModule,
|
|
1672
|
+
],
|
|
1673
|
+
}]
|
|
1674
|
+
}] });
|
|
1675
|
+
|
|
1676
|
+
class ALuOptionPickerAdvancedComponent extends ALuOptionPickerComponent {
|
|
1677
|
+
constructor(_changeDetectorRef, document) {
|
|
1678
|
+
super(_changeDetectorRef, document);
|
|
1679
|
+
this._operators = [];
|
|
1680
|
+
this._onOpenSubscribers = [];
|
|
1681
|
+
this._onCloseSubscribers = [];
|
|
1682
|
+
this._onScrollBottomSubscribers = [];
|
|
1683
|
+
this._selectors = [];
|
|
1684
|
+
}
|
|
1685
|
+
set operatorsQL(ql) {
|
|
1686
|
+
this._operatorsQL = ql;
|
|
1687
|
+
}
|
|
1688
|
+
set onOpenSubsQL(ql) {
|
|
1689
|
+
this._onOpenSubscribers = ql.toArray();
|
|
1690
|
+
}
|
|
1691
|
+
set onCloseSubsQL(ql) {
|
|
1692
|
+
this._onCloseSubscribers = ql.toArray();
|
|
1693
|
+
}
|
|
1694
|
+
set onScrollBottomSubsQL(ql) {
|
|
1695
|
+
this._onScrollBottomSubscribers = ql.toArray();
|
|
1696
|
+
}
|
|
1697
|
+
set selectorsQL(ql) {
|
|
1698
|
+
this._selectorsQL = ql;
|
|
1699
|
+
}
|
|
1700
|
+
onScrollBottom() {
|
|
1701
|
+
this._onScrollBottomSubscribers.forEach(o => {
|
|
1702
|
+
if (!o.onScrollBottom) {
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
o.onScrollBottom();
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
onOpen() {
|
|
1709
|
+
this._onOpenSubscribers.forEach(o => {
|
|
1710
|
+
o.onOpen();
|
|
1711
|
+
});
|
|
1712
|
+
const operators = this._operators || [];
|
|
1713
|
+
const lastOperator = operators[operators.length - 1];
|
|
1714
|
+
if (lastOperator && lastOperator.outOptions$) {
|
|
1715
|
+
this.loading$ = lastOperator.outOptions$.pipe(first(), mapTo(false), startWith(true), shareReplay());
|
|
1716
|
+
}
|
|
1717
|
+
super.onOpen();
|
|
1718
|
+
}
|
|
1719
|
+
onClose() {
|
|
1720
|
+
this._onCloseSubscribers.forEach(o => {
|
|
1721
|
+
o.onClose();
|
|
1722
|
+
});
|
|
1723
|
+
super.onClose();
|
|
1724
|
+
}
|
|
1725
|
+
setValue(value) {
|
|
1726
|
+
super.setValue(value);
|
|
1727
|
+
this._selectors.forEach(s => s.setValue(value));
|
|
1728
|
+
}
|
|
1729
|
+
initOperators() {
|
|
1730
|
+
const operators = this._operatorsQL.toArray();
|
|
1731
|
+
this._operators = operators;
|
|
1732
|
+
let options$;
|
|
1733
|
+
operators.forEach(operator => {
|
|
1734
|
+
operator.inOptions$ = options$;
|
|
1735
|
+
options$ = operator.outOptions$;
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
initSelectors() {
|
|
1739
|
+
const selectors$ = this._selectorsQL.changes.pipe(startWith(this._selectorsQL.toArray()));
|
|
1740
|
+
this._subs.add(selectors$.subscribe(selectors => {
|
|
1741
|
+
this._selectors = selectors;
|
|
1742
|
+
this._subs.add(merge(this._selectors.map(s => s.onSelectValue)).pipe(mergeAll()).subscribe(values => {
|
|
1743
|
+
this._select(values);
|
|
1744
|
+
}));
|
|
1745
|
+
}));
|
|
1746
|
+
}
|
|
1747
|
+
ngAfterViewInit() {
|
|
1748
|
+
super.ngAfterViewInit();
|
|
1749
|
+
this.initOperators();
|
|
1750
|
+
this.initSelectors();
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
ALuOptionPickerAdvancedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuOptionPickerAdvancedComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1754
|
+
ALuOptionPickerAdvancedComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: ALuOptionPickerAdvancedComponent, queries: [{ propertyName: "operatorsQL", predicate: ALuOptionOperator, descendants: true }, { propertyName: "onOpenSubsQL", predicate: ALuOnOpenSubscriber, descendants: true }, { propertyName: "onCloseSubsQL", predicate: ALuOnCloseSubscriber, descendants: true }, { propertyName: "onScrollBottomSubsQL", predicate: ALuOnScrollBottomSubscriber, descendants: true }, { propertyName: "selectorsQL", predicate: ALuOptionSelector, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
1755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuOptionPickerAdvancedComponent, decorators: [{
|
|
1756
|
+
type: Directive
|
|
1757
|
+
}], ctorParameters: function () {
|
|
1758
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
1759
|
+
type: Inject,
|
|
1760
|
+
args: [DOCUMENT]
|
|
1761
|
+
}] }];
|
|
1762
|
+
}, propDecorators: { operatorsQL: [{
|
|
1763
|
+
type: ContentChildren,
|
|
1764
|
+
args: [ALuOptionOperator, { descendants: true }]
|
|
1765
|
+
}], onOpenSubsQL: [{
|
|
1766
|
+
type: ContentChildren,
|
|
1767
|
+
args: [ALuOnOpenSubscriber, { descendants: true }]
|
|
1768
|
+
}], onCloseSubsQL: [{
|
|
1769
|
+
type: ContentChildren,
|
|
1770
|
+
args: [ALuOnCloseSubscriber, { descendants: true }]
|
|
1771
|
+
}], onScrollBottomSubsQL: [{
|
|
1772
|
+
type: ContentChildren,
|
|
1773
|
+
args: [ALuOnScrollBottomSubscriber, { descendants: true }]
|
|
1774
|
+
}], selectorsQL: [{
|
|
1775
|
+
type: ContentChildren,
|
|
1776
|
+
args: [ALuOptionSelector, { descendants: true }]
|
|
1777
|
+
}] } });
|
|
1778
|
+
/**
|
|
1779
|
+
* advanced option picker panel
|
|
1780
|
+
*/
|
|
1781
|
+
class LuOptionPickerAdvancedComponent extends ALuOptionPickerAdvancedComponent {
|
|
1782
|
+
constructor(_changeDetectorRef, document) {
|
|
1783
|
+
super(_changeDetectorRef, document);
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
LuOptionPickerAdvancedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerAdvancedComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
1787
|
+
LuOptionPickerAdvancedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuOptionPickerAdvancedComponent, selector: "lu-option-picker-advanced", providers: [
|
|
1788
|
+
{
|
|
1789
|
+
provide: ALuPickerPanel,
|
|
1790
|
+
useExisting: forwardRef(() => LuOptionPickerAdvancedComponent),
|
|
1791
|
+
},
|
|
1792
|
+
], exportAs: ["LuOptionPickerAdvanced"], usesInheritance: true, ngImport: i0, template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div [class.is-loading]=\"loading$ | async\" class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\" luScroll (onScrollBottom)=\"onScrollBottom()\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t\t<div *ngIf=\"loading$ | async\" class=\"loading lu-picker-loading\"></div>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$3.LuScrollDirective, selector: "[luScroll]", inputs: ["debounceTime"], outputs: ["onScroll", "onScrollTop", "onScrollBottom", "onScrollLeft", "onScrollRight"], exportAs: ["luScroll"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe }, animations: [luTransformPopover], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerAdvancedComponent, decorators: [{
|
|
1794
|
+
type: Component,
|
|
1795
|
+
args: [{ selector: 'lu-option-picker-advanced', changeDetection: ChangeDetectionStrategy.OnPush, animations: [luTransformPopover], exportAs: 'LuOptionPickerAdvanced', providers: [
|
|
1796
|
+
{
|
|
1797
|
+
provide: ALuPickerPanel,
|
|
1798
|
+
useExisting: forwardRef(() => LuOptionPickerAdvancedComponent),
|
|
1799
|
+
},
|
|
1800
|
+
], template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div [class.is-loading]=\"loading$ | async\" class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\" luScroll (onScrollBottom)=\"onScrollBottom()\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t\t<div *ngIf=\"loading$ | async\" class=\"loading lu-picker-loading\"></div>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""] }]
|
|
1801
|
+
}], ctorParameters: function () {
|
|
1802
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
1803
|
+
type: Inject,
|
|
1804
|
+
args: [DOCUMENT]
|
|
1805
|
+
}] }];
|
|
1806
|
+
} });
|
|
1807
|
+
|
|
1808
|
+
class LuOptionPickerModule {
|
|
1809
|
+
}
|
|
1810
|
+
LuOptionPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1811
|
+
LuOptionPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerModule, declarations: [LuOptionPickerComponent,
|
|
1812
|
+
LuOptionPickerAdvancedComponent], imports: [CommonModule,
|
|
1813
|
+
OverlayModule,
|
|
1814
|
+
LuOptionItemModule,
|
|
1815
|
+
LuScrollModule,
|
|
1816
|
+
A11yModule], exports: [LuOptionPickerComponent,
|
|
1817
|
+
LuOptionPickerAdvancedComponent,
|
|
1818
|
+
LuOptionItemModule] });
|
|
1819
|
+
LuOptionPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerModule, imports: [[
|
|
1820
|
+
CommonModule,
|
|
1821
|
+
OverlayModule,
|
|
1822
|
+
LuOptionItemModule,
|
|
1823
|
+
LuScrollModule,
|
|
1824
|
+
A11yModule,
|
|
1825
|
+
], LuOptionItemModule] });
|
|
1826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionPickerModule, decorators: [{
|
|
1827
|
+
type: NgModule,
|
|
1828
|
+
args: [{
|
|
1829
|
+
imports: [
|
|
1830
|
+
CommonModule,
|
|
1831
|
+
OverlayModule,
|
|
1832
|
+
LuOptionItemModule,
|
|
1833
|
+
LuScrollModule,
|
|
1834
|
+
A11yModule,
|
|
1835
|
+
],
|
|
1836
|
+
declarations: [
|
|
1837
|
+
LuOptionPickerComponent,
|
|
1838
|
+
LuOptionPickerAdvancedComponent,
|
|
1839
|
+
],
|
|
1840
|
+
exports: [
|
|
1841
|
+
LuOptionPickerComponent,
|
|
1842
|
+
LuOptionPickerAdvancedComponent,
|
|
1843
|
+
LuOptionItemModule,
|
|
1844
|
+
],
|
|
1845
|
+
}]
|
|
1846
|
+
}] });
|
|
1847
|
+
|
|
1848
|
+
var ToggleMode;
|
|
1849
|
+
(function (ToggleMode) {
|
|
1850
|
+
ToggleMode[ToggleMode["all"] = 0] = "all";
|
|
1851
|
+
ToggleMode[ToggleMode["self"] = 1] = "self";
|
|
1852
|
+
ToggleMode[ToggleMode["children"] = 2] = "children";
|
|
1853
|
+
})(ToggleMode || (ToggleMode = {}));
|
|
1854
|
+
class ALuTreeOptionPickerComponent extends ALuOptionPickerComponent {
|
|
1855
|
+
constructor(_changeDetectorRef, document) {
|
|
1856
|
+
super(_changeDetectorRef, document);
|
|
1857
|
+
}
|
|
1858
|
+
set optionsQL(ql) {
|
|
1859
|
+
this._optionsQL = ql;
|
|
1860
|
+
}
|
|
1861
|
+
set _options$(optionItems$) {
|
|
1862
|
+
// reapply selected when the options change
|
|
1863
|
+
this._subs.add(optionItems$
|
|
1864
|
+
.subscribe(o => this._applySelected()));
|
|
1865
|
+
// subscribe to any option.onSelect
|
|
1866
|
+
const singleFlowSelect$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelect))));
|
|
1867
|
+
const singleFlowSelectSelf$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelectSelf))));
|
|
1868
|
+
const singleFlowSelectChildren$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelectChildren))));
|
|
1869
|
+
this._subs.add(singleFlowSelect$
|
|
1870
|
+
.subscribe(option => this._toggle(option, ToggleMode.all)));
|
|
1871
|
+
this._subs.add(singleFlowSelectSelf$
|
|
1872
|
+
.subscribe(option => this._toggle(option, ToggleMode.self)));
|
|
1873
|
+
this._subs.add(singleFlowSelectChildren$
|
|
1874
|
+
.subscribe(option => this._toggle(option, ToggleMode.children)));
|
|
1875
|
+
}
|
|
1876
|
+
_toggle(option, mod = ToggleMode.all) {
|
|
1877
|
+
switch (mod) {
|
|
1878
|
+
case ToggleMode.self:
|
|
1879
|
+
return this._toggleSelf(option);
|
|
1880
|
+
case ToggleMode.children:
|
|
1881
|
+
return this._toggleChildren(option);
|
|
1882
|
+
case ToggleMode.self:
|
|
1883
|
+
default:
|
|
1884
|
+
return this._toggleAll(option);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
_toggleAll(option) {
|
|
1888
|
+
const value = option.value;
|
|
1889
|
+
if (!this.multiple) {
|
|
1890
|
+
this._select(value);
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
const allChildren = option.allChildren.map(i => i.value);
|
|
1894
|
+
const values = this._value || [];
|
|
1895
|
+
let newValues;
|
|
1896
|
+
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1897
|
+
const allChildrenSelected = allChildren.every(child => values.some(v => this.optionComparer(v, child)));
|
|
1898
|
+
if (selfSelected && allChildrenSelected) {
|
|
1899
|
+
// remove option and its children
|
|
1900
|
+
newValues = this._remove(values, [value, ...allChildren]);
|
|
1901
|
+
}
|
|
1902
|
+
else {
|
|
1903
|
+
// add option and its children
|
|
1904
|
+
newValues = this._add(values, [value, ...allChildren]);
|
|
1905
|
+
}
|
|
1906
|
+
this._select(newValues);
|
|
1907
|
+
}
|
|
1908
|
+
_toggleSelf(option) {
|
|
1909
|
+
const value = option.value;
|
|
1910
|
+
if (!this.multiple) {
|
|
1911
|
+
this._select(value);
|
|
1912
|
+
return;
|
|
1913
|
+
}
|
|
1914
|
+
const allChildren = option.allChildren.map(i => i.value);
|
|
1915
|
+
const values = this._value || [];
|
|
1916
|
+
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1917
|
+
const someChildSelected = allChildren.some(child => values.some(v => this.optionComparer(v, child)));
|
|
1918
|
+
let newValues = this._remove(values, [...allChildren]);
|
|
1919
|
+
if (selfSelected && !someChildSelected) {
|
|
1920
|
+
// remove option
|
|
1921
|
+
newValues = this._remove(newValues, [value]);
|
|
1922
|
+
}
|
|
1923
|
+
else {
|
|
1924
|
+
// add option
|
|
1925
|
+
newValues = this._add(newValues, [value]);
|
|
1926
|
+
}
|
|
1927
|
+
this._select(newValues);
|
|
1928
|
+
}
|
|
1929
|
+
_toggleChildren(option) {
|
|
1930
|
+
const value = option.value;
|
|
1931
|
+
if (!this.multiple) {
|
|
1932
|
+
this._select(value);
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
const allChildren = option.allChildren.map(i => i.value);
|
|
1936
|
+
const values = this._value || [];
|
|
1937
|
+
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1938
|
+
let newValues = this._remove(values, [value]);
|
|
1939
|
+
const allChildrenSelected = allChildren.every(child => values.some(v => this.optionComparer(v, child)));
|
|
1940
|
+
if (allChildrenSelected && !selfSelected) {
|
|
1941
|
+
newValues = this._remove(newValues, allChildren);
|
|
1942
|
+
}
|
|
1943
|
+
else {
|
|
1944
|
+
newValues = this._add(newValues, allChildren);
|
|
1945
|
+
}
|
|
1946
|
+
this._select(newValues);
|
|
1947
|
+
}
|
|
1948
|
+
_add(values, entries) {
|
|
1949
|
+
const newEntries = entries.filter(entry => !values.some(v => this.optionComparer(v, entry)));
|
|
1950
|
+
return [...values, ...newEntries];
|
|
1951
|
+
}
|
|
1952
|
+
_remove(values, entries) {
|
|
1953
|
+
const entriesToKeep = values.filter(value => !entries.some(e => this.optionComparer(e, value)));
|
|
1954
|
+
return [...entriesToKeep];
|
|
1955
|
+
}
|
|
1956
|
+
initItems() {
|
|
1957
|
+
const items$ = this._optionsQL.changes
|
|
1958
|
+
.pipe(startWith(this._optionsQL), map(q => q.toArray()), map(roots => roots.map(r => [r, ...r.allChildren]).reduce((agg, val) => [...agg, ...val], [])), delay(0));
|
|
1959
|
+
this._subs.add(items$.subscribe(o => this._options = o || []));
|
|
1960
|
+
this._options$ = items$;
|
|
1961
|
+
}
|
|
1962
|
+
ngAfterViewInit() {
|
|
1963
|
+
this.initItems();
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
ALuTreeOptionPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuTreeOptionPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1967
|
+
ALuTreeOptionPickerComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: ALuTreeOptionPickerComponent, queries: [{ propertyName: "optionsQL", predicate: ALuTreeOptionItem, descendants: true }, { propertyName: "optionsQLVR", predicate: ALuTreeOptionItem, descendants: true, read: ViewContainerRef }], usesInheritance: true, ngImport: i0 });
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuTreeOptionPickerComponent, decorators: [{
|
|
1969
|
+
type: Directive
|
|
1970
|
+
}], ctorParameters: function () {
|
|
1971
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
1972
|
+
type: Inject,
|
|
1973
|
+
args: [DOCUMENT]
|
|
1974
|
+
}] }];
|
|
1975
|
+
}, propDecorators: { optionsQL: [{
|
|
1976
|
+
type: ContentChildren,
|
|
1977
|
+
args: [ALuTreeOptionItem, { descendants: true }]
|
|
1978
|
+
}], optionsQLVR: [{
|
|
1979
|
+
type: ContentChildren,
|
|
1980
|
+
args: [ALuTreeOptionItem, { descendants: true, read: ViewContainerRef }]
|
|
1981
|
+
}] } });
|
|
1982
|
+
/**
|
|
1983
|
+
* basic tree option picker panel
|
|
1984
|
+
*/
|
|
1985
|
+
class LuTreeOptionPickerComponent extends ALuTreeOptionPickerComponent {
|
|
1986
|
+
constructor(_changeDetectorRef, document) {
|
|
1987
|
+
super(_changeDetectorRef, document);
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
LuTreeOptionPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
1991
|
+
LuTreeOptionPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionPickerComponent, selector: "lu-tree-option-picker", providers: [
|
|
1992
|
+
{
|
|
1993
|
+
provide: ALuPickerPanel,
|
|
1994
|
+
useExisting: forwardRef(() => LuTreeOptionPickerComponent),
|
|
1995
|
+
},
|
|
1996
|
+
], exportAs: ["LuTreeOptionPicker"], usesInheritance: true, ngImport: i0, template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-tree-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [luTransformPopover], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerComponent, decorators: [{
|
|
1998
|
+
type: Component,
|
|
1999
|
+
args: [{ selector: 'lu-tree-option-picker', changeDetection: ChangeDetectionStrategy.OnPush, animations: [luTransformPopover], exportAs: 'LuTreeOptionPicker', providers: [
|
|
2000
|
+
{
|
|
2001
|
+
provide: ALuPickerPanel,
|
|
2002
|
+
useExisting: forwardRef(() => LuTreeOptionPickerComponent),
|
|
2003
|
+
},
|
|
2004
|
+
], template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-tree-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""] }]
|
|
2005
|
+
}], ctorParameters: function () {
|
|
2006
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
2007
|
+
type: Inject,
|
|
2008
|
+
args: [DOCUMENT]
|
|
2009
|
+
}] }];
|
|
2010
|
+
} });
|
|
2011
|
+
|
|
2012
|
+
class ALuTreeOptionPickerAdvancedComponent extends ALuTreeOptionPickerComponent {
|
|
2013
|
+
constructor(_changeDetectorRef, document) {
|
|
2014
|
+
super(_changeDetectorRef, document);
|
|
2015
|
+
this._operators = [];
|
|
2016
|
+
this._onOpenSubscribers = [];
|
|
2017
|
+
this._onCloseSubscribers = [];
|
|
2018
|
+
this._onScrollBottomSubscribers = [];
|
|
2019
|
+
this._selectors = [];
|
|
2020
|
+
}
|
|
2021
|
+
set operatorsQL(ql) {
|
|
2022
|
+
this._operatorsQL = ql;
|
|
2023
|
+
}
|
|
2024
|
+
set onOpenSubsQL(ql) {
|
|
2025
|
+
this._onOpenSubscribers = ql.toArray();
|
|
2026
|
+
}
|
|
2027
|
+
set onCloseSubsQL(ql) {
|
|
2028
|
+
this._onCloseSubscribers = ql.toArray();
|
|
2029
|
+
}
|
|
2030
|
+
set onScrollBottomSubsQL(ql) {
|
|
2031
|
+
this._onScrollBottomSubscribers = ql.toArray();
|
|
2032
|
+
}
|
|
2033
|
+
set selectorsQL(ql) {
|
|
2034
|
+
this._selectorsQL = ql;
|
|
2035
|
+
}
|
|
2036
|
+
onScrollBottom() {
|
|
2037
|
+
this._onScrollBottomSubscribers.forEach(o => {
|
|
2038
|
+
if (!o.onScrollBottom) {
|
|
2039
|
+
return;
|
|
2040
|
+
}
|
|
2041
|
+
o.onScrollBottom();
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
onOpen() {
|
|
2045
|
+
this._onOpenSubscribers.forEach(o => {
|
|
2046
|
+
o.onOpen();
|
|
2047
|
+
});
|
|
2048
|
+
super.onOpen();
|
|
2049
|
+
}
|
|
2050
|
+
onClose() {
|
|
2051
|
+
this._onCloseSubscribers.forEach(o => {
|
|
2052
|
+
o.onClose();
|
|
2053
|
+
});
|
|
2054
|
+
super.onClose();
|
|
2055
|
+
}
|
|
2056
|
+
setValue(value) {
|
|
2057
|
+
super.setValue(value);
|
|
2058
|
+
this._selectors.forEach(s => s.setValue(value));
|
|
2059
|
+
}
|
|
2060
|
+
initOperators() {
|
|
2061
|
+
const operators = this._operatorsQL.toArray();
|
|
2062
|
+
this._operators = operators;
|
|
2063
|
+
let options$;
|
|
2064
|
+
operators.forEach(operator => {
|
|
2065
|
+
operator.inOptions$ = options$;
|
|
2066
|
+
options$ = operator.outOptions$;
|
|
2067
|
+
});
|
|
2068
|
+
const lastOperator = operators[operators.length - 1];
|
|
2069
|
+
if (lastOperator && lastOperator.outOptions$) {
|
|
2070
|
+
this.loading$ = lastOperator.outOptions$.pipe(first(), mapTo(false), startWith(true), shareReplay());
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
initSelectors() {
|
|
2074
|
+
this._selectors = this._selectorsQL.toArray();
|
|
2075
|
+
this._subs.add(merge(this._selectors.map(s => s.onSelectValue)).pipe(mergeAll()).subscribe(values => {
|
|
2076
|
+
this._select(values);
|
|
2077
|
+
}));
|
|
2078
|
+
}
|
|
2079
|
+
ngAfterViewInit() {
|
|
2080
|
+
super.ngAfterViewInit();
|
|
2081
|
+
this.initOperators();
|
|
2082
|
+
this.initSelectors();
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
ALuTreeOptionPickerAdvancedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuTreeOptionPickerAdvancedComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2086
|
+
ALuTreeOptionPickerAdvancedComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: ALuTreeOptionPickerAdvancedComponent, queries: [{ propertyName: "operatorsQL", predicate: ALuTreeOptionOperator, descendants: true }, { propertyName: "onOpenSubsQL", predicate: ALuOnOpenSubscriber, descendants: true }, { propertyName: "onCloseSubsQL", predicate: ALuOnCloseSubscriber, descendants: true }, { propertyName: "onScrollBottomSubsQL", predicate: ALuOnScrollBottomSubscriber, descendants: true }, { propertyName: "selectorsQL", predicate: ALuTreeOptionSelector, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
2087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ALuTreeOptionPickerAdvancedComponent, decorators: [{
|
|
2088
|
+
type: Directive
|
|
2089
|
+
}], ctorParameters: function () {
|
|
2090
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
2091
|
+
type: Inject,
|
|
2092
|
+
args: [DOCUMENT]
|
|
2093
|
+
}] }];
|
|
2094
|
+
}, propDecorators: { operatorsQL: [{
|
|
2095
|
+
type: ContentChildren,
|
|
2096
|
+
args: [ALuTreeOptionOperator, { descendants: true }]
|
|
2097
|
+
}], onOpenSubsQL: [{
|
|
2098
|
+
type: ContentChildren,
|
|
2099
|
+
args: [ALuOnOpenSubscriber, { descendants: true }]
|
|
2100
|
+
}], onCloseSubsQL: [{
|
|
2101
|
+
type: ContentChildren,
|
|
2102
|
+
args: [ALuOnCloseSubscriber, { descendants: true }]
|
|
2103
|
+
}], onScrollBottomSubsQL: [{
|
|
2104
|
+
type: ContentChildren,
|
|
2105
|
+
args: [ALuOnScrollBottomSubscriber, { descendants: true }]
|
|
2106
|
+
}], selectorsQL: [{
|
|
2107
|
+
type: ContentChildren,
|
|
2108
|
+
args: [ALuTreeOptionSelector, { descendants: true }]
|
|
2109
|
+
}] } });
|
|
2110
|
+
/**
|
|
2111
|
+
* advanced option picker panel
|
|
2112
|
+
*/
|
|
2113
|
+
class LuTreeOptionPickerAdvancedComponent extends ALuTreeOptionPickerAdvancedComponent {
|
|
2114
|
+
constructor(_changeDetectorRef, document) {
|
|
2115
|
+
super(_changeDetectorRef, document);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
LuTreeOptionPickerAdvancedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerAdvancedComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
2119
|
+
LuTreeOptionPickerAdvancedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: LuTreeOptionPickerAdvancedComponent, selector: "lu-tree-option-picker-advanced", providers: [
|
|
2120
|
+
{
|
|
2121
|
+
provide: ALuPickerPanel,
|
|
2122
|
+
useExisting: forwardRef(() => LuTreeOptionPickerAdvancedComponent),
|
|
2123
|
+
},
|
|
2124
|
+
], exportAs: ["LuOptionPicker"], usesInheritance: true, ngImport: i0, template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-tree-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\" luScroll (onScrollBottom)=\"onScrollBottom()\">\r\n\t\t\t<ng-content [class.is-loading]=\"loading$ | async\"></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$3.LuScrollDirective, selector: "[luScroll]", inputs: ["debounceTime"], outputs: ["onScroll", "onScrollTop", "onScrollBottom", "onScrollLeft", "onScrollRight"], exportAs: ["luScroll"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [luTransformPopover], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerAdvancedComponent, decorators: [{
|
|
2126
|
+
type: Component,
|
|
2127
|
+
args: [{ selector: 'lu-tree-option-picker-advanced', changeDetection: ChangeDetectionStrategy.OnPush, animations: [luTransformPopover], exportAs: 'LuOptionPicker', providers: [
|
|
2128
|
+
{
|
|
2129
|
+
provide: ALuPickerPanel,
|
|
2130
|
+
useExisting: forwardRef(() => LuTreeOptionPickerAdvancedComponent),
|
|
2131
|
+
},
|
|
2132
|
+
], template: "<ng-template>\r\n\t<div class=\"lu-picker-panel lu-tree-option-picker-panel\" role=\"dialog\" [ngClass]=\"panelClassesMap\" [class.mod-multiple]=\"multiple\"\r\n\t (click)=\"onClick()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\" (mousedown)=\"onMouseDown($event)\">\r\n\t\t<div class=\"lu-picker-content\" [ngClass]=\"contentClassesMap\" [cdkTrapFocus]=\"trapFocus\" luScroll (onScrollBottom)=\"onScrollBottom()\">\r\n\t\t\t<ng-content [class.is-loading]=\"loading$ | async\"></ng-content>\r\n\t\t</div>\r\n\t</div>\r\n</ng-template>\r\n", styles: [""] }]
|
|
2133
|
+
}], ctorParameters: function () {
|
|
2134
|
+
return [{ type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
2135
|
+
type: Inject,
|
|
2136
|
+
args: [DOCUMENT]
|
|
2137
|
+
}] }];
|
|
2138
|
+
} });
|
|
2139
|
+
|
|
2140
|
+
class LuTreeOptionPickerModule {
|
|
2141
|
+
}
|
|
2142
|
+
LuTreeOptionPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2143
|
+
LuTreeOptionPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerModule, declarations: [LuTreeOptionPickerComponent,
|
|
2144
|
+
LuTreeOptionPickerAdvancedComponent], imports: [CommonModule,
|
|
2145
|
+
OverlayModule,
|
|
2146
|
+
LuScrollModule,
|
|
2147
|
+
A11yModule], exports: [LuTreeOptionPickerComponent,
|
|
2148
|
+
LuTreeOptionPickerAdvancedComponent] });
|
|
2149
|
+
LuTreeOptionPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerModule, imports: [[
|
|
2150
|
+
CommonModule,
|
|
2151
|
+
OverlayModule,
|
|
2152
|
+
LuScrollModule,
|
|
2153
|
+
A11yModule,
|
|
2154
|
+
]] });
|
|
2155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionPickerModule, decorators: [{
|
|
2156
|
+
type: NgModule,
|
|
2157
|
+
args: [{
|
|
2158
|
+
imports: [
|
|
2159
|
+
CommonModule,
|
|
2160
|
+
OverlayModule,
|
|
2161
|
+
LuScrollModule,
|
|
2162
|
+
A11yModule,
|
|
2163
|
+
],
|
|
2164
|
+
declarations: [
|
|
2165
|
+
LuTreeOptionPickerComponent,
|
|
2166
|
+
LuTreeOptionPickerAdvancedComponent,
|
|
2167
|
+
],
|
|
2168
|
+
exports: [
|
|
2169
|
+
LuTreeOptionPickerComponent,
|
|
2170
|
+
LuTreeOptionPickerAdvancedComponent,
|
|
2171
|
+
],
|
|
2172
|
+
}]
|
|
2173
|
+
}] });
|
|
2174
|
+
|
|
2175
|
+
class ALuTreeOptionPicker extends ALuOptionPicker {
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
class LuOptionModule {
|
|
2179
|
+
}
|
|
2180
|
+
LuOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2181
|
+
LuOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionModule, imports: [LuOptionItemModule,
|
|
2182
|
+
LuOptionPickerModule,
|
|
2183
|
+
LuOptionOperatorModule,
|
|
2184
|
+
LuOptionSelectorModule,
|
|
2185
|
+
LuOptionPlaceholderModule], exports: [LuOptionItemModule,
|
|
2186
|
+
LuOptionPickerModule,
|
|
2187
|
+
LuOptionOperatorModule,
|
|
2188
|
+
LuOptionSelectorModule,
|
|
2189
|
+
LuOptionPlaceholderModule] });
|
|
2190
|
+
LuOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionModule, imports: [[
|
|
2191
|
+
LuOptionItemModule,
|
|
2192
|
+
LuOptionPickerModule,
|
|
2193
|
+
LuOptionOperatorModule,
|
|
2194
|
+
LuOptionSelectorModule,
|
|
2195
|
+
LuOptionPlaceholderModule,
|
|
2196
|
+
], LuOptionItemModule,
|
|
2197
|
+
LuOptionPickerModule,
|
|
2198
|
+
LuOptionOperatorModule,
|
|
2199
|
+
LuOptionSelectorModule,
|
|
2200
|
+
LuOptionPlaceholderModule] });
|
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuOptionModule, decorators: [{
|
|
2202
|
+
type: NgModule,
|
|
2203
|
+
args: [{
|
|
2204
|
+
imports: [
|
|
2205
|
+
LuOptionItemModule,
|
|
2206
|
+
LuOptionPickerModule,
|
|
2207
|
+
LuOptionOperatorModule,
|
|
2208
|
+
LuOptionSelectorModule,
|
|
2209
|
+
LuOptionPlaceholderModule,
|
|
2210
|
+
],
|
|
2211
|
+
exports: [
|
|
2212
|
+
LuOptionItemModule,
|
|
2213
|
+
LuOptionPickerModule,
|
|
2214
|
+
LuOptionOperatorModule,
|
|
2215
|
+
LuOptionSelectorModule,
|
|
2216
|
+
LuOptionPlaceholderModule,
|
|
2217
|
+
],
|
|
2218
|
+
}]
|
|
2219
|
+
}] });
|
|
2220
|
+
|
|
2221
|
+
class LuTreeOptionModule {
|
|
2222
|
+
}
|
|
2223
|
+
LuTreeOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2224
|
+
LuTreeOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionModule, imports: [LuTreeOptionItemModule,
|
|
2225
|
+
LuTreeOptionPickerModule,
|
|
2226
|
+
LuTreeOptionOperatorModule,
|
|
2227
|
+
LuTreeOptionSelectorModule], exports: [LuTreeOptionItemModule,
|
|
2228
|
+
LuTreeOptionPickerModule,
|
|
2229
|
+
LuTreeOptionOperatorModule,
|
|
2230
|
+
LuTreeOptionSelectorModule] });
|
|
2231
|
+
LuTreeOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionModule, imports: [[
|
|
2232
|
+
LuTreeOptionItemModule,
|
|
2233
|
+
LuTreeOptionPickerModule,
|
|
2234
|
+
LuTreeOptionOperatorModule,
|
|
2235
|
+
LuTreeOptionSelectorModule,
|
|
2236
|
+
], LuTreeOptionItemModule,
|
|
2237
|
+
LuTreeOptionPickerModule,
|
|
2238
|
+
LuTreeOptionOperatorModule,
|
|
2239
|
+
LuTreeOptionSelectorModule] });
|
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: LuTreeOptionModule, decorators: [{
|
|
2241
|
+
type: NgModule,
|
|
2242
|
+
args: [{
|
|
2243
|
+
imports: [
|
|
2244
|
+
LuTreeOptionItemModule,
|
|
2245
|
+
LuTreeOptionPickerModule,
|
|
2246
|
+
LuTreeOptionOperatorModule,
|
|
2247
|
+
LuTreeOptionSelectorModule,
|
|
2248
|
+
],
|
|
2249
|
+
exports: [
|
|
2250
|
+
LuTreeOptionItemModule,
|
|
2251
|
+
LuTreeOptionPickerModule,
|
|
2252
|
+
LuTreeOptionOperatorModule,
|
|
2253
|
+
LuTreeOptionSelectorModule,
|
|
2254
|
+
],
|
|
2255
|
+
}]
|
|
2256
|
+
}] });
|
|
2257
|
+
|
|
2258
|
+
/*
|
|
2259
|
+
* Public API Surface of scroll
|
|
2260
|
+
*/
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* Generated bundle index. Do not edit.
|
|
2264
|
+
*/
|
|
2265
|
+
|
|
2266
|
+
export { ALuOptionItem, ALuOptionOperator, ALuOptionPicker, ALuOptionPickerAdvancedComponent, ALuOptionPickerComponent, ALuOptionPlaceholderLabel, ALuOptionSelectAllLabel, ALuOptionSelector, ALuTreeOptionItem, ALuTreeOptionItemLabel, ALuTreeOptionOperator, ALuTreeOptionPicker, ALuTreeOptionPickerAdvancedComponent, ALuTreeOptionPickerComponent, ALuTreeOptionSelector, LU_OPTION_PLACEHOLDER_TRANSLATIONS, LU_OPTION_SELECT_ALL_TRANSLATIONS, LU_TREE_OPTION_ITEM_TRANSLATIONS, LuForGroupContext, LuForGroupsDirective, LuForGroupsModule, LuForOptionsDirective, LuForOptionsModule, LuForTreeOptionsDirective, LuForTreeOptionsModule, LuOptionFeederComponent, LuOptionFeederModule, LuOptionItemComponent, LuOptionItemModule, LuOptionModule, LuOptionOperatorModule, LuOptionPagerComponent, LuOptionPagerModule, LuOptionPickerAdvancedComponent, LuOptionPickerComponent, LuOptionPickerModule, LuOptionPlaceholderComponent, LuOptionPlaceholderIntl, LuOptionPlaceholderModule, LuOptionSearcherComponent, LuOptionSearcherModule, LuOptionSelectAllComponent, LuOptionSelectAllIntl, LuOptionSelectAllModule, LuOptionSelectorModule, LuTreeOptionFeederComponent, LuTreeOptionFeederModule, LuTreeOptionItemComponent, LuTreeOptionItemIntl, LuTreeOptionItemModule, LuTreeOptionModule, LuTreeOptionOperatorModule, LuTreeOptionPagerComponent, LuTreeOptionPagerModule, LuTreeOptionPickerAdvancedComponent, LuTreeOptionPickerComponent, LuTreeOptionPickerModule, LuTreeOptionSearcherComponent, LuTreeOptionSearcherModule, LuTreeOptionSelectAllComponent, LuTreeOptionSelectAllModule, LuTreeOptionSelectorModule, luOptionPlaceholderTranslations, luOptionSelectAllTranslations, luTreeOptionItemTranslations };
|
|
2267
|
+
//# sourceMappingURL=lucca-front-ng-option.mjs.map
|