@onereach/ui-components 10.2.1-beta.4272.0 → 10.2.1-beta.4276.0

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 (63) hide show
  1. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +11 -9
  2. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +2 -0
  3. package/dist/bundled/v2/components/OrCardCollectionV3/styles.d.ts +1 -0
  4. package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +5 -2
  5. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +252 -382
  6. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +68 -21
  7. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -1
  8. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +4 -5
  9. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
  10. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
  11. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +2 -2
  12. package/dist/bundled/v2/{index-0e9c2b43.js → index-02a897ac.js} +1 -1
  13. package/dist/bundled/v2/{index-f379c836.js → index-7516cf60.js} +173 -258
  14. package/dist/bundled/v2/{markdown-2d22cf16.js → markdown-fe3bfb01.js} +113 -66
  15. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +1 -1
  16. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +1 -0
  17. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  18. package/dist/bundled/v3/components/OrCardCollectionV3/props.js +1 -1
  19. package/dist/bundled/v3/components/OrCardCollectionV3/styles.d.ts +1 -0
  20. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +1 -1
  21. package/dist/bundled/v3/components/{OrCardCollectionV3-8ddb17cf.js → OrCardCollectionV3-b9d360ef.js} +16 -10
  22. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
  23. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +18 -14
  24. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  25. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +1 -1
  26. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -1
  27. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
  28. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
  29. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
  30. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
  31. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
  32. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
  33. package/dist/bundled/v3/components/{OrRichTextEditorV3-45e64a85.js → OrRichTextEditorV3-358d7df2.js} +532 -674
  34. package/dist/bundled/v3/components/index.js +2 -2
  35. package/dist/bundled/v3/index.js +2 -2
  36. package/dist/esm/v2/{OrCardCollection-e14978d3.js → OrCardCollection-2a2c0b31.js} +14 -9
  37. package/dist/esm/v2/{OrRichTextEditor-fbcc33fd.js → OrRichTextEditor-734b8b27.js} +244 -353
  38. package/dist/esm/v2/components/index.js +2 -2
  39. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -0
  40. package/dist/esm/v2/components/or-card-collection-v3/index.js +1 -1
  41. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +1 -0
  42. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +68 -21
  43. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +7 -7
  44. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -1
  45. package/dist/esm/v2/index.js +2 -2
  46. package/dist/esm/v3/{OrCardCollection-65c9e771.js → OrCardCollection-a39155b7.js} +15 -9
  47. package/dist/esm/v3/{OrRichTextEditor-cdd9e3e4.js → OrRichTextEditor-b5684aab.js} +242 -325
  48. package/dist/esm/v3/components/index.js +2 -2
  49. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +1 -0
  50. package/dist/esm/v3/components/or-card-collection-v3/index.js +1 -1
  51. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +1 -0
  52. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +18 -14
  53. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +6 -6
  54. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -1
  55. package/dist/esm/v3/index.js +2 -2
  56. package/package.json +18 -18
  57. package/src/components/or-card-collection-v3/OrCardCollection.vue +25 -14
  58. package/src/components/or-card-collection-v3/styles.ts +6 -1
  59. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +203 -48
  60. package/src/components/or-rich-text-editor-v3/styles.ts +10 -13
  61. package/dist/esm/v2/components/or-rich-text-editor-v3/partials/EditorToolbar.vue.d.ts +0 -160
  62. package/dist/esm/v3/components/or-rich-text-editor-v3/partials/EditorToolbar.vue.d.ts +0 -89
  63. package/src/components/or-rich-text-editor-v3/partials/EditorToolbar.vue +0 -238
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, ref, watch } from 'vue-demi';
2
- import { CardCollectionContent, CardCollectionContentViews, CardCollection, CardCollectionToolbar, CardCollectionToolbarPanel } from './styles.js';
2
+ import { CardCollectionContent, CardCollectionContentViews, CardCollection, CardCollectionToolbar, CardCollectionToolbarPanel, CardCollectionEmptyContentItem } from './styles.js';
3
3
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
4
4
  import { gridView, defaultViewModes } from './props.js';
5
5
  import __vue_component__$2 from '../OrIconButtonV3/OrIconButton.js';
@@ -125,6 +125,7 @@ var script = defineComponent({
125
125
  const rootStyles = computed(() => ['or-card-collection-v3', ...CardCollection]);
126
126
  const toolbarStyles = computed(() => [...CardCollectionToolbar]);
127
127
  const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
128
+ const emptyContainerStyles = computed(() => [...CardCollectionEmptyContentItem]);
128
129
  // State
129
130
  const proxyView = ref(props.view);
130
131
  const proxySearch = ref(props.search);
@@ -153,6 +154,7 @@ var script = defineComponent({
153
154
  rootStyles,
154
155
  toolbarStyles,
155
156
  toolbarPanelStyles,
157
+ emptyContainerStyles,
156
158
  proxyView,
157
159
  proxySearch,
158
160
  switchView,
@@ -238,15 +240,15 @@ var __vue_render__ = function () {
238
240
  })];
239
241
  }, null, {
240
242
  items: _vm.items
241
- }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 && !_vm.loading ? _vm._t("noSearchResults", function () {
242
- return [_vm._v("\n No results\n ")];
243
- }, null, {
244
- search: _vm.proxySearch
243
+ }) : _vm._e(), _vm._v(" "), _vm.items.length === 0 || _vm.loading ? _c('div', {
244
+ class: _vm.emptyContainerStyles
245
+ }, [_vm.proxySearch.length > 0 && !_vm.loading ? _vm._t("noSearchResults", function () {
246
+ return [_vm._v("\n No results\n ")];
247
+ }, {
248
+ "search": _vm.proxySearch
245
249
  }) : _vm._e(), _vm._v(" "), _vm.loading ? _vm._t("loading", function () {
246
- return [_c('div', {
247
- staticClass: "h-full"
248
- }, [_c('OrLoader')], 1)];
249
- }) : _vm._e()], 2);
250
+ return [_c('OrLoader')];
251
+ }) : _vm._e(), _vm._v(" "), _vm.items.length === 0 && _vm.proxySearch.length === 0 && !_vm.loading ? _vm._t("empty") : _vm._e()], 2) : _vm._e()], 2);
250
252
  };
251
253
  var __vue_staticRenderFns__ = [];
252
254
 
@@ -6,6 +6,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
6
6
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
7
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
8
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
+ emptyContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
10
  proxyView: import("@vue/composition-api").Ref<string>;
10
11
  proxySearch: import("@vue/composition-api").Ref<string>;
11
12
  switchView: (view: string) => void;
@@ -101,6 +102,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
101
102
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
102
103
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
103
104
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
105
+ emptyContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
104
106
  proxyView: import("@vue/composition-api").Ref<string>;
105
107
  proxySearch: import("@vue/composition-api").Ref<string>;
106
108
  switchView: (view: string) => void;
@@ -4,3 +4,4 @@ export declare const CardCollectionToolbar: string[];
4
4
  export declare const CardCollectionToolbarPanel: string[];
5
5
  export declare const CardCollectionContent: string[];
6
6
  export declare const CardCollectionContentViews: Record<CardCollectionView, string[]>;
7
+ export declare const CardCollectionEmptyContentItem: string[];
@@ -4,7 +4,7 @@ const CardCollection = [
4
4
  // Layout
5
5
  'layout-column',
6
6
  // Box
7
- 'max-h-full',
7
+ 'h-full',
8
8
  // Spacing
9
9
  'gap-md'];
10
10
  const CardCollectionToolbar = [
@@ -34,5 +34,8 @@ const CardCollectionContentViews = {
34
34
  // Layout
35
35
  'grid-cols-1']
36
36
  };
37
+ const CardCollectionEmptyContentItem = [
38
+ // Layout
39
+ 'layout-column items-center justify-center h-full'];
37
40
 
38
- export { CardCollection, CardCollectionContent, CardCollectionContentViews, CardCollectionToolbar, CardCollectionToolbarPanel };
41
+ export { CardCollection, CardCollectionContent, CardCollectionContentViews, CardCollectionEmptyContentItem, CardCollectionToolbar, CardCollectionToolbarPanel };