@skyservice-developers/vue-dev-kit 2.5.6 → 2.5.7

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/README.md CHANGED
@@ -31,6 +31,9 @@ import {
31
31
  SkyCheckboxFilter,
32
32
  // sdk
33
33
  navigate, SkyserviceAPI, isInsideIframe,
34
+ // sky-service-ui-components
35
+ NotificationElement,
36
+ notificationModule, globalStore,
34
37
  } from '@skyservice-developers/vue-dev-kit'
35
38
  ```
36
39
 
@@ -704,6 +707,56 @@ Shell-контейнер для карток: ribbon / header / body / footer
704
707
 
705
708
  ---
706
709
 
710
+ ## sky-service-ui-components
711
+
712
+ Бібліотека re-export-ує весь публічний API пакета `sky-service-ui-components`. Окремо встановлювати його не потрібно — він вже входить у залежності `vue-dev-kit`.
713
+
714
+ ### NotificationElement (Web Component)
715
+
716
+ Кастомний HTML-елемент для відображення тостів. Реєструється автоматично при імпорті.
717
+
718
+ ```ts
719
+ import { NotificationElement } from '@skyservice-developers/vue-dev-kit'
720
+ ```
721
+
722
+ Додай елемент в `index.html` або кореневий компонент:
723
+
724
+ ```html
725
+ <notification-element id="my-notifications"></notification-element>
726
+ ```
727
+
728
+ ### notificationModule
729
+
730
+ Програмний API для показу тостів.
731
+
732
+ ```ts
733
+ import { notificationModule } from '@skyservice-developers/vue-dev-kit'
734
+
735
+ // Типи: default | success | error | warning | info | loading
736
+ await notificationModule.notify.success({ message: 'Збережено' })
737
+ await notificationModule.notify.error({ message: 'Помилка' })
738
+ await notificationModule.notify.warning({ message: 'Увага' })
739
+ await notificationModule.notify.info({ message: 'Підказка' })
740
+
741
+ const id = await notificationModule.notify.loading({ message: 'Завантаження...' })
742
+ // Прибрати конкретний тост
743
+ await notificationModule.notify.dismiss(id)
744
+ ```
745
+
746
+ Метод повертає `Promise<string | number | null>` — id тосту або `null` при помилці.
747
+
748
+ ### globalStore
749
+
750
+ Глобальний стор бібліотеки (Pinia store). Використовується внутрішньо `notificationModule`.
751
+
752
+ ```ts
753
+ import { globalStore } from '@skyservice-developers/vue-dev-kit'
754
+
755
+ const store = globalStore()
756
+ ```
757
+
758
+ ---
759
+
707
760
  ## Теміzація
708
761
 
709
762
  Всі компоненти підтримують кастомізацію через CSS змінні. Перевизначайте їх глобально або локально:
package/dist/index.d.ts CHANGED
@@ -2,3 +2,5 @@
2
2
  export * from './shared/ui';
3
3
  export * from './features';
4
4
  export * from './sdk';
5
+ export * from 'sky-service-ui-components';
6
+ export * from 'sky-service-ui-components/modules';