@demos-europe/demosplan-ui 0.4.12 → 0.4.13
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +10 -0
- package/babel.config.js +9 -9
- package/dist/demosplan-ui.umd.js +1 -1
- package/eslint.config.js +104 -0
- package/jest/shallowMountWithGlobalMocks.js +8 -6
- package/jest.config.js +4 -4
- package/package.json +12 -5
- package/scripts/buildTokens.js +1 -1
- package/scripts/utils/transformTokens.js +2 -2
- package/src/components/DpAccordion/DpAccordion.vue +4 -4
- package/src/components/DpAnonymizeText/DpAnonymizeText.vue +4 -4
- package/src/components/DpBulkEditHeader/DpBulkEditHeader.stories.tsx +1 -1
- package/src/components/DpButton/DpButton.vue +51 -43
- package/src/components/DpButtonIcon/DpButtonIcon.vue +5 -5
- package/src/components/DpButtonRow/DpButtonRow.vue +5 -5
- package/src/components/DpCheckbox/DpCheckbox.vue +2 -2
- package/src/components/DpCheckboxGroup/DpCheckboxGroup.vue +4 -4
- package/src/components/DpColumnSelector/DpColumnSelector.vue +1 -1
- package/src/components/DpContextualHelp/DpContextualHelp.vue +4 -4
- package/src/components/DpDataTable/DpDataTable.vue +53 -49
- package/src/components/DpDataTable/DpResizableColumn.vue +1 -1
- package/src/components/DpDataTable/DpTableHeader.vue +6 -4
- package/src/components/DpDataTable/DpTableRow.vue +1 -1
- package/src/components/DpDataTableExtended/DpDataTableExtended.vue +8 -8
- package/src/components/DpDataTableExtended/DpSelectPageItemCount.vue +2 -2
- package/src/components/DpDatetimePicker/DpDatetimePicker.vue +6 -6
- package/src/components/DpDetails/DpDetails.vue +1 -1
- package/src/components/DpDraggable/DpDraggable.vue +10 -12
- package/src/components/DpEditor/DpEditor.vue +45 -45
- package/src/components/DpEditor/DpResizableImage.vue +6 -6
- package/src/components/DpEditor/DpUploadModal.vue +11 -12
- package/src/components/DpEditor/MentionList.vue +5 -3
- package/src/components/DpEditor/libs/editorObscure.js +2 -2
- package/src/components/DpFlyout/DpFlyout.vue +5 -5
- package/src/components/DpIcon/util/iconConfig.ts +28 -28
- package/src/components/DpInlineNotification/DpInlineNotification.vue +2 -2
- package/src/components/DpLabel/DpLabel.vue +5 -3
- package/src/components/DpModal/DpModal.vue +5 -5
- package/src/components/DpMultiselect/DpMultiselect.vue +23 -25
- package/src/components/DpMultistepNav/DpMultistepNav.vue +2 -2
- package/src/components/DpPager/DpPager.vue +12 -12
- package/src/components/DpResettableInput/DpResettableInput.vue +3 -3
- package/src/components/DpSearchField/DpSearchField.vue +7 -2
- package/src/components/DpSelect/DpSelect.vue +3 -3
- package/src/components/DpSkeletonBox/DpSkeletonBox.vue +1 -1
- package/src/components/DpSlidebar/DpSlidebar.vue +2 -2
- package/src/components/DpSplitButton/DpSplitButton.vue +2 -2
- package/src/components/DpStickyElement/DpStickyElement.vue +1 -1
- package/src/components/DpTabs/DpTabs.vue +1 -1
- package/src/components/DpTextArea/DpTextArea.vue +4 -4
- package/src/components/DpTimePicker/DpTimePicker.vue +14 -14
- package/src/components/DpToggle/DpToggle.vue +1 -1
- package/src/components/DpTooltip/DpTooltip.vue +4 -2
- package/src/components/DpTooltip/utils/tooltip.js +4 -4
- package/src/components/DpTooltipIcon/DpTooltipIcon.vue +2 -2
- package/src/components/DpTransitionExpand/DpTransitionExpand.vue +1 -1
- package/src/components/DpTreeList/DpTreeList.vue +4 -4
- package/src/components/DpTreeList/DpTreeListCheckbox.vue +1 -1
- package/src/components/DpTreeList/DpTreeListNode.vue +12 -12
- package/src/components/DpUploadFiles/DpUpload.vue +2 -2
- package/src/components/DpUploadFiles/DpUploadFiles.vue +10 -10
- package/src/components/DpUploadFiles/DpUploadedFile.vue +6 -6
- package/src/components/DpUploadFiles/DpUploadedFileList.vue +4 -4
- package/src/components/DpVideoPlayer/DpVideoPlayer.vue +7 -7
- package/src/directives/CleanHtml/CleanHtml.js +1 -1
- package/src/directives/Tooltip/Tooltip.js +1 -1
- package/src/lib/ActionMenu.js +48 -48
- package/src/lib/DpApi.js +2 -2
- package/src/lib/FileInfo.js +15 -15
- package/src/lib/validation/utils/assignHandlerForTrigger.js +8 -8
- package/src/lib/validation/utils/assignHandlersForInputs.js +51 -51
- package/src/lib/validation/utils/assignObserver.js +29 -29
- package/src/lib/validation/utils/helpers.js +4 -4
- package/src/lib/validation/utils/validateForm.js +15 -15
- package/src/lib/validation/utils/validateInputField.js +11 -11
- package/src/utils/index.js +2 -2
- package/tokens/dist/js/boxShadow.js +1 -1
- package/tokens/dist/js/breakpoints.js +1 -1
- package/tokens/dist/js/color.brand.js +1 -1
- package/tokens/dist/js/color.data.js +1 -1
- package/tokens/dist/js/color.palette.js +1 -1
- package/tokens/dist/js/color.ui.js +1 -1
- package/tokens/dist/js/fontSize.js +1 -1
- package/tokens/dist/js/rounded.js +1 -1
- package/tokens/dist/js/space.js +1 -1
- package/tokens/dist/js/zIndex.js +1 -1
- package/tokens/dist/scss/_boxShadow.scss +1 -1
- package/tokens/dist/scss/_breakpoints.scss +1 -1
- package/tokens/dist/scss/_color.brand.scss +1 -1
- package/tokens/dist/scss/_color.data.scss +1 -1
- package/tokens/dist/scss/_color.palette.scss +1 -1
- package/tokens/dist/scss/_color.ui.scss +1 -1
- package/tokens/dist/scss/_fontSize.scss +1 -1
- package/tokens/dist/scss/_rounded.scss +1 -1
- package/tokens/dist/scss/_space.scss +1 -1
- package/tokens/dist/scss/_zIndex.scss +1 -1
- package/types/icons.ts +26 -26
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/components/DpContextualHelp/DpContextualHelp.vue.html +0 -271
- package/coverage/lcov-report/components/DpContextualHelp/index.html +0 -116
- package/coverage/lcov-report/components/DpDataTableExtended/DataTableSearch.js.html +0 -190
- package/coverage/lcov-report/components/DpDataTableExtended/index.html +0 -116
- package/coverage/lcov-report/components/DpEditor/libs/handleWordPaste.js.html +0 -1138
- package/coverage/lcov-report/components/DpEditor/libs/index.html +0 -116
- package/coverage/lcov-report/components/DpIcon/DpIcon.vue.html +0 -256
- package/coverage/lcov-report/components/DpIcon/index.html +0 -131
- package/coverage/lcov-report/components/DpIcon/index.ts.html +0 -91
- package/coverage/lcov-report/components/DpIcon/util/iconVariables.js.html +0 -682
- package/coverage/lcov-report/components/DpIcon/util/index.html +0 -116
- package/coverage/lcov-report/components/DpTooltip/utils/index.html +0 -116
- package/coverage/lcov-report/components/DpTooltip/utils/tooltip.js.html +0 -490
- package/coverage/lcov-report/components/shared/index.html +0 -116
- package/coverage/lcov-report/components/shared/translations.js.html +0 -490
- package/coverage/lcov-report/directives/CleanHtml/CleanHtml.js.html +0 -265
- package/coverage/lcov-report/directives/CleanHtml/index.html +0 -116
- package/coverage/lcov-report/directives/Tooltip/Tooltip.js.html +0 -349
- package/coverage/lcov-report/directives/Tooltip/index.html +0 -116
- package/coverage/lcov-report/directives/index.html +0 -116
- package/coverage/lcov-report/directives/index.js.html +0 -109
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/jest/index.html +0 -116
- package/coverage/lcov-report/jest/shallowMountWithGlobalMocks.js.html +0 -208
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/components/DpCheckbox/DpCheckbox.vue.html +0 -424
- package/coverage/lcov-report/src/components/DpCheckbox/index.html +0 -116
- package/coverage/lcov-report/src/components/DpContextualHelp/DpContextualHelp.vue.html +0 -361
- package/coverage/lcov-report/src/components/DpContextualHelp/index.html +0 -131
- package/coverage/lcov-report/src/components/DpContextualHelp/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpDataTableExtended/DataTableSearch.js.html +0 -190
- package/coverage/lcov-report/src/components/DpDataTableExtended/index.html +0 -116
- package/coverage/lcov-report/src/components/DpDraggable/DpDraggable.vue.html +0 -499
- package/coverage/lcov-report/src/components/DpDraggable/index.html +0 -131
- package/coverage/lcov-report/src/components/DpDraggable/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpEditor/libs/handleWordPaste.js.html +0 -1153
- package/coverage/lcov-report/src/components/DpEditor/libs/index.html +0 -116
- package/coverage/lcov-report/src/components/DpIcon/DpIcon.vue.html +0 -256
- package/coverage/lcov-report/src/components/DpIcon/index.html +0 -131
- package/coverage/lcov-report/src/components/DpIcon/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpIcon/util/iconVariables.js.html +0 -706
- package/coverage/lcov-report/src/components/DpIcon/util/index.html +0 -116
- package/coverage/lcov-report/src/components/DpInput/DpInput.vue.html +0 -937
- package/coverage/lcov-report/src/components/DpInput/index.html +0 -131
- package/coverage/lcov-report/src/components/DpInput/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpLabel/DpLabel.vue.html +0 -409
- package/coverage/lcov-report/src/components/DpLabel/index.html +0 -131
- package/coverage/lcov-report/src/components/DpLabel/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpModal/DpModal.vue.html +0 -739
- package/coverage/lcov-report/src/components/DpModal/index.html +0 -131
- package/coverage/lcov-report/src/components/DpModal/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpNotification/DpNotification.vue.html +0 -343
- package/coverage/lcov-report/src/components/DpNotification/index.html +0 -131
- package/coverage/lcov-report/src/components/DpNotification/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpObscure/DpObscure.vue.html +0 -148
- package/coverage/lcov-report/src/components/DpObscure/index.html +0 -131
- package/coverage/lcov-report/src/components/DpObscure/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpSelect/DpSelect.vue.html +0 -559
- package/coverage/lcov-report/src/components/DpSelect/index.html +0 -131
- package/coverage/lcov-report/src/components/DpSelect/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpTooltip/utils/index.html +0 -116
- package/coverage/lcov-report/src/components/DpTooltip/utils/tooltip.js.html +0 -490
- package/coverage/lcov-report/src/components/DpTreeList/DpTreeList.vue.html +0 -1099
- package/coverage/lcov-report/src/components/DpTreeList/DpTreeListCheckbox.vue.html +0 -301
- package/coverage/lcov-report/src/components/DpTreeList/DpTreeListNode.vue.html +0 -1144
- package/coverage/lcov-report/src/components/DpTreeList/DpTreeListToggle.vue.html +0 -382
- package/coverage/lcov-report/src/components/DpTreeList/index.html +0 -161
- package/coverage/lcov-report/src/components/DpTreeList/utils/constants.js.html +0 -100
- package/coverage/lcov-report/src/components/DpTreeList/utils/index.html +0 -116
- package/coverage/lcov-report/src/components/DpUploadFiles/DpUpload.vue.html +0 -979
- package/coverage/lcov-report/src/components/DpUploadFiles/DpUploadFiles.vue.html +0 -970
- package/coverage/lcov-report/src/components/DpUploadFiles/DpUploadedFile.vue.html +0 -340
- package/coverage/lcov-report/src/components/DpUploadFiles/DpUploadedFileList.vue.html +0 -202
- package/coverage/lcov-report/src/components/DpUploadFiles/index.html +0 -176
- package/coverage/lcov-report/src/components/DpUploadFiles/index.ts.html +0 -91
- package/coverage/lcov-report/src/components/DpUploadFiles/utils/UppyTranslations.js.html +0 -151
- package/coverage/lcov-report/src/components/DpUploadFiles/utils/index.html +0 -116
- package/coverage/lcov-report/src/components/shared/index.html +0 -116
- package/coverage/lcov-report/src/components/shared/translations.js.html +0 -508
- package/coverage/lcov-report/src/directives/CleanHtml/CleanHtml.js.html +0 -265
- package/coverage/lcov-report/src/directives/CleanHtml/index.html +0 -116
- package/coverage/lcov-report/src/directives/Tooltip/Tooltip.js.html +0 -349
- package/coverage/lcov-report/src/directives/Tooltip/index.html +0 -116
- package/coverage/lcov-report/src/directives/index.html +0 -116
- package/coverage/lcov-report/src/directives/index.js.html +0 -109
- package/coverage/lcov-report/src/lib/ActionMenu.js.html +0 -610
- package/coverage/lcov-report/src/lib/Detabinator.js.html +0 -304
- package/coverage/lcov-report/src/lib/DpApi.js.html +0 -748
- package/coverage/lcov-report/src/lib/DpConfirm.js.html +0 -118
- package/coverage/lcov-report/src/lib/DpGetCssVariable.js.html +0 -103
- package/coverage/lcov-report/src/lib/FileInfo.js.html +0 -574
- package/coverage/lcov-report/src/lib/HighlightHashLink.js.html +0 -160
- package/coverage/lcov-report/src/lib/MatchMedia.js.html +0 -220
- package/coverage/lcov-report/src/lib/SideNav.js.html +0 -712
- package/coverage/lcov-report/src/lib/Sticky.js.html +0 -223
- package/coverage/lcov-report/src/lib/TableWrapper.js.html +0 -214
- package/coverage/lcov-report/src/lib/index.html +0 -281
- package/coverage/lcov-report/src/lib/index.js.html +0 -190
- package/coverage/lcov-report/src/lib/validation/utils/assignHandlersForInputs.js.html +0 -400
- package/coverage/lcov-report/src/lib/validation/utils/helpers.js.html +0 -523
- package/coverage/lcov-report/src/lib/validation/utils/index.html +0 -236
- package/coverage/lcov-report/src/lib/validation/utils/validateDatepicker.js.html +0 -160
- package/coverage/lcov-report/src/lib/validation/utils/validateEmail.js.html +0 -136
- package/coverage/lcov-report/src/lib/validation/utils/validateFieldset.js.html +0 -163
- package/coverage/lcov-report/src/lib/validation/utils/validateForm.js.html +0 -205
- package/coverage/lcov-report/src/lib/validation/utils/validateInputField.js.html +0 -403
- package/coverage/lcov-report/src/lib/validation/utils/validateMultiselect.js.html +0 -121
- package/coverage/lcov-report/src/lib/validation/utils/validateTiptap.js.html +0 -160
- package/coverage/lcov-report/src/mixins/dpSelectAllMixin.js.html +0 -232
- package/coverage/lcov-report/src/mixins/dpValidateMixin.js.html +0 -460
- package/coverage/lcov-report/src/mixins/index.html +0 -176
- package/coverage/lcov-report/src/mixins/index.js.html +0 -124
- package/coverage/lcov-report/src/mixins/prefixClassMixin/index.html +0 -116
- package/coverage/lcov-report/src/mixins/prefixClassMixin/prefixClassMixin.js.html +0 -121
- package/coverage/lcov-report/src/mixins/sessionStorageMixin.js.html +0 -160
- package/coverage/lcov-report/src/mixins/tableSelectAllItems.js.html +0 -427
- package/coverage/lcov-report/src/shared/index.html +0 -116
- package/coverage/lcov-report/src/shared/index.js.html +0 -103
- package/coverage/lcov-report/src/shared/props/index.html +0 -116
- package/coverage/lcov-report/src/shared/props/props.js.html +0 -310
- package/coverage/lcov-report/src/utils/date.js.html +0 -208
- package/coverage/lcov-report/src/utils/debounce.js.html +0 -163
- package/coverage/lcov-report/src/utils/deepMerge.js.html +0 -175
- package/coverage/lcov-report/src/utils/formatBytes.js.html +0 -133
- package/coverage/lcov-report/src/utils/formatString.js.html +0 -109
- package/coverage/lcov-report/src/utils/fullscreen.js.html +0 -253
- package/coverage/lcov-report/src/utils/getAnimationEventName.js.html +0 -157
- package/coverage/lcov-report/src/utils/getScrollTop.js.html +0 -109
- package/coverage/lcov-report/src/utils/hasOwnProp.js.html +0 -142
- package/coverage/lcov-report/src/utils/hasPermission.js.html +0 -214
- package/coverage/lcov-report/src/utils/index.html +0 -341
- package/coverage/lcov-report/src/utils/index.js.html +0 -217
- package/coverage/lcov-report/src/utils/lengthHint/index.html +0 -116
- package/coverage/lcov-report/src/utils/lengthHint/lengthHint.js.html +0 -268
- package/coverage/lcov-report/src/utils/prefixClass.js.html +0 -199
- package/coverage/lcov-report/src/utils/resistFingerprintingDuckTest.js.html +0 -232
- package/coverage/lcov-report/src/utils/sortAlphabetically.js.html +0 -193
- package/coverage/lcov-report/src/utils/throttle.js.html +0 -145
- package/coverage/lcov-report/src/utils/uniqueArrayByObjectKey.js.html +0 -151
- package/coverage/lcov-report/utils/date.js.html +0 -208
- package/coverage/lcov-report/utils/debounce.js.html +0 -163
- package/coverage/lcov-report/utils/deepMerge.js.html +0 -175
- package/coverage/lcov-report/utils/formatBytes.js.html +0 -133
- package/coverage/lcov-report/utils/fullscreen.js.html +0 -253
- package/coverage/lcov-report/utils/getAnimationEventName.js.html +0 -157
- package/coverage/lcov-report/utils/getScrollTop.js.html +0 -109
- package/coverage/lcov-report/utils/hasOwnProp.js.html +0 -142
- package/coverage/lcov-report/utils/hasPermission.js.html +0 -214
- package/coverage/lcov-report/utils/index.html +0 -326
- package/coverage/lcov-report/utils/index.js.html +0 -211
- package/coverage/lcov-report/utils/lengthHint/index.html +0 -116
- package/coverage/lcov-report/utils/lengthHint/lengthHint.js.html +0 -268
- package/coverage/lcov-report/utils/prefixClass.js.html +0 -199
- package/coverage/lcov-report/utils/resistFingerprintingDuckTest.js.html +0 -232
- package/coverage/lcov-report/utils/sortAlphabetically.js.html +0 -193
- package/coverage/lcov-report/utils/throttle.js.html +0 -145
- package/coverage/lcov-report/utils/uniqueArrayByObjectKey.js.html +0 -151
- package/coverage/lcov.info +0 -0
- package/style/style.css +0 -1002
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<node-view-wrapper
|
|
3
|
+
ref="imagewrapper"
|
|
3
4
|
as="span"
|
|
4
5
|
class="resizable-image"
|
|
5
|
-
ref="imagewrapper"
|
|
6
6
|
tabindex="1">
|
|
7
7
|
<img
|
|
8
|
-
:alt="node.attrs.alt"
|
|
9
8
|
ref="image"
|
|
9
|
+
:alt="node.attrs.alt"
|
|
10
10
|
data-cy="editor:resizableImage"
|
|
11
11
|
:src="node.attrs.src"
|
|
12
12
|
:title="imageTitle"
|
|
13
|
-
@click.ctrl="$root.$emit('open-image-alt-modal',
|
|
13
|
+
@click.ctrl="$root.$emit('open-image-alt-modal', { event: $event, imgId: id, editorId: editor.options.id })">
|
|
14
14
|
</node-view-wrapper>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
@@ -22,12 +22,12 @@ import { v4 as uuid } from 'uuid'
|
|
|
22
22
|
export default {
|
|
23
23
|
name: 'DpResizableImage',
|
|
24
24
|
|
|
25
|
-
props: nodeViewProps,
|
|
26
|
-
|
|
27
25
|
components: {
|
|
28
26
|
NodeViewWrapper
|
|
29
27
|
},
|
|
30
28
|
|
|
29
|
+
props: nodeViewProps,
|
|
30
|
+
|
|
31
31
|
data () {
|
|
32
32
|
return {
|
|
33
33
|
id: uuid(),
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
this.setRatio(updateSize)
|
|
98
98
|
},
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
beforeUnmount () {
|
|
101
101
|
if (this.observer) {
|
|
102
102
|
this.observer.disconnect()
|
|
103
103
|
}
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
v-if="!editAltTextOnly"
|
|
19
19
|
class="mb-2">
|
|
20
20
|
<dp-upload-files
|
|
21
|
+
id="imageFile"
|
|
22
|
+
ref="uploader"
|
|
21
23
|
allowed-file-types="img"
|
|
22
24
|
:basic-auth="basicAuth"
|
|
23
|
-
id="imageFile"
|
|
24
25
|
:get-file-by-hash="getFileByHash"
|
|
25
26
|
:max-file-size="20 * 1024 * 1024/* 20 MiB */"
|
|
26
27
|
:max-number-of-files="1"
|
|
27
|
-
|
|
28
|
-
:translations="{ dropHereOr: translations.uploadImage('20MB')}"
|
|
28
|
+
:translations="{ dropHereOr: translations.uploadImage('20MB') }"
|
|
29
29
|
:tus-endpoint="tusEndpoint"
|
|
30
30
|
@upload-success="setFile" />
|
|
31
31
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<img
|
|
34
34
|
:alt="altText"
|
|
35
35
|
class="mb-4"
|
|
36
|
-
:src="
|
|
36
|
+
:src="imgSrc">
|
|
37
37
|
</div>
|
|
38
38
|
<dp-input
|
|
39
39
|
id="altText"
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
data-cy="uploadModal:save"
|
|
51
51
|
type="button"
|
|
52
52
|
@click="emitAndClose"
|
|
53
|
-
v-text="editAltTextOnly ? translations.save : translations.insert"
|
|
54
|
-
</button>
|
|
53
|
+
v-text="editAltTextOnly ? translations.save : translations.insert" />
|
|
55
54
|
<button
|
|
56
55
|
class="btn btn--secondary"
|
|
57
56
|
data-cy="uploadModal:abort"
|
|
@@ -72,12 +71,6 @@ import { DpUploadFiles } from '~/components/DpUploadFiles'
|
|
|
72
71
|
export default {
|
|
73
72
|
name: 'DpUploadModal',
|
|
74
73
|
|
|
75
|
-
emits: [
|
|
76
|
-
'add-alt',
|
|
77
|
-
'close',
|
|
78
|
-
'insert-image'
|
|
79
|
-
],
|
|
80
|
-
|
|
81
74
|
components: {
|
|
82
75
|
DpInput,
|
|
83
76
|
DpModal,
|
|
@@ -108,6 +101,12 @@ export default {
|
|
|
108
101
|
}
|
|
109
102
|
},
|
|
110
103
|
|
|
104
|
+
emits: [
|
|
105
|
+
'add-alt',
|
|
106
|
+
'close',
|
|
107
|
+
'insert-image'
|
|
108
|
+
],
|
|
109
|
+
|
|
111
110
|
data () {
|
|
112
111
|
return {
|
|
113
112
|
fileUrl: '',
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
<ul class="o-list suggestion__popup">
|
|
3
3
|
<template v-if="items.length">
|
|
4
4
|
<li
|
|
5
|
-
class="o-list__item suggestion__list-item u-ph-0_5 u-pv-0_25"
|
|
6
|
-
:class="{ 'suggestion__list-item--is-active': index === selectedIndex }"
|
|
7
5
|
v-for="(item, index) in items"
|
|
8
6
|
:key="item.id"
|
|
7
|
+
class="o-list__item suggestion__list-item u-ph-0_5 u-pv-0_25"
|
|
8
|
+
:class="{ 'suggestion__list-item--is-active': index === selectedIndex }"
|
|
9
9
|
@click="selectItem(index)">
|
|
10
10
|
<button class="btn--blank">
|
|
11
11
|
{{ item.label }}
|
|
12
12
|
</button>
|
|
13
13
|
</li>
|
|
14
14
|
</template>
|
|
15
|
-
<li
|
|
15
|
+
<li
|
|
16
|
+
v-else
|
|
17
|
+
class="o-list__item suggestion__list-item">
|
|
16
18
|
No result
|
|
17
19
|
</li>
|
|
18
20
|
</ul>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span
|
|
3
|
-
class="o-flyout"
|
|
4
|
-
v-on-click-outside="close"
|
|
5
3
|
ref="target"
|
|
4
|
+
v-on-click-outside="close"
|
|
5
|
+
class="o-flyout"
|
|
6
6
|
:class="{
|
|
7
7
|
'o-flyout--left': align === 'left',
|
|
8
8
|
'o-flyout--right': align === 'right',
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@click="toggle">
|
|
23
23
|
<slot
|
|
24
24
|
name="trigger"
|
|
25
|
-
|
|
25
|
+
:is-expanded="isExpanded">
|
|
26
26
|
<i class="fa fa-ellipsis-h" />
|
|
27
27
|
</slot>
|
|
28
28
|
</button>
|
|
@@ -44,8 +44,6 @@ export default {
|
|
|
44
44
|
onClickOutside: vOnClickOutside
|
|
45
45
|
},
|
|
46
46
|
|
|
47
|
-
emits: ['close', 'open'],
|
|
48
|
-
|
|
49
47
|
props: {
|
|
50
48
|
align: {
|
|
51
49
|
required: false,
|
|
@@ -92,6 +90,8 @@ export default {
|
|
|
92
90
|
},
|
|
93
91
|
},
|
|
94
92
|
|
|
93
|
+
emits: ['close', 'open'],
|
|
94
|
+
|
|
95
95
|
data () {
|
|
96
96
|
return {
|
|
97
97
|
isExpanded: false
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
PhArrowRight,
|
|
5
5
|
PhArrowsClockwise,
|
|
6
6
|
PhArrowUp,
|
|
7
|
+
PhCaretDoubleDown,
|
|
8
|
+
PhCaretDoubleUp,
|
|
7
9
|
PhCaretDown,
|
|
8
10
|
PhCaretLeft,
|
|
9
11
|
PhCaretRight,
|
|
10
12
|
PhCaretUp,
|
|
11
|
-
PhCaretDoubleDown,
|
|
12
|
-
PhCaretDoubleUp,
|
|
13
13
|
PhCheck,
|
|
14
14
|
PhCheckCircle,
|
|
15
15
|
PhCircleNotch,
|
|
16
16
|
PhClock,
|
|
17
|
+
PhClockCounterClockwise,
|
|
17
18
|
PhCopy,
|
|
18
19
|
PhCornersIn,
|
|
19
20
|
PhCornersOut,
|
|
20
|
-
PhClockCounterClockwise,
|
|
21
|
-
PhDownloadSimple,
|
|
22
21
|
PhDotsSixVertical,
|
|
23
22
|
PhDotsThree,
|
|
23
|
+
PhDownloadSimple,
|
|
24
24
|
PhEnvelopeSimple,
|
|
25
25
|
PhFaders,
|
|
26
26
|
PhFile,
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
PhPencilSimple,
|
|
36
36
|
PhPhone,
|
|
37
37
|
PhPlus,
|
|
38
|
-
PhRobot,
|
|
39
38
|
PhQuestion,
|
|
39
|
+
PhRobot,
|
|
40
40
|
PhSignOut,
|
|
41
41
|
PhTag,
|
|
42
42
|
PhTrash,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
IconName,
|
|
54
54
|
IconProportion,
|
|
55
55
|
IconSize,
|
|
56
|
-
PhosphorIconName} from '../../../../types'
|
|
56
|
+
PhosphorIconName } from '../../../../types'
|
|
57
57
|
import type { Component } from 'vue'
|
|
58
58
|
|
|
59
59
|
// ICONS
|
|
@@ -91,24 +91,24 @@ const mappedIcons: Record<PhosphorIconName | AliasedPhosphorIconName, Component>
|
|
|
91
91
|
'warning': PhWarning,
|
|
92
92
|
'x': PhX,
|
|
93
93
|
'x-circle': PhXCircle,
|
|
94
|
-
'arrows-clockwise': PhArrowsClockwise, //
|
|
95
|
-
'circle-notch': PhCircleNotch, //
|
|
96
|
-
'clock-counter-clockwise': PhClockCounterClockwise, //
|
|
97
|
-
'corners-in': PhCornersIn, //
|
|
98
|
-
'corners-out': PhCornersOut, //
|
|
99
|
-
'dots-six-vertical': PhDotsSixVertical, //
|
|
100
|
-
'download-simple': PhDownloadSimple, //
|
|
101
|
-
'envelope-simple': PhEnvelopeSimple, //
|
|
102
|
-
'gear-six': PhGearSix, //
|
|
103
|
-
'lock-simple': PhLockSimple, //
|
|
104
|
-
'lock-simple-open': PhLockSimpleOpen, //
|
|
105
|
-
'magnifying-glass': PhMagnifyingGlass, //
|
|
106
|
-
'pencil-simple': PhPencilSimple, //
|
|
107
|
-
'robot': PhRobot, //
|
|
108
|
-
'warning-diamond': PhWarningDiamond, //
|
|
94
|
+
'arrows-clockwise': PhArrowsClockwise, // Alias: refresh
|
|
95
|
+
'circle-notch': PhCircleNotch, // Alias: spinner
|
|
96
|
+
'clock-counter-clockwise': PhClockCounterClockwise, // Alias: history
|
|
97
|
+
'corners-in': PhCornersIn, // Alias: compress
|
|
98
|
+
'corners-out': PhCornersOut, // Alias: expand
|
|
99
|
+
'dots-six-vertical': PhDotsSixVertical, // Alias: drag-handle
|
|
100
|
+
'download-simple': PhDownloadSimple, // Alias: download
|
|
101
|
+
'envelope-simple': PhEnvelopeSimple, // Alias: mail
|
|
102
|
+
'gear-six': PhGearSix, // Alias: settings
|
|
103
|
+
'lock-simple': PhLockSimple, // Alias: lock
|
|
104
|
+
'lock-simple-open': PhLockSimpleOpen, // Alias: unlock
|
|
105
|
+
'magnifying-glass': PhMagnifyingGlass, // Alias: search
|
|
106
|
+
'pencil-simple': PhPencilSimple, // Alias: edit
|
|
107
|
+
'robot': PhRobot, // Alias: ai
|
|
108
|
+
'warning-diamond': PhWarningDiamond, // Alias: severe
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
//
|
|
111
|
+
// Icon names that are used as aliases - the phosphor icon has a different name
|
|
112
112
|
const mappedIconAliases: Record<IconAlias, Component> = {
|
|
113
113
|
'ai': PhRobot,
|
|
114
114
|
'cancel': PhX,
|
|
@@ -157,12 +157,12 @@ const iconsProportions: Record<string, IconProportion> = {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
const aliasedIconsProportions: Record<string, IconProportion> = {
|
|
160
|
-
'chevron-down': 'landscape', //
|
|
161
|
-
'chevron-left': 'portrait', //
|
|
162
|
-
'chevron-right': 'portrait', //
|
|
163
|
-
'chevron-up': 'landscape', //
|
|
164
|
-
'drag-handle': 'portrait', //
|
|
165
|
-
'mail': 'landscape', //
|
|
160
|
+
'chevron-down': 'landscape', // Alias for caret-down
|
|
161
|
+
'chevron-left': 'portrait', // Alias for caret-left
|
|
162
|
+
'chevron-right': 'portrait', // Alias for caret-right
|
|
163
|
+
'chevron-up': 'landscape', // Alias for caret-up
|
|
164
|
+
'drag-handle': 'portrait', // Alias for dots-six-vertical
|
|
165
|
+
'mail': 'landscape', // Alias for envelope-simple
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
// EXPORTS
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
:class="classes"
|
|
4
4
|
:for="labelFor">
|
|
5
5
|
<span>
|
|
6
|
-
<span v-cleanhtml="text" /><span
|
|
6
|
+
<span v-cleanhtml="text" /><span
|
|
7
|
+
v-if="required"
|
|
8
|
+
aria-hidden="true">*</span>
|
|
7
9
|
<dp-contextual-help
|
|
8
10
|
v-if="tooltip"
|
|
9
11
|
:class="prefixClass('ml-0.5')"
|
|
@@ -15,8 +17,8 @@
|
|
|
15
17
|
<span
|
|
16
18
|
v-for="(hint, i) in hints"
|
|
17
19
|
:key="i"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
v-cleanhtml="hint"
|
|
21
|
+
:class="prefixClass('inline-block')" />
|
|
20
22
|
</span>
|
|
21
23
|
</label>
|
|
22
24
|
</template>
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</button>
|
|
23
23
|
<div :class="prefixClass('o-modal__body ' + contentBodyClasses)">
|
|
24
24
|
<h2
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
v-if="hasHeader"
|
|
26
|
+
:class="prefixClass('font-size-h1 border--bottom u-pb-0_25 ' + contentHeaderClasses)">
|
|
27
27
|
<slot name="header" />
|
|
28
28
|
</h2>
|
|
29
29
|
<slot name="default" />
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
@after-leave="preventScroll(false)">
|
|
37
37
|
<div
|
|
38
38
|
v-if="isOpenModal"
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
:class="prefixClass('o-modal__backdrop')"
|
|
40
|
+
@click.prevent.stop="toggle()" />
|
|
41
41
|
</transition>
|
|
42
42
|
</div>
|
|
43
43
|
</template>
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
}
|
|
151
151
|
})
|
|
152
152
|
} else {
|
|
153
|
-
this.preventScroll(false) //
|
|
153
|
+
this.preventScroll(false) // It could be removed after dropping the assessment table
|
|
154
154
|
this.lastFocusedElement.focus()
|
|
155
155
|
}
|
|
156
156
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<vue-multiselect
|
|
3
|
+
v-dp-validate-multiselect="required"
|
|
3
4
|
v-bind="{
|
|
4
5
|
allowEmpty,
|
|
5
6
|
clearOnSelect,
|
|
@@ -31,7 +32,6 @@
|
|
|
31
32
|
:data-cy="dataCy"
|
|
32
33
|
:data-dp-validate-error-fieldname="dataDpValidateErrorFieldname"
|
|
33
34
|
:model-value="value"
|
|
34
|
-
v-dp-validate-multiselect="required"
|
|
35
35
|
@close="newVal => $emit('close', newVal)"
|
|
36
36
|
@update:model-value="newVal => $emit('input', newVal)"
|
|
37
37
|
@open="newVal => $emit('open', newVal)"
|
|
@@ -69,20 +69,18 @@
|
|
|
69
69
|
:props="props">
|
|
70
70
|
<div class="border-bottom">
|
|
71
71
|
<button
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</button>
|
|
72
|
+
class="btn--blank weight--bold u-ph-0_5 u-pv-0_25"
|
|
73
|
+
:disabled="value.length === options.length === 0"
|
|
74
|
+
type="button"
|
|
75
|
+
@click="$emit('select-all')"
|
|
76
|
+
v-text="translations.selectAll" />
|
|
78
77
|
|
|
79
78
|
<button
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</button>
|
|
79
|
+
class="btn--blank weight--bold u-ph-0_5 u-pv-0_25"
|
|
80
|
+
:disabled="value.length === 0"
|
|
81
|
+
type="button"
|
|
82
|
+
@click="$emit('unselect-all')"
|
|
83
|
+
v-text="translations.deselectAll" />
|
|
86
84
|
</div>
|
|
87
85
|
</slot>
|
|
88
86
|
</template>
|
|
@@ -105,18 +103,6 @@ export default {
|
|
|
105
103
|
dpValidateMultiselectDirective
|
|
106
104
|
},
|
|
107
105
|
|
|
108
|
-
emits: [
|
|
109
|
-
'close',
|
|
110
|
-
'input',
|
|
111
|
-
'open',
|
|
112
|
-
'remove',
|
|
113
|
-
'search-change',
|
|
114
|
-
'select',
|
|
115
|
-
'select-all',
|
|
116
|
-
'tag',
|
|
117
|
-
'unselect-all'
|
|
118
|
-
],
|
|
119
|
-
|
|
120
106
|
props: {
|
|
121
107
|
allowEmpty: {
|
|
122
108
|
type: Boolean,
|
|
@@ -303,6 +289,18 @@ export default {
|
|
|
303
289
|
}
|
|
304
290
|
},
|
|
305
291
|
|
|
292
|
+
emits: [
|
|
293
|
+
'close',
|
|
294
|
+
'input',
|
|
295
|
+
'open',
|
|
296
|
+
'remove',
|
|
297
|
+
'search-change',
|
|
298
|
+
'select',
|
|
299
|
+
'select-all',
|
|
300
|
+
'tag',
|
|
301
|
+
'unselect-all'
|
|
302
|
+
],
|
|
303
|
+
|
|
306
304
|
data () {
|
|
307
305
|
return {
|
|
308
306
|
translations: {
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
:key="`step_${idx}`"
|
|
6
6
|
:data-cy="`${dataCy}:${idx}`"
|
|
7
7
|
:disabled="idx > activeStep"
|
|
8
|
-
@click="changeStep(idx)"
|
|
9
8
|
class="btn--blank"
|
|
10
9
|
:aria-label="step.title ? step.title : step.label"
|
|
11
10
|
:class="[
|
|
12
11
|
prefixClass('c-multistep__step'),
|
|
13
12
|
idx === activeStep ? prefixClass('is-active') : '',
|
|
14
13
|
idx > activeStep ? prefixClass('is-disabled') : ''
|
|
15
|
-
]"
|
|
14
|
+
]"
|
|
15
|
+
@click="changeStep(idx)">
|
|
16
16
|
<span>
|
|
17
17
|
<i
|
|
18
18
|
v-if="step.icon"
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
<label
|
|
4
4
|
class="c-pager__dropdown-label u-m-0 u-p-0 weight--normal inline-block"
|
|
5
5
|
:aria-label="translations.selectNumberOfItems">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class="inline-block"
|
|
9
|
-
:current="currentPage"
|
|
10
|
-
:nonSlidingSize="3"
|
|
11
|
-
:slidingEndingSize="1"
|
|
12
|
-
:slidingWindowSize="1"
|
|
13
|
-
:total="totalPages || 1"
|
|
14
|
-
@page-change="handlePageChange" />
|
|
15
|
-
<div
|
|
6
|
+
<dp-sliding-pagination
|
|
7
|
+
v-if="totalItems > Math.min(...limits)"
|
|
16
8
|
class="inline-block"
|
|
17
|
-
|
|
9
|
+
:current="currentPage"
|
|
10
|
+
:non-sliding-size="3"
|
|
11
|
+
:sliding-ending-size="1"
|
|
12
|
+
:sliding-window-size="1"
|
|
13
|
+
:total="totalPages || 1"
|
|
14
|
+
@page-change="handlePageChange" />
|
|
15
|
+
<div
|
|
16
|
+
v-if="totalItems > Math.min(...limits)"
|
|
17
|
+
class="inline-block">
|
|
18
18
|
<dp-multiselect
|
|
19
19
|
v-model="itemsPerPage"
|
|
20
20
|
class="inline-block"
|
|
21
21
|
:options="filteredLimits"
|
|
22
22
|
:searchable="false"
|
|
23
23
|
selected-label=""
|
|
24
|
-
@select="handleSizeChange"/>
|
|
24
|
+
@select="handleSizeChange" />
|
|
25
25
|
</div>
|
|
26
26
|
<span v-else>{{ totalItems }}</span>
|
|
27
27
|
<span aria-hidden="true">
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
<dp-input
|
|
4
4
|
v-bind="inputAttributes"
|
|
5
5
|
:id="id"
|
|
6
|
+
v-model="currentValue"
|
|
6
7
|
:data-cy="dataCy"
|
|
7
8
|
has-icon
|
|
8
9
|
:required="required"
|
|
9
10
|
:rounded="rounded"
|
|
11
|
+
:pattern="pattern"
|
|
10
12
|
@blur="$emit('blur', currentValue)"
|
|
11
13
|
@input="onInput"
|
|
12
14
|
@enter="$emit('enter', currentValue)"
|
|
13
|
-
@focus="$emit('focus')"
|
|
14
|
-
:pattern="pattern"
|
|
15
|
-
v-model="currentValue" />
|
|
15
|
+
@focus="$emit('focus')" />
|
|
16
16
|
<button
|
|
17
17
|
v-if="!inputAttributes.disabled"
|
|
18
18
|
class="btn--blank o-link--default pr-0.5"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span
|
|
3
3
|
class="inline-flex"
|
|
4
|
-
:class="{ 'w-full': inputWidth
|
|
4
|
+
:class="{ 'w-full': inputWidth === '' }">
|
|
5
5
|
<dp-resettable-input
|
|
6
6
|
id="searchField"
|
|
7
7
|
v-model="searchTerm"
|
|
8
8
|
data-cy="searchField"
|
|
9
9
|
:class="cssClasses"
|
|
10
|
-
:input-attributes="{ placeholder: translations.search, type: 'search'}"
|
|
10
|
+
:input-attributes="{ placeholder: translations.search, type: 'search' }"
|
|
11
11
|
rounded="left"
|
|
12
12
|
@reset="handleReset"
|
|
13
13
|
@enter="handleSearch">
|
|
@@ -62,6 +62,11 @@ export default {
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
|
|
65
|
+
emits: [
|
|
66
|
+
'search',
|
|
67
|
+
'reset'
|
|
68
|
+
],
|
|
69
|
+
|
|
65
70
|
data () {
|
|
66
71
|
return {
|
|
67
72
|
translations: {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
for: nameOrId,
|
|
8
8
|
required: required
|
|
9
9
|
}"
|
|
10
|
-
class="mb-0.5"/><!--
|
|
10
|
+
class="mb-0.5" /><!--
|
|
11
11
|
--><select
|
|
12
12
|
:id="nameOrId"
|
|
13
13
|
:data-cy="dataCy"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
</option>
|
|
29
29
|
<option
|
|
30
30
|
v-for="(option, idx) in options"
|
|
31
|
+
:key="idx"
|
|
31
32
|
:selected="option.value === selected"
|
|
32
|
-
:value="option.value"
|
|
33
|
-
:key="idx">
|
|
33
|
+
:value="option.value">
|
|
34
34
|
{{ option.label }}
|
|
35
35
|
</option>
|
|
36
36
|
</select>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-if="hasDropdownContent"
|
|
14
14
|
data-cy="splitButtonTrigger"
|
|
15
15
|
class="c-splitbutton__trigger"
|
|
16
|
-
:class="{'is-open': isOpen}"
|
|
16
|
+
:class="{ 'is-open': isOpen }"
|
|
17
17
|
type="button"
|
|
18
18
|
aria-haspopup="true"
|
|
19
19
|
:aria-expanded="isOpen"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
v-if="hasDropdownContent"
|
|
27
27
|
class="c-splitbutton__dropdown"
|
|
28
28
|
role="menu"
|
|
29
|
-
:class="{'is-open': isOpen}">
|
|
29
|
+
:class="{ 'is-open': isOpen }">
|
|
30
30
|
<slot name="dropdown">
|
|
31
31
|
Dropdown Actions
|
|
32
32
|
</slot>
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
class="mb-0.5" /><!--
|
|
7
7
|
--><textarea
|
|
8
8
|
v-bind="allowedAttributes"
|
|
9
|
-
:name="name"
|
|
10
9
|
:id="id"
|
|
10
|
+
v-model="currentValue"
|
|
11
|
+
:name="name"
|
|
11
12
|
class="o-form__control-textarea"
|
|
12
13
|
:class="{ 'grow': growToParent, 'h-7': reducedHeight }"
|
|
13
14
|
:data-dp-validate-if="dataDpValidateIf ? true : null"
|
|
@@ -15,9 +16,8 @@
|
|
|
15
16
|
:data-cy="dataCy"
|
|
16
17
|
:disabled="disabled"
|
|
17
18
|
:maxlength="maxlength"
|
|
18
|
-
|
|
19
|
-
@input="$emit('input', currentValue)"
|
|
20
|
-
:required="required" />
|
|
19
|
+
:required="required"
|
|
20
|
+
@input="$emit('input', currentValue)" />
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
23
23
|
|