@central-design-system/components 4.0.0-alpha.2 → 4.0.0-alpha.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/CHANGELOG.md +5 -1
- package/MIGRATION.md +1 -1
- package/dist/cjs/entry.js +10 -10
- package/dist/es/entry.js +173 -163
- package/dist/es/entry.js.map +1 -1
- package/dist/es/src/components/CdsList/CdsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/src/components/CdsList/CdsListGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/src/components/CdsList/CdsListItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/src/components/CdsList/CdsListSubheader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/src/components/CdsList/api/CdsList.constants.js +4 -4
- package/dist/es/src/components/CdsList/api/CdsList.props.js +2 -2
- package/dist/es/src/components/CdsList/index.js +1 -1
- package/dist/es/src/components/CdsOtpInput/CdsOtpField.js +2 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpField.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpField.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpField.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpGroup.js +2 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpGroup.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpGroup.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpInput.css +204 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpInput.js +2 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpInput.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpInput.vue_vue_type_script_setup_true_lang.js +338 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpSeparator.js +2 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpSeparator.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpSeparator.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/es/src/components/CdsOtpInput/CdsOtpSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.constants.js +16 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.constants.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.props.js +97 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.props.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.types.js +2 -0
- package/dist/es/src/components/CdsOtpInput/api/CdsOtpInput.types.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/composables/useOtpInput.js +329 -0
- package/dist/es/src/components/CdsOtpInput/composables/useOtpInput.js.map +1 -0
- package/dist/es/src/components/CdsOtpInput/index.js +17 -0
- package/dist/es/src/components/CdsOtpInput/index.js.map +1 -0
- package/dist/es/src/components/index.js +10 -0
- package/dist/es/src/components/index.js.map +1 -1
- package/dist/es/src/composables/useDisabled/index.js +1 -1
- package/dist/es/src/composables/useDisabled/index.js.map +1 -1
- package/dist/es/src/composables/useLoader/index.js +1 -1
- package/dist/es/src/composables/useLoader/index.js.map +1 -1
- package/dist/es/src/composables/useLocation/index.js +1 -1
- package/dist/es/src/composables/useLocation/index.js.map +1 -1
- package/dist/es/src/composables/useRouter/index.js +1 -1
- package/dist/es/src/composables/useRouter/index.js.map +1 -1
- package/dist/es/src/locales/ru.js +1 -0
- package/dist/es/src/locales/ru.js.map +1 -1
- package/dist/esm-node/entry.mjs +173 -163
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpField.mjs +2 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpField.vue_vue_type_script_setup_true_lang.mjs +62 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpGroup.mjs +2 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpGroup.vue_vue_type_script_setup_true_lang.mjs +51 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpInput.css +204 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpInput.mjs +2 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpInput.vue_vue_type_script_setup_true_lang.mjs +336 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpSeparator.mjs +2 -0
- package/dist/esm-node/src/components/CdsOtpInput/CdsOtpSeparator.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/dist/esm-node/src/components/CdsOtpInput/api/CdsOtpInput.constants.mjs +16 -0
- package/dist/esm-node/src/components/CdsOtpInput/api/CdsOtpInput.props.mjs +97 -0
- package/dist/esm-node/src/components/CdsOtpInput/api/CdsOtpInput.types.mjs +2 -0
- package/dist/esm-node/src/components/CdsOtpInput/composables/useOtpInput.mjs +329 -0
- package/dist/esm-node/src/components/CdsOtpInput/index.mjs +17 -0
- package/dist/esm-node/src/components/index.mjs +10 -0
- package/dist/esm-node/src/composables/useLoader/index.mjs +1 -1
- package/dist/esm-node/src/composables/useLocation/index.mjs +1 -1
- package/dist/esm-node/src/composables/useRouter/index.mjs +1 -1
- package/dist/esm-node/src/locales/ru.mjs +1 -0
- package/dist/iife/entry.js +10 -10
- package/dist/styles.css +1 -1
- package/dist/types/components/CdsOtpInput/CdsOtpField.vue.d.ts +25 -0
- package/dist/types/components/CdsOtpInput/CdsOtpGroup.vue.d.ts +34 -0
- package/dist/types/components/CdsOtpInput/CdsOtpInput.vue.d.ts +222 -0
- package/dist/types/components/CdsOtpInput/CdsOtpSeparator.vue.d.ts +25 -0
- package/dist/types/components/CdsOtpInput/api/CdsOtpInput.constants.d.ts +9 -0
- package/dist/types/components/CdsOtpInput/api/CdsOtpInput.props.d.ts +340 -0
- package/dist/types/components/CdsOtpInput/api/CdsOtpInput.types.d.ts +47 -0
- package/dist/types/components/CdsOtpInput/composables/useOtpInput.d.ts +76 -0
- package/dist/types/components/CdsOtpInput/index.d.ts +529 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/entry.d.ts +5 -1
- package/dist/types/locales/en.d.ts +1 -0
- package/dist/types/locales/ru.d.ts +1 -0
- package/llms/llms-components.txt +512 -1
- package/llms/llms-full.txt +513 -2
- package/llms/llms-guides.txt +1 -1
- package/llms/llms-migration.txt +2 -2
- package/llms/llms-tokens.txt +1 -1
- package/llms/llms.txt +4 -3
- package/package.json +1 -1
package/dist/es/entry.js
CHANGED
|
@@ -54,69 +54,72 @@ import { C as C44 } from "./src/components/CdsModal/index.js";
|
|
|
54
54
|
import { C as C45 } from "./src/transitions/modalTransition.js";
|
|
55
55
|
import { C as C46 } from "./src/components/CdsNotification/index.js";
|
|
56
56
|
import { C as C47 } from "./src/components/CdsNotificationAlert/index.js";
|
|
57
|
-
import { C as C48 } from "./src/components/
|
|
58
|
-
import {
|
|
59
|
-
import { C as
|
|
60
|
-
import { C as
|
|
61
|
-
import { C as
|
|
62
|
-
import { C as
|
|
63
|
-
import { C as
|
|
64
|
-
import { C as
|
|
65
|
-
import { C as
|
|
66
|
-
import { C as
|
|
67
|
-
import { C as
|
|
68
|
-
import { C as
|
|
69
|
-
import { C as
|
|
70
|
-
import { C as
|
|
71
|
-
import { C as
|
|
72
|
-
import { C as
|
|
73
|
-
import { C as
|
|
74
|
-
import { C as
|
|
75
|
-
import {
|
|
76
|
-
import { C as
|
|
77
|
-
import { C as
|
|
78
|
-
import { C as
|
|
79
|
-
import { C as
|
|
80
|
-
import { C as
|
|
81
|
-
import { C as
|
|
82
|
-
import { C as
|
|
83
|
-
import { C as
|
|
84
|
-
import { C as
|
|
85
|
-
import { C as
|
|
86
|
-
import { C as
|
|
87
|
-
import { C as
|
|
88
|
-
import { C as
|
|
89
|
-
import { C as
|
|
90
|
-
import { C as
|
|
91
|
-
import { C as
|
|
92
|
-
import { C as
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
57
|
+
import { C as C48, a as a9, b as b8, c as c7 } from "./src/components/CdsOtpInput/index.js";
|
|
58
|
+
import { d as d5 } from "./src/components/CdsOtpInput/api/CdsOtpInput.constants.js";
|
|
59
|
+
import { C as C49 } from "./src/components/CdsOverlay/index.js";
|
|
60
|
+
import { C as C50 } from "./src/components/CdsPage/index.js";
|
|
61
|
+
import { C as C51 } from "./src/components/CdsPagination/index.js";
|
|
62
|
+
import { C as C52 } from "./src/components/CdsProgressBar/index.js";
|
|
63
|
+
import { C as C53 } from "./src/components/CdsProgressCircle/index.js";
|
|
64
|
+
import { C as C54 } from "./src/components/CdsRadio/index.js";
|
|
65
|
+
import { C as C55 } from "./src/components/CdsRadioGroup/index.js";
|
|
66
|
+
import { C as C56 } from "./src/components/CdsResponsive/index.js";
|
|
67
|
+
import { C as C57 } from "./src/components/CdsSelect/index.js";
|
|
68
|
+
import { C as C58 } from "./src/components/CdsSelectionControl/index.js";
|
|
69
|
+
import { C as C59 } from "./src/components/CdsSelectionControlGroup/index.js";
|
|
70
|
+
import { C as C60 } from "./src/components/CdsSkeletonLoader/index.js";
|
|
71
|
+
import { C as C61, a as a10 } from "./src/components/CdsSlideGroup/index.js";
|
|
72
|
+
import { C as C62, a as a11 } from "./src/components/CdsSlideView/index.js";
|
|
73
|
+
import { C as C63 } from "./src/components/CdsStages/index.js";
|
|
74
|
+
import { C as C64 } from "./src/components/CdsStatus/index.js";
|
|
75
|
+
import { C as C65, a as a12, b as b9, c as c8, d as d6 } from "./src/components/CdsSteps/index.js";
|
|
76
|
+
import { C as C66 } from "./src/components/CdsSurface/index.js";
|
|
77
|
+
import { a as a13, C as C67, b as b10, c as c9 } from "./src/components/CdsTabs/index.js";
|
|
78
|
+
import { C as C68, a as a14, b as b11 } from "./src/components/CdsTable/index.js";
|
|
79
|
+
import { C as C69 } from "./src/components/CdsTag/index.js";
|
|
80
|
+
import { C as C70 } from "./src/components/CdsTagGroup/index.js";
|
|
81
|
+
import { C as C71 } from "./src/components/CdsTextArea/index.js";
|
|
82
|
+
import { C as C72 } from "./src/components/CdsTextInput/index.js";
|
|
83
|
+
import { C as C73 } from "./src/components/CdsTimePicker/index.js";
|
|
84
|
+
import { C as C74 } from "./src/components/CdsToast/index.js";
|
|
85
|
+
import { C as C75 } from "./src/components/CdsToastQueue/index.js";
|
|
86
|
+
import { C as C76 } from "./src/components/CdsToggle/index.js";
|
|
87
|
+
import { C as C77, a as a15 } from "./src/components/CdsToolbar/index.js";
|
|
88
|
+
import { C as C78 } from "./src/components/CdsTooltip/index.js";
|
|
89
|
+
import { C as C79 } from "./src/transitions/collapseTransition.js";
|
|
90
|
+
import { C as C80, a as a16, b as b12 } from "./src/components/CdsTree/index.js";
|
|
91
|
+
import { C as C81 } from "./src/components/CdsUploader/index.js";
|
|
92
|
+
import { C as C82, a as a17 } from "./src/components/CdsVirtualScroll/index.js";
|
|
93
|
+
import { C as C83 } from "./src/directives/click-outside/index.js";
|
|
94
|
+
import { C as C84 } from "./src/components/CdsGrid/api/CdsGrid.constants.js";
|
|
95
|
+
import { D, T, a as a18, d as d7 } from "./src/composables/useTheme/internal/useTheme.constants.js";
|
|
96
|
+
import { D as D2, b as b13, a as a19, d as d8 } from "./src/composables/useDisplay/internal/useDisplay.constants.js";
|
|
97
|
+
import { E, a as a20, S, b as b14, c as c10, u as u2 } from "./src/components/CdsTable/composable/selection.js";
|
|
96
98
|
import { I } from "./src/directives/intersect/index.js";
|
|
99
|
+
import { O, u as u3 } from "./src/components/CdsOtpInput/composables/useOtpInput.js";
|
|
97
100
|
import { T as T2 } from "./src/directives/touch/index.js";
|
|
98
|
-
import { a as
|
|
99
|
-
import { a as
|
|
100
|
-
import { a as
|
|
101
|
-
import { e as e4, d as
|
|
102
|
-
import { c as
|
|
103
|
-
import { c as
|
|
104
|
-
import { c as
|
|
105
|
-
import { c as
|
|
106
|
-
import { c as
|
|
107
|
-
import { a as
|
|
108
|
-
import { c as
|
|
109
|
-
import { c as
|
|
110
|
-
import { d as
|
|
111
|
-
import { d as
|
|
112
|
-
import { d as
|
|
101
|
+
import { a as a21 } from "./src/components/CdsSkeletonLoader/api/CdsSkeletonLoader.types.js";
|
|
102
|
+
import { a as a22, d as d9, u as u4 } from "./src/composables/useAppearance/useAppearance.js";
|
|
103
|
+
import { a as a23, d as d10, u as u5 } from "./src/composables/useSize/useSize.js";
|
|
104
|
+
import { e as e4, d as d11, a as a24, b as b15, c as c11, u as u6 } from "./src/composables/useColor/useColor.js";
|
|
105
|
+
import { c as c12, a as a25, b as b16, u as u7 } from "./src/hooks/useBreakpoints/index.js";
|
|
106
|
+
import { c as c13, p as p2, u as u8 } from "./src/hooks/createContext/index.js";
|
|
107
|
+
import { c as c14, d as d12, u as u9 } from "./src/composables/useDisplay/useDisplay.js";
|
|
108
|
+
import { c as c15, a as a26, b as b17, d as d13, u as u10 } from "./src/hooks/useHydration/index.js";
|
|
109
|
+
import { c as c16 } from "./src/hooks/createObserver/index.js";
|
|
110
|
+
import { a as a27, c as c17 } from "./src/hooks/createPlugin/index.js";
|
|
111
|
+
import { c as c18, d as d14, p as p3, u as u11 } from "./src/composables/useTheme/useTheme.js";
|
|
112
|
+
import { c as c19 } from "./src/hooks/createTrinity/index.js";
|
|
113
|
+
import { d as d15, g as g4, u as u12 } from "./src/composables/useDatetime/useDatetime.js";
|
|
114
|
+
import { d as d16, u as u13 } from "./src/composables/useDimensions/useDimensions.js";
|
|
115
|
+
import { d as d17, u as u14 } from "./src/composables/useLayout/useLayout.js";
|
|
113
116
|
import { i as i7 } from "./src/assets/icons/index.js";
|
|
114
|
-
import { m, u as
|
|
117
|
+
import { m, u as u15 } from "./src/components/CdsTable/composable/table.js";
|
|
115
118
|
import { t } from "./src/hooks/toArray/index.js";
|
|
116
119
|
import { t as t2 } from "./src/hooks/toElement/index.js";
|
|
117
|
-
import { u as
|
|
118
|
-
import { a as
|
|
119
|
-
import { u as
|
|
120
|
+
import { u as u16, a as a28 } from "./src/hooks/useIntersectionObserver/index.js";
|
|
121
|
+
import { a as a29, u as u17 } from "./src/hooks/useResizeObserver/index.js";
|
|
122
|
+
import { u as u18, a as a30 } from "./src/components/CdsToastQueue/composables/useToastQueue.js";
|
|
120
123
|
const createCds = (options = {}) => {
|
|
121
124
|
return createCds$1(options);
|
|
122
125
|
};
|
|
@@ -200,50 +203,55 @@ export {
|
|
|
200
203
|
C45 as CdsModalTransition,
|
|
201
204
|
C46 as CdsNotification,
|
|
202
205
|
C47 as CdsNotificationAlert,
|
|
203
|
-
C48 as
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
C48 as CdsOtpField,
|
|
207
|
+
a9 as CdsOtpGroup,
|
|
208
|
+
b8 as CdsOtpInput,
|
|
209
|
+
d5 as CdsOtpInputSymbol,
|
|
210
|
+
c7 as CdsOtpSeparator,
|
|
211
|
+
C49 as CdsOverlay,
|
|
212
|
+
C50 as CdsPage,
|
|
213
|
+
C51 as CdsPagination,
|
|
214
|
+
C52 as CdsProgressBar,
|
|
215
|
+
C53 as CdsProgressCircle,
|
|
216
|
+
C54 as CdsRadio,
|
|
217
|
+
C55 as CdsRadioGroup,
|
|
218
|
+
C56 as CdsResponsive,
|
|
211
219
|
_3 as CdsRow,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
220
|
+
C57 as CdsSelect,
|
|
221
|
+
C58 as CdsSelectionControl,
|
|
222
|
+
C59 as CdsSelectionControlGroup,
|
|
223
|
+
C60 as CdsSkeletonLoader,
|
|
224
|
+
C61 as CdsSlideGroup,
|
|
225
|
+
a10 as CdsSlideGroupItem,
|
|
226
|
+
C62 as CdsSlideView,
|
|
227
|
+
a11 as CdsSlideViewItem,
|
|
228
|
+
C63 as CdsStages,
|
|
229
|
+
C64 as CdsStatus,
|
|
230
|
+
C65 as CdsSteps,
|
|
231
|
+
a12 as CdsStepsActions,
|
|
232
|
+
b9 as CdsStepsItem,
|
|
233
|
+
c8 as CdsStepsView,
|
|
234
|
+
d6 as CdsStepsViewItem,
|
|
235
|
+
C66 as CdsSurface,
|
|
236
|
+
a13 as CdsTab,
|
|
237
|
+
C68 as CdsTable,
|
|
238
|
+
a14 as CdsTableColumn,
|
|
239
|
+
b11 as CdsTableColumnGroup,
|
|
240
|
+
C67 as CdsTabs,
|
|
241
|
+
b10 as CdsTabsView,
|
|
242
|
+
c9 as CdsTabsViewItem,
|
|
243
|
+
C69 as CdsTag,
|
|
244
|
+
C70 as CdsTagGroup,
|
|
245
|
+
C71 as CdsTextArea,
|
|
246
|
+
C72 as CdsTextInput,
|
|
247
|
+
C73 as CdsTimePicker,
|
|
248
|
+
C74 as CdsToast,
|
|
249
|
+
C75 as CdsToastQueue,
|
|
250
|
+
C76 as CdsToggle,
|
|
251
|
+
C77 as CdsToolbar,
|
|
252
|
+
a15 as CdsToolbarTitle,
|
|
253
|
+
C78 as CdsTooltip,
|
|
254
|
+
C79 as CdsTransitionCollapse,
|
|
247
255
|
c as CdsTransitionExpand,
|
|
248
256
|
a as CdsTransitionExpandX,
|
|
249
257
|
b as CdsTransitionFade,
|
|
@@ -256,57 +264,58 @@ export {
|
|
|
256
264
|
j as CdsTransitionSlideRight,
|
|
257
265
|
k as CdsTransitionSlideX,
|
|
258
266
|
C as CdsTransitionSlideY,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
+
C80 as CdsTree,
|
|
268
|
+
a16 as CdsTreeDirectory,
|
|
269
|
+
b12 as CdsTreeNode,
|
|
270
|
+
C81 as CdsUploader,
|
|
271
|
+
C82 as CdsVirtualScroll,
|
|
272
|
+
a17 as CdsVirtualScrollItem,
|
|
273
|
+
C83 as ClickOutside,
|
|
274
|
+
C84 as CssGridSymbol,
|
|
267
275
|
D as DEFAULT_THEME,
|
|
268
276
|
D2 as DisplaySymbol,
|
|
269
277
|
E as EXPAND_COLUMN,
|
|
270
278
|
I as Intersect,
|
|
271
|
-
|
|
279
|
+
O as OtpInputPatterns,
|
|
280
|
+
a20 as SELECTION_ALL,
|
|
272
281
|
S as SELECTION_COLUMN,
|
|
273
|
-
|
|
274
|
-
|
|
282
|
+
b14 as SELECTION_INVERT,
|
|
283
|
+
c10 as SELECTION_NONE,
|
|
275
284
|
T as ThemeSymbol,
|
|
276
285
|
T2 as Touch,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
286
|
+
a21 as allowedTypes,
|
|
287
|
+
a22 as availableAppearance,
|
|
288
|
+
a23 as availableSizes,
|
|
289
|
+
a18 as availableTheme,
|
|
290
|
+
b13 as breakpoints,
|
|
291
|
+
a19 as breakpointsUpDown,
|
|
283
292
|
i as components,
|
|
284
293
|
e4 as computeColor,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
294
|
+
c12 as createBreakpoints,
|
|
295
|
+
a25 as createBreakpointsContext,
|
|
296
|
+
b16 as createBreakpointsPlugin,
|
|
288
297
|
createCds,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
298
|
+
c13 as createContext,
|
|
299
|
+
c14 as createDisplay,
|
|
300
|
+
c15 as createFallbackHydration,
|
|
301
|
+
a26 as createHydration,
|
|
302
|
+
b17 as createHydrationContext,
|
|
303
|
+
d13 as createHydrationPlugin,
|
|
304
|
+
c16 as createObserver,
|
|
305
|
+
a27 as createPlugin,
|
|
306
|
+
c17 as createPluginContext,
|
|
307
|
+
c18 as createTheme,
|
|
308
|
+
c19 as createTrinity,
|
|
309
|
+
d8 as defaultDisplayOptions,
|
|
310
|
+
d7 as defaultThemeOptions,
|
|
311
|
+
d9 as defineAppearanceProps,
|
|
312
|
+
d11 as defineColorProps,
|
|
313
|
+
d15 as defineDatetimeProps,
|
|
314
|
+
d16 as defineDimensionsProps,
|
|
315
|
+
d12 as defineDisplayProps,
|
|
316
|
+
d17 as defineLayoutProps,
|
|
317
|
+
d10 as defineSizeProps,
|
|
318
|
+
d14 as defineThemeProps,
|
|
310
319
|
i2 as directives,
|
|
311
320
|
g4 as getDayHash,
|
|
312
321
|
i7 as iconsets,
|
|
@@ -317,29 +326,30 @@ export {
|
|
|
317
326
|
i3 as themes,
|
|
318
327
|
t as toArray,
|
|
319
328
|
t2 as toElement,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
u4 as useAppearance,
|
|
330
|
+
a24 as useBackgroundColor,
|
|
331
|
+
u7 as useBreakpoints,
|
|
332
|
+
b15 as useColor,
|
|
333
|
+
u8 as useContext,
|
|
334
|
+
u12 as useDatetime,
|
|
335
|
+
u13 as useDimensions,
|
|
336
|
+
u9 as useDisplay,
|
|
337
|
+
u16 as useElementIntersection,
|
|
338
|
+
a29 as useElementSize,
|
|
339
|
+
u10 as useHydration,
|
|
331
340
|
u as useInjectLayout,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
341
|
+
a28 as useIntersectionObserver,
|
|
342
|
+
u14 as useLayout,
|
|
343
|
+
u15 as useLazyKVMap,
|
|
344
|
+
u3 as useOtpInput,
|
|
345
|
+
u17 as useResizeObserver,
|
|
336
346
|
u2 as useSelection,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
347
|
+
c11 as useShadowBorderColor,
|
|
348
|
+
u5 as useSize,
|
|
349
|
+
u6 as useTextColor,
|
|
350
|
+
u11 as useTheme,
|
|
351
|
+
u18 as useToastItem,
|
|
352
|
+
a30 as useToastQueue,
|
|
343
353
|
i4 as utils,
|
|
344
354
|
version
|
|
345
355
|
};
|
package/dist/es/entry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sources":["../../src/entry.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/imports */\n\n// Styles\nimport './styles/common.scss';\n\n// Types\nimport type { CdsOptions } from './cds';\nimport { createCds as _createCds } from './cds';\n\n// Libraries\nimport * as components from './components';\nimport * as directives from './directives';\nimport * as themes from './themes';\nimport * as utils from './utils';\n\n/**\n * Компоненты и директивы намеренно НЕ подмешиваются здесь по умолчанию: замыкание на\n * namespace-импорт `components` удерживает всю библиотеку в бандле потребителя и делает\n * tree-shaking невозможным. Регистрируемый набор передаёт вызывающая сторона —\n * либо целиком (`createCds({ components, directives })`), либо точечно.\n * См. `docs/treeshaking.md`.\n */\nexport const createCds = (options: CdsOptions = {}) => {\n return _createCds(options);\n};\n\nexport const version = __CDS_VERSION__;\ncreateCds.version = version;\n\n// Inject all components into the global @vue/runtime-core\n// This allows intellisense in templates w/out direct importing\ndeclare module '@vue/runtime-core' {\n export interface GlobalComponents {\n CdsApp: typeof components.CdsApp;\n CdsAutocomplete: typeof components.CdsAutocomplete;\n CdsAvatar: typeof components.CdsAvatar;\n CdsBadge: typeof components.CdsBadge;\n CdsBreadcrumbs: typeof components.CdsBreadcrumbs;\n CdsBreadcrumbsItem: typeof components.CdsBreadcrumbsItem;\n CdsBreadcrumbsDivider: typeof components.CdsBreadcrumbsDivider;\n CdsButton: typeof components.CdsButton;\n CdsButtonGroup: typeof components.CdsButtonGroup;\n CdsButtonToggle: typeof components.CdsButtonToggle;\n CdsCard: typeof components.CdsCard;\n CdsCardGroup: typeof components.CdsCardGroup;\n CdsCardItem: typeof components.CdsCardItem;\n CdsCardTitle: typeof components.CdsCardTitle;\n CdsCardSubtitle: typeof components.CdsCardSubtitle;\n CdsCardText: typeof components.CdsCardText;\n CdsCardActions: typeof components.CdsCardActions;\n CdsCardDivider: typeof components.CdsCardDivider;\n CdsCarousel: typeof components.CdsCarousel;\n CdsCarouselItem: typeof components.CdsCarouselItem;\n CdsCheckbox: typeof components.CdsCheckbox;\n CdsCheckboxButton: typeof components.CdsCheckboxButton;\n CdsCombobox: typeof components.CdsCombobox;\n CdsCounter: typeof components.CdsCounter;\n CdsDateInput: typeof components.CdsDateInput;\n CdsDatePicker: typeof components.CdsDatePicker;\n CdsDefaultsProvider: typeof components.CdsDefaultsProvider;\n CdsDescription: typeof components.CdsDescription;\n CdsDivider: typeof components.CdsDivider;\n CdsDrawer: typeof components.CdsDrawer;\n CdsEmptyState: typeof components.CdsEmptyState;\n CdsExpandablePanels: typeof components.CdsExpandablePanels;\n CdsExpandablePanel: typeof components.CdsExpandablePanel;\n CdsExpandablePanelTitle: typeof components.CdsExpandablePanelTitle;\n CdsExpandablePanelContent: typeof components.CdsExpandablePanelContent;\n CdsField: typeof components.CdsField;\n CdsFileInput: typeof components.CdsFileInput;\n CdsFileUpload: typeof components.CdsFileUpload;\n CdsFileUploadDropzone: typeof components.CdsFileUploadDropzone;\n CdsFileUploadList: typeof components.CdsFileUploadList;\n CdsFileUploadItem: typeof components.CdsFileUploadItem;\n CdsFooter: typeof components.CdsFooter;\n CdsForm: typeof components.CdsForm;\n CdsLabel: typeof components.CdsLabel;\n CdsLayout: typeof components.CdsLayout;\n CdsLink: typeof components.CdsLink;\n CdsList: typeof components.CdsList;\n CdsListItem: typeof components.CdsListItem;\n CdsListItemAction: typeof components.CdsListItemAction;\n CdsListItemImage: typeof components.CdsListItemImage;\n CdsListItemMedia: typeof components.CdsListItemMedia;\n CdsListItemSubtitle: typeof components.CdsListItemSubtitle;\n CdsListItemDescription: typeof components.CdsListItemDescription;\n CdsListItemTitle: typeof components.CdsListItemTitle;\n CdsListItemDivider: typeof components.CdsListItemDivider;\n CdsListGroup: typeof components.CdsListGroup;\n CdsLoader: typeof components.CdsLoader;\n CdsMain: typeof components.CdsMain;\n CdsMenu: typeof components.CdsMenu;\n CdsFunctionalButton: typeof components.CdsFunctionalButton;\n CdsCol: typeof components.CdsCol;\n CdsGrid: typeof components.CdsGrid;\n CdsRow: typeof components.CdsRow;\n CdsHeader: typeof components.CdsHeader;\n CdsHighlight: typeof components.CdsHighlight;\n CdsIcon: typeof components.CdsIcon;\n CdsImage: typeof components.CdsImage;\n CdsInput: typeof components.CdsInput;\n CdsMessages: typeof components.CdsMessages;\n CdsModal: typeof components.CdsModal;\n CdsNotification: typeof components.CdsNotification;\n CdsNotificationAlert: typeof components.CdsNotificationAlert;\n CdsOverlay: typeof components.CdsOverlay;\n CdsPage: typeof components.CdsPage;\n CdsPagination: typeof components.CdsPagination;\n CdsProgressBar: typeof components.CdsProgressBar;\n CdsProgressCircle: typeof components.CdsProgressCircle;\n CdsRadio: typeof components.CdsRadio;\n CdsRadioGroup: typeof components.CdsRadioGroup;\n CdsResponsive: typeof components.CdsResponsive;\n CdsSelect: typeof components.CdsSelect;\n CdsSelectionControl: typeof components.CdsSelectionControl;\n CdsSelectionControlGroup: typeof components.CdsSelectionControlGroup;\n CdsSkeletonLoader: typeof components.CdsSkeletonLoader;\n CdsSlideGroup: typeof components.CdsSlideGroup;\n CdsSlideGroupItem: typeof components.CdsSlideGroupItem;\n CdsSlideView: typeof components.CdsSlideView;\n CdsSlideViewItem: typeof components.CdsSlideViewItem;\n CdsStages: typeof components.CdsStages;\n CdsStatus: typeof components.CdsStatus;\n CdsSteps: typeof components.CdsSteps;\n CdsStepsActions: typeof components.CdsStepsActions;\n CdsStepsItem: typeof components.CdsStepsItem;\n CdsStepsView: typeof components.CdsStepsView;\n CdsStepsViewItem: typeof components.CdsStepsViewItem;\n CdsSurface: typeof components.CdsSurface;\n CdsTable: typeof components.CdsTable;\n CdsTableColumn: typeof components.CdsTableColumn;\n CdsTableColumnGroup: typeof components.CdsTableColumnGroup;\n CdsTabs: typeof components.CdsTabs;\n CdsTabsView: typeof components.CdsTabsView;\n CdsTabsViewItem: typeof components.CdsTabsViewItem;\n CdsTab: typeof components.CdsTab;\n CdsTag: typeof components.CdsTag;\n CdsTagGroup: typeof components.CdsTagGroup;\n CdsTextArea: typeof components.CdsTextArea;\n CdsTextInput: typeof components.CdsTextInput;\n CdsTimePicker: typeof components.CdsTimePicker;\n CdsToast: typeof components.CdsToast;\n CdsToastQueue: typeof components.CdsToastQueue;\n CdsToggle: typeof components.CdsToggle;\n CdsToolbar: typeof components.CdsToolbar;\n CdsToolbarTitle: typeof components.CdsToolbarTitle;\n CdsTooltip: typeof components.CdsTooltip;\n CdsTree: typeof components.CdsTree;\n CdsTreeNode: typeof components.CdsTreeNode;\n CdsTreeDirectory: typeof components.CdsTreeDirectory;\n CdsUploader: typeof components.CdsUploader;\n CdsVirtualScroll: typeof components.CdsVirtualScroll;\n CdsVirtualScrollItem: typeof components.CdsVirtualScrollItem;\n }\n}\n\nexport { components, directives, themes, utils };\n\nexport type { Blueprint, CdsInstance, CdsOptions } from './cds';\
|
|
1
|
+
{"version":3,"file":"entry.js","sources":["../../src/entry.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/imports */\n\n// Styles\nimport './styles/common.scss';\n\n// Types\nimport type { CdsOptions } from './cds';\nimport { createCds as _createCds } from './cds';\n\n// Libraries\nimport * as components from './components';\nimport * as directives from './directives';\nimport * as themes from './themes';\nimport * as utils from './utils';\n\n/**\n * Компоненты и директивы намеренно НЕ подмешиваются здесь по умолчанию: замыкание на\n * namespace-импорт `components` удерживает всю библиотеку в бандле потребителя и делает\n * tree-shaking невозможным. Регистрируемый набор передаёт вызывающая сторона —\n * либо целиком (`createCds({ components, directives })`), либо точечно.\n * См. `docs/treeshaking.md`.\n */\nexport const createCds = (options: CdsOptions = {}) => {\n return _createCds(options);\n};\n\nexport const version = __CDS_VERSION__;\ncreateCds.version = version;\n\n// Inject all components into the global @vue/runtime-core\n// This allows intellisense in templates w/out direct importing\ndeclare module '@vue/runtime-core' {\n export interface GlobalComponents {\n CdsApp: typeof components.CdsApp;\n CdsAutocomplete: typeof components.CdsAutocomplete;\n CdsAvatar: typeof components.CdsAvatar;\n CdsBadge: typeof components.CdsBadge;\n CdsBreadcrumbs: typeof components.CdsBreadcrumbs;\n CdsBreadcrumbsItem: typeof components.CdsBreadcrumbsItem;\n CdsBreadcrumbsDivider: typeof components.CdsBreadcrumbsDivider;\n CdsButton: typeof components.CdsButton;\n CdsButtonGroup: typeof components.CdsButtonGroup;\n CdsButtonToggle: typeof components.CdsButtonToggle;\n CdsCard: typeof components.CdsCard;\n CdsCardGroup: typeof components.CdsCardGroup;\n CdsCardItem: typeof components.CdsCardItem;\n CdsCardTitle: typeof components.CdsCardTitle;\n CdsCardSubtitle: typeof components.CdsCardSubtitle;\n CdsCardText: typeof components.CdsCardText;\n CdsCardActions: typeof components.CdsCardActions;\n CdsCardDivider: typeof components.CdsCardDivider;\n CdsCarousel: typeof components.CdsCarousel;\n CdsCarouselItem: typeof components.CdsCarouselItem;\n CdsCheckbox: typeof components.CdsCheckbox;\n CdsCheckboxButton: typeof components.CdsCheckboxButton;\n CdsCombobox: typeof components.CdsCombobox;\n CdsCounter: typeof components.CdsCounter;\n CdsDateInput: typeof components.CdsDateInput;\n CdsDatePicker: typeof components.CdsDatePicker;\n CdsDefaultsProvider: typeof components.CdsDefaultsProvider;\n CdsDescription: typeof components.CdsDescription;\n CdsDivider: typeof components.CdsDivider;\n CdsDrawer: typeof components.CdsDrawer;\n CdsEmptyState: typeof components.CdsEmptyState;\n CdsExpandablePanels: typeof components.CdsExpandablePanels;\n CdsExpandablePanel: typeof components.CdsExpandablePanel;\n CdsExpandablePanelTitle: typeof components.CdsExpandablePanelTitle;\n CdsExpandablePanelContent: typeof components.CdsExpandablePanelContent;\n CdsField: typeof components.CdsField;\n CdsFileInput: typeof components.CdsFileInput;\n CdsFileUpload: typeof components.CdsFileUpload;\n CdsFileUploadDropzone: typeof components.CdsFileUploadDropzone;\n CdsFileUploadList: typeof components.CdsFileUploadList;\n CdsFileUploadItem: typeof components.CdsFileUploadItem;\n CdsFooter: typeof components.CdsFooter;\n CdsForm: typeof components.CdsForm;\n CdsLabel: typeof components.CdsLabel;\n CdsLayout: typeof components.CdsLayout;\n CdsLink: typeof components.CdsLink;\n CdsList: typeof components.CdsList;\n CdsListItem: typeof components.CdsListItem;\n CdsListItemAction: typeof components.CdsListItemAction;\n CdsListItemImage: typeof components.CdsListItemImage;\n CdsListItemMedia: typeof components.CdsListItemMedia;\n CdsListItemSubtitle: typeof components.CdsListItemSubtitle;\n CdsListItemDescription: typeof components.CdsListItemDescription;\n CdsListItemTitle: typeof components.CdsListItemTitle;\n CdsListItemDivider: typeof components.CdsListItemDivider;\n CdsListGroup: typeof components.CdsListGroup;\n CdsLoader: typeof components.CdsLoader;\n CdsMain: typeof components.CdsMain;\n CdsMenu: typeof components.CdsMenu;\n CdsFunctionalButton: typeof components.CdsFunctionalButton;\n CdsCol: typeof components.CdsCol;\n CdsGrid: typeof components.CdsGrid;\n CdsRow: typeof components.CdsRow;\n CdsHeader: typeof components.CdsHeader;\n CdsHighlight: typeof components.CdsHighlight;\n CdsIcon: typeof components.CdsIcon;\n CdsImage: typeof components.CdsImage;\n CdsInput: typeof components.CdsInput;\n CdsMessages: typeof components.CdsMessages;\n CdsModal: typeof components.CdsModal;\n CdsNotification: typeof components.CdsNotification;\n CdsNotificationAlert: typeof components.CdsNotificationAlert;\n CdsOtpField: typeof components.CdsOtpField;\n CdsOtpGroup: typeof components.CdsOtpGroup;\n CdsOtpInput: typeof components.CdsOtpInput;\n CdsOtpSeparator: typeof components.CdsOtpSeparator;\n CdsOverlay: typeof components.CdsOverlay;\n CdsPage: typeof components.CdsPage;\n CdsPagination: typeof components.CdsPagination;\n CdsProgressBar: typeof components.CdsProgressBar;\n CdsProgressCircle: typeof components.CdsProgressCircle;\n CdsRadio: typeof components.CdsRadio;\n CdsRadioGroup: typeof components.CdsRadioGroup;\n CdsResponsive: typeof components.CdsResponsive;\n CdsSelect: typeof components.CdsSelect;\n CdsSelectionControl: typeof components.CdsSelectionControl;\n CdsSelectionControlGroup: typeof components.CdsSelectionControlGroup;\n CdsSkeletonLoader: typeof components.CdsSkeletonLoader;\n CdsSlideGroup: typeof components.CdsSlideGroup;\n CdsSlideGroupItem: typeof components.CdsSlideGroupItem;\n CdsSlideView: typeof components.CdsSlideView;\n CdsSlideViewItem: typeof components.CdsSlideViewItem;\n CdsStages: typeof components.CdsStages;\n CdsStatus: typeof components.CdsStatus;\n CdsSteps: typeof components.CdsSteps;\n CdsStepsActions: typeof components.CdsStepsActions;\n CdsStepsItem: typeof components.CdsStepsItem;\n CdsStepsView: typeof components.CdsStepsView;\n CdsStepsViewItem: typeof components.CdsStepsViewItem;\n CdsSurface: typeof components.CdsSurface;\n CdsTable: typeof components.CdsTable;\n CdsTableColumn: typeof components.CdsTableColumn;\n CdsTableColumnGroup: typeof components.CdsTableColumnGroup;\n CdsTabs: typeof components.CdsTabs;\n CdsTabsView: typeof components.CdsTabsView;\n CdsTabsViewItem: typeof components.CdsTabsViewItem;\n CdsTab: typeof components.CdsTab;\n CdsTag: typeof components.CdsTag;\n CdsTagGroup: typeof components.CdsTagGroup;\n CdsTextArea: typeof components.CdsTextArea;\n CdsTextInput: typeof components.CdsTextInput;\n CdsTimePicker: typeof components.CdsTimePicker;\n CdsToast: typeof components.CdsToast;\n CdsToastQueue: typeof components.CdsToastQueue;\n CdsToggle: typeof components.CdsToggle;\n CdsToolbar: typeof components.CdsToolbar;\n CdsToolbarTitle: typeof components.CdsToolbarTitle;\n CdsTooltip: typeof components.CdsTooltip;\n CdsTree: typeof components.CdsTree;\n CdsTreeNode: typeof components.CdsTreeNode;\n CdsTreeDirectory: typeof components.CdsTreeDirectory;\n CdsUploader: typeof components.CdsUploader;\n CdsVirtualScroll: typeof components.CdsVirtualScroll;\n CdsVirtualScrollItem: typeof components.CdsVirtualScrollItem;\n }\n}\n\nexport { components, directives, themes, utils };\n\nexport * from './assets';\nexport type { Blueprint, CdsInstance, CdsOptions } from './cds';\nexport * from './components';\nexport * from './composables';\nexport * from './directives';\nexport * from './hooks';\nexport * from './transitions';\n"],"names":["_createCds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBO,MAAM,YAAY,CAAC,UAAsB,OAAO;AACrD,SAAOA,YAAW,OAAO;AAC3B;AAEO,MAAM,UAAU;AACvB,UAAU,UAAU;"}
|
|
@@ -4,7 +4,7 @@ import { p as provideTheme } from "../../composables/useTheme/useTheme.js";
|
|
|
4
4
|
import { u as useDefaults, p as provideDefaults } from "../../core/useDefaults.js";
|
|
5
5
|
import { u as convertToUnit } from "../../utils/helpers.js";
|
|
6
6
|
import { c as classNames } from "../../utils/dom/classNames.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c as CdsListConstants } from "./api/CdsList.constants.js";
|
|
8
8
|
import { b as defineCdsListProps } from "./api/CdsList.props.js";
|
|
9
9
|
import { _ as _sfc_main$1 } from "./components/ListChildren.vue_vue_type_script_setup_true_lang.js";
|
|
10
10
|
import { p as provideList, c as createList } from "./composables/useList.js";
|
|
@@ -8,7 +8,7 @@ import { M as MaybeTransition } from "../../composables/useTransition/useTransit
|
|
|
8
8
|
import { u as useDefaults } from "../../core/useDefaults.js";
|
|
9
9
|
import { c as CdsTransitionExpand } from "../../transitions/index.js";
|
|
10
10
|
import { c as classNames } from "../../utils/dom/classNames.js";
|
|
11
|
-
import {
|
|
11
|
+
import { a as CdsListGroupConstants } from "./api/CdsList.constants.js";
|
|
12
12
|
import { c as defineCdsListGroupProps } from "./api/CdsList.props.js";
|
|
13
13
|
import { _ as _sfc_main$1 } from "./CdsListSubheader.vue_vue_type_script_setup_true_lang.js";
|
|
14
14
|
import { _ as _sfc_main$2 } from "./components/ListGroupActivator.vue_vue_type_script_setup_true_lang.js";
|
|
@@ -9,7 +9,7 @@ import { p as provideTheme } from "../../composables/useTheme/useTheme.js";
|
|
|
9
9
|
import { u as useDefaults } from "../../core/useDefaults.js";
|
|
10
10
|
import { u as convertToUnit, _ as keyNames } from "../../utils/helpers.js";
|
|
11
11
|
import { c as classNames } from "../../utils/dom/classNames.js";
|
|
12
|
-
import {
|
|
12
|
+
import { b as CdsListItemConstants, c as CdsListConstants } from "./api/CdsList.constants.js";
|
|
13
13
|
import { a as defineCdsListItemProps } from "./api/CdsList.props.js";
|
|
14
14
|
import { _ as _sfc_main$3 } from "./CdsListItemDescription.vue_vue_type_script_lang.js";
|
|
15
15
|
import { _ as _sfc_main$2 } from "./CdsListItemSubtitle.vue_vue_type_script_lang.js";
|
package/dist/es/src/components/CdsList/CdsListSubheader.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useSlots, createVNode, unref } from "vue";
|
|
2
2
|
import { u as useDefaults } from "../../core/useDefaults.js";
|
|
3
3
|
import { c as classNames } from "../../utils/dom/classNames.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as CdsListSubheaderConstants } from "./api/CdsList.constants.js";
|
|
5
5
|
import { d as defineCdsListSubheaderProps } from "./api/CdsList.props.js";
|
|
6
6
|
import { u as useTextColor } from "../../composables/useColor/useColor.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,10 +12,10 @@ const CdsListItemDividerConstants = defineConstants(`${CdsListItemConstants.name
|
|
|
12
12
|
const CdsListGroupConstants = defineConstants(`${CdsListConstants.name}Group`);
|
|
13
13
|
const CdsListSubheaderConstants = defineConstants(`${CdsListConstants.name}Subheader`);
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
CdsListSubheaderConstants as C,
|
|
16
|
+
CdsListGroupConstants as a,
|
|
17
|
+
CdsListItemConstants as b,
|
|
18
|
+
CdsListConstants as c,
|
|
19
19
|
CdsListItemDividerConstants as d,
|
|
20
20
|
CdsListSymbol as e,
|
|
21
21
|
CdsListItemDescriptionConstants as f,
|
|
@@ -7,8 +7,8 @@ import { d as defineRouterProps } from "../../../composables/useRouter/useRouter
|
|
|
7
7
|
import { d as defineThemeProps } from "../../../composables/useTheme/useTheme.js";
|
|
8
8
|
import { d as defineComponentProps, a as defineTagProps } from "../../../core/defineComponent.js";
|
|
9
9
|
import { p as propsFactory } from "../../../core/propsFactory.js";
|
|
10
|
-
import {
|
|
11
|
-
import { C as
|
|
10
|
+
import { a7 as pick, E as EventProp } from "../../../utils/helpers.js";
|
|
11
|
+
import { C as CdsListSubheaderConstants, a as CdsListGroupConstants, b as CdsListItemConstants, c as CdsListConstants, d as CdsListItemDividerConstants } from "./CdsList.constants.js";
|
|
12
12
|
import { d as defineColorProps } from "../../../composables/useColor/useColor.js";
|
|
13
13
|
import { d as defineDimensionsProps } from "../../../composables/useDimensions/useDimensions.js";
|
|
14
14
|
const defineCdsListProps = propsFactory(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as withConstants } from "../../core/withConstants.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as CdsListConstants, b as CdsListItemConstants, i as CdsListItemActionConstants, j as CdsListItemImageConstants, k as CdsListItemMediaConstants, g as CdsListItemSubtitleConstants, h as CdsListItemTitleConstants, f as CdsListItemDescriptionConstants, d as CdsListItemDividerConstants, a as CdsListGroupConstants } from "./api/CdsList.constants.js";
|
|
3
3
|
import { _ as _sfc_main } from "./CdsList.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
import { _ as _sfc_main$9 } from "./CdsListGroup.vue_vue_type_script_setup_true_lang.js";
|
|
5
5
|
import { _ as _sfc_main$1 } from "./CdsListItem.vue_vue_type_script_setup_true_lang.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CdsOtpField.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, inject, computed, unref, createVNode } from "vue";
|
|
2
|
+
import { C as CdsField } from "../CdsField/index.js";
|
|
3
|
+
import { u as useDefaults } from "../../core/useDefaults.js";
|
|
4
|
+
import { c as classNames } from "../../utils/dom/classNames.js";
|
|
5
|
+
import { C as CdsOtpFieldConstants, d as CdsOtpInputSymbol } from "./api/CdsOtpInput.constants.js";
|
|
6
|
+
import { d as defineCdsOtpFieldProps } from "./api/CdsOtpInput.props.js";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: CdsOtpFieldConstants.name
|
|
10
|
+
},
|
|
11
|
+
__name: "CdsOtpField",
|
|
12
|
+
props: {
|
|
13
|
+
...defineCdsOtpFieldProps()
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const _props = __props;
|
|
17
|
+
const props = useDefaults(_props);
|
|
18
|
+
const otpInput = inject(CdsOtpInputSymbol);
|
|
19
|
+
if (!otpInput) {
|
|
20
|
+
throw new Error(`[CDS] ${CdsOtpFieldConstants.name} должен использоваться внутри CdsOtpInput`);
|
|
21
|
+
}
|
|
22
|
+
const slot = computed(() => unref(otpInput.otpSlots)[props.index]);
|
|
23
|
+
const isHighlighted = computed(() => {
|
|
24
|
+
var _a;
|
|
25
|
+
return unref(otpInput.isFocused) && unref(otpInput.focusAll) && !((_a = unref(slot)) == null ? void 0 : _a.isActive);
|
|
26
|
+
});
|
|
27
|
+
return () => {
|
|
28
|
+
const {
|
|
29
|
+
rootClass
|
|
30
|
+
} = CdsOtpFieldConstants;
|
|
31
|
+
const data = unref(slot);
|
|
32
|
+
if (!data) return null;
|
|
33
|
+
return createVNode(CdsField, {
|
|
34
|
+
"class": classNames(rootClass, {
|
|
35
|
+
[`${rootClass}--highlighted`]: unref(isHighlighted)
|
|
36
|
+
}, props.class),
|
|
37
|
+
"style": props.style,
|
|
38
|
+
"focused": data.isActive || unref(isHighlighted),
|
|
39
|
+
"onMousedown": (event) => event.preventDefault(),
|
|
40
|
+
"onClick": () => otpInput.focusAt(props.index)
|
|
41
|
+
}, {
|
|
42
|
+
default: () => createVNode("div", {
|
|
43
|
+
"class": `${rootClass}__slot`
|
|
44
|
+
}, [createVNode("input", {
|
|
45
|
+
"class": `${rootClass}__spacer`,
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
"tabindex": -1
|
|
48
|
+
}, null), data.compositionChar ? createVNode("span", {
|
|
49
|
+
"class": `${rootClass}__composition`
|
|
50
|
+
}, [data.compositionChar]) : data.hasFakeCaret ? createVNode("span", {
|
|
51
|
+
"class": `${rootClass}__caret`
|
|
52
|
+
}, null) : createVNode("span", {
|
|
53
|
+
"class": !data.char ? `${rootClass}__placeholder` : void 0
|
|
54
|
+
}, [data.char ?? data.placeholderChar ?? ""])])
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
_sfc_main as _
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=CdsOtpField.vue_vue_type_script_setup_true_lang.js.map
|
package/dist/es/src/components/CdsOtpInput/CdsOtpField.vue_vue_type_script_setup_true_lang.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CdsOtpField.vue_vue_type_script_setup_true_lang.js","sources":["../../../../../src/components/CdsOtpInput/CdsOtpField.vue"],"sourcesContent":["<script setup lang=\"tsx\">\nimport { CdsField } from '@cds/components/CdsField';\nimport { useDefaults } from '@cds/core';\nimport { classNames } from '@cds/utils';\nimport { computed, inject, unref } from 'vue';\n\nimport { CdsOtpFieldConstants, CdsOtpInputSymbol } from './api/CdsOtpInput.constants';\nimport { defineCdsOtpFieldProps } from './api/CdsOtpInput.props';\n\ndefineOptions({\n name: CdsOtpFieldConstants.name\n});\n\nconst _props = defineProps({ ...defineCdsOtpFieldProps() });\nconst props = useDefaults(_props);\n\nconst otpInput = inject(CdsOtpInputSymbol);\n\nif (!otpInput) {\n throw new Error(`[CDS] ${CdsOtpFieldConstants.name} должен использоваться внутри CdsOtpInput`);\n}\n\nconst slot = computed(() => unref(otpInput.otpSlots)[props.index]);\n\nconst isHighlighted = computed(() => unref(otpInput.isFocused) && unref(otpInput.focusAll) && !unref(slot)?.isActive);\n\ndefineRender(() => {\n const { rootClass } = CdsOtpFieldConstants;\n const data = unref(slot);\n\n if (!data) return null;\n\n return (\n <CdsField\n class={classNames(rootClass, { [`${rootClass}--highlighted`]: unref(isHighlighted) }, props.class)}\n style={props.style}\n focused={data.isActive || unref(isHighlighted)}\n onMousedown={(event: MouseEvent) => event.preventDefault()}\n onClick={() => otpInput.focusAt(props.index)}\n >\n {{\n default: () => (\n <div class={`${rootClass}__slot`}>\n <input class={`${rootClass}__spacer`} aria-hidden=\"true\" tabindex={-1} />\n\n {data.compositionChar ? (\n <span class={`${rootClass}__composition`}>{data.compositionChar}</span>\n ) : data.hasFakeCaret ? (\n <span class={`${rootClass}__caret`} />\n ) : (\n <span class={!data.char ? `${rootClass}__placeholder` : undefined}>\n {data.char ?? data.placeholderChar ?? ''}\n </span>\n )}\n </div>\n )\n }}\n </CdsField>\n );\n});\n</script>\n"],"names":["_props","__props","props","useDefaults","otpInput","inject","CdsOtpInputSymbol","Error","CdsOtpFieldConstants","name","slot","computed","unref","otpSlots","index","isHighlighted","isFocused","focusAll","isActive","rootClass","data","_createVNode","CdsField","classNames","class","style","event","preventDefault","onClick","focusAt","default","compositionChar","hasFakeCaret","char","undefined","placeholderChar"],"mappings":";;;;;;;;;;;;;;;AAaA,UAAMA,SAASC;AACf,UAAMC,QAAQC,YAAYH,MAAM;AAEhC,UAAMI,WAAWC,OAAOC,iBAAiB;AAEzC,QAAI,CAACF,UAAU;AACb,YAAM,IAAIG,MAAM,SAASC,qBAAqBC,IAAI,2CAA2C;AAAA,IAC/F;AAEA,UAAMC,OAAOC,SAAS,MAAMC,MAAMR,SAASS,QAAQ,EAAEX,MAAMY,KAAK,CAAC;AAEjE,UAAMC,gBAAgBJ,SAAS,MAAA;;AAAMC,mBAAMR,SAASY,SAAS,KAAKJ,MAAMR,SAASa,QAAQ,KAAK,GAACL,WAAMF,IAAI,MAAVE,mBAAaM;AAAAA,KAAQ;WAEvG,MAAM;AACjB,YAAM;AAAA,QAAEC;AAAAA,MAAU,IAAIX;AACtB,YAAMY,OAAOR,MAAMF,IAAI;AAEvB,UAAI,CAACU,KAAM,QAAO;AAElB,aAAAC,YAAAC,UAAA;AAAA,QAAA,SAEWC,WAAWJ,WAAW;AAAA,UAAE,CAAC,GAAGA,SAAS,eAAe,GAAGP,MAAMG,aAAa;AAAA,QAAE,GAAGb,MAAMsB,KAAK;AAAA,QAAC,SAC3FtB,MAAMuB;AAAAA,QAAK,WACTL,KAAKF,YAAYN,MAAMG,aAAa;AAAA,QAAC,eAChCW,WAAsBA,MAAMC,eAAc;AAAA,QAAE,WACjDC,MAAMxB,SAASyB,QAAQ3B,MAAMY,KAAK;AAAA,MAAC,GAAA;AAAA,QAG1CgB,SAASA,MAAAT,YAAA,OAAA;AAAA,UAAA,SACK,GAAGF,SAAS;AAAA,QAAQ,GAAA,CAAAE,YAAA,SAAA;AAAA,UAAA,SAChB,GAAGF,SAAS;AAAA,UAAU,eAAA;AAAA,UAAA,YAA+B;AAAA,QAAE,GAAA,IAAA,GAEpEC,KAAKW,kBAAeV,YAAA,QAAA;AAAA,UAAA,SACN,GAAGF,SAAS;AAAA,WAAe,CAAGC,KAAKW,eAAe,CAAA,IAC7DX,KAAKY,eAAYX,YAAA,QAAA;AAAA,UAAA,SACN,GAAGF,SAAS;AAAA,QAAS,GAAA,IAAA,IAAAE,YAAA,QAAA;AAAA,UAAA,SAErB,CAACD,KAAKa,OAAO,GAAGd,SAAS,kBAAkBe;AAAAA,WAAS,CAC9Dd,KAAKa,QAAQb,KAAKe,mBAAmB,EAAE,CAAA,CAE3C,CAAA;AAAA,MAEL,CAAA;AAAA,IAIR;AAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CdsOtpGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|