@bbn/bbn 1.0.357 → 1.0.359

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/dist/fn/init.js CHANGED
@@ -89,7 +89,7 @@ export default function init(cfg, force) {
89
89
  addColors(bbn.var.colors);
90
90
  }
91
91
  if (bbn.env.lang && undefined !== dayjs) {
92
- import('dayjs/locale/fr.js').then(function () {
92
+ import('dayjs/locale/' + bbn.env.lang + '.js').then(function () {
93
93
  dayjs.locale(bbn.env.lang);
94
94
  });
95
95
  }
@@ -102,7 +102,6 @@ export default function init(cfg, force) {
102
102
  }
103
103
  });
104
104
  document.addEventListener("focusin", function (e) {
105
- bbn.fn.log("FOCUS IN", e);
106
105
  if (e.target instanceof HTMLElement &&
107
106
  !e.target.classList.contains("bbn-no")) {
108
107
  bbn.env.focused = e.target;
package/dist/index.js CHANGED
@@ -53,7 +53,75 @@ var bbn = {
53
53
  var: vars,
54
54
  env: env,
55
55
  db: db,
56
- fn: fn
56
+ fn: fn,
57
+ info: [
58
+ {
59
+ value: 'ajax',
60
+ label: 'Loading and streaming',
61
+ description: 'Functions related to Ajax requests',
62
+ icon: 'nf nf-fa-rocket',
63
+ }, {
64
+ value: 'browser',
65
+ label: 'Browser-only',
66
+ description: 'Functions that can only be run in the browser',
67
+ icon: 'nf nf-fa-desktop',
68
+ }, {
69
+ value: 'convert',
70
+ label: 'Conversion',
71
+ description: 'Functions related to data conversion',
72
+ icon: 'nf nf-fa-exchange',
73
+ }, {
74
+ value: 'datetime',
75
+ label: 'Date and time',
76
+ description: 'Functions related to dates and times',
77
+ icon: 'nf nf-fa-calendar',
78
+ }, {
79
+ value: 'form',
80
+ label: 'Form manipulation',
81
+ description: 'Functions related to form manipulation and validation',
82
+ icon: 'nf nf-fa-edit',
83
+ }, {
84
+ value: 'html',
85
+ label: 'HTML manipulation',
86
+ description: 'Functions related to HTML manipulation and DOM interaction',
87
+ icon: 'nf nf-fa-html5',
88
+ }, {
89
+ value: 'loop',
90
+ label: 'Looping',
91
+ description: 'Functions related to looping through arrays and objects',
92
+ icon: 'nf nf-fa-repeat',
93
+ }, {
94
+ value: 'misc',
95
+ label: 'Miscellaneous',
96
+ description: 'Miscellaneous functions that do not fit into other categories',
97
+ icon: 'nf nf-fa-cubes',
98
+ }, {
99
+ value: 'object',
100
+ label: 'Object manipulation',
101
+ description: 'Functions related to object manipulation and inspection',
102
+ icon: 'nf nf-fa-object_group',
103
+ }, {
104
+ value: 'phone',
105
+ label: 'Phone and contact',
106
+ description: 'Functions related to phone numbers and contact information',
107
+ icon: 'nf nf-fa-phone',
108
+ }, {
109
+ value: 'string',
110
+ label: 'String manipulation',
111
+ description: 'Functions related to string manipulation and formatting',
112
+ icon: 'nf nf-fa-text_height'
113
+ }, {
114
+ value: 'style',
115
+ label: 'Styling and layout',
116
+ description: 'Functions related to styling and layout management',
117
+ icon: 'nf nf-fa-paint_brush',
118
+ }, {
119
+ value: 'type',
120
+ label: 'Type checking',
121
+ description: 'Functions related to type checking and validation',
122
+ icon: 'nf nf-fa-check_square',
123
+ }
124
+ ]
57
125
  };
58
126
  if ('undefined' !== typeof window) {
59
127
  window.axios = axios;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.357",
3
+ "version": "1.0.359",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",