stable

Clone or download

Read-only

feat: Introduce a basic link-selector

part of: story #24969 [modal] add and remove links without types This commit introduces a base artifact link selector for the new artifact link field. For the moment, it is a lite version of list-picker. Later, it will implement features dedicated to artifact links selections. How to test: - In the TLP documentation > Forms --> There is a link-selector --> It works Change-Id: I31e78ed4670df38e4cde82d61f1063b016ffc8cd

Modified Files

Name
M build-manifest.json +4 −0 Go to diff View file
A src/scripts/lib/link-selector/.gitignore +1 −0 Go to diff View file
A src/scripts/lib/link-selector/jest.config.js +27 −0 Go to diff View file
A src/scripts/lib/link-selector/package.json +26 −0 Go to diff View file
A src/scripts/lib/link-selector/pnpm-lock.yaml +46 −0 Go to diff View file
A src/scripts/lib/link-selector/po/fr_FR.po +20 −0 Go to diff View file
A src/scripts/lib/link-selector/src/dropdown/DropdownManager.test.ts +217 −0 Go to diff View file
A src/scripts/lib/link-selector/src/dropdown/DropdownManager.ts +136 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/EventManager.test.ts +373 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/EventManager.ts +298 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/ListOptionsChangesObserver.test.ts +121 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/ListOptionsChangesObserver.ts +73 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/ScrollingManager.test.ts +161 −0 Go to diff View file
A src/scripts/lib/link-selector/src/events/ScrollingManager.ts +120 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/hide-selectbox-helper.test.ts +32 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/hide-selectbox-helper.ts +24 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/keys-helper.test.ts +91 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/keys-helper.ts +62 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/link-selector-in-modals-helper.test.ts +54 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/link-selector-in-modals-helper.ts +25 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/list-item-finder.test.ts +87 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/list-item-finder.ts +68 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/option-label-helper.test.ts +39 −0 Go to diff View file
A src/scripts/lib/link-selector/src/helpers/option-label-helper.ts +25 −0 Go to diff View file
A src/scripts/lib/link-selector/src/index.ts +33 −0 Go to diff View file
A src/scripts/lib/link-selector/src/items/ItemsMapManager.test.ts +81 −0 Go to diff View file
A src/scripts/lib/link-selector/src/items/ItemsMapManager.ts +47 −0 Go to diff View file
A src/scripts/lib/link-selector/src/items/ListItemMapBuilder.test.ts +272 −0 Go to diff View file
A src/scripts/lib/link-selector/src/items/ListItemMapBuilder.ts +164 −0 Go to diff View file
A src/scripts/lib/link-selector/src/link-selector.ts +141 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/FieldFocusManager.test.ts +133 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/FieldFocusManager.ts +60 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/KeyboardNavigationManager.test.ts +125 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/KeyboardNavigationManager.ts +112 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/ListItemHighlighter.test.ts +76 −0 Go to diff View file
A src/scripts/lib/link-selector/src/navigation/ListItemHighlighter.ts +59 −0 Go to diff View file
A src/scripts/lib/link-selector/src/pofile-shim.d.ts +24 −0 Go to diff View file
A src/scripts/lib/link-selector/src/renderers/BaseComponentRenderer.test.ts +80 −0 Go to diff View file
A src/scripts/lib/link-selector/src/renderers/BaseComponentRenderer.ts +142 −0 Go to diff View file
A src/scripts/lib/link-selector/src/renderers/DropdownContentRenderer.test.ts +251 −0 Go to diff View file
A src/scripts/lib/link-selector/src/renderers/DropdownContentRenderer.ts +164 −0 Go to diff View file
A src/scripts/lib/link-selector/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap +76 −0 Go to diff View file
A src/scripts/lib/link-selector/src/selection/SelectionManager.test.ts +292 −0 Go to diff View file
A src/scripts/lib/link-selector/src/selection/SelectionManager.ts +221 −0 Go to diff View file
A src/scripts/lib/link-selector/src/test-helpers/select-box-options-generator.ts +68 −0 Go to diff View file
A src/scripts/lib/link-selector/src/test-helpers/selection-manager-test-helpers.ts +34 −0 Go to diff View file
A src/scripts/lib/link-selector/src/type.ts +80 −0 Go to diff View file
A src/scripts/lib/link-selector/themes/style.scss +275 −0 Go to diff View file
A src/scripts/lib/link-selector/tsconfig.json +9 −0 Go to diff View file
A src/scripts/lib/link-selector/vite.config.ts +49 −0 Go to diff View file
M src/scripts/tlp-doc/css/main.scss +1 −0 Go to diff View file
M src/scripts/tlp-doc/package.json +1 −0 Go to diff View file
M src/scripts/tlp-doc/pnpm-lock.yaml +2 −0 Go to diff View file
M src/scripts/tlp-doc/src/editors.js +7 −0 Go to diff View file
M src/themes/tlp/src/scss/components/_css-var-root.scss +13 −0 Go to diff View file
M src/themes/tlp/src/scss/components/_forms.scss +133 −121 Go to diff View file
A src/www/tlp-doc/resources/forms/link-selector/doc.html +23 −0 Go to diff View file
A src/www/tlp-doc/resources/forms/link-selector/example.html +17 −0 Go to diff View file
A src/www/tlp-doc/resources/forms/link-selector/manifest.json +3 −0 Go to diff View file
M src/www/tlp-doc/resources/forms/manifest.json +1 −0 Go to diff View file