stable

Clone or download

Read-only

Build ListPicker as an internal library

This setup has the following goals: - Stop forcing callers to understand node-gettext PO file format - Stop forcing callers to transpile TS themselves. - Stop forcing callers to import styles separately - Have a single entrypoint regardless of locale. This has the downside of always bundling all locales. - Allow @tuleap/core to depend on @tuleap/list-picker It does bring the downside of having to run "npm run watch" in list-picker folder AND in caller's folder (for example trackers). Part of story #16646 have searchable (multi) select boxes with (static binding, no dependencies) in modal Change-Id: I473402f235191d6aeddef1f687b159d4da0bba46

Modified Files

Name
M .gitignore +0 −4 Go to diff View file
M lerna.json +1 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/list-picker-field/list-picker-field-controller.js +5 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/list-picker-multiple-field/list-picker-multiple-field-controller.js +4 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal.scss +1 −1 Go to diff View file
M plugins/tracker/scripts/artifact-action-buttons/src/components/ProjectSelector.vue +2 −1 Go to diff View file
M plugins/tracker/scripts/artifact-action-buttons/src/components/TrackerSelector.vue +2 −1 Go to diff View file
M plugins/tracker/scripts/artifact/list-fields.ts +17 −103 Go to diff View file
R plugins/tracker/scripts/artifact/list-fields.test.ts Go to diff View file
A plugins/tracker/scripts/artifact/list-pickers-creator.ts +143 −0 Go to diff View file
M plugins/tracker/scripts/workflow-transitions/src/components/TransitionModal/FilledPreConditionsSection.vue +13 −6 Go to diff View file
M plugins/tracker/scripts/workflow-transitions/src/components/TransitionModal/PostAction/FrozenFieldsAction.vue +2 −1 Go to diff View file
M plugins/tracker/scripts/workflow-transitions/src/components/TransitionModal/PostAction/HiddenFieldsetsAction.vue +2 −1 Go to diff View file
M plugins/tracker/themes/BurningParrot/css/_workflow.scss +1 −1 Go to diff View file
M src/package.json +3 −1 Go to diff View file
A src/scripts/list-picker/.gitignore +1 −0 Go to diff View file
M src/scripts/list-picker/package.json +11 −1 Go to diff View file
A src/scripts/list-picker/src/index.ts +36 −0 Go to diff View file
M src/scripts/list-picker/src/list-picker.ts +2 −13 Go to diff View file
A src/scripts/list-picker/src/pofile-shim.d.ts +41 −0 Go to diff View file
M src/scripts/list-picker/src/renderers/DropdownContentRenderer.ts +2 −2 Go to diff View file
M src/scripts/list-picker/src/selection/MultipleSelectionManager.ts +2 −2 Go to diff View file
R src/scripts/list-picker/src/type.d.ts Go to diff View file
A src/scripts/list-picker/tsconfig.json +8 −0 Go to diff View file
A src/scripts/list-picker/webpack.common.js +60 −0 Go to diff View file
A src/scripts/list-picker/webpack.dev.js +23 −0 Go to diff View file
A src/scripts/list-picker/webpack.prod.js +23 −0 Go to diff View file
M src/scripts/tuleap/gettext/gettext-init.d.ts +4 −2 Go to diff View file
A src/scripts/tuleap/gettext/gettext-sync.ts +60 −0 Go to diff View file
M src/themes/FlamingParrot/css/utils/_list-picker.scss +1 −1 Go to diff View file
M src/themes/tlp/doc/css/main.scss +1 −1 Go to diff View file
M src/themes/tlp/doc/js/editors.js +4 −1 Go to diff View file
M src/webpack.common.js +1 −27 Go to diff View file
M src/www/tlp-doc/resources/forms/list-picker/doc.html +1 −0 Go to diff View file
M src/www/tlp-doc/resources/forms/list-picker/example.html +6 −5 Go to diff View file
M src/www/tlp-doc/resources/forms/multi-list-picker/example.html +6 −5 Go to diff View file
A tools/utils/scripts/tsconfig-for-libraries.json +12 −0 Go to diff View file
M tools/utils/scripts/webpack-configurator.js +1 −1 Go to diff View file
M tools/utils/scripts/webpack-rule-configs.js +23 −0 Go to diff View file