prlg-ui 1.8.400 → 1.8.402

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/rekaUI.d.ts CHANGED
@@ -10,6 +10,7 @@ import { AlertDialogRoot } from 'reka-ui';
10
10
  import { AlertDialogTitleProps } from 'reka-ui';
11
11
  import { AlertDialogTriggerProps } from 'reka-ui';
12
12
  import { AllowedComponentProps } from 'vue';
13
+ import { App } from 'vue';
13
14
  import { AsTag } from 'reka-ui';
14
15
  import { CalendarCell } from 'reka-ui';
15
16
  import { CalendarCellTriggerProps } from 'reka-ui';
@@ -117,6 +118,7 @@ import { FocusOutsideEvent } from 'reka-ui';
117
118
  import { FunctionalComponent } from 'vue';
118
119
  import { GlobalComponents } from 'vue';
119
120
  import { GlobalDirectives } from 'vue';
121
+ import { InjectionKey } from 'vue';
120
122
  import { LabelProps } from 'reka-ui';
121
123
  import { ListboxContent } from 'reka-ui';
122
124
  import { ListboxFilter } from 'reka-ui';
@@ -981,10 +983,10 @@ width: number;
981
983
 
982
984
  declare const __VLS_component_80: DefineComponent<ISelectItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ISelectItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
983
985
 
984
- declare const __VLS_component_81: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
986
+ declare const __VLS_component_81: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
985
987
  "update:modelValue": (value: AcceptableValue) => any;
986
988
  "update:open": (value: boolean) => any;
987
- }, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{
989
+ }, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{
988
990
  "onUpdate:modelValue"?: ((value: AcceptableValue) => any) | undefined;
989
991
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
990
992
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -1339,14 +1341,16 @@ declare type __VLS_Props_16 = {
1339
1341
  minHeight?: string;
1340
1342
  };
1341
1343
 
1342
- declare type __VLS_Props_17 = Props;
1344
+ declare type __VLS_Props_17 = Props_2;
1343
1345
 
1344
1346
  declare type __VLS_Props_18 = {
1345
1347
  placeholder?: string;
1346
1348
  size?: 'small' | 'default' | 'large';
1347
1349
  };
1348
1350
 
1349
- declare type __VLS_Props_19 = SelectRootProps;
1351
+ declare type __VLS_Props_19 = {
1352
+ placeholder?: string;
1353
+ };
1350
1354
 
1351
1355
  declare type __VLS_Props_2 = {
1352
1356
  value?: string | number;
@@ -1354,6 +1358,8 @@ declare type __VLS_Props_2 = {
1354
1358
  strong?: boolean;
1355
1359
  };
1356
1360
 
1361
+ declare type __VLS_Props_20 = SelectRootProps;
1362
+
1357
1363
  declare type __VLS_Props_3 = {
1358
1364
  items: MenuItem[];
1359
1365
  };
@@ -1404,6 +1410,10 @@ declare type __VLS_PublicProps_10 = {
1404
1410
  modelValue: TShedule | null;
1405
1411
  } & __VLS_Props_18;
1406
1412
 
1413
+ declare type __VLS_PublicProps_11 = {
1414
+ modelValue?: TShedule | null;
1415
+ } & __VLS_Props_19;
1416
+
1407
1417
  declare type __VLS_PublicProps_2 = {
1408
1418
  modelValue?: string | boolean | any | null | any[];
1409
1419
  } & __VLS_Props_5;
@@ -3436,6 +3446,44 @@ export declare const ComboboxViewport: __VLS_WithTemplateSlots_25<typeof __VLS_c
3436
3446
 
3437
3447
  export { ConfigType }
3438
3448
 
3449
+ export declare const ConfirmDialog: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3450
+ "update:state": (value: ConfirmOptions | null) => any;
3451
+ }, string, PublicProps, Readonly<Props> & Readonly<{
3452
+ "onUpdate:state"?: ((value: ConfirmOptions | null) => any) | undefined;
3453
+ }>, {
3454
+ state: ConfirmOptions | null;
3455
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3456
+
3457
+ export declare interface ConfirmDialogButtonProps extends Omit<IButtonProps, 'icon' | 'iconOnly'> {
3458
+ label?: string;
3459
+ }
3460
+
3461
+ export declare const confirmDialogPlugin: {
3462
+ install(app: App): void;
3463
+ };
3464
+
3465
+ export declare const confirmDialogState: Ref<ConfirmOptions | null>;
3466
+
3467
+ export declare interface ConfirmOptions {
3468
+ title?: string;
3469
+ description?: string;
3470
+ icon?: Component;
3471
+ iconColor?: string;
3472
+ acceptProps?: ConfirmDialogButtonProps;
3473
+ rejectProps?: ConfirmDialogButtonProps;
3474
+ accept?: () => void;
3475
+ reject?: () => void;
3476
+ }
3477
+
3478
+ export declare interface ConfirmService {
3479
+ require: (options: ConfirmOptions) => void;
3480
+ close: () => void;
3481
+ }
3482
+
3483
+ export declare const confirmService: ConfirmService;
3484
+
3485
+ export declare const ConfirmServiceKey: InjectionKey<ConfirmService>;
3486
+
3439
3487
  export { createColumnHelper }
3440
3488
 
3441
3489
  export declare const DataTable: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -4104,6 +4152,10 @@ export declare const priceFormat: (price: string | number, returnHtml?: boolean)
4104
4152
  }>;
4105
4153
 
4106
4154
  declare interface Props {
4155
+ state?: ConfirmOptions | null;
4156
+ }
4157
+
4158
+ declare interface Props_2 {
4107
4159
  disabled?: boolean;
4108
4160
  hourCycle?: 12 | 24;
4109
4161
  locale?: string;
@@ -4163,6 +4215,35 @@ export declare const Schedule: DefineComponent<__VLS_PublicProps_10, {}, {}, {},
4163
4215
  "onUpdate:modelValue"?: ((value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any) | undefined;
4164
4216
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4165
4217
 
4218
+ export declare const ScheduleMobile: DefineComponent<__VLS_PublicProps_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4219
+ "update:modelValue": (value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any;
4220
+ }, string, PublicProps, Readonly<__VLS_PublicProps_11> & Readonly<{
4221
+ "onUpdate:modelValue"?: ((value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any) | undefined;
4222
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
4223
+ scheduleMobileModal: CreateComponentPublicInstanceWithMixins<Readonly<{
4224
+ modelValue?: TShedule | null;
4225
+ }> & Readonly<{
4226
+ "onUpdate:modelValue"?: ((value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any) | undefined;
4227
+ }>, {
4228
+ open: () => void;
4229
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4230
+ "update:modelValue": (value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any;
4231
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
4232
+ P: {};
4233
+ B: {};
4234
+ D: {};
4235
+ C: {};
4236
+ M: {};
4237
+ Defaults: {};
4238
+ }, Readonly<{
4239
+ modelValue?: TShedule | null;
4240
+ }> & Readonly<{
4241
+ "onUpdate:modelValue"?: ((value: Partial<Record<TDayWeek, TDaySchedule>> | null) => any) | undefined;
4242
+ }>, {
4243
+ open: () => void;
4244
+ }, {}, {}, {}, {}> | null;
4245
+ }, HTMLDivElement>;
4246
+
4166
4247
  export declare const ScrollAreaRoot: __VLS_WithTemplateSlots_77<typeof __VLS_component_77, __VLS_TemplateResult_77["slots"]>;
4167
4248
 
4168
4249
  export declare const ScrollAreaScrollbar: DefineComponent<ScrollAreaScrollbarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ScrollAreaScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -4321,6 +4402,8 @@ export declare interface TTimeValue {
4321
4402
  minute: number;
4322
4403
  }
4323
4404
 
4405
+ export declare function useConfirm(): ConfirmService;
4406
+
4324
4407
  export declare function useToast(): {
4325
4408
  toasts: ComputedRef< {
4326
4409
  variant?: ToastVariant | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.400",
4
+ "version": "1.8.402",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",