@ldmjs/ui 1.0.7 → 1.0.8

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
@@ -7,6 +7,7 @@
7
7
  "vue-screen-utils": "1.0.0-beta.13",
8
8
  "lodash-es": "4.17.21",
9
9
  "md-editor-v3": "4.15.6",
10
+ "vue-toastification": "2.0.0-rc.5",
10
11
 
11
12
  # Installation
12
13
 
@@ -33,6 +34,7 @@ import '@ldmjs/ui/dist/scss';
33
34
  import 'vuetify/styles';
34
35
  import 'material-design-icons-iconfont/dist/material-design-icons.css';
35
36
  import 'md-editor-v3/lib/style.css';
37
+ import 'vue-toastification/dist/index.css';
36
38
  import ldmui from '@ldmjs/ui';
37
39
  ```
38
40
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { ldmuiOptions } from './types/options'
2
- import { IInput, IWatcher } from './types/validation';
3
1
  import { Vue } from 'vue-class-component';
2
+ import { ldmuiOptions } from './types/options';
3
+ import { IToasted } from './types/toasted';
4
+ import { IInput, IWatcher } from './types/validation';
4
5
 
5
6
  declare module '@vue/runtime-core' {
6
7
  export interface ComponentCustomProperties {
@@ -12,8 +13,9 @@ declare module '@vue/runtime-core' {
12
13
  isObjectEmpty(obj: Record<string, unknown>): boolean;
13
14
  };
14
15
  $ldmui: {
15
- options: ldmuiOptions
16
- }
16
+ options: ldmuiOptions;
17
+ },
18
+ $toasted: IToasted;
17
19
  }
18
20
  }
19
21
 
@@ -52,15 +54,8 @@ declare const ldmui: {
52
54
  export default ldmui;
53
55
 
54
56
  export {
55
- defaults,
56
- getAliases,
57
- isDefined,
58
- delay,
59
- uidGen,
60
- deepValueGetter,
61
- isObjectEmpty,
62
- urlRegexp,
63
- datetime,
64
57
  ValidateMixin,
65
- ValidateMixinOptions
66
- }
58
+ ValidateMixinOptions, datetime, deepValueGetter, defaults, delay, getAliases,
59
+ isDefined, isObjectEmpty, uidGen, urlRegexp
60
+ };
61
+
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("./calendar.js"), require("./floating.js"), require("./imask.js"), require("./multiselect.js"), require("./runtime-template.js"), require("@vuelidate/validators"), require("markdown-it"), require("md-editor-v3"), require("vue"), require("vue-class-component"), require("vue-property-decorator"));
3
+ module.exports = factory(require("./calendar.js"), require("./floating.js"), require("./imask.js"), require("./multiselect.js"), require("./runtime-template.js"), require("@vuelidate/validators"), require("markdown-it"), require("md-editor-v3"), require("vue"), require("vue-class-component"), require("vue-property-decorator"), require("vue-toastification"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["./calendar.js", "./floating.js", "./imask.js", "./multiselect.js", "./runtime-template.js", "@vuelidate/validators", "markdown-it", "md-editor-v3", "vue", "vue-class-component", "vue-property-decorator"], factory);
5
+ define(["./calendar.js", "./floating.js", "./imask.js", "./multiselect.js", "./runtime-template.js", "@vuelidate/validators", "markdown-it", "md-editor-v3", "vue", "vue-class-component", "vue-property-decorator", "vue-toastification"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["ldmui"] = factory(require("./calendar.js"), require("./floating.js"), require("./imask.js"), require("./multiselect.js"), require("./runtime-template.js"), require("@vuelidate/validators"), require("markdown-it"), require("md-editor-v3"), require("vue"), require("vue-class-component"), require("vue-property-decorator"));
7
+ exports["ldmui"] = factory(require("./calendar.js"), require("./floating.js"), require("./imask.js"), require("./multiselect.js"), require("./runtime-template.js"), require("@vuelidate/validators"), require("markdown-it"), require("md-editor-v3"), require("vue"), require("vue-class-component"), require("vue-property-decorator"), require("vue-toastification"));
8
8
  else
9
- root["ldmui"] = factory(root["./calendar.js"], root["./floating.js"], root["./imask.js"], root["./multiselect.js"], root["./runtime-template.js"], root["@vuelidate/validators"], root["markdown-it"], root["md-editor-v3"], root["vue"], root["vue-class-component"], root["vue-property-decorator"]);
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__4634__, __WEBPACK_EXTERNAL_MODULE__3654__, __WEBPACK_EXTERNAL_MODULE__6135__, __WEBPACK_EXTERNAL_MODULE__9225__, __WEBPACK_EXTERNAL_MODULE__119__, __WEBPACK_EXTERNAL_MODULE__887__, __WEBPACK_EXTERNAL_MODULE__8461__, __WEBPACK_EXTERNAL_MODULE__6443__, __WEBPACK_EXTERNAL_MODULE__2380__, __WEBPACK_EXTERNAL_MODULE__9299__, __WEBPACK_EXTERNAL_MODULE__5070__) => {
9
+ root["ldmui"] = factory(root["./calendar.js"], root["./floating.js"], root["./imask.js"], root["./multiselect.js"], root["./runtime-template.js"], root["@vuelidate/validators"], root["markdown-it"], root["md-editor-v3"], root["vue"], root["vue-class-component"], root["vue-property-decorator"], root["vue-toastification"]);
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__4634__, __WEBPACK_EXTERNAL_MODULE__3654__, __WEBPACK_EXTERNAL_MODULE__6135__, __WEBPACK_EXTERNAL_MODULE__9225__, __WEBPACK_EXTERNAL_MODULE__119__, __WEBPACK_EXTERNAL_MODULE__887__, __WEBPACK_EXTERNAL_MODULE__8461__, __WEBPACK_EXTERNAL_MODULE__6443__, __WEBPACK_EXTERNAL_MODULE__2380__, __WEBPACK_EXTERNAL_MODULE__9299__, __WEBPACK_EXTERNAL_MODULE__5070__, __WEBPACK_EXTERNAL_MODULE__7982__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
@@ -106,6 +106,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9299__;
106
106
 
107
107
  module.exports = __WEBPACK_EXTERNAL_MODULE__5070__;
108
108
 
109
+ /***/ }),
110
+
111
+ /***/ 7982:
112
+ /***/ ((module) => {
113
+
114
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7982__;
115
+
109
116
  /***/ })
110
117
 
111
118
  /******/ });
@@ -14822,6 +14829,9 @@ function ld_switch_reg(vue, options) {
14822
14829
  }
14823
14830
  /* harmony default export */ const src_ld_switch = (ld_switch_reg);
14824
14831
 
14832
+ // EXTERNAL MODULE: external "vue-toastification"
14833
+ var external_vue_toastification_ = __webpack_require__(7982);
14834
+ var external_vue_toastification_default = /*#__PURE__*/__webpack_require__.n(external_vue_toastification_);
14825
14835
  ;// CONCATENATED MODULE: ./src/utils/delay.ts
14826
14836
  async function delay(timeout) {
14827
14837
  return new Promise(resolve => setTimeout(() => resolve(), timeout));
@@ -15249,6 +15259,7 @@ const ActiveDirectiveOptions = {
15249
15259
 
15250
15260
 
15251
15261
 
15262
+
15252
15263
 
15253
15264
 
15254
15265
  const ldmuiPlugin = {
@@ -15296,6 +15307,17 @@ const ldmuiPlugin = {
15296
15307
  }
15297
15308
  };
15298
15309
  vue.directive('active', ActiveDirectiveOptions);
15310
+ const toastedOptions = {
15311
+ position: external_vue_toastification_.POSITION.BOTTOM_RIGHT,
15312
+ timeout: 5000,
15313
+ draggable: false,
15314
+ newestOnTop: true,
15315
+ pauseOnFocusLoss: false,
15316
+ pauseOnHover: false
15317
+ };
15318
+ vue.use((external_vue_toastification_default()), toastedOptions);
15319
+ const toast = (0,external_vue_toastification_.useToast)();
15320
+ vue.config.globalProperties.$toasted = toast;
15299
15321
  src_ld_icon(vue, options);
15300
15322
  src_ld_loader(vue, options);
15301
15323
  src_ld_button(vue, options);
@@ -0,0 +1,15 @@
1
+ .Vue-Toastification__toast--success {
2
+ background: var(--success);
3
+ }
4
+
5
+ .Vue-Toastification__toast--error {
6
+ background: var(--error-l-2);
7
+ }
8
+
9
+ .Vue-Toastification__toast--warning {
10
+ background: var(--warning-l-2);
11
+ }
12
+
13
+ .Vue-Toastification__toast--info {
14
+ background: var(--primary-l-4);
15
+ }
@@ -8,3 +8,4 @@
8
8
  @import 'calendar';
9
9
  @import 'toolbar';
10
10
  @import 'multiselect';
11
+ @import 'toasted';
@@ -0,0 +1,6 @@
1
+ export interface IToasted {
2
+ success: (content: string) => void;
3
+ info: (content: string) => void;
4
+ error: (content: string) => void;
5
+ warning: (content: string) => void;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -89,6 +89,7 @@
89
89
  "vue-loader": "17.3.1",
90
90
  "vue-property-decorator": "10.0.0-rc.3",
91
91
  "vue-screen-utils": "1.0.0-beta.13",
92
+ "vue-toastification": "2.0.0-rc.5",
92
93
  "vuetify": "3.6.8",
93
94
  "webpack": "5.92.0",
94
95
  "webpack-cli": "5.1.4",