@namba_one/ui-kit-2 1.0.296 → 1.0.297

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { ComponentOptionsMixin } from 'vue';
8
8
  import { ComponentProvideOptions } from 'vue';
9
9
  import { ComponentPublicInstance } from 'vue';
10
10
  import { ComputedRef } from 'vue';
11
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
11
12
  import { DebuggerEvent } from 'vue';
12
13
  import { DefineComponent } from 'vue';
13
14
  import { ExtractPropTypes } from 'vue';
@@ -742,6 +743,97 @@ declare const __VLS_component_52: DefineComponent< {}, {}, {}, {}, {}, Compon
742
743
 
743
744
  declare const __VLS_component_53: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
744
745
 
746
+ declare const __VLS_component_54: DefineComponent< {}, {
747
+ open: () => void | undefined;
748
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
749
+ refModal: CreateComponentPublicInstanceWithMixins<Readonly<ModalLeavePageConfirmationProps> & Readonly<{
750
+ onCancel?: (() => any) | undefined;
751
+ onConfirm?: (() => any) | undefined;
752
+ }>, {
753
+ close: () => void;
754
+ toggle: () => void;
755
+ open: () => void;
756
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
757
+ cancel: () => any;
758
+ confirm: () => any;
759
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
760
+ ModalLeavePageConfirmation: ({
761
+ $: ComponentInternalInstance;
762
+ $data: {};
763
+ $props: {
764
+ readonly isShowOverlay?: boolean | undefined;
765
+ readonly onClose?: (() => any) | undefined;
766
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
767
+ $attrs: {
768
+ [x: string]: unknown;
769
+ };
770
+ $refs: {
771
+ [x: string]: unknown;
772
+ };
773
+ $slots: Readonly<{
774
+ [name: string]: Slot<any> | undefined;
775
+ }>;
776
+ $root: ComponentPublicInstance | null;
777
+ $parent: ComponentPublicInstance | null;
778
+ $host: Element | null;
779
+ $emit: (event: "close") => void;
780
+ $el: any;
781
+ $options: ComponentOptionsBase<Readonly<DynamicVisibleAreaProps> & Readonly<{
782
+ onClose?: (() => any) | undefined;
783
+ }>, {
784
+ close: () => void;
785
+ toggle: () => void;
786
+ open: () => void;
787
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
788
+ close: () => any;
789
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
790
+ beforeCreate?: (() => void) | (() => void)[];
791
+ created?: (() => void) | (() => void)[];
792
+ beforeMount?: (() => void) | (() => void)[];
793
+ mounted?: (() => void) | (() => void)[];
794
+ beforeUpdate?: (() => void) | (() => void)[];
795
+ updated?: (() => void) | (() => void)[];
796
+ activated?: (() => void) | (() => void)[];
797
+ deactivated?: (() => void) | (() => void)[];
798
+ beforeDestroy?: (() => void) | (() => void)[];
799
+ beforeUnmount?: (() => void) | (() => void)[];
800
+ destroyed?: (() => void) | (() => void)[];
801
+ unmounted?: (() => void) | (() => void)[];
802
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
803
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
804
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
805
+ };
806
+ $forceUpdate: () => void;
807
+ $nextTick: nextTick;
808
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
809
+ } & Readonly<{}> & Omit<Readonly<DynamicVisibleAreaProps> & Readonly<{
810
+ onClose?: (() => any) | undefined;
811
+ }>, "close" | "toggle" | "open"> & ShallowUnwrapRef< {
812
+ close: () => void;
813
+ toggle: () => void;
814
+ open: () => void;
815
+ }> & {} & ComponentCustomProperties & {} & {
816
+ $slots: {
817
+ default?(_: {}): any;
818
+ };
819
+ }) | null;
820
+ }, any, ComponentProvideOptions, {
821
+ P: {};
822
+ B: {};
823
+ D: {};
824
+ C: {};
825
+ M: {};
826
+ Defaults: {};
827
+ }, Readonly<ModalLeavePageConfirmationProps> & Readonly<{
828
+ onCancel?: (() => any) | undefined;
829
+ onConfirm?: (() => any) | undefined;
830
+ }>, {
831
+ close: () => void;
832
+ toggle: () => void;
833
+ open: () => void;
834
+ }, {}, {}, {}, {}> | null;
835
+ }, HTMLDivElement>;
836
+
745
837
  declare const __VLS_component_6: DefineComponent<ChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
746
838
  click: () => any;
747
839
  delete: () => any;
@@ -2027,6 +2119,102 @@ declare function __VLS_template_53(): {
2027
2119
  rootEl: any;
2028
2120
  };
2029
2121
 
2122
+ declare function __VLS_template_54(): {
2123
+ attrs: Partial<{}>;
2124
+ slots: {
2125
+ default?(_: {}): any;
2126
+ };
2127
+ refs: {
2128
+ refModal: CreateComponentPublicInstanceWithMixins<Readonly<ModalLeavePageConfirmationProps> & Readonly<{
2129
+ onCancel?: (() => any) | undefined;
2130
+ onConfirm?: (() => any) | undefined;
2131
+ }>, {
2132
+ close: () => void;
2133
+ toggle: () => void;
2134
+ open: () => void;
2135
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2136
+ cancel: () => any;
2137
+ confirm: () => any;
2138
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
2139
+ ModalLeavePageConfirmation: ({
2140
+ $: ComponentInternalInstance;
2141
+ $data: {};
2142
+ $props: {
2143
+ readonly isShowOverlay?: boolean | undefined;
2144
+ readonly onClose?: (() => any) | undefined;
2145
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
2146
+ $attrs: {
2147
+ [x: string]: unknown;
2148
+ };
2149
+ $refs: {
2150
+ [x: string]: unknown;
2151
+ };
2152
+ $slots: Readonly<{
2153
+ [name: string]: Slot<any> | undefined;
2154
+ }>;
2155
+ $root: ComponentPublicInstance | null;
2156
+ $parent: ComponentPublicInstance | null;
2157
+ $host: Element | null;
2158
+ $emit: (event: "close") => void;
2159
+ $el: any;
2160
+ $options: ComponentOptionsBase<Readonly<DynamicVisibleAreaProps> & Readonly<{
2161
+ onClose?: (() => any) | undefined;
2162
+ }>, {
2163
+ close: () => void;
2164
+ toggle: () => void;
2165
+ open: () => void;
2166
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2167
+ close: () => any;
2168
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
2169
+ beforeCreate?: (() => void) | (() => void)[];
2170
+ created?: (() => void) | (() => void)[];
2171
+ beforeMount?: (() => void) | (() => void)[];
2172
+ mounted?: (() => void) | (() => void)[];
2173
+ beforeUpdate?: (() => void) | (() => void)[];
2174
+ updated?: (() => void) | (() => void)[];
2175
+ activated?: (() => void) | (() => void)[];
2176
+ deactivated?: (() => void) | (() => void)[];
2177
+ beforeDestroy?: (() => void) | (() => void)[];
2178
+ beforeUnmount?: (() => void) | (() => void)[];
2179
+ destroyed?: (() => void) | (() => void)[];
2180
+ unmounted?: (() => void) | (() => void)[];
2181
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2182
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2183
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
2184
+ };
2185
+ $forceUpdate: () => void;
2186
+ $nextTick: nextTick;
2187
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
2188
+ } & Readonly<{}> & Omit<Readonly<DynamicVisibleAreaProps> & Readonly<{
2189
+ onClose?: (() => any) | undefined;
2190
+ }>, "close" | "toggle" | "open"> & ShallowUnwrapRef< {
2191
+ close: () => void;
2192
+ toggle: () => void;
2193
+ open: () => void;
2194
+ }> & {} & ComponentCustomProperties & {} & {
2195
+ $slots: {
2196
+ default?(_: {}): any;
2197
+ };
2198
+ }) | null;
2199
+ }, any, ComponentProvideOptions, {
2200
+ P: {};
2201
+ B: {};
2202
+ D: {};
2203
+ C: {};
2204
+ M: {};
2205
+ Defaults: {};
2206
+ }, Readonly<ModalLeavePageConfirmationProps> & Readonly<{
2207
+ onCancel?: (() => any) | undefined;
2208
+ onConfirm?: (() => any) | undefined;
2209
+ }>, {
2210
+ close: () => void;
2211
+ toggle: () => void;
2212
+ open: () => void;
2213
+ }, {}, {}, {}, {}> | null;
2214
+ };
2215
+ rootEl: HTMLDivElement;
2216
+ };
2217
+
2030
2218
  declare function __VLS_template_6(): {
2031
2219
  attrs: Partial<{}>;
2032
2220
  slots: {
@@ -2163,6 +2351,8 @@ declare type __VLS_TemplateResult_52 = ReturnType<typeof __VLS_template_52>;
2163
2351
 
2164
2352
  declare type __VLS_TemplateResult_53 = ReturnType<typeof __VLS_template_53>;
2165
2353
 
2354
+ declare type __VLS_TemplateResult_54 = ReturnType<typeof __VLS_template_54>;
2355
+
2166
2356
  declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
2167
2357
 
2168
2358
  declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
@@ -2465,6 +2655,12 @@ declare type __VLS_WithTemplateSlots_53<T, S> = T & {
2465
2655
  };
2466
2656
  };
2467
2657
 
2658
+ declare type __VLS_WithTemplateSlots_54<T, S> = T & {
2659
+ new (): {
2660
+ $slots: S;
2661
+ };
2662
+ };
2663
+
2468
2664
  declare type __VLS_WithTemplateSlots_6<T, S> = T & {
2469
2665
  new (): {
2470
2666
  $slots: S;
@@ -4037,6 +4233,89 @@ export declare type ModalConfirmationProps = {
4037
4233
  isLoading?: boolean;
4038
4234
  };
4039
4235
 
4236
+ export declare const ModalLeavePageConfirmation: DefineComponent<ModalLeavePageConfirmationProps, {
4237
+ close: () => void;
4238
+ toggle: () => void;
4239
+ open: () => void;
4240
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4241
+ cancel: () => any;
4242
+ confirm: () => any;
4243
+ }, string, PublicProps, Readonly<ModalLeavePageConfirmationProps> & Readonly<{
4244
+ onCancel?: (() => any) | undefined;
4245
+ onConfirm?: (() => any) | undefined;
4246
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
4247
+ ModalLeavePageConfirmation: ({
4248
+ $: ComponentInternalInstance;
4249
+ $data: {};
4250
+ $props: {
4251
+ readonly isShowOverlay?: boolean | undefined;
4252
+ readonly onClose?: (() => any) | undefined;
4253
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
4254
+ $attrs: {
4255
+ [x: string]: unknown;
4256
+ };
4257
+ $refs: {
4258
+ [x: string]: unknown;
4259
+ };
4260
+ $slots: Readonly<{
4261
+ [name: string]: Slot<any> | undefined;
4262
+ }>;
4263
+ $root: ComponentPublicInstance | null;
4264
+ $parent: ComponentPublicInstance | null;
4265
+ $host: Element | null;
4266
+ $emit: (event: "close") => void;
4267
+ $el: any;
4268
+ $options: ComponentOptionsBase<Readonly<DynamicVisibleAreaProps> & Readonly<{
4269
+ onClose?: (() => any) | undefined;
4270
+ }>, {
4271
+ close: () => void;
4272
+ toggle: () => void;
4273
+ open: () => void;
4274
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4275
+ close: () => any;
4276
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
4277
+ beforeCreate?: (() => void) | (() => void)[];
4278
+ created?: (() => void) | (() => void)[];
4279
+ beforeMount?: (() => void) | (() => void)[];
4280
+ mounted?: (() => void) | (() => void)[];
4281
+ beforeUpdate?: (() => void) | (() => void)[];
4282
+ updated?: (() => void) | (() => void)[];
4283
+ activated?: (() => void) | (() => void)[];
4284
+ deactivated?: (() => void) | (() => void)[];
4285
+ beforeDestroy?: (() => void) | (() => void)[];
4286
+ beforeUnmount?: (() => void) | (() => void)[];
4287
+ destroyed?: (() => void) | (() => void)[];
4288
+ unmounted?: (() => void) | (() => void)[];
4289
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
4290
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
4291
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
4292
+ };
4293
+ $forceUpdate: () => void;
4294
+ $nextTick: nextTick;
4295
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
4296
+ } & Readonly<{}> & Omit<Readonly<DynamicVisibleAreaProps> & Readonly<{
4297
+ onClose?: (() => any) | undefined;
4298
+ }>, "close" | "toggle" | "open"> & ShallowUnwrapRef< {
4299
+ close: () => void;
4300
+ toggle: () => void;
4301
+ open: () => void;
4302
+ }> & {} & ComponentCustomProperties & {} & {
4303
+ $slots: {
4304
+ default?(_: {}): any;
4305
+ };
4306
+ }) | null;
4307
+ }, any>;
4308
+
4309
+ export declare type ModalLeavePageConfirmationEmits = {
4310
+ (event: 'cancel'): void;
4311
+ (event: 'confirm'): void;
4312
+ };
4313
+
4314
+ export declare type ModalLeavePageConfirmationProps = {
4315
+ title: string;
4316
+ description: string;
4317
+ };
4318
+
4040
4319
  export declare type ModalProps = {};
4041
4320
 
4042
4321
  export declare const MultiInputField: DefineComponent<__VLS_PublicProps_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -4322,6 +4601,17 @@ export declare type PageInfoCellTableSkeletonProps = {
4322
4601
  labelColor?: PageInfoCellProps['labelColor'];
4323
4602
  };
4324
4603
 
4604
+ export declare const PageLeaveHandlerConfirmModal: __VLS_WithTemplateSlots_54<typeof __VLS_component_54, __VLS_TemplateResult_54["slots"]>;
4605
+
4606
+ export declare type PageLeaveHandlerProvider = {
4607
+ open: (params: {
4608
+ description: string;
4609
+ title: string;
4610
+ resolve: () => void;
4611
+ reject: () => void;
4612
+ }) => void;
4613
+ };
4614
+
4325
4615
  export declare type PageListHeaderProps = {};
4326
4616
 
4327
4617
  export declare const PageOverlay: __VLS_WithTemplateSlots_50<typeof __VLS_component_50, __VLS_TemplateResult_50["slots"]>;
@@ -5205,6 +5495,18 @@ export declare const useModalContext: () => {
5205
5495
  close: DynamicVisibleAreaProvider;
5206
5496
  };
5207
5497
 
5498
+ export declare function usePageLeaveHandler({ description, title, }: {
5499
+ description: string;
5500
+ title: string;
5501
+ }): {
5502
+ onChangeSomeData: () => void;
5503
+ reset: () => void;
5504
+ };
5505
+
5506
+ export declare function usePageLeaveHandlerInject(): PageLeaveHandlerProvider;
5507
+
5508
+ export declare function usePageLeaveHandlerProvider(config: PageLeaveHandlerProvider): void;
5509
+
5208
5510
  export declare const UserRow: DefineComponent<UserRowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5209
5511
  click: (e: Event) => any;
5210
5512
  }, string, PublicProps, Readonly<UserRowProps> & Readonly<{