@v1nt1248/3nclient-lib 0.2.33 → 0.2.34

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 (51) hide show
  1. package/README.md +2 -0
  2. package/dist/components/ui3n-dialog/types.d.ts +1 -1
  3. package/dist/components/ui3n-editable/types.d.ts +1 -1
  4. package/dist/components/ui3n-editable/ui3n-editable.vue.d.ts +1 -1
  5. package/dist/components/ui3n-editable/useContentEditable.d.ts +1 -1
  6. package/dist/directives/index.d.ts +2 -1
  7. package/dist/directives/ui3n-long-press.d.ts +27 -0
  8. package/dist/index.d.ts +3 -2
  9. package/dist/style.css +1 -1
  10. package/dist/types/directives.types.d.ts +7 -0
  11. package/dist/types/index.d.ts +3 -0
  12. package/dist/ui3n-components.d.ts +3 -1
  13. package/dist/ui3n-components.js +3902 -3845
  14. package/dist/ui3n-plugins.d.ts +1 -2
  15. package/dist/ui3n-plugins.js +2 -2
  16. package/dist/ui3n-utils.js +154 -144
  17. package/dist/utils/files/create-video-thumbnail.d.ts +1 -1
  18. package/dist/utils/for-vue/try-on-scope-dispose.d.ts +2 -0
  19. package/dist/utils/for-vue/unref-element.d.ts +2 -0
  20. package/dist/utils/index.d.ts +3 -1
  21. package/package.json +18 -13
  22. package/src/components/ui3n-autocomplete/ui3n-autocomplete.vue +32 -9
  23. package/src/components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue +14 -14
  24. package/src/components/ui3n-button/ui3n-button.vue +229 -226
  25. package/src/components/ui3n-checkbox/ui3n-checkbox.vue +30 -7
  26. package/src/components/ui3n-chip/ui3n-chip.vue +113 -109
  27. package/src/components/ui3n-dialog/types.ts +1 -1
  28. package/src/components/ui3n-dialog/ui3n-dialog.vue +7 -8
  29. package/src/components/ui3n-editable/types.ts +1 -1
  30. package/src/components/ui3n-editable/ui3n-editable.vue +34 -12
  31. package/src/components/ui3n-editable/useContentEditable.ts +6 -3
  32. package/src/components/ui3n-icon/ui3n-icon.vue +1 -1
  33. package/src/components/ui3n-input/ui3n-input.vue +272 -273
  34. package/src/components/ui3n-input-file/ui3n-input-file.vue +2 -2
  35. package/src/components/ui3n-list/ui3n-list.vue +70 -60
  36. package/src/components/ui3n-menu/ui3n-menu.vue +1 -1
  37. package/src/components/ui3n-notification/ui3n-notification.vue +4 -1
  38. package/src/components/ui3n-progress/ui3n-progress-circular.vue +168 -147
  39. package/src/components/ui3n-progress/ui3n-progress-linear.vue +77 -73
  40. package/src/components/ui3n-radio-group/ui3n-radio.vue +178 -177
  41. package/src/components/ui3n-step-line-bar/ui3n-step-line-bar.vue +50 -46
  42. package/src/components/ui3n-switch/ui3n-switch.vue +114 -116
  43. package/src/components/ui3n-table/composables/useTable.ts +17 -9
  44. package/src/components/ui3n-table/ui3n-table-sort-icon.vue +9 -6
  45. package/src/components/ui3n-table/ui3n-table.vue +7 -5
  46. package/src/components/ui3n-text/ui3n-text.vue +157 -215
  47. package/src/components/ui3n-tooltip/ui3n-tooltip.vue +4 -5
  48. package/src/components/types/index.ts +0 -15
  49. /package/dist/{components/types/index.d.ts → types/components.types.d.ts} +0 -0
  50. /package/dist/{plugins/types.d.ts → types/plugins.types.d.ts} +0 -0
  51. /package/dist/utils/{for-we3n.d.ts → for-web3n.d.ts} +0 -0
package/README.md CHANGED
@@ -33,6 +33,7 @@ You can run the project as `pnpm dev` or `npm run dev`.
33
33
  - Ui3nTable
34
34
  - Ui3nTabs
35
35
  - Ui3nText
36
+ - Ui3nTooltip
36
37
  - Ui3nVirtualScroll
37
38
 
38
39
  ### Directives
@@ -41,6 +42,7 @@ You can run the project as `pnpm dev` or `npm run dev`.
41
42
  - Ui3nResize
42
43
  - Ui3nRipple
43
44
  - Ui3nTitle
45
+ - Ui3nLongPress
44
46
 
45
47
  ### Plugins
46
48
  - i18n
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ExtractComponentProps, Ui3nIconField } from '../types/index';
2
+ import { ExtractComponentProps, Ui3nIconField } from '../../types/index';
3
3
  export type Ui3nDialogEvent = 'open' | 'before-close' | 'close' | 'confirm' | 'cancel' | 'click-overlay';
4
4
  export interface Ui3nDialogProps {
5
5
  id?: string;
@@ -1,4 +1,4 @@
1
- import { Nullable } from '../types';
1
+ import { Nullable } from '../../types';
2
2
  export interface Ui3nContentEditableProps {
3
3
  modelValue: string;
4
4
  placeholder?: string;
@@ -1,5 +1,5 @@
1
1
  import { Ui3nEditableProps } from './types';
2
- import { Nullable } from '../types';
2
+ import { Nullable } from '../../types';
3
3
  declare const _default: import('vue').DefineComponent<Ui3nEditableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
4
4
  done: () => any;
5
5
  cancel: () => any;
@@ -1,4 +1,4 @@
1
- import { Nullable } from '../types';
1
+ import { Nullable } from '../../types';
2
2
  import { Ui3nContentEditableEmits, Ui3nContentEditableProps } from './types';
3
3
  export declare function useContentEditable(props: Ui3nContentEditableProps, emits: Ui3nContentEditableEmits): {
4
4
  el: import('vue').Ref<Nullable<HTMLElement>, Nullable<HTMLElement>>;
@@ -3,4 +3,5 @@ import { default as Ui3nClickOutside } from './ui3n-click-outside';
3
3
  import { default as Ui3nResize, Ui3nResizeCbArg } from './ui3n-resize';
4
4
  import { default as Ui3nRipple } from './ui3n-ripple';
5
5
  import { default as Ui3nTitle } from './ui3n-title';
6
- export { Ui3nHtml, Ui3nClickOutside, Ui3nResize, Ui3nRipple, Ui3nTitle, Ui3nResizeCbArg };
6
+ import { default as Ui3nLongPress } from './ui3n-long-press';
7
+ export { Ui3nHtml, Ui3nClickOutside, Ui3nResize, Ui3nRipple, Ui3nTitle, Ui3nLongPress, Ui3nResizeCbArg };
@@ -0,0 +1,27 @@
1
+ import { ObjectDirective } from 'vue';
2
+ export type Ui3nLongPressBindingValue = {
3
+ handler: (event: PointerEvent) => void;
4
+ delay?: number;
5
+ distanceThreshold?: number;
6
+ onMouseUpCb?: (event: PointerEvent) => void;
7
+ };
8
+ export interface Ui3nLongPressModifiers {
9
+ stop?: boolean;
10
+ prevent?: boolean;
11
+ self?: boolean;
12
+ capture?: boolean;
13
+ once?: boolean;
14
+ passive?: boolean;
15
+ }
16
+ interface ExtendedDirective extends ObjectDirective<HTMLElement, Ui3nLongPressBindingValue> {
17
+ pointerdownEvent: (event: PointerEvent) => void;
18
+ pointerupEvent: (event: PointerEvent) => void;
19
+ pointermoveEvent: (event: PointerEvent) => void;
20
+ timeout: ReturnType<typeof setTimeout> | null;
21
+ posStart: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ }
26
+ declare const ui3nLongPress: ExtendedDirective;
27
+ export default ui3nLongPress;
package/dist/index.d.ts CHANGED
@@ -34,15 +34,15 @@ import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
34
34
  import { default as Ui3nResize } from './directives/ui3n-resize';
35
35
  import { default as Ui3nRipple } from './directives/ui3n-ripple';
36
36
  import { default as Ui3nTitle } from './directives/ui3n-title';
37
+ import { default as Ui3nLongPress } from './directives/ui3n-long-press';
37
38
  import { VueEventBus } from './plugins/vue-bus/types';
38
39
  import { DialogInstance } from './plugins/dialogs/types';
39
40
  export * from './constants';
40
41
  export * from './utils';
41
42
  export * from './plugins';
42
- export * from './plugins/types';
43
43
  export * from './directives';
44
44
  export * from './components';
45
- export * from './components/types';
45
+ export * from './types';
46
46
  declare module 'vue' {
47
47
  interface ComponentCustomProperties {
48
48
  $openDialog: <T extends Component>(params: Ui3nDialogComponentProps<T>) => DialogInstance | undefined;
@@ -90,6 +90,7 @@ declare module 'vue' {
90
90
  Ui3nResize: typeof Ui3nResize;
91
91
  Ui3nRipple: typeof Ui3nRipple;
92
92
  Ui3nTitle: typeof Ui3nTitle;
93
+ Ui3nLongPress: typeof Ui3nLongPress;
93
94
  }
94
95
  }
95
96
  declare module 'pinia' {