@operato/grist-editor 2.0.0-alpha.13 → 2.0.0-alpha.131

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +654 -0
  2. package/dist/src/index.js +4 -0
  3. package/dist/src/index.js.map +1 -1
  4. package/dist/src/ox-grist-editor-crontab.d.ts +1 -1
  5. package/dist/src/ox-grist-editor-duration.d.ts +1 -1
  6. package/dist/src/ox-grist-editor-hashtags.d.ts +1 -1
  7. package/dist/src/ox-grist-editor-i18n-label.d.ts +13 -0
  8. package/dist/src/ox-grist-editor-i18n-label.js +85 -0
  9. package/dist/src/ox-grist-editor-i18n-label.js.map +1 -0
  10. package/dist/src/ox-grist-editor-parameters.d.ts +1 -1
  11. package/dist/src/ox-grist-editor-partition-keys.d.ts +1 -1
  12. package/dist/src/ox-grist-editor-partition-keys.js +1 -1
  13. package/dist/src/ox-grist-editor-partition-keys.js.map +1 -1
  14. package/dist/src/ox-grist-editor-quantifier.d.ts +1 -1
  15. package/dist/src/ox-grist-editor-value-map.d.ts +1 -1
  16. package/dist/src/ox-grist-editor-value-ranges.d.ts +1 -1
  17. package/dist/src/ox-grist-renderer-i18n-label.d.ts +2 -0
  18. package/dist/src/ox-grist-renderer-i18n-label.js +9 -0
  19. package/dist/src/ox-grist-renderer-i18n-label.js.map +1 -0
  20. package/dist/src/ox-grist-renderer-partition-keys.d.ts +1 -1
  21. package/dist/src/ox-grist-renderer-partition-keys.js +4 -4
  22. package/dist/src/ox-grist-renderer-partition-keys.js.map +1 -1
  23. package/dist/src/ox-parameters-builder.d.ts +15 -1
  24. package/dist/src/ox-parameters-builder.js +6 -0
  25. package/dist/src/ox-parameters-builder.js.map +1 -1
  26. package/dist/src/ox-popup-crontab-input.d.ts +2 -1
  27. package/dist/src/ox-popup-crontab-input.js +7 -8
  28. package/dist/src/ox-popup-crontab-input.js.map +1 -1
  29. package/dist/src/ox-popup-duration-input.d.ts +2 -1
  30. package/dist/src/ox-popup-duration-input.js +7 -8
  31. package/dist/src/ox-popup-duration-input.js.map +1 -1
  32. package/dist/src/ox-popup-hashtags-input.d.ts +2 -1
  33. package/dist/src/ox-popup-hashtags-input.js +8 -9
  34. package/dist/src/ox-popup-hashtags-input.js.map +1 -1
  35. package/dist/src/ox-popup-i18n-label-input.d.ts +16 -0
  36. package/dist/src/ox-popup-i18n-label-input.js +100 -0
  37. package/dist/src/ox-popup-i18n-label-input.js.map +1 -0
  38. package/dist/src/ox-popup-parameters-builder.d.ts +2 -1
  39. package/dist/src/ox-popup-parameters-builder.js +10 -8
  40. package/dist/src/ox-popup-parameters-builder.js.map +1 -1
  41. package/dist/src/ox-popup-partition-keys-input.d.ts +2 -1
  42. package/dist/src/ox-popup-partition-keys-input.js +7 -8
  43. package/dist/src/ox-popup-partition-keys-input.js.map +1 -1
  44. package/dist/src/ox-popup-value-map-input.d.ts +2 -1
  45. package/dist/src/ox-popup-value-map-input.js +7 -8
  46. package/dist/src/ox-popup-value-map-input.js.map +1 -1
  47. package/dist/src/ox-popup-value-ranges-input.d.ts +2 -1
  48. package/dist/src/ox-popup-value-ranges-input.js +7 -8
  49. package/dist/src/ox-popup-value-ranges-input.js.map +1 -1
  50. package/dist/stories/ox-grist-editor-crontab.stories.d.ts +1 -1
  51. package/dist/stories/ox-grist-editor-crontab.stories.js +66 -54
  52. package/dist/stories/ox-grist-editor-crontab.stories.js.map +1 -1
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +44 -36
  55. package/src/index.ts +4 -0
  56. package/src/ox-grist-editor-i18n-label.ts +101 -0
  57. package/src/ox-grist-editor-partition-keys.ts +1 -1
  58. package/src/ox-grist-renderer-i18n-label.ts +12 -0
  59. package/src/ox-grist-renderer-partition-keys.ts +4 -4
  60. package/src/ox-parameters-builder.ts +8 -2
  61. package/src/ox-popup-crontab-input.ts +7 -8
  62. package/src/ox-popup-duration-input.ts +7 -8
  63. package/src/ox-popup-hashtags-input.ts +8 -9
  64. package/src/ox-popup-i18n-label-input.ts +97 -0
  65. package/src/ox-popup-parameters-builder.ts +10 -8
  66. package/src/ox-popup-partition-keys-input.ts +7 -8
  67. package/src/ox-popup-value-map-input.ts +8 -8
  68. package/src/ox-popup-value-ranges-input.ts +7 -8
  69. package/stories/ox-grist-editor-crontab.stories.ts +71 -60
  70. package/themes/grist-theme.css +2 -0
@@ -1,3 +1,4 @@
1
+ import '@material/web/icon/icon.js'
1
2
  import '@operato/input/ox-input-partition-keys.js'
2
3
 
3
4
  import { css, html, LitElement } from 'lit'
@@ -5,11 +6,12 @@ import { customElement, property } from 'lit/decorators.js'
5
6
 
6
7
  import { i18next } from '@operato/i18n'
7
8
  import { closePopup } from '@operato/popup'
8
- import { ScrollbarStyles } from '@operato/styles'
9
+ import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
9
10
 
10
11
  @customElement('ox-popup-partition-keys-input')
11
12
  export class OxPopupPartitionKeysInput extends LitElement {
12
13
  static styles = [
14
+ ButtonContainerStyles,
13
15
  ScrollbarStyles,
14
16
  css`
15
17
  :host {
@@ -37,11 +39,6 @@ export class OxPopupPartitionKeysInput extends LitElement {
37
39
 
38
40
  color: var(--primary-color);
39
41
  }
40
-
41
- .button-container {
42
- display: flex;
43
- margin-left: auto;
44
- }
45
42
  `
46
43
  ]
47
44
 
@@ -54,8 +51,10 @@ export class OxPopupPartitionKeysInput extends LitElement {
54
51
  <ox-input-partition-keys .value=${this.value} @change=${this.onChange.bind(this)}> </ox-input-partition-keys>
55
52
 
56
53
  <div class="button-container">
57
- <mwc-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
58
- <mwc-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</mwc-button>
54
+ <button @click=${this.onCancel.bind(this)} danger>
55
+ <md-icon>cancel</md-icon>${i18next.t('button.cancel')}
56
+ </button>
57
+ <button @click=${this.onConfirm.bind(this)}><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
59
58
  </div>
60
59
  `
61
60
  }
@@ -1,3 +1,5 @@
1
+ import '@material/web/icon/icon.js'
2
+
1
3
  import '@operato/input/ox-input-value-map.js'
2
4
 
3
5
  import { css, html, LitElement } from 'lit'
@@ -5,11 +7,12 @@ import { customElement, property } from 'lit/decorators.js'
5
7
 
6
8
  import { i18next } from '@operato/i18n'
7
9
  import { closePopup } from '@operato/popup'
8
- import { ScrollbarStyles } from '@operato/styles'
10
+ import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
9
11
 
10
12
  @customElement('ox-popup-value-map-input')
11
13
  export class OxPopupValueMapInput extends LitElement {
12
14
  static styles = [
15
+ ButtonContainerStyles,
13
16
  ScrollbarStyles,
14
17
  css`
15
18
  :host {
@@ -36,11 +39,6 @@ export class OxPopupValueMapInput extends LitElement {
36
39
 
37
40
  color: var(--primary-color);
38
41
  }
39
-
40
- .button-container {
41
- display: flex;
42
- margin-left: auto;
43
- }
44
42
  `
45
43
  ]
46
44
 
@@ -61,8 +59,10 @@ export class OxPopupValueMapInput extends LitElement {
61
59
  </ox-input-value-map>
62
60
 
63
61
  <div class="button-container">
64
- <mwc-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
65
- <mwc-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</mwc-button>
62
+ <button @click=${this.onCancel.bind(this)} danger>
63
+ <md-icon>cancel</md-icon>${i18next.t('button.cancel')}
64
+ </button>
65
+ <button @click=${this.onConfirm.bind(this)}><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
66
66
  </div>
67
67
  `
68
68
  }
@@ -1,3 +1,4 @@
1
+ import '@material/web/icon/icon.js'
1
2
  import '@operato/input/ox-input-value-ranges.js'
2
3
 
3
4
  import { css, html, LitElement } from 'lit'
@@ -5,11 +6,12 @@ import { customElement, property } from 'lit/decorators.js'
5
6
 
6
7
  import { i18next } from '@operato/i18n'
7
8
  import { closePopup } from '@operato/popup'
8
- import { ScrollbarStyles } from '@operato/styles'
9
+ import { ButtonContainerStyles, ScrollbarStyles } from '@operato/styles'
9
10
 
10
11
  @customElement('ox-popup-value-ranges-input')
11
12
  export class OxPopupValueRangesInput extends LitElement {
12
13
  static styles = [
14
+ ButtonContainerStyles,
13
15
  ScrollbarStyles,
14
16
  css`
15
17
  :host {
@@ -36,11 +38,6 @@ export class OxPopupValueRangesInput extends LitElement {
36
38
 
37
39
  color: var(--primary-color);
38
40
  }
39
-
40
- .button-container {
41
- display: flex;
42
- margin-left: auto;
43
- }
44
41
  `
45
42
  ]
46
43
 
@@ -61,8 +58,10 @@ export class OxPopupValueRangesInput extends LitElement {
61
58
  </ox-input-value-ranges>
62
59
 
63
60
  <div class="button-container">
64
- <mwc-button @click=${this.onCancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
65
- <mwc-button @click=${this.onConfirm.bind(this)}>${i18next.t('button.confirm')}</mwc-button>
61
+ <button @click=${this.onCancel.bind(this)} danger>
62
+ <md-icon>cancel</md-icon>${i18next.t('button.cancel')}
63
+ </button>
64
+ <button @click=${this.onConfirm.bind(this)}><md-icon>done</md-icon>${i18next.t('button.confirm')}</button>
66
65
  </div>
67
66
  `
68
67
  }
@@ -6,7 +6,7 @@ import '@operato/property-editor/ox-properties-dynamic-view.js'
6
6
  import '@operato/data-grist'
7
7
  import '@operato/data-grist/ox-filters-form.js'
8
8
  import '@operato/data-grist/ox-sorters-control.js'
9
- import '@material/mwc-icon'
9
+ import '@material/web/icon/icon.js'
10
10
 
11
11
  /* set grist-editors */
12
12
  import { css, html, LitElement, TemplateResult } from 'lit'
@@ -348,9 +348,9 @@ class GristDemo extends LitElement {
348
348
 
349
349
  <div slot="headroom" id="headroom">
350
350
  <div id="modes">
351
- <mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</mwc-icon>
352
- <mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</mwc-icon>
353
- <mwc-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</mwc-icon>
351
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>view_list</md-icon>
352
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>menu</md-icon>
353
+ <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
354
354
  </div>
355
355
  </div>
356
356
  </ox-grist>
@@ -374,67 +374,78 @@ interface Story<T> {
374
374
 
375
375
  interface ArgTypes {}
376
376
 
377
- const Template: Story<ArgTypes> = ({}: ArgTypes) =>
378
- html`
379
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
380
- <link href="/themes/app-theme.css" rel="stylesheet" />
381
- <link href="/themes/oops-theme.css" rel="stylesheet" />
382
- <link href="/themes/grist-theme.css" rel="stylesheet" />
383
-
384
- <style>
385
- [slot='headroom'] {
386
- display: flex;
387
- flex-direction: row;
388
- align-items: center;
389
- padding: var(--padding-default) var(--padding-wide);
390
- background-color: var(--theme-white-color);
391
- box-shadow: var(--box-shadow);
392
-
393
- --mdc-icon-size: 24px;
394
- }
395
- #sorters mwc-icon,
396
- #modes mwc-icon {
397
- --mdc-icon-size: 18px;
398
- }
399
- #sorters {
400
- margin-left: auto;
401
- margin-right: var(--margin-default);
402
- padding-left: var(--padding-narrow);
403
- border-bottom: var(--border-dark-color);
404
- position: relative;
405
- color: var(--secondary-color);
406
- font-size: var(--fontsize-default);
407
- user-select: none;
408
- }
409
-
410
- #sorters > * {
411
- padding: var(--padding-narrow);
412
- vertical-align: middle;
413
- }
414
-
377
+ const Template: Story<ArgTypes> = ({}: ArgTypes) => html`
378
+ <link
379
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
380
+ rel="stylesheet"
381
+ />
382
+ <link
383
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
384
+ rel="stylesheet"
385
+ />
386
+ <link
387
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
388
+ rel="stylesheet"
389
+ />
390
+
391
+ <link href="/themes/app-theme.css" rel="stylesheet" />
392
+ <link href="/themes/oops-theme.css" rel="stylesheet" />
393
+ <link href="/themes/grist-theme.css" rel="stylesheet" />
394
+
395
+ <style>
396
+ [slot='headroom'] {
397
+ display: flex;
398
+ flex-direction: row;
399
+ align-items: center;
400
+ padding: var(--padding-default) var(--padding-wide);
401
+ background-color: var(--theme-white-color);
402
+ box-shadow: var(--box-shadow);
403
+
404
+ --md-icon-size: 24px;
405
+ }
406
+ #sorters md-icon,
407
+ #modes md-icon {
408
+ --md-icon-size: 18px;
409
+ }
410
+ #sorters {
411
+ margin-left: auto;
412
+ margin-right: var(--margin-default);
413
+ padding-left: var(--padding-narrow);
414
+ border-bottom: var(--border-dark-color);
415
+ position: relative;
416
+ color: var(--secondary-color);
417
+ font-size: var(--fontsize-default);
418
+ user-select: none;
419
+ }
420
+
421
+ #sorters > * {
422
+ padding: var(--padding-narrow);
423
+ vertical-align: middle;
424
+ }
425
+
426
+ #filters {
427
+ display: flex;
428
+ justify-content: center;
429
+ align-items: center;
430
+ }
431
+
432
+ #filters * {
433
+ margin-right: var(--margin-default);
434
+ }
435
+
436
+ @media only screen and (max-width: 460px) {
415
437
  #filters {
416
- display: flex;
417
- justify-content: center;
418
- align-items: center;
419
- }
420
-
421
- #filters * {
422
- margin-right: var(--margin-default);
438
+ flex-direction: column;
423
439
  }
424
440
 
425
- @media only screen and (max-width: 460px) {
426
- #filters {
427
- flex-direction: column;
428
- }
429
-
430
- #modes {
431
- display: none;
432
- }
441
+ #modes {
442
+ display: none;
433
443
  }
434
- </style>
444
+ }
445
+ </style>
435
446
 
436
- <ox-grist-demo mode="LIST"></ox-grist-demo>
437
- `
447
+ <ox-grist-demo mode="LIST"></ox-grist-demo>
448
+ `
438
449
 
439
450
  export const Regular = Template.bind({})
440
451
  Regular.args = {}
@@ -35,6 +35,8 @@ body {
35
35
  --grid-header-filter-title-font: normal 12px var(--theme-font);
36
36
  --grid-header-filter-title-icon-color: var(--primary-color);
37
37
 
38
+ --grid-body-bottom-border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
39
+
38
40
  --grid-record-background-color: var(--theme-white-color);
39
41
  --grid-record-odd-background-color: #f9f7f5;
40
42
  --grid-record-padding: 0 5px 0 5px;