@aleph-alpha/settings-kit 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +465 -15
- package/dist/SkLayout.vue_vue_type_script_setup_true_lang-ZjV2AMdR.js +51 -0
- package/dist/SkLayoutPage-DGbCpQFm.js +2545 -0
- package/dist/UseFileConvertor-DN6cCXNi.js +50 -0
- package/dist/components/SkField/SkField.vue.d.ts +28 -0
- package/dist/components/SkField/SkField.vue.d.ts.map +1 -0
- package/dist/components/SkField/index.d.ts +2 -0
- package/dist/components/SkField/index.d.ts.map +1 -0
- package/dist/components/SkGroup/SkGroup.vue.d.ts +29 -0
- package/dist/components/SkGroup/SkGroup.vue.d.ts.map +1 -0
- package/dist/components/SkGroup/index.d.ts +2 -0
- package/dist/components/SkGroup/index.d.ts.map +1 -0
- package/dist/components/SkItem/SkItem.vue.d.ts +22 -0
- package/dist/components/SkItem/SkItem.vue.d.ts.map +1 -0
- package/dist/components/SkItem/index.d.ts +2 -0
- package/dist/components/SkItem/index.d.ts.map +1 -0
- package/dist/components/SkLayout/SkLayout.vue.d.ts +53 -0
- package/dist/components/SkLayout/SkLayout.vue.d.ts.map +1 -0
- package/dist/components/SkLayout/SkLayoutPage.d.ts +23 -0
- package/dist/components/SkLayout/SkLayoutPage.d.ts.map +1 -0
- package/dist/components/SkLayout/context.d.ts +61 -0
- package/dist/components/SkLayout/context.d.ts.map +1 -0
- package/dist/components/SkLayout/index.d.ts +5 -0
- package/dist/components/SkLayout/index.d.ts.map +1 -0
- package/dist/components/SkPage/SkPage.vue.d.ts +35 -0
- package/dist/components/SkPage/SkPage.vue.d.ts.map +1 -0
- package/dist/components/SkPage/index.d.ts +2 -0
- package/dist/components/SkPage/index.d.ts.map +1 -0
- package/dist/components/SkSection/SkSection.vue.d.ts +29 -0
- package/dist/components/SkSection/SkSection.vue.d.ts.map +1 -0
- package/dist/components/SkSection/index.d.ts +2 -0
- package/dist/components/SkSection/index.d.ts.map +1 -0
- package/dist/components/controls/SkActionsControl/SkActionsControl.vue.d.ts +37 -0
- package/dist/components/controls/SkActionsControl/SkActionsControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkActionsControl/index.d.ts +2 -0
- package/dist/components/controls/SkActionsControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkCheckboxControl/SkCheckboxControl.vue.d.ts +35 -0
- package/dist/components/controls/SkCheckboxControl/SkCheckboxControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkCheckboxControl/index.d.ts +2 -0
- package/dist/components/controls/SkCheckboxControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkColorControl/SkColorControl.vue.d.ts +35 -0
- package/dist/components/controls/SkColorControl/SkColorControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkColorControl/index.d.ts +2 -0
- package/dist/components/controls/SkColorControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkFileUpload/SkFilePlaceholder.vue.d.ts +11 -0
- package/dist/components/controls/SkFileUpload/SkFilePlaceholder.vue.d.ts.map +1 -0
- package/dist/components/controls/SkFileUpload/SkFileUpload.vue.d.ts +46 -0
- package/dist/components/controls/SkFileUpload/SkFileUpload.vue.d.ts.map +1 -0
- package/dist/components/controls/SkFileUpload/index.d.ts +2 -0
- package/dist/components/controls/SkFileUpload/index.d.ts.map +1 -0
- package/dist/components/controls/SkPeriodControl/SkPeriodControl.vue.d.ts +35 -0
- package/dist/components/controls/SkPeriodControl/SkPeriodControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkPeriodControl/index.d.ts +2 -0
- package/dist/components/controls/SkPeriodControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkSelectControl/SkSelectControl.vue.d.ts +40 -0
- package/dist/components/controls/SkSelectControl/SkSelectControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkSelectControl/index.d.ts +2 -0
- package/dist/components/controls/SkSelectControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkTelControl/SKTelPrefixControl.vue.d.ts +16 -0
- package/dist/components/controls/SkTelControl/SKTelPrefixControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkTelControl/SkTelControl.vue.d.ts +35 -0
- package/dist/components/controls/SkTelControl/SkTelControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkTelControl/index.d.ts +4 -0
- package/dist/components/controls/SkTelControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkTelControl/prefixes.d.ts +26 -0
- package/dist/components/controls/SkTelControl/prefixes.d.ts.map +1 -0
- package/dist/components/controls/SkTextControl/SkTextControl.vue.d.ts +45 -0
- package/dist/components/controls/SkTextControl/SkTextControl.vue.d.ts.map +1 -0
- package/dist/components/controls/SkTextControl/index.d.ts +2 -0
- package/dist/components/controls/SkTextControl/index.d.ts.map +1 -0
- package/dist/components/controls/SkUnsupportedControl/SkUnsupportedControl.vue.d.ts +8 -0
- package/dist/components/controls/SkUnsupportedControl/SkUnsupportedControl.vue.d.ts.map +1 -0
- package/dist/components/controls/storyEventLog.d.ts +33 -0
- package/dist/components/controls/storyEventLog.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +12 -2
- package/dist/composables/UseFileConvertor/UseFileConvertor.d.ts +7 -0
- package/dist/composables/UseFileConvertor/UseFileConvertor.d.ts.map +1 -0
- package/dist/composables/index.d.ts +14 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useFieldInheritance/useFieldInheritance.d.ts +24 -0
- package/dist/composables/useFieldInheritance/useFieldInheritance.d.ts.map +1 -0
- package/dist/composables/useFieldValidator/useFieldValidator.d.ts +50 -0
- package/dist/composables/useFieldValidator/useFieldValidator.d.ts.map +1 -0
- package/dist/composables/useSettingField/useSettingField.d.ts +24 -0
- package/dist/composables/useSettingField/useSettingField.d.ts.map +1 -0
- package/dist/composables/useSettingsForm/useSettingsForm.d.ts +12 -0
- package/dist/composables/useSettingsForm/useSettingsForm.d.ts.map +1 -0
- package/dist/composables/useSettingsLayout/useSettingsLayout.d.ts +71 -0
- package/dist/composables/useSettingsLayout/useSettingsLayout.d.ts.map +1 -0
- package/dist/composables/useSettingsLocale/useSettingsLocale.d.ts +38 -0
- package/dist/composables/useSettingsLocale/useSettingsLocale.d.ts.map +1 -0
- package/dist/composables/useStateManager/useStateManager.d.ts +10 -0
- package/dist/composables/useStateManager/useStateManager.d.ts.map +1 -0
- package/dist/core/controls/controlDefinitions.d.ts +33 -0
- package/dist/core/controls/controlDefinitions.d.ts.map +1 -0
- package/dist/core/controls/index.d.ts +26 -0
- package/dist/core/controls/index.d.ts.map +1 -0
- package/dist/core/index.d.ts +18 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/layout/index.d.ts +8 -0
- package/dist/core/layout/index.d.ts.map +1 -0
- package/dist/core/layout/navigation.d.ts +33 -0
- package/dist/core/layout/navigation.d.ts.map +1 -0
- package/dist/core/layout/resolve.d.ts +41 -0
- package/dist/core/layout/resolve.d.ts.map +1 -0
- package/dist/core/layout/types.d.ts +160 -0
- package/dist/core/layout/types.d.ts.map +1 -0
- package/dist/core/layout/validate.d.ts +26 -0
- package/dist/core/layout/validate.d.ts.map +1 -0
- package/dist/core/types.d.ts +541 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/useControlModel.d.ts +13 -0
- package/dist/core/useControlModel.d.ts.map +1 -0
- package/dist/core/utils/a11y.d.ts +25 -0
- package/dist/core/utils/a11y.d.ts.map +1 -0
- package/dist/core/utils/cast.d.ts +8 -0
- package/dist/core/utils/cast.d.ts.map +1 -0
- package/dist/core/utils/consts.d.ts +978 -0
- package/dist/core/utils/consts.d.ts.map +1 -0
- package/dist/core/utils/kitMessages.d.ts +165 -0
- package/dist/core/utils/kitMessages.d.ts.map +1 -0
- package/dist/core/utils/localizedText.d.ts +10 -0
- package/dist/core/utils/localizedText.d.ts.map +1 -0
- package/dist/core/utils/useName.d.ts +7 -0
- package/dist/core/utils/useName.d.ts.map +1 -0
- package/dist/core/validate/constraints.d.ts +20 -0
- package/dist/core/validate/constraints.d.ts.map +1 -0
- package/dist/core/validate/rules.d.ts +29 -0
- package/dist/core/validate/rules.d.ts.map +1 -0
- package/dist/index-BQ6z6MK4.js +214 -0
- package/dist/index-BXs-0JdT.js +168 -0
- package/dist/index-BynIH0EE.js +92 -0
- package/dist/index-C-WLhRod.js +100 -0
- package/dist/index-CFMv8jSO.js +4 -0
- package/dist/index-CGYERet5.js +373 -0
- package/dist/index-KAbhkO1J.js +81 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -3
- package/dist/service/index.d.ts +2 -0
- package/dist/service/index.d.ts.map +1 -0
- package/dist/shell/SkShell.vue.d.ts +80 -0
- package/dist/shell/SkShell.vue.d.ts.map +1 -0
- package/dist/shell/SkShellFrame.vue.d.ts +46 -0
- package/dist/shell/SkShellFrame.vue.d.ts.map +1 -0
- package/dist/shell/SkShellNav.vue.d.ts +19 -0
- package/dist/shell/SkShellNav.vue.d.ts.map +1 -0
- package/dist/shell/history.d.ts +9 -0
- package/dist/shell/history.d.ts.map +1 -0
- package/dist/shell/index.d.ts +12 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +848 -0
- package/dist/shell/labels.d.ts +25 -0
- package/dist/shell/labels.d.ts.map +1 -0
- package/dist/shell/location.d.ts +18 -0
- package/dist/shell/location.d.ts.map +1 -0
- package/dist/shell/routes.d.ts +19 -0
- package/dist/shell/routes.d.ts.map +1 -0
- package/dist/shell/useMediaQuery.d.ts +4 -0
- package/dist/shell/useMediaQuery.d.ts.map +1 -0
- package/dist/shell/useShellLocation.d.ts +37 -0
- package/dist/shell/useShellLocation.d.ts.map +1 -0
- package/package.json +42 -23
- package/dist/SettingToggleUnit.vue_vue_type_script_setup_true_lang-BM7-6aXj.js +0 -61
- package/dist/components/SettingToggleUnit/SettingToggleUnit.vue.d.ts +0 -16
- package/dist/components/SettingToggleUnit/SettingToggleUnit.vue.d.ts.map +0 -1
- package/dist/components/SettingToggleUnit/index.d.ts +0 -3
- package/dist/components/SettingToggleUnit/index.d.ts.map +0 -1
- package/dist/components/SettingToggleUnit/types.d.ts +0 -11
- package/dist/components/SettingToggleUnit/types.d.ts.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SkBaseControlProps } from '../../../core';
|
|
2
|
+
type __VLS_Props = SkBaseControlProps<string> & {
|
|
3
|
+
/** Field label, shown inside the control. */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Field description, shown under the label. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Accepted file types, as the native `accept` attribute. */
|
|
8
|
+
accept?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_6: {}, __VLS_16: {}, __VLS_18: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
label?: (props: typeof __VLS_6) => any;
|
|
13
|
+
} & {
|
|
14
|
+
addons?: (props: typeof __VLS_16) => any;
|
|
15
|
+
} & {
|
|
16
|
+
error?: (props: typeof __VLS_18) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
20
|
+
change: (value: string | undefined) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
23
|
+
onChange?: ((value: string | undefined) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
description: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
name: string;
|
|
30
|
+
modelValue: string;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
inheriting: boolean;
|
|
33
|
+
required: boolean;
|
|
34
|
+
tooltip: string;
|
|
35
|
+
errors: string[];
|
|
36
|
+
accept: string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=SkFileUpload.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkFileUpload/SkFileUpload.vue"],"names":[],"mappings":"AA6KA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAkB5E,KAAK,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG;IAC1C,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA0ON,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;;;;;;iBAtPI,MAAM;;;;;;;;;YAEX,MAAM;6EAwPnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkFileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SkBaseControlProps } from '../../../core';
|
|
2
|
+
type __VLS_Props = SkBaseControlProps<string>;
|
|
3
|
+
declare var __VLS_1: {}, __VLS_58: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
label?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
error?: (props: typeof __VLS_58) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
11
|
+
change: (value: string | undefined) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string | undefined) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
name: string;
|
|
20
|
+
modelValue: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
inheriting: boolean;
|
|
23
|
+
required: boolean;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
errors: string[];
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SkPeriodControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkPeriodControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkPeriodControl/SkPeriodControl.vue"],"names":[],"mappings":"AAoMA,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,eAAe,CAAC;AAgBvB,KAAK,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AA6U9C,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkPeriodControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { SkBaseControlProps } from '../../../core';
|
|
2
|
+
import type { SettingFieldOption } from '../../../core';
|
|
3
|
+
interface SkSelectControlProps extends SkBaseControlProps<string> {
|
|
4
|
+
/** Static choices, labels as localized text. */
|
|
5
|
+
options?: SettingFieldOption[];
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {}, __VLS_34: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
label?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
error?: (props: typeof __VLS_34) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<SkSelectControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
15
|
+
change: (value: string | undefined) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<SkSelectControlProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
18
|
+
onChange?: ((value: string | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
name: string;
|
|
24
|
+
modelValue: string;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
inheriting: boolean;
|
|
27
|
+
required: boolean;
|
|
28
|
+
tooltip: string;
|
|
29
|
+
errors: string[];
|
|
30
|
+
options: SettingFieldOption[];
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=SkSelectControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkSelectControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkSelectControl/SkSelectControl.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAO5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAQxD,UAAU,oBAAqB,SAAQ,kBAAkB,CAAC,MAAM,CAAC;IAC/D,gDAAgD;IAChD,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AA0KD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;aAjLJ,kBAAkB,EAAE;6EAqL9B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkSelectControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Selected country code (v-model), e.g. `'DE'`. */
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
modelValue: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=SKTelPrefixControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SKTelPrefixControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTelControl/SKTelPrefixControl.vue"],"names":[],"mappings":"AAkPA,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAwbJ,QAAA,MAAM,YAAY;;;;;gBA1bD,MAAM;cACR,OAAO;6EA6bpB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SkBaseControlProps } from '../../../core';
|
|
2
|
+
type __VLS_Props = SkBaseControlProps<string>;
|
|
3
|
+
declare var __VLS_1: {}, __VLS_29: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
label?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
error?: (props: typeof __VLS_29) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
11
|
+
change: (value: string | undefined) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string | undefined) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
name: string;
|
|
20
|
+
modelValue: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
inheriting: boolean;
|
|
23
|
+
required: boolean;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
errors: string[];
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SkTelControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkTelControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTelControl/SkTelControl.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAqB5E,KAAK,WAAW,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAyL9C,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTelControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
export type DialPrefix = {
|
|
3
|
+
/** ISO 3166-1 alpha-2 country code. */
|
|
4
|
+
code: string;
|
|
5
|
+
dialCode: string;
|
|
6
|
+
icon: Component;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resolves a country's flag icon; throws for unknown codes. The icons module
|
|
10
|
+
* is imported lazily so it stays out of the main bundle.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getCountryFlag(code: string): Component;
|
|
13
|
+
/** Country name lookup in the first locale the runtime knows; English if none. */
|
|
14
|
+
export declare function createCountryNames(locales: Array<string | undefined>): (code: string) => string;
|
|
15
|
+
export declare const dialPrefixes: DialPrefix[];
|
|
16
|
+
export declare function findPrefixByCode(code: string): DialPrefix | undefined;
|
|
17
|
+
export declare const defaultPrefix: DialPrefix;
|
|
18
|
+
export declare function normalizeTel(value: string): string;
|
|
19
|
+
/** Splits a tel value into a known dial prefix and the national rest. */
|
|
20
|
+
export declare function parseTel(value: string): {
|
|
21
|
+
prefix?: DialPrefix;
|
|
22
|
+
national: string;
|
|
23
|
+
};
|
|
24
|
+
/** Dial code + national number without separators or the leading trunk `0`. */
|
|
25
|
+
export declare function composeTel(dialCode: string, national: string): string;
|
|
26
|
+
//# sourceMappingURL=prefixes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefixes.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTelControl/prefixes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAG3D,MAAM,MAAM,UAAU,GAAG;IACvB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAetD;AAID,kFAAkF;AAClF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,GACjC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAW1B;AAED,eAAO,MAAM,YAAY,EAAE,UAAU,EAMpC,CAAC;AAMF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAErE;AAOD,eAAO,MAAM,aAAa,EAAE,UAAoB,CAAC;AAOjD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG;IACvC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAcA;AAED,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGrE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SkBaseControlProps } from '../../../core';
|
|
2
|
+
interface SkTextControlProps extends SkBaseControlProps<string | number> {
|
|
3
|
+
/** Native input type, e.g. `'text'`, `'number'`, `'email'`. */
|
|
4
|
+
type?: string;
|
|
5
|
+
/** Maximum value length, enforced as the native `maxlength`. */
|
|
6
|
+
maxLength?: number;
|
|
7
|
+
/** Show a character counter; requires `maxLength`. */
|
|
8
|
+
charCounter?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare var __VLS_1: {}, __VLS_16: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
label?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
error?: (props: typeof __VLS_16) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<SkTextControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | number | undefined) => any;
|
|
18
|
+
change: (value: string | number | undefined) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<SkTextControlProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
21
|
+
onChange?: ((value: string | number | undefined) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
placeholder: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
maxLength: number;
|
|
29
|
+
charCounter: boolean;
|
|
30
|
+
modelValue: string | number;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
inheriting: boolean;
|
|
33
|
+
required: boolean;
|
|
34
|
+
tooltip: string;
|
|
35
|
+
errors: string[];
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=SkTextControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkTextControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTextControl/SkTextControl.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAe5E,UAAU,kBAAmB,SAAQ,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC;IACtE,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA4ID,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU;;;;;;;;;;;UAvJP,MAAM;eAED,MAAM;iBAEJ,OAAO;;;;;;;6EAuJrB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkTextControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The unsupported control name, for the error message. */
|
|
3
|
+
control?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=SkUnsupportedControl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkUnsupportedControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/SkUnsupportedControl/SkUnsupportedControl.vue"],"names":[],"mappings":"AAqCA,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAqCF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Storybook-only helper: records emitted events so an `Events` story can show
|
|
4
|
+
* them next to the control. Not part of the library build.
|
|
5
|
+
*/
|
|
6
|
+
/** One recorded event; `id` keeps list keys stable once old entries drop off. */
|
|
7
|
+
export interface EventLogEntry {
|
|
8
|
+
id: number;
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function useEventLog(): {
|
|
12
|
+
log: import("vue").Ref<{
|
|
13
|
+
id: number;
|
|
14
|
+
text: string;
|
|
15
|
+
}[], EventLogEntry[] | {
|
|
16
|
+
id: number;
|
|
17
|
+
text: string;
|
|
18
|
+
}[]>;
|
|
19
|
+
record: (event: string, payload?: unknown) => void;
|
|
20
|
+
};
|
|
21
|
+
/** Renders the entries from `useEventLog`, newest first. */
|
|
22
|
+
export declare const EventLog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
|
+
entries: {
|
|
24
|
+
type: PropType<EventLogEntry[]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
entries: {
|
|
29
|
+
type: PropType<EventLogEntry[]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
//# sourceMappingURL=storyEventLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storyEventLog.d.ts","sourceRoot":"","sources":["../../../src/components/controls/storyEventLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGpC;;;GAGG;AACH,iFAAiF;AACjF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,WAAW;;YAJrB,MAAM;cACJ,MAAM;;YADR,MAAM;cACJ,MAAM;;oBAWW,MAAM,YAAY,OAAO;EAQjD;AAED,4DAA4D;AAC5D,eAAO,MAAM,QAAQ;;cAGS,QAAQ,CAAC,aAAa,EAAE,CAAC;;;;;cAAzB,QAAQ,CAAC,aAAa,EAAE,CAAC;;;iGAiBrD,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
1
|
+
export { SkField } from './SkField';
|
|
2
|
+
export { SkGroup } from './SkGroup';
|
|
3
|
+
export { SkItem } from './SkItem';
|
|
4
|
+
export { defaultBlocks, provideSkLayoutContext, SkLayout, SkLayoutPage, skLayoutContextKey, } from './SkLayout';
|
|
5
|
+
export type { ProvideSkLayoutContextOptions, SkLayoutActionEvent, SkLayoutBlocks, SkLayoutContext, } from './SkLayout';
|
|
6
|
+
export { SkPage } from './SkPage';
|
|
7
|
+
export { SkSection } from './SkSection';
|
|
3
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,QAAQ,EACR,YAAY,EACZ,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,EACd,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import { _ } from "../
|
|
1
|
+
import { _, a, b, S, c, d, i, r, z } from "../SkLayoutPage-DGbCpQFm.js";
|
|
2
|
+
import { _ as _2 } from "../SkLayout.vue_vue_type_script_setup_true_lang-ZjV2AMdR.js";
|
|
2
3
|
export {
|
|
3
|
-
_ as
|
|
4
|
+
_ as SkField,
|
|
5
|
+
a as SkGroup,
|
|
6
|
+
b as SkItem,
|
|
7
|
+
_2 as SkLayout,
|
|
8
|
+
S as SkLayoutPage,
|
|
9
|
+
c as SkPage,
|
|
10
|
+
d as SkSection,
|
|
11
|
+
i as defaultBlocks,
|
|
12
|
+
r as provideSkLayoutContext,
|
|
13
|
+
z as skLayoutContextKey
|
|
4
14
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const UseFileConvertor: () => {
|
|
2
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
4
|
+
handleConvertFile: (file: File) => Promise<string | undefined>;
|
|
5
|
+
reset: () => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=UseFileConvertor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseFileConvertor.d.ts","sourceRoot":"","sources":["../../../src/composables/UseFileConvertor/UseFileConvertor.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB;;;8BAQY,IAAI,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;iBAyBvD,IAAI;CAYvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { UseFileConvertor, UseFileConvertor as useFileConvertor, } from './UseFileConvertor/UseFileConvertor';
|
|
2
|
+
export { useFieldInheritance } from './useFieldInheritance/useFieldInheritance';
|
|
3
|
+
export type { FieldInheritanceModel } from './useFieldInheritance/useFieldInheritance';
|
|
4
|
+
export { useSettingField } from './useSettingField/useSettingField';
|
|
5
|
+
export type { UseSettingFieldOptions } from './useSettingField/useSettingField';
|
|
6
|
+
export { provideSettingsLocale, useSettingsLocale, } from './useSettingsLocale/useSettingsLocale';
|
|
7
|
+
export type { SettingsLocale, SettingsLocaleOptions, } from './useSettingsLocale/useSettingsLocale';
|
|
8
|
+
export { useFieldValidator } from './useFieldValidator/useFieldValidator';
|
|
9
|
+
export type { UseFieldValidatorOptions, UseFieldValidatorReturn, } from './useFieldValidator/useFieldValidator';
|
|
10
|
+
export { settingsFormSessionKey, useSettingsForm, useSettingsFormSession, } from './useSettingsForm/useSettingsForm';
|
|
11
|
+
export { createStateManager, useStateManager, } from './useStateManager/useStateManager';
|
|
12
|
+
export { useSettingsLayout } from './useSettingsLayout/useSettingsLayout';
|
|
13
|
+
export type { SettingsLayoutModel, UseSettingsLayoutOptions, } from './useSettingsLayout/useSettingsLayout';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,IAAI,gBAAgB,GACrC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,YAAY,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACV,cAAc,EACd,qBAAqB,GACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,YAAY,EACV,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { SettingFieldFallbackState, SettingFieldRoot, SettingFieldType, StateManager } from '../../core/types';
|
|
3
|
+
/** What `useFieldInheritance` hands back to the field model. */
|
|
4
|
+
export interface FieldInheritanceModel {
|
|
5
|
+
/** State of the field's fallback, ready to render; absent when none is declared. */
|
|
6
|
+
fallback?: SettingFieldFallbackState;
|
|
7
|
+
/** Whether the active fallback currently copies another setting. */
|
|
8
|
+
inheriting: ComputedRef<boolean>;
|
|
9
|
+
/** Key of the setting being copied, while inheritance is active. */
|
|
10
|
+
inheritedFrom: ComputedRef<string | undefined>;
|
|
11
|
+
/** Schema default for the toggle: on until the field has an own value. */
|
|
12
|
+
fallbackActiveDefault: ComputedRef<boolean>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Presentation binding for one field's inheritance. The state manager
|
|
16
|
+
* resolves what is copied from where; this composable only turns the
|
|
17
|
+
* field's declared `fallback` into a renderable toggle whose `active` reads
|
|
18
|
+
* and writes the manager, so the choice survives unmount.
|
|
19
|
+
*
|
|
20
|
+
* @param props Field whose `fallback` applies.
|
|
21
|
+
* @param session State manager that owns the toggle and resolves values.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useFieldInheritance<K extends SettingFieldType>(props: SettingFieldRoot<K>, session: StateManager): FieldInheritanceModel;
|
|
24
|
+
//# sourceMappingURL=useFieldInheritance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFieldInheritance.d.ts","sourceRoot":"","sources":["../../../src/composables/useFieldInheritance/useFieldInheritance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb,MAAM,kBAAkB,CAAC;AAE1B,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,oEAAoE;IACpE,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,oEAAoE;IACpE,aAAa,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C,0EAA0E;IAC1E,qBAAqB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,gBAAgB,EAC5D,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC1B,OAAO,EAAE,YAAY,GACpB,qBAAqB,CA6CvB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { KitMessageOverrides } from '../../core';
|
|
3
|
+
import type { ReportedFieldIssue, SettingField, SettingFieldIssue, StandardSchemaV1 } from '../../core/types';
|
|
4
|
+
export interface UseFieldValidatorOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Locale used to resolve messages. Without it, the locale from
|
|
7
|
+
* `provideSettingsLocale` applies, else `'en'`. Inject does not see a
|
|
8
|
+
* provide in the same component: if you call `provideSettingsLocale` and
|
|
9
|
+
* this composable in one setup, pass the returned refs as options.
|
|
10
|
+
*/
|
|
11
|
+
locale?: MaybeRefOrGetter<string>;
|
|
12
|
+
/** Used when `locale` has no translation. Same rules as `locale`. */
|
|
13
|
+
fallbackLocale?: MaybeRefOrGetter<string | undefined>;
|
|
14
|
+
/** Replaces generic kit wording per key. Same rules as `locale`. */
|
|
15
|
+
messages?: MaybeRefOrGetter<KitMessageOverrides | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* External validators per setting key (any Standard Schema, e.g. zod).
|
|
18
|
+
* A field with one skips the built-in constraint checks; the external
|
|
19
|
+
* issue messages are used as-is.
|
|
20
|
+
*/
|
|
21
|
+
validators?: Record<string, StandardSchemaV1>;
|
|
22
|
+
}
|
|
23
|
+
export interface UseFieldValidatorReturn {
|
|
24
|
+
/** All current issues: caught while editing plus application-reported. */
|
|
25
|
+
issues: ComputedRef<SettingFieldIssue[]>;
|
|
26
|
+
/** Messages per setting key, ready for `SkField`'s `errors` prop. */
|
|
27
|
+
errorsByKey: ComputedRef<Record<string, string[]>>;
|
|
28
|
+
/**
|
|
29
|
+
* Saving should be prevented while this is false. Stays false while the
|
|
30
|
+
* latest check is running, and when that check rejects.
|
|
31
|
+
*/
|
|
32
|
+
isValid: ComputedRef<boolean>;
|
|
33
|
+
/** True while a validation run is in progress. */
|
|
34
|
+
isValidating: ComputedRef<boolean>;
|
|
35
|
+
/** Re-runs the client-side checks; also runs on every value change. */
|
|
36
|
+
validate: () => Promise<void>;
|
|
37
|
+
/** Places problems reported by the application on their fields. */
|
|
38
|
+
applyServerIssues: (reported: ReportedFieldIssue[]) => void;
|
|
39
|
+
/** Drops all application-reported issues, e.g. before a new save. */
|
|
40
|
+
clearServerIssues: () => void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Validation composable for a set of setting fields: checks each field's
|
|
44
|
+
* constraints as the admin edits and overlays problems reported by the
|
|
45
|
+
* owning application after saving. Both surface as the same normalized
|
|
46
|
+
* issues, keyed by setting key. Client checks are a convenience only —
|
|
47
|
+
* the application remains the authority.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useFieldValidator(fields: MaybeRefOrGetter<SettingField[]>, values: MaybeRefOrGetter<Record<string, unknown>>, options?: UseFieldValidatorOptions): UseFieldValidatorReturn;
|
|
50
|
+
//# sourceMappingURL=useFieldValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFieldValidator.d.ts","sourceRoot":"","sources":["../../../src/composables/useFieldValidator/useFieldValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAO,MAAM,KAAK,CAAC;AAG9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EAEjB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAa1B,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClC,qEAAqE;IACrE,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAC7D;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,MAAM,EAAE,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACzC,qEAAqE;IACrE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACnD;;;OAGG;IACH,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,kDAAkD;IAClD,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACnC,uEAAuE;IACvE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,mEAAmE;IACnE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAC5D,qEAAqE;IACrE,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,gBAAgB,CAAC,YAAY,EAAE,CAAC,EACxC,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACjD,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CA+MzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { SettingField, SettingFieldModel, SettingFieldType, SkFieldProps, StateManager } from '../../core/types';
|
|
3
|
+
/** Where `useSettingField` finds its state manager. */
|
|
4
|
+
export interface UseSettingFieldOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Explicit state manager. Omitted, the nearest `useSettingsForm` session
|
|
7
|
+
* is used; without one, the field creates a private single-key manager.
|
|
8
|
+
*/
|
|
9
|
+
session?: StateManager;
|
|
10
|
+
/**
|
|
11
|
+
* Sibling fields for the private manager, so `fallback`
|
|
12
|
+
* can resolve without a form. Ignored when a session is found or passed.
|
|
13
|
+
*/
|
|
14
|
+
fields?: MaybeRefOrGetter<SettingField[]>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Binds one setting to a state manager: resolves copy, control and props,
|
|
18
|
+
* and exposes the effective value, dirty flag and state. Owns no state of
|
|
19
|
+
* its own; the manager keeps the pending edit. Inside a form (or with an
|
|
20
|
+
* explicit `session`) the edit survives unmount; a private manager does not.
|
|
21
|
+
* Pass the reactive `props` object, not a copy, so a new `field` prop is seen.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSettingField<K extends SettingFieldType>(props: SkFieldProps<K>, options?: UseSettingFieldOptions): SettingFieldModel<K>;
|
|
24
|
+
//# sourceMappingURL=useSettingField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSettingField.d.ts","sourceRoot":"","sources":["../../../src/composables/useSettingField/useSettingField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAW5C,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAEjB,gBAAgB,EAEhB,YAAY,EACZ,YAAY,EACb,MAAM,kBAAkB,CAAC;AAE1B,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,gBAAgB,EACxD,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EACtB,OAAO,GAAE,sBAA2B,GACnC,iBAAiB,CAAC,CAAC,CAAC,CA6HtB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
import type { StateManager, StateManagerOptions } from '../../core/types';
|
|
3
|
+
/** Injection key fields use to find the nearest form session. */
|
|
4
|
+
export declare const settingsFormSessionKey: InjectionKey<StateManager>;
|
|
5
|
+
/**
|
|
6
|
+
* Creates a state manager and provides it to descendant fields. The returned
|
|
7
|
+
* session is the manager itself: `changes`, `save`, `discard`, `field(key)`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSettingsForm(options?: StateManagerOptions): StateManager;
|
|
10
|
+
/** The nearest provided form session, if the caller is inside one. */
|
|
11
|
+
export declare function useSettingsFormSession(): StateManager | undefined;
|
|
12
|
+
//# sourceMappingURL=useSettingsForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSettingsForm.d.ts","sourceRoot":"","sources":["../../../src/composables/useSettingsForm/useSettingsForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG1E,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,YAAY,CAE7D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,GAAE,mBAAwB,GAChC,YAAY,CAId;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,IAAI,YAAY,GAAG,SAAS,CAIjE"}
|