@tempots/beatui 0.53.0 → 0.54.1
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/dist/{2019-BiSy3dQP.cjs → 2019-5RIscTOv.cjs} +1 -1
- package/dist/{2019-Djx2f_nO.js → 2019-i1LHsYdK.js} +2 -2
- package/dist/{2020-BgJxYgaO.cjs → 2020-DeCezjWf.cjs} +1 -1
- package/dist/{2020-C1wOj1GM.js → 2020-S7qY95wq.js} +2 -2
- package/dist/{ar-BEbbig_x.cjs → ar-BqnDsD9v.cjs} +1 -1
- package/dist/{ar-Djuleurf.js → ar-DrBp_VwJ.js} +7 -12
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +353 -360
- package/dist/{de-E8u7Hbc0.js → de-B5oZoraI.js} +5 -10
- package/dist/{de-Br3MCGtv.cjs → de-C_N0wtxQ.cjs} +1 -1
- package/dist/{es-BN0iaBgJ.js → es-DRc5dc_G.js} +1 -6
- package/dist/{es-CAwGEj_N.cjs → es-JnLMDtzg.cjs} +1 -1
- package/dist/{fa-3Qfo8ZXh.js → fa-B0VDVs5B.js} +6 -11
- package/dist/{fa-CEz8tGnY.cjs → fa-BC16IdRL.cjs} +1 -1
- package/dist/{fr-Dbn62iEL.cjs → fr-BupZ6YnU.cjs} +1 -1
- package/dist/{fr-D1ndk0A5.js → fr-DXlfWwI6.js} +8 -13
- package/dist/{he-CIV7rntE.js → he-BX-Az8As.js} +8 -13
- package/dist/{he-OtaTg9wg.cjs → he-C-aQ2yoO.cjs} +1 -1
- package/dist/{hi-CnbarThz.cjs → hi-L3y3Aedb.cjs} +1 -1
- package/dist/{hi-tzWREPMb.js → hi-w4uL7LN1.js} +8 -13
- package/dist/{index-nRXzduHm.cjs → index-B7gVxeO9.cjs} +1 -1
- package/dist/{index-CBT2SLat.js → index-BI5w0jSz.js} +223 -224
- package/dist/{index-B9y4N11q.js → index-BnQvOXw8.js} +3019 -3004
- package/dist/{index-ClFVnBUS.cjs → index-Bv2gn_kV.cjs} +3 -3
- package/dist/{index-BjQW8AsK.cjs → index-CFOxIBGJ.cjs} +12 -12
- package/dist/{index-KPHFBjQB.cjs → index-CKyH3jwP.cjs} +1 -1
- package/dist/{index-TiMfhF1U.cjs → index-C_71zSeN.cjs} +1 -1
- package/dist/index-CkNcU-jd.cjs +8 -0
- package/dist/{index-qWS4IYZX.js → index-CyoxPiTg.js} +1 -1
- package/dist/{index-UMbs0jPr.js → index-DKwuTFYj.js} +377 -378
- package/dist/{index-DDhLWdaz.js → index-DNUXf4K4.js} +1 -1
- package/dist/{index-CAeOFdez.js → index-DjShJtXp.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2413 -2522
- package/dist/{it-1Hy_Ay2j.js → it-BCKQ5Tu8.js} +6 -11
- package/dist/{it-FOaX_rku.cjs → it-CnHaoq-X.cjs} +1 -1
- package/dist/{ja-C7_PK2VE.js → ja-DC47Nkza.js} +13 -18
- package/dist/{ja-DW4_3EWp.cjs → ja-DpDF4IgX.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-C-jXKweM.cjs → ko-BMmVJHzm.cjs} +1 -1
- package/dist/{ko-BDOp6dFE.js → ko-ejUHA0Sw.js} +8 -13
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/{modal-BBaPJhi-.js → modal-CKyUdeEz.js} +54 -58
- package/dist/modal-rou7pM0r.cjs +1 -0
- package/dist/{nl-CF5W2Rt4.js → nl-WjgpPUel.js} +6 -11
- package/dist/{nl-Ui8TT45t.cjs → nl-viDlnQWK.cjs} +1 -1
- package/dist/{notice-DTTyRbwh.js → notice-BS0d903Q.js} +385 -387
- package/dist/notice-MF7whf3_.cjs +2 -0
- package/dist/{pl-oLzT5Ole.js → pl-Cw4CYjK_.js} +3 -8
- package/dist/{pl-8PM7rn2L.cjs → pl-Vrfv_fGt.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-Bb0T3Cx1.js → pt-B4Rh_ZBF.js} +10 -15
- package/dist/{pt-kRRsG9-4.cjs → pt-CxQV74vS.cjs} +1 -1
- package/dist/{ru-C5AMF9a6.cjs → ru-BB3GRr_J.cjs} +1 -1
- package/dist/{ru-DwLv1myc.js → ru-DFHsLJ9b.js} +14 -19
- package/dist/{toolbar-D_LSJCtv.js → toolbar-D2J_NkKD.js} +1 -1
- package/dist/{toolbar-D6_MB1QI.cjs → toolbar-DRdm9W7H.cjs} +1 -1
- package/dist/{tr-DBQNjaPN.js → tr-Dbktyawl.js} +7 -12
- package/dist/{tr-BwgU2BAj.cjs → tr-mBiHcEl1.cjs} +1 -1
- package/dist/{translations-CG5-f9U8.js → translations-CaTkLRHu.js} +85 -93
- package/dist/{translations-t57jdjWu.js → translations-CpTeFtvW.js} +1 -1
- package/dist/{translations-D77sU1Wl.cjs → translations-ggnrzaCG.cjs} +1 -1
- package/dist/translations-h_OJS1Ut.cjs +1 -0
- package/dist/types/components/data/icon.d.ts +1 -1
- package/dist/types/components/data/page-drop-zone.d.ts +1 -1
- package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
- package/dist/types/components/form/input/create-nullable-string-input.d.ts +24 -0
- package/dist/types/components/form/input/create-temporal-input.d.ts +54 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +1 -2
- package/dist/types/components/form/input/nullable-password-input.d.ts +1 -2
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +19 -3
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +19 -3
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +19 -3
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +19 -3
- package/dist/types/components/form/input/nullable-text-area.d.ts +6 -4
- package/dist/types/components/form/input/nullable-text-input.d.ts +3 -4
- package/dist/types/components/form/input/nullable-url-input.d.ts +1 -2
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +1 -2
- package/dist/types/components/form/input/plain-date-input.d.ts +19 -3
- package/dist/types/components/form/input/plain-date-time-input.d.ts +19 -3
- package/dist/types/components/form/input/plain-time-input.d.ts +19 -3
- package/dist/types/components/form/input/plain-year-month-input.d.ts +19 -3
- package/dist/types/components/json-schema/controls/shared-utils.d.ts +8 -0
- package/dist/types/components/json-schema/schema-conditionals.d.ts +26 -0
- package/dist/types/components/json-schema/schema-context.d.ts +4 -107
- package/dist/types/components/json-schema/schema-merge.d.ts +9 -0
- package/dist/types/components/json-schema/schema-types.d.ts +85 -0
- package/dist/{ur-s32jv4mP.cjs → ur-CZ5sgUP1.cjs} +1 -1
- package/dist/{ur-BmK_ieRn.js → ur-Cqh7AYnd.js} +9 -14
- package/dist/utils-U1aNOU3o.cjs +1 -0
- package/dist/utils-w_vUChhV.js +2454 -0
- package/dist/{vi-DK0Fj95H.js → vi-CLBp2oaY.js} +11 -16
- package/dist/{vi-B4qRKlRd.cjs → vi-Ki_Urj_E.cjs} +1 -1
- package/dist/{zh-CUEpc9yf.cjs → zh-C78OkbS0.cjs} +1 -1
- package/dist/{zh-Db8COSme.js → zh-CT4aGkgD.js} +8 -13
- package/package.json +5 -4
- package/dist/index-ClqyVDXY.cjs +0 -8
- package/dist/modal-O7QoP7Zv.cjs +0 -1
- package/dist/notice-DLDzwKkw.cjs +0 -2
- package/dist/translations-BAk3j4bi.cjs +0 -1
- package/dist/utils-CYMdxKSM.js +0 -2516
- package/dist/utils-DI_H4_Gm.cjs +0 -1
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const NullablePlainDateTimeInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainDateTime | null>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainDateTime | null) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainDateTime | null) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const NullablePlainTimeInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainTime | null>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainTime | null) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainTime | null) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const NullablePlainYearMonthInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainYearMonth | null>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth | null) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth | null) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Value } from '@tempots/dom';
|
|
2
|
-
import { InputOptions } from './input-options';
|
|
3
2
|
import { Merge } from '@tempots/std';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { TextArea, TextAreaOptions } from './text-area';
|
|
4
|
+
export type NullableTextAreaOptions = Merge<Omit<TextAreaOptions, 'value' | 'onChange' | 'onInput'>, {
|
|
5
|
+
value: Value<null | string>;
|
|
6
|
+
onChange?: (value: null | string) => void;
|
|
7
|
+
onInput?: (value: null | string) => void;
|
|
6
8
|
}>;
|
|
7
|
-
export declare const NullableTextArea: (options: NullableTextAreaOptions) =>
|
|
9
|
+
export declare const NullableTextArea: (options: NullableTextAreaOptions) => ReturnType<typeof TextArea>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const NullableTextInput: (options: InputOptions<null | string>) => import("@tempots/dom").Renderable;
|
|
1
|
+
import { emptyToNull, nullToEmpty } from './create-nullable-string-input';
|
|
2
|
+
export { emptyToNull, nullToEmpty };
|
|
3
|
+
export declare const NullableTextInput: (options: import("./input-options").InputOptions<null | string>) => import("@tempots/dom").Renderable;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const NullableUrlInput: (options: InputOptions<null | string>) => import("@tempots/dom").Renderable;
|
|
1
|
+
export declare const NullableUrlInput: (options: import("./input-options").InputOptions<null | string>) => import("@tempots/dom").Renderable;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const NullableUUIDInput: (options: InputOptions<string | null>) => import("@tempots/dom").Renderable;
|
|
1
|
+
export declare const NullableUUIDInput: (options: import("./input-options").InputOptions<null | string>) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const PlainDateInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainDate>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainDate) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainDate) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const PlainDateTimeInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainDateTime>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainDateTime) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainDateTime) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const PlainTimeInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainTime>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainTime) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainTime) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
export declare const PlainYearMonthInput: (options: {
|
|
2
|
+
autocomplete?: import("@tempots/dom").Value<string> | undefined;
|
|
3
|
+
autofocus?: import("@tempots/dom").Value<boolean> | undefined;
|
|
4
|
+
class?: import("@tempots/dom").Value<string> | undefined;
|
|
5
|
+
disabled?: import("@tempots/dom").Value<boolean> | undefined;
|
|
6
|
+
hasError?: import("@tempots/dom").Value<boolean> | undefined;
|
|
7
|
+
name?: import("@tempots/dom").Value<string> | undefined;
|
|
8
|
+
placeholder?: import("@tempots/dom").Value<string> | undefined;
|
|
9
|
+
id?: import("@tempots/dom").Value<string> | undefined;
|
|
10
|
+
required?: import("@tempots/dom").Value<boolean> | undefined;
|
|
11
|
+
tabIndex?: import("@tempots/dom").Value<number> | undefined;
|
|
12
|
+
size?: import("@tempots/dom").Value<import("../../theme").ControlSize> | undefined;
|
|
13
|
+
value: import("@tempots/dom").Value<import("@js-temporal/polyfill").Temporal.PlainYearMonth>;
|
|
14
|
+
before?: import("@tempots/dom").TNode;
|
|
15
|
+
after?: import("@tempots/dom").TNode;
|
|
16
|
+
onChange?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth) => void) | undefined;
|
|
17
|
+
onInput?: ((value: import("@js-temporal/polyfill").Temporal.PlainYearMonth) => void) | undefined;
|
|
18
|
+
onBlur?: (() => void) | undefined;
|
|
19
|
+
}) => import("@tempots/dom").Renderable;
|
|
@@ -14,3 +14,11 @@ export declare function makePlaceholder<T>(definition: JSONSchema, converter: (v
|
|
|
14
14
|
* Convert multipleOf to integer step for integer inputs
|
|
15
15
|
*/
|
|
16
16
|
export declare function integerMultipleOf(multipleOf?: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a writeOnly field should be hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function shouldHideWriteOnly(ctx: import('../schema-context').SchemaContext): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Determine if a control should be disabled based on readOnly or deprecated status
|
|
23
|
+
*/
|
|
24
|
+
export declare function shouldDisableControl(ctx: import('../schema-context').SchemaContext): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type Ajv from 'ajv';
|
|
2
|
+
import type { JSONSchema, SchemaConflict, NotViolation } from './schema-types';
|
|
3
|
+
/**
|
|
4
|
+
* Evaluate `not` subschema against the current value using AJV.
|
|
5
|
+
* Returns a NotViolation if the value matches the disallowed schema.
|
|
6
|
+
*/
|
|
7
|
+
export declare function evaluateNotViolation(notSchema: JSONSchema, value: unknown, ajv: Ajv | undefined, basePath?: ReadonlyArray<PropertyKey>): NotViolation | null;
|
|
8
|
+
/**
|
|
9
|
+
* Evaluate if/then/else and dependencies overlays for an object schema without
|
|
10
|
+
* mutating the base definition. Returns a new effective schema plus any merge
|
|
11
|
+
* conflicts discovered while composing overlays.
|
|
12
|
+
*/
|
|
13
|
+
export declare function composeEffectiveObjectSchema(baseDef: JSONSchema, value: unknown, ajv: Ajv | undefined, basePath?: ReadonlyArray<PropertyKey>): {
|
|
14
|
+
effective: JSONSchema;
|
|
15
|
+
conflicts: readonly SchemaConflict[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Returns the overlay schema coming from if/then/else for the given value or
|
|
19
|
+
* null if no overlay applies or no AJV instance is available.
|
|
20
|
+
*/
|
|
21
|
+
export declare function evaluateIfThenElseOverlay(def: JSONSchema, value: unknown, ajv: Ajv | undefined): JSONSchema | null;
|
|
22
|
+
/**
|
|
23
|
+
* Tracks which properties have been evaluated by various JSON Schema keywords.
|
|
24
|
+
* This is used to implement unevaluatedProperties semantics for 2019-09/2020-12.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getEvaluatedProperties(schema: JSONSchema, value: Record<string, unknown> | undefined, ajv: Ajv | undefined): Set<string>;
|
|
@@ -1,79 +1,8 @@
|
|
|
1
1
|
import type Ajv from 'ajv';
|
|
2
|
-
|
|
3
|
-
export type JSONSchemaDefinition
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
$schema?: string;
|
|
7
|
-
$ref?: string;
|
|
8
|
-
$comment?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
default?: unknown;
|
|
12
|
-
examples?: unknown[];
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
writeOnly?: boolean;
|
|
15
|
-
deprecated?: boolean;
|
|
16
|
-
type?: JSONSchemaType | JSONSchemaType[];
|
|
17
|
-
enum?: unknown[];
|
|
18
|
-
const?: unknown;
|
|
19
|
-
multipleOf?: number;
|
|
20
|
-
maximum?: number;
|
|
21
|
-
exclusiveMaximum?: number;
|
|
22
|
-
minimum?: number;
|
|
23
|
-
exclusiveMinimum?: number;
|
|
24
|
-
maxLength?: number;
|
|
25
|
-
minLength?: number;
|
|
26
|
-
pattern?: string;
|
|
27
|
-
format?: string;
|
|
28
|
-
items?: JSONSchemaDefinition | JSONSchemaDefinition[];
|
|
29
|
-
additionalItems?: JSONSchemaDefinition;
|
|
30
|
-
maxItems?: number;
|
|
31
|
-
minItems?: number;
|
|
32
|
-
uniqueItems?: boolean;
|
|
33
|
-
contains?: JSONSchemaDefinition;
|
|
34
|
-
minContains?: number;
|
|
35
|
-
maxContains?: number;
|
|
36
|
-
maxProperties?: number;
|
|
37
|
-
minProperties?: number;
|
|
38
|
-
required?: string[];
|
|
39
|
-
properties?: Record<string, JSONSchemaDefinition>;
|
|
40
|
-
patternProperties?: Record<string, JSONSchemaDefinition>;
|
|
41
|
-
additionalProperties?: JSONSchemaDefinition;
|
|
42
|
-
dependencies?: Record<string, JSONSchemaDefinition | string[]>;
|
|
43
|
-
propertyNames?: JSONSchemaDefinition;
|
|
44
|
-
if?: JSONSchemaDefinition;
|
|
45
|
-
then?: JSONSchemaDefinition;
|
|
46
|
-
else?: JSONSchemaDefinition;
|
|
47
|
-
allOf?: JSONSchemaDefinition[];
|
|
48
|
-
anyOf?: JSONSchemaDefinition[];
|
|
49
|
-
oneOf?: JSONSchemaDefinition[];
|
|
50
|
-
not?: JSONSchemaDefinition;
|
|
51
|
-
dependentRequired?: Record<string, string[]>;
|
|
52
|
-
dependentSchemas?: Record<string, JSONSchemaDefinition>;
|
|
53
|
-
unevaluatedItems?: JSONSchemaDefinition;
|
|
54
|
-
unevaluatedProperties?: JSONSchemaDefinition;
|
|
55
|
-
prefixItems?: JSONSchemaDefinition[];
|
|
56
|
-
contentEncoding?: string;
|
|
57
|
-
contentMediaType?: string;
|
|
58
|
-
contentSchema?: JSONSchemaDefinition;
|
|
59
|
-
definitions?: Record<string, JSONSchemaDefinition>;
|
|
60
|
-
$defs?: Record<string, JSONSchemaDefinition>;
|
|
61
|
-
[key: string]: unknown;
|
|
62
|
-
}
|
|
63
|
-
export type SchemaConflict = {
|
|
64
|
-
readonly path: ReadonlyArray<PropertyKey>;
|
|
65
|
-
readonly message: string;
|
|
66
|
-
readonly conflictingValues: readonly unknown[];
|
|
67
|
-
};
|
|
68
|
-
export type AllOfMergeResult = {
|
|
69
|
-
readonly mergedSchema: JSONSchema;
|
|
70
|
-
readonly conflicts: readonly SchemaConflict[];
|
|
71
|
-
};
|
|
72
|
-
export type NotViolation = {
|
|
73
|
-
readonly path: ReadonlyArray<PropertyKey>;
|
|
74
|
-
readonly message: string;
|
|
75
|
-
readonly notSchema: JSONSchema;
|
|
76
|
-
};
|
|
2
|
+
import type { JSONSchemaDefinition, JSONSchemaType, SchemaConflict, NotViolation } from './schema-types';
|
|
3
|
+
export type { JSONSchema, JSONSchemaDefinition, JSONSchemaType, SchemaConflict, AllOfMergeResult, NotViolation, } from './schema-types';
|
|
4
|
+
export { mergeAllOf } from './schema-merge';
|
|
5
|
+
export { evaluateNotViolation, composeEffectiveObjectSchema, evaluateIfThenElseOverlay, getEvaluatedProperties, } from './schema-conditionals';
|
|
77
6
|
export type SchemaContextOptions = {
|
|
78
7
|
schema: JSONSchemaDefinition;
|
|
79
8
|
definition: JSONSchemaDefinition;
|
|
@@ -151,35 +80,3 @@ export declare class SchemaContext {
|
|
|
151
80
|
get examples(): unknown[] | undefined;
|
|
152
81
|
get default(): unknown;
|
|
153
82
|
}
|
|
154
|
-
/**
|
|
155
|
-
* Deep merge allOf branches into a single effective schema.
|
|
156
|
-
* - Intersects types (detects conflicts like string ∧ number)
|
|
157
|
-
* - Unions required arrays
|
|
158
|
-
* - Deep merges properties objects
|
|
159
|
-
* - Detects and reports conflicts as non-blocking schema errors
|
|
160
|
-
*/
|
|
161
|
-
export declare function mergeAllOf(allOfSchemas: readonly JSONSchema[], basePath?: ReadonlyArray<PropertyKey>): AllOfMergeResult;
|
|
162
|
-
/**
|
|
163
|
-
* Evaluate `not` subschema against the current value using AJV.
|
|
164
|
-
* Returns a NotViolation if the value matches the disallowed schema.
|
|
165
|
-
*/
|
|
166
|
-
export declare function evaluateNotViolation(notSchema: JSONSchema, value: unknown, ajv: Ajv | undefined, basePath?: ReadonlyArray<PropertyKey>): NotViolation | null;
|
|
167
|
-
/**
|
|
168
|
-
* Evaluate if/then/else and dependencies overlays for an object schema without
|
|
169
|
-
* mutating the base definition. Returns a new effective schema plus any merge
|
|
170
|
-
* conflicts discovered while composing overlays.
|
|
171
|
-
*/
|
|
172
|
-
export declare function composeEffectiveObjectSchema(baseDef: JSONSchema, value: unknown, ajv: Ajv | undefined, basePath?: ReadonlyArray<PropertyKey>): {
|
|
173
|
-
effective: JSONSchema;
|
|
174
|
-
conflicts: readonly SchemaConflict[];
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* Returns the overlay schema coming from if/then/else for the given value or
|
|
178
|
-
* null if no overlay applies or no AJV instance is available.
|
|
179
|
-
*/
|
|
180
|
-
export declare function evaluateIfThenElseOverlay(def: JSONSchema, value: unknown, ajv: Ajv | undefined): JSONSchema | null;
|
|
181
|
-
/**
|
|
182
|
-
* Tracks which properties have been evaluated by various JSON Schema keywords.
|
|
183
|
-
* This is used to implement unevaluatedProperties semantics for 2019-09/2020-12.
|
|
184
|
-
*/
|
|
185
|
-
export declare function getEvaluatedProperties(schema: JSONSchema, value: Record<string, unknown> | undefined, ajv: Ajv | undefined): Set<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JSONSchema, AllOfMergeResult } from './schema-types';
|
|
2
|
+
/**
|
|
3
|
+
* Deep merge allOf branches into a single effective schema.
|
|
4
|
+
* - Intersects types (detects conflicts like string ∧ number)
|
|
5
|
+
* - Unions required arrays
|
|
6
|
+
* - Deep merges properties objects
|
|
7
|
+
* - Detects and reports conflicts as non-blocking schema errors
|
|
8
|
+
*/
|
|
9
|
+
export declare function mergeAllOf(allOfSchemas: readonly JSONSchema[], basePath?: ReadonlyArray<PropertyKey>): AllOfMergeResult;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type Ajv from 'ajv';
|
|
2
|
+
export type JSONSchemaType = 'null' | 'boolean' | 'object' | 'array' | 'number' | 'string' | 'integer';
|
|
3
|
+
export type JSONSchemaDefinition = JSONSchema | boolean;
|
|
4
|
+
export interface JSONSchema {
|
|
5
|
+
$id?: string;
|
|
6
|
+
$schema?: string;
|
|
7
|
+
$ref?: string;
|
|
8
|
+
$comment?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
default?: unknown;
|
|
12
|
+
examples?: unknown[];
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
writeOnly?: boolean;
|
|
15
|
+
deprecated?: boolean;
|
|
16
|
+
type?: JSONSchemaType | JSONSchemaType[];
|
|
17
|
+
enum?: unknown[];
|
|
18
|
+
const?: unknown;
|
|
19
|
+
multipleOf?: number;
|
|
20
|
+
maximum?: number;
|
|
21
|
+
exclusiveMaximum?: number;
|
|
22
|
+
minimum?: number;
|
|
23
|
+
exclusiveMinimum?: number;
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
minLength?: number;
|
|
26
|
+
pattern?: string;
|
|
27
|
+
format?: string;
|
|
28
|
+
items?: JSONSchemaDefinition | JSONSchemaDefinition[];
|
|
29
|
+
additionalItems?: JSONSchemaDefinition;
|
|
30
|
+
maxItems?: number;
|
|
31
|
+
minItems?: number;
|
|
32
|
+
uniqueItems?: boolean;
|
|
33
|
+
contains?: JSONSchemaDefinition;
|
|
34
|
+
minContains?: number;
|
|
35
|
+
maxContains?: number;
|
|
36
|
+
maxProperties?: number;
|
|
37
|
+
minProperties?: number;
|
|
38
|
+
required?: string[];
|
|
39
|
+
properties?: Record<string, JSONSchemaDefinition>;
|
|
40
|
+
patternProperties?: Record<string, JSONSchemaDefinition>;
|
|
41
|
+
additionalProperties?: JSONSchemaDefinition;
|
|
42
|
+
dependencies?: Record<string, JSONSchemaDefinition | string[]>;
|
|
43
|
+
propertyNames?: JSONSchemaDefinition;
|
|
44
|
+
if?: JSONSchemaDefinition;
|
|
45
|
+
then?: JSONSchemaDefinition;
|
|
46
|
+
else?: JSONSchemaDefinition;
|
|
47
|
+
allOf?: JSONSchemaDefinition[];
|
|
48
|
+
anyOf?: JSONSchemaDefinition[];
|
|
49
|
+
oneOf?: JSONSchemaDefinition[];
|
|
50
|
+
not?: JSONSchemaDefinition;
|
|
51
|
+
dependentRequired?: Record<string, string[]>;
|
|
52
|
+
dependentSchemas?: Record<string, JSONSchemaDefinition>;
|
|
53
|
+
unevaluatedItems?: JSONSchemaDefinition;
|
|
54
|
+
unevaluatedProperties?: JSONSchemaDefinition;
|
|
55
|
+
prefixItems?: JSONSchemaDefinition[];
|
|
56
|
+
contentEncoding?: string;
|
|
57
|
+
contentMediaType?: string;
|
|
58
|
+
contentSchema?: JSONSchemaDefinition;
|
|
59
|
+
definitions?: Record<string, JSONSchemaDefinition>;
|
|
60
|
+
$defs?: Record<string, JSONSchemaDefinition>;
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
export type SchemaConflict = {
|
|
64
|
+
readonly path: ReadonlyArray<PropertyKey>;
|
|
65
|
+
readonly message: string;
|
|
66
|
+
readonly conflictingValues: readonly unknown[];
|
|
67
|
+
};
|
|
68
|
+
export type AllOfMergeResult = {
|
|
69
|
+
readonly mergedSchema: JSONSchema;
|
|
70
|
+
readonly conflicts: readonly SchemaConflict[];
|
|
71
|
+
};
|
|
72
|
+
export type NotViolation = {
|
|
73
|
+
readonly path: ReadonlyArray<PropertyKey>;
|
|
74
|
+
readonly message: string;
|
|
75
|
+
readonly notSchema: JSONSchema;
|
|
76
|
+
};
|
|
77
|
+
export type SchemaContextOptions = {
|
|
78
|
+
schema: JSONSchemaDefinition;
|
|
79
|
+
definition: JSONSchemaDefinition;
|
|
80
|
+
path: ReadonlyArray<PropertyKey>;
|
|
81
|
+
parentPath: ReadonlyArray<PropertyKey>;
|
|
82
|
+
propertyName: PropertyKey | undefined;
|
|
83
|
+
required: boolean;
|
|
84
|
+
ajv: Ajv | undefined;
|
|
85
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-h_OJS1Ut.cjs"),a={loadingExtended:"لوڈ ہو رہا ہے، براہ کرم انتظار کریں",loadingShort:"لوڈ ہو رہا ہے...",locale:"زبان",iconDescription:"آئیکن",loadingIcon:"لوڈنگ آئیکن",failedToLoadIcon:"آئیکن لوڈ کرنے میں ناکام",editLabel:"ترمیم",selectOne:"ایک منتخب کریں",selectMany:"متعدد منتخب کریں",noResults:"کوئی نتیجہ نہیں",passwordPlaceholderText:"خفیہ پاس ورڈ",togglePasswordVisibility:"پاس ورڈ کی مرئیت تبدیل کریں",toggleMenu:"مینو ٹوگل کریں",toggleAside:"سائیڈ پینل ٹوگل کریں",mainNavigation:"بنیادی نیویگیشن",sidebar:"سائیڈ بار",closeDrawer:"دراز بند کریں",closeModal:"ماڈل بند کریں",confirm:"تصدیق",cancel:"منسوخ",addLabel:"شامل کریں",removeItem:"آئٹم ہٹائیں",currentLocale:"اردو",ar:"عربی",de:"جرمن",en:"انگریزی",es:"ہسپانوی",fr:"فرانسیسی",he:"عبرانی",hi:"ہندی",it:"اطالوی",ja:"جاپانی",ko:"کوریائی",nl:"ڈچ",pl:"پولش",pt:"پرتگالی",ru:"روسی",tr:"ترکی",vi:"ویتنامی",zh:"چینی",fa:"فارسی",ur:"اردو",emailPlaceholderText:"اپنا ای میل داخل کریں",incrementValue:"قدر اضافہ کریں",decrementValue:"قدر کم کریں",dropZoneInstructions:e=>e?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں، یا فائل منتخب کرنے کے لیے Enter یا Space دبائیں":"فائلیں یہاں گھسیٹیں",fileSizeUnits:["بائٹس","KB","MB","GB","TB"],removeFile:"فائل حذف کریں",clearAllFiles:"تمام فائلیں صاف کریں",clearValue:"قدر صاف کریں",unknownType:"نامعلوم قسم",filesInputInstructions:(e,t,l)=>{let n=e==null||e>1?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں":"منتخب کرنے کے لیے کلک کریں یا فائل یہاں گھسیٹیں";if(e||t){const o=[];if(e!=null&&e>1&&o.push(`زیادہ سے زیادہ ${e} فائلیں`),t&&l){const r=i.formatFileSize(t,{units:l});o.push(`ہر ایک زیادہ سے زیادہ ${r}`)}o.length>0&&(n+=` (${o.join("، ")})`)}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
const
|
|
1
|
+
import { f as i } from "./translations-CaTkLRHu.js";
|
|
2
|
+
const c = {
|
|
3
3
|
loadingExtended: "لوڈ ہو رہا ہے، براہ کرم انتظار کریں",
|
|
4
4
|
loadingShort: "لوڈ ہو رہا ہے...",
|
|
5
5
|
locale: "زبان",
|
|
@@ -57,22 +57,17 @@ const a = {
|
|
|
57
57
|
// inputs reset
|
|
58
58
|
clearValue: "قدر صاف کریں",
|
|
59
59
|
unknownType: "نامعلوم قسم",
|
|
60
|
-
filesInputInstructions: (e,
|
|
60
|
+
filesInputInstructions: (e, l, t) => {
|
|
61
61
|
let n = e == null || e > 1 ? "منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں" : "منتخب کرنے کے لیے کلک کریں یا فائل یہاں گھسیٹیں";
|
|
62
|
-
if (e ||
|
|
62
|
+
if (e || l) {
|
|
63
63
|
const o = [];
|
|
64
|
-
if (e != null && e > 1 && o.push(`زیادہ سے زیادہ ${e} فائلیں`),
|
|
65
|
-
const
|
|
66
|
-
units:
|
|
64
|
+
if (e != null && e > 1 && o.push(`زیادہ سے زیادہ ${e} فائلیں`), l && t) {
|
|
65
|
+
const r = i(l, {
|
|
66
|
+
units: t
|
|
67
67
|
});
|
|
68
|
-
o.push(`ہر ایک زیادہ سے زیادہ ${
|
|
68
|
+
o.push(`ہر ایک زیادہ سے زیادہ ${r}`);
|
|
69
69
|
}
|
|
70
70
|
o.length > 0 && (n += ` (${o.join("، ")})`);
|
|
71
|
-
} else if (t && l) {
|
|
72
|
-
const o = r(t, {
|
|
73
|
-
units: l
|
|
74
|
-
});
|
|
75
|
-
n += ` (زیادہ سے زیادہ ${o})`;
|
|
76
71
|
}
|
|
77
72
|
return n;
|
|
78
73
|
},
|
|
@@ -93,5 +88,5 @@ const a = {
|
|
|
93
88
|
}
|
|
94
89
|
};
|
|
95
90
|
export {
|
|
96
|
-
|
|
91
|
+
c as default
|
|
97
92
|
};
|