@lucca-front/ng 15.0.4-alpha1 → 15.1.0-rc.2
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/core/lib/date/string/string-date.adapter.d.ts +1 -1
- package/esm2020/a11y/lib/skip-links/skip-links.component.mjs +6 -5
- package/esm2020/api/lib/api.module.mjs +4 -4
- package/esm2020/api/lib/select/api-select.module.mjs +4 -4
- package/esm2020/api/lib/select/feeder/api-feeder.component.mjs +3 -3
- package/esm2020/api/lib/select/feeder/api-feeder.module.mjs +4 -4
- package/esm2020/api/lib/select/input/api-select-input.component.mjs +6 -6
- package/esm2020/api/lib/select/input/api-select-input.module.mjs +4 -4
- package/esm2020/api/lib/select/pager/api-pager.component.mjs +3 -3
- package/esm2020/api/lib/select/pager/api-pager.module.mjs +4 -4
- package/esm2020/api/lib/select/searcher/api-searcher.component.mjs +11 -11
- package/esm2020/api/lib/select/searcher/api-searcher.module.mjs +4 -4
- package/esm2020/api/lib/service/api-hybrid.service.mjs +3 -3
- package/esm2020/api/lib/service/api-v3.service.mjs +3 -3
- package/esm2020/api/lib/service/api-v4.service.mjs +3 -3
- package/esm2020/core/lib/date/native/native-date.adapter.mjs +5 -5
- package/esm2020/core/lib/date/string/string-date.adapter.mjs +6 -6
- package/esm2020/date/lib/adapter/date-adapter.module.mjs +4 -4
- package/esm2020/date/lib/adapter/date-adapter.pipe.mjs +3 -3
- package/esm2020/date/lib/calendar/calendar-input.component.mjs +6 -6
- package/esm2020/date/lib/calendar/calendar-input.module.mjs +4 -4
- package/esm2020/date/lib/calendar/calendar-item.factory.mjs +3 -3
- package/esm2020/date/lib/date.module.mjs +4 -4
- package/esm2020/date/lib/input/date-input.directive.mjs +3 -3
- package/esm2020/date/lib/input/date-input.module.mjs +4 -4
- package/esm2020/date/lib/picker/date-picker.component.mjs +3 -3
- package/esm2020/date/lib/picker/date-picker.module.mjs +4 -4
- package/esm2020/date/lib/select/date-select-input.component.mjs +6 -6
- package/esm2020/date/lib/select/date-select-input.module.mjs +4 -4
- package/esm2020/department/lib/department.module.mjs +4 -4
- package/esm2020/department/lib/select/department-select.module.mjs +4 -4
- package/esm2020/department/lib/select/feeder/department-feeder.component.mjs +3 -3
- package/esm2020/department/lib/select/feeder/department-feeder.module.mjs +4 -4
- package/esm2020/department/lib/select/input/department-select-input.component.mjs +6 -6
- package/esm2020/department/lib/select/input/department-select-input.module.mjs +4 -4
- package/esm2020/department/lib/service/department-v3.service.mjs +3 -3
- package/esm2020/dropdown/lib/dropdown.module.mjs +4 -4
- package/esm2020/dropdown/lib/item/dropdown-item.directive.mjs +3 -3
- package/esm2020/dropdown/lib/item/dropdown-item.module.mjs +4 -4
- package/esm2020/dropdown/lib/panel/dropdown-panel.component.mjs +3 -3
- package/esm2020/dropdown/lib/panel/dropdown-panel.module.mjs +4 -4
- package/esm2020/dropdown/lib/trigger/dropdown-trigger.directive.mjs +3 -3
- package/esm2020/dropdown/lib/trigger/dropdown-trigger.module.mjs +4 -4
- package/esm2020/establishment/lib/establishment.module.mjs +4 -4
- package/esm2020/establishment/lib/select/establishment-select.module.mjs +4 -4
- package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.directive.mjs +3 -3
- package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.module.mjs +4 -4
- package/esm2020/establishment/lib/select/input/establishment-select-input.component.mjs +6 -6
- package/esm2020/establishment/lib/select/input/establishment-select-input.module.mjs +4 -4
- package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.directive.mjs +3 -3
- package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.mjs +4 -4
- package/esm2020/establishment/lib/select/searcher/establishment-searcher.component.mjs +18 -20
- package/esm2020/establishment/lib/select/searcher/establishment-searcher.module.mjs +4 -4
- package/esm2020/establishment/lib/select/select-all/establishment-select-all.component.mjs +6 -6
- package/esm2020/establishment/lib/select/select-all/establishment-select-all.module.mjs +4 -4
- package/esm2020/establishment/lib/service/establishment.service.mjs +3 -3
- package/esm2020/establishment/lib/service/legal-unit.service.mjs +3 -3
- package/esm2020/formly/lib/formly.module.mjs +4 -4
- package/esm2020/formly/lib/types/api.mjs +3 -3
- package/esm2020/formly/lib/types/checkbox.mjs +3 -3
- package/esm2020/formly/lib/types/date.mjs +3 -3
- package/esm2020/formly/lib/types/department.mjs +3 -3
- package/esm2020/formly/lib/types/establishment.mjs +3 -3
- package/esm2020/formly/lib/types/input.mjs +3 -3
- package/esm2020/formly/lib/types/qualification.mjs +3 -3
- package/esm2020/formly/lib/types/radios.mjs +3 -3
- package/esm2020/formly/lib/types/select.mjs +3 -3
- package/esm2020/formly/lib/types/textarea.mjs +3 -3
- package/esm2020/formly/lib/types/user.mjs +3 -3
- package/esm2020/formly/lib/wrappers/checkbox-layout.mjs +3 -3
- package/esm2020/formly/lib/wrappers/error.mjs +6 -6
- package/esm2020/formly/lib/wrappers/helper.mjs +3 -3
- package/esm2020/formly/lib/wrappers/icon.mjs +3 -3
- package/esm2020/formly/lib/wrappers/radiosfield-layout.mjs +3 -3
- package/esm2020/formly/lib/wrappers/suffix.mjs +3 -3
- package/esm2020/formly/lib/wrappers/textfield-layout.mjs +3 -3
- package/esm2020/input/lib/clearer/clearer.component.mjs +6 -6
- package/esm2020/input/lib/clearer/clearer.module.mjs +4 -4
- package/esm2020/input/lib/displayer/input-displayer.directive.mjs +3 -3
- package/esm2020/input/lib/displayer/input-displayer.module.mjs +4 -4
- package/esm2020/input/lib/input.directive.mjs +3 -3
- package/esm2020/input/lib/input.module.mjs +4 -4
- package/esm2020/material/lib/module.mjs +4 -4
- package/esm2020/modal/lib/modal-panel.component.mjs +12 -12
- package/esm2020/modal/lib/modal-ref.factory.mjs +3 -3
- package/esm2020/modal/lib/modal.module.mjs +4 -4
- package/esm2020/modal/lib/modal.service.mjs +3 -3
- package/esm2020/number/lib/number.module.mjs +4 -4
- package/esm2020/number/lib/number.pipe.mjs +3 -3
- package/esm2020/option/lib/item/option-item.component.mjs +6 -6
- package/esm2020/option/lib/item/option-item.module.mjs +4 -4
- package/esm2020/option/lib/item/tree-option-item.component.mjs +6 -6
- package/esm2020/option/lib/item/tree-option-item.module.mjs +4 -4
- package/esm2020/option/lib/operator/feeder/option-feeder.component.mjs +3 -3
- package/esm2020/option/lib/operator/feeder/option-feeder.module.mjs +4 -4
- package/esm2020/option/lib/operator/feeder/tree-option-feeder.component.mjs +3 -3
- package/esm2020/option/lib/operator/feeder/tree-option-feeder.module.mjs +4 -4
- package/esm2020/option/lib/operator/for-groups/for-groups.directive.mjs +3 -3
- package/esm2020/option/lib/operator/for-groups/for-groups.module.mjs +4 -4
- package/esm2020/option/lib/operator/for-options/for-options.directive.mjs +3 -3
- package/esm2020/option/lib/operator/for-options/for-options.module.mjs +4 -4
- package/esm2020/option/lib/operator/for-options/for-tree-options.directive.mjs +3 -3
- package/esm2020/option/lib/operator/for-options/for-tree-options.module.mjs +4 -4
- package/esm2020/option/lib/operator/option-operator.module.mjs +4 -4
- package/esm2020/option/lib/operator/pager/option-pager.component.mjs +3 -3
- package/esm2020/option/lib/operator/pager/option-pager.module.mjs +4 -4
- package/esm2020/option/lib/operator/pager/tree-option-pager.component.mjs +3 -3
- package/esm2020/option/lib/operator/pager/tree-option-pager.module.mjs +4 -4
- package/esm2020/option/lib/operator/searcher/option-searcher.component.mjs +6 -6
- package/esm2020/option/lib/operator/searcher/option-searcher.module.mjs +4 -4
- package/esm2020/option/lib/operator/searcher/tree-option-searcher.component.mjs +6 -6
- package/esm2020/option/lib/operator/searcher/tree-option-searcher.module.mjs +4 -4
- package/esm2020/option/lib/operator/tree-option-operator.module.mjs +4 -4
- package/esm2020/option/lib/option.module.mjs +4 -4
- package/esm2020/option/lib/picker/option-picker-advanced.component.mjs +6 -6
- package/esm2020/option/lib/picker/option-picker.component.mjs +6 -6
- package/esm2020/option/lib/picker/option-picker.module.mjs +4 -4
- package/esm2020/option/lib/picker/tree-option-picker-advanced.component.mjs +6 -6
- package/esm2020/option/lib/picker/tree-option-picker.component.mjs +6 -6
- package/esm2020/option/lib/picker/tree-option-picker.module.mjs +4 -4
- package/esm2020/option/lib/placeholder/option-placeholder.component.mjs +5 -5
- package/esm2020/option/lib/placeholder/option-placeholder.module.mjs +4 -4
- package/esm2020/option/lib/selector/all/select-all.component.mjs +6 -6
- package/esm2020/option/lib/selector/all/select-all.module.mjs +4 -4
- package/esm2020/option/lib/selector/all/tree-select-all.component.mjs +6 -6
- package/esm2020/option/lib/selector/all/tree-select-all.module.mjs +4 -4
- package/esm2020/option/lib/selector/option-selector.module.mjs +4 -4
- package/esm2020/option/lib/selector/tree-option-selector.module.mjs +4 -4
- package/esm2020/option/lib/tree-option.module.mjs +4 -4
- package/esm2020/popover/lib/panel/popover-panel.component.mjs +3 -3
- package/esm2020/popover/lib/panel/popover-panel.module.mjs +4 -4
- package/esm2020/popover/lib/popover.module.mjs +4 -4
- package/esm2020/popover/lib/target/popover-target.directive.mjs +3 -3
- package/esm2020/popover/lib/target/popover-target.module.mjs +4 -4
- package/esm2020/popover/lib/trigger/popover-trigger.directive.mjs +3 -3
- package/esm2020/popover/lib/trigger/popover-trigger.module.mjs +4 -4
- package/esm2020/popup/lib/popup-ref.factory.mjs +3 -3
- package/esm2020/popup/lib/popup.module.mjs +4 -4
- package/esm2020/popup/lib/popup.service.mjs +3 -3
- package/esm2020/qualification/lib/qualification.module.mjs +4 -4
- package/esm2020/qualification/lib/select/input/qualification-select-input.component.mjs +6 -6
- package/esm2020/qualification/lib/select/input/qualification-select-input.module.mjs +4 -4
- package/esm2020/qualification/lib/select/qualification-select.module.mjs +4 -4
- package/esm2020/safe-content/lib/safe-content.module.mjs +4 -4
- package/esm2020/safe-content/lib/safe-html.pipe.mjs +3 -3
- package/esm2020/scroll/lib/scroll.directive.mjs +3 -3
- package/esm2020/scroll/lib/scroll.module.mjs +4 -4
- package/esm2020/select/lib/input/select-input.component.mjs +8 -8
- package/esm2020/select/lib/input/select-input.module.mjs +4 -4
- package/esm2020/select/lib/select.module.mjs +4 -4
- package/esm2020/sidepanel/lib/sidepanel-panel.component.mjs +9 -9
- package/esm2020/sidepanel/lib/sidepanel-ref.factory.mjs +3 -3
- package/esm2020/sidepanel/lib/sidepanel.module.mjs +4 -4
- package/esm2020/sidepanel/lib/sidepanel.service.mjs +3 -3
- package/esm2020/simple-select/lib/input/select-input.component.mjs +11 -10
- package/esm2020/simple-select/lib/option/displayer.directive.mjs +3 -3
- package/esm2020/simple-select/lib/option/option.component.mjs +5 -5
- package/esm2020/simple-select/lib/option/option.directive.mjs +3 -3
- package/esm2020/simple-select/lib/panel/panel.component.mjs +7 -6
- package/esm2020/title/lib/title.module.mjs +4 -4
- package/esm2020/title/lib/title.service.mjs +3 -3
- package/esm2020/title/lib/title.strategy.mjs +3 -3
- package/esm2020/toast/public-api.mjs +2 -2
- package/esm2020/toast/toasts.component.mjs +5 -5
- package/esm2020/toast/toasts.model.mjs +1 -1
- package/esm2020/toast/toasts.module.mjs +4 -4
- package/esm2020/toast/toasts.service.mjs +7 -7
- package/esm2020/tooltip/lib/panel/tooltip-panel.component.mjs +5 -5
- package/esm2020/tooltip/lib/panel/tooltip-panel.module.mjs +4 -4
- package/esm2020/tooltip/lib/tooltip.module.mjs +4 -4
- package/esm2020/tooltip/lib/trigger/tooltip-trigger.directive.mjs +3 -3
- package/esm2020/tooltip/lib/trigger/tooltip-trigger.module.mjs +4 -4
- package/esm2020/user/lib/display/display-format.model.mjs +4 -1
- package/esm2020/user/lib/display/user-display.module.mjs +4 -4
- package/esm2020/user/lib/display/user-display.pipe.mjs +61 -51
- package/esm2020/user/lib/picture/user-picture.component.mjs +4 -4
- package/esm2020/user/lib/picture/user-picture.module.mjs +4 -4
- package/esm2020/user/lib/select/homonyms/user-homonyms.component.mjs +3 -3
- package/esm2020/user/lib/select/homonyms/user-homonyms.module.mjs +4 -4
- package/esm2020/user/lib/select/homonyms/user-homonyms.service.mjs +3 -3
- package/esm2020/user/lib/select/input/user-select-input.component.mjs +6 -6
- package/esm2020/user/lib/select/input/user-select-input.module.mjs +4 -4
- package/esm2020/user/lib/select/me/me-option.directive.mjs +3 -3
- package/esm2020/user/lib/select/me/me-option.module.mjs +4 -4
- package/esm2020/user/lib/select/searcher/user-searcher.component.mjs +6 -6
- package/esm2020/user/lib/select/searcher/user-searcher.module.mjs +4 -4
- package/esm2020/user/lib/select/user-select.module.mjs +4 -4
- package/esm2020/user/lib/service/user-v3.service.mjs +3 -3
- package/esm2020/user/lib/tile/user-tile.component.mjs +4 -4
- package/esm2020/user/lib/tile/user-tile.module.mjs +4 -4
- package/esm2020/user/lib/user.module.mjs +4 -4
- package/establishment/lib/select/searcher/establishment-searcher.component.d.ts +6 -6
- package/fesm2015/lucca-front-ng-a11y.mjs +5 -4
- package/fesm2015/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-api.mjs +54 -54
- package/fesm2015/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-core.mjs +9 -9
- package/fesm2015/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-date.mjs +46 -46
- package/fesm2015/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-department.mjs +27 -27
- package/fesm2015/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-dropdown.mjs +25 -25
- package/fesm2015/lucca-front-ng-establishment.mjs +67 -69
- package/fesm2015/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-formly.mjs +61 -61
- package/fesm2015/lucca-front-ng-input.mjs +23 -23
- package/fesm2015/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-material.mjs +4 -4
- package/fesm2015/lucca-front-ng-modal.mjs +21 -21
- package/fesm2015/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-number.mjs +7 -7
- package/fesm2015/lucca-front-ng-option.mjs +167 -167
- package/fesm2015/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-popover.mjs +25 -25
- package/fesm2015/lucca-front-ng-popup.mjs +10 -10
- package/fesm2015/lucca-front-ng-qualification.mjs +17 -17
- package/fesm2015/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-safe-content.mjs +7 -7
- package/fesm2015/lucca-front-ng-scroll.mjs +7 -7
- package/fesm2015/lucca-front-ng-select.mjs +16 -16
- package/fesm2015/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-sidepanel.mjs +18 -18
- package/fesm2015/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-simple-select.mjs +24 -23
- package/fesm2015/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-title.mjs +10 -10
- package/fesm2015/lucca-front-ng-toast.mjs +15 -15
- package/fesm2015/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-tooltip.mjs +19 -19
- package/fesm2015/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2015/lucca-front-ng-user.mjs +129 -117
- package/fesm2015/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-a11y.mjs +5 -4
- package/fesm2020/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-api.mjs +54 -54
- package/fesm2020/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-core.mjs +9 -9
- package/fesm2020/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-date.mjs +46 -46
- package/fesm2020/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-department.mjs +27 -27
- package/fesm2020/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-dropdown.mjs +25 -25
- package/fesm2020/lucca-front-ng-establishment.mjs +67 -69
- package/fesm2020/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-formly.mjs +61 -61
- package/fesm2020/lucca-front-ng-input.mjs +23 -23
- package/fesm2020/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-material.mjs +4 -4
- package/fesm2020/lucca-front-ng-modal.mjs +21 -21
- package/fesm2020/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-number.mjs +7 -7
- package/fesm2020/lucca-front-ng-option.mjs +167 -167
- package/fesm2020/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-popover.mjs +25 -25
- package/fesm2020/lucca-front-ng-popup.mjs +10 -10
- package/fesm2020/lucca-front-ng-qualification.mjs +17 -17
- package/fesm2020/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-safe-content.mjs +7 -7
- package/fesm2020/lucca-front-ng-scroll.mjs +7 -7
- package/fesm2020/lucca-front-ng-select.mjs +16 -16
- package/fesm2020/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-sidepanel.mjs +18 -18
- package/fesm2020/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-simple-select.mjs +24 -23
- package/fesm2020/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-title.mjs +10 -10
- package/fesm2020/lucca-front-ng-toast.mjs +15 -15
- package/fesm2020/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-tooltip.mjs +19 -19
- package/fesm2020/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2020/lucca-front-ng-user.mjs +129 -117
- package/fesm2020/lucca-front-ng-user.mjs.map +1 -1
- package/material/style/components/_dialog.scss +2 -2
- package/material/style/components/_select.scss +4 -4
- package/material/style/components/_tooltip.scss +5 -5
- package/package.json +3 -3
- package/schematics/lib/local-deps/package-lock.json +54 -0
- package/schematics/lib/local-deps/package.json +1 -0
- package/schematics/lib/local-deps/postcss-selector-parser.js +5 -0
- package/schematics/lib/local-deps/postcss-value-parser.js +2 -5
- package/schematics/lib/local-deps/postcss.js +1 -24
- package/schematics/lib/migration-test.js +50 -0
- package/schematics/lib/schematics.js +19 -0
- package/schematics/lib/scss-ast.js +37 -3
- package/schematics/migrations/tshirt-size/index.js +43 -0
- package/schematics/migrations/tshirt-size/mapping.js +194 -0
- package/schematics/migrations/tshirt-size/migration.js +31 -0
- package/schematics/migrations/tshirt-size/migration.spec.js +43 -0
- package/schematics/migrations.json +4 -4
- package/src/components/_dropdown.scss +5 -5
- package/src/components/_picker.scss +1 -1
- package/src/components/_popup.scss +42 -45
- package/src/components/_sidepanel.scss +17 -14
- package/src/components/cdk/_dragDrop.scss +7 -7
- package/src/components/cdk/_textarea.scss +1 -1
- package/src/definitions/option/_option-item.scss +6 -6
- package/src/definitions/option/_option-searcher.scss +1 -1
- package/src/definitions/option/_option-selector.scss +1 -1
- package/src/definitions/select/_select-clearer.scss +1 -1
- package/src/definitions/select/_select-input.scss +29 -29
- package/src/definitions/tooltip/_tooltip.scss +4 -4
- package/src/definitions/user/user-picture.scss +34 -34
- package/src/definitions/user/user-tile.scss +26 -26
- package/toast/public-api.d.ts +1 -1
- package/toast/toasts.model.d.ts +10 -2
- package/toast/toasts.service.d.ts +1 -1
- package/user/lib/display/display-format.model.d.ts +3 -0
- package/user/lib/display/user-display.pipe.d.ts +6 -0
- package/schematics/migrations/css-vars/css-class-registry.js +0 -88
- package/schematics/migrations/css-vars/index.js +0 -109
- package/schematics/migrations/css-vars/migration.js +0 -149
- package/schematics/migrations/css-vars/migration.spec.js +0 -153
- package/schematics/migrations/css-vars/mixin-registry.js +0 -41
- package/schematics/migrations/css-vars/updaters/color.js +0 -95
- package/schematics/migrations/css-vars/updaters/elevation.js +0 -18
- package/schematics/migrations/css-vars/updaters/get-set.js +0 -26
- package/schematics/migrations/css-vars/updaters/icon-sizing.js +0 -17
- package/schematics/migrations/css-vars/updaters/ie11.js +0 -21
- package/schematics/migrations/css-vars/updaters/main-import.js +0 -40
- package/schematics/migrations/css-vars/updaters/mixins.js +0 -56
- package/schematics/migrations/css-vars/updaters/remove-scss-placeholder.js +0 -40
- package/schematics/migrations/css-vars/updaters/theme.js +0 -59
- package/schematics/migrations/css-vars/updaters/warning.js +0 -9
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateGetSetFunctions = void 0;
|
|
4
|
-
const scss_ast_js_1 = require("../../../lib/scss-ast.js");
|
|
5
|
-
const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
|
|
6
|
-
function updateGetSetFunctions(root, postCss, postcssValueParser) {
|
|
7
|
-
root.walkAtRules((atRule) => {
|
|
8
|
-
new scss_value_ast_js_1.ScssValueAst(atRule.params, postcssValueParser).walkFunction('_getMap', () => {
|
|
9
|
-
(0, scss_ast_js_1.commentNode)(atRule, 'Passer directement par des variables CSS.', postCss);
|
|
10
|
-
return false;
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
root.walkDecls((decl) => {
|
|
14
|
-
const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
|
|
15
|
-
valueNode.walkFunction('_safeGet', () => {
|
|
16
|
-
(0, scss_ast_js_1.commentNode)(decl, 'Passer directement par des variables CSS.', postCss);
|
|
17
|
-
return false;
|
|
18
|
-
});
|
|
19
|
-
valueNode.walkFunction('_set', () => {
|
|
20
|
-
(0, scss_ast_js_1.commentNode)(decl, 'Créer directement des variables CSS.', postCss);
|
|
21
|
-
return false;
|
|
22
|
-
});
|
|
23
|
-
decl.value = valueNode.toString();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
exports.updateGetSetFunctions = updateGetSetFunctions;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateIconSizing = void 0;
|
|
4
|
-
const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
|
|
5
|
-
function updateIconSizing(root, postCss, postcssValueParser) {
|
|
6
|
-
root.walkAtRules('include', (atRule) => {
|
|
7
|
-
const valueNode = new scss_value_ast_js_1.ScssValueAst(atRule.params, postcssValueParser);
|
|
8
|
-
valueNode.walkFunction('iconSizing', (funcNode) => {
|
|
9
|
-
const size = funcNode.nodes[0].value;
|
|
10
|
-
atRule.replaceWith(new postCss.Declaration({
|
|
11
|
-
prop: 'font-size',
|
|
12
|
-
value: `calc(var(--sizes-${size}-font-size) * 1.25)`,
|
|
13
|
-
}));
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.updateIconSizing = updateIconSizing;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeIE11ThemeSupport = void 0;
|
|
4
|
-
const scss_ast_js_1 = require("../../../lib/scss-ast.js");
|
|
5
|
-
const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
|
|
6
|
-
function removeIE11ThemeSupport(root, postcssValueParser) {
|
|
7
|
-
root.walkDecls((decl) => {
|
|
8
|
-
const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
|
|
9
|
-
valueNode.walkFunction(/(_theme|_color|_safeGet)/, (funcNode) => {
|
|
10
|
-
const hasModeIE = funcNode.nodes[funcNode.nodes.length - 1]?.value === 'true';
|
|
11
|
-
if (hasModeIE) {
|
|
12
|
-
const { parent } = decl;
|
|
13
|
-
decl.remove();
|
|
14
|
-
(0, scss_ast_js_1.removeContainerIfEmpty)(parent);
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
return undefined;
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
exports.removeIE11ThemeSupport = removeIE11ThemeSupport;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateMainImport = void 0;
|
|
4
|
-
const scss_ast_js_1 = require("../../../lib/scss-ast.js");
|
|
5
|
-
function updateMainImport(root, postCss, postCssValueParser) {
|
|
6
|
-
let hasMainScss = false;
|
|
7
|
-
let hasMainNg = false;
|
|
8
|
-
root.walkAtRules('import', (atRule) => {
|
|
9
|
-
if (atRule.params.includes('scss/src/theming.overridable')) {
|
|
10
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/theming.overridable', postCssValueParser);
|
|
11
|
-
}
|
|
12
|
-
if (atRule.params.includes('scss/src/main.overridable')) {
|
|
13
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/main.overridable', postCssValueParser);
|
|
14
|
-
hasMainScss = true;
|
|
15
|
-
}
|
|
16
|
-
if (atRule.params.includes('ng/style/main.overridable')) {
|
|
17
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'ng/style/main.overridable', postCssValueParser);
|
|
18
|
-
hasMainNg = true;
|
|
19
|
-
}
|
|
20
|
-
if (atRule.params.includes('scss/src/theming')) {
|
|
21
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/theming', postCssValueParser);
|
|
22
|
-
}
|
|
23
|
-
if (atRule.params.includes('scss/src/main')) {
|
|
24
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/main', postCssValueParser);
|
|
25
|
-
hasMainScss = true;
|
|
26
|
-
}
|
|
27
|
-
if (atRule.params.includes('ng/style/main')) {
|
|
28
|
-
(0, scss_ast_js_1.removeImportNode)(atRule, 'ng/style/main', postCssValueParser);
|
|
29
|
-
hasMainNg = true;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
if (hasMainScss) {
|
|
33
|
-
(0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/icons/src/main', postCss);
|
|
34
|
-
(0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/scss/src/main', postCss);
|
|
35
|
-
}
|
|
36
|
-
if (hasMainNg) {
|
|
37
|
-
(0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/ng/src/main', postCss);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.updateMainImport = updateMainImport;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.replaceIncludedMixin = exports.replaceFuncMixinsWithoutInclude = void 0;
|
|
4
|
-
const scss_ast_js_1 = require("../../../lib/scss-ast.js");
|
|
5
|
-
const funcMixins = [
|
|
6
|
-
{
|
|
7
|
-
legacy: 'fakeborderoverlay',
|
|
8
|
-
register: 'fakeBorderOverlay',
|
|
9
|
-
},
|
|
10
|
-
];
|
|
11
|
-
function replaceFuncMixinsWithoutInclude(root, registry, postCss) {
|
|
12
|
-
const neededNamespaceByImport = {};
|
|
13
|
-
root.walkDecls((decl) => {
|
|
14
|
-
for (const specialMixin of funcMixins) {
|
|
15
|
-
if (!decl.value.includes(specialMixin.legacy)) {
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
const mixin = registry.getByName(specialMixin.register);
|
|
19
|
-
if (mixin) {
|
|
20
|
-
neededNamespaceByImport[mixin.import] = mixin.namespace;
|
|
21
|
-
decl.value = decl.value.replace(specialMixin.legacy, `${mixin.prefix}.${mixin.newName}`);
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
(0, scss_ast_js_1.commentNode)(decl, 'Mixins avec fonction non gérée par la migration auto.', postCss);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
updateMixinImport(root, postCss, neededNamespaceByImport);
|
|
28
|
-
}
|
|
29
|
-
exports.replaceFuncMixinsWithoutInclude = replaceFuncMixinsWithoutInclude;
|
|
30
|
-
function replaceIncludedMixin(root, registry, postCss, postcssValueParser) {
|
|
31
|
-
const neededNamespaceByImport = {};
|
|
32
|
-
root.walkAtRules('include', (rule) => {
|
|
33
|
-
rule.params = postcssValueParser(rule.params)
|
|
34
|
-
.walk((node) => {
|
|
35
|
-
if (!['function', 'word'].includes(node.type)) {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
const mixin = registry.getByName(node.value);
|
|
39
|
-
if (mixin) {
|
|
40
|
-
neededNamespaceByImport[mixin.import] = mixin.namespace;
|
|
41
|
-
node.value = `${mixin.prefix}.${mixin.newName}`;
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
(0, scss_ast_js_1.commentNode)(rule, 'Mixins non gérée par la migration auto.', postCss);
|
|
45
|
-
return false;
|
|
46
|
-
})
|
|
47
|
-
.toString();
|
|
48
|
-
});
|
|
49
|
-
updateMixinImport(root, postCss, neededNamespaceByImport);
|
|
50
|
-
}
|
|
51
|
-
exports.replaceIncludedMixin = replaceIncludedMixin;
|
|
52
|
-
function updateMixinImport(root, postCss, neededNamespaceByImport = {}) {
|
|
53
|
-
for (const [neededImport, namespace] of Object.entries(neededNamespaceByImport)) {
|
|
54
|
-
(0, scss_ast_js_1.addMixinImport)(root, neededImport, postCss, namespace);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeScssPlaceholders = void 0;
|
|
4
|
-
const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
|
|
5
|
-
/**
|
|
6
|
-
* Replace: calc(100vh - #{_theme(\"commons.banner-height\")} - 3.5rem)
|
|
7
|
-
* With: calc(100vh - _theme(\"commons.banner-height\") - 3.5rem)
|
|
8
|
-
*/
|
|
9
|
-
function removeScssPlaceholders(root, postcssValueParser) {
|
|
10
|
-
root.walkDecls((decl) => {
|
|
11
|
-
const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
|
|
12
|
-
valueNode.walkFunction(/.*/, (func) => {
|
|
13
|
-
let removeNextClosingBracket = 0;
|
|
14
|
-
if (func.value.startsWith('#{')) {
|
|
15
|
-
removeNextClosingBracket++;
|
|
16
|
-
func.value = func.value.slice(2);
|
|
17
|
-
}
|
|
18
|
-
const newNodes = [];
|
|
19
|
-
for (const child of func.nodes) {
|
|
20
|
-
if (removeNextClosingBracket && child.type === 'word' && child.value.endsWith('}')) {
|
|
21
|
-
removeNextClosingBracket--;
|
|
22
|
-
if (child.value !== '}') {
|
|
23
|
-
newNodes.push({ ...child, value: child.value.slice(0, -1) });
|
|
24
|
-
}
|
|
25
|
-
// else, do not keep child
|
|
26
|
-
}
|
|
27
|
-
else if (child.type === 'function' && child.value.startsWith('#{')) {
|
|
28
|
-
removeNextClosingBracket++;
|
|
29
|
-
newNodes.push({ ...child, value: child.value.slice(2) });
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
newNodes.push(child);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
func.nodes = newNodes;
|
|
36
|
-
});
|
|
37
|
-
decl.value = valueNode.toString();
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
exports.removeScssPlaceholders = removeScssPlaceholders;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getVariableFromThemeArg = exports.updateThemeMixin = void 0;
|
|
4
|
-
const scss_ast_js_1 = require("../../../lib/scss-ast.js");
|
|
5
|
-
const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
|
|
6
|
-
const color_js_1 = require("./color.js");
|
|
7
|
-
function updateThemeMixin(root, postCss, postcssValueParser) {
|
|
8
|
-
root.walkDecls((decl) => {
|
|
9
|
-
const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
|
|
10
|
-
// _theme("spacings.smallest") => var(--spacings-smallest)
|
|
11
|
-
valueNode.walkFunction('_theme', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
|
|
12
|
-
funcNode.value = 'var';
|
|
13
|
-
if (funcNode.nodes[0]?.value.startsWith('palette.')) {
|
|
14
|
-
funcNode.nodes = (0, color_js_1.getPaletteNodes)(funcNode.nodes[0].value.replace('palette.', ''), undefined, postcssValueParser);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--${themeVar}`, postcssValueParser).nodes;
|
|
18
|
-
const siblings = valueNode.getSiblings(funcNode);
|
|
19
|
-
if (siblings.some((s) => s.type === 'word' && s.value === '*')) {
|
|
20
|
-
(0, scss_ast_js_1.wrapWithCalcFunctionNode)(valueNode, funcNode, postcssValueParser);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}, postCss));
|
|
24
|
-
// _component("navSide.width") => var(--components-navSide-width)
|
|
25
|
-
valueNode.walkFunction('_component', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
|
|
26
|
-
funcNode.value = 'var';
|
|
27
|
-
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--components-${themeVar}`, postcssValueParser).nodes;
|
|
28
|
-
const siblings = valueNode.getSiblings(funcNode);
|
|
29
|
-
if (siblings.some((s) => s.type === 'word' && s.value === '*')) {
|
|
30
|
-
(0, scss_ast_js_1.wrapWithCalcFunctionNode)(valueNode, funcNode, postcssValueParser);
|
|
31
|
-
}
|
|
32
|
-
}, postCss));
|
|
33
|
-
// -_theme("spacings.smallest") => calc(var(--spacings-smallest) * -1)
|
|
34
|
-
valueNode.walkFunction('-_theme', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
|
|
35
|
-
funcNode.value = 'calc';
|
|
36
|
-
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`var(--${themeVar}) * -1`, postcssValueParser).nodes;
|
|
37
|
-
}, postCss));
|
|
38
|
-
// -_component("navSide.width") => calc(var(--components-navSide-width) -1)
|
|
39
|
-
valueNode.walkFunction('-_component', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
|
|
40
|
-
funcNode.value = 'calc';
|
|
41
|
-
funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`var(--components-${themeVar}) * -1`, postcssValueParser).nodes;
|
|
42
|
-
}, postCss));
|
|
43
|
-
decl.value = valueNode.toString();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
exports.updateThemeMixin = updateThemeMixin;
|
|
47
|
-
function updateThemeNode(funcNode, declaration, updater, postCss) {
|
|
48
|
-
const isUnsupported = funcNode.nodes.length > 1;
|
|
49
|
-
if (isUnsupported) {
|
|
50
|
-
(0, scss_ast_js_1.commentNode)(declaration, `Utilisation de ${funcNode.value} non gérée par la migration automatique`, postCss);
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
updater(getVariableFromThemeArg(funcNode.nodes[0].value));
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
function getVariableFromThemeArg(arg) {
|
|
57
|
-
return arg?.replace?.(/\./g, '-') || '';
|
|
58
|
-
}
|
|
59
|
-
exports.getVariableFromThemeArg = getVariableFromThemeArg;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addWarnings = void 0;
|
|
4
|
-
function addWarnings(root) {
|
|
5
|
-
root.walkAtRules('each', (rule) => {
|
|
6
|
-
rule.raws.before = (rule.raws.before || '') + '// [LF NEXT] Vérifier le contenu de la boucle.\n';
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
exports.addWarnings = addWarnings;
|