@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
|
@@ -1,1889 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, forwardRef, ChangeDetectorRef, Input, Output, ViewChild, ElementRef, NgModule, InjectionToken, Injectable, Inject, LOCALE_ID, ComponentFactoryResolver, ViewContainerRef, ContentChild, Directive, ContentChildren, TemplateRef, IterableDiffers, HostBinding } from '@angular/core';
|
|
2
|
-
import { ALuInputDisplayer } from '@lucca-front/ng/input';
|
|
3
|
-
import { ALuIntl, ALuOnScrollBottomSubscriber, ALuOnOpenSubscriber, ALuOnCloseSubscriber } from '@lucca-front/ng/core';
|
|
4
|
-
import { LuTooltipModule } from '@lucca-front/ng/tooltip';
|
|
5
|
-
import { CommonModule, NgForOf } from '@angular/common';
|
|
6
|
-
import { luTransformPopover } from '@lucca-front/ng/popover';
|
|
7
|
-
import { ALuPickerPanel } from '@lucca-front/ng/picker';
|
|
8
|
-
import { Subscription, merge, of, BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
|
9
|
-
import { switchMap, map, delay, share, tap, first, mapTo, startWith, shareReplay, mergeAll } from 'rxjs/operators';
|
|
10
|
-
import { TAB, ESCAPE, DOWN_ARROW, UP_ARROW, ENTER } from '@angular/cdk/keycodes';
|
|
11
|
-
import { LuScrollModule } from '@lucca-front/ng/scroll';
|
|
12
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
13
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
|
14
|
-
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
-
|
|
16
|
-
class ALuOptionItem {
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
class LuOptionItemComponent extends ALuOptionItem {
|
|
20
|
-
constructor(_cdr) {
|
|
21
|
-
super();
|
|
22
|
-
this._cdr = _cdr;
|
|
23
|
-
this._selected = false;
|
|
24
|
-
this._highlighted = false;
|
|
25
|
-
this.onSelect = new EventEmitter();
|
|
26
|
-
}
|
|
27
|
-
get selected() { return this._selected; }
|
|
28
|
-
set selected(s) {
|
|
29
|
-
if (s !== this._selected) {
|
|
30
|
-
this._selected = s;
|
|
31
|
-
this._cdr.markForCheck();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
get highlighted() { return this._highlighted; }
|
|
35
|
-
set highlighted(h) {
|
|
36
|
-
if (h !== this._highlighted) {
|
|
37
|
-
this._highlighted = h;
|
|
38
|
-
this._cdr.markForCheck();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
select() {
|
|
42
|
-
this.onSelect.emit(this);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
LuOptionItemComponent.decorators = [
|
|
46
|
-
{ type: Component, args: [{
|
|
47
|
-
selector: 'lu-option',
|
|
48
|
-
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",
|
|
49
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
50
|
-
providers: [
|
|
51
|
-
{
|
|
52
|
-
provide: ALuOptionItem,
|
|
53
|
-
useExisting: forwardRef(() => LuOptionItemComponent),
|
|
54
|
-
multi: true,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
styles: ["@charset \"UTF-8\";: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.is-focus,.optionItem-value.is-highlighted,.optionItem-value:hover{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.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted,:host-context(.lu-select-value) .optionItem-value:hover{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:\"\uE91A\";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:calc(2 * .5rem + 1rem + .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:after,:host-context(.mod-multiple).establishmentOption .optionItem-value:before{left:calc(2 * .5rem);left:calc(2 * var(--components-options-item-padding-horizontal))}"]
|
|
58
|
-
},] }
|
|
59
|
-
];
|
|
60
|
-
LuOptionItemComponent.ctorParameters = () => [
|
|
61
|
-
{ type: ChangeDetectorRef }
|
|
62
|
-
];
|
|
63
|
-
LuOptionItemComponent.propDecorators = {
|
|
64
|
-
selected: [{ type: Input }],
|
|
65
|
-
highlighted: [{ type: Input }],
|
|
66
|
-
value: [{ type: Input }],
|
|
67
|
-
onSelect: [{ type: Output }],
|
|
68
|
-
element: [{ type: ViewChild, args: ['element', { read: ElementRef, static: true },] }]
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
class LuOptionItemModule {
|
|
72
|
-
}
|
|
73
|
-
LuOptionItemModule.decorators = [
|
|
74
|
-
{ type: NgModule, args: [{
|
|
75
|
-
declarations: [
|
|
76
|
-
LuOptionItemComponent,
|
|
77
|
-
],
|
|
78
|
-
exports: [
|
|
79
|
-
LuOptionItemComponent,
|
|
80
|
-
],
|
|
81
|
-
},] }
|
|
82
|
-
];
|
|
83
|
-
|
|
84
|
-
class ALuTreeOptionItem extends ALuOptionItem {
|
|
85
|
-
get allChildren() {
|
|
86
|
-
return this.children
|
|
87
|
-
.map(c => [c, ...c.allChildren])
|
|
88
|
-
.reduce((aggr, val) => [...aggr, ...val], []);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const LU_TREE_OPTION_ITEM_TRANSLATIONS = new InjectionToken('LuTreeOptionItemTranslations');
|
|
93
|
-
|
|
94
|
-
class LuTreeOptionItemIntl extends ALuIntl {
|
|
95
|
-
constructor(translations, locale) {
|
|
96
|
-
super(translations, locale);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
LuTreeOptionItemIntl.decorators = [
|
|
100
|
-
{ type: Injectable }
|
|
101
|
-
];
|
|
102
|
-
LuTreeOptionItemIntl.ctorParameters = () => [
|
|
103
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LU_TREE_OPTION_ITEM_TRANSLATIONS,] }] },
|
|
104
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
|
|
105
|
-
];
|
|
106
|
-
|
|
107
|
-
class LuTreeOptionItemComponent extends ALuTreeOptionItem {
|
|
108
|
-
constructor(_componentFactoryResolver, intl, _cdr) {
|
|
109
|
-
super();
|
|
110
|
-
this._componentFactoryResolver = _componentFactoryResolver;
|
|
111
|
-
this.intl = intl;
|
|
112
|
-
this._cdr = _cdr;
|
|
113
|
-
this._children = [];
|
|
114
|
-
this.onSelect = new EventEmitter();
|
|
115
|
-
this.onSelectSelf = new EventEmitter();
|
|
116
|
-
this.onSelectChildren = new EventEmitter();
|
|
117
|
-
this._selected = false;
|
|
118
|
-
this._highlighted = false;
|
|
119
|
-
}
|
|
120
|
-
select() {
|
|
121
|
-
this.onSelect.emit(this);
|
|
122
|
-
}
|
|
123
|
-
selectSelf() {
|
|
124
|
-
this.onSelectSelf.emit(this);
|
|
125
|
-
}
|
|
126
|
-
selectChildren() {
|
|
127
|
-
this.onSelectChildren.emit(this);
|
|
128
|
-
}
|
|
129
|
-
set tree(t) {
|
|
130
|
-
this._tree = t;
|
|
131
|
-
this._renderValue(t.value);
|
|
132
|
-
this._renderChildren(t.children);
|
|
133
|
-
}
|
|
134
|
-
get value() { return this._tree.value; }
|
|
135
|
-
get children() { return this._children; }
|
|
136
|
-
set children(c) { this._children = c; }
|
|
137
|
-
get hasChildren() { return !!this.children && this.children.length > 0; }
|
|
138
|
-
get selected() { return this._selected; }
|
|
139
|
-
set selected(s) {
|
|
140
|
-
if (s !== this._selected) {
|
|
141
|
-
this._selected = s;
|
|
142
|
-
this._cdr.markForCheck();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
get highlighted() { return this._highlighted; }
|
|
146
|
-
set highlighted(h) {
|
|
147
|
-
if (h !== this._highlighted) {
|
|
148
|
-
this._highlighted = h;
|
|
149
|
-
this._cdr.markForCheck();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
set _contentChildDisplayer(displayer) {
|
|
153
|
-
this._displayer = displayer;
|
|
154
|
-
}
|
|
155
|
-
_renderValue(value) {
|
|
156
|
-
const evr = this._displayer.getViewRef(value);
|
|
157
|
-
this._valueVCR.clear();
|
|
158
|
-
this._valueVCR.insert(evr);
|
|
159
|
-
}
|
|
160
|
-
_renderChildren(children = []) {
|
|
161
|
-
const factory = this._componentFactoryResolver.resolveComponentFactory(LuTreeOptionItemComponent);
|
|
162
|
-
this._childrenVCR.clear();
|
|
163
|
-
this.children = children.map(c => {
|
|
164
|
-
const ref = this._childrenVCR.createComponent(factory);
|
|
165
|
-
ref.instance._displayer = this._displayer;
|
|
166
|
-
ref.instance.tree = c;
|
|
167
|
-
return ref.instance;
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
LuTreeOptionItemComponent.decorators = [
|
|
172
|
-
{ type: Component, args: [{
|
|
173
|
-
selector: 'lu-tree-option',
|
|
174
|
-
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",
|
|
175
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
176
|
-
providers: [
|
|
177
|
-
{
|
|
178
|
-
provide: ALuTreeOptionItem,
|
|
179
|
-
useExisting: forwardRef(() => LuTreeOptionItemComponent),
|
|
180
|
-
multi: true,
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
styles: ["@charset \"UTF-8\";:host{display:block}.optionItem{position:relative}.optionItem-value{display:block;cursor:pointer;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.is-focus,.optionItem-value.is-highlighted,.optionItem-value:hover{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.is-focus,:host-context(.lu-select-value) .optionItem-value.is-highlighted,:host-context(.lu-select-value) .optionItem-value:hover{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:\"\uE91A\";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:calc(2 * .5rem + 1rem + .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:after,:host-context(.mod-multiple).establishmentOption .optionItem-value:before{left:calc(2 * .5rem);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}.optionItem-icon,.optionItem-icons{transition:all .1s ease;transition:all var(--commons-animations-durations-fast) ease}.optionItem-icon{cursor:pointer;opacity:.66;margin-left:.5rem}.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}"]
|
|
184
|
-
},] }
|
|
185
|
-
];
|
|
186
|
-
LuTreeOptionItemComponent.ctorParameters = () => [
|
|
187
|
-
{ type: ComponentFactoryResolver },
|
|
188
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LuTreeOptionItemIntl,] }] },
|
|
189
|
-
{ type: ChangeDetectorRef }
|
|
190
|
-
];
|
|
191
|
-
LuTreeOptionItemComponent.propDecorators = {
|
|
192
|
-
_valueVCR: [{ type: ViewChild, args: ['value', { static: true, read: ViewContainerRef },] }],
|
|
193
|
-
_childrenVCR: [{ type: ViewChild, args: ['children', { static: true, read: ViewContainerRef },] }],
|
|
194
|
-
element: [{ type: ViewChild, args: ['element', { read: ElementRef, static: true },] }],
|
|
195
|
-
onSelect: [{ type: Output }],
|
|
196
|
-
onSelectSelf: [{ type: Output }],
|
|
197
|
-
onSelectChildren: [{ type: Output }],
|
|
198
|
-
tree: [{ type: Input }],
|
|
199
|
-
selected: [{ type: Input }],
|
|
200
|
-
highlighted: [{ type: Input }],
|
|
201
|
-
_contentChildDisplayer: [{ type: ContentChild, args: [ALuInputDisplayer, { static: true },] }]
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
class ALuTreeOptionItemLabel {
|
|
205
|
-
}
|
|
206
|
-
const luTreeOptionItemTranslations = {
|
|
207
|
-
en: {
|
|
208
|
-
parentOnly: 'Parent only',
|
|
209
|
-
childrenOnly: 'Children only',
|
|
210
|
-
},
|
|
211
|
-
fr: {
|
|
212
|
-
parentOnly: 'Seulement le parent',
|
|
213
|
-
childrenOnly: 'Seulement les enfants',
|
|
214
|
-
},
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
const ɵ0$3 = luTreeOptionItemTranslations;
|
|
218
|
-
class LuTreeOptionItemModule {
|
|
219
|
-
}
|
|
220
|
-
LuTreeOptionItemModule.decorators = [
|
|
221
|
-
{ type: NgModule, args: [{
|
|
222
|
-
declarations: [
|
|
223
|
-
LuTreeOptionItemComponent,
|
|
224
|
-
],
|
|
225
|
-
exports: [
|
|
226
|
-
LuTreeOptionItemComponent,
|
|
227
|
-
],
|
|
228
|
-
entryComponents: [
|
|
229
|
-
LuTreeOptionItemComponent,
|
|
230
|
-
],
|
|
231
|
-
imports: [
|
|
232
|
-
CommonModule,
|
|
233
|
-
LuTooltipModule,
|
|
234
|
-
],
|
|
235
|
-
providers: [
|
|
236
|
-
LuTreeOptionItemIntl,
|
|
237
|
-
{ provide: LU_TREE_OPTION_ITEM_TRANSLATIONS, useValue: ɵ0$3 },
|
|
238
|
-
],
|
|
239
|
-
},] }
|
|
240
|
-
];
|
|
241
|
-
|
|
242
|
-
class ALuOptionPicker extends ALuPickerPanel {
|
|
243
|
-
constructor() {
|
|
244
|
-
super(...arguments);
|
|
245
|
-
this._subs = new Subscription();
|
|
246
|
-
this.optionComparer = (option1, option2) => JSON.stringify(option1) === JSON.stringify(option2);
|
|
247
|
-
}
|
|
248
|
-
setValue(value) {
|
|
249
|
-
this._value = value;
|
|
250
|
-
this._applySelected();
|
|
251
|
-
}
|
|
252
|
-
get _options$() { return this.__options$; }
|
|
253
|
-
set _options$(options$) {
|
|
254
|
-
this.__options$ = options$;
|
|
255
|
-
// reapply selected when the options change
|
|
256
|
-
this._subs.add(options$
|
|
257
|
-
.subscribe(o => {
|
|
258
|
-
this._applySelected();
|
|
259
|
-
this._applyHighlight();
|
|
260
|
-
}));
|
|
261
|
-
// subscribe to any option.onSelect
|
|
262
|
-
const singleFlow$ = options$.pipe(switchMap(items => merge(...items.map(i => i.onSelect))));
|
|
263
|
-
this._subs.add(singleFlow$.subscribe(option => this._toggle(option)));
|
|
264
|
-
}
|
|
265
|
-
_toggle(option) {
|
|
266
|
-
const value = option.value;
|
|
267
|
-
if (!this.multiple) {
|
|
268
|
-
this._select(value);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
const values = this._value || [];
|
|
272
|
-
let newValues;
|
|
273
|
-
if (values.some(v => this.optionComparer(v, value))) {
|
|
274
|
-
// value was present, we remove it
|
|
275
|
-
newValues = values.filter(v => !this.optionComparer(v, value));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
// value was absent, we add it
|
|
279
|
-
newValues = [...values, value];
|
|
280
|
-
}
|
|
281
|
-
this._select(newValues);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
_select(val) {
|
|
285
|
-
this._emitSelectValue(val);
|
|
286
|
-
if (!this.multiple) {
|
|
287
|
-
this._emitCloseEvent();
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
destroy() {
|
|
291
|
-
this._subs.unsubscribe();
|
|
292
|
-
}
|
|
293
|
-
_handleKeydown(event) {
|
|
294
|
-
switch (event.keyCode) {
|
|
295
|
-
case ESCAPE:
|
|
296
|
-
this._emitCloseEvent();
|
|
297
|
-
event.preventDefault();
|
|
298
|
-
event.stopPropagation();
|
|
299
|
-
break;
|
|
300
|
-
case TAB:
|
|
301
|
-
this._emitCloseEvent();
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
class ALuOptionPickerComponent extends ALuOptionPicker {
|
|
308
|
-
constructor(_changeDetectorRef) {
|
|
309
|
-
super();
|
|
310
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
311
|
-
this.close = new EventEmitter();
|
|
312
|
-
this.open = new EventEmitter();
|
|
313
|
-
this.hovered = new EventEmitter();
|
|
314
|
-
this.onSelectValue = new EventEmitter();
|
|
315
|
-
this._defaultOverlayPaneClasses = ['mod-optionPicker'];
|
|
316
|
-
this._options = [];
|
|
317
|
-
this._highlightIndex = -1;
|
|
318
|
-
this._isOptionItemsInitialized = false;
|
|
319
|
-
this.overlayPaneClass = this._defaultOverlayPaneClasses;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* This method takes classes set on the host lu-popover element and applies them on the
|
|
323
|
-
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
324
|
-
* to style the containing popover from outside the component.
|
|
325
|
-
* @param classes list of class names
|
|
326
|
-
*/
|
|
327
|
-
set inputPanelClasses(classes) {
|
|
328
|
-
this.panelClasses = classes;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* This method takes classes set on the host lu-popover element and applies them on the
|
|
332
|
-
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
333
|
-
* to style the containing popover from outside the component.
|
|
334
|
-
* @param classes list of class names
|
|
335
|
-
*/
|
|
336
|
-
set inputContentClasses(classes) {
|
|
337
|
-
this.contentClasses = classes;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* This method take a function that compare options from feeder and options from form value.
|
|
341
|
-
* By default, compare JSON values.
|
|
342
|
-
*/
|
|
343
|
-
set inputOptionComparer(comparer) {
|
|
344
|
-
this.optionComparer = comparer;
|
|
345
|
-
}
|
|
346
|
-
set optionsQL(ql) {
|
|
347
|
-
this._optionsQL = ql;
|
|
348
|
-
}
|
|
349
|
-
_emitSelectValue(val) {
|
|
350
|
-
this.onSelectValue.emit(val);
|
|
351
|
-
}
|
|
352
|
-
ngOnDestroy() {
|
|
353
|
-
super.destroy();
|
|
354
|
-
}
|
|
355
|
-
_emitOpenEvent() {
|
|
356
|
-
this.open.emit();
|
|
357
|
-
}
|
|
358
|
-
_emitCloseEvent() {
|
|
359
|
-
this.close.emit();
|
|
360
|
-
}
|
|
361
|
-
_emitHoveredEvent(h) {
|
|
362
|
-
this.hovered.emit(h);
|
|
363
|
-
}
|
|
364
|
-
onOpen() {
|
|
365
|
-
super.onOpen();
|
|
366
|
-
this.highlightIndex = 0;
|
|
367
|
-
// this._initObserver();
|
|
368
|
-
this._applySelected();
|
|
369
|
-
}
|
|
370
|
-
set vcTemplateRef(tr) {
|
|
371
|
-
this.templateRef = tr;
|
|
372
|
-
}
|
|
373
|
-
// keydown
|
|
374
|
-
_handleKeydown(event) {
|
|
375
|
-
super._handleKeydown(event);
|
|
376
|
-
switch (event.keyCode) {
|
|
377
|
-
case ENTER:
|
|
378
|
-
this._selectHighlighted();
|
|
379
|
-
event.preventDefault();
|
|
380
|
-
event.stopPropagation();
|
|
381
|
-
break;
|
|
382
|
-
case UP_ARROW:
|
|
383
|
-
this._decrHighlight();
|
|
384
|
-
event.preventDefault();
|
|
385
|
-
event.stopPropagation();
|
|
386
|
-
break;
|
|
387
|
-
case DOWN_ARROW:
|
|
388
|
-
this._incrHighlight();
|
|
389
|
-
event.preventDefault();
|
|
390
|
-
event.stopPropagation();
|
|
391
|
-
break;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
get highlightIndex() { return this._highlightIndex; }
|
|
395
|
-
set highlightIndex(i) {
|
|
396
|
-
this._highlightIndex = i;
|
|
397
|
-
this._applyHighlight(true);
|
|
398
|
-
}
|
|
399
|
-
_initHighlight() {
|
|
400
|
-
this._subs.add(this._options$.subscribe(options => {
|
|
401
|
-
const optionCount = options.length;
|
|
402
|
-
const newHighlight = Math.max(Math.min(this.highlightIndex, optionCount - 1), -1);
|
|
403
|
-
if (newHighlight !== this.highlightIndex) {
|
|
404
|
-
this.highlightIndex = newHighlight;
|
|
405
|
-
}
|
|
406
|
-
}));
|
|
407
|
-
setTimeout(() => {
|
|
408
|
-
this.highlightIndex = -1;
|
|
409
|
-
}, 1);
|
|
410
|
-
}
|
|
411
|
-
_incrHighlight() {
|
|
412
|
-
const optionCount = this._options.length;
|
|
413
|
-
this.highlightIndex = Math.max(Math.min(this.highlightIndex + 1, optionCount - 1), -1);
|
|
414
|
-
}
|
|
415
|
-
_decrHighlight() {
|
|
416
|
-
this.highlightIndex = Math.max(this.highlightIndex - 1, -1);
|
|
417
|
-
}
|
|
418
|
-
_applyHighlight(reScroll = false) {
|
|
419
|
-
if (!this.isOpen) {
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
// const highlightClass = 'is-highlighted';
|
|
423
|
-
const options = this._options;
|
|
424
|
-
// remove `is-highlighted` class from all other options
|
|
425
|
-
options.forEach(option => option.highlighted = false);
|
|
426
|
-
// apply `is-highlighted` to current highlight
|
|
427
|
-
const highlightedOption = options[this.highlightIndex];
|
|
428
|
-
if (!!highlightedOption) {
|
|
429
|
-
highlightedOption.highlighted = true;
|
|
430
|
-
// scroll to let the highlighted option visible
|
|
431
|
-
if (reScroll) {
|
|
432
|
-
setTimeout(() => {
|
|
433
|
-
this._scrollToHighlight(highlightedOption.element.nativeElement);
|
|
434
|
-
}, 1);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
this._changeDetectorRef.markForCheck();
|
|
438
|
-
}
|
|
439
|
-
_scrollToHighlight(targetElt) {
|
|
440
|
-
if (!targetElt) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
const contentElt = document.querySelector('.lu-picker-content');
|
|
444
|
-
if (!contentElt) {
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
const headerElt = document.querySelector('.lu-picker-content .lu-picker-header');
|
|
448
|
-
const headerHeight = headerElt ? headerElt.offsetHeight : 0;
|
|
449
|
-
const footerElt = document.querySelector('.lu-picker-content .lu-picker-footer');
|
|
450
|
-
const footerHeight = footerElt ? footerElt.offsetHeight : 0;
|
|
451
|
-
// highlighted option is too high
|
|
452
|
-
if (contentElt.scrollTop + headerHeight > targetElt.offsetTop) {
|
|
453
|
-
contentElt.scrollTop = targetElt.offsetTop - headerHeight;
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
// highlight option is too low
|
|
457
|
-
const offsetHeight = contentElt.offsetHeight;
|
|
458
|
-
if (contentElt.scrollTop + offsetHeight - footerHeight < targetElt.offsetTop + targetElt.offsetHeight) {
|
|
459
|
-
contentElt.scrollTop = targetElt.offsetTop + targetElt.offsetHeight - offsetHeight + footerHeight;
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
_selectHighlighted() {
|
|
464
|
-
const options = this._options ? this._options : [];
|
|
465
|
-
const highlightedOption = options[this.highlightIndex];
|
|
466
|
-
if (!!highlightedOption) {
|
|
467
|
-
this._toggle(highlightedOption);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
_initSelected() {
|
|
471
|
-
this._subs.add(this._options$.subscribe(() => {
|
|
472
|
-
this._applySelected();
|
|
473
|
-
}));
|
|
474
|
-
}
|
|
475
|
-
_applySelected() {
|
|
476
|
-
if (!this._options) {
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
// const selectedClass = 'is-selected';
|
|
480
|
-
const options = this._options;
|
|
481
|
-
// remove `is-selected` class from all other options
|
|
482
|
-
options.forEach(option => option.selected = false);
|
|
483
|
-
// add `is-selected` to all selected indexes
|
|
484
|
-
const selectedIndexes = [];
|
|
485
|
-
if (!this.multiple) {
|
|
486
|
-
const selectedIndex = this._options.findIndex(o => this.optionComparer(o.value, this._value));
|
|
487
|
-
if (selectedIndex !== -1) {
|
|
488
|
-
selectedIndexes.push(selectedIndex);
|
|
489
|
-
}
|
|
490
|
-
if (selectedIndex !== -1 && this.highlightIndex === -1) {
|
|
491
|
-
this.highlightIndex = selectedIndex;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
else {
|
|
495
|
-
const values = this._value || [];
|
|
496
|
-
const matchingIndexes = this._options.map(o => values.some(v => this.optionComparer(o.value, v))).map((f, i) => f ? i : null)
|
|
497
|
-
.filter(i => i !== null);
|
|
498
|
-
selectedIndexes.push(...matchingIndexes);
|
|
499
|
-
// selectedIndexes.push(
|
|
500
|
-
// ...values
|
|
501
|
-
// .map(v => this._options.findIndex(o => this.optionComparer(o.value, v)))
|
|
502
|
-
// .filter(i => i !== -1)
|
|
503
|
-
// );
|
|
504
|
-
}
|
|
505
|
-
selectedIndexes.forEach(i => {
|
|
506
|
-
const option = options[i];
|
|
507
|
-
if (!!option) {
|
|
508
|
-
option.selected = true;
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
initItems() {
|
|
513
|
-
const items$ = merge(of(this._optionsQL), this._optionsQL.changes)
|
|
514
|
-
.pipe(map(q => q.toArray()), delay(0), share());
|
|
515
|
-
items$.subscribe(o => this._options = o || []);
|
|
516
|
-
this._options$ = items$;
|
|
517
|
-
this._initHighlight();
|
|
518
|
-
this._initSelected();
|
|
519
|
-
}
|
|
520
|
-
ngAfterViewInit() {
|
|
521
|
-
this.initItems();
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
ALuOptionPickerComponent.decorators = [
|
|
525
|
-
{ type: Directive }
|
|
526
|
-
];
|
|
527
|
-
ALuOptionPickerComponent.ctorParameters = () => [
|
|
528
|
-
{ type: ChangeDetectorRef }
|
|
529
|
-
];
|
|
530
|
-
ALuOptionPickerComponent.propDecorators = {
|
|
531
|
-
inputPanelClasses: [{ type: Input, args: ['panel-classes',] }],
|
|
532
|
-
inputContentClasses: [{ type: Input, args: ['content-classes',] }],
|
|
533
|
-
inputOptionComparer: [{ type: Input, args: ['option-comparer',] }],
|
|
534
|
-
close: [{ type: Output }],
|
|
535
|
-
open: [{ type: Output }],
|
|
536
|
-
hovered: [{ type: Output }],
|
|
537
|
-
onSelectValue: [{ type: Output }],
|
|
538
|
-
optionsQL: [{ type: ContentChildren, args: [ALuOptionItem, { descendants: true },] }],
|
|
539
|
-
vcTemplateRef: [{ type: ViewChild, args: [TemplateRef, { static: true },] }]
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* basic option picker panel
|
|
543
|
-
*/
|
|
544
|
-
class LuOptionPickerComponent extends ALuOptionPickerComponent {
|
|
545
|
-
constructor(_changeDetectorRef) {
|
|
546
|
-
super(_changeDetectorRef);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
LuOptionPickerComponent.decorators = [
|
|
550
|
-
{ type: Component, args: [{
|
|
551
|
-
selector: 'lu-option-picker',
|
|
552
|
-
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",
|
|
553
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
554
|
-
animations: [luTransformPopover],
|
|
555
|
-
exportAs: 'LuOptionPicker',
|
|
556
|
-
providers: [
|
|
557
|
-
{
|
|
558
|
-
provide: ALuPickerPanel,
|
|
559
|
-
useExisting: forwardRef(() => LuOptionPickerComponent),
|
|
560
|
-
},
|
|
561
|
-
],
|
|
562
|
-
styles: [""]
|
|
563
|
-
},] }
|
|
564
|
-
];
|
|
565
|
-
LuOptionPickerComponent.ctorParameters = () => [
|
|
566
|
-
{ type: ChangeDetectorRef }
|
|
567
|
-
];
|
|
568
|
-
|
|
569
|
-
class ALuOptionOperator {
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
class LuOptionFeederComponent {
|
|
573
|
-
constructor() {
|
|
574
|
-
this.outOptions$ = new BehaviorSubject([]);
|
|
575
|
-
}
|
|
576
|
-
set options(options) {
|
|
577
|
-
this.outOptions$.next(options);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
LuOptionFeederComponent.decorators = [
|
|
581
|
-
{ type: Component, args: [{
|
|
582
|
-
selector: 'lu-option-feeder',
|
|
583
|
-
template: '',
|
|
584
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
585
|
-
providers: [
|
|
586
|
-
{
|
|
587
|
-
provide: ALuOptionOperator,
|
|
588
|
-
useExisting: forwardRef(() => LuOptionFeederComponent),
|
|
589
|
-
multi: true,
|
|
590
|
-
},
|
|
591
|
-
]
|
|
592
|
-
},] }
|
|
593
|
-
];
|
|
594
|
-
LuOptionFeederComponent.propDecorators = {
|
|
595
|
-
options: [{ type: Input }]
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
class LuOptionFeederModule {
|
|
599
|
-
}
|
|
600
|
-
LuOptionFeederModule.decorators = [
|
|
601
|
-
{ type: NgModule, args: [{
|
|
602
|
-
imports: [],
|
|
603
|
-
declarations: [
|
|
604
|
-
LuOptionFeederComponent,
|
|
605
|
-
],
|
|
606
|
-
exports: [
|
|
607
|
-
LuOptionFeederComponent,
|
|
608
|
-
],
|
|
609
|
-
},] }
|
|
610
|
-
];
|
|
611
|
-
|
|
612
|
-
class ALuTreeOptionOperator extends ALuOptionOperator {
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
class LuTreeOptionFeederComponent {
|
|
616
|
-
constructor() {
|
|
617
|
-
this.outOptions$ = new BehaviorSubject([]);
|
|
618
|
-
}
|
|
619
|
-
set options(options) {
|
|
620
|
-
this.outOptions$.next(options);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
LuTreeOptionFeederComponent.decorators = [
|
|
624
|
-
{ type: Component, args: [{
|
|
625
|
-
selector: 'lu-tree-option-feeder',
|
|
626
|
-
template: '',
|
|
627
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
628
|
-
providers: [
|
|
629
|
-
{
|
|
630
|
-
provide: ALuTreeOptionOperator,
|
|
631
|
-
useExisting: forwardRef(() => LuTreeOptionFeederComponent),
|
|
632
|
-
multi: true,
|
|
633
|
-
},
|
|
634
|
-
]
|
|
635
|
-
},] }
|
|
636
|
-
];
|
|
637
|
-
LuTreeOptionFeederComponent.propDecorators = {
|
|
638
|
-
options: [{ type: Input }]
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
class LuTreeOptionFeederModule {
|
|
642
|
-
}
|
|
643
|
-
LuTreeOptionFeederModule.decorators = [
|
|
644
|
-
{ type: NgModule, args: [{
|
|
645
|
-
declarations: [
|
|
646
|
-
LuTreeOptionFeederComponent,
|
|
647
|
-
],
|
|
648
|
-
exports: [
|
|
649
|
-
LuTreeOptionFeederComponent,
|
|
650
|
-
],
|
|
651
|
-
},] }
|
|
652
|
-
];
|
|
653
|
-
|
|
654
|
-
const MAGIC_STEP$1 = 10;
|
|
655
|
-
class LuOptionPagerComponent extends ALuOptionOperator {
|
|
656
|
-
constructor() {
|
|
657
|
-
super(...arguments);
|
|
658
|
-
this.paging$ = new BehaviorSubject(MAGIC_STEP$1);
|
|
659
|
-
}
|
|
660
|
-
set inOptions$(in$) {
|
|
661
|
-
this.outOptions$ = combineLatest(in$, this.paging$, (options, paging) => {
|
|
662
|
-
return (options || []).slice(0, paging);
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
next() {
|
|
666
|
-
this.paging$.next(this.paging$.value + MAGIC_STEP$1);
|
|
667
|
-
}
|
|
668
|
-
onScrollBottom() {
|
|
669
|
-
this.next();
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
LuOptionPagerComponent.decorators = [
|
|
673
|
-
{ type: Component, args: [{
|
|
674
|
-
selector: 'lu-option-pager',
|
|
675
|
-
template: '',
|
|
676
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
677
|
-
providers: [
|
|
678
|
-
{
|
|
679
|
-
provide: ALuOptionOperator,
|
|
680
|
-
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
681
|
-
multi: true,
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
provide: ALuOnScrollBottomSubscriber,
|
|
685
|
-
useExisting: forwardRef(() => LuOptionPagerComponent),
|
|
686
|
-
multi: true,
|
|
687
|
-
},
|
|
688
|
-
]
|
|
689
|
-
},] }
|
|
690
|
-
];
|
|
691
|
-
|
|
692
|
-
class LuOptionPagerModule {
|
|
693
|
-
}
|
|
694
|
-
LuOptionPagerModule.decorators = [
|
|
695
|
-
{ type: NgModule, args: [{
|
|
696
|
-
imports: [],
|
|
697
|
-
declarations: [
|
|
698
|
-
LuOptionPagerComponent,
|
|
699
|
-
],
|
|
700
|
-
exports: [
|
|
701
|
-
LuOptionPagerComponent,
|
|
702
|
-
],
|
|
703
|
-
},] }
|
|
704
|
-
];
|
|
705
|
-
|
|
706
|
-
const MAGIC_STEP = 10;
|
|
707
|
-
class LuTreeOptionPagerComponent extends ALuTreeOptionOperator {
|
|
708
|
-
constructor() {
|
|
709
|
-
super(...arguments);
|
|
710
|
-
this.paging$ = new BehaviorSubject(MAGIC_STEP);
|
|
711
|
-
}
|
|
712
|
-
set inOptions$(in$) {
|
|
713
|
-
this.outOptions$ = combineLatest(in$, this.paging$, (options, paging) => {
|
|
714
|
-
return this.trim(options, paging);
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
next() {
|
|
718
|
-
this.paging$.next(this.paging$.value + MAGIC_STEP);
|
|
719
|
-
}
|
|
720
|
-
onScrollBottom() {
|
|
721
|
-
this.next();
|
|
722
|
-
}
|
|
723
|
-
trim(trees = [], paging = MAGIC_STEP) {
|
|
724
|
-
const flat = this.flatten(trees);
|
|
725
|
-
const flatTrimmed = flat.slice(0, paging);
|
|
726
|
-
return this.filter(trees, flatTrimmed);
|
|
727
|
-
}
|
|
728
|
-
flatten(trees = []) {
|
|
729
|
-
return trees.map(t => [t.value, ...this.flatten(t.children)]).reduce((a, v) => [...a, ...v], []);
|
|
730
|
-
}
|
|
731
|
-
filter(trees = [], values) {
|
|
732
|
-
return trees.map(t => {
|
|
733
|
-
if (!values.some(v => v === t.value)) {
|
|
734
|
-
return undefined;
|
|
735
|
-
}
|
|
736
|
-
return Object.assign(Object.assign({}, t), { children: this.filter(t.children, values) });
|
|
737
|
-
}).filter(t => !!t);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
LuTreeOptionPagerComponent.decorators = [
|
|
741
|
-
{ type: Component, args: [{
|
|
742
|
-
selector: 'lu-tree-option-pager',
|
|
743
|
-
template: '',
|
|
744
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
745
|
-
providers: [
|
|
746
|
-
{
|
|
747
|
-
provide: ALuTreeOptionOperator,
|
|
748
|
-
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
749
|
-
multi: true,
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
provide: ALuOnScrollBottomSubscriber,
|
|
753
|
-
useExisting: forwardRef(() => LuTreeOptionPagerComponent),
|
|
754
|
-
multi: true,
|
|
755
|
-
},
|
|
756
|
-
]
|
|
757
|
-
},] }
|
|
758
|
-
];
|
|
759
|
-
|
|
760
|
-
class LuTreeOptionPagerModule {
|
|
761
|
-
}
|
|
762
|
-
LuTreeOptionPagerModule.decorators = [
|
|
763
|
-
{ type: NgModule, args: [{
|
|
764
|
-
imports: [],
|
|
765
|
-
declarations: [
|
|
766
|
-
LuTreeOptionPagerComponent,
|
|
767
|
-
],
|
|
768
|
-
exports: [
|
|
769
|
-
LuTreeOptionPagerComponent,
|
|
770
|
-
],
|
|
771
|
-
},] }
|
|
772
|
-
];
|
|
773
|
-
|
|
774
|
-
class LuOptionSearcherComponent extends ALuOptionOperator {
|
|
775
|
-
constructor() {
|
|
776
|
-
super(...arguments);
|
|
777
|
-
this.searchControl = new FormControl();
|
|
778
|
-
this.clue$ = merge(of(''), this.searchControl.valueChanges);
|
|
779
|
-
this.searchFn = () => true;
|
|
780
|
-
}
|
|
781
|
-
set inOptions$(in$) {
|
|
782
|
-
this.outOptions$ = combineLatest(in$, this.clue$, (options, clue) => {
|
|
783
|
-
return !!clue ? (options || []).filter(o => this.searchFn(o, clue)) : options || [];
|
|
784
|
-
});
|
|
785
|
-
this.empty$ = this.outOptions$.pipe(map(o => !o || o.length === 0));
|
|
786
|
-
}
|
|
787
|
-
onOpen() {
|
|
788
|
-
this.searchInput.nativeElement.focus();
|
|
789
|
-
this.searchControl.setValue('');
|
|
790
|
-
}
|
|
791
|
-
resetClue() {
|
|
792
|
-
this.searchControl.setValue('');
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
LuOptionSearcherComponent.decorators = [
|
|
796
|
-
{ type: Component, args: [{
|
|
797
|
-
selector: 'lu-option-searcher',
|
|
798
|
-
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>",
|
|
799
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
800
|
-
providers: [
|
|
801
|
-
{
|
|
802
|
-
provide: ALuOptionOperator,
|
|
803
|
-
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
804
|
-
multi: true,
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
provide: ALuOnOpenSubscriber,
|
|
808
|
-
useExisting: forwardRef(() => LuOptionSearcherComponent),
|
|
809
|
-
multi: true,
|
|
810
|
-
},
|
|
811
|
-
],
|
|
812
|
-
styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#fff;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:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}"]
|
|
813
|
-
},] }
|
|
814
|
-
];
|
|
815
|
-
LuOptionSearcherComponent.propDecorators = {
|
|
816
|
-
searchInput: [{ type: ViewChild, args: ['searchInput', { read: ElementRef, static: true },] }],
|
|
817
|
-
searchFn: [{ type: Input }]
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
const LU_OPTION_PLACEHOLDER_TRANSLATIONS = new InjectionToken('LuOptionPlaceholderTranslations');
|
|
821
|
-
|
|
822
|
-
class LuOptionPlaceholderIntl extends ALuIntl {
|
|
823
|
-
constructor(translations, locale) {
|
|
824
|
-
super(translations, locale);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
LuOptionPlaceholderIntl.decorators = [
|
|
828
|
-
{ type: Injectable }
|
|
829
|
-
];
|
|
830
|
-
LuOptionPlaceholderIntl.ctorParameters = () => [
|
|
831
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LU_OPTION_PLACEHOLDER_TRANSLATIONS,] }] },
|
|
832
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
|
|
833
|
-
];
|
|
834
|
-
|
|
835
|
-
class LuOptionPlaceholderComponent {
|
|
836
|
-
constructor(intl) {
|
|
837
|
-
this.intl = intl;
|
|
838
|
-
this.onClear = new EventEmitter();
|
|
839
|
-
}
|
|
840
|
-
clear() {
|
|
841
|
-
this.onClear.emit();
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
LuOptionPlaceholderComponent.decorators = [
|
|
845
|
-
{ type: Component, args: [{
|
|
846
|
-
selector: 'lu-option-placeholder',
|
|
847
|
-
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>",
|
|
848
|
-
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)}"]
|
|
849
|
-
},] }
|
|
850
|
-
];
|
|
851
|
-
LuOptionPlaceholderComponent.ctorParameters = () => [
|
|
852
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LuOptionPlaceholderIntl,] }] }
|
|
853
|
-
];
|
|
854
|
-
LuOptionPlaceholderComponent.propDecorators = {
|
|
855
|
-
onClear: [{ type: Output }]
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
class ALuOptionPlaceholderLabel {
|
|
859
|
-
}
|
|
860
|
-
const luOptionPlaceholderTranslations = {
|
|
861
|
-
en: {
|
|
862
|
-
placeholderDescription: 'No results match your search criteria.',
|
|
863
|
-
placeholderAction: 'Clear search',
|
|
864
|
-
},
|
|
865
|
-
fr: {
|
|
866
|
-
placeholderDescription: 'Aucun résultat pour votre recherche',
|
|
867
|
-
placeholderAction: 'Vider la recherche',
|
|
868
|
-
},
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
const ɵ0$2 = luOptionPlaceholderTranslations;
|
|
872
|
-
class LuOptionPlaceholderModule {
|
|
873
|
-
}
|
|
874
|
-
LuOptionPlaceholderModule.decorators = [
|
|
875
|
-
{ type: NgModule, args: [{
|
|
876
|
-
declarations: [
|
|
877
|
-
LuOptionPlaceholderComponent,
|
|
878
|
-
],
|
|
879
|
-
exports: [
|
|
880
|
-
LuOptionPlaceholderComponent,
|
|
881
|
-
],
|
|
882
|
-
providers: [
|
|
883
|
-
LuOptionPlaceholderIntl,
|
|
884
|
-
{ provide: LU_OPTION_PLACEHOLDER_TRANSLATIONS, useValue: ɵ0$2 },
|
|
885
|
-
]
|
|
886
|
-
},] }
|
|
887
|
-
];
|
|
888
|
-
|
|
889
|
-
class LuOptionSearcherModule {
|
|
890
|
-
}
|
|
891
|
-
LuOptionSearcherModule.decorators = [
|
|
892
|
-
{ type: NgModule, args: [{
|
|
893
|
-
imports: [
|
|
894
|
-
ReactiveFormsModule,
|
|
895
|
-
CommonModule,
|
|
896
|
-
LuOptionPlaceholderModule,
|
|
897
|
-
],
|
|
898
|
-
declarations: [
|
|
899
|
-
LuOptionSearcherComponent,
|
|
900
|
-
],
|
|
901
|
-
exports: [
|
|
902
|
-
LuOptionSearcherComponent,
|
|
903
|
-
],
|
|
904
|
-
},] }
|
|
905
|
-
];
|
|
906
|
-
|
|
907
|
-
class LuTreeOptionSearcherComponent extends ALuTreeOptionOperator {
|
|
908
|
-
constructor() {
|
|
909
|
-
super(...arguments);
|
|
910
|
-
this.searchControl = new FormControl();
|
|
911
|
-
this.clue$ = merge(of(''), this.searchControl.valueChanges);
|
|
912
|
-
this.searchFn = () => true;
|
|
913
|
-
}
|
|
914
|
-
set inOptions$(in$) {
|
|
915
|
-
this.outOptions$ = combineLatest(in$, this.clue$, (options, clue) => {
|
|
916
|
-
if (!clue) {
|
|
917
|
-
return options || [];
|
|
918
|
-
}
|
|
919
|
-
return this.trim(options, clue);
|
|
920
|
-
});
|
|
921
|
-
this.empty$ = this.outOptions$.pipe(map(o => !o || o.length === 0));
|
|
922
|
-
}
|
|
923
|
-
onOpen() {
|
|
924
|
-
this.searchInput.nativeElement.focus();
|
|
925
|
-
this.searchControl.setValue('');
|
|
926
|
-
}
|
|
927
|
-
trim(options, clue) {
|
|
928
|
-
return options.map(option => {
|
|
929
|
-
if (this.searchFn(option.value, clue)) {
|
|
930
|
-
return Object.assign({}, option);
|
|
931
|
-
}
|
|
932
|
-
const trimmedChildren = option.children ? this.trim(option.children, clue) : [];
|
|
933
|
-
if (trimmedChildren.length) {
|
|
934
|
-
return Object.assign(Object.assign({}, option), { children: trimmedChildren });
|
|
935
|
-
}
|
|
936
|
-
return undefined;
|
|
937
|
-
}).filter(o => !!o);
|
|
938
|
-
}
|
|
939
|
-
resetClue() {
|
|
940
|
-
this.searchControl.setValue('');
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
LuTreeOptionSearcherComponent.decorators = [
|
|
944
|
-
{ type: Component, args: [{
|
|
945
|
-
selector: 'lu-tree-option-searcher',
|
|
946
|
-
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>",
|
|
947
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
948
|
-
providers: [
|
|
949
|
-
{
|
|
950
|
-
provide: ALuTreeOptionOperator,
|
|
951
|
-
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
952
|
-
multi: true,
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
provide: ALuOnOpenSubscriber,
|
|
956
|
-
useExisting: forwardRef(() => LuTreeOptionSearcherComponent),
|
|
957
|
-
multi: true,
|
|
958
|
-
},
|
|
959
|
-
],
|
|
960
|
-
styles: [".textfield.mod-search{width:100%}.textfield-input{border-radius:0;box-shadow:none;background:#fff;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:var(--commons-divider-width) solid var(--commons-divider-color);background-color:#ebf0fa;background-color:var(--palettes-grey-50);font-style:italic}"]
|
|
961
|
-
},] }
|
|
962
|
-
];
|
|
963
|
-
LuTreeOptionSearcherComponent.propDecorators = {
|
|
964
|
-
searchInput: [{ type: ViewChild, args: ['searchInput', { read: ElementRef, static: true },] }],
|
|
965
|
-
searchFn: [{ type: Input }]
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
class LuTreeOptionSearcherModule {
|
|
969
|
-
}
|
|
970
|
-
LuTreeOptionSearcherModule.decorators = [
|
|
971
|
-
{ type: NgModule, args: [{
|
|
972
|
-
imports: [
|
|
973
|
-
ReactiveFormsModule,
|
|
974
|
-
CommonModule,
|
|
975
|
-
LuOptionPlaceholderModule,
|
|
976
|
-
],
|
|
977
|
-
declarations: [
|
|
978
|
-
LuTreeOptionSearcherComponent,
|
|
979
|
-
],
|
|
980
|
-
exports: [
|
|
981
|
-
LuTreeOptionSearcherComponent,
|
|
982
|
-
],
|
|
983
|
-
},] }
|
|
984
|
-
];
|
|
985
|
-
|
|
986
|
-
class LuForGroupContext {
|
|
987
|
-
constructor($implicit, index, count) {
|
|
988
|
-
this.$implicit = $implicit;
|
|
989
|
-
this.index = index;
|
|
990
|
-
this.count = count;
|
|
991
|
-
}
|
|
992
|
-
get first() { return this.index === 0; }
|
|
993
|
-
get last() { return this.index === this.count - 1; }
|
|
994
|
-
get even() { return this.index % 2 === 0; }
|
|
995
|
-
get odd() { return !this.even; }
|
|
996
|
-
}
|
|
997
|
-
class LuForGroupsDirective {
|
|
998
|
-
constructor(_vcr, _cdr, _templateRef) {
|
|
999
|
-
this._vcr = _vcr;
|
|
1000
|
-
this._cdr = _cdr;
|
|
1001
|
-
this._templateRef = _templateRef;
|
|
1002
|
-
this._subs = new Subscription();
|
|
1003
|
-
}
|
|
1004
|
-
set attrGroupBy(fn) {
|
|
1005
|
-
this._groupByFn = fn;
|
|
1006
|
-
}
|
|
1007
|
-
set inOptions$(options$) {
|
|
1008
|
-
this._subs.add(options$.subscribe(options => this.render(options)));
|
|
1009
|
-
this.outOptions$ = options$;
|
|
1010
|
-
}
|
|
1011
|
-
ngOnDestroy() {
|
|
1012
|
-
this._subs.unsubscribe();
|
|
1013
|
-
}
|
|
1014
|
-
render(options) {
|
|
1015
|
-
this._vcr.clear();
|
|
1016
|
-
const count = options.length;
|
|
1017
|
-
const groups = this.groupBy(options);
|
|
1018
|
-
groups.forEach((group, index) => {
|
|
1019
|
-
const view = this._vcr.createEmbeddedView(this._templateRef, new LuForGroupContext(group, index, count));
|
|
1020
|
-
});
|
|
1021
|
-
this._cdr.markForCheck();
|
|
1022
|
-
}
|
|
1023
|
-
groupBy(items) {
|
|
1024
|
-
const groups = [];
|
|
1025
|
-
items.forEach((item) => {
|
|
1026
|
-
const key = this._groupByFn(item);
|
|
1027
|
-
let group = groups.find(g => g.key === key);
|
|
1028
|
-
if (!group) {
|
|
1029
|
-
group = { key: key, items: [] };
|
|
1030
|
-
groups.push(group);
|
|
1031
|
-
}
|
|
1032
|
-
group.items.push(item);
|
|
1033
|
-
});
|
|
1034
|
-
return groups;
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
LuForGroupsDirective.decorators = [
|
|
1038
|
-
{ type: Directive, args: [{
|
|
1039
|
-
selector: '[luForGroups]',
|
|
1040
|
-
providers: [
|
|
1041
|
-
{
|
|
1042
|
-
provide: ALuOptionOperator,
|
|
1043
|
-
useExisting: forwardRef(() => LuForGroupsDirective),
|
|
1044
|
-
multi: true,
|
|
1045
|
-
},
|
|
1046
|
-
],
|
|
1047
|
-
},] }
|
|
1048
|
-
];
|
|
1049
|
-
LuForGroupsDirective.ctorParameters = () => [
|
|
1050
|
-
{ type: ViewContainerRef },
|
|
1051
|
-
{ type: ChangeDetectorRef },
|
|
1052
|
-
{ type: TemplateRef }
|
|
1053
|
-
];
|
|
1054
|
-
LuForGroupsDirective.propDecorators = {
|
|
1055
|
-
attrGroupBy: [{ type: Input, args: ['luForGroupsGroupBy',] }]
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
class LuForGroupsModule {
|
|
1059
|
-
}
|
|
1060
|
-
LuForGroupsModule.decorators = [
|
|
1061
|
-
{ type: NgModule, args: [{
|
|
1062
|
-
imports: [],
|
|
1063
|
-
declarations: [
|
|
1064
|
-
LuForGroupsDirective,
|
|
1065
|
-
],
|
|
1066
|
-
exports: [
|
|
1067
|
-
LuForGroupsDirective,
|
|
1068
|
-
],
|
|
1069
|
-
},] }
|
|
1070
|
-
];
|
|
1071
|
-
|
|
1072
|
-
class LuForOptionsDirective extends NgForOf {
|
|
1073
|
-
constructor(_viewContainer, _template, _differs, _changeDetectionRef) {
|
|
1074
|
-
super(_viewContainer, _template, _differs);
|
|
1075
|
-
this._changeDetectionRef = _changeDetectionRef;
|
|
1076
|
-
this._subs = new Subscription();
|
|
1077
|
-
}
|
|
1078
|
-
set inOptions$(options$) {
|
|
1079
|
-
this._subs.add(options$.subscribe(options => {
|
|
1080
|
-
this.ngForOf = options;
|
|
1081
|
-
this._changeDetectionRef.markForCheck();
|
|
1082
|
-
}));
|
|
1083
|
-
this.outOptions$ = options$;
|
|
1084
|
-
}
|
|
1085
|
-
set luForOptionsTrackBy(fn) {
|
|
1086
|
-
this.ngForTrackBy = fn;
|
|
1087
|
-
}
|
|
1088
|
-
ngOnDestroy() {
|
|
1089
|
-
this._subs.unsubscribe();
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
LuForOptionsDirective.decorators = [
|
|
1093
|
-
{ type: Directive, args: [{
|
|
1094
|
-
selector: '[luForOptions]',
|
|
1095
|
-
providers: [
|
|
1096
|
-
{
|
|
1097
|
-
provide: ALuOptionOperator,
|
|
1098
|
-
useExisting: forwardRef(() => LuForOptionsDirective),
|
|
1099
|
-
multi: true,
|
|
1100
|
-
},
|
|
1101
|
-
],
|
|
1102
|
-
},] }
|
|
1103
|
-
];
|
|
1104
|
-
LuForOptionsDirective.ctorParameters = () => [
|
|
1105
|
-
{ type: ViewContainerRef },
|
|
1106
|
-
{ type: TemplateRef },
|
|
1107
|
-
{ type: IterableDiffers },
|
|
1108
|
-
{ type: ChangeDetectorRef }
|
|
1109
|
-
];
|
|
1110
|
-
LuForOptionsDirective.propDecorators = {
|
|
1111
|
-
luForOptionsTrackBy: [{ type: Input }]
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
class LuForOptionsModule {
|
|
1115
|
-
}
|
|
1116
|
-
LuForOptionsModule.decorators = [
|
|
1117
|
-
{ type: NgModule, args: [{
|
|
1118
|
-
imports: [],
|
|
1119
|
-
declarations: [
|
|
1120
|
-
LuForOptionsDirective,
|
|
1121
|
-
],
|
|
1122
|
-
exports: [
|
|
1123
|
-
LuForOptionsDirective,
|
|
1124
|
-
],
|
|
1125
|
-
},] }
|
|
1126
|
-
];
|
|
1127
|
-
|
|
1128
|
-
class LuForTreeOptionsDirective extends LuForOptionsDirective {
|
|
1129
|
-
}
|
|
1130
|
-
LuForTreeOptionsDirective.decorators = [
|
|
1131
|
-
{ type: Directive, args: [{
|
|
1132
|
-
selector: '[luForTreeOptions]',
|
|
1133
|
-
providers: [
|
|
1134
|
-
{
|
|
1135
|
-
provide: ALuTreeOptionOperator,
|
|
1136
|
-
useExisting: forwardRef(() => LuForTreeOptionsDirective),
|
|
1137
|
-
multi: true,
|
|
1138
|
-
},
|
|
1139
|
-
],
|
|
1140
|
-
},] }
|
|
1141
|
-
];
|
|
1142
|
-
|
|
1143
|
-
class LuForTreeOptionsModule {
|
|
1144
|
-
}
|
|
1145
|
-
LuForTreeOptionsModule.decorators = [
|
|
1146
|
-
{ type: NgModule, args: [{
|
|
1147
|
-
imports: [],
|
|
1148
|
-
declarations: [
|
|
1149
|
-
LuForTreeOptionsDirective,
|
|
1150
|
-
],
|
|
1151
|
-
exports: [
|
|
1152
|
-
LuForTreeOptionsDirective,
|
|
1153
|
-
],
|
|
1154
|
-
},] }
|
|
1155
|
-
];
|
|
1156
|
-
|
|
1157
|
-
class LuOptionOperatorModule {
|
|
1158
|
-
}
|
|
1159
|
-
LuOptionOperatorModule.decorators = [
|
|
1160
|
-
{ type: NgModule, args: [{
|
|
1161
|
-
imports: [
|
|
1162
|
-
LuOptionPagerModule,
|
|
1163
|
-
LuOptionFeederModule,
|
|
1164
|
-
LuOptionSearcherModule,
|
|
1165
|
-
LuForOptionsModule,
|
|
1166
|
-
LuForGroupsModule,
|
|
1167
|
-
],
|
|
1168
|
-
exports: [
|
|
1169
|
-
LuOptionPagerModule,
|
|
1170
|
-
LuOptionFeederModule,
|
|
1171
|
-
LuOptionSearcherModule,
|
|
1172
|
-
LuForOptionsModule,
|
|
1173
|
-
LuForGroupsModule,
|
|
1174
|
-
],
|
|
1175
|
-
},] }
|
|
1176
|
-
];
|
|
1177
|
-
|
|
1178
|
-
class LuTreeOptionOperatorModule {
|
|
1179
|
-
}
|
|
1180
|
-
LuTreeOptionOperatorModule.decorators = [
|
|
1181
|
-
{ type: NgModule, args: [{
|
|
1182
|
-
imports: [
|
|
1183
|
-
LuTreeOptionFeederModule,
|
|
1184
|
-
LuForTreeOptionsModule,
|
|
1185
|
-
LuTreeOptionPagerModule,
|
|
1186
|
-
LuTreeOptionSearcherModule,
|
|
1187
|
-
],
|
|
1188
|
-
exports: [
|
|
1189
|
-
LuTreeOptionFeederModule,
|
|
1190
|
-
LuForTreeOptionsModule,
|
|
1191
|
-
LuTreeOptionPagerModule,
|
|
1192
|
-
LuTreeOptionSearcherModule,
|
|
1193
|
-
],
|
|
1194
|
-
},] }
|
|
1195
|
-
];
|
|
1196
|
-
|
|
1197
|
-
class ALuOptionSelector {
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
const LU_OPTION_SELECT_ALL_TRANSLATIONS = new InjectionToken('LuOptionSelectAllTranslations');
|
|
1201
|
-
|
|
1202
|
-
class LuOptionSelectAllIntl extends ALuIntl {
|
|
1203
|
-
constructor(translations, locale) {
|
|
1204
|
-
super(translations, locale);
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
LuOptionSelectAllIntl.decorators = [
|
|
1208
|
-
{ type: Injectable }
|
|
1209
|
-
];
|
|
1210
|
-
LuOptionSelectAllIntl.ctorParameters = () => [
|
|
1211
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LU_OPTION_SELECT_ALL_TRANSLATIONS,] }] },
|
|
1212
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
|
|
1213
|
-
];
|
|
1214
|
-
|
|
1215
|
-
class LuOptionSelectAllComponent extends ALuOptionOperator {
|
|
1216
|
-
constructor(intl) {
|
|
1217
|
-
super();
|
|
1218
|
-
this.intl = intl;
|
|
1219
|
-
this.multiple = true;
|
|
1220
|
-
this.onSelectValue = new Subject();
|
|
1221
|
-
this.fixed = true;
|
|
1222
|
-
}
|
|
1223
|
-
set inOptions$(in$) {
|
|
1224
|
-
this.outOptions$ = in$.pipe(tap(options => this.options = options));
|
|
1225
|
-
}
|
|
1226
|
-
selectAll() {
|
|
1227
|
-
this.onSelectValue.next([...this.options]);
|
|
1228
|
-
}
|
|
1229
|
-
deselectAll() {
|
|
1230
|
-
this.onSelectValue.next([]);
|
|
1231
|
-
}
|
|
1232
|
-
setValue(values) {
|
|
1233
|
-
this._values = values;
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
LuOptionSelectAllComponent.decorators = [
|
|
1237
|
-
{ type: Component, args: [{
|
|
1238
|
-
selector: 'lu-option-select-all',
|
|
1239
|
-
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>",
|
|
1240
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1241
|
-
providers: [
|
|
1242
|
-
{
|
|
1243
|
-
provide: ALuOptionOperator,
|
|
1244
|
-
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1245
|
-
multi: true,
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
provide: ALuOptionSelector,
|
|
1249
|
-
useExisting: forwardRef(() => LuOptionSelectAllComponent),
|
|
1250
|
-
multi: true,
|
|
1251
|
-
},
|
|
1252
|
-
],
|
|
1253
|
-
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)}"]
|
|
1254
|
-
},] }
|
|
1255
|
-
];
|
|
1256
|
-
LuOptionSelectAllComponent.ctorParameters = () => [
|
|
1257
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LuOptionSelectAllIntl,] }] }
|
|
1258
|
-
];
|
|
1259
|
-
LuOptionSelectAllComponent.propDecorators = {
|
|
1260
|
-
fixed: [{ type: HostBinding, args: ['class.position-fixed',] }]
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
class ALuOptionSelectAllLabel {
|
|
1264
|
-
}
|
|
1265
|
-
const luOptionSelectAllTranslations = {
|
|
1266
|
-
en: {
|
|
1267
|
-
select: 'Select all',
|
|
1268
|
-
deselect: 'Deselect all',
|
|
1269
|
-
},
|
|
1270
|
-
fr: {
|
|
1271
|
-
select: 'Tout sélectionner',
|
|
1272
|
-
deselect: 'Tout Déselectionner'
|
|
1273
|
-
},
|
|
1274
|
-
de: {
|
|
1275
|
-
select: 'Alle auswählen',
|
|
1276
|
-
deselect: 'Alle abwählen'
|
|
1277
|
-
},
|
|
1278
|
-
pt: {
|
|
1279
|
-
select: 'Selecionar tudo',
|
|
1280
|
-
deselect: 'Desselecionar tudo'
|
|
1281
|
-
},
|
|
1282
|
-
es: {
|
|
1283
|
-
select: 'Seleccionar todo',
|
|
1284
|
-
deselect: 'Desmarcar todo'
|
|
1285
|
-
},
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
const ɵ0$1 = luOptionSelectAllTranslations;
|
|
1289
|
-
class LuOptionSelectAllModule {
|
|
1290
|
-
}
|
|
1291
|
-
LuOptionSelectAllModule.decorators = [
|
|
1292
|
-
{ type: NgModule, args: [{
|
|
1293
|
-
declarations: [
|
|
1294
|
-
LuOptionSelectAllComponent,
|
|
1295
|
-
],
|
|
1296
|
-
exports: [
|
|
1297
|
-
LuOptionSelectAllComponent,
|
|
1298
|
-
],
|
|
1299
|
-
providers: [
|
|
1300
|
-
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: ɵ0$1 },
|
|
1301
|
-
LuOptionSelectAllIntl,
|
|
1302
|
-
]
|
|
1303
|
-
},] }
|
|
1304
|
-
];
|
|
1305
|
-
|
|
1306
|
-
class ALuTreeOptionSelector extends ALuOptionSelector {
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
class LuTreeOptionSelectAllComponent extends ALuTreeOptionOperator {
|
|
1310
|
-
constructor(intl) {
|
|
1311
|
-
super();
|
|
1312
|
-
this.intl = intl;
|
|
1313
|
-
this.multiple = true;
|
|
1314
|
-
this.onSelectValue = new Subject();
|
|
1315
|
-
this.fixed = true;
|
|
1316
|
-
}
|
|
1317
|
-
set inOptions$(in$) {
|
|
1318
|
-
this.outOptions$ = in$.pipe(tap(options => this.flatOptions = this.flattenTree(options)));
|
|
1319
|
-
}
|
|
1320
|
-
selectAll() {
|
|
1321
|
-
this.onSelectValue.next([...this.flatOptions]);
|
|
1322
|
-
}
|
|
1323
|
-
deselectAll() {
|
|
1324
|
-
this.onSelectValue.next([]);
|
|
1325
|
-
}
|
|
1326
|
-
setValue(values) {
|
|
1327
|
-
this._values = values;
|
|
1328
|
-
}
|
|
1329
|
-
flattenTree(tree = []) {
|
|
1330
|
-
return tree
|
|
1331
|
-
.map(t => [t.value, ...this.flattenTree(t.children)])
|
|
1332
|
-
.reduce((agg, cur) => [...agg, ...cur], []);
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
LuTreeOptionSelectAllComponent.decorators = [
|
|
1336
|
-
{ type: Component, args: [{
|
|
1337
|
-
selector: 'lu-tree-option-select-all',
|
|
1338
|
-
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>",
|
|
1339
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1340
|
-
providers: [
|
|
1341
|
-
{
|
|
1342
|
-
provide: ALuTreeOptionOperator,
|
|
1343
|
-
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1344
|
-
multi: true,
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
provide: ALuTreeOptionSelector,
|
|
1348
|
-
useExisting: forwardRef(() => LuTreeOptionSelectAllComponent),
|
|
1349
|
-
multi: true,
|
|
1350
|
-
},
|
|
1351
|
-
],
|
|
1352
|
-
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)}"]
|
|
1353
|
-
},] }
|
|
1354
|
-
];
|
|
1355
|
-
LuTreeOptionSelectAllComponent.ctorParameters = () => [
|
|
1356
|
-
{ type: undefined, decorators: [{ type: Inject, args: [LuOptionSelectAllIntl,] }] }
|
|
1357
|
-
];
|
|
1358
|
-
LuTreeOptionSelectAllComponent.propDecorators = {
|
|
1359
|
-
fixed: [{ type: HostBinding, args: ['class.position-fixed',] }]
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
const ɵ0 = luOptionSelectAllTranslations;
|
|
1363
|
-
class LuTreeOptionSelectAllModule {
|
|
1364
|
-
}
|
|
1365
|
-
LuTreeOptionSelectAllModule.decorators = [
|
|
1366
|
-
{ type: NgModule, args: [{
|
|
1367
|
-
declarations: [
|
|
1368
|
-
LuTreeOptionSelectAllComponent,
|
|
1369
|
-
],
|
|
1370
|
-
exports: [
|
|
1371
|
-
LuTreeOptionSelectAllComponent,
|
|
1372
|
-
],
|
|
1373
|
-
providers: [
|
|
1374
|
-
{ provide: LU_OPTION_SELECT_ALL_TRANSLATIONS, useValue: ɵ0 },
|
|
1375
|
-
LuOptionSelectAllIntl,
|
|
1376
|
-
]
|
|
1377
|
-
},] }
|
|
1378
|
-
];
|
|
1379
|
-
|
|
1380
|
-
class LuOptionSelectorModule {
|
|
1381
|
-
}
|
|
1382
|
-
LuOptionSelectorModule.decorators = [
|
|
1383
|
-
{ type: NgModule, args: [{
|
|
1384
|
-
imports: [
|
|
1385
|
-
LuOptionSelectAllModule,
|
|
1386
|
-
],
|
|
1387
|
-
exports: [
|
|
1388
|
-
LuOptionSelectAllModule,
|
|
1389
|
-
],
|
|
1390
|
-
},] }
|
|
1391
|
-
];
|
|
1392
|
-
|
|
1393
|
-
class LuTreeOptionSelectorModule {
|
|
1394
|
-
}
|
|
1395
|
-
LuTreeOptionSelectorModule.decorators = [
|
|
1396
|
-
{ type: NgModule, args: [{
|
|
1397
|
-
imports: [
|
|
1398
|
-
LuTreeOptionSelectAllModule,
|
|
1399
|
-
],
|
|
1400
|
-
exports: [
|
|
1401
|
-
LuTreeOptionSelectAllModule,
|
|
1402
|
-
],
|
|
1403
|
-
},] }
|
|
1404
|
-
];
|
|
1405
|
-
|
|
1406
|
-
class ALuOptionPickerAdvancedComponent extends ALuOptionPickerComponent {
|
|
1407
|
-
constructor(_changeDetectorRef) {
|
|
1408
|
-
super(_changeDetectorRef);
|
|
1409
|
-
this._operators = [];
|
|
1410
|
-
this._onOpenSubscribers = [];
|
|
1411
|
-
this._onCloseSubscribers = [];
|
|
1412
|
-
this._onScrollBottomSubscribers = [];
|
|
1413
|
-
this._selectors = [];
|
|
1414
|
-
}
|
|
1415
|
-
set operatorsQL(ql) {
|
|
1416
|
-
this._operatorsQL = ql;
|
|
1417
|
-
}
|
|
1418
|
-
set onOpenSubsQL(ql) {
|
|
1419
|
-
this._onOpenSubscribers = ql.toArray();
|
|
1420
|
-
}
|
|
1421
|
-
set onCloseSubsQL(ql) {
|
|
1422
|
-
this._onCloseSubscribers = ql.toArray();
|
|
1423
|
-
}
|
|
1424
|
-
set onScrollBottomSubsQL(ql) {
|
|
1425
|
-
this._onScrollBottomSubscribers = ql.toArray();
|
|
1426
|
-
}
|
|
1427
|
-
set selectorsQL(ql) {
|
|
1428
|
-
this._selectorsQL = ql;
|
|
1429
|
-
}
|
|
1430
|
-
onScrollBottom() {
|
|
1431
|
-
this._onScrollBottomSubscribers.forEach(o => {
|
|
1432
|
-
if (!o.onScrollBottom) {
|
|
1433
|
-
return;
|
|
1434
|
-
}
|
|
1435
|
-
o.onScrollBottom();
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
onOpen() {
|
|
1439
|
-
this._onOpenSubscribers.forEach(o => {
|
|
1440
|
-
o.onOpen();
|
|
1441
|
-
});
|
|
1442
|
-
const operators = this._operators || [];
|
|
1443
|
-
const lastOperator = operators[operators.length - 1];
|
|
1444
|
-
if (lastOperator && lastOperator.outOptions$) {
|
|
1445
|
-
this.loading$ = lastOperator.outOptions$.pipe(first(), mapTo(false), startWith(true), shareReplay());
|
|
1446
|
-
}
|
|
1447
|
-
super.onOpen();
|
|
1448
|
-
}
|
|
1449
|
-
onClose() {
|
|
1450
|
-
this._onCloseSubscribers.forEach(o => {
|
|
1451
|
-
o.onClose();
|
|
1452
|
-
});
|
|
1453
|
-
super.onClose();
|
|
1454
|
-
}
|
|
1455
|
-
setValue(value) {
|
|
1456
|
-
super.setValue(value);
|
|
1457
|
-
this._selectors.forEach(s => s.setValue(value));
|
|
1458
|
-
}
|
|
1459
|
-
initOperators() {
|
|
1460
|
-
const operators = this._operatorsQL.toArray();
|
|
1461
|
-
this._operators = operators;
|
|
1462
|
-
let options$;
|
|
1463
|
-
operators.forEach(operator => {
|
|
1464
|
-
operator.inOptions$ = options$;
|
|
1465
|
-
options$ = operator.outOptions$;
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
initSelectors() {
|
|
1469
|
-
const selectors$ = this._selectorsQL.changes.pipe(startWith(this._selectorsQL.toArray()));
|
|
1470
|
-
this._subs.add(selectors$.subscribe(selectors => {
|
|
1471
|
-
this._selectors = selectors;
|
|
1472
|
-
this._subs.add(merge(this._selectors.map(s => s.onSelectValue)).pipe(mergeAll()).subscribe(values => {
|
|
1473
|
-
this._select(values);
|
|
1474
|
-
}));
|
|
1475
|
-
}));
|
|
1476
|
-
}
|
|
1477
|
-
ngAfterViewInit() {
|
|
1478
|
-
super.ngAfterViewInit();
|
|
1479
|
-
this.initOperators();
|
|
1480
|
-
this.initSelectors();
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
ALuOptionPickerAdvancedComponent.decorators = [
|
|
1484
|
-
{ type: Directive }
|
|
1485
|
-
];
|
|
1486
|
-
ALuOptionPickerAdvancedComponent.ctorParameters = () => [
|
|
1487
|
-
{ type: ChangeDetectorRef }
|
|
1488
|
-
];
|
|
1489
|
-
ALuOptionPickerAdvancedComponent.propDecorators = {
|
|
1490
|
-
operatorsQL: [{ type: ContentChildren, args: [ALuOptionOperator, { descendants: true },] }],
|
|
1491
|
-
onOpenSubsQL: [{ type: ContentChildren, args: [ALuOnOpenSubscriber, { descendants: true },] }],
|
|
1492
|
-
onCloseSubsQL: [{ type: ContentChildren, args: [ALuOnCloseSubscriber, { descendants: true },] }],
|
|
1493
|
-
onScrollBottomSubsQL: [{ type: ContentChildren, args: [ALuOnScrollBottomSubscriber, { descendants: true },] }],
|
|
1494
|
-
selectorsQL: [{ type: ContentChildren, args: [ALuOptionSelector, { descendants: true },] }]
|
|
1495
|
-
};
|
|
1496
|
-
/**
|
|
1497
|
-
* advanced option picker panel
|
|
1498
|
-
*/
|
|
1499
|
-
class LuOptionPickerAdvancedComponent extends ALuOptionPickerAdvancedComponent {
|
|
1500
|
-
constructor(_changeDetectorRef) {
|
|
1501
|
-
super(_changeDetectorRef);
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
LuOptionPickerAdvancedComponent.decorators = [
|
|
1505
|
-
{ type: Component, args: [{
|
|
1506
|
-
selector: 'lu-option-picker-advanced',
|
|
1507
|
-
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",
|
|
1508
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1509
|
-
animations: [luTransformPopover],
|
|
1510
|
-
exportAs: 'LuOptionPicker',
|
|
1511
|
-
providers: [
|
|
1512
|
-
{
|
|
1513
|
-
provide: ALuPickerPanel,
|
|
1514
|
-
useExisting: forwardRef(() => LuOptionPickerAdvancedComponent),
|
|
1515
|
-
},
|
|
1516
|
-
],
|
|
1517
|
-
styles: [""]
|
|
1518
|
-
},] }
|
|
1519
|
-
];
|
|
1520
|
-
LuOptionPickerAdvancedComponent.ctorParameters = () => [
|
|
1521
|
-
{ type: ChangeDetectorRef }
|
|
1522
|
-
];
|
|
1523
|
-
|
|
1524
|
-
class LuOptionPickerModule {
|
|
1525
|
-
}
|
|
1526
|
-
LuOptionPickerModule.decorators = [
|
|
1527
|
-
{ type: NgModule, args: [{
|
|
1528
|
-
imports: [
|
|
1529
|
-
CommonModule,
|
|
1530
|
-
OverlayModule,
|
|
1531
|
-
LuOptionItemModule,
|
|
1532
|
-
LuScrollModule,
|
|
1533
|
-
A11yModule,
|
|
1534
|
-
],
|
|
1535
|
-
declarations: [
|
|
1536
|
-
LuOptionPickerComponent,
|
|
1537
|
-
LuOptionPickerAdvancedComponent,
|
|
1538
|
-
],
|
|
1539
|
-
exports: [
|
|
1540
|
-
LuOptionPickerComponent,
|
|
1541
|
-
LuOptionPickerAdvancedComponent,
|
|
1542
|
-
],
|
|
1543
|
-
},] }
|
|
1544
|
-
];
|
|
1545
|
-
|
|
1546
|
-
var ToggleMode;
|
|
1547
|
-
(function (ToggleMode) {
|
|
1548
|
-
ToggleMode[ToggleMode["all"] = 0] = "all";
|
|
1549
|
-
ToggleMode[ToggleMode["self"] = 1] = "self";
|
|
1550
|
-
ToggleMode[ToggleMode["children"] = 2] = "children";
|
|
1551
|
-
})(ToggleMode || (ToggleMode = {}));
|
|
1552
|
-
class ALuTreeOptionPickerComponent extends ALuOptionPickerComponent {
|
|
1553
|
-
constructor(_changeDetectorRef) {
|
|
1554
|
-
super(_changeDetectorRef);
|
|
1555
|
-
}
|
|
1556
|
-
set optionsQL(ql) {
|
|
1557
|
-
this._optionsQL = ql;
|
|
1558
|
-
}
|
|
1559
|
-
set _options$(optionItems$) {
|
|
1560
|
-
// reapply selected when the options change
|
|
1561
|
-
this._subs.add(optionItems$
|
|
1562
|
-
.subscribe(o => this._applySelected()));
|
|
1563
|
-
// subscribe to any option.onSelect
|
|
1564
|
-
const singleFlowSelect$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelect))));
|
|
1565
|
-
const singleFlowSelectSelf$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelectSelf))));
|
|
1566
|
-
const singleFlowSelectChildren$ = optionItems$.pipe(switchMap(items => merge(...items.map(i => i.onSelectChildren))));
|
|
1567
|
-
this._subs.add(singleFlowSelect$
|
|
1568
|
-
.subscribe(option => this._toggle(option, ToggleMode.all)));
|
|
1569
|
-
this._subs.add(singleFlowSelectSelf$
|
|
1570
|
-
.subscribe(option => this._toggle(option, ToggleMode.self)));
|
|
1571
|
-
this._subs.add(singleFlowSelectChildren$
|
|
1572
|
-
.subscribe(option => this._toggle(option, ToggleMode.children)));
|
|
1573
|
-
}
|
|
1574
|
-
_toggle(option, mod = ToggleMode.all) {
|
|
1575
|
-
switch (mod) {
|
|
1576
|
-
case ToggleMode.self:
|
|
1577
|
-
return this._toggleSelf(option);
|
|
1578
|
-
case ToggleMode.children:
|
|
1579
|
-
return this._toggleChildren(option);
|
|
1580
|
-
case ToggleMode.self:
|
|
1581
|
-
default:
|
|
1582
|
-
return this._toggleAll(option);
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
_toggleAll(option) {
|
|
1586
|
-
const value = option.value;
|
|
1587
|
-
if (!this.multiple) {
|
|
1588
|
-
this._select(value);
|
|
1589
|
-
return;
|
|
1590
|
-
}
|
|
1591
|
-
const allChildren = option.allChildren.map(i => i.value);
|
|
1592
|
-
const values = this._value || [];
|
|
1593
|
-
let newValues;
|
|
1594
|
-
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1595
|
-
const allChildrenSelected = allChildren.every(child => values.some(v => this.optionComparer(v, child)));
|
|
1596
|
-
if (selfSelected && allChildrenSelected) {
|
|
1597
|
-
// remove option and its children
|
|
1598
|
-
newValues = this._remove(values, [value, ...allChildren]);
|
|
1599
|
-
}
|
|
1600
|
-
else {
|
|
1601
|
-
// add option and its children
|
|
1602
|
-
newValues = this._add(values, [value, ...allChildren]);
|
|
1603
|
-
}
|
|
1604
|
-
this._select(newValues);
|
|
1605
|
-
}
|
|
1606
|
-
_toggleSelf(option) {
|
|
1607
|
-
const value = option.value;
|
|
1608
|
-
if (!this.multiple) {
|
|
1609
|
-
this._select(value);
|
|
1610
|
-
return;
|
|
1611
|
-
}
|
|
1612
|
-
const allChildren = option.allChildren.map(i => i.value);
|
|
1613
|
-
const values = this._value || [];
|
|
1614
|
-
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1615
|
-
const someChildSelected = allChildren.some(child => values.some(v => this.optionComparer(v, child)));
|
|
1616
|
-
let newValues = this._remove(values, [...allChildren]);
|
|
1617
|
-
if (selfSelected && !someChildSelected) {
|
|
1618
|
-
// remove option
|
|
1619
|
-
newValues = this._remove(newValues, [value]);
|
|
1620
|
-
}
|
|
1621
|
-
else {
|
|
1622
|
-
// add option
|
|
1623
|
-
newValues = this._add(newValues, [value]);
|
|
1624
|
-
}
|
|
1625
|
-
this._select(newValues);
|
|
1626
|
-
}
|
|
1627
|
-
_toggleChildren(option) {
|
|
1628
|
-
const value = option.value;
|
|
1629
|
-
if (!this.multiple) {
|
|
1630
|
-
this._select(value);
|
|
1631
|
-
return;
|
|
1632
|
-
}
|
|
1633
|
-
const allChildren = option.allChildren.map(i => i.value);
|
|
1634
|
-
const values = this._value || [];
|
|
1635
|
-
const selfSelected = values.some(v => this.optionComparer(v, value));
|
|
1636
|
-
let newValues = this._remove(values, [value]);
|
|
1637
|
-
const allChildrenSelected = allChildren.every(child => values.some(v => this.optionComparer(v, child)));
|
|
1638
|
-
if (allChildrenSelected && !selfSelected) {
|
|
1639
|
-
newValues = this._remove(newValues, allChildren);
|
|
1640
|
-
}
|
|
1641
|
-
else {
|
|
1642
|
-
newValues = this._add(newValues, allChildren);
|
|
1643
|
-
}
|
|
1644
|
-
this._select(newValues);
|
|
1645
|
-
}
|
|
1646
|
-
_add(values, entries) {
|
|
1647
|
-
const newEntries = entries.filter(entry => !values.some(v => this.optionComparer(v, entry)));
|
|
1648
|
-
return [...values, ...newEntries];
|
|
1649
|
-
}
|
|
1650
|
-
_remove(values, entries) {
|
|
1651
|
-
const entriesToKeep = values.filter(value => !entries.some(e => this.optionComparer(e, value)));
|
|
1652
|
-
return [...entriesToKeep];
|
|
1653
|
-
}
|
|
1654
|
-
initItems() {
|
|
1655
|
-
const items$ = this._optionsQL.changes
|
|
1656
|
-
.pipe(startWith(this._optionsQL), map(q => q.toArray()), map(roots => roots.map(r => [r, ...r.allChildren]).reduce((agg, val) => [...agg, ...val], [])), delay(0));
|
|
1657
|
-
this._subs.add(items$.subscribe(o => this._options = o || []));
|
|
1658
|
-
this._options$ = items$;
|
|
1659
|
-
}
|
|
1660
|
-
ngAfterViewInit() {
|
|
1661
|
-
this.initItems();
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
ALuTreeOptionPickerComponent.decorators = [
|
|
1665
|
-
{ type: Directive }
|
|
1666
|
-
];
|
|
1667
|
-
ALuTreeOptionPickerComponent.ctorParameters = () => [
|
|
1668
|
-
{ type: ChangeDetectorRef }
|
|
1669
|
-
];
|
|
1670
|
-
ALuTreeOptionPickerComponent.propDecorators = {
|
|
1671
|
-
optionsQL: [{ type: ContentChildren, args: [ALuTreeOptionItem, { descendants: true },] }],
|
|
1672
|
-
optionsQLVR: [{ type: ContentChildren, args: [ALuTreeOptionItem, { descendants: true, read: ViewContainerRef },] }]
|
|
1673
|
-
};
|
|
1674
|
-
/**
|
|
1675
|
-
* basic tree option picker panel
|
|
1676
|
-
*/
|
|
1677
|
-
class LuTreeOptionPickerComponent extends ALuTreeOptionPickerComponent {
|
|
1678
|
-
constructor(_changeDetectorRef) {
|
|
1679
|
-
super(_changeDetectorRef);
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
LuTreeOptionPickerComponent.decorators = [
|
|
1683
|
-
{ type: Component, args: [{
|
|
1684
|
-
selector: 'lu-tree-option-picker',
|
|
1685
|
-
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",
|
|
1686
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1687
|
-
animations: [luTransformPopover],
|
|
1688
|
-
exportAs: 'LuTreeOptionPicker',
|
|
1689
|
-
providers: [
|
|
1690
|
-
{
|
|
1691
|
-
provide: ALuPickerPanel,
|
|
1692
|
-
useExisting: forwardRef(() => LuTreeOptionPickerComponent),
|
|
1693
|
-
},
|
|
1694
|
-
],
|
|
1695
|
-
styles: [""]
|
|
1696
|
-
},] }
|
|
1697
|
-
];
|
|
1698
|
-
LuTreeOptionPickerComponent.ctorParameters = () => [
|
|
1699
|
-
{ type: ChangeDetectorRef }
|
|
1700
|
-
];
|
|
1701
|
-
|
|
1702
|
-
class ALuTreeOptionPickerAdvancedComponent extends ALuTreeOptionPickerComponent {
|
|
1703
|
-
constructor(_changeDetectorRef) {
|
|
1704
|
-
super(_changeDetectorRef);
|
|
1705
|
-
this._operators = [];
|
|
1706
|
-
this._onOpenSubscribers = [];
|
|
1707
|
-
this._onCloseSubscribers = [];
|
|
1708
|
-
this._onScrollBottomSubscribers = [];
|
|
1709
|
-
this._selectors = [];
|
|
1710
|
-
}
|
|
1711
|
-
set operatorsQL(ql) {
|
|
1712
|
-
this._operatorsQL = ql;
|
|
1713
|
-
}
|
|
1714
|
-
set onOpenSubsQL(ql) {
|
|
1715
|
-
this._onOpenSubscribers = ql.toArray();
|
|
1716
|
-
}
|
|
1717
|
-
set onCloseSubsQL(ql) {
|
|
1718
|
-
this._onCloseSubscribers = ql.toArray();
|
|
1719
|
-
}
|
|
1720
|
-
set onScrollBottomSubsQL(ql) {
|
|
1721
|
-
this._onScrollBottomSubscribers = ql.toArray();
|
|
1722
|
-
}
|
|
1723
|
-
set selectorsQL(ql) {
|
|
1724
|
-
this._selectorsQL = ql;
|
|
1725
|
-
}
|
|
1726
|
-
onScrollBottom() {
|
|
1727
|
-
this._onScrollBottomSubscribers.forEach(o => {
|
|
1728
|
-
if (!o.onScrollBottom) {
|
|
1729
|
-
return;
|
|
1730
|
-
}
|
|
1731
|
-
o.onScrollBottom();
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
onOpen() {
|
|
1735
|
-
this._onOpenSubscribers.forEach(o => {
|
|
1736
|
-
o.onOpen();
|
|
1737
|
-
});
|
|
1738
|
-
super.onOpen();
|
|
1739
|
-
}
|
|
1740
|
-
onClose() {
|
|
1741
|
-
this._onCloseSubscribers.forEach(o => {
|
|
1742
|
-
o.onClose();
|
|
1743
|
-
});
|
|
1744
|
-
super.onClose();
|
|
1745
|
-
}
|
|
1746
|
-
setValue(value) {
|
|
1747
|
-
super.setValue(value);
|
|
1748
|
-
this._selectors.forEach(s => s.setValue(value));
|
|
1749
|
-
}
|
|
1750
|
-
initOperators() {
|
|
1751
|
-
const operators = this._operatorsQL.toArray();
|
|
1752
|
-
this._operators = operators;
|
|
1753
|
-
let options$;
|
|
1754
|
-
operators.forEach(operator => {
|
|
1755
|
-
operator.inOptions$ = options$;
|
|
1756
|
-
options$ = operator.outOptions$;
|
|
1757
|
-
});
|
|
1758
|
-
const lastOperator = operators[operators.length - 1];
|
|
1759
|
-
if (lastOperator && lastOperator.outOptions$) {
|
|
1760
|
-
this.loading$ = lastOperator.outOptions$.pipe(first(), mapTo(false), startWith(true), shareReplay());
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
initSelectors() {
|
|
1764
|
-
this._selectors = this._selectorsQL.toArray();
|
|
1765
|
-
this._subs.add(merge(this._selectors.map(s => s.onSelectValue)).pipe(mergeAll()).subscribe(values => {
|
|
1766
|
-
this._select(values);
|
|
1767
|
-
}));
|
|
1768
|
-
}
|
|
1769
|
-
ngAfterViewInit() {
|
|
1770
|
-
super.ngAfterViewInit();
|
|
1771
|
-
this.initOperators();
|
|
1772
|
-
this.initSelectors();
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
ALuTreeOptionPickerAdvancedComponent.decorators = [
|
|
1776
|
-
{ type: Directive }
|
|
1777
|
-
];
|
|
1778
|
-
ALuTreeOptionPickerAdvancedComponent.ctorParameters = () => [
|
|
1779
|
-
{ type: ChangeDetectorRef }
|
|
1780
|
-
];
|
|
1781
|
-
ALuTreeOptionPickerAdvancedComponent.propDecorators = {
|
|
1782
|
-
operatorsQL: [{ type: ContentChildren, args: [ALuTreeOptionOperator, { descendants: true },] }],
|
|
1783
|
-
onOpenSubsQL: [{ type: ContentChildren, args: [ALuOnOpenSubscriber, { descendants: true },] }],
|
|
1784
|
-
onCloseSubsQL: [{ type: ContentChildren, args: [ALuOnCloseSubscriber, { descendants: true },] }],
|
|
1785
|
-
onScrollBottomSubsQL: [{ type: ContentChildren, args: [ALuOnScrollBottomSubscriber, { descendants: true },] }],
|
|
1786
|
-
selectorsQL: [{ type: ContentChildren, args: [ALuTreeOptionSelector, { descendants: true },] }]
|
|
1787
|
-
};
|
|
1788
|
-
/**
|
|
1789
|
-
* advanced option picker panel
|
|
1790
|
-
*/
|
|
1791
|
-
class LuTreeOptionPickerAdvancedComponent extends ALuTreeOptionPickerAdvancedComponent {
|
|
1792
|
-
constructor(_changeDetectorRef) {
|
|
1793
|
-
super(_changeDetectorRef);
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
LuTreeOptionPickerAdvancedComponent.decorators = [
|
|
1797
|
-
{ type: Component, args: [{
|
|
1798
|
-
selector: 'lu-tree-option-picker-advanced',
|
|
1799
|
-
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",
|
|
1800
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1801
|
-
animations: [luTransformPopover],
|
|
1802
|
-
exportAs: 'LuOptionPicker',
|
|
1803
|
-
providers: [
|
|
1804
|
-
{
|
|
1805
|
-
provide: ALuPickerPanel,
|
|
1806
|
-
useExisting: forwardRef(() => LuTreeOptionPickerAdvancedComponent),
|
|
1807
|
-
},
|
|
1808
|
-
],
|
|
1809
|
-
styles: [""]
|
|
1810
|
-
},] }
|
|
1811
|
-
];
|
|
1812
|
-
LuTreeOptionPickerAdvancedComponent.ctorParameters = () => [
|
|
1813
|
-
{ type: ChangeDetectorRef }
|
|
1814
|
-
];
|
|
1815
|
-
|
|
1816
|
-
class LuTreeOptionPickerModule {
|
|
1817
|
-
}
|
|
1818
|
-
LuTreeOptionPickerModule.decorators = [
|
|
1819
|
-
{ type: NgModule, args: [{
|
|
1820
|
-
imports: [
|
|
1821
|
-
CommonModule,
|
|
1822
|
-
OverlayModule,
|
|
1823
|
-
LuScrollModule,
|
|
1824
|
-
A11yModule,
|
|
1825
|
-
],
|
|
1826
|
-
declarations: [
|
|
1827
|
-
LuTreeOptionPickerComponent,
|
|
1828
|
-
LuTreeOptionPickerAdvancedComponent,
|
|
1829
|
-
],
|
|
1830
|
-
exports: [
|
|
1831
|
-
LuTreeOptionPickerComponent,
|
|
1832
|
-
LuTreeOptionPickerAdvancedComponent,
|
|
1833
|
-
],
|
|
1834
|
-
},] }
|
|
1835
|
-
];
|
|
1836
|
-
|
|
1837
|
-
class ALuTreeOptionPicker extends ALuOptionPicker {
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
class LuOptionModule {
|
|
1841
|
-
}
|
|
1842
|
-
LuOptionModule.decorators = [
|
|
1843
|
-
{ type: NgModule, args: [{
|
|
1844
|
-
imports: [
|
|
1845
|
-
LuOptionItemModule,
|
|
1846
|
-
LuOptionPickerModule,
|
|
1847
|
-
LuOptionOperatorModule,
|
|
1848
|
-
LuOptionSelectorModule,
|
|
1849
|
-
LuOptionPlaceholderModule,
|
|
1850
|
-
],
|
|
1851
|
-
exports: [
|
|
1852
|
-
LuOptionItemModule,
|
|
1853
|
-
LuOptionPickerModule,
|
|
1854
|
-
LuOptionOperatorModule,
|
|
1855
|
-
LuOptionSelectorModule,
|
|
1856
|
-
LuOptionPlaceholderModule,
|
|
1857
|
-
],
|
|
1858
|
-
},] }
|
|
1859
|
-
];
|
|
1860
|
-
|
|
1861
|
-
class LuTreeOptionModule {
|
|
1862
|
-
}
|
|
1863
|
-
LuTreeOptionModule.decorators = [
|
|
1864
|
-
{ type: NgModule, args: [{
|
|
1865
|
-
imports: [
|
|
1866
|
-
LuTreeOptionItemModule,
|
|
1867
|
-
LuTreeOptionPickerModule,
|
|
1868
|
-
LuTreeOptionOperatorModule,
|
|
1869
|
-
LuTreeOptionSelectorModule,
|
|
1870
|
-
],
|
|
1871
|
-
exports: [
|
|
1872
|
-
LuTreeOptionItemModule,
|
|
1873
|
-
LuTreeOptionPickerModule,
|
|
1874
|
-
LuTreeOptionOperatorModule,
|
|
1875
|
-
LuTreeOptionSelectorModule,
|
|
1876
|
-
],
|
|
1877
|
-
},] }
|
|
1878
|
-
];
|
|
1879
|
-
|
|
1880
|
-
/*
|
|
1881
|
-
* Public API Surface of scroll
|
|
1882
|
-
*/
|
|
1883
|
-
|
|
1884
|
-
/**
|
|
1885
|
-
* Generated bundle index. Do not edit.
|
|
1886
|
-
*/
|
|
1887
|
-
|
|
1888
|
-
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 };
|
|
1889
|
-
//# sourceMappingURL=lucca-front-ng-option.js.map
|