@vueland/ui 0.0.2 → 0.0.3
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/README.md +55 -45
- package/dist/components/CApp/CApp.js +2 -2
- package/dist/components/CAutocomplete/CAutocomplete.js +23 -6
- package/dist/components/CCheckbox/CCheckbox.js +1 -1
- package/dist/components/CDateInput/CDateInput.js +0 -1
- package/dist/components/CDatePicker/index4.js +1 -1
- package/dist/components/CDatePicker/index6.js +1 -1
- package/dist/components/CDialog/index.js +1 -1
- package/dist/components/CDialog/index2.js +1 -1
- package/dist/components/CInput/CInput.js +23 -14
- package/dist/components/CList/CList.js +36 -17
- package/dist/components/CList/CListItem.js +15 -10
- package/dist/components/CMenu/CMenu.js +29 -31
- package/dist/components/CSelect/CSelect.js +26 -6
- package/dist/components/CTextField/CTextField.js +1 -1
- package/dist/components/CTooltip/CTooltip.js +12 -8
- package/dist/components/CTooltip/index.js +2 -2
- package/dist/components/CTooltip/index2.js +5 -0
- package/dist/components/index.d.ts +174 -188
- package/dist/components/index.js +1 -1
- package/dist/composables/index.d.ts +124 -590
- package/dist/composables/index.js +11 -6
- package/dist/composables/use-activator.js +1 -13
- package/dist/composables/{use-app-scroll.js → use-application-scroll.js} +2 -2
- package/dist/composables/use-aria-activator.js +15 -0
- package/dist/composables/use-aria-dialog.js +16 -0
- package/dist/composables/use-aria-field.js +18 -0
- package/dist/composables/use-aria-listbox.js +14 -0
- package/dist/composables/use-aria-toggle.js +15 -0
- package/dist/composables/use-auto-position.js +51 -51
- package/dist/composables/use-breakpoints.js +8 -0
- package/dist/composables/use-delay-actions.js +9 -8
- package/dist/composables/use-display.js +4 -4
- package/dist/composables/use-presets.js +1 -3
- package/dist/constants/aria.js +32 -0
- package/dist/constants/index.d.ts +78 -37
- package/dist/constants/index.js +1 -0
- package/dist/css/lib.css +1 -0
- package/dist/css/utils/_grid.css +1 -0
- package/dist/css/utils/_grid.js +3 -0
- package/dist/css/utils/_radius.css +1 -1
- package/dist/css/utils/_typography.css +1 -1
- package/dist/library.js +5 -5
- package/dist/scss/lib.scss +26 -0
- package/dist/scss/styles.scss +1 -0
- package/dist/scss/utils/_grid.scss +173 -0
- package/dist/scss/utils/_radius.scss +4 -4
- package/dist/scss/utils/_typography.scss +13 -0
- package/dist/styles.css +1 -1
- package/dist/temp-types/src/components/CAutocomplete/CAutocomplete.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CAutocomplete/CAutocomplete.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CCheckbox/CCheckbox.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CCheckbox/CheckboxElement.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CDateInput/CDateInput.vue.d.ts +2 -2
- package/dist/temp-types/src/components/CDateInput/CDateInput.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CGrid/CRow.d.ts +1 -1
- package/dist/temp-types/src/components/CInput/CInput.vue.d.ts +2 -2
- package/dist/temp-types/src/components/CInput/CInput.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CInput/types.d.ts +2 -2
- package/dist/temp-types/src/components/CInput/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/CList.vue.d.ts +5 -1
- package/dist/temp-types/src/components/CList/CList.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/CListItem.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CList/types.d.ts +3 -1
- package/dist/temp-types/src/components/CList/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CMenu/CMenu.vue.d.ts +4 -4
- package/dist/temp-types/src/components/CMenu/CMenu.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CMenu/types.d.ts +2 -2
- package/dist/temp-types/src/components/CMenu/types.d.ts.map +1 -1
- package/dist/temp-types/src/components/CRadio/CRadio.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CSelect/CSelect.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CSelect/CSelect.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CSelectControl/CSelectControl.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CTextField/CTextField.vue.d.ts +1 -1
- package/dist/temp-types/src/components/CTextField/CTextField.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTextField/types.d.ts +1 -1
- package/dist/temp-types/src/components/CTooltip/CTooltip.vue.d.ts +3 -1
- package/dist/temp-types/src/components/CTooltip/CTooltip.vue.d.ts.map +1 -1
- package/dist/temp-types/src/components/CTooltip/index.d.ts +7 -1
- package/dist/temp-types/src/components/CTooltip/index.d.ts.map +1 -1
- package/dist/temp-types/src/composables/index.d.ts +7 -2
- package/dist/temp-types/src/composables/index.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-activator.d.ts +0 -153
- package/dist/temp-types/src/composables/use-activator.d.ts.map +1 -1
- package/dist/temp-types/src/composables/{use-app-scroll.d.ts → use-application-scroll.d.ts} +2 -2
- package/dist/temp-types/src/composables/use-application-scroll.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-activator.d.ts +8 -0
- package/dist/temp-types/src/composables/use-aria-activator.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-dialog.d.ts +9 -0
- package/dist/temp-types/src/composables/use-aria-dialog.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-field.d.ts +13 -0
- package/dist/temp-types/src/composables/use-aria-field.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-listbox.d.ts +8 -0
- package/dist/temp-types/src/composables/use-aria-listbox.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-aria-toggle.d.ts +11 -0
- package/dist/temp-types/src/composables/use-aria-toggle.d.ts.map +1 -0
- package/dist/temp-types/src/composables/use-auto-position.d.ts +4 -284
- package/dist/temp-types/src/composables/use-auto-position.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-breakpoints.d.ts +1 -0
- package/dist/temp-types/src/composables/use-breakpoints.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-delay-actions.d.ts +0 -26
- package/dist/temp-types/src/composables/use-delay-actions.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-display.d.ts +22 -49
- package/dist/temp-types/src/composables/use-display.d.ts.map +1 -1
- package/dist/temp-types/src/composables/use-presets.d.ts +0 -14
- package/dist/temp-types/src/composables/use-presets.d.ts.map +1 -1
- package/dist/temp-types/src/constants/aria.d.ts +35 -0
- package/dist/temp-types/src/constants/aria.d.ts.map +1 -0
- package/dist/temp-types/src/constants/index.d.ts +1 -0
- package/dist/temp-types/src/constants/index.d.ts.map +1 -1
- package/dist/temp-types/src/constants/provide-keys.d.ts +3 -5
- package/dist/temp-types/src/constants/provide-keys.d.ts.map +1 -1
- package/dist/temp-types/src/utils/aria.d.ts +36 -0
- package/dist/temp-types/src/utils/aria.d.ts.map +1 -0
- package/dist/temp-types/src/utils/index.d.ts +1 -1
- package/dist/temp-types/src/utils/index.d.ts.map +1 -1
- package/dist/temp-types/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/aria.js +95 -0
- package/dist/utils/index.d.ts +40 -38
- package/dist/utils/index.js +1 -1
- package/package.json +5 -5
- package/dist/composables/use-menu-presets.js +0 -17
- package/dist/css/themes/default-theme.css +0 -1
- package/dist/scss/themes/default-theme.scss +0 -25
- package/dist/temp-types/src/composables/use-app-scroll.d.ts.map +0 -1
- package/dist/temp-types/src/composables/use-menu-presets.d.ts +0 -7
- package/dist/temp-types/src/composables/use-menu-presets.d.ts.map +0 -1
- package/dist/temp-types/src/utils/props-factory.d.ts +0 -37
- package/dist/temp-types/src/utils/props-factory.d.ts.map +0 -1
- package/dist/utils/props-factory.js +0 -25
- /package/dist/css/{themes/default-theme.js → lib.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueland/ui",
|
|
3
3
|
"description": "Vue 3 component library for the Vueland platform",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
"import": "./dist/index.js",
|
|
31
31
|
"require": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
-
"./styles.css": "./dist/styles.css",
|
|
34
|
-
"./css/utils/*": "./dist/css/utils/*",
|
|
35
33
|
"./components": {
|
|
36
34
|
"types": "./dist/components/index.d.ts",
|
|
37
35
|
"import": "./dist/components/index.js",
|
|
@@ -71,9 +69,11 @@
|
|
|
71
69
|
"types": "./dist/types/index.d.ts",
|
|
72
70
|
"import": "./dist/types/index.d.ts"
|
|
73
71
|
},
|
|
74
|
-
"./css/
|
|
72
|
+
"./css/lib.css": "./dist/css/lib.css",
|
|
73
|
+
"./styles.css": "./dist/styles.css",
|
|
74
|
+
"./css/utils/*": "./dist/css/utils/*",
|
|
75
75
|
"./styles/scss/styles.scss": "./dist/scss/styles.scss",
|
|
76
|
-
"./styles/scss/
|
|
76
|
+
"./styles/scss/lib.scss": "./dist/scss/lib.scss"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"vue": "^3.5.27"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { computed, unref } from 'vue';
|
|
2
|
-
import { usePresets } from './use-presets.js';
|
|
3
|
-
|
|
4
|
-
function useMenuPresets({ props }) {
|
|
5
|
-
const presets = usePresets(props);
|
|
6
|
-
return computed(() => {
|
|
7
|
-
var _a, _b, _c, _d, _e;
|
|
8
|
-
return {
|
|
9
|
-
root: props.preset ? [
|
|
10
|
-
...(_b = (_a = unref(presets)) == null ? void 0 : _a.root) != null ? _b : [],
|
|
11
|
-
...props.modelValue ? (_e = (_d = (_c = unref(presets)) == null ? void 0 : _c.opened) == null ? void 0 : _d.root) != null ? _e : [] : []
|
|
12
|
-
] : []
|
|
13
|
-
};
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { useMenuPresets };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.c-app{--app-background-color:var(--c-app-surface-color);display:flex}.c-app__wrapper{backface-visibility:hidden;background-color:var(--app-background-color);display:flex;flex:1 1 auto;flex-direction:column;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.c-app--block-scroll{bottom:0;left:var(--scroll-left);pointer-events:none;position:fixed;top:var(--scroll-top);width:100%}.c-btn{--btn-text-color:#fff;--btn-border-radius:var(--c-app-border-radius);--btn-bg-color:var(--c-app-primary-color);--btn-paddings:8px 12px;--btn-min-width:80px;--btn-width:auto;--btn-min-height:24px;--btn-height:auto;--btn-font-size:16px;align-items:center;border-radius:var(--btn-border-radius);color:var(--btn-text-color);display:inline-flex;font-size:var(--btn-font-size);height:var(--btn-height);justify-content:center;min-height:var(--btn-min-height);min-width:var(--btn-min-width);padding:var(--btn-paddings);position:relative;text-decoration:none;user-select:none;vertical-align:middle;width:var(--btn-width)}.c-btn__label{white-space:nowrap}.c-btn:disabled{background-color:#bdbdbd!important;color:#eee!important;cursor:not-allowed;pointer-events:none}.c-btn--flat{background-color:var(--btn-bg-color);color:currentColor}.c-btn--outlined{background-color:transparent;border:1px solid;color:currentColor}.c-btn--outlined:before{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.c-btn--block,.c-form{width:100%}:root{--c-app-primary-color:#1976d2;--c-app-on-primary-color:#fff;--c-app-secondary-color:#1565c0;--c-app-success-color:#4caf50;--c-app-error-color:#e53935;--c-app-warning-color:#ff9800;--c-app-info-color:#039be5;--c-app-accent-color:#76ff03;--c-app-background-color:#f5f5f5;--c-app-surface-color:#fff;--c-app-surface-variant-color:#eee;--c-app-on-surface-color:#424242;--c-app-text-color:#424242;--c-app-text-secondary-color:#757575;--c-app-placeholder-color:#9e9e9e;--c-app-disabled-color:#bdbdbd;--c-app-disabled-bg-color:#eee;--c-app-disabled-opacity:0.5;--c-app-readonly-color:#1976d2;--c-app-readonly-bg-color:#f5f5f5;--c-app-focus-color:#1976d2;--c-app-error-bg-color:#ffebee;--c-app-hover-color:rgba(0,0,0,.06);--c-app-overlay-color:rgba(0,0,0,.5);--c-app-shadow-color:rgba(0,0,0,.15);--c-app-border-color:#e0e0e0;--c-app-border-radius:8px}[data-theme=dark]{--c-app-primary-color:#90caf9;--c-app-on-primary-color:#212121;--c-app-secondary-color:#64b5f6;--c-app-success-color:#81c784;--c-app-error-color:#e57373;--c-app-warning-color:#ffb74d;--c-app-info-color:#4fc3f7;--c-app-background-color:#212121;--c-app-surface-color:#1e1e1e;--c-app-surface-variant-color:#2a2a2a;--c-app-on-surface-color:#e0e0e0;--c-app-text-color:#e0e0e0;--c-app-text-secondary-color:#9e9e9e;--c-app-placeholder-color:#757575;--c-app-disabled-color:#616161;--c-app-disabled-bg-color:#2a2a2a;--c-app-disabled-opacity:0.4;--c-app-readonly-color:#90caf9;--c-app-readonly-bg-color:#2a2a2a;--c-app-focus-color:#90caf9;--c-app-error-bg-color:rgba(#F44336,.12);--c-app-hover-color:hsla(0,0%,100%,.08);--c-app-overlay-color:rgba(0,0,0,.7);--c-app-shadow-color:rgba(0,0,0,.4);--c-app-border-color:#616161}.c-input{--c-input-field-border-radius:var(--c-app-border-radius);--c-input-details-height:24px;--c-input-clear-action-min-width:24px;--c-input-field-text-color:var(--c-app-text-color);--c-input-error-color:var(--c-app-error-color);--c-input-primary-color:var(--c-app-primary-color);--c-input-background-color:var(--c-app-surface-color);--c-input-disabled-color:var(--c-app-disabled-color);background-color:var(--c-input-background-color);border-radius:var(--c-app-border-radius);color:currentColor;display:flex;flex:1 1 auto;flex-direction:column;position:relative;transition:color .2s cubic-bezier(.25,.8,.5,1)}.c-input--focused .c-input__field{border-color:currentColor}.c-input--default{color:var(--c-input-primary-color)}.c-input--has-error{color:var(--c-input-error-color)}.c-input--disabled{color:var(--c-input-disabled-color);pointer-events:none}.c-input__field{display:flex}.c-input__details{align-items:center;background-color:transparent;display:flex;height:var(--c-input-details-height);justify-content:start}.c-toolbar{--toolbar-height:60px;--toolbar-logo-width:auto;--toolbar-background-color:var(--c-app-surface-color);--toolbar-logo-padding:0 10px;background-color:var(--toolbar-background-color);display:flex;height:var(--toolbar-height);width:100%}.c-toolbar-logo{align-items:center;display:flex;justify-content:center;padding:var(--toolbar-logo-padding);width:var(--toolbar-logo-width)}.c-toolbar--fixed{left:0;position:fixed;right:0;top:0;z-index:1}.c-list{--list-bg-color:var(--c-app-surface-color)}.c-list--readonly{pointer-events:none}.c-list-item{--list-item-height:36px;align-items:center;color:currentColor;cursor:pointer;display:flex;height:var(--list-item-height);justify-content:start;position:relative}.c-list-item:before{background:rgba(0,0,0,.1);bottom:0;content:"";display:block;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}.c-list-item--active:before,.c-list-item--focused:before,.c-list-item:hover:before{opacity:1}.c-list-item-title{padding:0 8px}.c-menu{--menu-bg-color:var(--c-app-surface-color);--menu-text-color:var(--c-app-text-color);--menu-border-radius:var(--c-app-border-radius);--menu-max-height:100%;background-color:var(--menu-bg-color);border-radius:var(--menu-border-radius);box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);color:var(--menu-text-color);max-height:var(--menu-max-height);overflow:hidden;position:absolute;width:auto}.c-menu__content{height:inherit;max-height:inherit;max-width:inherit;overflow-x:hidden;overflow-y:auto;width:inherit}.c-text-field{cursor:text;flex:1 1}.c-select{flex:1 1}.c-select>.c-field>.c-field__append{transition:transform .1s linear}.c-select>.c-field--focused>.c-field__append{transform:rotate(180deg)}.c-autocomplete{cursor:text;flex:1 1 auto;max-height:100%;min-width:0;position:relative}.c-autocomplete__box{align-items:center;column-gap:2px;cursor:text;display:flex;flex-wrap:wrap;height:100%;justify-content:flex-start}.c-autocomplete-item{align-items:center;display:inline-flex;flex:0 1 auto;justify-content:center;max-width:100%}.c-autocomplete>.c-field>.c-field__append{transition:transform .1s linear}.c-autocomplete>.c-field--focused>.c-field__append{transform:rotate(180deg)}.c-field{--c-field-border-color:var(--c-app-border-color);--c-field-disabled-opacity:var(--c-app-disabled-opacity);--c-field-readonly-bg-color:var(--c-app-readonly-bg-color);--c-field-prepend-min-width:40px;--c-field-append-min-width:24px;--c-field-min-height:40px;align-items:center;background-color:var(--c-app-surface-color);border-radius:var(--c-app-border-radius);display:flex;isolation:isolate;min-height:var(--c-field-min-height);padding:1px 8px;position:relative;transition:color .2s cubic-bezier(.25,.8,.5,1),opacity .2s cubic-bezier(.25,.8,.5,1)}.c-field__outline{align-items:stretch;border-radius:inherit;display:flex;inset:0;pointer-events:none;position:absolute;z-index:-1}.c-field__outline-end,.c-field__outline-notch,.c-field__outline-start{border:0 solid var(--c-field-border-color);transition:border-color .2s cubic-bezier(.25,.8,.5,1)}.c-field__outline-start{border-bottom-left-radius:inherit;border-bottom-width:thin;border-left-width:thin;border-top-left-radius:inherit;border-top-width:thin;flex:0 0 var(--c-app-border-radius)}.c-field__outline-notch{border-bottom-width:thin;border-top-width:thin;flex:0 1 auto}.c-field__outline-notch span{display:block;max-width:.01px;overflow:hidden;padding:0 3px;transform-origin:left center;transition:max-width .15s ease;visibility:hidden;white-space:nowrap}.c-field__outline-end{border-bottom-right-radius:inherit;border-bottom-width:thin;border-right-width:thin;border-top-right-radius:inherit;border-top-width:thin;flex:1 1 auto}.c-field__core{align-items:center;column-gap:3px;display:flex;flex:1 1;flex-wrap:wrap;min-height:40px;padding:5px 0;width:100%}.c-field__prepend{min-width:var(--c-field-prepend-min-width)}.c-field__clear,.c-field__prepend{align-items:center;display:flex;justify-content:center;min-height:var(--c-field-min-height)}.c-field__clear{cursor:pointer;width:24px}.c-field__append{align-items:center;display:flex;justify-content:center;min-height:var(--c-field-min-height);min-width:var(--c-field-append-min-width)}.c-field-label{left:var(--c-app-border-radius);line-height:.9;padding:0 3px;position:absolute;top:50%;transform:translateY(-50%);transition:top .2s cubic-bezier(.25,.8,.5,1),left .2s cubic-bezier(.25,.8,.5,1),transform .2s cubic-bezier(.25,.8,.5,1)}.c-field-input{color:var(--c-app-text-color);cursor:inherit;flex:1 1;min-width:20%;outline:none;width:100%}.c-field-input::placeholder{opacity:0}.c-field--focused .c-field-input::placeholder{opacity:1}.c-field--focused>.c-field__outline>.c-field__outline-end,.c-field--focused>.c-field__outline>.c-field__outline-notch,.c-field--focused>.c-field__outline>.c-field__outline-start{border-color:currentColor}.c-field--filled>.c-field__outline>.c-field__outline-notch,.c-field--focused>.c-field__outline>.c-field__outline-notch{border-top-width:0}.c-field--filled>.c-field__outline>.c-field__outline-notch span,.c-field--focused>.c-field__outline>.c-field__outline-notch span{max-width:100%}.c-field--filled>.c-field__core>.c-field-label,.c-field--focused>.c-field__core>.c-field-label{left:var(--c-app-border-radius);top:0;transform:translateY(-50%) scale(.8)}.c-field--filled .c-field-input::placeholder{opacity:0}.c-field--error>.c-field__outline>.c-field__outline-end,.c-field--error>.c-field__outline>.c-field__outline-notch,.c-field--error>.c-field__outline>.c-field__outline-start{border-color:currentColor}.c-field--disabled{cursor:not-allowed;opacity:var(--c-field-disabled-opacity);pointer-events:none}.c-field--readonly>.c-field__outline>.c-field__outline-end,.c-field--readonly>.c-field__outline>.c-field__outline-notch,.c-field--readonly>.c-field__outline>.c-field__outline-start{background-color:var(--c-field-readonly-bg-color)}.c-field--has-prepend{padding-left:0}.c-field--has-prepend>.c-field__core>.c-field-label{left:var(--c-field-prepend-min-width)}.c-field--has-prepend>.c-field__core>.c-field-input{padding-right:8px}.c-field--has-prepend.c-field--filled>.c-field__core>.c-field-label,.c-field--has-prepend.c-field--focused>.c-field__core>.c-field-label{left:var(--c-app-border-radius);top:0;transform:translateY(-50%) scale(.8)}.c-card{--card-width:100%;--card-header-padding:16px;--card-body-padding:16px;--card-footer-padding:16px;--card-border-radius:8px;--card-background-color:var(--c-app-surface-color);--card-text-color:var(--c-app-text-color);background-color:var(--card-background-color);border-radius:var(--card-border-radius);color:var(--card-text-color);display:flex;flex-direction:column;overflow:hidden;width:var(--card-width)}.c-card-header{flex-grow:0;padding:var(--card-header-padding)}.c-card-body{padding:var(--card-body-padding)}.c-card-footer{flex-grow:0;padding:var(--card-footer-padding)}.c-main{flex:1 0 auto;max-width:100%}.c-row{display:flex;flex-wrap:wrap;margin-left:-.2083333333px;margin-right:-.2083333333px}.c-row.no-gutter{margin-left:0;margin-right:0}.c-row.no-gutter>.c-col{padding-left:0;padding-right:0}.c-col{padding-left:.2083333333px;padding-right:.2083333333px;position:relative;width:100%}.c-spacer{flex-grow:1!important}.c-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.offset-1{margin-left:8.3333333333%}.c-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.offset-2{margin-left:16.6666666667%}.c-col-3{flex:0 0 25%;max-width:25%}.offset-3{margin-left:25%}.c-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.offset-4{margin-left:33.3333333333%}.c-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.offset-5{margin-left:41.6666666667%}.c-col-6{flex:0 0 50%;max-width:50%}.offset-6{margin-left:50%}.c-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.offset-7{margin-left:58.3333333333%}.c-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.offset-8{margin-left:66.6666666667%}.c-col-9{flex:0 0 75%;max-width:75%}.offset-9{margin-left:75%}.c-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.offset-10{margin-left:83.3333333333%}.c-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.offset-11{margin-left:91.6666666667%}.c-col-12{flex:0 0 100%;max-width:100%}.offset-12{margin-left:100%}.c-col.xs-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.xs\:offset-1{margin-left:8.3333333333%}.xs\:order-1{order:1}.c-col.xs-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.xs\:offset-2{margin-left:16.6666666667%}.xs\:order-2{order:2}.c-col.xs-3{flex:0 0 25%;max-width:25%}.xs\:offset-3{margin-left:25%}.xs\:order-3{order:3}.c-col.xs-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.xs\:offset-4{margin-left:33.3333333333%}.xs\:order-4{order:4}.c-col.xs-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.xs\:offset-5{margin-left:41.6666666667%}.xs\:order-5{order:5}.c-col.xs-6{flex:0 0 50%;max-width:50%}.xs\:offset-6{margin-left:50%}.xs\:order-6{order:6}.c-col.xs-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.xs\:offset-7{margin-left:58.3333333333%}.xs\:order-7{order:7}.c-col.xs-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.xs\:offset-8{margin-left:66.6666666667%}.xs\:order-8{order:8}.c-col.xs-9{flex:0 0 75%;max-width:75%}.xs\:offset-9{margin-left:75%}.xs\:order-9{order:9}.c-col.xs-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.xs\:offset-10{margin-left:83.3333333333%}.xs\:order-10{order:10}.c-col.xs-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.xs\:offset-11{margin-left:91.6666666667%}.xs\:order-11{order:11}.c-col.xs-12{flex:0 0 100%;max-width:100%}.xs\:offset-12{margin-left:100%}.xs\:order-12{order:12}@media (min-width:600px){.c-row{margin-left:-.4166666667px;margin-right:-.4166666667px}.c-col{padding-left:.4166666667px;padding-right:.4166666667px}.c-col.sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.sm\:offset-1{margin-left:8.3333333333%}.sm\:order-1{order:1}.c-col.sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.sm\:offset-2{margin-left:16.6666666667%}.sm\:order-2{order:2}.c-col.sm-3{flex:0 0 25%;max-width:25%}.sm\:offset-3{margin-left:25%}.sm\:order-3{order:3}.c-col.sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.sm\:offset-4{margin-left:33.3333333333%}.sm\:order-4{order:4}.c-col.sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.sm\:offset-5{margin-left:41.6666666667%}.sm\:order-5{order:5}.c-col.sm-6{flex:0 0 50%;max-width:50%}.sm\:offset-6{margin-left:50%}.sm\:order-6{order:6}.c-col.sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.sm\:offset-7{margin-left:58.3333333333%}.sm\:order-7{order:7}.c-col.sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.sm\:offset-8{margin-left:66.6666666667%}.sm\:order-8{order:8}.c-col.sm-9{flex:0 0 75%;max-width:75%}.sm\:offset-9{margin-left:75%}.sm\:order-9{order:9}.c-col.sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.sm\:offset-10{margin-left:83.3333333333%}.sm\:order-10{order:10}.c-col.sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.sm\:offset-11{margin-left:91.6666666667%}.sm\:order-11{order:11}.c-col.sm-12{flex:0 0 100%;max-width:100%}.sm\:offset-12{margin-left:100%}.sm\:order-12{order:12}}@media (min-width:960px){.c-row{margin-left:-.8333333333px;margin-right:-.8333333333px}.c-col{padding-left:.8333333333px;padding-right:.8333333333px}.c-col.md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.md\:offset-1{margin-left:8.3333333333%}.md\:order-1{order:1}.c-col.md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.md\:offset-2{margin-left:16.6666666667%}.md\:order-2{order:2}.c-col.md-3{flex:0 0 25%;max-width:25%}.md\:offset-3{margin-left:25%}.md\:order-3{order:3}.c-col.md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.md\:offset-4{margin-left:33.3333333333%}.md\:order-4{order:4}.c-col.md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.md\:offset-5{margin-left:41.6666666667%}.md\:order-5{order:5}.c-col.md-6{flex:0 0 50%;max-width:50%}.md\:offset-6{margin-left:50%}.md\:order-6{order:6}.c-col.md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.md\:offset-7{margin-left:58.3333333333%}.md\:order-7{order:7}.c-col.md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.md\:offset-8{margin-left:66.6666666667%}.md\:order-8{order:8}.c-col.md-9{flex:0 0 75%;max-width:75%}.md\:offset-9{margin-left:75%}.md\:order-9{order:9}.c-col.md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.md\:offset-10{margin-left:83.3333333333%}.md\:order-10{order:10}.c-col.md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.md\:offset-11{margin-left:91.6666666667%}.md\:order-11{order:11}.c-col.md-12{flex:0 0 100%;max-width:100%}.md\:offset-12{margin-left:100%}.md\:order-12{order:12}}@media (min-width:1280px){.c-row{margin-left:-1.6666666667px;margin-right:-1.6666666667px}.c-col{padding-left:1.6666666667px;padding-right:1.6666666667px}.c-col.lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.lg\:offset-1{margin-left:8.3333333333%}.lg\:order-1{order:1}.c-col.lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.lg\:offset-2{margin-left:16.6666666667%}.lg\:order-2{order:2}.c-col.lg-3{flex:0 0 25%;max-width:25%}.lg\:offset-3{margin-left:25%}.lg\:order-3{order:3}.c-col.lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.lg\:offset-4{margin-left:33.3333333333%}.lg\:order-4{order:4}.c-col.lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.lg\:offset-5{margin-left:41.6666666667%}.lg\:order-5{order:5}.c-col.lg-6{flex:0 0 50%;max-width:50%}.lg\:offset-6{margin-left:50%}.lg\:order-6{order:6}.c-col.lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.lg\:offset-7{margin-left:58.3333333333%}.lg\:order-7{order:7}.c-col.lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.lg\:offset-8{margin-left:66.6666666667%}.lg\:order-8{order:8}.c-col.lg-9{flex:0 0 75%;max-width:75%}.lg\:offset-9{margin-left:75%}.lg\:order-9{order:9}.c-col.lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.lg\:offset-10{margin-left:83.3333333333%}.lg\:order-10{order:10}.c-col.lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.lg\:offset-11{margin-left:91.6666666667%}.lg\:order-11{order:11}.c-col.lg-12{flex:0 0 100%;max-width:100%}.lg\:offset-12{margin-left:100%}.lg\:order-12{order:12}}@media (min-width:1920px){.c-row{margin-left:-3.3333333333px;margin-right:-3.3333333333px}.c-col{padding-left:3.3333333333px;padding-right:3.3333333333px}.c-col.xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.xl\:offset-1{margin-left:8.3333333333%}.xl\:order-1{order:1}.c-col.xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.xl\:offset-2{margin-left:16.6666666667%}.xl\:order-2{order:2}.c-col.xl-3{flex:0 0 25%;max-width:25%}.xl\:offset-3{margin-left:25%}.xl\:order-3{order:3}.c-col.xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.xl\:offset-4{margin-left:33.3333333333%}.xl\:order-4{order:4}.c-col.xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.xl\:offset-5{margin-left:41.6666666667%}.xl\:order-5{order:5}.c-col.xl-6{flex:0 0 50%;max-width:50%}.xl\:offset-6{margin-left:50%}.xl\:order-6{order:6}.c-col.xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.xl\:offset-7{margin-left:58.3333333333%}.xl\:order-7{order:7}.c-col.xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.xl\:offset-8{margin-left:66.6666666667%}.xl\:order-8{order:8}.c-col.xl-9{flex:0 0 75%;max-width:75%}.xl\:offset-9{margin-left:75%}.xl\:order-9{order:9}.c-col.xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.xl\:offset-10{margin-left:83.3333333333%}.xl\:order-10{order:10}.c-col.xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.xl\:offset-11{margin-left:91.6666666667%}.xl\:order-11{order:11}.c-col.xl-12{flex:0 0 100%;max-width:100%}.xl\:offset-12{margin-left:100%}.xl\:order-12{order:12}}@media (min-width:2560px){.c-row{margin-left:-5px;margin-right:-5px}.c-col{padding-left:5px;padding-right:5px}.c-col.xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.xxl\:offset-1{margin-left:8.3333333333%}.xxl\:order-1{order:1}.c-col.xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.xxl\:offset-2{margin-left:16.6666666667%}.xxl\:order-2{order:2}.c-col.xxl-3{flex:0 0 25%;max-width:25%}.xxl\:offset-3{margin-left:25%}.xxl\:order-3{order:3}.c-col.xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.xxl\:offset-4{margin-left:33.3333333333%}.xxl\:order-4{order:4}.c-col.xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.xxl\:offset-5{margin-left:41.6666666667%}.xxl\:order-5{order:5}.c-col.xxl-6{flex:0 0 50%;max-width:50%}.xxl\:offset-6{margin-left:50%}.xxl\:order-6{order:6}.c-col.xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.xxl\:offset-7{margin-left:58.3333333333%}.xxl\:order-7{order:7}.c-col.xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.xxl\:offset-8{margin-left:66.6666666667%}.xxl\:order-8{order:8}.c-col.xxl-9{flex:0 0 75%;max-width:75%}.xxl\:offset-9{margin-left:75%}.xxl\:order-9{order:9}.c-col.xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.xxl\:offset-10{margin-left:83.3333333333%}.xxl\:order-10{order:10}.c-col.xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.xxl\:offset-11{margin-left:91.6666666667%}.xxl\:order-11{order:11}.c-col.xxl-12{flex:0 0 100%;max-width:100%}.xxl\:offset-12{margin-left:100%}.xxl\:order-12{order:12}}.c-icon{align-items:center;flex:0 0 auto;justify-content:center;line-height:1;vertical-align:middle}.c-icon,.c-icon--empty{display:inline-flex}.c-icon__component,.c-icon__svg{display:block;flex:0 0 auto;height:100%;width:100%}.c-dialog{align-items:center;display:flex;justify-content:center}.c-dialog,.c-scrim{bottom:0;left:0;position:fixed;right:0;top:0}.c-scrim--blurred{backdrop-filter:blur(10px)}.c-checkbox{align-items:center;cursor:pointer;display:flex;flex:1 1;justify-content:flex-start;outline:none;position:relative;user-select:none}.c-checkbox--checked>.c-checkbox__label,.c-checkbox--default>.c-checkbox__label,.c-checkbox--focused>.c-checkbox__label,.c-checkbox--readonly>.c-checkbox__label{color:var(--c-app-text-color)}.c-checkbox--disabled>.c-checkbox__label{color:currentColor}.c-checkbox--focused>.c-checkbox__icon:before{opacity:.2}.c-checkbox__icon{position:relative}.c-checkbox__icon:before{background-color:currentColor;border-radius:8px;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transform:scale(.7)}.c-checkbox__label{color:currentColor;margin-left:8px;pointer-events:none}.c-checkbox--error{color:var(--c-app-error-color)}.c-checkbox--error>.c-checkbox__label{color:currentColor}.c-checkbox>input{bottom:0;cursor:pointer;left:0;opacity:0;position:absolute;right:0;top:0}.c-radio{align-items:center;display:flex;justify-content:flex-start}.c-date-picker{--c-date-picker-width:320px;--c-date-picker-display-bg:var(--c-app-primary-color,#1976d2);--c-date-picker-display-color:#fff;--c-date-picker-cell-size:36px;--c-date-picker-selected-bg:#90caf9;--c-date-picker-selected-color:var(--c-app-primary-color,#1976d2);--c-date-picker-today-color:var(--c-app-primary-color,#1976d2);--c-date-picker-hover-bg:rgba(0,0,0,.06);--c-date-picker-hover-color:#757575;--c-date-picker-disabled-color:var(--c-app-disabled-color,#bdbdbd);--c-date-picker-highlighted-bg:rgba(25,118,210,.12);--c-date-picker-highlighted-color:var(--c-app-primary-color,#1976d2);background:var(--c-app-surface-color,#fff);border-radius:var(--c-app-border-radius,4px);overflow:hidden;user-select:none;width:var(--c-date-picker-width)}.c-date-picker__display{background:var(--c-date-picker-display-bg);color:var(--c-date-picker-display-color);display:flex;flex-direction:column;gap:2px;padding:16px 20px 12px}.c-date-picker__display-year{cursor:pointer;font-size:13px;opacity:.75}.c-date-picker__display-date{font-size:22px;font-weight:600;line-height:1.2}.c-date-picker__header{border-bottom:1px solid var(--c-app-border-color,#e5e5e5);display:flex;flex-direction:column}.c-date-picker__header-nav{align-items:center;display:flex;justify-content:space-between;padding:8px 4px 4px}.c-date-picker__header-btn{align-items:center;background:transparent;border:none;color:inherit;cursor:pointer;display:flex;height:36px;justify-content:center;transition:background .15s;width:36px}.c-date-picker__header-btn:hover{background:var(--c-date-picker-hover-bg)}.c-date-picker__header-btn--disabled,.c-date-picker__header-btn:disabled{cursor:default;opacity:.3;pointer-events:none}.c-date-picker__header-display{border-radius:4px;cursor:pointer;font-size:14px;font-weight:600;padding:4px 8px;transition:background .15s}.c-date-picker__header-display:hover{background:var(--c-date-picker-hover-bg)}.c-date-picker__body{min-height:240px;padding:4px 8px 8px}.c-date-picker-dates__week{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:4px}.c-date-picker-dates__day{align-items:center;display:flex;font-size:11px;font-weight:600;height:32px;justify-content:center;opacity:.5;text-transform:uppercase}.c-date-picker-dates__dates{display:flex;flex-direction:column}.c-date-picker-dates__row{display:grid;grid-template-columns:repeat(7,1fr)}.c-date-picker-dates__cell{align-items:center;border-radius:50%;cursor:pointer;display:flex;font-size:13px;height:var(--c-date-picker-cell-size);justify-content:center;margin:1px auto;transition:background .12s;width:var(--c-date-picker-cell-size)}.c-date-picker-dates__cell:hover{background:var(--c-date-picker-hover-bg);color:#171717}.c-date-picker-dates__cell:hover.c-date-picker--selected{color:var(--c-date-picker-selected-color)}.c-date-picker-dates__cell--empty{cursor:default;pointer-events:none}.c-date-picker-dates__cell--empty:hover{background:none}.c-date-picker-dates__cell--selected{border:thin solid var(--c-date-picker-selected-bg);color:var(--c-date-picker-selected-color);font-weight:600}.c-date-picker-dates__cell--today{color:var(--c-date-picker-today-color);font-weight:700}.c-date-picker-dates__cell--disabled{color:var(--c-date-picker-disabled-color);pointer-events:none;text-decoration:line-through}.c-date-picker-dates__cell--highlighted{background:var(--c-date-picker-highlighted-bg);color:var(--c-date-picker-highlighted-color);font-weight:600}.c-date-picker-months{padding:8px 0}.c-date-picker-months__row{display:grid;gap:4px;grid-template-columns:repeat(3,1fr);margin-bottom:4px}.c-date-picker-months__cell{align-items:center;border:1.5px solid transparent;border-radius:6px;cursor:pointer;display:flex;font-size:13px;height:52px;justify-content:center;transition:background .12s}.c-date-picker-months__cell:hover{background:var(--c-date-picker-hover-bg)}.c-date-picker-months__cell--selected{border-color:var(--c-date-picker-selected-bg);color:var(--c-date-picker-today-color);font-weight:600}.c-date-picker-months__cell--current{font-weight:600}.c-date-picker-months__cell--disabled{color:var(--c-date-picker-disabled-color);opacity:.4;pointer-events:none}.c-date-picker-years{padding:8px 0}.c-date-picker-years__grid{display:flex;flex-direction:column}.c-date-picker-years__row{display:grid;gap:4px;grid-template-columns:repeat(4,1fr);margin-bottom:4px}.c-date-picker-years__cell{align-items:center;border:1.5px solid transparent;border-radius:6px;cursor:pointer;display:flex;font-size:13px;height:44px;justify-content:center;transition:background .12s}.c-date-picker-years__cell:hover{background:var(--c-date-picker-hover-bg)}.c-date-picker-years__cell--selected{background:var(--c-date-picker-selected-bg);color:var(--c-date-picker-selected-color);font-weight:600}.c-date-picker-years__cell--current{border-color:var(--c-date-picker-selected-bg);color:var(--c-date-picker-today-color);font-weight:600}.c-date-picker-years__cell--disabled{color:var(--c-date-picker-disabled-color);opacity:.4;pointer-events:none}.c-date-slide-down-enter-active,.c-date-slide-down-leave-active,.c-date-slide-left-enter-active,.c-date-slide-left-leave-active,.c-date-slide-right-enter-active,.c-date-slide-right-leave-active,.c-date-slide-up-enter-active,.c-date-slide-up-leave-active{overflow:hidden;transition:all .2s cubic-bezier(.25,.8,.5,1)}.c-date-slide-left-enter-from{opacity:0;transform:translateX(20px)}.c-date-slide-left-leave-to,.c-date-slide-right-enter-from{opacity:0;transform:translateX(-20px)}.c-date-slide-right-leave-to{opacity:0;transform:translateX(20px)}.c-date-slide-up-enter-from{opacity:0;transform:translateY(12px)}.c-date-slide-down-enter-from,.c-date-slide-up-leave-to{opacity:0;transform:translateY(-12px)}.c-date-slide-down-leave-to{opacity:0;transform:translateY(12px)}.c-date-fade-enter-active,.c-date-fade-leave-active{transition:opacity .15s}.c-date-fade-enter-from,.c-date-fade-leave-to{opacity:0}.c-date-input{width:100%}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@use "../../components/CApp/CApp";
|
|
2
|
-
@use "../../components/CBtn/CBtn";
|
|
3
|
-
@use "../../components/CForm/CForm";
|
|
4
|
-
@use "../../components/CInput/CInput";
|
|
5
|
-
@use "../../components/CLabel/CLabel";
|
|
6
|
-
@use "../../components/CToolbar/CToolbar";
|
|
7
|
-
@use "../../components/CList/CList";
|
|
8
|
-
@use "../../components/CList/CListItem";
|
|
9
|
-
@use "../../components/CMenu/CMenu";
|
|
10
|
-
@use "../../components/CTextField/CTextField";
|
|
11
|
-
@use "../../components/CSelect/CSelect";
|
|
12
|
-
@use "../../components/CTooltip/CTooltip";
|
|
13
|
-
@use "../../components/CAutocomplete/CAutocomplete";
|
|
14
|
-
@use "../../components/CField/CField";
|
|
15
|
-
@use "../../components/CCard/CCard";
|
|
16
|
-
@use "../../components/CMain/CMain";
|
|
17
|
-
@use "../../components/CGrid/CGrid";
|
|
18
|
-
@use "../../components/CIcon/CIcon";
|
|
19
|
-
@use "../../components/CDialog/CDialog";
|
|
20
|
-
@use "../../components/COverlay/COverlay";
|
|
21
|
-
@use "../../components/CScrim/CScrim";
|
|
22
|
-
@use "../../components/CCheckbox/CCheckbox";
|
|
23
|
-
@use "../../components/CRadio/CRadio";
|
|
24
|
-
@use "../../components/CDatePicker/CDatePicker";
|
|
25
|
-
@use "../../components/CDateInput/CDateInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-scroll.d.ts","sourceRoot":"","sources":["../../../../src/composables/use-app-scroll.ts"],"names":[],"mappings":"AASA,wBAAgB,YAAY;;;;;;;;;EAuD3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-menu-presets.d.ts","sourceRoot":"","sources":["../../../../src/composables/use-menu-presets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAKrD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE;;GAW9D"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ComponentObjectPropsOptions, Prop, PropType } from 'vue';
|
|
2
|
-
type AnyConstructor = StringConstructor | NumberConstructor | BooleanConstructor | ArrayConstructor | ObjectConstructor | DateConstructor | FunctionConstructor | SymbolConstructor;
|
|
3
|
-
type ConstructorValue<T> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BooleanConstructor ? boolean : T extends ArrayConstructor ? unknown[] : T extends ObjectConstructor ? Record<string, unknown> : T extends DateConstructor ? Date : T extends FunctionConstructor ? (...args: any[]) => any : T extends SymbolConstructor ? symbol : unknown;
|
|
4
|
-
type PropTypeValue<T> = T extends PropType<infer V> ? V : T extends readonly unknown[] ? ConstructorValue<T[number]> : T extends AnyConstructor ? ConstructorValue<T> : unknown;
|
|
5
|
-
type PropOptionValue<T> = T extends Prop<infer V> ? V : T extends {
|
|
6
|
-
type: infer Type;
|
|
7
|
-
} ? PropTypeValue<Type> : PropTypeValue<T>;
|
|
8
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
9
|
-
type HasDefault<T> = IsAny<T> extends true ? false : [T] extends [{
|
|
10
|
-
default: any;
|
|
11
|
-
}] ? true : false;
|
|
12
|
-
type IsRequired<T> = IsAny<T> extends true ? false : [T] extends [{
|
|
13
|
-
required: true;
|
|
14
|
-
}] ? true : false;
|
|
15
|
-
type RequiredPropKeys<TProps extends ComponentObjectPropsOptions> = {
|
|
16
|
-
[K in keyof TProps]: IsRequired<TProps[K]> extends true ? K : HasDefault<TProps[K]> extends true ? K : never;
|
|
17
|
-
}[keyof TProps];
|
|
18
|
-
type OptionalPropKeys<TProps extends ComponentObjectPropsOptions> = Exclude<keyof TProps, RequiredPropKeys<TProps>>;
|
|
19
|
-
export type InferFactoryProps<TProps extends ComponentObjectPropsOptions> = {
|
|
20
|
-
readonly [K in RequiredPropKeys<TProps>]: PropOptionValue<TProps[K]>;
|
|
21
|
-
} & {
|
|
22
|
-
readonly [K in OptionalPropKeys<TProps>]?: PropOptionValue<TProps[K]>;
|
|
23
|
-
};
|
|
24
|
-
type AppendDefault<TProps extends ComponentObjectPropsOptions, TDefaults> = {
|
|
25
|
-
[K in keyof TProps]: K extends keyof TDefaults ? TProps[K] & {
|
|
26
|
-
default: TDefaults[K];
|
|
27
|
-
} : TProps[K];
|
|
28
|
-
};
|
|
29
|
-
export declare function filterProps<TProps extends ComponentObjectPropsOptions, TSource extends Record<string, unknown>>(factory: (defaults?: any) => TProps, source: TSource): Partial<{
|
|
30
|
-
[K in keyof TProps]: TSource[K & keyof TSource];
|
|
31
|
-
}>;
|
|
32
|
-
export declare function propsFactory<TProps extends ComponentObjectPropsOptions>(props: TProps): {
|
|
33
|
-
<TDefaults extends Partial<Record<keyof TProps, unknown>>>(defaults: TDefaults): AppendDefault<TProps, TDefaults>;
|
|
34
|
-
(): TProps;
|
|
35
|
-
};
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=props-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props-factory.d.ts","sourceRoot":"","sources":["../../../../src/utils/props-factory.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
function filterProps(factory, source) {
|
|
2
|
-
const keys = Object.keys(factory());
|
|
3
|
-
return keys.reduce((acc, key) => {
|
|
4
|
-
if (key in source) {
|
|
5
|
-
acc[key] = source[key];
|
|
6
|
-
}
|
|
7
|
-
return acc;
|
|
8
|
-
}, {});
|
|
9
|
-
}
|
|
10
|
-
function propsFactory(props) {
|
|
11
|
-
return (defaults) => {
|
|
12
|
-
return Object.keys(props).reduce((result, key) => {
|
|
13
|
-
const prop = props[key];
|
|
14
|
-
const isObjectDefinition = typeof prop === "object" && prop !== null && !Array.isArray(prop);
|
|
15
|
-
const definition = isObjectDefinition ? prop : { type: prop };
|
|
16
|
-
result[key] = defaults && key in defaults ? {
|
|
17
|
-
...definition,
|
|
18
|
-
default: defaults[key]
|
|
19
|
-
} : definition;
|
|
20
|
-
return result;
|
|
21
|
-
}, {});
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { filterProps, propsFactory };
|
|
File without changes
|