@platforma-sdk/ui-vue 1.28.0 → 1.28.2

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/lib.js +8291 -7911
  3. package/dist/lib.js.map +1 -1
  4. package/dist/lib.umd.cjs +18 -18
  5. package/dist/lib.umd.cjs.map +1 -1
  6. package/dist/src/components/BlockLayout.vue.d.ts +1 -1
  7. package/dist/src/components/BlockLayout.vue.d.ts.map +1 -1
  8. package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts +2 -2
  9. package/dist/src/plugins/Monetization/LimitCard.vue.d.ts +10 -0
  10. package/dist/src/plugins/Monetization/LimitCard.vue.d.ts.map +1 -0
  11. package/dist/src/plugins/Monetization/MonetizationSidebar.vue.d.ts +3 -0
  12. package/dist/src/plugins/Monetization/MonetizationSidebar.vue.d.ts.map +1 -0
  13. package/dist/src/plugins/Monetization/RunStatus.vue.d.ts +6 -0
  14. package/dist/src/plugins/Monetization/RunStatus.vue.d.ts.map +1 -0
  15. package/dist/src/plugins/Monetization/UserCabinetCard.vue.d.ts +6 -0
  16. package/dist/src/plugins/Monetization/UserCabinetCard.vue.d.ts.map +1 -0
  17. package/dist/src/plugins/Monetization/index.d.ts +3 -0
  18. package/dist/src/plugins/Monetization/index.d.ts.map +1 -0
  19. package/dist/src/plugins/Monetization/useButtonTarget.d.ts +2 -0
  20. package/dist/src/plugins/Monetization/useButtonTarget.d.ts.map +1 -0
  21. package/dist/src/plugins/Monetization/useInfo.d.ts +21 -0
  22. package/dist/src/plugins/Monetization/useInfo.d.ts.map +1 -0
  23. package/dist/src/plugins/Monetization/validation.d.ts +224 -0
  24. package/dist/src/plugins/Monetization/validation.d.ts.map +1 -0
  25. package/dist/style.css +1 -1
  26. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  27. package/package.json +3 -3
  28. package/src/components/BlockLayout.vue +3 -0
  29. package/src/plugins/.gitkeep +0 -0
  30. package/src/plugins/Monetization/LimitCard.vue +162 -0
  31. package/src/plugins/Monetization/MonetizationSidebar.vue +241 -0
  32. package/src/plugins/Monetization/RunStatus.vue +79 -0
  33. package/src/plugins/Monetization/UserCabinetCard.vue +195 -0
  34. package/src/plugins/Monetization/index.ts +5 -0
  35. package/src/plugins/Monetization/useButtonTarget.ts +23 -0
  36. package/src/plugins/Monetization/useInfo.ts +42 -0
  37. package/src/plugins/Monetization/validation.ts +53 -0
@@ -1,5 +1,5 @@
1
1
  import '@milaboratories/uikit/styles';
2
2
  import '../assets/block.scss';
3
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
3
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=BlockLayout.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/BlockLayout.vue"],"names":[],"mappings":"AAAA,OAsDO,8BAA8B,CAAC;AACtC,OAAO,sBAAsB,CAAC;;AAgJ9B,wBAMG"}
1
+ {"version":3,"file":"BlockLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/BlockLayout.vue"],"names":[],"mappings":"AAAA,OAyDO,8BAA8B,CAAC;AACtC,OAAO,sBAAsB,CAAC;;AA0J9B,wBAKG"}
@@ -56,14 +56,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
56
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
57
57
  focusRow: (rowKey: PTableRowKey) => Promise<void>;
58
58
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- rowDoubleClicked: (key?: PTableRowKey | undefined) => any;
60
59
  "update:modelValue": (value: PlDataTableState) => any;
60
+ rowDoubleClicked: (key?: PTableRowKey | undefined) => any;
61
61
  columnsChanged: (columns: PTableColumnSpec[]) => any;
62
62
  cellButtonClicked: (key?: PTableRowKey | undefined) => any;
63
63
  "update:selectedRows": (value: PTableRowKey[]) => any;
64
64
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
65
- onRowDoubleClicked?: ((key?: PTableRowKey | undefined) => any) | undefined;
66
65
  "onUpdate:modelValue"?: ((value: PlDataTableState) => any) | undefined;
66
+ onRowDoubleClicked?: ((key?: PTableRowKey | undefined) => any) | undefined;
67
67
  onColumnsChanged?: ((columns: PTableColumnSpec[]) => any) | undefined;
68
68
  onCellButtonClicked?: ((key?: PTableRowKey | undefined) => any) | undefined;
69
69
  "onUpdate:selectedRows"?: ((value: PTableRowKey[]) => any) | undefined;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ used: number;
4
+ toSpend: number;
5
+ available: number | null;
6
+ unit?: string;
7
+ };
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
10
+ //# sourceMappingURL=LimitCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/LimitCard.vue"],"names":[],"mappings":"AAwKA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;AAuGF,wBAOG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=MonetizationSidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonetizationSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/MonetizationSidebar.vue"],"names":[],"mappings":";AA+bA,wBAKG"}
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ canRun: boolean | undefined;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
6
+ //# sourceMappingURL=RunStatus.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RunStatus.vue.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/RunStatus.vue"],"names":[],"mappings":"AAqFA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B,CAAC;;AAmFF,wBAOG"}
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ userCabinetUrl: string;
3
+ };
4
+ declare const _default: 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>;
5
+ export default _default;
6
+ //# sourceMappingURL=UserCabinetCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserCabinetCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/UserCabinetCard.vue"],"names":[],"mappings":"AA0MA,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;;AAoGF,wBAMG"}
@@ -0,0 +1,3 @@
1
+ import MonetizationSidebar from './MonetizationSidebar.vue';
2
+ export { MonetizationSidebar, };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EACL,mBAAmB,GACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useButtonTarget(): import("vue").Ref<string | undefined, string | undefined>;
2
+ //# sourceMappingURL=useButtonTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useButtonTarget.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/useButtonTarget.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,8DAoB9B"}
@@ -0,0 +1,21 @@
1
+ export declare function useInfo(): {
2
+ hasMonetization: import("vue").ComputedRef<boolean>;
3
+ result: import("vue").ComputedRef<{
4
+ productKey: string;
5
+ productName: string;
6
+ canRun: boolean;
7
+ mnz: {
8
+ details: {
9
+ spentRuns: number;
10
+ runsToSpend: number;
11
+ willRemainAfterRun: number | null;
12
+ subscription?: unknown;
13
+ };
14
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
15
+ };
16
+ status?: unknown;
17
+ } | undefined>;
18
+ error: import("vue").ComputedRef<unknown>;
19
+ canRun: import("vue").ComputedRef<boolean>;
20
+ };
21
+ //# sourceMappingURL=useInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInfo.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/useInfo.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO;;;;;;;;;;;;;;;;;;;EAqCtB"}
@@ -0,0 +1,224 @@
1
+ import { z } from 'zod';
2
+ declare const MonetizationType: z.ZodUnion<[z.ZodLiteral<"trial">, z.ZodLiteral<"free">, z.ZodLiteral<"single_payment">, z.ZodLiteral<"subscription">, z.ZodLiteral<"base">]>;
3
+ declare const DryRunResult: z.ZodObject<{
4
+ productKey: z.ZodString;
5
+ productName: z.ZodDefault<z.ZodString>;
6
+ canRun: z.ZodBoolean;
7
+ status: z.ZodUnion<[z.ZodLiteral<"select-tariff">, z.ZodLiteral<"active">, z.ZodLiteral<"payment_required">, z.ZodUnknown]>;
8
+ mnz: z.ZodObject<{
9
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"trial">, z.ZodLiteral<"free">, z.ZodLiteral<"single_payment">, z.ZodLiteral<"subscription">, z.ZodLiteral<"base">]>>;
10
+ details: z.ZodObject<{
11
+ spentRuns: z.ZodNumber;
12
+ runsToSpend: z.ZodNumber;
13
+ willRemainAfterRun: z.ZodNullable<z.ZodNumber>;
14
+ subscription: z.ZodUnknown;
15
+ }, "strip", z.ZodTypeAny, {
16
+ spentRuns: number;
17
+ runsToSpend: number;
18
+ willRemainAfterRun: number | null;
19
+ subscription?: unknown;
20
+ }, {
21
+ spentRuns: number;
22
+ runsToSpend: number;
23
+ willRemainAfterRun: number | null;
24
+ subscription?: unknown;
25
+ }>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ details: {
28
+ spentRuns: number;
29
+ runsToSpend: number;
30
+ willRemainAfterRun: number | null;
31
+ subscription?: unknown;
32
+ };
33
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
34
+ }, {
35
+ details: {
36
+ spentRuns: number;
37
+ runsToSpend: number;
38
+ willRemainAfterRun: number | null;
39
+ subscription?: unknown;
40
+ };
41
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ productKey: string;
45
+ productName: string;
46
+ canRun: boolean;
47
+ mnz: {
48
+ details: {
49
+ spentRuns: number;
50
+ runsToSpend: number;
51
+ willRemainAfterRun: number | null;
52
+ subscription?: unknown;
53
+ };
54
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
55
+ };
56
+ status?: unknown;
57
+ }, {
58
+ productKey: string;
59
+ canRun: boolean;
60
+ mnz: {
61
+ details: {
62
+ spentRuns: number;
63
+ runsToSpend: number;
64
+ willRemainAfterRun: number | null;
65
+ subscription?: unknown;
66
+ };
67
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
68
+ };
69
+ status?: unknown;
70
+ productName?: string | undefined;
71
+ }>;
72
+ type DryRunResult = z.infer<typeof DryRunResult>;
73
+ declare const Response: z.ZodOptional<z.ZodObject<{
74
+ httpError: z.ZodOptional<z.ZodString>;
75
+ response: z.ZodOptional<z.ZodObject<{
76
+ result: z.ZodOptional<z.ZodObject<{
77
+ productKey: z.ZodString;
78
+ productName: z.ZodDefault<z.ZodString>;
79
+ canRun: z.ZodBoolean;
80
+ status: z.ZodUnion<[z.ZodLiteral<"select-tariff">, z.ZodLiteral<"active">, z.ZodLiteral<"payment_required">, z.ZodUnknown]>;
81
+ mnz: z.ZodObject<{
82
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"trial">, z.ZodLiteral<"free">, z.ZodLiteral<"single_payment">, z.ZodLiteral<"subscription">, z.ZodLiteral<"base">]>>;
83
+ details: z.ZodObject<{
84
+ spentRuns: z.ZodNumber;
85
+ runsToSpend: z.ZodNumber;
86
+ willRemainAfterRun: z.ZodNullable<z.ZodNumber>;
87
+ subscription: z.ZodUnknown;
88
+ }, "strip", z.ZodTypeAny, {
89
+ spentRuns: number;
90
+ runsToSpend: number;
91
+ willRemainAfterRun: number | null;
92
+ subscription?: unknown;
93
+ }, {
94
+ spentRuns: number;
95
+ runsToSpend: number;
96
+ willRemainAfterRun: number | null;
97
+ subscription?: unknown;
98
+ }>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ details: {
101
+ spentRuns: number;
102
+ runsToSpend: number;
103
+ willRemainAfterRun: number | null;
104
+ subscription?: unknown;
105
+ };
106
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
107
+ }, {
108
+ details: {
109
+ spentRuns: number;
110
+ runsToSpend: number;
111
+ willRemainAfterRun: number | null;
112
+ subscription?: unknown;
113
+ };
114
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
115
+ }>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ productKey: string;
118
+ productName: string;
119
+ canRun: boolean;
120
+ mnz: {
121
+ details: {
122
+ spentRuns: number;
123
+ runsToSpend: number;
124
+ willRemainAfterRun: number | null;
125
+ subscription?: unknown;
126
+ };
127
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
128
+ };
129
+ status?: unknown;
130
+ }, {
131
+ productKey: string;
132
+ canRun: boolean;
133
+ mnz: {
134
+ details: {
135
+ spentRuns: number;
136
+ runsToSpend: number;
137
+ willRemainAfterRun: number | null;
138
+ subscription?: unknown;
139
+ };
140
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
141
+ };
142
+ status?: unknown;
143
+ productName?: string | undefined;
144
+ }>>;
145
+ error: z.ZodOptional<z.ZodUnknown>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ error?: unknown;
148
+ result?: {
149
+ productKey: string;
150
+ productName: string;
151
+ canRun: boolean;
152
+ mnz: {
153
+ details: {
154
+ spentRuns: number;
155
+ runsToSpend: number;
156
+ willRemainAfterRun: number | null;
157
+ subscription?: unknown;
158
+ };
159
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
160
+ };
161
+ status?: unknown;
162
+ } | undefined;
163
+ }, {
164
+ error?: unknown;
165
+ result?: {
166
+ productKey: string;
167
+ canRun: boolean;
168
+ mnz: {
169
+ details: {
170
+ spentRuns: number;
171
+ runsToSpend: number;
172
+ willRemainAfterRun: number | null;
173
+ subscription?: unknown;
174
+ };
175
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
176
+ };
177
+ status?: unknown;
178
+ productName?: string | undefined;
179
+ } | undefined;
180
+ }>>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ httpError?: string | undefined;
183
+ response?: {
184
+ error?: unknown;
185
+ result?: {
186
+ productKey: string;
187
+ productName: string;
188
+ canRun: boolean;
189
+ mnz: {
190
+ details: {
191
+ spentRuns: number;
192
+ runsToSpend: number;
193
+ willRemainAfterRun: number | null;
194
+ subscription?: unknown;
195
+ };
196
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
197
+ };
198
+ status?: unknown;
199
+ } | undefined;
200
+ } | undefined;
201
+ }, {
202
+ httpError?: string | undefined;
203
+ response?: {
204
+ error?: unknown;
205
+ result?: {
206
+ productKey: string;
207
+ canRun: boolean;
208
+ mnz: {
209
+ details: {
210
+ spentRuns: number;
211
+ runsToSpend: number;
212
+ willRemainAfterRun: number | null;
213
+ subscription?: unknown;
214
+ };
215
+ type?: "base" | "trial" | "free" | "single_payment" | "subscription" | undefined;
216
+ };
217
+ status?: unknown;
218
+ productName?: string | undefined;
219
+ } | undefined;
220
+ } | undefined;
221
+ }>>;
222
+ type Response = z.infer<typeof Response>;
223
+ export { MonetizationType, DryRunResult, Response, };
224
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/plugins/Monetization/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,gBAAgB,+IAMpB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBgC,CAAC;AAEnD,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMD,CAAC;AAEd,KAAK,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEzC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,QAAQ,GACT,CAAC"}