not-bulma 1.0.44 → 1.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -55,82 +55,82 @@
55
55
  "homepage": "https://github.com/interrupter/not-bulma#readme",
56
56
  "dependencies": {
57
57
  "babel-polyfill": "^6.26.0",
58
- "bulma": "^0.9.3",
58
+ "bulma": "^0.9.4",
59
59
  "bulma-pageloader": "*",
60
60
  "bulma-switch": "^2.0.4",
61
- "core-js": "^3.21.1",
62
- "mocha": "^9.2.2",
63
- "not-path": "^1.0.1",
64
- "not-validation": "^0.0.7",
65
- "regenerator-runtime": "^0.13.9",
61
+ "core-js": "^3.27.2",
62
+ "mocha": "^10.2.0",
63
+ "not-path": "^1.0.4",
64
+ "not-validation": "^0.0.8",
65
+ "regenerator-runtime": "^0.13.11",
66
66
  "simple-svelte-autocomplete": "*",
67
67
  "wolfy87-eventemitter": "^5.2.9"
68
68
  },
69
69
  "devDependencies": {
70
- "@babel/core": "^7.17.8",
71
- "@babel/plugin-proposal-class-properties": "^7.16.7",
72
- "@babel/plugin-proposal-private-methods": "^7.16.11",
73
- "@babel/plugin-transform-arrow-functions": "^7.16.7",
74
- "@babel/plugin-transform-runtime": "^7.17.0",
75
- "@babel/preset-env": "^7.16.11",
76
- "@cypress/code-coverage": "^3.9.12",
77
- "autoprefixer": "^10.4.4",
70
+ "@babel/core": "^7.20.12",
71
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
72
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
73
+ "@babel/plugin-transform-arrow-functions": "^7.20.7",
74
+ "@babel/plugin-transform-runtime": "^7.19.6",
75
+ "@babel/preset-env": "^7.20.2",
76
+ "@cypress/code-coverage": "^3.10.0",
77
+ "autoprefixer": "^10.4.13",
78
78
  "babel-cli": "^6.26.0",
79
79
  "babel-eslint": "^10.1.0",
80
- "babel-loader": "^8.2.4",
80
+ "babel-loader": "^9.1.2",
81
81
  "babel-plugin-istanbul": "^6.1.1",
82
82
  "connect-mongo": "^4.6.0",
83
83
  "connect-mongodb-session": "^3.1.1",
84
84
  "cors": "^2.8.5",
85
85
  "cypress": "*",
86
- "eslint": "^8.12.0",
87
- "eslint-plugin-storybook": "^0.5.7",
88
- "eslint-plugin-svelte3": "^3.4.1",
89
- "express": "^4.17.3",
90
- "express-fileupload": "^1.3.1",
91
- "express-session": "^1.17.2",
92
- "helmet": "^5.0.2",
86
+ "eslint": "^8.33.0",
87
+ "eslint-plugin-storybook": "^0.6.10",
88
+ "eslint-plugin-svelte3": "^4.0.0",
89
+ "express": "^4.18.2",
90
+ "express-fileupload": "^1.4.0",
91
+ "express-session": "^1.17.3",
92
+ "helmet": "^6.0.1",
93
93
  "ink-docstrap": "^1.3.2",
94
- "ioredis": "^5.0.3",
94
+ "ioredis": "^5.3.0",
95
95
  "istanbul": "^0.4.5",
96
96
  "istanbul-lib-coverage": "^3.2.0",
97
97
  "method-override": "^3.0.0",
98
- "mongodb-memory-server": "^8.4.2",
99
- "mongoose": "^6.2.9",
100
- "node-sass": "^7.0.1",
98
+ "mongodb-memory-server": "^8.11.4",
99
+ "mongoose": "^6.9.0",
100
+ "node-sass": "^8.0.0",
101
101
  "not-config": "^0.1.5",
102
- "not-error": "^0.2.5",
103
- "not-inform": "^0.0.27",
104
- "not-key": "0.0.54",
105
- "not-locale": "^0.0.20",
102
+ "not-error": "^0.2.9",
103
+ "not-inform": "^0.0.28",
104
+ "not-key": "0.0.64",
105
+ "not-locale": "^0.0.22",
106
106
  "not-log": "0.0.20",
107
- "not-node": "^5.0.1",
108
- "not-options": "^0.1.40",
109
- "not-user": "^0.2.89",
110
- "not-ws": "0.1.17",
107
+ "not-node": "^6.1.9",
108
+ "not-options": "^0.2.0",
109
+ "not-user": "^0.2.131",
110
+ "not-ws": "0.1.19",
111
111
  "npm-run-all": "^4.1.5",
112
112
  "nyc": "^15.1.0",
113
- "postcss-cli": "^9.1.0",
113
+ "postcss-cli": "^10.1.0",
114
114
  "pug-cli": "^1.0.0-alpha6",
115
- "redis": "^4.0.6",
116
- "rollup": "^2.70.1",
115
+ "redis": "^4.6.4",
116
+ "rollup": "^3.12.1",
117
117
  "rollup-plugin-babel": "^4.4.0",
118
118
  "rollup-plugin-commonjs": "^10.1.0",
119
119
  "rollup-plugin-eslint": "^7.0.0",
120
120
  "rollup-plugin-filesize": "^9.1.2",
121
- "rollup-plugin-istanbul": "^3.0.0",
121
+ "rollup-plugin-istanbul": "^4.0.0",
122
122
  "rollup-plugin-node-resolve": "^5.2.0",
123
123
  "rollup-plugin-postcss": "^4.0.2",
124
- "rollup-plugin-sass": "^1.2.12",
125
- "rollup-plugin-sizes": "^1.0.4",
124
+ "rollup-plugin-sass": "^1.12.17",
125
+ "rollup-plugin-sizes": "^1.0.5",
126
126
  "rollup-plugin-svelte": "^7.1.0",
127
- "sass": "^1.49.11",
128
- "sass-loader": "^12.6.0",
129
- "serve": "^13.0.2",
130
- "simple-svelte-autocomplete": "^2.3.9",
131
- "svelte": "^3.46.6",
132
- "svelte-loader": "^3.1.2",
133
- "terser": "^5.12.1"
127
+ "sass": "^1.58.0",
128
+ "sass-loader": "^13.2.0",
129
+ "serve": "^14.2.0",
130
+ "simple-svelte-autocomplete": "^2.5.1",
131
+ "svelte": "^3.55.1",
132
+ "svelte-loader": "^3.1.5",
133
+ "terser": "^5.16.2"
134
134
  },
135
135
  "nyc": {
136
136
  "include": [
@@ -1,13 +1,17 @@
1
- import UIColumn from './ui.column.svelte';
2
- import UIColumns from './ui.columns.svelte';
3
- import UIContainer from './ui.container.svelte';
4
- import UIFooter from './ui.footer.svelte';
5
- import UISection from './ui.section.svelte';
1
+ import UIColumn from "./ui.column.svelte";
2
+ import UIColumns from "./ui.columns.svelte";
3
+ import UIContainer from "./ui.container.svelte";
4
+ import UIFooter from "./ui.footer.svelte";
5
+ import UISection from "./ui.section.svelte";
6
+ import UILevelItem from "./ui.level.item.svelte";
7
+ import UILevel from "./ui.level.svelte";
6
8
 
7
9
  export {
8
- UIColumn,
9
- UIColumns,
10
- UIContainer,
11
- UIFooter,
12
- UISection,
10
+ UIColumn,
11
+ UIColumns,
12
+ UIContainer,
13
+ UIFooter,
14
+ UISection,
15
+ UILevelItem,
16
+ UILevel,
13
17
  };
@@ -0,0 +1,7 @@
1
+ <script>
2
+ export let tag = "div";
3
+ </script>
4
+
5
+ <svelte:element this={tag}>
6
+ <slot><!-- optional fallback --></slot>
7
+ </svelte:element>
@@ -0,0 +1,11 @@
1
+ <nav class="level">
2
+ <!-- Left side -->
3
+ <div class="level-left">
4
+ <slot name="left" />
5
+ </div>
6
+
7
+ <!-- Right side -->
8
+ <div class="level-right">
9
+ <slot name="right" />
10
+ </div>
11
+ </nav>
@@ -1,73 +1,70 @@
1
1
  <script>
2
- import notPath from 'not-path';
3
- import {
4
- onMount
5
- } from 'svelte';
2
+ import notPath from "not-path";
3
+ import { onMount } from "svelte";
6
4
 
7
- let title = '';
5
+ let title = "";
8
6
 
9
- onMount(() => {
10
- if (typeof field.type === 'undefined') {
11
- title = notPath.get(field.path, item, helpers);
12
- }
13
- });
7
+ onMount(() => {
8
+ if (typeof field.type === "undefined") {
9
+ title = notPath.get(field.path, item, helpers);
10
+ }
11
+ });
14
12
 
15
- import notCommon from '../../common';
13
+ import notCommon from "../../common";
16
14
 
17
- import {
18
- LOCALE
19
- } from '../../../locale';
15
+ import { LOCALE } from "../../../locale";
20
16
 
21
- import UIButtons from '../../../elements/button/ui.buttons.svelte';
22
- import UILinks from '../../../elements/link/ui.links.svelte';
23
- import UIImages from '../../../elements/image/ui.images.svelte';
24
- import UIBooleans from '../../../elements/various/ui.booleans.svelte';
17
+ import UIButtons from "../../../elements/button/ui.buttons.svelte";
18
+ import UILinks from "../../../elements/link/ui.links.svelte";
19
+ import UIImages from "../../../elements/image/ui.images.svelte";
20
+ import UIBooleans from "../../../elements/various/ui.booleans.svelte";
25
21
 
26
- import TableSwitch from './controls/ui.switch.svelte';
27
- import TableTags from './controls/ui.tags.svelte';
22
+ import TableSwitch from "./controls/ui.switch.svelte";
23
+ import TableTags from "./controls/ui.tags.svelte";
28
24
 
29
- export let getItemId = item => item._id;
30
- export let field = {};
31
- export let item = {};
32
- export let helpers = {};
25
+ export let getItemId = (item) => item._id;
26
+ export let field = {};
27
+ export let item = {};
28
+ export let helpers = {};
33
29
  </script>
34
30
 
35
- <td class="{field.hideOnMobile?'is-hidden-touch':''}" {title}>
36
- {#if field.type === 'link' }
37
- <UILinks values={ notPath.get(field.path, item, helpers) } />
38
- {:else if field.type === 'button' }
39
- <UIButtons values={ notPath.get(field.path, item, helpers) } />
40
- {:else if field.type === 'image' }
41
- <UIImages values={ notPath.get(field.path, item, helpers) } />
42
- {:else if field.type === 'boolean' }
43
- <UIBooleans values={ notPath.get(field.path, item, helpers) } />
44
- {:else if field.type === 'tag' }
45
- <TableTags values={ notPath.get(field.path, item, helpers) } />
46
- {:else if field.type === 'switch' }
47
- <TableSwitch
48
- id={getItemId(item)}
49
- fieldname={field.path}
50
- on:change="{field.onChange}"
51
- value={ notPath.get(field.path, item, helpers) }
52
- disabled={field.disabled}
53
- readonly={field.readonly}
54
- />
55
- {:else if field.type === 'component' }
56
- <svelte:component
57
- id={getItemId(item)}
58
- this={field.component}
59
- on:change="{field.onChange}"
60
- fieldname={field.path}
61
- disabled={field.disabled}
62
- readonly={field.readonly}
63
- value={ notPath.get(field.path, item, helpers) }
64
- {...field.options}
65
- />
66
- {:else}
67
- {#if !isNaN(field.maxLength) && field.maxLength }
68
- {notCommon.strLengthCap(notPath.get(field.path, item, helpers), field.maxLength)}
69
- {:else}
70
- {$LOCALE[notPath.get(field.path, item, helpers)]}
71
- {/if}
72
- {/if}
31
+ <td class={field.hideOnMobile ? "is-hidden-touch" : ""} {title}>
32
+ {#if field.type === "link"}
33
+ <UILinks values={notPath.get(field.path, item, helpers)} />
34
+ {:else if field.type === "button"}
35
+ <UIButtons values={notPath.get(field.path, item, helpers)} />
36
+ {:else if field.type === "image"}
37
+ <UIImages values={notPath.get(field.path, item, helpers)} />
38
+ {:else if field.type === "boolean"}
39
+ <UIBooleans values={notPath.get(field.path, item, helpers)} />
40
+ {:else if field.type === "tag"}
41
+ <TableTags values={notPath.get(field.path, item, helpers)} />
42
+ {:else if field.type === "switch"}
43
+ <TableSwitch
44
+ id={getItemId(item)}
45
+ fieldname={field.path}
46
+ on:change={field.onChange}
47
+ value={notPath.get(field.path, item, helpers)}
48
+ disabled={field.disabled}
49
+ readonly={field.readonly}
50
+ />
51
+ {:else if field.type === "component"}
52
+ <svelte:component
53
+ this={field.component}
54
+ id={getItemId(item)}
55
+ on:change={field.onChange}
56
+ fieldname={field.path}
57
+ disabled={field.disabled}
58
+ readonly={field.readonly}
59
+ value={notPath.get(field.path, item, helpers)}
60
+ {...field.options}
61
+ />
62
+ {:else if field && typeof field !== "undefined" && !isNaN(field.maxLength) && field.maxLength}
63
+ {notCommon.strLengthCap(
64
+ notPath.get(field.path, item, helpers),
65
+ field.maxLength
66
+ )}
67
+ {:else}
68
+ {$LOCALE[notPath.get(field.path, item, helpers)]}
69
+ {/if}
73
70
  </td>
@@ -47,27 +47,27 @@ import notCRUD from "./crud/controller.crud.js";
47
47
  const ncCRUD = notCRUD; //legacy alias
48
48
 
49
49
  export {
50
- notCommon,
51
- notPath,
52
- notController,
53
- notBase,
54
- notRouter,
55
- notRecord,
56
- notInterface,
57
- notApp,
58
- notAPI,
59
- notStores,
60
- notCRUD,
61
- ncCRUD,
62
50
  COMPONENTS,
63
51
  FIELDS,
64
- VARIANTS,
65
- notTable,
66
52
  UIForm,
53
+ VARIANTS,
54
+ ncCRUD,
55
+ notAPI,
56
+ notApp,
57
+ notBase,
58
+ notBreadcrumbs,
59
+ notCRUD,
60
+ notCommon,
61
+ notController,
67
62
  notForm,
68
63
  notFormSet,
69
64
  notFormUtils,
70
- notBreadcrumbs,
71
- notTopMenu,
65
+ notInterface,
66
+ notPath,
67
+ notRecord,
68
+ notRouter,
72
69
  notSideMenu,
70
+ notStores,
71
+ notTable,
72
+ notTopMenu,
73
73
  };