origam 2.41.0 → 2.42.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 +103 -0
- package/dist/src/assets/locales/en.json +10 -1
- package/dist/src/assets/locales/fr.json +10 -1
- package/dist/src/components/Alert/OrigamAlert.vue +1 -2
- package/dist/src/components/Audio/OrigamAudio.vue +15 -14
- package/dist/src/components/Badge/OrigamBadge.vue +6 -1
- package/dist/src/components/Bracket/OrigamBracket.vue +5 -5
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -2
- package/dist/src/components/Btn/OrigamBtn.vue +71 -27
- package/dist/src/components/Card/OrigamCard.vue +2 -1
- package/dist/src/components/Carousel/OrigamCarousel.vue +14 -13
- package/dist/src/components/Chart/OrigamChartBullet.vue +4 -1
- package/dist/src/components/Chart/OrigamChartPictorial.vue +3 -6
- package/dist/src/components/Chart/OrigamChartPolar.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -1
- package/dist/src/components/Chart/OrigamChartSankey.vue +9 -167
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +14 -12
- package/dist/src/components/Chart/OrigamChartSunburst.vue +10 -2
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +39 -36
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +3 -4
- package/dist/src/components/Chip/OrigamChip.vue +14 -15
- package/dist/src/components/Chip/OrigamChipGroup.vue +2 -3
- package/dist/src/components/Clipboard/OrigamClipboard.vue +1 -1
- package/dist/src/components/Code/OrigamCode.vue +4 -2
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +5 -1
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +1 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -2
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +6 -2
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +2 -4
- package/dist/src/components/Counter/OrigamCounter.vue +1 -0
- package/dist/src/components/DataTable/OrigamDataTable.vue +2 -3
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -2
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +3 -2
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +2 -3
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +43 -39
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +3 -4
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +1 -1
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -2
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +2 -3
- package/dist/src/components/Field/OrigamField.vue +2 -6
- package/dist/src/components/FileField/OrigamFileField.vue +23 -6
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +3 -4
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +3 -4
- package/dist/src/components/Form/OrigamForm.vue +0 -2
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +7 -7
- package/dist/src/components/Input/OrigamInput.vue +3 -11
- package/dist/src/components/List/OrigamListGroup.vue +2 -3
- package/dist/src/components/List/OrigamListItem.vue +11 -5
- package/dist/src/components/Media/OrigamMediaController.vue +12 -13
- package/dist/src/components/Media/OrigamMediaScrubber.vue +15 -12
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +4 -5
- package/dist/src/components/Menu/OrigamMenu.vue +1 -2
- package/dist/src/components/NumberField/OrigamNumberField.vue +7 -10
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +4 -5
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -4
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +37 -15
- package/dist/src/components/Progress/OrigamProgressLinear.vue +7 -6
- package/dist/src/components/Radio/OrigamRadio.vue +5 -2
- package/dist/src/components/Radio/OrigamRadioBtn.vue +7 -5
- package/dist/src/components/RatingField/OrigamRatingField.vue +1 -2
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +2 -3
- package/dist/src/components/Select/OrigamSelect.vue +174 -107
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +7 -2
- package/dist/src/components/Slide/OrigamSlideGroup.vue +7 -10
- package/dist/src/components/SliderField/OrigamSliderField.vue +1 -2
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +9 -10
- package/dist/src/components/Stepper/OrigamStepper.vue +7 -11
- package/dist/src/components/Stepper/OrigamStepperItem.vue +2 -3
- package/dist/src/components/Switch/OrigamSwitch.vue +0 -9
- package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +2 -5
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +3 -2
- package/dist/src/components/TextareaField/OrigamTextareaFieldRichToolbar.vue +13 -14
- package/dist/src/components/Transition/OrigamExpandX.vue +4 -10
- package/dist/src/components/Transition/OrigamExpandY.vue +4 -10
- package/dist/src/components/Transition/OrigamSnack.vue +2 -8
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +24 -18
- package/dist/src/components/Video/OrigamVideo.vue +14 -19
- package/dist/src/components/Window/OrigamWindow.vue +2 -3
- package/dist/src/composables/Audio/use-waveform.composable.cjs +24 -19
- package/dist/src/composables/Audio/use-waveform.composable.js +24 -19
- package/dist/src/composables/Calendar/calendar.composable.cjs +11 -11
- package/dist/src/composables/Calendar/calendar.composable.js +1 -1
- package/dist/src/composables/Chart/chart.composable.cjs +541 -415
- package/dist/src/composables/Chart/chart.composable.d.ts +2 -5
- package/dist/src/composables/Chart/chart.composable.js +392 -338
- package/dist/src/composables/Code/code.composable.cjs +4 -4
- package/dist/src/composables/Code/code.composable.js +1 -1
- package/dist/src/composables/Commons/color.composable.cjs +106 -48
- package/dist/src/composables/Commons/color.composable.js +55 -48
- package/dist/src/composables/Commons/display.composable.cjs +7 -1
- package/dist/src/composables/Commons/display.composable.js +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.cjs +11 -10
- package/dist/src/composables/Commons/dragResizer.composable.js +2 -1
- package/dist/src/composables/Commons/group.composable.cjs +17 -14
- package/dist/src/composables/Commons/group.composable.js +19 -15
- package/dist/src/composables/Commons/nested.composable.cjs +16 -16
- package/dist/src/composables/Commons/nested.composable.d.ts +1 -1
- package/dist/src/composables/Commons/nested.composable.js +1 -1
- package/dist/src/composables/Commons/nestedItem.composable.cjs +3 -3
- package/dist/src/composables/Commons/nestedItem.composable.d.ts +1 -1
- package/dist/src/composables/Commons/nestedItem.composable.js +1 -1
- package/dist/src/composables/Commons/size.composable.cjs +1 -1
- package/dist/src/composables/Commons/size.composable.js +1 -1
- package/dist/src/composables/Commons/stateEffect.composable.cjs +54 -32
- package/dist/src/composables/Commons/stateEffect.composable.js +43 -33
- package/dist/src/composables/Commons/teleport.composable.cjs +2 -1
- package/dist/src/composables/Commons/teleport.composable.js +4 -1
- package/dist/src/composables/Commons/touch.composable.cjs +77 -33
- package/dist/src/composables/Commons/touch.composable.js +77 -33
- package/dist/src/composables/Commons/vModel.composable.cjs +1 -1
- package/dist/src/composables/Commons/vModel.composable.js +1 -1
- package/dist/src/composables/Commons/validation.composable.cjs +1 -1
- package/dist/src/composables/Commons/validation.composable.js +1 -1
- package/dist/src/composables/Commons/velocity.composable.cjs +5 -1
- package/dist/src/composables/Commons/velocity.composable.js +5 -1
- package/dist/src/composables/DataTable/headers.composable.cjs +36 -30
- package/dist/src/composables/DataTable/headers.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/headers.composable.js +29 -23
- package/dist/src/composables/DataTable/headersCell.composable.cjs +2 -2
- package/dist/src/composables/DataTable/headersCell.composable.js +1 -1
- package/dist/src/composables/DataTable/select.composable.cjs +4 -4
- package/dist/src/composables/DataTable/select.composable.js +1 -1
- package/dist/src/composables/DataTable/sort.composable.cjs +6 -6
- package/dist/src/composables/DataTable/sort.composable.js +1 -1
- package/dist/src/composables/Form/form.composable.cjs +1 -1
- package/dist/src/composables/Form/form.composable.js +3 -1
- package/dist/src/composables/Masonry/masonry.composable.cjs +29 -20
- package/dist/src/composables/Masonry/masonry.composable.d.ts +0 -14
- package/dist/src/composables/Masonry/masonry.composable.js +29 -20
- package/dist/src/composables/NumberFormat/number-format.composable.cjs +28 -23
- package/dist/src/composables/NumberFormat/number-format.composable.js +28 -23
- package/dist/src/composables/Parallax/parallax.composable.cjs +9 -9
- package/dist/src/composables/Parallax/parallax.composable.js +3 -3
- package/dist/src/composables/Parallax/transform.composable.cjs +14 -13
- package/dist/src/composables/Parallax/transform.composable.js +2 -1
- package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +2 -2
- package/dist/src/composables/PasswordField/passwordStrength.composable.js +1 -1
- package/dist/src/composables/QrCode/qr-code.composable.cjs +1 -1
- package/dist/src/composables/QrCode/qr-code.composable.js +1 -1
- package/dist/src/composables/Sheet/sheetSwipe.composable.cjs +3 -4
- package/dist/src/composables/Sheet/sheetSwipe.composable.js +4 -4
- package/dist/src/composables/TextareaField/textarea-field-rich.composable.cjs +31 -31
- package/dist/src/composables/TextareaField/textarea-field-rich.composable.js +1 -1
- package/dist/src/composables/Watermark/watermark.composable.cjs +1 -1
- package/dist/src/composables/Watermark/watermark.composable.js +1 -1
- package/dist/src/consts/Audio/audio.const.cjs +5 -4
- package/dist/src/consts/Audio/audio.const.d.ts +2 -1
- package/dist/src/consts/Audio/audio.const.js +2 -1
- package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -3
- package/dist/src/consts/Blockquote/blockquote.const.js +1 -1
- package/dist/src/consts/Bracket/bracket.const.cjs +4 -3
- package/dist/src/consts/Bracket/bracket.const.js +2 -1
- package/dist/src/consts/Code/code.const.cjs +3 -3
- package/dist/src/consts/Code/code.const.d.ts +1 -1
- package/dist/src/consts/Code/code.const.js +1 -1
- package/dist/src/consts/Commons/autocomplete.const.cjs +2 -2
- package/dist/src/consts/Commons/autocomplete.const.d.ts +1 -1
- package/dist/src/consts/Commons/autocomplete.const.js +1 -1
- package/dist/src/consts/Commons/display.const.cjs +2 -2
- package/dist/src/consts/Commons/display.const.js +1 -1
- package/dist/src/consts/Commons/hotkey.const.cjs +2 -2
- package/dist/src/consts/Commons/hotkey.const.js +1 -1
- package/dist/src/consts/Commons/margin.const.cjs +1 -1
- package/dist/src/consts/Commons/margin.const.js +1 -1
- package/dist/src/consts/Commons/padding.const.cjs +1 -1
- package/dist/src/consts/Commons/padding.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +6 -2
- package/dist/src/consts/Commons/rounded.const.js +6 -2
- package/dist/src/consts/EmptyState/empty-state.const.cjs +12 -12
- package/dist/src/consts/EmptyState/empty-state.const.js +6 -6
- package/dist/src/consts/PasswordField/password-field.const.cjs +20 -11
- package/dist/src/consts/PasswordField/password-field.const.d.ts +10 -5
- package/dist/src/consts/PasswordField/password-field.const.js +17 -10
- package/dist/src/consts/QrCode/qr-code.const.cjs +2 -2
- package/dist/src/consts/QrCode/qr-code.const.js +1 -1
- package/dist/src/consts/TextField/text-field.const.cjs +21 -21
- package/dist/src/consts/TextField/text-field.const.js +1 -1
- package/dist/src/consts/TextareaField/textarea-field.const.cjs +32 -4
- package/dist/src/consts/TextareaField/textarea-field.const.d.ts +1 -0
- package/dist/src/consts/TextareaField/textarea-field.const.js +29 -1
- package/dist/src/directives/Contrast/contrast.directive.cjs +5 -3
- package/dist/src/directives/Contrast/contrast.directive.js +5 -3
- package/dist/src/directives/Intersect/intersect.directive.cjs +2 -1
- package/dist/src/directives/Intersect/intersect.directive.js +2 -1
- package/dist/src/interfaces/Chart/chart.interface.d.ts +70 -1
- package/dist/src/interfaces/ColorPicker/color-picker.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/border.interface.d.ts +11 -10
- package/dist/src/interfaces/Commons/filters.interface.d.ts +7 -0
- package/dist/src/interfaces/Commons/margin.interface.d.ts +12 -11
- package/dist/src/interfaces/Commons/padding.interface.d.ts +12 -11
- package/dist/src/interfaces/Commons/ripple.interface.d.ts +1 -3
- package/dist/src/interfaces/Commons/rounded.interface.d.ts +10 -9
- package/dist/src/interfaces/DataTable/sort.interface.d.ts +6 -0
- package/dist/src/interfaces/Grid/grid.interface.d.ts +4 -4
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +5 -1
- package/dist/src/interfaces/PasswordField/password-requirement.interface.d.ts +8 -0
- package/dist/src/interfaces/Radio/radio-btn.interface.d.ts +2 -2
- package/dist/src/interfaces/Radio/radio.interface.d.ts +2 -1
- package/dist/src/interfaces/Select/select.interface.d.ts +1 -0
- package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +5 -1
- package/dist/src/interfaces/SliderField/slider-field.interface.d.ts +4 -4
- package/dist/src/origam-core.cjs +51 -33
- package/dist/src/origam-core.js +21 -27
- package/dist/src/types/Commons/box-value.type.cjs +1 -0
- package/dist/src/types/Commons/box-value.type.d.ts +1 -0
- package/dist/src/types/Commons/box-value.type.js +0 -0
- package/dist/src/types/Commons/location.type.d.ts +13 -0
- package/dist/src/types/Commons/point.type.d.ts +1 -1
- package/dist/src/types/DataTable/data-table.type.d.ts +1 -0
- package/dist/src/types/Grid/grid.type.d.ts +7 -0
- package/dist/src/types/SliderField/slider-field.type.d.ts +8 -0
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +9 -2
- package/dist/src/utils/Bracket/bracket-surface.util.js +9 -2
- package/dist/src/utils/Calendar/rrule.util.cjs +12 -7
- package/dist/src/utils/Calendar/rrule.util.js +12 -7
- package/dist/src/utils/Chart/chart-point.util.cjs +15 -0
- package/dist/src/utils/Chart/chart-point.util.d.ts +11 -0
- package/dist/src/utils/Chart/chart-point.util.js +8 -0
- package/dist/src/utils/Chart/sankey-layout.util.cjs +144 -0
- package/dist/src/utils/Chart/sankey-layout.util.d.ts +27 -0
- package/dist/src/utils/Chart/sankey-layout.util.js +130 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.cjs +17 -14
- package/dist/src/utils/Code/parse-highlight-lines.util.js +17 -14
- package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +13 -9
- package/dist/src/utils/CommandPalette/fuzzy-match.util.js +13 -9
- package/dist/src/utils/Commons/anchor.util.cjs +6 -1
- package/dist/src/utils/Commons/anchor.util.js +6 -1
- package/dist/src/utils/Commons/apply-mask.util.cjs +11 -14
- package/dist/src/utils/Commons/apply-mask.util.js +7 -10
- package/dist/src/utils/Commons/apply-theme.util.cjs +6 -4
- package/dist/src/utils/Commons/apply-theme.util.js +6 -4
- package/dist/src/utils/Commons/bindProps.util.cjs +3 -5
- package/dist/src/utils/Commons/bindProps.util.js +3 -5
- package/dist/src/utils/Commons/color.util.cjs +43 -36
- package/dist/src/utils/Commons/color.util.js +44 -31
- package/dist/src/utils/Commons/commons.util.cjs +3 -3
- package/dist/src/utils/Commons/commons.util.js +3 -3
- package/dist/src/utils/Commons/console.util.cjs +6 -0
- package/dist/src/utils/Commons/console.util.d.ts +11 -0
- package/dist/src/utils/Commons/console.util.js +5 -0
- package/dist/src/utils/Commons/date.util.cjs +2 -27
- package/dist/src/utils/Commons/date.util.js +2 -27
- package/dist/src/utils/Commons/display.util.cjs +10 -1
- package/dist/src/utils/Commons/display.util.d.ts +8 -1
- package/dist/src/utils/Commons/display.util.js +9 -1
- package/dist/src/utils/Commons/eventListener.util.cjs +1 -2
- package/dist/src/utils/Commons/eventListener.util.js +1 -2
- package/dist/src/utils/Commons/filters.util.cjs +48 -34
- package/dist/src/utils/Commons/filters.util.d.ts +3 -8
- package/dist/src/utils/Commons/filters.util.js +47 -34
- package/dist/src/utils/Commons/forwardRefs.util.cjs +44 -40
- package/dist/src/utils/Commons/forwardRefs.util.js +44 -40
- package/dist/src/utils/Commons/group.util.cjs +1 -1
- package/dist/src/utils/Commons/group.util.js +1 -1
- package/dist/src/utils/Commons/hotkey.util.cjs +65 -61
- package/dist/src/utils/Commons/hotkey.util.js +56 -53
- package/dist/src/utils/Commons/hover.util.cjs +2 -2
- package/dist/src/utils/Commons/hover.util.js +2 -2
- package/dist/src/utils/Commons/locale.util.cjs +1 -1
- package/dist/src/utils/Commons/locale.util.js +1 -1
- package/dist/src/utils/Commons/location.util.cjs +87 -92
- package/dist/src/utils/Commons/location.util.js +75 -83
- package/dist/src/utils/Commons/nested.util.cjs +11 -11
- package/dist/src/utils/Commons/nested.util.js +1 -1
- package/dist/src/utils/Commons/point.util.cjs +16 -14
- package/dist/src/utils/Commons/point.util.js +13 -8
- package/dist/src/utils/Commons/ripple.util.cjs +4 -4
- package/dist/src/utils/Commons/ripple.util.js +4 -4
- package/dist/src/utils/Commons/scroll.util.cjs +9 -6
- package/dist/src/utils/Commons/scroll.util.js +9 -6
- package/dist/src/utils/Commons/token-name.util.cjs +22 -21
- package/dist/src/utils/Commons/token-name.util.js +22 -21
- package/dist/src/utils/Commons/validate-pattern.util.cjs +6 -6
- package/dist/src/utils/Commons/validate-pattern.util.js +1 -1
- package/dist/src/utils/DataTable/headers.util.cjs +20 -26
- package/dist/src/utils/DataTable/headers.util.js +18 -26
- package/dist/src/utils/DataTable/sort.util.cjs +41 -47
- package/dist/src/utils/DataTable/sort.util.d.ts +2 -7
- package/dist/src/utils/DataTable/sort.util.js +49 -47
- package/dist/src/utils/List/list-item.util.cjs +6 -1
- package/dist/src/utils/List/list-item.util.js +6 -1
- package/dist/src/utils/Parallax/parallax-element.util.cjs +13 -14
- package/dist/src/utils/Parallax/parallax-element.util.js +10 -11
- package/dist/src/utils/Slide/slide-group.util.cjs +4 -4
- package/dist/src/utils/Slide/slide-group.util.js +4 -4
- package/dist/src/utils/TextareaField/html-to-markdown.util.cjs +5 -36
- package/dist/src/utils/TextareaField/html-to-markdown.util.js +5 -36
- package/dist/src/utils/TextareaField/sanitize-html.util.cjs +18 -22
- package/dist/src/utils/TextareaField/sanitize-html.util.js +19 -23
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ export interface IColorPickerProps extends ICommonsComponentProps, IBorderProps,
|
|
|
32
32
|
hideInputs?: boolean;
|
|
33
33
|
showSwatches?: boolean;
|
|
34
34
|
swatchesMaxHeight?: string | number;
|
|
35
|
-
modelValue?: Record<string, unknown> | string |
|
|
35
|
+
modelValue?: Record<string, unknown> | string | null;
|
|
36
36
|
}
|
|
37
37
|
export interface IColorPickerMode {
|
|
38
38
|
inputProps: Record<string, unknown>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { TBoxValue } from '../../types/Commons/box-value.type';
|
|
1
2
|
import { TColor } from '../../types/Commons/color.type';
|
|
2
3
|
import { TDirectionBoth } from '../../types/Commons/anchor.type';
|
|
3
4
|
export interface IBorderProps {
|
|
4
5
|
border?: boolean | number | string | TDirectionBoth | Array<TDirectionBoth>;
|
|
5
|
-
borderTop?:
|
|
6
|
-
borderLeft?:
|
|
7
|
-
borderBottom?:
|
|
8
|
-
borderRight?:
|
|
6
|
+
borderTop?: TBoxValue;
|
|
7
|
+
borderLeft?: TBoxValue;
|
|
8
|
+
borderBottom?: TBoxValue;
|
|
9
|
+
borderRight?: TBoxValue;
|
|
9
10
|
/**
|
|
10
11
|
* Logical-axis shorthand for the block-start + block-end edges (top +
|
|
11
12
|
* bottom in the default horizontal-tb writing mode). Resolves to the
|
|
@@ -17,13 +18,13 @@ export interface IBorderProps {
|
|
|
17
18
|
* `borderBottom` still wins over it for that specific edge — see
|
|
18
19
|
* `useBorder` JSDoc for the full precedence table.
|
|
19
20
|
*/
|
|
20
|
-
borderBlock?:
|
|
21
|
+
borderBlock?: TBoxValue;
|
|
21
22
|
/**
|
|
22
23
|
* Logical-axis shorthand for the inline-start + inline-end edges (left
|
|
23
24
|
* + right in LTR). Same grammar and precedence rules as `borderBlock`,
|
|
24
25
|
* mapped onto `border-inline-{width,style,color}`.
|
|
25
26
|
*/
|
|
26
|
-
borderInline?:
|
|
27
|
+
borderInline?: TBoxValue;
|
|
27
28
|
/*********************************************************
|
|
28
29
|
* borderInlineStart
|
|
29
30
|
*
|
|
@@ -57,7 +58,7 @@ export interface IBorderProps {
|
|
|
57
58
|
* une largeur fractionnaire (`"0.5rem solid red"`) ne parse pas et
|
|
58
59
|
* n'emet RIEN — mesure dans `BORDER_LOGICAL_SIDE_MAP`.
|
|
59
60
|
********************************************************/
|
|
60
|
-
borderInlineStart?:
|
|
61
|
+
borderInlineStart?: TBoxValue;
|
|
61
62
|
/*********************************************************
|
|
62
63
|
* borderInlineEnd
|
|
63
64
|
*
|
|
@@ -67,7 +68,7 @@ export interface IBorderProps {
|
|
|
67
68
|
* `border-inline-end-{width,style,color}`. Meme grammaire, memes
|
|
68
69
|
* regles de precedence (un `borderRight` physique l'emporte en LTR).
|
|
69
70
|
********************************************************/
|
|
70
|
-
borderInlineEnd?:
|
|
71
|
+
borderInlineEnd?: TBoxValue;
|
|
71
72
|
/*********************************************************
|
|
72
73
|
* borderBlockStart
|
|
73
74
|
*
|
|
@@ -78,7 +79,7 @@ export interface IBorderProps {
|
|
|
78
79
|
* grammaire, memes regles de precedence (un `borderTop` physique
|
|
79
80
|
* l'emporte).
|
|
80
81
|
********************************************************/
|
|
81
|
-
borderBlockStart?:
|
|
82
|
+
borderBlockStart?: TBoxValue;
|
|
82
83
|
/*********************************************************
|
|
83
84
|
* borderBlockEnd
|
|
84
85
|
*
|
|
@@ -89,7 +90,7 @@ export interface IBorderProps {
|
|
|
89
90
|
* grammaire, memes regles de precedence (un `borderBottom` physique
|
|
90
91
|
* l'emporte).
|
|
91
92
|
********************************************************/
|
|
92
|
-
borderBlockEnd?:
|
|
93
|
+
borderBlockEnd?: TBoxValue;
|
|
93
94
|
borderColor?: string;
|
|
94
95
|
borderStyle?: string;
|
|
95
96
|
/**
|
|
@@ -6,3 +6,10 @@ export interface IFiltersProps {
|
|
|
6
6
|
filterMode?: TFilterMode;
|
|
7
7
|
noFilter?: boolean;
|
|
8
8
|
}
|
|
9
|
+
export interface IFilterItemsOptions {
|
|
10
|
+
customKeyFilter?: TFilterKeyFunctions;
|
|
11
|
+
default?: TFilterFunction;
|
|
12
|
+
filterKeys?: TFilterKeys;
|
|
13
|
+
filterMode?: TFilterMode;
|
|
14
|
+
noFilter?: boolean;
|
|
15
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TBoxValue } from '../../types/Commons/box-value.type';
|
|
1
2
|
/**
|
|
2
3
|
* Outer-spacing surface.
|
|
3
4
|
*
|
|
@@ -29,19 +30,19 @@ export interface IMarginProps {
|
|
|
29
30
|
* design rung; `"8px 16px"` → block / inline; `true` → the legacy
|
|
30
31
|
* `--marged` class.
|
|
31
32
|
*/
|
|
32
|
-
margin?:
|
|
33
|
+
margin?: TBoxValue;
|
|
33
34
|
/** Overrides `margin` and `marginBlock` for the top edge. */
|
|
34
|
-
marginTop?:
|
|
35
|
+
marginTop?: TBoxValue;
|
|
35
36
|
/** Overrides `margin` and `marginInline` for the left edge. */
|
|
36
|
-
marginLeft?:
|
|
37
|
+
marginLeft?: TBoxValue;
|
|
37
38
|
/** Overrides `margin` and `marginBlock` for the bottom edge. */
|
|
38
|
-
marginBottom?:
|
|
39
|
+
marginBottom?: TBoxValue;
|
|
39
40
|
/** Overrides `margin` and `marginInline` for the right edge. */
|
|
40
|
-
marginRight?:
|
|
41
|
+
marginRight?: TBoxValue;
|
|
41
42
|
/** Top + bottom. Overrides `margin`; beaten by `marginTop` / `marginBottom`. */
|
|
42
|
-
marginBlock?:
|
|
43
|
+
marginBlock?: TBoxValue;
|
|
43
44
|
/** Left + right. Overrides `margin`; beaten by `marginLeft` / `marginRight`. */
|
|
44
|
-
marginInline?:
|
|
45
|
+
marginInline?: TBoxValue;
|
|
45
46
|
/*********************************************************
|
|
46
47
|
* Logical per-side margin — rung 3 (issue #1013)
|
|
47
48
|
*
|
|
@@ -66,8 +67,8 @@ export interface IMarginProps {
|
|
|
66
67
|
* Each overrides `margin` and its axis prop for the one edge it
|
|
67
68
|
* targets, and is beaten by the matching PHYSICAL prop.
|
|
68
69
|
********************************************************/
|
|
69
|
-
marginInlineStart?:
|
|
70
|
-
marginInlineEnd?:
|
|
71
|
-
marginBlockStart?:
|
|
72
|
-
marginBlockEnd?:
|
|
70
|
+
marginInlineStart?: TBoxValue;
|
|
71
|
+
marginInlineEnd?: TBoxValue;
|
|
72
|
+
marginBlockStart?: TBoxValue;
|
|
73
|
+
marginBlockEnd?: TBoxValue;
|
|
73
74
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TBoxValue } from '../../types/Commons/box-value.type';
|
|
1
2
|
/**
|
|
2
3
|
* Inner-spacing surface.
|
|
3
4
|
*
|
|
@@ -33,19 +34,19 @@ export interface IPaddingProps {
|
|
|
33
34
|
* design rung; `"8px 16px"` → block / inline; `true` → the legacy
|
|
34
35
|
* `--padded` class.
|
|
35
36
|
*/
|
|
36
|
-
padding?:
|
|
37
|
+
padding?: TBoxValue;
|
|
37
38
|
/** Overrides `padding` and `paddingBlock` for the top edge. */
|
|
38
|
-
paddingTop?:
|
|
39
|
+
paddingTop?: TBoxValue;
|
|
39
40
|
/** Overrides `padding` and `paddingInline` for the left edge. */
|
|
40
|
-
paddingLeft?:
|
|
41
|
+
paddingLeft?: TBoxValue;
|
|
41
42
|
/** Overrides `padding` and `paddingBlock` for the bottom edge. */
|
|
42
|
-
paddingBottom?:
|
|
43
|
+
paddingBottom?: TBoxValue;
|
|
43
44
|
/** Overrides `padding` and `paddingInline` for the right edge. */
|
|
44
|
-
paddingRight?:
|
|
45
|
+
paddingRight?: TBoxValue;
|
|
45
46
|
/** Top + bottom. Overrides `padding`; beaten by `paddingTop` / `paddingBottom`. */
|
|
46
|
-
paddingBlock?:
|
|
47
|
+
paddingBlock?: TBoxValue;
|
|
47
48
|
/** Left + right. Overrides `padding`; beaten by `paddingLeft` / `paddingRight`. */
|
|
48
|
-
paddingInline?:
|
|
49
|
+
paddingInline?: TBoxValue;
|
|
49
50
|
/*********************************************************
|
|
50
51
|
* Logical per-side padding — rung 3 (issue #1013)
|
|
51
52
|
*
|
|
@@ -71,8 +72,8 @@ export interface IPaddingProps {
|
|
|
71
72
|
* reading-order offset — an indent, a gutter beside an accent rule —
|
|
72
73
|
* rather than a genuinely physical one.
|
|
73
74
|
********************************************************/
|
|
74
|
-
paddingInlineStart?:
|
|
75
|
-
paddingInlineEnd?:
|
|
76
|
-
paddingBlockStart?:
|
|
77
|
-
paddingBlockEnd?:
|
|
75
|
+
paddingInlineStart?: TBoxValue;
|
|
76
|
+
paddingInlineEnd?: TBoxValue;
|
|
77
|
+
paddingBlockStart?: TBoxValue;
|
|
78
|
+
paddingBlockEnd?: TBoxValue;
|
|
78
79
|
}
|
|
@@ -5,9 +5,7 @@ export interface IRippleProps {
|
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
7
|
export interface IRippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
8
|
-
value?: boolean |
|
|
9
|
-
class: string;
|
|
10
|
-
};
|
|
8
|
+
value?: boolean | IRippleOptions;
|
|
11
9
|
modifiers: {
|
|
12
10
|
center?: boolean;
|
|
13
11
|
circle?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TBoxValue } from '../../types/Commons/box-value.type';
|
|
1
2
|
import type { TRounded } from '../../types/Commons/rounded.type';
|
|
2
3
|
/**
|
|
3
4
|
* Corner-radius surface.
|
|
@@ -36,19 +37,19 @@ export interface IRoundedProps {
|
|
|
36
37
|
* - **CSS value** (`'4px'`, `'4px 0 4px 0'`, `100`) → emits inline
|
|
37
38
|
* `border-radius` declarations via `useRounded.roundedStyles`.
|
|
38
39
|
*/
|
|
39
|
-
rounded?:
|
|
40
|
+
rounded?: TBoxValue | TRounded | null;
|
|
40
41
|
/**
|
|
41
42
|
* Top-right corner only. Takes the same vocabulary as `rounded`
|
|
42
43
|
* (`8`, `'8px'`, `'md'`, `'large'`, `'var(…)'`), minus `shaped` /
|
|
43
44
|
* `shaped-invert` which are asymmetric by definition.
|
|
44
45
|
*/
|
|
45
|
-
roundedTopRight?:
|
|
46
|
+
roundedTopRight?: TBoxValue;
|
|
46
47
|
/** Top-left corner only. Same vocabulary as `roundedTopRight`. */
|
|
47
|
-
roundedTopLeft?:
|
|
48
|
+
roundedTopLeft?: TBoxValue;
|
|
48
49
|
/** Bottom-left corner only. Same vocabulary as `roundedTopRight`. */
|
|
49
|
-
roundedBottomLeft?:
|
|
50
|
+
roundedBottomLeft?: TBoxValue;
|
|
50
51
|
/** Bottom-right corner only. Same vocabulary as `roundedTopRight`. */
|
|
51
|
-
roundedBottomRight?:
|
|
52
|
+
roundedBottomRight?: TBoxValue;
|
|
52
53
|
/*********************************************************
|
|
53
54
|
* Logical per-corner radius — rung 2 (issue #1013)
|
|
54
55
|
*
|
|
@@ -79,8 +80,8 @@ export interface IRoundedProps {
|
|
|
79
80
|
* overrides `rounded` for its corner and is beaten by the matching
|
|
80
81
|
* PHYSICAL corner prop.
|
|
81
82
|
********************************************************/
|
|
82
|
-
roundedStartStart?:
|
|
83
|
-
roundedStartEnd?:
|
|
84
|
-
roundedEndStart?:
|
|
85
|
-
roundedEndEnd?:
|
|
83
|
+
roundedStartStart?: TBoxValue;
|
|
84
|
+
roundedStartEnd?: TBoxValue;
|
|
85
|
+
roundedEndStart?: TBoxValue;
|
|
86
|
+
roundedEndEnd?: TBoxValue;
|
|
86
87
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IInternalDataTableHeader } from './data-table-header.interface';
|
|
2
|
+
import type { IInternalItem } from '../List/list-children.interface';
|
|
2
3
|
import type { TDataTableCompareFunction } from '../../types/DataTable/data-table.type';
|
|
3
4
|
import type { TSortDirection } from '../../types/Commons/sort.type';
|
|
4
5
|
import type { Ref } from 'vue';
|
|
@@ -17,3 +18,8 @@ export interface IDataTableProvideSort {
|
|
|
17
18
|
toggleSort: (column: IInternalDataTableHeader) => void;
|
|
18
19
|
isSorted: (column: IInternalDataTableHeader) => boolean;
|
|
19
20
|
}
|
|
21
|
+
export interface IDataTableSortItemsOptions<T extends IInternalItem = IInternalItem> {
|
|
22
|
+
transform?: (item: T) => Record<string, any>;
|
|
23
|
+
sortFunctions?: Record<string, TDataTableCompareFunction>;
|
|
24
|
+
sortRawFunctions?: Record<string, TDataTableCompareFunction>;
|
|
25
|
+
}
|
|
@@ -6,7 +6,7 @@ import type { IElevationProps } from '../Commons/elevation.interface';
|
|
|
6
6
|
import type { IMarginProps } from '../Commons/margin.interface';
|
|
7
7
|
import type { IPaddingProps } from '../Commons/padding.interface';
|
|
8
8
|
import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
9
|
-
import type { TGridAutoFlow,
|
|
9
|
+
import type { TGridAutoFlow, TGridGap, TGridPlaceContent, TGridPlaceItems } from '../../types/Grid/grid.type';
|
|
10
10
|
/**
|
|
11
11
|
* Tracks definition accepted by `columns` / `rows` / `autoColumns` /
|
|
12
12
|
* `autoRows`. The three accepted shapes are intentionally permissive
|
|
@@ -60,15 +60,15 @@ export interface IGridProps extends ICommonsComponentProps, ITagProps, IDimensio
|
|
|
60
60
|
*
|
|
61
61
|
* @default 'md'
|
|
62
62
|
*/
|
|
63
|
-
gap?:
|
|
63
|
+
gap?: TGridGap;
|
|
64
64
|
/**
|
|
65
65
|
* Inline-axis-only gap override. Same accepted shapes as `gap`.
|
|
66
66
|
*/
|
|
67
|
-
columnGap?:
|
|
67
|
+
columnGap?: TGridGap;
|
|
68
68
|
/**
|
|
69
69
|
* Block-axis-only gap override. Same accepted shapes as `gap`.
|
|
70
70
|
*/
|
|
71
|
-
rowGap?:
|
|
71
|
+
rowGap?: TGridGap;
|
|
72
72
|
/**
|
|
73
73
|
* `grid-template-areas`. Two accepted shapes:
|
|
74
74
|
*
|
|
@@ -38,8 +38,12 @@ export interface IPasswordFieldProps extends ITextFieldProps {
|
|
|
38
38
|
* Useful for forms that want the requirements always visible.
|
|
39
39
|
*/
|
|
40
40
|
persistentRequirements?: boolean;
|
|
41
|
-
/** Minimum
|
|
41
|
+
/** Minimum length. Enforced only when set explicitly, or with `requirements` / `strengthBar` (default 8 there). */
|
|
42
42
|
minLength?: number;
|
|
43
|
+
/*********************************************************
|
|
44
|
+
* Replaces the default (translated) message of the length rule for this field.
|
|
45
|
+
********************************************************/
|
|
46
|
+
minLengthMessage?: string;
|
|
43
47
|
/** Require at least one lowercase letter. */
|
|
44
48
|
needTiny?: boolean;
|
|
45
49
|
/** Require at least one uppercase letter. */
|
|
@@ -21,6 +21,14 @@ export interface IPasswordRequirement {
|
|
|
21
21
|
id: string;
|
|
22
22
|
/** Human-readable label rendered next to the check/cross icon. */
|
|
23
23
|
label: string;
|
|
24
|
+
/*********************************************************
|
|
25
|
+
* Locale key resolved with `t()` instead of `label` (used by the DS defaults).
|
|
26
|
+
********************************************************/
|
|
27
|
+
labelKey?: string;
|
|
28
|
+
/*********************************************************
|
|
29
|
+
* Params for `labelKey` (e.g. `{count}`).
|
|
30
|
+
********************************************************/
|
|
31
|
+
labelParams?: Record<string, string | number>;
|
|
24
32
|
/**
|
|
25
33
|
* Predicate evaluated against the current password value.
|
|
26
34
|
* Return `true` when the rule is satisfied.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IClickLabelEmits, ICommonsComponentEmits, ICommonsComponentProps } from '../Commons/commons.interface';
|
|
2
|
-
import type { ISelectionControlProps } from '../SelectionControl/selection-control.interface';
|
|
2
|
+
import type { ISelectionControlProps, ISelectionControlSlots } from '../SelectionControl/selection-control.interface';
|
|
3
3
|
import type { TColor } from '../../types/Commons/color.type';
|
|
4
4
|
import type { TIcon } from '../../types/Icon/icon.type';
|
|
5
5
|
export interface IRadioBtnProps extends ICommonsComponentProps, ISelectionControlProps {
|
|
@@ -32,5 +32,5 @@ export interface IRadioBtnSlots {
|
|
|
32
32
|
icon?: TIcon;
|
|
33
33
|
props: any;
|
|
34
34
|
}) => any;
|
|
35
|
-
label?:
|
|
35
|
+
label?: ISelectionControlSlots['label'];
|
|
36
36
|
}
|
|
@@ -12,6 +12,7 @@ import type { IMarginProps } from '../Commons/margin.interface';
|
|
|
12
12
|
import type { IPaddingProps } from '../Commons/padding.interface';
|
|
13
13
|
import type { IRadioBtnProps } from './radio-btn.interface';
|
|
14
14
|
import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
15
|
+
import type { ISelectionControlSlots } from '../SelectionControl/selection-control.interface';
|
|
15
16
|
import type { TIcon } from '../../types/Icon/icon.type';
|
|
16
17
|
export interface IRadioProps extends ICommonsComponentProps, IInputProps, IRadioBtnProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBorderProps, IElevationProps, IActiveProps, IHoverProps {
|
|
17
18
|
}
|
|
@@ -41,7 +42,7 @@ export interface IRadioSlots extends IAdjacentSlots {
|
|
|
41
42
|
icon?: TIcon;
|
|
42
43
|
model: any;
|
|
43
44
|
}) => any;
|
|
44
|
-
label?:
|
|
45
|
+
label?: ISelectionControlSlots['label'];
|
|
45
46
|
details?: (props: any) => any;
|
|
46
47
|
messages?: (data: {
|
|
47
48
|
hasMessages: boolean;
|
|
@@ -12,7 +12,7 @@ import type { IPaddingProps } from '../Commons/padding.interface';
|
|
|
12
12
|
import type { IRippleProps } from '../Commons/ripple.interface';
|
|
13
13
|
import type { IRoundedProps } from '../Commons/rounded.interface';
|
|
14
14
|
import type { ISliderFieldTrackProps, ISliderFieldTrackSlots } from './slider-field-track.interface';
|
|
15
|
-
import type { TAlways, TSliderFieldVariant } from '../../types/SliderField/slider-field.type';
|
|
15
|
+
import type { TAlways, TSliderFieldValue, TSliderFieldVariant } from '../../types/SliderField/slider-field.type';
|
|
16
16
|
import type { TSize } from '../../types/Commons/size.type';
|
|
17
17
|
export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps, IColorProps, IInputProps, IFocusProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IRippleProps, IDirectionProps {
|
|
18
18
|
disabled?: boolean;
|
|
@@ -30,7 +30,7 @@ export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps
|
|
|
30
30
|
*/
|
|
31
31
|
trackProps?: ISliderFieldTrackProps;
|
|
32
32
|
reverse?: boolean;
|
|
33
|
-
modelValue?:
|
|
33
|
+
modelValue?: TSliderFieldValue;
|
|
34
34
|
range?: boolean;
|
|
35
35
|
showTicks?: TAlways;
|
|
36
36
|
ticks?: Array<number> | Record<string, string>;
|
|
@@ -103,8 +103,8 @@ export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps
|
|
|
103
103
|
/** Emits fired by `<OrigamSliderField>` — v-model + focus + drag lifecycle
|
|
104
104
|
* (`start` fires on pointerdown of a thumb, `end` on pointerup). */
|
|
105
105
|
export interface ISliderFieldEmits extends ICommonsComponentEmits, IFocusEmits {
|
|
106
|
-
(e: 'start', value:
|
|
107
|
-
(e: 'end', value:
|
|
106
|
+
(e: 'start', value: TSliderFieldValue): void;
|
|
107
|
+
(e: 'end', value: TSliderFieldValue): void;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Slot signatures for `<OrigamSliderField>`. `prepend` / `append` are
|
package/dist/src/origam-core.cjs
CHANGED
|
@@ -5,10 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.activeDefaultsFor = activeDefaultsFor;
|
|
7
7
|
exports.createOrigamCore = createOrigamCore;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _date = require("./composables/Commons/date.composable.cjs");
|
|
9
|
+
var _defaults = require("./composables/Commons/defaults.composable.cjs");
|
|
10
|
+
var _display = require("./composables/Commons/display.composable.cjs");
|
|
11
|
+
var _goTo = require("./composables/Commons/goTo.composable.cjs");
|
|
12
|
+
var _locale = require("./composables/Commons/locale.composable.cjs");
|
|
13
|
+
var _themePropsResolver = require("./composables/Commons/theme-props-resolver.composable.cjs");
|
|
14
|
+
var _icon = require("./composables/Icon/icon.composable.cjs");
|
|
15
|
+
var _code = require("./consts/Code/code.const.cjs");
|
|
16
|
+
var _commons = require("./consts/Commons/commons.const.cjs");
|
|
17
|
+
var _date2 = require("./consts/Commons/date.const.cjs");
|
|
18
|
+
var _defaults2 = require("./consts/Commons/defaults.const.cjs");
|
|
19
|
+
var _display2 = require("./consts/Commons/display.const.cjs");
|
|
20
|
+
var _goTo2 = require("./consts/Commons/goTo.const.cjs");
|
|
21
|
+
var _locale2 = require("./consts/Commons/locale.const.cjs");
|
|
22
|
+
var _ssrStyle = require("./consts/Commons/ssr-style.const.cjs");
|
|
23
|
+
var _theme = require("./consts/Commons/theme.const.cjs");
|
|
24
|
+
var _variantPreset = require("./consts/Commons/variant-preset.const.cjs");
|
|
25
|
+
var _icon2 = require("./consts/Icon/icon.const.cjs");
|
|
10
26
|
var _contrast = require("./directives/Contrast/contrast.directive.cjs");
|
|
11
|
-
var
|
|
27
|
+
var _applyTheme = require("./utils/Commons/apply-theme.util.cjs");
|
|
28
|
+
var _commons2 = require("./utils/Commons/commons.util.cjs");
|
|
29
|
+
var _ssrStyles = require("./utils/Commons/ssr-styles.util.cjs");
|
|
12
30
|
var _vue = require("vue");
|
|
13
31
|
function scheduleDisplayUpdate(app, display) {
|
|
14
32
|
const nuxt = app.$nuxt;
|
|
@@ -28,10 +46,10 @@ function scheduleDisplayUpdate(app, display) {
|
|
|
28
46
|
}
|
|
29
47
|
function origamAccessor() {
|
|
30
48
|
return (0, _vue.reactive)({
|
|
31
|
-
display: inject.call(this,
|
|
32
|
-
icons: inject.call(this,
|
|
33
|
-
locale: inject.call(this,
|
|
34
|
-
date: inject.call(this,
|
|
49
|
+
display: inject.call(this, _display2.ORIGAM_DISPLAY_KEY),
|
|
50
|
+
icons: inject.call(this, _icon2.ORIGAM_ICONS_KEY),
|
|
51
|
+
locale: inject.call(this, _locale2.ORIGAM_LOCALE_KEY),
|
|
52
|
+
date: inject.call(this, _date2.ORIGAM_DATE_ADAPTER_KEY)
|
|
35
53
|
});
|
|
36
54
|
}
|
|
37
55
|
function installOptionsApiMixin(app) {
|
|
@@ -46,7 +64,7 @@ function createOrigamCore(origam = {}) {
|
|
|
46
64
|
blueprint,
|
|
47
65
|
...rest
|
|
48
66
|
} = origam;
|
|
49
|
-
const options = (0,
|
|
67
|
+
const options = (0, _commons2.mergeDeep)(blueprint, rest);
|
|
50
68
|
const {
|
|
51
69
|
aliases = {},
|
|
52
70
|
components = {},
|
|
@@ -54,22 +72,22 @@ function createOrigamCore(origam = {}) {
|
|
|
54
72
|
} = options;
|
|
55
73
|
const suppliedThemes = [...(options.theme ? [options.theme] : []), ...(options.themes ?? [])];
|
|
56
74
|
const allThemes = [...suppliedThemes];
|
|
57
|
-
const installedThemes = (0,
|
|
58
|
-
const defaultsRef = (0,
|
|
75
|
+
const installedThemes = (0, _applyTheme.installedThemesFromList)(allThemes);
|
|
76
|
+
const defaultsRef = (0, _defaults.createDefaults)({});
|
|
59
77
|
defaultsRef.value = activeDefaultsFor(allThemes, allThemes[0]?.name ?? "");
|
|
60
|
-
const themedKeysUnion = (0,
|
|
61
|
-
const variantPresets = (0,
|
|
78
|
+
const themedKeysUnion = (0, _themePropsResolver.themedPropKeysUnion)(allThemes.map(theme => theme.components).filter(components2 => !!components2));
|
|
79
|
+
const variantPresets = (0, _themePropsResolver.resolveVariantPresetRegistry)(_variantPreset.VARIANT_PRESETS, allThemes.map(theme => theme.variants).filter(variants => !!variants));
|
|
62
80
|
const scope = (0, _vue.effectScope)();
|
|
63
81
|
return scope.run(() => {
|
|
64
|
-
const icons = (0,
|
|
65
|
-
const display = (0,
|
|
66
|
-
const locale = (0,
|
|
67
|
-
const date = (0,
|
|
68
|
-
const goTo = (0,
|
|
82
|
+
const icons = (0, _icon.createIconsCore)(options.icons);
|
|
83
|
+
const display = (0, _display.createDisplay)(options.display, options.ssr);
|
|
84
|
+
const locale = (0, _locale.createLocale)(options.locale);
|
|
85
|
+
const date = (0, _date.createDate)(options.date, locale);
|
|
86
|
+
const goTo = (0, _goTo.createGoTo)(options.goTo, locale);
|
|
69
87
|
(0, _contrast.setContrastConfig)(options.contrast);
|
|
70
88
|
const install = app => {
|
|
71
89
|
if (allThemes.length) {
|
|
72
|
-
(0,
|
|
90
|
+
(0, _applyTheme.applyThemes)(allThemes);
|
|
73
91
|
}
|
|
74
92
|
for (const key in directives) {
|
|
75
93
|
app.directive(key, directives[key]);
|
|
@@ -86,21 +104,21 @@ function createOrigamCore(origam = {}) {
|
|
|
86
104
|
}
|
|
87
105
|
const appScope = (0, _vue.effectScope)();
|
|
88
106
|
app.onUnmount(() => appScope.stop());
|
|
89
|
-
app.provide(
|
|
90
|
-
app.provide(
|
|
91
|
-
app.provide(
|
|
92
|
-
app.provide(
|
|
93
|
-
app.provide(
|
|
94
|
-
app.provide(
|
|
95
|
-
app.provide(
|
|
96
|
-
app.provide(
|
|
97
|
-
app.provide(
|
|
98
|
-
if (!
|
|
99
|
-
app.provide(
|
|
107
|
+
app.provide(_icon2.ORIGAM_ICONS_KEY, icons);
|
|
108
|
+
app.provide(_code.ORIGAM_CODE_KEY, options.code ?? {});
|
|
109
|
+
app.provide(_display2.ORIGAM_DISPLAY_KEY, display);
|
|
110
|
+
app.provide(_locale2.ORIGAM_LOCALE_KEY, locale);
|
|
111
|
+
app.provide(_date2.ORIGAM_DATE_OPTIONS_KEY, date.options);
|
|
112
|
+
app.provide(_date2.ORIGAM_DATE_ADAPTER_KEY, date.instance);
|
|
113
|
+
app.provide(_goTo2.ORIGAM_GO_TO_KEY, goTo);
|
|
114
|
+
app.provide(_theme.ORIGAM_THEMES_KEY, installedThemes);
|
|
115
|
+
app.provide(_defaults2.ORIGAM_DEFAULTS_KEY, defaultsRef);
|
|
116
|
+
if (!_commons.IN_BROWSER) {
|
|
117
|
+
app.provide(_ssrStyle.ORIGAM_SSR_STYLES_KEY, (0, _ssrStyles.registerSsrStyleCollector)(app));
|
|
100
118
|
}
|
|
101
|
-
(0,
|
|
102
|
-
app.provide(
|
|
103
|
-
if (
|
|
119
|
+
(0, _themePropsResolver.installThemePropsResolver)(app, themedKeysUnion, variantPresets);
|
|
120
|
+
app.provide(_theme.ORIGAM_THEME_DEFAULTS_KEY, (brand, mode) => activeDefaultsFor(allThemes, brand, mode));
|
|
121
|
+
if (_commons.IN_BROWSER && options.ssr) {
|
|
104
122
|
scheduleDisplayUpdate(app, display);
|
|
105
123
|
}
|
|
106
124
|
if (typeof __VUE_OPTIONS_API__ !== "boolean" || __VUE_OPTIONS_API__) {
|
|
@@ -138,7 +156,7 @@ function activeDefaultsFor(themes, brand, mode) {
|
|
|
138
156
|
const themeModeAgnostic = theme.mode === void 0 || theme.mode === "auto";
|
|
139
157
|
const modeMatches = themeModeAgnostic || mode === void 0 || theme.mode === mode;
|
|
140
158
|
if (brandMatches && modeMatches) {
|
|
141
|
-
merged = (0,
|
|
159
|
+
merged = (0, _commons2.mergeDeep)(merged, theme.components);
|
|
142
160
|
}
|
|
143
161
|
}
|
|
144
162
|
return merged;
|
package/dist/src/origam-core.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
ORIGAM_GO_TO_KEY,
|
|
20
|
-
ORIGAM_ICONS_KEY,
|
|
21
|
-
ORIGAM_LOCALE_KEY,
|
|
22
|
-
ORIGAM_SSR_STYLES_KEY,
|
|
23
|
-
ORIGAM_THEME_DEFAULTS_KEY,
|
|
24
|
-
ORIGAM_THEMES_KEY,
|
|
25
|
-
VARIANT_PRESETS
|
|
26
|
-
} from "./consts/index.js";
|
|
1
|
+
import { createDate } from "./composables/Commons/date.composable.js";
|
|
2
|
+
import { createDefaults } from "./composables/Commons/defaults.composable.js";
|
|
3
|
+
import { createDisplay } from "./composables/Commons/display.composable.js";
|
|
4
|
+
import { createGoTo } from "./composables/Commons/goTo.composable.js";
|
|
5
|
+
import { createLocale } from "./composables/Commons/locale.composable.js";
|
|
6
|
+
import { installThemePropsResolver, resolveVariantPresetRegistry, themedPropKeysUnion } from "./composables/Commons/theme-props-resolver.composable.js";
|
|
7
|
+
import { createIconsCore } from "./composables/Icon/icon.composable.js";
|
|
8
|
+
import { ORIGAM_CODE_KEY } from "./consts/Code/code.const.js";
|
|
9
|
+
import { IN_BROWSER } from "./consts/Commons/commons.const.js";
|
|
10
|
+
import { ORIGAM_DATE_ADAPTER_KEY, ORIGAM_DATE_OPTIONS_KEY } from "./consts/Commons/date.const.js";
|
|
11
|
+
import { ORIGAM_DEFAULTS_KEY } from "./consts/Commons/defaults.const.js";
|
|
12
|
+
import { ORIGAM_DISPLAY_KEY } from "./consts/Commons/display.const.js";
|
|
13
|
+
import { ORIGAM_GO_TO_KEY } from "./consts/Commons/goTo.const.js";
|
|
14
|
+
import { ORIGAM_LOCALE_KEY } from "./consts/Commons/locale.const.js";
|
|
15
|
+
import { ORIGAM_SSR_STYLES_KEY } from "./consts/Commons/ssr-style.const.js";
|
|
16
|
+
import { ORIGAM_THEME_DEFAULTS_KEY, ORIGAM_THEMES_KEY } from "./consts/Commons/theme.const.js";
|
|
17
|
+
import { VARIANT_PRESETS } from "./consts/Commons/variant-preset.const.js";
|
|
18
|
+
import { ORIGAM_ICONS_KEY } from "./consts/Icon/icon.const.js";
|
|
27
19
|
import { setContrastConfig } from "./directives/Contrast/contrast.directive.js";
|
|
28
|
-
import { applyThemes, installedThemesFromList
|
|
20
|
+
import { applyThemes, installedThemesFromList } from "./utils/Commons/apply-theme.util.js";
|
|
21
|
+
import { mergeDeep } from "./utils/Commons/commons.util.js";
|
|
22
|
+
import { registerSsrStyleCollector } from "./utils/Commons/ssr-styles.util.js";
|
|
29
23
|
import { defineComponent, effectScope, nextTick, reactive } from "vue";
|
|
30
24
|
function scheduleDisplayUpdate(app, display) {
|
|
31
25
|
const nuxt = app.$nuxt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TBoxValue = boolean | number | string;
|
|
File without changes
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { LOCATION_STRATEGIES } from '../../enums/Commons/location.enum';
|
|
3
|
+
import type { TParsedAnchor } from './anchor.type';
|
|
3
4
|
import type { ILocationStrategyData, ILocationStrategyProps } from '../../interfaces/Commons/location.interface';
|
|
4
5
|
export type TLocationStrategyFn = (data: ILocationStrategyData, props: ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => undefined | {
|
|
5
6
|
updateLocation: (e: Event) => void;
|
|
6
7
|
};
|
|
7
8
|
export type TLocationStrategy = `${LOCATION_STRATEGIES}`;
|
|
9
|
+
export type TPlacement = {
|
|
10
|
+
anchor: TParsedAnchor;
|
|
11
|
+
origin: TParsedAnchor;
|
|
12
|
+
};
|
|
13
|
+
export type TAxisOverflow = {
|
|
14
|
+
before: number;
|
|
15
|
+
after: number;
|
|
16
|
+
};
|
|
17
|
+
export type TOverflow = {
|
|
18
|
+
x: TAxisOverflow;
|
|
19
|
+
y: TAxisOverflow;
|
|
20
|
+
};
|
|
@@ -6,6 +6,7 @@ import { DATATABLE_SELECT_STRATEGY } from '../../enums/DataTable/data-table.enum
|
|
|
6
6
|
import type { IDataTableItemKey } from '../../interfaces/DataTable/items.interface';
|
|
7
7
|
import type { TDataTableRowSlotName } from './data-table-rows.type';
|
|
8
8
|
export type TDataTableCompareFunction<T = any> = (a: T, b: T) => number | null;
|
|
9
|
+
export type TDataTableSortEntry<T> = readonly [T, Record<string, any>];
|
|
9
10
|
export type TDataTableHeaderCell = Record<string, any> | ((data: Pick<IDataTableItemKey<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>);
|
|
10
11
|
export type TDataTableRow<T> = Record<string, any> | ((data: Pick<IDataTableItemKey<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>);
|
|
11
12
|
export type TDataTableCell<T> = Record<string, any> | ((data: Pick<IDataTableItemKey<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>);
|