origam 2.43.0 → 2.44.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 +85 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark-pinned.css +5 -1
- package/dist/src/assets/css/tokens/dark-system.css +5 -1
- package/dist/src/assets/css/tokens/dark.css +10 -2
- package/dist/src/assets/css/tokens/light.css +5 -1
- package/dist/src/assets/locales/en.json +3 -0
- package/dist/src/assets/locales/fr.json +3 -0
- package/dist/src/assets/scss/tokens/_dark.scss +10 -2
- package/dist/src/assets/scss/tokens/_light.scss +5 -1
- package/dist/src/components/Btn/OrigamBtn.vue +31 -10
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +3 -5
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +0 -1
- package/dist/src/components/DataTable/OrigamDataTableFooter.vue +3 -1
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +20 -2
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +3 -5
- package/dist/src/components/Field/OrigamField.vue +17 -7
- package/dist/src/components/FileField/OrigamFileField.vue +3 -3
- package/dist/src/components/Form/OrigamForm.vue +0 -1
- package/dist/src/components/Input/OrigamInput.vue +0 -1
- package/dist/src/components/Messages/OrigamMessages.vue +1 -1
- package/dist/src/components/NumberField/OrigamNumberField.vue +13 -5
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +8 -5
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +3 -3
- package/dist/src/components/Select/OrigamSelect.vue +22 -5
- package/dist/src/components/Stepper/OrigamStepper.vue +22 -1
- package/dist/src/components/Stepper/OrigamStepperItem.vue +46 -21
- package/dist/src/components/TextField/OrigamTextField.vue +3 -3
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +3 -3
- package/dist/src/components/Toolbar/OrigamToolbar.vue +1 -1
- package/dist/src/composables/Commons/adjacentInner.composable.cjs +17 -3
- package/dist/src/composables/Commons/adjacentInner.composable.d.ts +5 -3
- package/dist/src/composables/Commons/adjacentInner.composable.js +18 -4
- package/dist/src/composables/Commons/link.composable.cjs +6 -5
- package/dist/src/composables/Commons/link.composable.js +6 -5
- package/dist/src/composables/Commons/popup-dialog-aria.composable.cjs +26 -0
- package/dist/src/composables/Commons/popup-dialog-aria.composable.d.ts +23 -0
- package/dist/src/composables/Commons/popup-dialog-aria.composable.js +17 -0
- package/dist/src/composables/Commons/stack.composable.cjs +2 -19
- package/dist/src/composables/Commons/stack.composable.d.ts +1 -1
- package/dist/src/composables/Commons/stack.composable.js +3 -20
- 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/directives/Contrast/contrast.directive.cjs +5 -1
- package/dist/src/directives/Contrast/contrast.directive.js +5 -1
- package/dist/src/interfaces/Stepper/stepper-item.interface.d.ts +11 -2
- package/dist/src/interfaces/Stepper/stepper.interface.d.ts +7 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -70,6 +70,7 @@ export * from './Commons/margin.composable';
|
|
|
70
70
|
export * from './Commons/lazy.composable';
|
|
71
71
|
export * from './Commons/items.composable';
|
|
72
72
|
export * from './Commons/teleport.composable';
|
|
73
|
+
export * from './Commons/popup-dialog-aria.composable';
|
|
73
74
|
export * from './Commons/teleport-typography.composable';
|
|
74
75
|
export * from './Commons/hydration.composable';
|
|
75
76
|
export * from './Commons/stack.composable';
|
|
@@ -70,6 +70,7 @@ export * from "./Commons/margin.composable.js";
|
|
|
70
70
|
export * from "./Commons/lazy.composable.js";
|
|
71
71
|
export * from "./Commons/items.composable.js";
|
|
72
72
|
export * from "./Commons/teleport.composable.js";
|
|
73
|
+
export * from "./Commons/popup-dialog-aria.composable.js";
|
|
73
74
|
export * from "./Commons/teleport-typography.composable.js";
|
|
74
75
|
export * from "./Commons/hydration.composable.js";
|
|
75
76
|
export * from "./Commons/stack.composable.js";
|
|
@@ -165,8 +165,12 @@ function wcagRatio(a, b) {
|
|
|
165
165
|
const WHITE = [255, 255, 255];
|
|
166
166
|
const BLACK = [0, 0, 0];
|
|
167
167
|
function enforceContrast(el, enabled) {
|
|
168
|
+
const wasFixed = el.dataset.origamContrastFixed === "true";
|
|
168
169
|
delete el.dataset.origamContrastFixed;
|
|
169
|
-
if (!enabled || typeof window === "undefined")
|
|
170
|
+
if (!enabled || typeof window === "undefined") {
|
|
171
|
+
if (wasFixed) el.style.removeProperty("color");
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
170
174
|
if (el.dataset.origamColorLocked === "true") return;
|
|
171
175
|
const bg = channelsOf(resolvePaintedBackground(el));
|
|
172
176
|
if (!bg) return;
|
|
@@ -143,8 +143,12 @@ function wcagRatio(a, b) {
|
|
|
143
143
|
const WHITE = [255, 255, 255];
|
|
144
144
|
const BLACK = [0, 0, 0];
|
|
145
145
|
function enforceContrast(el, enabled) {
|
|
146
|
+
const wasFixed = el.dataset.origamContrastFixed === "true";
|
|
146
147
|
delete el.dataset.origamContrastFixed;
|
|
147
|
-
if (!enabled || typeof window === "undefined")
|
|
148
|
+
if (!enabled || typeof window === "undefined") {
|
|
149
|
+
if (wasFixed) el.style.removeProperty("color");
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
148
152
|
if (el.dataset.origamColorLocked === "true") return;
|
|
149
153
|
const bg = channelsOf(resolvePaintedBackground(el));
|
|
150
154
|
if (!bg) return;
|
|
@@ -26,8 +26,17 @@ export interface IStepperItemEmits {
|
|
|
26
26
|
* IStepperItemSlots
|
|
27
27
|
*
|
|
28
28
|
* @description
|
|
29
|
-
* Slot signatures for `<OrigamStepperItem
|
|
30
|
-
*
|
|
29
|
+
* Slot signatures for `<OrigamStepperItem>`. Indicator icon, title and
|
|
30
|
+
* subtitle stay derived from props; `prepend` / `append` add rich content
|
|
31
|
+
* around them (a status pill, a counter, an action): `prepend` renders
|
|
32
|
+
* before the indicator, `append` after the label. `<OrigamStepper>` forwards
|
|
33
|
+
* them in `items` mode as `item-prepend` / `item-append` (connectors kept).
|
|
31
34
|
********************************************************/
|
|
35
|
+
export interface IStepperItemSlotProps {
|
|
36
|
+
index: number;
|
|
37
|
+
status: TStepperItemStatus;
|
|
38
|
+
}
|
|
32
39
|
export interface IStepperItemSlots {
|
|
40
|
+
prepend?: (props: IStepperItemSlotProps) => any;
|
|
41
|
+
append?: (props: IStepperItemSlotProps) => any;
|
|
33
42
|
}
|
|
@@ -9,6 +9,7 @@ import type { IMarginProps } from '../Commons/margin.interface';
|
|
|
9
9
|
import type { IPaddingProps } from '../Commons/padding.interface';
|
|
10
10
|
import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
11
11
|
import type { ISizeProps } from '../Commons/size.interface';
|
|
12
|
+
import type { IStepperItemSlotProps } from './stepper-item.interface';
|
|
12
13
|
import type { TIcon } from '../../types/Icon/icon.type';
|
|
13
14
|
import type { TStepperItemStatus, TStepperOrientation } from '../../types/Stepper/stepper.type';
|
|
14
15
|
/*********************************************************
|
|
@@ -48,4 +49,10 @@ export interface IStepperEmits {
|
|
|
48
49
|
export interface IStepperSlots {
|
|
49
50
|
/** Overrides the whole auto-generated item list. */
|
|
50
51
|
default?: () => any;
|
|
52
|
+
'item-prepend'?: (props: IStepperItemSlotProps & {
|
|
53
|
+
item: IStepperItem;
|
|
54
|
+
}) => any;
|
|
55
|
+
'item-append'?: (props: IStepperItemSlotProps & {
|
|
56
|
+
item: IStepperItem;
|
|
57
|
+
}) => any;
|
|
51
58
|
}
|