wave-ui 3.27.2 → 4.0.0
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/types/types/$waveui.d.ts +21 -1
- package/dist/types/types/colors.d.ts +2 -0
- package/dist/types/types/components/WAccordion.d.ts +99 -6
- package/dist/types/types/components/WAutocomplete.d.ts +437 -0
- package/dist/types/types/components/WBreadcrumbs.d.ts +7 -0
- package/dist/types/types/components/WButton.d.ts +7 -0
- package/dist/types/types/components/WCheckbox.d.ts +34 -0
- package/dist/types/types/components/WCheckboxes.d.ts +30 -0
- package/dist/types/types/components/WInput.d.ts +34 -0
- package/dist/types/types/components/WList.d.ts +7 -0
- package/dist/types/types/components/WMenu.d.ts +12 -6
- package/dist/types/types/components/WRadio.d.ts +34 -0
- package/dist/types/types/components/WRadios.d.ts +30 -0
- package/dist/types/types/components/WScrollable.d.ts +143 -0
- package/dist/types/types/components/WScrollable.js +2 -0
- package/dist/types/types/components/WSelect.d.ts +34 -0
- package/dist/types/types/components/WSwitch.d.ts +34 -0
- package/dist/types/types/components/WTable.d.ts +7 -0
- package/dist/types/types/components/WTabs.d.ts +7 -0
- package/dist/types/types/components/WTag.d.ts +7 -0
- package/dist/types/types/components/WTooltip.d.ts +20 -7
- package/dist/types/types/components/WTransitions.d.ts +104 -0
- package/dist/types/types/components/WTransitions.js +2 -0
- package/dist/types/types/components/WTree.d.ts +7 -0
- package/dist/types/types/components/index.d.ts +3 -1
- package/dist/wave-ui.cjs.js +3 -3
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.esm.js +2190 -1350
- package/dist/wave-ui.umd.js +3 -3
- package/package.json +6 -6
- package/src/wave-ui/components/index.js +0 -1
- package/src/wave-ui/components/transitions/w-transition-bounce.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-expand.vue +3 -2
- package/src/wave-ui/components/transitions/w-transition-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-scale-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-scale.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-slide-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-slide.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-twist.vue +2 -1
- package/src/wave-ui/components/w-accordion/index.vue +15 -6
- package/src/wave-ui/components/w-accordion/item.vue +71 -26
- package/src/wave-ui/components/w-alert.vue +27 -29
- package/src/wave-ui/components/w-autocomplete.vue +626 -192
- package/src/wave-ui/components/w-badge.vue +54 -53
- package/src/wave-ui/components/w-breadcrumbs.vue +20 -11
- package/src/wave-ui/components/w-button/button.vue +36 -24
- package/src/wave-ui/components/w-button/index.vue +6 -5
- package/src/wave-ui/components/w-card.vue +8 -7
- package/src/wave-ui/components/w-checkbox.vue +31 -11
- package/src/wave-ui/components/w-checkboxes.vue +21 -3
- package/src/wave-ui/components/w-confirm.vue +22 -22
- package/src/wave-ui/components/w-dialog.vue +1 -1
- package/src/wave-ui/components/w-divider.vue +5 -5
- package/src/wave-ui/components/w-drawer.vue +3 -3
- package/src/wave-ui/components/w-form-element.vue +2 -2
- package/src/wave-ui/components/w-icon.vue +12 -14
- package/src/wave-ui/components/w-image.vue +1 -1
- package/src/wave-ui/components/w-input.vue +43 -25
- package/src/wave-ui/components/w-list.vue +23 -12
- package/src/wave-ui/components/w-menu.vue +57 -55
- package/src/wave-ui/components/w-notification.vue +4 -4
- package/src/wave-ui/components/w-progress.vue +6 -7
- package/src/wave-ui/components/w-radio.vue +32 -7
- package/src/wave-ui/components/w-radios.vue +28 -3
- package/src/wave-ui/components/w-rating.vue +7 -9
- package/src/wave-ui/components/w-scrollable.vue +670 -97
- package/src/wave-ui/components/w-select.vue +119 -101
- package/src/wave-ui/components/w-slider.vue +26 -26
- package/src/wave-ui/components/w-spinner.vue +5 -7
- package/src/wave-ui/components/w-switch.vue +71 -47
- package/src/wave-ui/components/w-table.vue +69 -36
- package/src/wave-ui/components/w-tabs/index.vue +31 -24
- package/src/wave-ui/components/w-tag.vue +49 -38
- package/src/wave-ui/components/w-textarea.vue +22 -22
- package/src/wave-ui/components/w-timeline.vue +6 -6
- package/src/wave-ui/components/w-toolbar.vue +8 -8
- package/src/wave-ui/components/w-tooltip.vue +30 -25
- package/src/wave-ui/components/w-tree.vue +35 -16
- package/src/wave-ui/core.js +11 -1
- package/src/wave-ui/mixins/detachable.js +98 -43
- package/src/wave-ui/mixins/ripple.js +39 -0
- package/src/wave-ui/scss/_base.scss +82 -17
- package/src/wave-ui/scss/_colors.scss +6 -75
- package/src/wave-ui/scss/_layout.scss +39 -47
- package/src/wave-ui/scss/_ripple.scss +37 -0
- package/src/wave-ui/scss/_transitions.scss +19 -19
- package/src/wave-ui/scss/_typography.scss +8 -9
- package/src/wave-ui/scss/index.scss +1 -0
- package/src/wave-ui/scss/variables/_mixins.scss +24 -25
- package/src/wave-ui/scss/variables/_variables.scss +4 -151
- package/src/wave-ui/utils/colors.js +7 -4
- package/src/wave-ui/utils/config.js +5 -4
- package/src/wave-ui/utils/dynamic-css.js +42 -20
- package/src/wave-ui/utils/ripple.js +72 -0
- package/src/wave-ui/utils/wave-ripple-directive.js +40 -0
- package/dist/types/types/components/WApp.d.ts +0 -83
- package/src/wave-ui/components/w-app.vue +0 -24
- /package/dist/types/types/components/{WApp.js → WAutocomplete.js} +0 -0
|
@@ -19,15 +19,14 @@ const config = reactive({
|
|
|
19
19
|
// Note: colorShades must be enabled for this to work.
|
|
20
20
|
colorShadeCssVariables: false,
|
|
21
21
|
|
|
22
|
-
//
|
|
23
|
-
// Can't have this option: color palette is generated via SCSS in colors.scss.
|
|
24
|
-
// colorPalette: true,
|
|
22
|
+
// Built-in palette colors and shades always generate CSS variables.
|
|
25
23
|
|
|
26
24
|
breakpointSpaces: false, // Generate margin & padding classes for each breakpoint. E.g. `sm-ma2`.
|
|
27
25
|
// Generate helper classes for each breakpoint.
|
|
28
26
|
// E.g. `sm-text-left`, `xs-hide`.
|
|
29
27
|
breakpointLayoutClasses: true,
|
|
30
|
-
grid: 12
|
|
28
|
+
grid: 12,
|
|
29
|
+
appClasses: '' // Custom CSS classes to add to the .w-app element.
|
|
31
30
|
},
|
|
32
31
|
colors: {
|
|
33
32
|
// Default colors of Wave UI. Can be overridden from the Wave UI user config on init.
|
|
@@ -57,6 +56,8 @@ const config = reactive({
|
|
|
57
56
|
align: 'right',
|
|
58
57
|
transition: 'default' // Sliding from the side by default.
|
|
59
58
|
},
|
|
59
|
+
// Default ripple for v-wave-ripple and components (unless their `no-ripple` prop is set).
|
|
60
|
+
ripple: true,
|
|
60
61
|
presets: {} // User presets for each component.
|
|
61
62
|
})
|
|
62
63
|
|
|
@@ -9,13 +9,26 @@ const cssVars = {
|
|
|
9
9
|
let breakpointsDef = { keys: [], values: [] }
|
|
10
10
|
let currentBreakpoint = null
|
|
11
11
|
|
|
12
|
+
const generatePaletteVariables = colorPalette => {
|
|
13
|
+
let cssVariablesString = ''
|
|
14
|
+
|
|
15
|
+
colorPalette.forEach(({ label, color, shades = [] }) => {
|
|
16
|
+
cssVariablesString += `--w-${label}-color: ${color};`
|
|
17
|
+
shades.forEach(shade => {
|
|
18
|
+
cssVariablesString += `--w-${shade.label}-color: ${shade.color};`
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
return `:root{${cssVariablesString}}`
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
// Generates the CSS for all the dynamic colors and shades. E.g.
|
|
13
26
|
// :root {[color1-variable], [color2-variable]}
|
|
14
27
|
// .color1--bg {background-color: [color1-variable]}
|
|
15
28
|
// .color1 {color: [color1-variable]}
|
|
16
29
|
const generateColors = (themeColors, generateShadeCssVariables) => {
|
|
17
30
|
let styles = ''
|
|
18
|
-
|
|
31
|
+
let cssVariablesString = ''
|
|
19
32
|
|
|
20
33
|
// Extract status colors and place them after the other colors.
|
|
21
34
|
const { info, warning, success, error, shades, ...colors } = themeColors
|
|
@@ -30,9 +43,10 @@ const generateColors = (themeColors, generateShadeCssVariables) => {
|
|
|
30
43
|
}
|
|
31
44
|
// The shades don't need css vars.
|
|
32
45
|
for (const colorName in shades) {
|
|
46
|
+
const colorValue = generateShadeCssVariables ? `var(--w-${colorName}-color)` : shades[colorName]
|
|
33
47
|
styles +=
|
|
34
|
-
`${cssScope} .${colorName}--bg{background-color:${
|
|
35
|
-
`${cssScope} .${colorName}{color:${
|
|
48
|
+
`${cssScope} .${colorName}--bg{background-color:${colorValue}}` +
|
|
49
|
+
`${cssScope} .${colorName}{color:${colorValue}}`
|
|
36
50
|
}
|
|
37
51
|
|
|
38
52
|
// Creating CSS3 variables.
|
|
@@ -41,14 +55,12 @@ const generateColors = (themeColors, generateShadeCssVariables) => {
|
|
|
41
55
|
// Status colors must remain after the other colors so they have priority in form validations.
|
|
42
56
|
// That only makes sense when there are 2 colors on the same element: e.g. `span.primary.error`.
|
|
43
57
|
const allColors = { ...colors, info, warning, success, error }
|
|
44
|
-
for (const colorName in allColors)
|
|
58
|
+
for (const colorName in allColors) {
|
|
59
|
+
cssVariablesString += `--w-${colorName}-color: ${allColors[colorName]?.color ?? allColors[colorName]};`
|
|
60
|
+
}
|
|
45
61
|
if (generateShadeCssVariables) {
|
|
46
|
-
for (const colorName in shades)
|
|
62
|
+
for (const colorName in shades) cssVariablesString += `--w-${colorName}-color: ${shades[colorName]};`
|
|
47
63
|
}
|
|
48
|
-
let cssVariablesString = ''
|
|
49
|
-
Object.entries(cssVariables).forEach(([colorName, colorHex]) => {
|
|
50
|
-
cssVariablesString += `--w-${colorName}-color: ${colorHex};`
|
|
51
|
-
})
|
|
52
64
|
|
|
53
65
|
return `:root{${cssVariablesString}}${styles}`
|
|
54
66
|
}
|
|
@@ -104,7 +116,7 @@ const generateBreakpoints = (breakpoints, grid) => {
|
|
|
104
116
|
|
|
105
117
|
const generateBreakpointSpaces = breakpoints => {
|
|
106
118
|
let styles = ''
|
|
107
|
-
const { cssScope
|
|
119
|
+
const { cssScope } = cssVars
|
|
108
120
|
|
|
109
121
|
breakpoints.forEach(({ label, min }) => {
|
|
110
122
|
// Discard `xs` since the min is 0 (`media query (min-width: 0)`), and leave in _layout.scss.
|
|
@@ -148,7 +160,7 @@ const generateBreakpointSpaces = breakpoints => {
|
|
|
148
160
|
|
|
149
161
|
const genBreakpointLayoutClasses = breakpoints => {
|
|
150
162
|
let styles = ''
|
|
151
|
-
const { cssScope
|
|
163
|
+
const { cssScope } = cssVars
|
|
152
164
|
const layoutClasses = [
|
|
153
165
|
'show{display:block}',
|
|
154
166
|
'hide{display:none}',
|
|
@@ -202,8 +214,8 @@ const genBreakpointLayoutClasses = breakpoints => {
|
|
|
202
214
|
`@media(min-width:${min}px){` +
|
|
203
215
|
layoutClasses.map(rule => `${cssScope} .${label}u-${rule}`).join('') +
|
|
204
216
|
// w-grid columns and gap.
|
|
205
|
-
array12.map((
|
|
206
|
-
array12.map((
|
|
217
|
+
array12.map((_, i) => `.w-grid.${label}u-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join('') +
|
|
218
|
+
array12.map((_, i) => `.w-flex.${label}u-gap${i + 1},.w-grid.${label}u-gap${i + 1}{gap:calc(${i + 1} * var(--w-base-increment));}`).join('') +
|
|
207
219
|
`.w-flex.${label}u-gap0,.w-flex.${label}u-gap0{gap:0}` +
|
|
208
220
|
'}'
|
|
209
221
|
}
|
|
@@ -214,8 +226,8 @@ const genBreakpointLayoutClasses = breakpoints => {
|
|
|
214
226
|
`@media (min-width:${min}px) and (max-width:${max}px){` +
|
|
215
227
|
layoutClasses.map(rule => `${cssScope} .${label}-${rule}`).join('') +
|
|
216
228
|
// w-grid columns and gap.
|
|
217
|
-
array12.map((
|
|
218
|
-
array12.map((
|
|
229
|
+
array12.map((_, i) => `.w-grid.${label}-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join('') +
|
|
230
|
+
array12.map((_, i) => `.w-flex.${label}-gap${i + 1},.w-grid.${label}-gap${i + 1}{gap:calc(${i + 1} * var(--w-base-increment));}`).join('') +
|
|
219
231
|
`.w-flex.${label}-gap0,.w-flex.${label}-gap0{gap:0}` +
|
|
220
232
|
'}'
|
|
221
233
|
})
|
|
@@ -226,8 +238,8 @@ const genBreakpointLayoutClasses = breakpoints => {
|
|
|
226
238
|
`@media (max-width:${max}px){` +
|
|
227
239
|
layoutClasses.map(rule => `${cssScope} .${label}d-${rule}`).join('') +
|
|
228
240
|
// w-grid columns and gap.
|
|
229
|
-
array12.map((
|
|
230
|
-
array12.map((
|
|
241
|
+
array12.map((_, i) => `.w-grid.${label}d-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join('') +
|
|
242
|
+
array12.map((_, i) => `.w-flex.${label}d-gap${i + 1},.w-grid.${label}d-gap${i + 1}{gap:calc(${i + 1} * var(--w-base-increment));}`).join('') +
|
|
231
243
|
`.w-flex.${label}d-gap0,.w-flex.${label}d-gap0{gap:0}` +
|
|
232
244
|
'}'
|
|
233
245
|
}
|
|
@@ -290,11 +302,21 @@ export const injectCSSInDOM = $waveui => {
|
|
|
290
302
|
}
|
|
291
303
|
|
|
292
304
|
export const injectColorsCSSInDOM = (themeColors, colorPalette, generateShadeCssVariables) => {
|
|
305
|
+
if (!document.getElementById('wave-ui-palette')) {
|
|
306
|
+
const css = document.createElement('style')
|
|
307
|
+
css.id = 'wave-ui-palette'
|
|
308
|
+
css.innerHTML = generatePaletteVariables(colorPalette)
|
|
309
|
+
|
|
310
|
+
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0]
|
|
311
|
+
if (firstStyle) firstStyle.before(css)
|
|
312
|
+
else document.head.appendChild(css)
|
|
313
|
+
}
|
|
314
|
+
|
|
293
315
|
// Inject global dynamic CSS classes in document head.
|
|
294
316
|
if (!document.getElementById('wave-ui-colors')) {
|
|
295
317
|
const css = document.createElement('style')
|
|
296
318
|
css.id = 'wave-ui-colors'
|
|
297
|
-
css.innerHTML = generateColors(themeColors,
|
|
319
|
+
css.innerHTML = generateColors(themeColors, generateShadeCssVariables)
|
|
298
320
|
|
|
299
321
|
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0]
|
|
300
322
|
if (firstStyle) firstStyle.before(css)
|
|
@@ -311,8 +333,8 @@ const doDynamicCSS = config => {
|
|
|
311
333
|
})
|
|
312
334
|
|
|
313
335
|
const computedStyles = getComputedStyle(document.documentElement)
|
|
314
|
-
cssVars.cssScope = computedStyles.getPropertyValue('--w-css-scope')
|
|
315
|
-
cssVars.baseIncrement = parseInt(computedStyles.getPropertyValue('--w-base-increment'))
|
|
336
|
+
cssVars.cssScope = (computedStyles.getPropertyValue('--w-css-scope') || '.w-app').trim() || '.w-app'
|
|
337
|
+
cssVars.baseIncrement = parseInt(computedStyles.getPropertyValue('--w-base-increment'), 10)
|
|
316
338
|
|
|
317
339
|
let styles = ''
|
|
318
340
|
styles += generateBreakpoints(breakpointsDef, config.css.grid)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Material-style pointer ripple: appends a transient node at the pointer, removes after animation.
|
|
3
|
+
* SSR-safe: no-op when window/document are unavailable.
|
|
4
|
+
*
|
|
5
|
+
* @param {HTMLElement} hostEl
|
|
6
|
+
* @param {PointerEvent|MouseEvent|TouchEvent} event
|
|
7
|
+
* @param {{ disabled?: boolean, sizeRect?: DOMRect }} [options]
|
|
8
|
+
*/
|
|
9
|
+
export function applyRipple (hostEl, event, options = {}) {
|
|
10
|
+
if (typeof window === 'undefined' || typeof document === 'undefined') return
|
|
11
|
+
if (!hostEl?.ownerDocument || options.disabled) return
|
|
12
|
+
if (window.matchMedia?.('(prefers-reduced-motion: reduce)')?.matches) return
|
|
13
|
+
|
|
14
|
+
let clientX = typeof event.clientX === 'number' ? event.clientX : null
|
|
15
|
+
let clientY = typeof event.clientY === 'number' ? event.clientY : null
|
|
16
|
+
if ((clientX == null || clientY == null) && event.touches?.length) {
|
|
17
|
+
clientX = event.touches[0].clientX
|
|
18
|
+
clientY = event.touches[0].clientY
|
|
19
|
+
}
|
|
20
|
+
if (clientX == null || clientY == null) return
|
|
21
|
+
|
|
22
|
+
const rect = hostEl.getBoundingClientRect()
|
|
23
|
+
const sizeRect = options.sizeRect || rect
|
|
24
|
+
const maxSide = Math.max(sizeRect.width, sizeRect.height)
|
|
25
|
+
const size = Math.max(maxSide * 2.5, 48)
|
|
26
|
+
const x = clientX - rect.left - size / 2
|
|
27
|
+
const y = clientY - rect.top - size / 2
|
|
28
|
+
|
|
29
|
+
const inkContainer = document.createElement('span')
|
|
30
|
+
inkContainer.className = 'w-ripple__ink-container'
|
|
31
|
+
inkContainer.setAttribute('aria-hidden', 'true')
|
|
32
|
+
|
|
33
|
+
const ink = document.createElement('span')
|
|
34
|
+
ink.className = 'w-ripple__ink'
|
|
35
|
+
ink.style.width = `${size}px`
|
|
36
|
+
ink.style.height = `${size}px`
|
|
37
|
+
ink.style.left = `${x}px`
|
|
38
|
+
ink.style.top = `${y}px`
|
|
39
|
+
|
|
40
|
+
inkContainer.appendChild(ink)
|
|
41
|
+
hostEl.appendChild(inkContainer)
|
|
42
|
+
|
|
43
|
+
const done = () => {
|
|
44
|
+
ink.removeEventListener('animationend', done)
|
|
45
|
+
inkContainer.remove()
|
|
46
|
+
}
|
|
47
|
+
ink.addEventListener('animationend', done, { once: true })
|
|
48
|
+
// Fallback if animationend does not fire
|
|
49
|
+
window.setTimeout(() => {
|
|
50
|
+
if (inkContainer.parentNode === hostEl) inkContainer.remove()
|
|
51
|
+
}, 600)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {import('vue').ComponentPublicInstance | null | undefined} instance
|
|
56
|
+
* @returns {{ config: { ripple?: boolean } }}
|
|
57
|
+
*/
|
|
58
|
+
export function getWaveUiFromInstance (instance) {
|
|
59
|
+
const $waveui = instance?.$waveui
|
|
60
|
+
if ($waveui && typeof $waveui === 'object') return $waveui
|
|
61
|
+
return { config: { ripple: true } }
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @param {boolean|undefined} propRipple
|
|
66
|
+
* @param {{ config?: { ripple?: boolean } }} $waveui
|
|
67
|
+
*/
|
|
68
|
+
export function isRippleEnabled (propRipple, $waveui) {
|
|
69
|
+
if (typeof propRipple === 'boolean') return propRipple
|
|
70
|
+
const g = $waveui?.config?.ripple
|
|
71
|
+
return g !== false
|
|
72
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { applyRipple, getWaveUiFromInstance, isRippleEnabled } from './ripple'
|
|
2
|
+
|
|
3
|
+
function bindingDisabled (binding) {
|
|
4
|
+
const v = binding.value
|
|
5
|
+
if (v === false) return true
|
|
6
|
+
if (v && typeof v === 'object' && v.disabled) return true
|
|
7
|
+
return false
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function rippleAllowed (binding, instance) {
|
|
11
|
+
if (bindingDisabled(binding)) return false
|
|
12
|
+
const $waveui = getWaveUiFromInstance(instance)
|
|
13
|
+
if (binding.value === true) return isRippleEnabled(true, $waveui)
|
|
14
|
+
return isRippleEnabled(undefined, $waveui)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const waveRippleDirective = {
|
|
18
|
+
mounted (el, binding) {
|
|
19
|
+
el.classList.add('w-ripple')
|
|
20
|
+
el.__waveRippleLastBinding = binding
|
|
21
|
+
const handler = e => {
|
|
22
|
+
if (typeof e.button === 'number' && e.button !== 0) return
|
|
23
|
+
const b = el.__waveRippleLastBinding
|
|
24
|
+
if (!rippleAllowed(b, b?.instance)) return
|
|
25
|
+
applyRipple(el, e)
|
|
26
|
+
}
|
|
27
|
+
el.__waveRippleHandler = handler
|
|
28
|
+
el.addEventListener('pointerdown', handler)
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
updated (el, binding) {
|
|
32
|
+
el.__waveRippleLastBinding = binding
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
unmounted (el) {
|
|
36
|
+
el.removeEventListener('pointerdown', el.__waveRippleHandler)
|
|
37
|
+
delete el.__waveRippleHandler
|
|
38
|
+
delete el.__waveRippleLastBinding
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { type ComputedOptions, type DefineComponent, type EmitsOptions, type ExtractDefaultPropTypes, type MethodOptions, type SlotsType } from 'vue';
|
|
2
|
-
import type { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
-
export interface WaveAppProps {
|
|
4
|
-
/**
|
|
5
|
-
* Sets the layout to `display: block`. By default the layout is: `display: flex`, `flex-direction: column`.
|
|
6
|
-
* @property {boolean} block
|
|
7
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
8
|
-
*/
|
|
9
|
-
block?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Sets the layout to display in a row when using the default flex layout (column by default).
|
|
12
|
-
* @property {boolean} row
|
|
13
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
14
|
-
*/
|
|
15
|
-
row?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Applies the CSS property: `align-items: center;`.
|
|
18
|
-
* @property {boolean} alignCenter
|
|
19
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
20
|
-
*/
|
|
21
|
-
alignCenter?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Applies the CSS property: `align-items: flex-end;`.
|
|
24
|
-
* @property {boolean} alignEnd
|
|
25
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
26
|
-
*/
|
|
27
|
-
alignEnd?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Applies the CSS property: `justify-content: center;`.
|
|
30
|
-
* @property {boolean} justifyCenter
|
|
31
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
32
|
-
*/
|
|
33
|
-
justifyCenter?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Applies the CSS property: `justify-content: end;`.
|
|
36
|
-
* @property {boolean} justifyEnd
|
|
37
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
38
|
-
*/
|
|
39
|
-
justifyEnd?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Applies the CSS property: `justify-content: space-between;`.
|
|
42
|
-
* @property {boolean} justifySpaceBetween
|
|
43
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
44
|
-
*/
|
|
45
|
-
justifySpaceBetween?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Applies the CSS property: `justify-content: space-around;`.
|
|
48
|
-
* @property {boolean} justifySpaceAround
|
|
49
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
50
|
-
*/
|
|
51
|
-
justifySpaceAround?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Applies the CSS property: `justify-content: space-evenly;`.
|
|
54
|
-
* @property {boolean} justifySpaceEvenly
|
|
55
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
56
|
-
*/
|
|
57
|
-
justifySpaceEvenly?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Applies the CSS property: `text-align: center;`.
|
|
60
|
-
* @property {boolean} textCenter
|
|
61
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
62
|
-
*/
|
|
63
|
-
textCenter?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Applies the CSS property: `text-align: right;`.
|
|
66
|
-
* @property {boolean} textRight
|
|
67
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
68
|
-
*/
|
|
69
|
-
textRight?: boolean;
|
|
70
|
-
}
|
|
71
|
-
export type WaveAppEmits = {};
|
|
72
|
-
export interface WaveAppComputeds extends ComputedOptions {
|
|
73
|
-
}
|
|
74
|
-
export interface WaveAppMethods extends MethodOptions {
|
|
75
|
-
}
|
|
76
|
-
export type WaveAppSlots = SlotsType<{
|
|
77
|
-
/**
|
|
78
|
-
* The content of the app.
|
|
79
|
-
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
80
|
-
*/
|
|
81
|
-
'default': () => any;
|
|
82
|
-
}>;
|
|
83
|
-
export type WApp = DefineComponent<WaveAppProps, {}, {}, WaveAppComputeds, WaveAppMethods, {}, {}, WaveAppEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveAppProps & WaveAppEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveAppProps>, WaveAppSlots>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template lang="pug">
|
|
2
|
-
.w-app
|
|
3
|
-
slot
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script>
|
|
7
|
-
export default {
|
|
8
|
-
name: 'w-app',
|
|
9
|
-
// Keep the props for the API documentation.
|
|
10
|
-
props: {
|
|
11
|
-
block: { type: Boolean },
|
|
12
|
-
row: { type: Boolean },
|
|
13
|
-
alignCenter: { type: Boolean },
|
|
14
|
-
alignEnd: { type: Boolean },
|
|
15
|
-
justifyCenter: { type: Boolean },
|
|
16
|
-
justifyEnd: { type: Boolean },
|
|
17
|
-
justifySpaceBetween: { type: Boolean },
|
|
18
|
-
justifySpaceAround: { type: Boolean },
|
|
19
|
-
justifySpaceEvenly: { type: Boolean },
|
|
20
|
-
textCenter: { type: Boolean },
|
|
21
|
-
textRight: { type: Boolean }
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
File without changes
|