@ldmjs/ui 1.0.9 → 1.0.11

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
@@ -8,6 +8,8 @@
8
8
  "lodash-es": "4.17.21",
9
9
  "md-editor-v3": "4.15.6",
10
10
  "vue-toastification": "2.0.0-rc.5",
11
+ "@vuelidate/core": "2.0.2",
12
+ "@vuelidate/validators": "2.0.2",
11
13
 
12
14
  # Installation
13
15
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Vue } from 'vue-class-component';
2
- import { IEventBus } from './types/eventBus';
3
2
  import { ldmuiOptions } from './types/options';
4
3
  import { IToasted } from './types/toasted';
5
4
  import { IInput, IWatcher } from './types/validation';
@@ -45,7 +44,6 @@ declare class ValidateMixin extends Vue {
45
44
  validateSection: (section: number | string) => boolean;
46
45
  customValidateFunc: () => string | boolean;
47
46
  }
48
- declare const eventBus: IEventBus;
49
47
  declare const ValidateMixinOptions: Record<string, any>;
50
48
  declare const ldmui: {
51
49
  install(vue: any, options?: ldmuiOptions): void;
@@ -55,6 +53,6 @@ export default ldmui;
55
53
 
56
54
  export {
57
55
  ValidateMixin, ValidateMixinOptions, datetime, deepValueGetter, defaults, delay, getAliases,
58
- isDefined, isObjectEmpty, uidGen, urlRegexp, eventBus
56
+ isDefined, isObjectEmpty, uidGen, urlRegexp
59
57
  };
60
58
 
package/dist/index.js CHANGED
@@ -226,7 +226,6 @@ __webpack_require__.d(__webpack_exports__, {
226
226
  "default": () => (/* binding */ src),
227
227
  defaults: () => (/* reexport */ defaults),
228
228
  delay: () => (/* reexport */ delay),
229
- eventBus: () => (/* reexport */ eventBus),
230
229
  getAliases: () => (/* reexport */ getAliases),
231
230
  isDefined: () => (/* reexport */ isDefined),
232
231
  isObjectEmpty: () => (/* reexport */ isObjectEmpty),
@@ -9190,9 +9189,9 @@ function getNative(object, key) {
9190
9189
 
9191
9190
 
9192
9191
  /* Built-in method references that are verified to be native. */
9193
- var _Map_Map = _getNative(_root, 'Map');
9192
+ var Map = _getNative(_root, 'Map');
9194
9193
 
9195
- /* harmony default export */ const _Map = (_Map_Map);
9194
+ /* harmony default export */ const _Map = (Map);
9196
9195
 
9197
9196
  ;// CONCATENATED MODULE: ./node_modules/lodash-es/_nativeCreate.js
9198
9197
 
@@ -15172,69 +15171,6 @@ validate_mixin_decorate([
15172
15171
  ], ValidateMixin.prototype, "onErrorBagChanged", null);
15173
15172
  const ValidateMixinOptions = mixin;
15174
15173
 
15175
- ;// CONCATENATED MODULE: ./src/eventBus.ts
15176
- class EventBus {
15177
- constructor() {
15178
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
15179
- this.listeners = {};
15180
- this.once = [];
15181
- }
15182
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
15183
- $on(eventName, callback) {
15184
- if (eventName in this.listeners) {
15185
- this.listeners[eventName].push(callback);
15186
- }
15187
- else {
15188
- this.listeners[eventName] = [];
15189
- this.listeners[eventName].push(callback);
15190
- }
15191
- }
15192
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
15193
- $once(eventName, callback) {
15194
- this.$on(eventName, callback);
15195
- this.once.push(eventName);
15196
- }
15197
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
15198
- $off(eventName, callback) {
15199
- const map = new Map();
15200
- if (eventName in this.listeners) {
15201
- this.listeners[eventName].forEach((listener, index) => {
15202
- map.set(listener, index);
15203
- });
15204
- const index = map.get(callback);
15205
- /* eslint-disable-next-line no-undefined */
15206
- if (index !== undefined) {
15207
- this.listeners[eventName].splice(index, 1);
15208
- if (this.listeners[eventName]?.length === 0) {
15209
- delete this.listeners[eventName];
15210
- }
15211
- }
15212
- }
15213
- }
15214
- $flush() {
15215
- for (const key in this.listeners) {
15216
- this.listeners[key] = [];
15217
- }
15218
- this.listeners = {};
15219
- }
15220
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
15221
- $emit(eventName, ...args) {
15222
- if (eventName in this.listeners) {
15223
- this.listeners[eventName].forEach(listener => {
15224
- Function.prototype.apply.call(listener, this, args);
15225
- if (this.once.includes(eventName)) {
15226
- this.$off(eventName, listener);
15227
- this.once = this.once.filter(evName => evName !== eventName);
15228
- }
15229
- });
15230
- }
15231
- }
15232
- $has(eventName) {
15233
- return Boolean(eventName in this.listeners && this.listeners[eventName]);
15234
- }
15235
- }
15236
- const eventBus = new EventBus();
15237
-
15238
15174
  ;// CONCATENATED MODULE: ./src/vuetify.ts
15239
15175
  const aliases = {
15240
15176
  SmallButton: 'VBtn',
@@ -15324,7 +15260,6 @@ const ActiveDirectiveOptions = {
15324
15260
 
15325
15261
 
15326
15262
 
15327
-
15328
15263
 
15329
15264
 
15330
15265
  const ldmuiPlugin = {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
7
- "node": ">=16",
8
- "npm": ">=8"
7
+ "node": ">=18",
8
+ "npm": ">=9"
9
9
  },
10
10
  "scripts": {
11
11
  "dev": "cross-env NODE_ENV=development webpack serve --config config/webpack.config.dev.js --progress --profile --stats-error-details",
@@ -43,6 +43,7 @@
43
43
  "@babel/preset-env": "7.23.6",
44
44
  "@babel/preset-typescript": "7.23.3",
45
45
  "@floating-ui/dom": "^1.6.3",
46
+ "@ldmjs/core": "1.0.0",
46
47
  "@ldmjs/datatable": "1.0.6",
47
48
  "@popperjs/core": "^2.11.8",
48
49
  "@types/babel__core": "^7",
@@ -1,8 +0,0 @@
1
- export interface IEventBus {
2
- $on: (eventName: string, callback: (...args: any) => any) => void;
3
- $once: (eventName: string, callback: (...args: any) => any) => void;
4
- $off: (eventName: string, callback: (...args: any) => any) => void;
5
- $emit: (eventName: string, ...args: any) => void;
6
- $flush: () => void;
7
- $has: (eventName: string) => boolean;
8
- }