origam 2.40.0 → 2.41.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/CHANGELOG.md +33 -0
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +2 -1
- package/dist/src/components/Chart/OrigamChartCartesian.vue +1 -2
- package/dist/src/components/Code/OrigamCode.vue +5 -16
- package/dist/src/components/DataTable/OrigamDataTable.vue +4 -5
- package/dist/src/components/Dialog/OrigamDialog.vue +3 -10
- package/dist/src/components/Drawer/OrigamDrawer.vue +4 -2
- package/dist/src/components/Grids/OrigamRow.vue +8 -11
- package/dist/src/components/Img/OrigamImg.vue +1 -0
- package/dist/src/components/Media/OrigamMediaController.vue +3 -2
- package/dist/src/components/Overlay/OrigamOverlay.vue +3 -4
- package/dist/src/components/Transition/OrigamTranslateScale.vue +4 -1
- package/dist/src/components/Window/OrigamWindow.vue +2 -3
- package/dist/src/composables/Commons/accessibleCommand.composable.cjs +2 -1
- package/dist/src/composables/Commons/accessibleCommand.composable.js +2 -1
- package/dist/src/composables/Commons/backButton.composable.cjs +14 -18
- package/dist/src/composables/Commons/backButton.composable.d.ts +4 -2
- package/dist/src/composables/Commons/backButton.composable.js +14 -18
- package/dist/src/composables/Commons/backgroundColor.composable.cjs +7 -3
- package/dist/src/composables/Commons/backgroundColor.composable.js +6 -3
- package/dist/src/composables/Commons/bothColor.composable.cjs +6 -2
- package/dist/src/composables/Commons/bothColor.composable.js +7 -4
- package/dist/src/composables/Commons/colorEffect.composable.cjs +2 -1
- package/dist/src/composables/Commons/colorEffect.composable.js +3 -1
- package/dist/src/composables/Commons/createLayout.composable.cjs +3 -2
- package/dist/src/composables/Commons/createLayout.composable.js +3 -2
- package/dist/src/composables/Commons/cssSupportClient.composable.d.ts +2 -1
- package/dist/src/composables/Commons/dragResizer.composable.cjs +7 -10
- package/dist/src/composables/Commons/dragResizer.composable.d.ts +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.js +7 -10
- package/dist/src/composables/Commons/elevation.composable.cjs +2 -1
- package/dist/src/composables/Commons/elevation.composable.js +2 -1
- package/dist/src/composables/Commons/loader.composable.cjs +2 -2
- package/dist/src/composables/Commons/loader.composable.js +1 -1
- package/dist/src/composables/Commons/locationStrategies.composable.d.ts +1 -1
- package/dist/src/composables/Commons/passedProps.composable.cjs +1 -1
- package/dist/src/composables/Commons/passedProps.composable.js +1 -1
- package/dist/src/composables/Commons/status.composable.cjs +4 -4
- package/dist/src/composables/Commons/status.composable.js +1 -1
- package/dist/src/composables/Commons/textColor.composable.cjs +7 -3
- package/dist/src/composables/Commons/textColor.composable.js +6 -3
- package/dist/src/composables/Commons/touch.composable.cjs +17 -1
- package/dist/src/composables/Commons/touch.composable.js +17 -1
- package/dist/src/composables/DataTable/headers.composable.d.ts +12 -12
- package/dist/src/composables/Icon/icon.composable.cjs +0 -7
- package/dist/src/composables/Icon/icon.composable.d.ts +0 -17
- package/dist/src/composables/Icon/icon.composable.js +0 -4
- package/dist/src/composables/Icon/iconsFull.composable.cjs +14 -0
- package/dist/src/composables/Icon/iconsFull.composable.d.ts +16 -0
- package/dist/src/composables/Icon/iconsFull.composable.js +6 -0
- package/dist/src/composables/Parallax/parallax.composable.cjs +2 -10
- package/dist/src/composables/Parallax/parallax.composable.js +2 -10
- package/dist/src/composables/index.cjs +12 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/index.js +1 -0
- package/dist/src/consts/Commons/anchor.const.cjs +6 -6
- package/dist/src/consts/Commons/anchor.const.js +1 -1
- package/dist/src/consts/Commons/border.const.cjs +18 -13
- package/dist/src/consts/Commons/border.const.d.ts +1 -1
- package/dist/src/consts/Commons/border.const.js +7 -2
- package/dist/src/consts/Commons/color.const.cjs +3 -3
- package/dist/src/consts/Commons/color.const.js +1 -1
- package/dist/src/consts/Commons/density.const.cjs +2 -2
- package/dist/src/consts/Commons/density.const.js +1 -1
- package/dist/src/consts/Commons/dimension.const.cjs +2 -2
- package/dist/src/consts/Commons/dimension.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +2 -2
- package/dist/src/consts/Commons/rounded.const.js +1 -1
- package/dist/src/consts/Commons/size.const.cjs +2 -2
- package/dist/src/consts/Commons/size.const.js +1 -1
- package/dist/src/consts/Commons/spacing.const.cjs +26 -25
- package/dist/src/consts/Commons/spacing.const.js +2 -1
- package/dist/src/consts/TextField/text-field.const.d.ts +1 -2
- package/dist/src/consts/TextField/text-field.const.js +1 -2
- package/dist/src/directives/Contrast/contrast.directive.cjs +1 -1
- package/dist/src/directives/Contrast/contrast.directive.js +1 -1
- package/dist/src/enums/BottomNav/bottom-nav.enum.cjs +4 -5
- package/dist/src/enums/BottomNav/bottom-nav.enum.js +4 -5
- package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +1 -1
- package/dist/src/interfaces/Chart/chart-map.interface.d.ts +5 -4
- package/dist/src/interfaces/Commons/activator.interface.d.ts +1 -1
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +3 -2
- package/dist/src/origam-core.cjs +1 -1
- package/dist/src/origam-core.js +1 -1
- package/dist/src/types/Grids/row.type.d.ts +2 -1
- package/dist/src/types/Parallax/parallax.type.d.ts +1 -2
- package/dist/src/types/TextField/text-field.type.d.ts +2 -1
- package/dist/src/utils/Commons/anchor.util.cjs +2 -2
- package/dist/src/utils/Commons/anchor.util.d.ts +1 -1
- package/dist/src/utils/Commons/anchor.util.js +1 -1
- package/dist/src/utils/Commons/animation.util.cjs +7 -4
- package/dist/src/utils/Commons/animation.util.js +4 -1
- package/dist/src/utils/Commons/commons.util.cjs +5 -5
- package/dist/src/utils/Commons/commons.util.js +1 -1
- package/dist/src/utils/Commons/location.util.cjs +5 -5
- package/dist/src/utils/Commons/location.util.js +1 -1
- package/dist/src/utils/Commons/nested.util.cjs +3 -1
- package/dist/src/utils/Commons/nested.util.js +4 -1
- package/dist/src/utils/Commons/spacing.util.cjs +1 -1
- package/dist/src/utils/Commons/spacing.util.js +1 -1
- package/dist/src/utils/Commons/token-name.util.cjs +9 -6
- package/dist/src/utils/Commons/token-name.util.js +9 -6
- package/package.json +1 -1
|
@@ -16,17 +16,18 @@ export function useDragResizer(el, value, min, max, axis) {
|
|
|
16
16
|
removeListeners.forEach((fn) => fn());
|
|
17
17
|
resizing.value = false;
|
|
18
18
|
};
|
|
19
|
+
const moveHandler = (start, initialStart) => (e) => {
|
|
20
|
+
const clickOffset = getPosition(e, isHorizontal.value ? CLIENT_POSITION.X : CLIENT_POSITION.Y);
|
|
21
|
+
const delta = clickOffset - start;
|
|
22
|
+
value.value = clamp(initialStart + delta, toValue(min), toValue(max));
|
|
23
|
+
};
|
|
19
24
|
const onMouseDown = (e) => {
|
|
20
25
|
e.preventDefault();
|
|
21
26
|
e.stopPropagation();
|
|
22
27
|
const start = getPosition(e, isHorizontal.value ? CLIENT_POSITION.X : CLIENT_POSITION.Y);
|
|
23
28
|
const initialStart = value.value;
|
|
24
29
|
resizing.value = true;
|
|
25
|
-
const onMouseMove = (
|
|
26
|
-
const clickOffset = getPosition(e2, isHorizontal.value ? CLIENT_POSITION.X : CLIENT_POSITION.Y);
|
|
27
|
-
const delta = clickOffset - start;
|
|
28
|
-
value.value = clamp(initialStart + delta, toValue(min), toValue(max));
|
|
29
|
-
};
|
|
30
|
+
const onMouseMove = moveHandler(start, initialStart);
|
|
30
31
|
const onMouseUp = onDragEnd;
|
|
31
32
|
removeListeners.push(...[
|
|
32
33
|
addWindowListener("mousemove", onMouseMove, onUnmountedCleanupFns),
|
|
@@ -39,11 +40,7 @@ export function useDragResizer(el, value, min, max, axis) {
|
|
|
39
40
|
const start = getPosition(e, isHorizontal.value ? CLIENT_POSITION.X : CLIENT_POSITION.Y);
|
|
40
41
|
const initialStart = value.value;
|
|
41
42
|
resizing.value = true;
|
|
42
|
-
const onTouchMove = (
|
|
43
|
-
const clickOffset = getPosition(e2, isHorizontal.value ? CLIENT_POSITION.X : CLIENT_POSITION.Y);
|
|
44
|
-
const delta = clickOffset - start;
|
|
45
|
-
value.value = clamp(initialStart + delta, toValue(min), toValue(max));
|
|
46
|
-
};
|
|
43
|
+
const onTouchMove = moveHandler(start, initialStart);
|
|
47
44
|
const onTouchEnd = onDragEnd;
|
|
48
45
|
removeListeners.push(...[
|
|
49
46
|
addWindowListener("touchmove", onTouchMove, onUnmountedCleanupFns),
|
|
@@ -21,7 +21,8 @@ function isUtilityRung(value) {
|
|
|
21
21
|
}
|
|
22
22
|
function shadowVar(rung) {
|
|
23
23
|
const fallback = _elevation.SHADOW_RUNG_FALLBACK[rung];
|
|
24
|
-
|
|
24
|
+
const fallbackArg = fallback ? `, ${fallback}` : "";
|
|
25
|
+
return `var(${_elevation.SHADOW_TOKEN_PREFIX}${rung}${fallbackArg})`;
|
|
25
26
|
}
|
|
26
27
|
const _bgWarned = /* @__PURE__ */new WeakSet();
|
|
27
28
|
function warnBgColorUsage(bgColor) {
|
|
@@ -24,7 +24,8 @@ function isUtilityRung(value) {
|
|
|
24
24
|
}
|
|
25
25
|
function shadowVar(rung) {
|
|
26
26
|
const fallback = SHADOW_RUNG_FALLBACK[rung];
|
|
27
|
-
|
|
27
|
+
const fallbackArg = fallback ? `, ${fallback}` : "";
|
|
28
|
+
return `var(${SHADOW_TOKEN_PREFIX}${rung}${fallbackArg})`;
|
|
28
29
|
}
|
|
29
30
|
const _bgWarned = /* @__PURE__ */ new WeakSet();
|
|
30
31
|
function warnBgColorUsage(bgColor) {
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useLoader = useLoader;
|
|
7
7
|
var _vue = require("vue");
|
|
8
|
-
var
|
|
8
|
+
var _loader = require("../../enums/Commons/loader.enum.cjs");
|
|
9
9
|
var _getCurrentInstance = require("../../utils/Commons/getCurrentInstance.util.cjs");
|
|
10
|
-
function useLoader(props, defaultKind =
|
|
10
|
+
function useLoader(props, defaultKind = _loader.LOADER_KIND.CIRCULAR, name = (0, _getCurrentInstance.getCurrentInstanceName)()) {
|
|
11
11
|
const isLoading = (0, _vue.computed)(() => {
|
|
12
12
|
const v = props.loading;
|
|
13
13
|
if (v === false || v === void 0 || v === null) return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
|
-
import { LOADER_KIND } from "../../enums/
|
|
2
|
+
import { LOADER_KIND } from "../../enums/Commons/loader.enum.js";
|
|
3
3
|
import { getCurrentInstanceName } from "../../utils/Commons/getCurrentInstance.util.js";
|
|
4
4
|
export function useLoader(props, defaultKind = LOADER_KIND.CIRCULAR, name = getCurrentInstanceName()) {
|
|
5
5
|
const isLoading = computed(() => {
|
|
@@ -11,7 +11,7 @@ import type { ILocationStrategyData, ILocationStrategyProps } from '../../interf
|
|
|
11
11
|
*
|
|
12
12
|
* @description
|
|
13
13
|
* ⛔ `locationStrategy="static"` NE POSITIONNE RIEN. `staticLocationStrategy`
|
|
14
|
-
* (utils/Commons/location.util.ts) a un corps reduit a
|
|
14
|
+
* (utils/Commons/location.util.ts) a un corps reduit a un commentaire de tache restante : elle rend
|
|
15
15
|
* `undefined`, donc `updateLocation` reste `undefined` et `contentStyles`
|
|
16
16
|
* reste `{}`. Mesure, contenu et cible reels attaches au document :
|
|
17
17
|
* `static` → `contentStyles = {}` / `updateLocation = undefined` ;
|
|
@@ -9,7 +9,7 @@ var _getCurrentInstance = require("../../utils/Commons/getCurrentInstance.util.c
|
|
|
9
9
|
function usePassedProps(_props, instanceLabel = "usePassedProps") {
|
|
10
10
|
const vm = (0, _getCurrentInstance.getCurrentInstance)(instanceLabel);
|
|
11
11
|
return key => {
|
|
12
|
-
const vnodeProps = vm.vnode.props
|
|
12
|
+
const vnodeProps = vm.vnode.props ?? {};
|
|
13
13
|
for (const k in vnodeProps) {
|
|
14
14
|
if (k === key || (0, _commons.camelize)(k) === key) return vnodeProps[k] !== void 0;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import { getCurrentInstance } from "../../utils/Commons/getCurrentInstance.util.
|
|
|
3
3
|
export function usePassedProps(_props, instanceLabel = "usePassedProps") {
|
|
4
4
|
const vm = getCurrentInstance(instanceLabel);
|
|
5
5
|
return (key) => {
|
|
6
|
-
const vnodeProps = vm.vnode.props
|
|
6
|
+
const vnodeProps = vm.vnode.props ?? {};
|
|
7
7
|
for (const k in vnodeProps) {
|
|
8
8
|
if (k === key || camelize(k) === key) return vnodeProps[k] !== void 0;
|
|
9
9
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useStatus = useStatus;
|
|
7
|
-
var
|
|
7
|
+
var _status = require("../../enums/Commons/status.enum.cjs");
|
|
8
8
|
var _getCurrentInstance = require("../../utils/Commons/getCurrentInstance.util.cjs");
|
|
9
9
|
var _vue = require("vue");
|
|
10
10
|
const STATUS_TO_INTENT = {
|
|
@@ -21,14 +21,14 @@ function useStatus(props, name = (0, _getCurrentInstance.getCurrentInstanceName)
|
|
|
21
21
|
return props.status ? STATUS_TO_INTENT[props.status] ?? props.status : void 0;
|
|
22
22
|
});
|
|
23
23
|
const effectivePosition = (0, _vue.computed)(() => {
|
|
24
|
-
return props.statusIconPosition ?? `${
|
|
24
|
+
return props.statusIconPosition ?? `${_status.STATUS_POSITION.PREPEND}`;
|
|
25
25
|
});
|
|
26
26
|
const prependIcon = (0, _vue.computed)(() => {
|
|
27
|
-
if (!props.status || ![`${
|
|
27
|
+
if (!props.status || ![`${_status.STATUS_POSITION.PREPEND}`, `${_status.STATUS_POSITION.BOTH}`].includes(effectivePosition.value) || props.prependIcon) return props.prependIcon;
|
|
28
28
|
return statusIcon.value;
|
|
29
29
|
});
|
|
30
30
|
const appendIcon = (0, _vue.computed)(() => {
|
|
31
|
-
if (!props.status || ![`${
|
|
31
|
+
if (!props.status || ![`${_status.STATUS_POSITION.APPEND}`, `${_status.STATUS_POSITION.BOTH}`].includes(effectivePosition.value) || props.appendIcon) return props.appendIcon;
|
|
32
32
|
return statusIcon.value;
|
|
33
33
|
});
|
|
34
34
|
const icon = (0, _vue.computed)(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { STATUS_POSITION } from "../../enums/
|
|
1
|
+
import { STATUS_POSITION } from "../../enums/Commons/status.enum.js";
|
|
2
2
|
import { getCurrentInstanceName } from "../../utils/Commons/getCurrentInstance.util.js";
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
const STATUS_TO_INTENT = {
|
|
@@ -7,9 +7,13 @@ exports.useTextColor = useTextColor;
|
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
var _color = require("./color.composable.cjs");
|
|
9
9
|
function useTextColor(props, name) {
|
|
10
|
-
const colors = (0, _vue.computed)(() =>
|
|
11
|
-
text
|
|
12
|
-
|
|
10
|
+
const colors = (0, _vue.computed)(() => {
|
|
11
|
+
let text = null;
|
|
12
|
+
if ((0, _vue.isRef)(props)) text = props.value;else if (name) text = props[name];
|
|
13
|
+
return {
|
|
14
|
+
text
|
|
15
|
+
};
|
|
16
|
+
});
|
|
13
17
|
const {
|
|
14
18
|
colorClasses: textColorClasses,
|
|
15
19
|
colorStyles: textColorStyles
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { computed, isRef } from "vue";
|
|
2
2
|
import { useColor } from "./color.composable.js";
|
|
3
3
|
export function useTextColor(props, name) {
|
|
4
|
-
const colors = computed(() =>
|
|
5
|
-
text
|
|
6
|
-
|
|
4
|
+
const colors = computed(() => {
|
|
5
|
+
let text = null;
|
|
6
|
+
if (isRef(props)) text = props.value;
|
|
7
|
+
else if (name) text = props[name];
|
|
8
|
+
return { text };
|
|
9
|
+
});
|
|
7
10
|
const { colorClasses: textColorClasses, colorStyles: textColorStyles } = useColor(colors);
|
|
8
11
|
return { textColorClasses, textColorStyles };
|
|
9
12
|
}
|
|
@@ -53,7 +53,23 @@ function useTouch({
|
|
|
53
53
|
if (touchless.value) return;
|
|
54
54
|
const touchX = e.changedTouches[0].clientX;
|
|
55
55
|
const touchY = e.changedTouches[0].clientY;
|
|
56
|
-
|
|
56
|
+
let inTouchZone;
|
|
57
|
+
switch (position.value) {
|
|
58
|
+
case "left":
|
|
59
|
+
inTouchZone = touchX < _touch.TOUCH_EDGE_ZONE_PX;
|
|
60
|
+
break;
|
|
61
|
+
case "right":
|
|
62
|
+
inTouchZone = touchX > document.documentElement.clientWidth - _touch.TOUCH_EDGE_ZONE_PX;
|
|
63
|
+
break;
|
|
64
|
+
case "top":
|
|
65
|
+
inTouchZone = touchY < _touch.TOUCH_EDGE_ZONE_PX;
|
|
66
|
+
break;
|
|
67
|
+
case "bottom":
|
|
68
|
+
inTouchZone = touchY > document.documentElement.clientHeight - _touch.TOUCH_EDGE_ZONE_PX;
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
inTouchZone = (0, _commons.oops)();
|
|
72
|
+
}
|
|
57
73
|
const inElement = isActive.value && (position.value === "left" ? touchX < width.value : position.value === "right" ? touchX > document.documentElement.clientWidth - width.value : position.value === "top" ? touchY < width.value : position.value === "bottom" ? touchY > document.documentElement.clientHeight - width.value : (0, _commons.oops)());
|
|
58
74
|
if (inTouchZone || inElement || isActive.value && isTemporary.value) {
|
|
59
75
|
maybeDragging = true;
|
|
@@ -38,7 +38,23 @@ export function useTouch({ isActive, isTemporary, width, touchless, position })
|
|
|
38
38
|
if (touchless.value) return;
|
|
39
39
|
const touchX = e.changedTouches[0].clientX;
|
|
40
40
|
const touchY = e.changedTouches[0].clientY;
|
|
41
|
-
|
|
41
|
+
let inTouchZone;
|
|
42
|
+
switch (position.value) {
|
|
43
|
+
case "left":
|
|
44
|
+
inTouchZone = touchX < TOUCH_EDGE_ZONE_PX;
|
|
45
|
+
break;
|
|
46
|
+
case "right":
|
|
47
|
+
inTouchZone = touchX > document.documentElement.clientWidth - TOUCH_EDGE_ZONE_PX;
|
|
48
|
+
break;
|
|
49
|
+
case "top":
|
|
50
|
+
inTouchZone = touchY < TOUCH_EDGE_ZONE_PX;
|
|
51
|
+
break;
|
|
52
|
+
case "bottom":
|
|
53
|
+
inTouchZone = touchY > document.documentElement.clientHeight - TOUCH_EDGE_ZONE_PX;
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
inTouchZone = oops();
|
|
57
|
+
}
|
|
42
58
|
const inElement = isActive.value && (position.value === "left" ? touchX < width.value : position.value === "right" ? touchX > document.documentElement.clientWidth - width.value : position.value === "top" ? touchY < width.value : position.value === "bottom" ? touchY > document.documentElement.clientHeight - width.value : oops());
|
|
43
59
|
if (inTouchZone || inElement || isActive.value && isTemporary.value) {
|
|
44
60
|
maybeDragging = true;
|
|
@@ -31,13 +31,13 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
31
31
|
colspan?: number | undefined;
|
|
32
32
|
rowspan?: number | undefined;
|
|
33
33
|
children?: /*elided*/ any[] | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
sort?: TDataTableCompareFunction | undefined;
|
|
36
|
+
filter?: import("../../types").TFilterFunction | undefined;
|
|
34
37
|
maxWidth?: string | undefined;
|
|
35
38
|
minWidth?: string | undefined;
|
|
36
39
|
width?: number | string | undefined;
|
|
37
40
|
fixed?: boolean | undefined;
|
|
38
|
-
title?: string | undefined;
|
|
39
|
-
sort?: TDataTableCompareFunction | undefined;
|
|
40
|
-
filter?: import("../../types").TFilterFunction | undefined;
|
|
41
41
|
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
42
42
|
headerProps?: any;
|
|
43
43
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
@@ -54,13 +54,13 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
54
54
|
colspan?: number | undefined;
|
|
55
55
|
rowspan?: number | undefined;
|
|
56
56
|
children?: /*elided*/ any[] | undefined;
|
|
57
|
+
title?: string | undefined;
|
|
58
|
+
sort?: TDataTableCompareFunction | undefined;
|
|
59
|
+
filter?: import("../../types").TFilterFunction | undefined;
|
|
57
60
|
maxWidth?: string | undefined;
|
|
58
61
|
minWidth?: string | undefined;
|
|
59
62
|
width?: number | string | undefined;
|
|
60
63
|
fixed?: boolean | undefined;
|
|
61
|
-
title?: string | undefined;
|
|
62
|
-
sort?: TDataTableCompareFunction | undefined;
|
|
63
|
-
filter?: import("../../types").TFilterFunction | undefined;
|
|
64
64
|
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
65
65
|
headerProps?: any;
|
|
66
66
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
@@ -78,13 +78,13 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
78
78
|
colspan?: number | undefined;
|
|
79
79
|
rowspan?: number | undefined;
|
|
80
80
|
children?: /*elided*/ any[] | undefined;
|
|
81
|
+
title?: string | undefined;
|
|
82
|
+
sort?: TDataTableCompareFunction | undefined;
|
|
83
|
+
filter?: import("../../types").TFilterFunction | undefined;
|
|
81
84
|
maxWidth?: string | undefined;
|
|
82
85
|
minWidth?: string | undefined;
|
|
83
86
|
width?: number | string | undefined;
|
|
84
87
|
fixed?: boolean | undefined;
|
|
85
|
-
title?: string | undefined;
|
|
86
|
-
sort?: TDataTableCompareFunction | undefined;
|
|
87
|
-
filter?: import("../../types").TFilterFunction | undefined;
|
|
88
88
|
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
89
89
|
headerProps?: any;
|
|
90
90
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
@@ -101,13 +101,13 @@ export declare function createHeaders(props: IDataTableHeaderProps, options?: {
|
|
|
101
101
|
colspan?: number | undefined;
|
|
102
102
|
rowspan?: number | undefined;
|
|
103
103
|
children?: /*elided*/ any[] | undefined;
|
|
104
|
+
title?: string | undefined;
|
|
105
|
+
sort?: TDataTableCompareFunction | undefined;
|
|
106
|
+
filter?: import("../../types").TFilterFunction | undefined;
|
|
104
107
|
maxWidth?: string | undefined;
|
|
105
108
|
minWidth?: string | undefined;
|
|
106
109
|
width?: number | string | undefined;
|
|
107
110
|
fixed?: boolean | undefined;
|
|
108
|
-
title?: string | undefined;
|
|
109
|
-
sort?: TDataTableCompareFunction | undefined;
|
|
110
|
-
filter?: import("../../types").TFilterFunction | undefined;
|
|
111
111
|
align?: (import("../../enums").ALIGN.START | import("../../enums").ALIGN.END | import("../../enums").ALIGN.CENTER) | undefined;
|
|
112
112
|
headerProps?: any;
|
|
113
113
|
cellProps?: import("../../types").TDataTableHeaderCell | undefined;
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createIcons = createIcons;
|
|
7
6
|
exports.createIconsCore = createIconsCore;
|
|
8
7
|
exports.useIcon = void 0;
|
|
9
8
|
var _vue = require("vue");
|
|
10
9
|
var _index = require("../../components/Icon/index.cjs");
|
|
11
|
-
var _mdi = require("../../consts/Commons/mdi.const.cjs");
|
|
12
10
|
var _mdiCore = require("../../consts/Commons/mdi-core.const.cjs");
|
|
13
11
|
var _icon = require("../../consts/Icon/icon.const.cjs");
|
|
14
12
|
var _commons = require("../../utils/Commons/commons.util.cjs");
|
|
@@ -63,11 +61,6 @@ const useIcon = props => {
|
|
|
63
61
|
};
|
|
64
62
|
};
|
|
65
63
|
exports.useIcon = useIcon;
|
|
66
|
-
function createIcons(options) {
|
|
67
|
-
return createIconsCore((0, _commons.mergeDeep)({
|
|
68
|
-
aliases: _mdi.MDI_ALIASES
|
|
69
|
-
}, options));
|
|
70
|
-
}
|
|
71
64
|
function createIconsCore(options) {
|
|
72
65
|
return (0, _commons.mergeDeep)({
|
|
73
66
|
defaultSet: "mdi",
|
|
@@ -17,23 +17,6 @@ import type { TIcon, TIconInstance, TIconOptions } from '../../types/Icon/icon.t
|
|
|
17
17
|
export declare const useIcon: (props: Ref<TIcon | undefined>) => {
|
|
18
18
|
iconData: import("vue").ComputedRef<TIconInstance>;
|
|
19
19
|
};
|
|
20
|
-
/*********************************************************
|
|
21
|
-
* createIcons
|
|
22
|
-
********************************************************/
|
|
23
|
-
/*********************************************************
|
|
24
|
-
* createIcons
|
|
25
|
-
*
|
|
26
|
-
* @description
|
|
27
|
-
* Construit la configuration d'icones fournie a l'application par
|
|
28
|
-
* `createOrigam()` : jeu par defaut, jeux disponibles et alias. Les options du
|
|
29
|
-
* consommateur sont fusionnees en profondeur sur les valeurs du DS, donc
|
|
30
|
-
* declarer un alias n'efface pas les autres.
|
|
31
|
-
*
|
|
32
|
-
* @description
|
|
33
|
-
* Le jeu par defaut est `mdi`, et les alias MDI sont pre-charges — c'est ce
|
|
34
|
-
* qui permet d'ecrire `icon="mdi-account"` sans configuration prealable.
|
|
35
|
-
********************************************************/
|
|
36
|
-
export declare function createIcons(options?: TIconOptions): Record<string, unknown>;
|
|
37
20
|
/*********************************************************
|
|
38
21
|
* createIconsCore (#1384)
|
|
39
22
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { computed, inject, unref } from "vue";
|
|
2
2
|
import { OrigamComponentIcon, OrigamSvgIcon } from "../../components/Icon/index.js";
|
|
3
|
-
import { MDI_ALIASES } from "../../consts/Commons/mdi.const.js";
|
|
4
3
|
import { MDI, MDI_CORE_ALIASES } from "../../consts/Commons/mdi-core.const.js";
|
|
5
4
|
import { DEFAULT_SETS, ORIGAM_ICONS_KEY } from "../../consts/Icon/icon.const.js";
|
|
6
5
|
import { mergeDeep } from "../../utils/Commons/commons.util.js";
|
|
@@ -50,9 +49,6 @@ export const useIcon = (props) => {
|
|
|
50
49
|
});
|
|
51
50
|
return { iconData };
|
|
52
51
|
};
|
|
53
|
-
export function createIcons(options) {
|
|
54
|
-
return createIconsCore(mergeDeep({ aliases: MDI_ALIASES }, options));
|
|
55
|
-
}
|
|
56
52
|
export function createIconsCore(options) {
|
|
57
53
|
return mergeDeep({
|
|
58
54
|
defaultSet: "mdi",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createIcons = createIcons;
|
|
7
|
+
var _mdi = require("../../consts/Commons/mdi.const.cjs");
|
|
8
|
+
var _commons = require("../../utils/Commons/commons.util.cjs");
|
|
9
|
+
var _icon = require("./icon.composable.cjs");
|
|
10
|
+
function createIcons(options) {
|
|
11
|
+
return (0, _icon.createIconsCore)((0, _commons.mergeDeep)({
|
|
12
|
+
aliases: _mdi.MDI_ALIASES
|
|
13
|
+
}, options));
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TIconOptions } from '../../types/Icon/icon.type';
|
|
2
|
+
/*********************************************************
|
|
3
|
+
* createIcons
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
* Icon configuration provided by `createOrigam()`: default set, available sets
|
|
7
|
+
* and aliases, with the MDI aliases pre-loaded so `icon="mdi-account"` works
|
|
8
|
+
* with no setup. Consumer options are deep-merged over the DS values.
|
|
9
|
+
*
|
|
10
|
+
* @description
|
|
11
|
+
* (#1392) Lives apart from `useIcon` on purpose: it reaches `MDI_ALIASES` (the
|
|
12
|
+
* ~7 000-entry `MDI_ICONS` enum, ~430 Kio). In `icon.composable.ts`, every
|
|
13
|
+
* component importing `useIcon` (Btn, Avatar, Chip...) pulled the enum in
|
|
14
|
+
* through the module graph, icon or not.
|
|
15
|
+
********************************************************/
|
|
16
|
+
export declare function createIcons(options?: TIconOptions): Record<string, unknown>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MDI_ALIASES } from "../../consts/Commons/mdi.const.js";
|
|
2
|
+
import { mergeDeep } from "../../utils/Commons/commons.util.js";
|
|
3
|
+
import { createIconsCore } from "./icon.composable.js";
|
|
4
|
+
export function createIcons(options) {
|
|
5
|
+
return createIconsCore(mergeDeep({ aliases: MDI_ALIASES }, options));
|
|
6
|
+
}
|
|
@@ -19,17 +19,9 @@ function usePrefersReducedMotion() {
|
|
|
19
19
|
const onChange = ev => {
|
|
20
20
|
flag.value = ev.matches;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
mql.addEventListener("change", onChange);
|
|
24
|
-
} else if (typeof mql.addListener === "function") {
|
|
25
|
-
mql.addListener(onChange);
|
|
26
|
-
}
|
|
22
|
+
mql.addEventListener("change", onChange);
|
|
27
23
|
(0, _vue.onBeforeUnmount)(() => {
|
|
28
|
-
|
|
29
|
-
mql.removeEventListener("change", onChange);
|
|
30
|
-
} else if (typeof mql.removeListener === "function") {
|
|
31
|
-
mql.removeListener(onChange);
|
|
32
|
-
}
|
|
24
|
+
mql.removeEventListener("change", onChange);
|
|
33
25
|
});
|
|
34
26
|
return flag;
|
|
35
27
|
}
|
|
@@ -21,17 +21,9 @@ function usePrefersReducedMotion() {
|
|
|
21
21
|
const onChange = (ev) => {
|
|
22
22
|
flag.value = ev.matches;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
mql.addEventListener("change", onChange);
|
|
26
|
-
} else if (typeof mql.addListener === "function") {
|
|
27
|
-
mql.addListener(onChange);
|
|
28
|
-
}
|
|
24
|
+
mql.addEventListener("change", onChange);
|
|
29
25
|
onBeforeUnmount(() => {
|
|
30
|
-
|
|
31
|
-
mql.removeEventListener("change", onChange);
|
|
32
|
-
} else if (typeof mql.removeListener === "function") {
|
|
33
|
-
mql.removeListener(onChange);
|
|
34
|
-
}
|
|
26
|
+
mql.removeEventListener("change", onChange);
|
|
35
27
|
});
|
|
36
28
|
return flag;
|
|
37
29
|
}
|
|
@@ -1032,6 +1032,18 @@ Object.keys(_icon).forEach(function (key) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
1034
1034
|
});
|
|
1035
|
+
var _iconsFull = require("./Icon/iconsFull.composable.cjs");
|
|
1036
|
+
Object.keys(_iconsFull).forEach(function (key) {
|
|
1037
|
+
if (key === "default" || key === "__esModule") return;
|
|
1038
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1039
|
+
if (key in exports && exports[key] === _iconsFull[key]) return;
|
|
1040
|
+
Object.defineProperty(exports, key, {
|
|
1041
|
+
enumerable: true,
|
|
1042
|
+
get: function () {
|
|
1043
|
+
return _iconsFull[key];
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
});
|
|
1035
1047
|
var _iconAccessibility = require("./Icon/iconAccessibility.composable.cjs");
|
|
1036
1048
|
Object.keys(_iconAccessibility).forEach(function (key) {
|
|
1037
1049
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -83,6 +83,7 @@ export * from './Commons/virtual.composable';
|
|
|
83
83
|
export * from './Commons/throttle.composable';
|
|
84
84
|
export * from './Commons/audio.composable';
|
|
85
85
|
export * from './Icon/icon.composable';
|
|
86
|
+
export * from './Icon/iconsFull.composable';
|
|
86
87
|
export * from './Icon/iconAccessibility.composable';
|
|
87
88
|
export * from './List/createList.composable';
|
|
88
89
|
export * from './List/list.composable';
|
|
@@ -83,6 +83,7 @@ export * from "./Commons/virtual.composable.js";
|
|
|
83
83
|
export * from "./Commons/throttle.composable.js";
|
|
84
84
|
export * from "./Commons/audio.composable.js";
|
|
85
85
|
export * from "./Icon/icon.composable.js";
|
|
86
|
+
export * from "./Icon/iconsFull.composable.js";
|
|
86
87
|
export * from "./Icon/iconAccessibility.composable.js";
|
|
87
88
|
export * from "./List/createList.composable.js";
|
|
88
89
|
export * from "./List/list.composable.js";
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.INLINE_START_END_ARRAY = exports.INLINE_ARRAY = exports.DIRECTION_ARRAY = exports.BLOCK_START_END_ARRAY = exports.BLOCK_ARRAY = void 0;
|
|
7
|
-
var
|
|
8
|
-
const BLOCK_ARRAY = exports.BLOCK_ARRAY = [
|
|
9
|
-
const INLINE_ARRAY = exports.INLINE_ARRAY = [
|
|
10
|
-
const BLOCK_START_END_ARRAY = exports.BLOCK_START_END_ARRAY = [...BLOCK_ARRAY,
|
|
11
|
-
const INLINE_START_END_ARRAY = exports.INLINE_START_END_ARRAY = [...INLINE_ARRAY,
|
|
12
|
-
const DIRECTION_ARRAY = exports.DIRECTION_ARRAY = [
|
|
7
|
+
var _anchor = require("../../enums/Commons/anchor.enum.cjs");
|
|
8
|
+
const BLOCK_ARRAY = exports.BLOCK_ARRAY = [_anchor.BLOCK.TOP, _anchor.BLOCK.BOTTOM];
|
|
9
|
+
const INLINE_ARRAY = exports.INLINE_ARRAY = [_anchor.INLINE.LEFT, _anchor.INLINE.RIGHT];
|
|
10
|
+
const BLOCK_START_END_ARRAY = exports.BLOCK_START_END_ARRAY = [...BLOCK_ARRAY, _anchor.START_END.START, _anchor.START_END.END];
|
|
11
|
+
const INLINE_START_END_ARRAY = exports.INLINE_START_END_ARRAY = [...INLINE_ARRAY, _anchor.START_END.START, _anchor.START_END.END];
|
|
12
|
+
const DIRECTION_ARRAY = exports.DIRECTION_ARRAY = [_anchor.BLOCK.TOP, _anchor.BLOCK.BOTTOM, _anchor.INLINE.LEFT, _anchor.INLINE.RIGHT];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BLOCK, INLINE, START_END } from "../../enums/
|
|
1
|
+
import { BLOCK, INLINE, START_END } from "../../enums/Commons/anchor.enum.js";
|
|
2
2
|
export const BLOCK_ARRAY = [BLOCK.TOP, BLOCK.BOTTOM];
|
|
3
3
|
export const INLINE_ARRAY = [INLINE.LEFT, INLINE.RIGHT];
|
|
4
4
|
export const BLOCK_START_END_ARRAY = [...BLOCK_ARRAY, START_END.START, START_END.END];
|
|
@@ -4,49 +4,54 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BORDER_REGEX = exports.BORDER_PROP_KEYS = exports.BORDER_POSITION_MAP = exports.BORDER_LOGICAL_SIDE_MAP = exports.BORDER_LOGICAL_AXIS_MAP = exports.BORDER_KEYWORD_WIDTH = void 0;
|
|
7
|
-
var
|
|
8
|
-
|
|
7
|
+
var _anchor = require("../../enums/Commons/anchor.enum.cjs");
|
|
8
|
+
var _border = require("../../enums/Commons/border.enum.cjs");
|
|
9
|
+
const BORDER_STYLE_ALTERNATION = Object.values(_border.BORDER_STYLE).join("|");
|
|
9
10
|
const BORDER_LENGTH_UNITS = "(?:px|pt|PC|in|cm|mm|em|rem|%|ex|ch|fr)?";
|
|
10
|
-
const
|
|
11
|
+
const BORDER_COLOR_HEX = "(?:(?:#)(?:[a-f0-9]{3}|[a-f0-9]{6}))";
|
|
12
|
+
const BORDER_COLOR_VAR = "(?:var\\(--[^)]+\\))";
|
|
13
|
+
const BORDER_COLOR_FUNCTION = "(?:(?:rgb|hsl|rgba)a?\\(.*\\))";
|
|
14
|
+
const BORDER_COLOR_NAMED = "(?:[A-Za-z]+)";
|
|
15
|
+
const BORDER_COLOR_GROUP = `(?<color>(?: ?(?:${BORDER_COLOR_HEX}|${BORDER_COLOR_VAR}|${BORDER_COLOR_FUNCTION}|${BORDER_COLOR_NAMED})){0,4})`;
|
|
11
16
|
const BORDER_REGEX = exports.BORDER_REGEX = new RegExp(`^(?<width>(?: ?var\\(--[^)]+\\)(?= +(?:${BORDER_STYLE_ALTERNATION}))| ?(?:[0-9]+)${BORDER_LENGTH_UNITS}){0,4}) {0,1}(?<style>(?:(?: ?(?:${BORDER_STYLE_ALTERNATION}))+){0,4}) ?` + BORDER_COLOR_GROUP + "$");
|
|
12
17
|
const BORDER_POSITION_MAP = exports.BORDER_POSITION_MAP = [{
|
|
13
|
-
side:
|
|
18
|
+
side: _anchor.BLOCK.TOP,
|
|
14
19
|
widthProp: "borderTop",
|
|
15
20
|
colorProp: "borderTopColor"
|
|
16
21
|
}, {
|
|
17
|
-
side:
|
|
22
|
+
side: _anchor.INLINE.RIGHT,
|
|
18
23
|
widthProp: "borderRight",
|
|
19
24
|
colorProp: "borderRightColor"
|
|
20
25
|
}, {
|
|
21
|
-
side:
|
|
26
|
+
side: _anchor.BLOCK.BOTTOM,
|
|
22
27
|
widthProp: "borderBottom",
|
|
23
28
|
colorProp: "borderBottomColor"
|
|
24
29
|
}, {
|
|
25
|
-
side:
|
|
30
|
+
side: _anchor.INLINE.LEFT,
|
|
26
31
|
widthProp: "borderLeft",
|
|
27
32
|
colorProp: "borderLeftColor"
|
|
28
33
|
}];
|
|
29
34
|
const BORDER_LOGICAL_AXIS_MAP = exports.BORDER_LOGICAL_AXIS_MAP = [{
|
|
30
|
-
axis:
|
|
35
|
+
axis: _border.BORDER_LOGICAL_AXIS.BLOCK,
|
|
31
36
|
widthProp: "borderBlock"
|
|
32
37
|
}, {
|
|
33
|
-
axis:
|
|
38
|
+
axis: _border.BORDER_LOGICAL_AXIS.INLINE,
|
|
34
39
|
widthProp: "borderInline"
|
|
35
40
|
}];
|
|
36
41
|
const BORDER_LOGICAL_SIDE_MAP = exports.BORDER_LOGICAL_SIDE_MAP = [{
|
|
37
|
-
side: `${
|
|
42
|
+
side: `${_border.BORDER_LOGICAL_AXIS.BLOCK}-${_anchor.START_END.START}`,
|
|
38
43
|
widthProp: "borderBlockStart",
|
|
39
44
|
colorProp: "borderBlockStartColor"
|
|
40
45
|
}, {
|
|
41
|
-
side: `${
|
|
46
|
+
side: `${_border.BORDER_LOGICAL_AXIS.BLOCK}-${_anchor.START_END.END}`,
|
|
42
47
|
widthProp: "borderBlockEnd",
|
|
43
48
|
colorProp: "borderBlockEndColor"
|
|
44
49
|
}, {
|
|
45
|
-
side: `${
|
|
50
|
+
side: `${_border.BORDER_LOGICAL_AXIS.INLINE}-${_anchor.START_END.START}`,
|
|
46
51
|
widthProp: "borderInlineStart",
|
|
47
52
|
colorProp: "borderInlineStartColor"
|
|
48
53
|
}, {
|
|
49
|
-
side: `${
|
|
54
|
+
side: `${_border.BORDER_LOGICAL_AXIS.INLINE}-${_anchor.START_END.END}`,
|
|
50
55
|
widthProp: "borderInlineEnd",
|
|
51
56
|
colorProp: "borderInlineEndColor"
|
|
52
57
|
}];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BLOCK, INLINE } from '../../enums';
|
|
1
|
+
import { BLOCK, INLINE } from '../../enums/Commons/anchor.enum';
|
|
2
2
|
import type { TBorderLogicalAxis, TBorderWidthKeyword } from '../../types/Commons/border.type';
|
|
3
3
|
import type { TLogicalSide } from '../../types/Commons/anchor.type';
|
|
4
4
|
export declare const BORDER_REGEX: RegExp;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { BLOCK,
|
|
1
|
+
import { BLOCK, INLINE, START_END } from "../../enums/Commons/anchor.enum.js";
|
|
2
|
+
import { BORDER_LOGICAL_AXIS, BORDER_STYLE } from "../../enums/Commons/border.enum.js";
|
|
2
3
|
const BORDER_STYLE_ALTERNATION = Object.values(BORDER_STYLE).join("|");
|
|
3
4
|
const BORDER_LENGTH_UNITS = "(?:px|pt|PC|in|cm|mm|em|rem|%|ex|ch|fr)?";
|
|
4
|
-
const
|
|
5
|
+
const BORDER_COLOR_HEX = "(?:(?:#)(?:[a-f0-9]{3}|[a-f0-9]{6}))";
|
|
6
|
+
const BORDER_COLOR_VAR = "(?:var\\(--[^)]+\\))";
|
|
7
|
+
const BORDER_COLOR_FUNCTION = "(?:(?:rgb|hsl|rgba)a?\\(.*\\))";
|
|
8
|
+
const BORDER_COLOR_NAMED = "(?:[A-Za-z]+)";
|
|
9
|
+
const BORDER_COLOR_GROUP = `(?<color>(?: ?(?:${BORDER_COLOR_HEX}|${BORDER_COLOR_VAR}|${BORDER_COLOR_FUNCTION}|${BORDER_COLOR_NAMED})){0,4})`;
|
|
5
10
|
export const BORDER_REGEX = new RegExp(
|
|
6
11
|
`^(?<width>(?: ?var\\(--[^)]+\\)(?= +(?:${BORDER_STYLE_ALTERNATION}))| ?(?:[0-9]+)${BORDER_LENGTH_UNITS}){0,4}) {0,1}(?<style>(?:(?: ?(?:${BORDER_STYLE_ALTERNATION}))+){0,4}) ?` + BORDER_COLOR_GROUP + "$"
|
|
7
12
|
);
|