forstok-ui-lib 6.5.6 → 6.5.7
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/index.d.ts +3 -1
- package/dist/index.js +170 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +361 -336
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/javascripts/function.ts +12 -0
- package/src/assets/stylesheets/shares.styles.ts +27 -0
package/package.json
CHANGED
|
@@ -678,4 +678,16 @@ export const evSetTotal = (totalCount: number, totalEl: HTMLSpanElement, callbac
|
|
|
678
678
|
export const humanise = (value?: string) => {
|
|
679
679
|
const underscoreMatch = /_/g, underscoreMatch2 = /-/g
|
|
680
680
|
return value ? value.replace(underscoreMatch, " ").replace(underscoreMatch2, " ") : ''
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export const generateAddress = (address?: TObject | null) => {
|
|
684
|
+
let result: string = '-'
|
|
685
|
+
if (address) {
|
|
686
|
+
const firstLine = ((!address.address1 && !address.address2) ? '' : ((address.address1 ? address.address1 + ', ' : '') + (address.address2 || '') + '<br/>') ),
|
|
687
|
+
secondLine = ((!address.subDistrict && !address.district && !address.city) ? '' : ((address.subDistrict ? address.subDistrict + ', ' : '') + (address.district ? address.district + ', ' : '') + (address.city || '') + '<br/>') ),
|
|
688
|
+
thirdLine = ((address.postalCode ? (address.postalCode + '<br/>') : '')),
|
|
689
|
+
lastLine = address.phone || ''
|
|
690
|
+
result = firstLine + secondLine + thirdLine + lastLine
|
|
691
|
+
}
|
|
692
|
+
return result
|
|
681
693
|
}
|
|
@@ -4158,3 +4158,30 @@ export const TableContentWrapper = styled.div<{ $mode?: 'package' }>`
|
|
|
4158
4158
|
}
|
|
4159
4159
|
`}
|
|
4160
4160
|
`
|
|
4161
|
+
|
|
4162
|
+
export const TableBundleColumn = styled.article`
|
|
4163
|
+
margin: 15px 0 0 42px;
|
|
4164
|
+
position: relative;
|
|
4165
|
+
&:before {
|
|
4166
|
+
position: absolute;
|
|
4167
|
+
width: 1px;
|
|
4168
|
+
background-color: #E3E3E3;
|
|
4169
|
+
height: 100%;
|
|
4170
|
+
content: "";
|
|
4171
|
+
top: -6px;
|
|
4172
|
+
left: -28px;
|
|
4173
|
+
}
|
|
4174
|
+
${TableColumnGroup} {
|
|
4175
|
+
&:not(:first-child) {
|
|
4176
|
+
margin-top: 10px;
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
${ItemQtyLabel} {
|
|
4180
|
+
display: none !important;
|
|
4181
|
+
}
|
|
4182
|
+
@media only screen and (min-width: 768px) {
|
|
4183
|
+
${ItemQtyLabel} {
|
|
4184
|
+
display: block !important;
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
`
|