@ouestfrance/sipa-bms-ui 8.21.0 → 8.22.0

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.
@@ -0,0 +1,24 @@
1
+ interface Props {
2
+ opacityWhenVisible?: number;
3
+ }
4
+ type __VLS_Props = Props;
5
+ type __VLS_PublicProps = {
6
+ modelValue?: boolean;
7
+ } & __VLS_Props;
8
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: boolean) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
+ }>, {
13
+ opacityWhenVisible: number;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ ghost: HTMLDivElement;
16
+ }, HTMLDivElement>, {
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -14,13 +14,13 @@ type __VLS_PublicProps = {
14
14
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  select: (option: InputOption) => any;
16
16
  input: (e: InputEvent) => any;
17
- addNewOption: (newOption: string) => any;
18
17
  "update:modelValue": (value: string) => any;
18
+ addNewOption: (newOption: string) => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
20
  onSelect?: ((option: InputOption) => any) | undefined;
21
21
  onInput?: ((e: InputEvent) => any) | undefined;
22
- onAddNewOption?: ((newOption: string) => any) | undefined;
23
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
+ onAddNewOption?: ((newOption: string) => any) | undefined;
24
24
  }>, {
25
25
  open: boolean;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -15,12 +15,12 @@ type __VLS_PublicProps = {
15
15
  } & __VLS_Props;
16
16
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
17
  select: (option: InputOption) => any;
18
- addNewOption: (newOption: string) => any;
19
18
  "update:modelValue": (value: string) => any;
19
+ addNewOption: (newOption: string) => any;
20
20
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
21
  onSelect?: ((option: InputOption) => any) | undefined;
22
- onAddNewOption?: ((newOption: string) => any) | undefined;
23
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
+ onAddNewOption?: ((newOption: string) => any) | undefined;
24
24
  }>, {
25
25
  open: boolean;
26
26
  request: (abortController: AbortController, inputValue?: string | undefined, url?: string | undefined) => Promise<{
@@ -20,19 +20,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
20
20
  blur: () => any;
21
21
  click: () => any;
22
22
  focus: () => any;
23
- addNewOption: (newOption: string) => any;
24
23
  "update:modelValue": (value: string | null) => any;
24
+ addNewOption: (newOption: string) => any;
25
25
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
26
  onSelect?: ((option: InputOption) => any) | undefined;
27
27
  onInput?: ((e: InputEvent) => any) | undefined;
28
28
  onBlur?: (() => any) | undefined;
29
29
  onClick?: (() => any) | undefined;
30
30
  onFocus?: (() => any) | undefined;
31
- onAddNewOption?: ((newOption: string) => any) | undefined;
32
31
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
32
+ onAddNewOption?: ((newOption: string) => any) | undefined;
33
33
  }>, {
34
- canAddNewOption: boolean;
35
34
  modelValue: string | null;
35
+ canAddNewOption: boolean;
36
36
  open: boolean;
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
38
  rawInput: ({
@@ -1,5 +1,13 @@
1
+ export type Placement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
1
2
  type __VLS_Props = {
2
3
  title: string;
4
+ defaultPlacement?: Placement;
5
+ expandable?: boolean;
6
+ expandedWidth?: string;
7
+ expandedHeight?: string;
8
+ expandTarget?: string;
9
+ width?: string;
10
+ height?: string;
3
11
  };
4
12
  type __VLS_PublicProps = {
5
13
  modelValue?: boolean;
@@ -8,7 +16,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
8
16
  "update:modelValue": (value: boolean) => any;
9
17
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
18
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
19
+ }>, {
20
+ height: string;
21
+ width: string;
22
+ defaultPlacement: Placement;
23
+ expandable: boolean;
24
+ expandedWidth: string;
25
+ expandedHeight: string;
26
+ expandTarget: string;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
+ wrapperRef: HTMLDivElement;
29
+ windowRef: HTMLDivElement;
30
+ }, HTMLDivElement>, {
12
31
  default?(_: {}): any;
13
32
  }>;
14
33
  export default _default;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { default as BmsAlert } from './components/feedback/BmsAlert.vue';
5
5
  import { default as BmsBadge } from './components/feedback/BmsBadge.vue';
6
6
  import { default as BmsCaption } from './components/feedback/BmsCaption.vue';
7
7
  import { default as BmsCircularProgress } from './components/feedback/BmsCircularProgress.vue';
8
+ import { default as BmsGhost } from './components/feedback/BmsGhost.vue';
8
9
  import { default as BmsLoader } from './components/feedback/BmsLoader.vue';
9
10
  import { default as BmsTooltip } from './components/feedback/BmsTooltip.vue';
10
11
  import { default as BmsAutocomplete } from './components/form/BmsAutocomplete.vue';
@@ -74,4 +75,4 @@ export * from './plugins/confirm';
74
75
  export * from './plugins/runtime-env';
75
76
  export * from './plugins/router-history';
76
77
  export * from './services';
77
- export { BmsButton, BmsIconButton, BmsAlert, BmsBadge, BmsCaption, BmsCircularProgress, BmsLoader, BmsTooltip, BmsAutocomplete, BmsServerAutocomplete, BmsBetweenInput, BmsChip, BmsFilePicker, BmsInputBooleanCheckbox, BmsInputCheckboxGroup, BmsInputCheckboxCaption, BmsInputCheckboxCaptionGroup, BmsInputCode, BmsInputDateTime, BmsInputFile, BmsInputNumber, BmsInputRadio, BmsInputRadioGroup, BmsInputRadioCaption, BmsInputRadioCaptionGroup, BmsInputText, BmsInputToggle, BmsMultiSelect, BmsSearch, BmsSelect, BmsTag, BmsTextArea, BmsContentPageLayout, BmsCard, BmsFloatingWindow, BmsForm, BmsHeader, BmsHeaderTitle, BmsModal, BmsOverlay, BmsSection, BmsSplitWindow, BmsStep, BmsStepper, BmsBackButton, BmsBreadcrumb, BmsFixedMenu, BmsLink, BmsMenu, BmsMenuNav, BmsShortLinkMenu, BmsTabs, BmsTenantSwitcher, BmsDraggableList, BmsEmptyScreen, BmsPagination, BmsServerTable, BmsTable, BmsCocarde, BmsProblem, BmsRelativeTime, };
78
+ export { BmsButton, BmsIconButton, BmsAlert, BmsBadge, BmsCaption, BmsCircularProgress, BmsGhost, BmsLoader, BmsTooltip, BmsAutocomplete, BmsServerAutocomplete, BmsBetweenInput, BmsChip, BmsFilePicker, BmsInputBooleanCheckbox, BmsInputCheckboxGroup, BmsInputCheckboxCaption, BmsInputCheckboxCaptionGroup, BmsInputCode, BmsInputDateTime, BmsInputFile, BmsInputNumber, BmsInputRadio, BmsInputRadioGroup, BmsInputRadioCaption, BmsInputRadioCaptionGroup, BmsInputText, BmsInputToggle, BmsMultiSelect, BmsSearch, BmsSelect, BmsTag, BmsTextArea, BmsContentPageLayout, BmsCard, BmsFloatingWindow, BmsForm, BmsHeader, BmsHeaderTitle, BmsModal, BmsOverlay, BmsSection, BmsSplitWindow, BmsStep, BmsStepper, BmsBackButton, BmsBreadcrumb, BmsFixedMenu, BmsLink, BmsMenu, BmsMenuNav, BmsShortLinkMenu, BmsTabs, BmsTenantSwitcher, BmsDraggableList, BmsEmptyScreen, BmsPagination, BmsServerTable, BmsTable, BmsCocarde, BmsProblem, BmsRelativeTime, };
@@ -394,6 +394,14 @@
394
394
  }
395
395
  .circular-progress svg circle[data-v-7869acfb] {
396
396
  transition: stroke-dashoffset 0.2s ease-in-out;
397
+ }.bms-ghost[data-v-205789ac] {
398
+ position: fixed;
399
+ top: var(--ghost-y, 0);
400
+ left: var(--ghost-x, 0);
401
+ z-index: 1000;
402
+ pointer-events: none;
403
+ user-select: none;
404
+ transition: opacity 0.2s ease-in-out;
397
405
  }.bms-loader[data-v-7cc96135] {
398
406
  font-size: var(--v71df0f7a);
399
407
  color: var(--bms-main-100, currentColor);
@@ -403,7 +411,7 @@
403
411
  width: 1em;
404
412
  height: 1em;
405
413
  display: block;
406
- }.bms-tooltip__text[data-v-bf923418] {
414
+ }.bms-tooltip__text[data-v-4ae8c6bb] {
407
415
  --bms-tooltip-background-color: white;
408
416
  --bms-tooltip-color: inherit;
409
417
  --bms-tooltip-margin: 4px;
@@ -422,7 +430,10 @@
422
430
  transform: var(--bms-tooltip-transform);
423
431
  overflow-wrap: break-word;
424
432
  }
425
- .bms-tooltip__text[data-v-bf923418]::before {
433
+ .bms-tooltip__text.floating-window__expand-btn__bms-tooltip[data-v-4ae8c6bb] {
434
+ z-index: calc(var(--bms-z-index-modal) + 1);
435
+ }
436
+ .bms-tooltip__text[data-v-4ae8c6bb]::before {
426
437
  content: "";
427
438
  position: absolute;
428
439
  right: var(--bms-tooltip-indicator-position-right);
@@ -434,56 +445,56 @@
434
445
  border-style: solid;
435
446
  border-color: var(--bms-tooltip-indicator-border);
436
447
  }
437
- .bms-tooltip__text--top[data-v-bf923418], .bms-tooltip__text--bottom[data-v-bf923418] {
448
+ .bms-tooltip__text--top[data-v-4ae8c6bb], .bms-tooltip__text--bottom[data-v-4ae8c6bb] {
438
449
  --bms-tooltip-indicator-position-left: 50%;
439
450
  --bms-tooltip-indicator-position-right: initial;
440
451
  }
441
- .bms-tooltip__text--bottom[data-v-bf923418] {
452
+ .bms-tooltip__text--bottom[data-v-4ae8c6bb] {
442
453
  --bms-tooltip-indicator-position-top: initial;
443
454
  --bms-tooltip-indicator-position-bottom: 100%;
444
455
  --bms-tooltip-indicator-border: transparent transparent
445
456
  var(--bms-tooltip-background-color) transparent;
446
457
  }
447
- .bms-tooltip__text--top[data-v-bf923418] {
458
+ .bms-tooltip__text--top[data-v-4ae8c6bb] {
448
459
  --bms-tooltip-indicator-position-top: 100%;
449
460
  --bms-tooltip-indicator-position-bottom: initial;
450
461
  --bms-tooltip-indicator-border: var(--bms-tooltip-background-color)
451
462
  transparent transparent transparent;
452
463
  }
453
- .bms-tooltip__text--left[data-v-bf923418], .bms-tooltip__text--right[data-v-bf923418] {
464
+ .bms-tooltip__text--left[data-v-4ae8c6bb], .bms-tooltip__text--right[data-v-4ae8c6bb] {
454
465
  --bms-tooltip-indicator-position-top: 50%;
455
466
  --bms-tooltip-indicator-position-bottom: initial;
456
467
  }
457
- .bms-tooltip__text--left[data-v-bf923418] {
468
+ .bms-tooltip__text--left[data-v-4ae8c6bb] {
458
469
  --bms-tooltip-indicator-position-right: initial;
459
470
  --bms-tooltip-indicator-position-left: 100%;
460
471
  --bms-tooltip-indicator-border: transparent transparent transparent
461
472
  var(--bms-tooltip-background-color);
462
473
  }
463
- .bms-tooltip__text--right[data-v-bf923418] {
474
+ .bms-tooltip__text--right[data-v-4ae8c6bb] {
464
475
  --bms-tooltip-indicator-position-right: 100%;
465
476
  --bms-tooltip-indicator-position-left: initial;
466
477
  --bms-tooltip-indicator-border: transparent
467
478
  var(--bms-tooltip-background-color) transparent transparent;
468
479
  }
469
- .tooltip-fade-enter-active[data-v-bf923418] {
480
+ .tooltip-fade-enter-active[data-v-4ae8c6bb] {
470
481
  transition: opacity 0.2s ease;
471
482
  }
472
- .tooltip-fade-enter-from[data-v-bf923418] {
483
+ .tooltip-fade-enter-from[data-v-4ae8c6bb] {
473
484
  opacity: 0;
474
485
  }
475
- .tooltip-fade-enter-to[data-v-bf923418] {
486
+ .tooltip-fade-enter-to[data-v-4ae8c6bb] {
476
487
  opacity: 1;
477
488
  }
478
- .tooltip-fade-leave-active[data-v-bf923418] {
489
+ .tooltip-fade-leave-active[data-v-4ae8c6bb] {
479
490
  transition: opacity 0.3s ease;
480
491
  }
481
- .tooltip-fade-leave-from[data-v-bf923418] {
492
+ .tooltip-fade-leave-from[data-v-4ae8c6bb] {
482
493
  opacity: 1;
483
494
  }
484
- .tooltip-fade-leave-to[data-v-bf923418] {
495
+ .tooltip-fade-leave-to[data-v-4ae8c6bb] {
485
496
  opacity: 0;
486
- }.bms-tooltip-anchor-wrapper[data-v-b033f8af] {
497
+ }.bms-tooltip-anchor-wrapper[data-v-5c0e03ac] {
487
498
  position: relative;
488
499
  display: inline-block;
489
500
  outline: none;
@@ -1415,7 +1426,7 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
1415
1426
  position: absolute;
1416
1427
  border-radius: 50%;
1417
1428
  filter: blur(10px);
1418
- }.floating-window-wrapper[data-v-fdb4e567] {
1429
+ }.floating-window-wrapper[data-v-3023af4c] {
1419
1430
  --breakpoint: 900px;
1420
1431
  container-name: floating-window;
1421
1432
  container-type: inline-size;
@@ -1429,35 +1440,62 @@ input[type=radio][data-v-c0c9efa3]:checked::before {
1429
1440
  align-items: center;
1430
1441
  pointer-events: none;
1431
1442
  }
1432
- .floating-window-wrapper .floating-window[data-v-fdb4e567] {
1443
+ .floating-window-wrapper .floating-window__drag-overlay[data-v-3023af4c] {
1444
+ position: fixed;
1445
+ top: 0;
1446
+ left: 0;
1447
+ width: 100vw;
1448
+ height: 100vh;
1449
+ z-index: var(--bms-z-index-modal);
1450
+ pointer-events: all;
1451
+ cursor: grabbing;
1452
+ }
1453
+ .floating-window-wrapper .floating-window[data-v-3023af4c] {
1433
1454
  background-color: var(--bms-white);
1434
- height: 100%;
1435
- width: 100%;
1436
1455
  border-radius: var(--bms-border-radius-large);
1437
1456
  border: 1px solid var(--bms-grey-10);
1438
1457
  pointer-events: all;
1439
1458
  display: grid;
1440
1459
  grid-template-rows: auto 1fr;
1441
- box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.25);
1460
+ box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.25);
1442
1461
  z-index: var(--bms-z-index-modal);
1462
+ transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
1463
+ }
1464
+ .floating-window-wrapper .floating-window--expanded[data-v-3023af4c] {
1465
+ border-radius: 0;
1466
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
1467
+ }
1468
+ .floating-window-wrapper .floating-window--expanded .floating-window__header[data-v-3023af4c] {
1469
+ cursor: default;
1470
+ }
1471
+ .floating-window-wrapper .floating-window--expanded .floating-window__header[data-v-3023af4c]:active {
1472
+ cursor: default;
1443
1473
  }
1444
- .floating-window-wrapper .floating-window__header[data-v-fdb4e567] {
1474
+ .floating-window-wrapper .floating-window--dragging[data-v-3023af4c] {
1475
+ transition: none;
1476
+ }
1477
+ .floating-window-wrapper .floating-window__header[data-v-3023af4c] {
1445
1478
  display: flex;
1446
1479
  justify-content: space-between;
1447
1480
  align-items: center;
1448
1481
  border-bottom: 1px solid var(--bms-grey-10);
1449
- padding: 1em;
1482
+ padding: 0.5em;
1483
+ cursor: grab;
1484
+ user-select: none;
1485
+ }
1486
+ .floating-window-wrapper .floating-window__header[data-v-3023af4c]:active {
1487
+ cursor: grabbing;
1450
1488
  }
1451
- .floating-window-wrapper .floating-window__header h2[data-v-fdb4e567] {
1489
+ .floating-window-wrapper .floating-window__header__title[data-v-3023af4c] {
1452
1490
  margin: 0;
1453
1491
  }
1454
- .floating-window-wrapper .floating-window__content[data-v-fdb4e567] {
1492
+ .floating-window-wrapper .floating-window__content[data-v-3023af4c] {
1455
1493
  overflow-y: auto;
1456
1494
  height: auto;
1457
1495
  scrollbar-width: thin;
1458
1496
  }
1459
1497
  @container floating-window (min-width:900px) {
1460
- .floating-window[data-v-fdb4e567] {
1498
+ .floating-window[data-v-3023af4c] {
1461
1499
  max-height: 300px;
1462
1500
  max-width: 80%;
1463
1501
  }