@policystudio/policy-studio-ui-vue 1.1.90-beta.10 → 1.1.90-beta.12
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/dist/contents/ComparisonData.js +376 -0
- package/dist/contents/ComparisonData.js.map +1 -0
- package/dist/contents/FlexibleData.js +501 -0
- package/dist/contents/FlexibleData.js.map +1 -0
- package/dist/contents/ResultsData.js +530 -0
- package/dist/contents/ResultsData.js.map +1 -0
- package/dist/index.js +114 -0
- package/dist/index.js.map +1 -0
- package/dist/stories/Accordion.stories.js +56 -0
- package/dist/stories/Accordion.stories.js.map +1 -0
- package/dist/stories/BadgeWithIcon.stories.js +28 -0
- package/dist/stories/BadgeWithIcon.stories.js.map +1 -0
- package/dist/stories/BarChart.stories.js +16 -0
- package/dist/stories/BarChart.stories.js.map +1 -0
- package/dist/stories/Breadcrumb.stories.js +21 -0
- package/dist/stories/Breadcrumb.stories.js.map +1 -0
- package/dist/stories/Button.stories.js +44 -0
- package/dist/stories/Button.stories.js.map +1 -0
- package/dist/stories/CardInfos.stories.js +13 -0
- package/dist/stories/CardInfos.stories.js.map +1 -0
- package/dist/stories/ChartLegend.stories.js +13 -0
- package/dist/stories/ChartLegend.stories.js.map +1 -0
- package/dist/stories/Checkbox.stories.js +44 -0
- package/dist/stories/Checkbox.stories.js.map +1 -0
- package/dist/stories/CheckboxSimple.stories.js +48 -0
- package/dist/stories/CheckboxSimple.stories.js.map +1 -0
- package/dist/stories/Chips.stories.js +27 -0
- package/dist/stories/Chips.stories.js.map +1 -0
- package/dist/stories/ClimateZoneBadge.stories.js +15 -0
- package/dist/stories/ClimateZoneBadge.stories.js.map +1 -0
- package/dist/stories/CostEffectBar.stories.js +21 -0
- package/dist/stories/CostEffectBar.stories.js.map +1 -0
- package/dist/stories/Datatable.stories.js +45 -0
- package/dist/stories/Datatable.stories.js.map +1 -0
- package/dist/stories/DateCardInfo.stories.js +18 -0
- package/dist/stories/DateCardInfo.stories.js.map +1 -0
- package/dist/stories/Dialog.stories.js +127 -0
- package/dist/stories/Dialog.stories.js.map +1 -0
- package/dist/stories/Draggable.stories.js +20 -0
- package/dist/stories/Draggable.stories.js.map +1 -0
- package/dist/stories/Dropdown.stories.js +98 -0
- package/dist/stories/Dropdown.stories.js.map +1 -0
- package/dist/stories/DropdownList.stories.js +208 -0
- package/dist/stories/DropdownList.stories.js.map +1 -0
- package/dist/stories/Header.stories.js +39 -0
- package/dist/stories/Header.stories.js.map +1 -0
- package/dist/stories/HighlightRippleDot.stories.js +13 -0
- package/dist/stories/HighlightRippleDot.stories.js.map +1 -0
- package/dist/stories/Icon.stories.js +19 -0
- package/dist/stories/Icon.stories.js.map +1 -0
- package/dist/stories/InlineSelector.stories.js +16 -0
- package/dist/stories/InlineSelector.stories.js.map +1 -0
- package/dist/stories/Input.stories.js +235 -0
- package/dist/stories/Input.stories.js.map +1 -0
- package/dist/stories/InputSelect.stories.js +28 -0
- package/dist/stories/InputSelect.stories.js.map +1 -0
- package/dist/stories/InputTextArea.stories.js +23 -0
- package/dist/stories/InputTextArea.stories.js.map +1 -0
- package/dist/stories/MiniTag.stories.js +44 -0
- package/dist/stories/MiniTag.stories.js.map +1 -0
- package/dist/stories/Playground.stories.js +14 -0
- package/dist/stories/Playground.stories.js.map +1 -0
- package/dist/stories/ProgressBar.stories.js +21 -0
- package/dist/stories/ProgressBar.stories.js.map +1 -0
- package/dist/stories/RadioButton.stories.js +36 -0
- package/dist/stories/RadioButton.stories.js.map +1 -0
- package/dist/stories/RadioButtonSimple.stories.js +40 -0
- package/dist/stories/RadioButtonSimple.stories.js.map +1 -0
- package/dist/stories/SimpleAlert.stories.js +19 -0
- package/dist/stories/SimpleAlert.stories.js.map +1 -0
- package/dist/stories/Slider.stories.js +70 -0
- package/dist/stories/Slider.stories.js.map +1 -0
- package/dist/stories/Switch.stories.js +35 -0
- package/dist/stories/Switch.stories.js.map +1 -0
- package/dist/stories/TabHeader.stories.js +48 -0
- package/dist/stories/TabHeader.stories.js.map +1 -0
- package/dist/stories/TableResults.stories.js +717 -0
- package/dist/stories/TableResults.stories.js.map +1 -0
- package/dist/stories/TagScope.stories.js +16 -0
- package/dist/stories/TagScope.stories.js.map +1 -0
- package/dist/stories/TestimonialCard.stories.js +24 -0
- package/dist/stories/TestimonialCard.stories.js.map +1 -0
- package/dist/stories/Toast.stories.js +51 -0
- package/dist/stories/Toast.stories.js.map +1 -0
- package/dist/stories/Toggle.stories.js +42 -0
- package/dist/stories/Toggle.stories.js.map +1 -0
- package/dist/stories/Tooltip.stories.js +108 -0
- package/dist/stories/Tooltip.stories.js.map +1 -0
- package/dist/util/GeneralFunctions.js +29 -0
- package/dist/util/GeneralFunctions.js.map +1 -0
- package/dist/util/imageLoader.js +52 -0
- package/dist/util/imageLoader.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +8 -4
- package/src/stories/ClimateZoneBadge.stories.ts +12 -22
- package/src/stories/CostEffectBar.stories.ts +19 -21
- package/src/stories/Dialog.stories.ts +2 -2
- package/src/stories/Draggable.stories.ts +18 -27
- package/src/stories/Dropdown.stories.ts +13 -2
- package/src/stories/Icon.stories.ts +1 -0
- package/src/stories/Input.stories.ts +1 -2
- package/src/stories/RadioButton.stories.ts +1 -2
- package/src/stories/TabHeader.stories.ts +1 -0
- package/src/util/GeneralFunctions.ts +6 -5
- package/src/util/imageLoader.ts +5 -3
- package/tsconfig.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
export const randomString = (length) => {
|
|
2
3
|
let result = ''
|
|
3
4
|
const characters =
|
|
4
5
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
|
|
@@ -8,8 +9,8 @@ export const randomString = (length:any) => {
|
|
|
8
9
|
}
|
|
9
10
|
return result
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
export const getParentScrollableEl = (node
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
export const getParentScrollableEl = (node) => {
|
|
13
14
|
if (node == null) {
|
|
14
15
|
return null
|
|
15
16
|
}
|
|
@@ -20,8 +21,8 @@ export const getParentScrollableEl = (node:any):any => {
|
|
|
20
21
|
return getParentScrollableEl(node.parentNode)
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
export const getParentVueComponentByName = (comp
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export const getParentVueComponentByName = (comp, name) => {
|
|
25
26
|
if (comp.$options.name === name) {
|
|
26
27
|
return comp
|
|
27
28
|
} else {
|
package/src/util/imageLoader.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
|
|
3
|
-
export default ({ imageUrl, onProgress = null, returnsBase64 = true }:{imageUrl:any, onProgress:any, returnsBase64:any}) => {
|
|
2
|
+
export default ({ imageUrl, onProgress = null, returnsBase64 = true }) => {
|
|
4
3
|
return new Promise((resolve, reject) => {
|
|
5
4
|
const xhr = new XMLHttpRequest()
|
|
6
5
|
let notifiedNotComputable = false
|
|
@@ -8,14 +7,16 @@ export default ({ imageUrl, onProgress = null, returnsBase64 = true }:{imageUrl:
|
|
|
8
7
|
xhr.open('GET', imageUrl, true)
|
|
9
8
|
xhr.responseType = 'arraybuffer'
|
|
10
9
|
|
|
11
|
-
xhr.onprogress = (ev
|
|
10
|
+
xhr.onprogress = (ev) => {
|
|
12
11
|
if (ev.lengthComputable) {
|
|
13
12
|
// @ts-ignore
|
|
14
13
|
const progress = parseInt((ev.loaded / ev.total) * 100)
|
|
14
|
+
// @ts-ignore
|
|
15
15
|
if(onProgress) onProgress(progress)
|
|
16
16
|
} else {
|
|
17
17
|
if (!notifiedNotComputable) {
|
|
18
18
|
notifiedNotComputable = true
|
|
19
|
+
// @ts-ignore
|
|
19
20
|
if(onProgress) onProgress(-1)
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -28,6 +29,7 @@ export default ({ imageUrl, onProgress = null, returnsBase64 = true }:{imageUrl:
|
|
|
28
29
|
reject(xhr)
|
|
29
30
|
} else {
|
|
30
31
|
if (!notifiedNotComputable) {
|
|
32
|
+
// @ts-ignore
|
|
31
33
|
if(onProgress) onProgress(100)
|
|
32
34
|
}
|
|
33
35
|
|
package/tsconfig.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"target": "esnext",
|
|
4
4
|
"module": "esnext",
|
|
5
5
|
"strict": true,
|
|
6
|
+
"jsx": "preserve",
|
|
6
7
|
"moduleResolution": "node",
|
|
7
8
|
"allowJs": true,
|
|
8
9
|
"noEmitOnError": false,
|
|
@@ -34,10 +35,9 @@
|
|
|
34
35
|
},
|
|
35
36
|
"include": [
|
|
36
37
|
"src/**/*.ts",
|
|
37
|
-
"src/**/*.
|
|
38
|
+
"src/**/*.stories.ts",
|
|
38
39
|
"src/**/*.d.ts",
|
|
39
40
|
"src/**/*.vue",
|
|
40
|
-
"src/**/*.stories.ts",
|
|
41
41
|
"tests/**/*.ts",
|
|
42
42
|
"tests/**/*.tsx",
|
|
43
43
|
],
|