@demos-europe/demosplan-ui 0.0.1 → 0.0.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/CHANGELOG.md +16 -0
- package/components/DpInput/DpInput.vue +1 -1
- package/components/DpLabel/DpLabel.vue +2 -2
- package/components/core/DpAutocomplete.vue +1 -2
- package/components/core/DpButtonRow.vue +1 -1
- package/components/core/DpChangeStateAtDate.vue +2 -2
- package/components/core/DpCheckboxGroup.vue +1 -1
- package/components/core/DpDashboardTaskCard.vue +3 -3
- package/components/core/DpDataTable/DpColumnSelector.vue +1 -1
- package/components/core/DpDataTable/DpDataTable.vue +2 -2
- package/components/core/DpDataTable/DpDataTableExtended.vue +2 -2
- package/components/core/DpDataTable/DpTableHeader.vue +2 -2
- package/components/core/DpDataTable/DpTableRow.vue +2 -2
- package/components/core/DpDataTable/DpWrapTrigger.vue +1 -1
- package/components/core/DpEditor/DpBoilerPlate.vue +1 -1
- package/components/core/DpEditor/DpBoilerPlateModal.vue +1 -1
- package/components/core/DpEditor/DpEditor.vue +4 -4
- package/components/core/DpEditor/DpLinkModal.vue +2 -2
- package/components/core/DpEditor/DpRecommendationModal/DpInsertableRecommendation.vue +1 -1
- package/components/core/DpEditor/DpRecommendationModal.vue +2 -2
- package/components/core/DpEditor/DpUploadModal.vue +1 -1
- package/components/core/DpInlineNotification.vue +1 -1
- package/components/core/DpModal.vue +2 -2
- package/components/core/DpResettableInput.vue +1 -1
- package/components/core/DpSlidebar.vue +2 -2
- package/components/core/DpSlidingPagination.vue +1 -1
- package/components/core/DpTabs/DpTabs.vue +1 -1
- package/components/core/DpTextWrapper.vue +1 -1
- package/components/core/DpToggleForm.vue +1 -1
- package/components/core/DpTreeList/DpTreeList.vue +1 -1
- package/components/core/DpTreeList/DpTreeListNode.vue +1 -1
- package/components/core/DpUpload/DpUpload.vue +1 -2
- package/components/core/DpUpload/DpUploadFiles.vue +2 -2
- package/components/core/DpUpload/DpUploadedFile.vue +2 -2
- package/components/core/DpUpload/DpUploadedFileList.vue +1 -1
- package/components/core/DpUpload/utils/GetFileIdsByHash.js +1 -1
- package/components/core/DpUpload/utils/UppyTranslations.js +1 -1
- package/components/core/MultistepNav.vue +1 -1
- package/components/core/form/DpCheckbox.vue +2 -2
- package/components/core/form/DpDateRangePicker.vue +1 -1
- package/components/core/form/DpDatetimePicker.vue +1 -1
- package/components/core/form/DpRadio.vue +2 -2
- package/components/core/form/DpSearchField.vue +1 -1
- package/components/core/form/DpSelect.vue +2 -2
- package/components/core/form/DpTextArea.vue +3 -3
- package/components/core/form/DpTimePicker.vue +2 -2
- package/components/core/notify/DpNotifyContainer.vue +2 -2
- package/components/core/notify/DpNotifyMessage.vue +1 -1
- package/components/core/shared/DpStickyElement.vue +1 -1
- package/directives/CleanHtml/CleanHtml.stories.mdx +2 -2
- package/directives/Tooltip/Tooltip.stories.mdx +1 -1
- package/lib/prefixClass.js +2 -0
- package/mixins/prefixClassMixin.js +1 -0
- package/package.json +2 -1
- package/shared/props.js +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## v0.0.2
|
|
5
|
+
2022-11-16
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
- Fix path declarations to have a buildable package
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
- Deprecate prefixClass and prefixClassMixin
|
|
12
|
+
|
|
13
|
+
## v0.0.1
|
|
14
|
+
2022-11-15
|
|
15
|
+
|
|
16
|
+
- This is unfinished and broken. We just need a startingpoint
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
import { exactlengthHint, maxlengthHint, minlengthHint } from '../../utils/lengthHint'
|
|
49
49
|
import DpLabel from '../DpLabel/DpLabel'
|
|
50
50
|
import { length } from '../../shared/props'
|
|
51
|
-
import { prefixClassMixin } from '
|
|
51
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
54
|
name: 'DpInput',
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script>
|
|
35
|
-
import { CleanHtml } from '
|
|
35
|
+
import { CleanHtml } from '../../directives'
|
|
36
36
|
import { de } from '../shared/translations'
|
|
37
|
-
import { prefixClassMixin } from '
|
|
37
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
38
38
|
|
|
39
39
|
export default {
|
|
40
40
|
name: 'DpLabel',
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
|
-
import { dpApi } from 'demosplan-utils'
|
|
33
|
-
import { prefixClassMixin } from 'demosplan-ui/mixins'
|
|
32
|
+
import { dpApi, prefixClassMixin } from '@demos-europe/demosplan-utils'
|
|
34
33
|
import VueOmnibox from 'vue-omnibox'
|
|
35
34
|
|
|
36
35
|
export default {
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script>
|
|
95
|
-
import { formatDate, toDate } from 'demosplan-utils'
|
|
95
|
+
import { formatDate, toDate } from '@demos-europe/demosplan-utils'
|
|
96
96
|
import DpDatepicker from './form/DpDatepicker'
|
|
97
|
-
import { DpLabel } from '
|
|
97
|
+
import { DpLabel } from '../index'
|
|
98
98
|
import DpSelect from './form/DpSelect'
|
|
99
99
|
|
|
100
100
|
export default {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
|
-
import { checkResponse, dpApi } from 'demosplan-utils'
|
|
28
|
-
import { CleanHtml } from '
|
|
29
|
-
import { DpButton } from '
|
|
27
|
+
import { checkResponse, dpApi } from '@demos-europe/demosplan-utils'
|
|
28
|
+
import { CleanHtml } from '../../directives/index'
|
|
29
|
+
import { DpButton } from '../index'
|
|
30
30
|
import DpCard from './DpCard'
|
|
31
31
|
|
|
32
32
|
export default {
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
</documentation>
|
|
68
68
|
|
|
69
69
|
<script>
|
|
70
|
-
import { CleanHtml } from '
|
|
70
|
+
import { CleanHtml } from '../../../directives'
|
|
71
71
|
import DomPurify from 'dompurify'
|
|
72
|
-
import { DpLoading } from '
|
|
72
|
+
import { DpLoading } from '../../index'
|
|
73
73
|
import DpTableHeader from './DpTableHeader'
|
|
74
74
|
import DpTableRow from './DpTableRow'
|
|
75
75
|
import draggable from 'vuedraggable'
|
|
@@ -146,9 +146,9 @@ import DomPurify from 'dompurify'
|
|
|
146
146
|
import DpDataTable from './DpDataTable'
|
|
147
147
|
import DpSelectPageItemCount from './DpSelectPageItemCount'
|
|
148
148
|
import DpStickyElement from '../shared/DpStickyElement'
|
|
149
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
149
|
+
import { hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
150
150
|
import SlidingPagination from 'vue-sliding-pagination'
|
|
151
|
-
import { tableSelectAllItems } from 'demosplan-utils/mixins'
|
|
151
|
+
import { tableSelectAllItems } from '@demos-europe/demosplan-utils/mixins'
|
|
152
152
|
|
|
153
153
|
export default {
|
|
154
154
|
name: 'DpDataTableExtended',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
</license>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
-
import { DpIcon } from '
|
|
11
|
+
import { DpIcon } from '../index'
|
|
12
12
|
import DpWrapTrigger from './DpWrapTrigger'
|
|
13
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
13
|
+
import { hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
14
14
|
import { renderResizeWrapper } from './lib/ResizableColumns'
|
|
15
15
|
|
|
16
16
|
export default {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
import DomPurify from 'dompurify'
|
|
12
|
-
import { DpIcon } from '
|
|
12
|
+
import { DpIcon } from '../../index'
|
|
13
13
|
import DpWrapTrigger from './DpWrapTrigger'
|
|
14
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
14
|
+
import { hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
name: 'DpTableRow',
|
|
@@ -54,7 +54,7 @@ import BoilerplatesStore from '@DpJs/store/procedure/Boilerplates'
|
|
|
54
54
|
import DpBoilerPlate from './DpBoilerPlate'
|
|
55
55
|
import DpButtonRow from '../DpButtonRow'
|
|
56
56
|
import DpModal from '../DpModal'
|
|
57
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
57
|
+
import { hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
58
58
|
|
|
59
59
|
export default {
|
|
60
60
|
name: 'DpBoilerPlateModal',
|
|
@@ -402,9 +402,9 @@ import {
|
|
|
402
402
|
EditorMenuBar // Renderless menubar
|
|
403
403
|
} from 'tiptap'
|
|
404
404
|
|
|
405
|
-
import { CleanHtml } from '
|
|
405
|
+
import { CleanHtml } from '../../../directives'
|
|
406
406
|
import { createSuggestion } from './libs/editorBuildSuggestion'
|
|
407
|
-
import { DpIcon } from '
|
|
407
|
+
import { DpIcon } from '../../index'
|
|
408
408
|
import EditorCustomDelete from './libs/editorCustomDelete'
|
|
409
409
|
import EditorCustomImage from './libs/editorCustomImage'
|
|
410
410
|
import EditorCustomInsert from './libs/editorCustomInsert'
|
|
@@ -413,8 +413,8 @@ import EditorCustomMark from './libs/editorCustomMark'
|
|
|
413
413
|
import EditorInsertAtCursorPos from './libs/editorInsertAtCursorPos'
|
|
414
414
|
import EditorObscure from './libs/editorObscure'
|
|
415
415
|
import { handleWordPaste } from './libs/handleWordPaste'
|
|
416
|
-
import { maxlengthHint } from '
|
|
417
|
-
import { prefixClassMixin } from 'demosplan-
|
|
416
|
+
import { maxlengthHint } from '../../../utils/lengthHint'
|
|
417
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
418
418
|
|
|
419
419
|
export default {
|
|
420
420
|
name: 'DpEditor',
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
<script>
|
|
58
58
|
import DpButtonRow from '../DpButtonRow'
|
|
59
59
|
import DpCheckbox from '../form/DpCheckbox'
|
|
60
|
-
import { DpInput } from '
|
|
60
|
+
import { DpInput } from '../index'
|
|
61
61
|
import DpModal from '../DpModal'
|
|
62
|
-
import { dpValidateMixin } from 'demosplan-utils/mixins'
|
|
62
|
+
import { dpValidateMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
63
63
|
|
|
64
64
|
export default {
|
|
65
65
|
name: 'DpLinkModal',
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
</template>
|
|
70
70
|
|
|
71
71
|
<script>
|
|
72
|
-
import { DpLabel, DpLoading } from '
|
|
72
|
+
import { DpLabel, DpLoading } from '../index'
|
|
73
73
|
import { mapMutations, mapState } from 'vuex'
|
|
74
74
|
import dataTableSearch from '../DpDataTable/DataTableSearch'
|
|
75
|
-
import { dpApi } from 'demosplan-utils'
|
|
75
|
+
import { dpApi } from '@demos-europe/demosplan-utils'
|
|
76
76
|
import DpInsertableRecommendation from './DpRecommendationModal/DpInsertableRecommendation'
|
|
77
77
|
import DpModal from '../DpModal'
|
|
78
78
|
import DpSearchField from '../form/DpSearchField'
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
</template>
|
|
51
51
|
|
|
52
52
|
<script>
|
|
53
|
-
import { DpIcon } from '
|
|
54
|
-
import { prefixClassMixin } from 'demosplan-
|
|
53
|
+
import { DpIcon } from '../index'
|
|
54
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
55
55
|
|
|
56
56
|
export default {
|
|
57
57
|
name: 'DpModal',
|
|
@@ -46,7 +46,7 @@ To provide the interface for dpInput all configuration attributes for the input
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script>
|
|
49
|
-
import { DpIcon, DpInput } from '
|
|
49
|
+
import { DpIcon, DpInput } from '../index'
|
|
50
50
|
|
|
51
51
|
export default {
|
|
52
52
|
name: 'DpResettableInput',
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
|
-
import { hasOwnProp, SideNav } from 'demosplan-utils'
|
|
43
|
-
import { DpIcon } from '
|
|
42
|
+
import { hasOwnProp, SideNav } from '@demos-europe/demosplan-utils'
|
|
43
|
+
import { DpIcon } from '../index'
|
|
44
44
|
|
|
45
45
|
export default {
|
|
46
46
|
name: 'DpSlidebar',
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</template>
|
|
91
91
|
|
|
92
92
|
<script>
|
|
93
|
-
import { deepMerge, hasOwnProp, Stickier } from 'demosplan-utils'
|
|
93
|
+
import { deepMerge, hasOwnProp, Stickier } from '@demos-europe/demosplan-utils'
|
|
94
94
|
import DpTreeListCheckbox from './DpTreeListCheckbox'
|
|
95
95
|
import DpTreeListNode from './DpTreeListNode'
|
|
96
96
|
import DpTreeListToggle from './DpTreeListToggle'
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
<script>
|
|
110
110
|
import { checkboxWidth, dragHandleWidth, levelIndentationWidth } from './utils/constants'
|
|
111
|
-
import { DpIcon } from '
|
|
111
|
+
import { DpIcon } from '../index'
|
|
112
112
|
import DpTreeListCheckbox from './DpTreeListCheckbox'
|
|
113
113
|
import DpTreeListToggle from './DpTreeListToggle'
|
|
114
114
|
import draggable from 'vuedraggable'
|
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
import { getFileTypes, hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
15
16
|
import { de } from './utils/UppyTranslations'
|
|
16
17
|
import DragDrop from '@uppy/drag-drop'
|
|
17
|
-
import { getFileTypes } from 'demosplan-utils/lib/FileInfo'
|
|
18
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
19
18
|
import ProgressBar from '@uppy/progress-bar'
|
|
20
19
|
import Tus from '@uppy/tus'
|
|
21
20
|
import Uppy from '@uppy/core'
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
</template>
|
|
52
52
|
|
|
53
53
|
<script>
|
|
54
|
-
import { DpLabel } from '
|
|
54
|
+
import { DpLabel } from '../index'
|
|
55
55
|
import DpUpload from './DpUpload'
|
|
56
56
|
import DpUploadedFileList from './DpUploadedFileList'
|
|
57
|
-
import { prefixClassMixin } from 'demosplan-
|
|
57
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
58
58
|
|
|
59
59
|
export default {
|
|
60
60
|
name: 'DpUploadFiles',
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script>
|
|
43
|
-
import { getFileInfo } from 'demosplan-utils
|
|
44
|
-
import { prefixClassMixin } from 'demosplan-
|
|
43
|
+
import { getFileInfo } from '@demos-europe/demosplan-utils'
|
|
44
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
47
|
name: 'DpUploadedFile',
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<script>
|
|
40
|
-
import { DpLabel } from '
|
|
41
|
-
import { prefixClassMixin } from 'demosplan-
|
|
40
|
+
import { DpLabel } from '../index'
|
|
41
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
42
42
|
|
|
43
43
|
export default {
|
|
44
44
|
name: 'DpCheckbox',
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
|
-
import { DpLabel } from '
|
|
33
|
-
import { prefixClassMixin } from 'demosplan-
|
|
32
|
+
import { DpLabel } from '../index'
|
|
33
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
34
34
|
|
|
35
35
|
export default {
|
|
36
36
|
name: 'DpRadio',
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
|
-
import { DpLabel } from '
|
|
48
|
-
import { prefixClassMixin } from 'demosplan-
|
|
47
|
+
import { DpLabel } from '../index'
|
|
48
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
51
|
name: 'DpSelect',
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script>
|
|
31
|
-
import { attributes, length } from '
|
|
32
|
-
import { maxlengthHint } from '
|
|
31
|
+
import { attributes, length } from '../../../shared/props'
|
|
32
|
+
import { maxlengthHint } from '../../../utils/lengthHint'
|
|
33
33
|
|
|
34
34
|
export default {
|
|
35
35
|
name: 'DpTextArea',
|
|
36
36
|
|
|
37
37
|
components: {
|
|
38
38
|
DpLabel: async () => {
|
|
39
|
-
const { DpLabel } = await import('
|
|
39
|
+
const { DpLabel } = await import('../index')
|
|
40
40
|
return DpLabel
|
|
41
41
|
}
|
|
42
42
|
},
|
|
@@ -96,11 +96,11 @@ export default {
|
|
|
96
96
|
|
|
97
97
|
components: {
|
|
98
98
|
DpInput: async () => {
|
|
99
|
-
const { DpInput } = await import('
|
|
99
|
+
const { DpInput } = await import('../index')
|
|
100
100
|
return DpInput
|
|
101
101
|
},
|
|
102
102
|
DpLabel: async () => {
|
|
103
|
-
const { DpLabel } = await import('
|
|
103
|
+
const { DpLabel } = await import('../index')
|
|
104
104
|
return DpLabel
|
|
105
105
|
},
|
|
106
106
|
DpResettableInput: () => import('../DpResettableInput')
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
<script>
|
|
27
27
|
import { mapMutations, mapState } from 'vuex'
|
|
28
28
|
import DpNotifyMessage from './DpNotifyMessage'
|
|
29
|
-
import { hasOwnProp } from 'demosplan-utils'
|
|
30
|
-
import { prefixClassMixin } from 'demosplan-
|
|
29
|
+
import { hasOwnProp } from '@demos-europe/demosplan-utils'
|
|
30
|
+
import { prefixClassMixin } from '@demos-europe/demosplan-utils/mixins'
|
|
31
31
|
|
|
32
32
|
export default {
|
|
33
33
|
name: 'DpNotifyContainer',
|
|
@@ -27,7 +27,7 @@ Malicious code is filtered out, according to the DOMPurify [default behavior](ht
|
|
|
27
27
|
<span v-cleanhtml="someValue">
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
30
|
-
import { CleanHtml } from '
|
|
30
|
+
import { CleanHtml } from './CleanHtml'
|
|
31
31
|
|
|
32
32
|
export default {
|
|
33
33
|
name: 'MyComponent',
|
|
@@ -50,7 +50,7 @@ Malicious code is filtered out, and only p and span tags are allowed.
|
|
|
50
50
|
<span v-cleanhtml="{ content: someValue, options: { ALLOWED_TAGS: ['p', 'span'] }">
|
|
51
51
|
</div>
|
|
52
52
|
</template>
|
|
53
|
-
import { CleanHtml } from '
|
|
53
|
+
import { CleanHtml } from './CleanHtml'
|
|
54
54
|
|
|
55
55
|
export default {
|
|
56
56
|
name: 'MyComponent',
|
package/lib/prefixClass.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demos-europe/demosplan-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@braintree/sanitize-url": "^6.0.1",
|
|
9
|
+
"@demos-europe/demosplan-utils": "^0.0.2",
|
|
9
10
|
"@uppy/core": "^3.0.1",
|
|
10
11
|
"@uppy/drag-drop": "^3.0.0",
|
|
11
12
|
"@uppy/progress-bar": "^3.0.0",
|
package/shared/props.js
CHANGED