@emuanalytics/flow-rdf-ui 0.0.36 → 0.0.38

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/index.cjs CHANGED
@@ -27,7 +27,6 @@ const overlayscrollbars = require('overlayscrollbars');
27
27
  const unsafeHtml_js = require('lit/directives/unsafe-html.js');
28
28
  const when_js = require('lit/directives/when.js');
29
29
  const choose_js = require('lit/directives/choose.js');
30
- const flowRdfCore = require('@emuanalytics/flow-rdf-core');
31
30
 
32
31
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
33
32
 
@@ -23423,7 +23422,7 @@ const translation = {
23423
23422
  };
23424
23423
  localize.registerTranslation(translation);
23425
23424
 
23426
- const version = "0.0.36";
23425
+ const version = "0.0.38";
23427
23426
 
23428
23427
  const CONSOLE_HIGHLIGHT_STYLE = `
23429
23428
  padding: 2px 4px;
@@ -23437,10 +23436,6 @@ function announce() {
23437
23436
  announce();
23438
23437
 
23439
23438
  exports.ChartJs = chart_js.Chart;
23440
- exports.StateStore = flowRdfCore.StateStore;
23441
- exports.initializeContext = flowRdfCore.initializeContext;
23442
- exports.observable = flowRdfCore.observable;
23443
- exports.serialize = flowRdfCore.serialize;
23444
23439
  exports.FlowAlert = FlowAlert;
23445
23440
  exports.FlowAnimation = SlAnimation;
23446
23441
  exports.FlowButton = FlowButton;
package/dist/index.d.cts CHANGED
@@ -4,7 +4,6 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
4
4
  import * as chart_js from 'chart.js';
5
5
  import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
6
6
  export { Chart as ChartJs } from 'chart.js';
7
- export { StateStore, initializeContext, observable, serialize } from '@emuanalytics/flow-rdf-core';
8
7
 
9
8
  type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
10
9
  type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
package/dist/index.d.mts CHANGED
@@ -4,7 +4,6 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
4
4
  import * as chart_js from 'chart.js';
5
5
  import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
6
6
  export { Chart as ChartJs } from 'chart.js';
7
- export { StateStore, initializeContext, observable, serialize } from '@emuanalytics/flow-rdf-core';
8
7
 
9
8
  type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
10
9
  type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import * as chartjs_chart_matrix from 'chartjs-chart-matrix';
4
4
  import * as chart_js from 'chart.js';
5
5
  import { Chart, ChartTypeRegistry, ChartOptions, ChartData, Plugin, ChartComponentLike } from 'chart.js';
6
6
  export { Chart as ChartJs } from 'chart.js';
7
- export { StateStore, initializeContext, observable, serialize } from '@emuanalytics/flow-rdf-core';
8
7
 
9
8
  type EventTypeRequiresDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? never : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? never : T : never : never;
10
9
  type EventTypeDoesNotRequireDetail<T> = T extends keyof GlobalEventHandlersEventMap ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, unknown>> ? GlobalEventHandlersEventMap[T] extends CustomEvent<Record<PropertyKey, never>> ? T : Partial<GlobalEventHandlersEventMap[T]['detail']> extends GlobalEventHandlersEventMap[T]['detail'] ? T : never : T : T;
package/dist/index.mjs CHANGED
@@ -26,7 +26,6 @@ import { OverlayScrollbars } from 'overlayscrollbars';
26
26
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
27
27
  import { when } from 'lit/directives/when.js';
28
28
  import { choose } from 'lit/directives/choose.js';
29
- export { StateStore, initializeContext, observable, serialize } from '@emuanalytics/flow-rdf-core';
30
29
 
31
30
  function animateTo(el, keyframes, options) {
32
31
  return new Promise((resolve) => {
@@ -23404,7 +23403,7 @@ const translation = {
23404
23403
  };
23405
23404
  registerTranslation(translation);
23406
23405
 
23407
- const version = "0.0.36";
23406
+ const version = "0.0.38";
23408
23407
 
23409
23408
  const CONSOLE_HIGHLIGHT_STYLE = `
23410
23409
  padding: 2px 4px;
@@ -1145,6 +1145,48 @@
1145
1145
  ],
1146
1146
  "references": []
1147
1147
  },
1148
+ {
1149
+ "name": "flow-ui-map",
1150
+ "description": "Display a Flo.w map.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-load** - Dispatched when the map is first initialized and has completed loading.\n\n### **CSS Parts:**\n - **base** - The base element of the component.\n- **busy-indicator** - The busy indicator flow-ui-progress-bar.\n- **control-container** - The map control containers.\n- **control-container--top-left** - The top left control container element.\n- **control-container--top-right** - The top right control container element.\n- **control-container--bottom-left** - The bottom left control container element.\n- **control-container--bottom-right** - The bottom right control container element.",
1151
+ "attributes": [
1152
+ {
1153
+ "name": "map-id",
1154
+ "description": "The map ID. If not provided, a unique ID will be generated.",
1155
+ "values": []
1156
+ },
1157
+ {
1158
+ "name": "base-style",
1159
+ "description": "The base style of the map.",
1160
+ "values": []
1161
+ },
1162
+ {
1163
+ "name": "center",
1164
+ "description": "The center of the map specified as a longitude and latitude pair.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1165
+ "values": [{ "name": "[number" }, { "name": "number]" }]
1166
+ },
1167
+ {
1168
+ "name": "zoom",
1169
+ "description": "The zoom level of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1170
+ "values": []
1171
+ },
1172
+ {
1173
+ "name": "bearing",
1174
+ "description": "The bearing of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1175
+ "values": []
1176
+ },
1177
+ {
1178
+ "name": "pitch",
1179
+ "description": "The pitch of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1180
+ "values": []
1181
+ },
1182
+ {
1183
+ "name": "busy",
1184
+ "description": "Set to `true` to show a busy indicator on the map.\n\nNote that the busy indicator will also be automatically be shown when the map\nis loading data.",
1185
+ "values": []
1186
+ }
1187
+ ],
1188
+ "references": []
1189
+ },
1148
1190
  {
1149
1191
  "name": "flow-ui-panel",
1150
1192
  "description": "Panels are use with split-views to create resizable areas.\n\n\n---\n\n\n\n\n### **Methods:**\n - **expand(emitEvent)** - Shows the details.\n- **collapse(emitEvent)** - Hides the details",
@@ -1211,48 +1253,6 @@
1211
1253
  ],
1212
1254
  "references": []
1213
1255
  },
1214
- {
1215
- "name": "flow-ui-map",
1216
- "description": "Display a Flo.w map.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-load** - Dispatched when the map is first initialized and has completed loading.\n\n### **CSS Parts:**\n - **base** - The base element of the component.\n- **busy-indicator** - The busy indicator flow-ui-progress-bar.\n- **control-container** - The map control containers.\n- **control-container--top-left** - The top left control container element.\n- **control-container--top-right** - The top right control container element.\n- **control-container--bottom-left** - The bottom left control container element.\n- **control-container--bottom-right** - The bottom right control container element.",
1217
- "attributes": [
1218
- {
1219
- "name": "map-id",
1220
- "description": "The map ID. If not provided, a unique ID will be generated.",
1221
- "values": []
1222
- },
1223
- {
1224
- "name": "base-style",
1225
- "description": "The base style of the map.",
1226
- "values": []
1227
- },
1228
- {
1229
- "name": "center",
1230
- "description": "The center of the map specified as a longitude and latitude pair.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1231
- "values": [{ "name": "[number" }, { "name": "number]" }]
1232
- },
1233
- {
1234
- "name": "zoom",
1235
- "description": "The zoom level of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1236
- "values": []
1237
- },
1238
- {
1239
- "name": "bearing",
1240
- "description": "The bearing of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1241
- "values": []
1242
- },
1243
- {
1244
- "name": "pitch",
1245
- "description": "The pitch of the map.\n\nAlternatively, use the `setCenter` method to update the center of the map\nwith animation options.",
1246
- "values": []
1247
- },
1248
- {
1249
- "name": "busy",
1250
- "description": "Set to `true` to show a busy indicator on the map.\n\nNote that the busy indicator will also be automatically be shown when the map\nis loading data.",
1251
- "values": []
1252
- }
1253
- ],
1254
- "references": []
1255
- },
1256
1256
  {
1257
1257
  "name": "flow-ui-progress-ring",
1258
1258
  "description": "Progress rings are used to show the progress of a determinate operation in a circular fashion.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - A label to show inside the ring.\n\n### **CSS Properties:**\n - **--size** - The diameter of the progress ring (cannot be a percentage). _(default: undefined)_\n- **--track-width** - The width of the track. _(default: undefined)_\n- **--track-color** - The color of the track. _(default: undefined)_\n- **--indicator-width** - The width of the indicator. Defaults to the track width. _(default: undefined)_\n- **--indicator-color** - The color of the indicator. _(default: undefined)_\n- **--indicator-transition-duration** - The duration of the indicator's transition when the value changes. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The progress ring label.",
@@ -1270,32 +1270,6 @@
1270
1270
  ],
1271
1271
  "references": []
1272
1272
  },
1273
- {
1274
- "name": "flow-ui-radio",
1275
- "description": "Radios allow the user to select a single option from a group.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-blur** - Emitted when the control loses focus.\n- **flow-ui-focus** - Emitted when the control gains focus.\n\n### **Slots:**\n - _default_ - The radio's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The circular container that wraps the radio's checked state.\n- **control--checked** - The radio control when the radio is checked.\n- **checked-icon** - The checked icon, an `<flow-ui-icon>` element.\n- **label** - The container that wraps the radio's label.",
1276
- "attributes": [
1277
- {
1278
- "name": "value",
1279
- "description": "The radio's value. When selected, the radio group will receive this value.",
1280
- "values": []
1281
- },
1282
- {
1283
- "name": "size",
1284
- "description": "The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\nattribute can typically be omitted.",
1285
- "values": [
1286
- { "name": "small" },
1287
- { "name": "medium" },
1288
- { "name": "large" }
1289
- ]
1290
- },
1291
- {
1292
- "name": "disabled",
1293
- "description": "Disables the radio.",
1294
- "values": []
1295
- }
1296
- ],
1297
- "references": []
1298
- },
1299
1273
  {
1300
1274
  "name": "flow-ui-query-builder",
1301
1275
  "description": "Query builder component\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-change** - Emitted when the control's value changes.\n\n### **Methods:**\n - **registerFieldDefinition(type: _T_, fieldDefinition: _FlowQueryBuilderFieldDefinition<NoUnion<T>>_)** - Register a custom field definition.\n\nA field definition is used to add support for a custom field type. A field type comprises:\n\n- a field `type` string\n- a `template` function that returns the template for the field's value control\n- an array of `operators` that are valid for the field\n- **isRule(value: _unknown_): _value is FlowQueryBuilderRule_** - Static helper method to determine if supplied argument is\na `FlowQueryBuilderRule`.\n- **isRuleSet(value: _unknown_): __** - Static helper method to determine if supplied argument is\na `FlowQueryBuilderRuleSet`.\n- **filterRuleSet(ruleset: _FlowQueryBuilderRuleSet_, options: _{ excludeFields?: string[]; includeFields?: string[] }_): __** - Static helper method to recursively filter a `FlowQueryBuilderRuleSet`.\n\nThis can be used to sanitize user queries before they are executed.\n- **renameRuleSetFields(ruleset: _FlowQueryBuilderRuleSet_, replacements: _Record<string, string>_, ruleSet): __** - Static helper method to rename fields in a `FlowQueryBuilderRuleSet`.\n- **transformRuleSet(ruleSet: _FlowQueryBuilderRuleSet_, transformFn: _(rule: FlowQueryBuilderRule) => FlowQueryBuilderRule | undefined_): __** - Static helper method to recursively apply a transform function to each rule\nin a `FlowQueryBuilderRuleSet`.\n\nThe transform fn should expect a single FlowQueryBuilderRule and return:\n\n- the same rule unmodifed or modified in place\n- `undefined` to exclude the rule from the rule set\n\nThis can be used to sanitize rule sets before they are used to perform queries.\n\n### **Slots:**\n - **label** - The component's label. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the component. Alternatively, you can use the `help-text` attribute.",
@@ -1342,6 +1316,32 @@
1342
1316
  ],
1343
1317
  "references": []
1344
1318
  },
1319
+ {
1320
+ "name": "flow-ui-radio",
1321
+ "description": "Radios allow the user to select a single option from a group.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-blur** - Emitted when the control loses focus.\n- **flow-ui-focus** - Emitted when the control gains focus.\n\n### **Slots:**\n - _default_ - The radio's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The circular container that wraps the radio's checked state.\n- **control--checked** - The radio control when the radio is checked.\n- **checked-icon** - The checked icon, an `<flow-ui-icon>` element.\n- **label** - The container that wraps the radio's label.",
1322
+ "attributes": [
1323
+ {
1324
+ "name": "value",
1325
+ "description": "The radio's value. When selected, the radio group will receive this value.",
1326
+ "values": []
1327
+ },
1328
+ {
1329
+ "name": "size",
1330
+ "description": "The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\nattribute can typically be omitted.",
1331
+ "values": [
1332
+ { "name": "small" },
1333
+ { "name": "medium" },
1334
+ { "name": "large" }
1335
+ ]
1336
+ },
1337
+ {
1338
+ "name": "disabled",
1339
+ "description": "Disables the radio.",
1340
+ "values": []
1341
+ }
1342
+ ],
1343
+ "references": []
1344
+ },
1345
1345
  {
1346
1346
  "name": "flow-ui-radio-group",
1347
1347
  "description": "Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-change** - Emitted when the radio group's selected value changes.\n- **flow-ui-input** - Emitted when the radio group receives user input.\n- **flow-ui-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<flow-ui-radio>` or `<flow-ui-tool-button>` elements are placed.\n- **label** - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **button-group** - The button group that wraps radio buttons.\n- **button-group__base** - The button group's `base` part.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-ui",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -91,11 +91,11 @@
91
91
  "vite": "^4.3.9",
92
92
  "vite-plugin-dts": "^3.5.1",
93
93
  "webdriverio": "^8.14.3",
94
- "@emuanalytics/flow-rdf-core": "0.0.15"
94
+ "@emuanalytics/flow-rdf-core": "0.0.20"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "chart.js": "^4.4.2",
98
- "@emuanalytics/flow-rdf-core": "0.0.15"
98
+ "@emuanalytics/flow-rdf-core": "0.0.20"
99
99
  },
100
100
  "scripts": {
101
101
  "dev": "vite",