@das-fed/ui 6.4.0-dev.127 → 6.4.0-dev.128

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.
@@ -1,13 +1,47 @@
1
1
  import type { Props } from './type';
2
- declare const _default: import("vue").DefineComponent<Props, {
2
+ declare const fit: import("vue").Ref<"fill" | "none" | "contain" | "cover" | "scale-down" | undefined, "fill" | "none" | "contain" | "cover" | "scale-down" | undefined>, loadingText: string | import("vue").Ref<string | undefined, string | undefined>, error: boolean | import("vue").Ref<boolean, boolean>, errorText: string | import("vue").Ref<string | undefined, string | undefined>;
3
+ declare const playLoading: import("vue").Ref<any, any>;
4
+ declare const videoUrl: import("vue").ComputedRef<string>;
5
+ declare const video: import("vue").Ref<any, any>;
6
+ declare const loadingSpinner: import("vue").Ref<string, string>;
7
+ declare const loadingBackground: import("vue").Ref<string, string>;
8
+ declare const handleErrorClick: () => void;
9
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
+ declare var __VLS_1: {};
11
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ error?: (props: typeof __VLS_1) => any;
13
+ }>;
14
+ declare const __VLS_self: import("vue").DefineComponent<Props, {
15
+ fit: typeof fit;
16
+ loadingText: typeof loadingText;
17
+ error: typeof error;
18
+ errorText: typeof errorText;
19
+ playLoading: typeof playLoading;
20
+ videoUrl: typeof videoUrl;
21
+ video: typeof video;
22
+ loadingSpinner: typeof loadingSpinner;
23
+ loadingBackground: typeof loadingBackground;
24
+ handleErrorClick: typeof handleErrorClick;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
26
+ loaded: (player: any) => any;
27
+ errorClick: () => any;
28
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
29
+ onLoaded?: ((player: any) => any) | undefined;
30
+ onErrorClick?: (() => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
3
33
  video: import("vue").Ref<any, any>;
4
34
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
- error: (error: unknown) => any;
6
35
  loaded: (player: any) => any;
7
36
  errorClick: () => any;
8
37
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
- onError?: ((error: unknown) => any) | undefined;
10
38
  onLoaded?: ((player: any) => any) | undefined;
11
39
  onErrorClick?: (() => any) | undefined;
12
40
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
42
  export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -30,7 +30,4 @@ export interface Emits {
30
30
 
31
31
 
32
32
  (e: 'errorClick'): void
33
-
34
-
35
- (e: 'error', error: unknown): void
36
33
  }
@@ -1 +1 @@
1
- @charset "UTF-8";.test-video-dialog[data-v-0df9b6ba]{width:100%;height:100%;display:flex;flex-direction:column}.das-hls-player[data-v-0df9b6ba]{height:100%;width:100%;min-width:10px;min-height:10px;position:relative}.das-hls-player .video[data-v-0df9b6ba]{width:100%;height:100%;object-fit:fill;background:red}.das-hls-player .error[data-v-0df9b6ba]{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#409eff;font-size:12px;cursor:pointer;background:var(--42a695fa)}.das-hls-player .landscape[data-v-0df9b6ba]{transform:rotate(90deg)!important;transform-origin:left top;width:100vh;height:100vw;overflow:hidden;position:fixed;top:0;left:0}.das-hls-player .player[data-v-0df9b6ba]{position:relative;width:100%;height:100%;object-fit:fill;background:#fff;z-index:0}.das-hls-player .fake-gif[data-v-0df9b6ba]{position:absolute;width:100%;height:100%;z-index:1;display:flex;justify-content:center;align-items:center}.das-hls-player .fake-gif.native[data-v-0df9b6ba]{pointer-events:none}.das-hls-player .fake-gif .preview-img[data-v-0df9b6ba]{width:172px;height:48px}.das-hls-player .fake-gif .player-btn[data-v-0df9b6ba]{width:56px;height:50px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;z-index:2}video[data-v-0df9b6ba]{width:100%;height:auto;max-height:100vh}.error-message[data-v-0df9b6ba]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;background:#000000b3;padding:1rem;border-radius:4px}video[data-v-0df9b6ba]::-webkit-media-controls-fullscreen-button{display:none!important}video[data-v-0df9b6ba]::-webkit-media-controls{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-enclosure{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-panel{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-play-button{display:none!important}video[data-v-0df9b6ba]::-webkit-media-controls-play-button{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-timeline{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-current-time-display{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-time-remaining-display{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-mute-button{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-volume-slider{display:none!important}.player[data-v-0df9b6ba]::-webkit-media-controls-fullscreen-button{display:none!important}.no-controls[data-v-0df9b6ba]::-webkit-media-controls{display:none!important}.no-controls[data-v-0df9b6ba]::-webkit-media-controls-enclosure{display:none!important}
1
+ .das-hls-player[data-v-e9fc879c]{height:100%;width:100%;min-width:10px;min-height:10px;position:relative}.das-hls-player .video[data-v-e9fc879c]{width:100%;height:100%;object-fit:fill;background:#000}.das-hls-player .error[data-v-e9fc879c]{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#409eff;font-size:12px;cursor:pointer;background:var(--64905d4c)}.das-hls-player .landscape[data-v-e9fc879c]{transform:rotate(90deg)!important;transform-origin:left top;width:100vh;height:100vw;overflow:hidden;position:fixed;top:0;left:0}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-enclosure{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-panel{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-play-button{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-timeline{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-current-time-display{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-time-remaining-display{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-mute-button{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-volume-slider{display:none!important}.das-hls-player .player[data-v-e9fc879c]::-webkit-media-controls-fullscreen-button{display:none!important}.das-hls-player .no-controls[data-v-e9fc879c]::-webkit-media-controls{display:none!important}.das-hls-player .no-controls[data-v-e9fc879c]::-webkit-media-controls-enclosure{display:none!important}.das-hls-player .player[data-v-e9fc879c]{position:relative;width:100%;height:100%;object-fit:fill;background:#000}
@@ -8,6 +8,8 @@ declare const DasMenuHeader: import("@das-fed/utils").SFCWithInstall<{
8
8
  menus: {
9
9
  code: string;
10
10
  name: string;
11
+ closable?: boolean;
12
+ [key: string]: any;
11
13
  }[];
12
14
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
13
15
  P: {};
@@ -23,6 +25,8 @@ declare const DasMenuHeader: import("@das-fed/utils").SFCWithInstall<{
23
25
  menus: {
24
26
  code: string;
25
27
  name: string;
28
+ closable?: boolean;
29
+ [key: string]: any;
26
30
  }[];
27
31
  }>;
28
32
  __isFragment?: never;
@@ -37,6 +41,8 @@ declare const DasMenuHeader: import("@das-fed/utils").SFCWithInstall<{
37
41
  menus: {
38
42
  code: string;
39
43
  name: string;
44
+ closable?: boolean;
45
+ [key: string]: any;
40
46
  }[];
41
47
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
42
48
  $slots: {
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/ui/packages/components/menu-header/style.css';
2
2
  import { withInstall as b } from "@das-fed/utils/with-install/index";
3
- import { computed as h, defineComponent as y, createElementBlock as n, openBlock as l, normalizeStyle as g, normalizeClass as v, createVNode as p, unref as s, mergeProps as k, withCtx as u, Fragment as j, renderList as _, createBlock as D, withDirectives as E, createTextVNode as H, toDisplayString as T, createElementVNode as F, renderSlot as i } from "vue";
3
+ import { computed as h, defineComponent as y, createElementBlock as n, openBlock as l, normalizeStyle as g, normalizeClass as v, createVNode as p, unref as s, mergeProps as k, withCtx as u, Fragment as j, renderList as _, createBlock as D, withDirectives as E, createTextVNode as H, toDisplayString as T, createElementVNode as c, renderSlot as F } from "vue";
4
4
  import { Tabs as x, TabPane as B } from "ant-design-vue";
5
5
  import "ant-design-vue/es/tabs/style/css";
6
6
  import { vDasTooltip as C } from "@das-fed/ui/packages/components/text-tooltip/index";
@@ -13,7 +13,7 @@ const w = (e, m) => ({
13
13
  let o;
14
14
  return e.height && (o = $(e.height)), o;
15
15
  })
16
- }), c = {
16
+ }), i = {
17
17
  "--das-ui-layout-header-menu-border-color": {
18
18
  kjl: "3C81E0",
19
19
  cjb: "#D9D9D9",
@@ -73,9 +73,9 @@ const w = (e, m) => ({
73
73
  setup(e, { emit: m }) {
74
74
  const a = e, { realHeight: o } = w(a), f = h(() => {
75
75
  const t = {};
76
- return a.theme === "default" || Object.keys(c).forEach((d) => {
76
+ return a.theme === "default" || Object.keys(i).forEach((d) => {
77
77
  var r;
78
- t[d] = ((r = c[d]) == null ? void 0 : r[a.theme]) ?? void 0;
78
+ t[d] = ((r = i[d]) == null ? void 0 : r[a.theme]) ?? void 0;
79
79
  }), t;
80
80
  });
81
81
  return (t, d) => (l(), n(
@@ -92,42 +92,37 @@ const w = (e, m) => ({
92
92
  hideAdd: !0
93
93
  }), {
94
94
  leftExtra: u(() => [
95
- F("div", N, [
96
- i(t.$slots, "header-left")
95
+ c("div", N, [
96
+ F(t.$slots, "header-left")
97
97
  ])
98
98
  ]),
99
99
  rightExtra: u(() => [
100
- F("div", V, [
101
- i(t.$slots, "header-right")
100
+ c("div", V, [
101
+ F(t.$slots, "header-right")
102
102
  ])
103
103
  ]),
104
104
  default: u(() => [
105
105
  (l(!0), n(
106
106
  j,
107
107
  null,
108
- _(t.menus, (r) => (l(), D(
109
- s(B),
110
- {
111
- key: r.code
112
- },
113
- {
114
- tab: u(() => [
115
- E((l(), n("div", M, [
116
- H(
117
- T(r.name),
118
- 1
119
- /* TEXT */
120
- )
121
- ])), [
122
- [s(C)]
123
- ])
124
- ]),
125
- _: 2
126
- /* DYNAMIC */
127
- },
128
- 1024
129
- /* DYNAMIC_SLOTS */
130
- ))),
108
+ _(t.menus, (r) => (l(), D(s(B), {
109
+ key: r.code,
110
+ closable: r.closable
111
+ }, {
112
+ tab: u(() => [
113
+ E((l(), n("div", M, [
114
+ H(
115
+ T(r.name),
116
+ 1
117
+ /* TEXT */
118
+ )
119
+ ])), [
120
+ [s(C)]
121
+ ])
122
+ ]),
123
+ _: 2
124
+ /* DYNAMIC */
125
+ }, 1032, ["closable"]))),
131
126
  128
132
127
  /* KEYED_FRAGMENT */
133
128
  ))
@@ -9,6 +9,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {},
9
9
  menus: {
10
10
  code: string;
11
11
  name: string;
12
+ closable?: boolean;
13
+ [key: string]: any;
12
14
  }[];
13
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
14
16
  'header-left'?: ((props: {}) => any) | undefined;
@@ -1,7 +1,12 @@
1
1
  export interface Props {
2
2
  theme?: 'default' | 'kjl' | 'cjb' | 'ssl'
3
3
  height?: string | number
4
- menus: { code: string; name: string }[]
4
+ menus: {
5
+ code: string
6
+ name: string
7
+ closable?: boolean
8
+ [key: string]: any
9
+ }[]
5
10
  }
6
11
 
7
12
  export interface Emits {
@@ -29,7 +29,7 @@ declare const DasSelectList: import("@das-fed/utils").SFCWithInstall<{
29
29
  selectdValue: string | number;
30
30
  valueKey: string;
31
31
  labelKey: string;
32
- closeable: boolean;
32
+ closeable: boolean | ((item: import("./src/type.js").ItemProps) => boolean);
33
33
  customTitle: string;
34
34
  itemHeight: number;
35
35
  infiniteDisabled: boolean;
@@ -60,7 +60,7 @@ declare const DasSelectList: import("@das-fed/utils").SFCWithInstall<{
60
60
  selectdValue: string | number;
61
61
  valueKey: string;
62
62
  labelKey: string;
63
- closeable: boolean;
63
+ closeable: boolean | ((item: import("./src/type.js").ItemProps) => boolean);
64
64
  customTitle: string;
65
65
  itemHeight: number;
66
66
  infiniteDisabled: boolean;
@@ -96,7 +96,7 @@ declare const DasSelectList: import("@das-fed/utils").SFCWithInstall<{
96
96
  selectdValue: string | number;
97
97
  valueKey: string;
98
98
  labelKey: string;
99
- closeable: boolean;
99
+ closeable: boolean | ((item: import("./src/type.js").ItemProps) => boolean);
100
100
  customTitle: string;
101
101
  itemHeight: number;
102
102
  infiniteDisabled: boolean;